/* ============================================================
   Vidasi — global styles (shared by every page)
   ============================================================ */

:root {
  --bg: #0c0c0e;
  --panel: #151518;
  --panel-2: #1c1c20;
  --line: #2a2a30;
  --fg: #f2f2f0;
  --muted: #8d8d96;
  --accent: #c6ff3d;
  --accent-ink: #0c0c0e;
  --good: #3ddc84;
  --mid: #ffb02e;
  --bad: #ff5d4f;
  --radius: 14px;
  --header-h: 68px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  /* same grid + accent glow as the coming-soon page; glow is pinned to the top so it doesn't drift on long pages */
  background:
    radial-gradient(60vmax 60vmax at 85% -10vmax, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%) no-repeat,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  background-blend-mode: normal, soft-light, soft-light, normal;
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { font-weight: 700; font-size: 24px; letter-spacing: -.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.logo-tail { font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--fg); }
.main-nav a[aria-current="page"], .main-nav a.active { color: var(--fg); background: var(--panel-2); }
.main-nav .nav-cta { margin-left: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { color: var(--accent-ink); background: var(--accent); filter: brightness(1.08); }
.main-nav .nav-portal { margin-left: 6px; border: 1px solid var(--line); }
.main-nav .nav-portal:hover { border-color: var(--muted); }
.nav-group { display: flex; gap: 4px; padding-right: 10px; margin-right: 6px; border-right: 1px solid var(--line); }

.menu-btn { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- typography & sections ---------- */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.display { margin: .25em 0 .35em; font-size: clamp(40px, 7vw, 88px); line-height: .95; letter-spacing: -.04em; }
.display em, .h2 em { font-style: normal; color: var(--accent); }
.lead { max-width: 62ch; margin: 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.h2 { margin: 8px 0 0; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.035em; line-height: 1.02; }
.page-hero { padding-block: clamp(28px, 4.5vw, 56px) clamp(24px, 4vw, 48px); }

/* ---------- cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.tile { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tile .num { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.tile h3 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); line-height: 1.55; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { padding: 0 22px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee span::before { content: '✦'; margin-right: 22px; color: var(--accent); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(198, 255, 61, .18), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.05; }
.cta-band p { margin: 0; color: var(--muted); max-width: 52ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
/* dropdowns: own chevron, inset from the right edge instead of the browser's flush arrow */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238d8d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.form-error { min-height: 1.3em; margin: 0; color: #ff7a6b; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 32px 64px; padding-block: 56px 32px; }
.footer-grid p { margin: 12px 0 0; max-width: 34ch; color: var(--muted); font-size: 15px; }
.footer-grid .footer-loc { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.footer-grid h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-grid a:not(.logo) { display: block; padding: 4px 0; color: var(--fg); text-decoration: none; font-size: 15px; }
.footer-grid a:not(.logo):hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom a { color: var(--muted); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 500; font-size: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .4); translate: -50% 160%; transition: translate .4s cubic-bezier(.2,.9,.3,1.2); }
.toast:not(.show) { visibility: hidden; transition: translate .4s, visibility 0s .4s; }
.toast.show { translate: -50% 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .main-nav .nav-portal { margin: 4px 0 0; text-align: center; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-group { flex-direction: column; padding: 0 0 8px; margin: 0 0 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- portfolio cards (home teaser + portfolio page) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.work-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .25s, border-color .25s; padding: 0; }
.work-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.work-thumb { position: relative; display: grid; place-items: center; height: 210px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.mock { width: 72%; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); transform: translateY(18px) rotate(-2deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .mock { transform: translateY(8px) rotate(0); }
.mock-bar { display: flex; gap: 4px; padding: 7px 9px; background: #eee; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ccc; }
.mock-body { padding: 14px; color: #111; }
.mock-body b { display: block; margin-bottom: 8px; font-size: 18px; letter-spacing: -.02em; color: var(--c2); filter: brightness(.7); }
.mock-body span { display: block; height: 7px; margin: 6px 0; border-radius: 9px; background: #e6e6e6; }
.mock-body span:nth-of-type(1) { width: 85%; } .mock-body span:nth-of-type(2) { width: 60%; }
.mock-body .mock-img { height: 46px; margin-top: 10px; border-radius: 6px; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .5; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(12, 12, 14, .75); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(4px); }
.work-info { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.work-cat { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.work-info h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.work-info p { flex: 1; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.work-result { margin-top: 8px; font-size: 14px; color: var(--muted); }
.work-result b { margin-right: 6px; color: var(--accent); font-size: 20px; letter-spacing: -.02em; }

/* ---------- words and photos from the app ---------- */
/* Words the app can change wait for it, a second at most (config.js), so the old ones don't flash. */
.site-loading [data-block], .site-loading [data-team] { visibility: hidden; }
/* Cloudflare Turnstile (config.js): invisible, but if it ever needs a click it shows here, above everything */
.turnstile-box { position: fixed; bottom: 16px; left: 50%; z-index: 1000; transform: translateX(-50%); }
/* prices on or off: SITE.showPrices in config.js adds .show-prices. Off by default, so they never flash. */
html:not(.show-prices) .if-prices, html.show-prices .if-quote { display: none !important; }
/* the portfolio's links and sections, until the app has published projects (config.js) */
html:not(.has-portfolio) [data-portfolio] { display: none !important; }
.work-thumb.has-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .work-thumb.has-cover img { transform: scale(1.03); }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.quote-card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.quote-card blockquote { margin: 0; font-size: 18px; line-height: 1.55; white-space: pre-line; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.quote-card figcaption b { display: block; color: var(--fg); font-weight: 600; }
.quote-card img, .quote-initial { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-initial { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }






/* ---------- the two sites, in the footer: Australia (vidasi.dev) · Brazil (vidasi.com.br) ---------- */
.footer-sites [aria-current] { color: var(--fg); }
.footer-sep { margin-inline: 6px; opacity: .5; }

/* ---------- "It looks like you're in Brazil": the other country's site (main.js) ---------- */
.site-suggest { width: min(520px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); color: var(--fg); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.site-suggest::backdrop { background: rgba(5, 5, 7, .7); backdrop-filter: blur(4px); }
.site-suggest[open] { animation: suggestIn .35s cubic-bezier(.2,.8,.2,1); }
.site-suggest h2 { margin: 6px 0 8px; font-size: clamp(24px, 5vw, 30px); line-height: 1.15; }
.site-suggest p { margin: 0; color: var(--muted); }
.site-suggest .eyebrow { color: var(--accent); }
.site-suggest .site-suggest-small { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.site-suggest-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.site-suggest-actions .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
@keyframes suggestIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
