/* ==========================================================================
   Zenith Dynamics — NFC Digital Business Card
   Design language: quiet, editorial, cinematic. Hairlines instead of glows,
   solid graphite surfaces, sentence-case type, one flat accent for the
   primary action. Theme values arrive as CSS custom properties from the
   admin Theme Customizer (zd_theme_vars()); these are fallbacks.
   ========================================================================== */

:root {
  --accent: #FDD835; --accent-rgb: 253 216 53;
  --accent-2: #F9A825; --accent-2-rgb: 249 168 37;
  --cta-bg: #FDD835; --cta-text: #0A0A0A;
  --dk-bg: #0A0A0B; --dk-surface: #121214; --dk-text: #EDEDEA; --dk-text-rgb: 237 237 234;
  --lt-bg: #F6F5F1; --lt-surface: #FFFFFF; --lt-text: #141414; --lt-text-rgb: 20 20 20;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --heading-scale: 1; --glass-blur: 12px; --glass-alpha: .03; --radius: 14px;
  --motion: 1; --overlay: .55;

  --bg: var(--dk-bg); --surface: var(--dk-surface); --text: var(--dk-text); --text-rgb: var(--dk-text-rgb);
  --muted: rgb(var(--text-rgb) / .62); --faint: rgb(var(--text-rgb) / .56);
  --line: rgb(var(--text-rgb) / .09); --line-strong: rgb(var(--text-rgb) / .18);
  --hover: rgb(var(--text-rgb) / .035);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 20px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

html[data-mode="light"] { --bg: var(--lt-bg); --surface: var(--lt-surface); --text: var(--lt-text); --text-rgb: var(--lt-text-rgb); color-scheme: light; }
@media (prefers-color-scheme: light) {
  html[data-mode="auto"] { --bg: var(--lt-bg); --surface: var(--lt-surface); --text: var(--lt-text); --text-rgb: var(--lt-text-rgb); color-scheme: light; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font-body); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1.5px solid var(--text); outline-offset: 3px; }
::selection { background: rgb(var(--accent-rgb) / .9); color: #0a0a0a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; font-weight: 500; }
.skip:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 640px; }

/* ---------- Typography ---------- */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: inherit; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vw, 48px); }
.sec-head h2 { font-size: calc(clamp(2rem, 4.6vw, 3rem) * var(--heading-scale)); line-height: 1.08; }
.sec-head p { margin: 0; color: var(--muted); max-width: 56ch; }
.sec-head--center { text-align: center; justify-items: center; }

/* ---------- Surfaces ---------- */
.glass {
  background: rgb(var(--text-rgb) / var(--glass-alpha));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
html[data-mode="light"] .glass { background: var(--surface); }
@media (prefers-color-scheme: light) { html[data-mode="auto"] .glass { background: var(--surface); } }

/* ---------- Buttons ---------- */
.btn {
  --cut: 8px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 500 14.5px/1 var(--font-body); letter-spacing: 0;
  transition: transform .5s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn--primary { background: var(--cta-bg); color: var(--cta-text); }
.btn--primary:hover { background: color-mix(in srgb, var(--cta-bg) 88%, #fff); }
.btn--ghost { color: var(--text); background: rgb(var(--text-rgb) / .2); }
.btn--ghost::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg); transition: background-color .25s; }
.btn--ghost:hover::before { background: color-mix(in srgb, var(--bg) 90%, var(--text)); }
.hero .btn--ghost { color: #fff; background: rgb(255 255 255 / .28); }
.hero .btn--ghost::before { background: rgb(10 10 11 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn--ghost:hover::before { background: rgb(10 10 11 / .35); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn--sm .ico { width: 15px; height: 15px; }

html[data-shape="cut"] .btn { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
html[data-shape="cut"] .btn::before { clip-path: polygon(calc(var(--cut) - .4px) 0, calc(100% - var(--cut) + .4px) 0, 100% calc(var(--cut) - .4px), 100% calc(100% - var(--cut) + .4px), calc(100% - var(--cut) + .4px) 100%, calc(var(--cut) - .4px) 100%, 0 calc(100% - var(--cut) + .4px), 0 calc(var(--cut) - .4px)); }
html[data-shape="rounded"] .btn { border-radius: 10px; }
html[data-shape="rounded"] .btn::before { border-radius: 9px; }
html[data-shape="pill"] .btn, html[data-shape="pill"] .btn::before { border-radius: 999px; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: color .25s, border-color .25s, background-color .25s;
}
.icon-btn:hover { color: var(--text); border-color: rgb(var(--text-rgb) / .4); background: var(--hover); }
.icon-btn .ico { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero {
  --text: #EDEDEA; --text-rgb: 237 237 234; color: var(--text);
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate; background: #050506;
}
.hero__media { position: absolute; inset: -4% -2%; z-index: -3; will-change: transform; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity 2s var(--ease); }
.hero__media video.is-ready { opacity: .85; }
.hero__moon { /* fallback art when there is no poster image */
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgb(250 247 238 / .92) 0 4.2%, rgb(250 247 238 / .12) 4.6%, transparent 13%),
    radial-gradient(ellipse at 70% 30%, rgb(255 255 255 / .05), transparent 40%),
    linear-gradient(180deg, #0b0b0e, #050506 75%);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(0 0 0 / calc(var(--overlay) * .55)) 0%, rgb(0 0 0 / calc(var(--overlay) * .45)) 40%, rgb(0 0 0 / calc(var(--overlay) * .8)) 78%, var(--bg) 100%);
}
.hero__particles, .hero__butterflies { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__particles { width: 100%; height: 100%; opacity: .7; }

.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: 12px; }
.nav__logo img { height: 30px; width: auto; }
.nav__logo-text { font: 400 19px/1 var(--font-heading); letter-spacing: -.01em; }
.nav__actions { display: flex; gap: 8px; }
@media (max-width: 520px) { .nav__actions .btn span { display: none; } .nav__actions .btn { width: 40px; padding: 0; } }

.hero__content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding-block: 40px 120px; position: relative; z-index: 2; }
.hero .eyebrow { color: rgb(255 255 255 / .62); }
.hero__title {
  font-size: calc(clamp(2.75rem, 9.5vw, 5.75rem) * var(--heading-scale)); line-height: 1; font-weight: 400;
  letter-spacing: -.025em; text-shadow: 0 2px 30px rgb(0 0 0 / .35); max-width: 14ch;
}
.hero__title em { color: rgb(255 255 255 / .82); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .w__i { display: inline-block; will-change: transform; }
.hero__sub { margin: 0; max-width: 44ch; color: rgb(255 255 255 / .7); font-size: clamp(15px, 2vw, 17px); line-height: 1.6; }
.hero__tags { margin: 0; max-width: 560px; font-size: 13px; line-height: 1.9; color: rgb(255 255 255 / .62); text-wrap: balance; }
.hero__tags .sep { color: rgb(255 255 255 / .35); margin: 0 4px 0 2px; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
@media (max-width: 480px) { .hero__ctas { width: 100%; flex-direction: column; } .hero__ctas .btn { width: 100%; } }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; padding: 8px; }
.hero__scroll i { display: block; width: 1px; height: 36px; background: linear-gradient(rgb(255 255 255 / .6), transparent); animation: drip 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Optional butterflies (off by default — the video already has them) */
.bf { position: absolute; top: 0; left: 0; opacity: .55; will-change: transform; }
.bf svg { width: 100%; height: 100%; overflow: visible; }
.bf__wing { transform-box: view-box; transform-origin: 20px 16px; animation: flap calc(.5s / max(var(--motion), .4)) ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.5); } }
.bf--css { animation: drift var(--dur, 30s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes drift {
  0% { transform: translate(var(--x0), 105vh) rotate(-6deg); }
  33% { transform: translate(calc(var(--x0) + 6vw), 64vh) rotate(4deg); }
  66% { transform: translate(calc(var(--x0) - 4vw), 30vh) rotate(-4deg); }
  100% { transform: translate(var(--x0), -12vh) rotate(3deg); }
}

/* ---------- Sections ---------- */
main { position: relative; z-index: 1; }
.section { padding-block: clamp(72px, 11vw, 128px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.founder + .section { border-top: 0; padding-top: clamp(40px, 6vw, 72px); }

/* Founder */
.founder { margin-top: -88px; position: relative; z-index: 4; padding-bottom: clamp(24px, 5vw, 48px); }
.founder--flat { margin-top: 0; }
.founder__card { position: relative; padding: clamp(24px, 4.5vw, 44px); display: grid; gap: 26px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: 0 30px 80px -40px rgb(0 0 0 / .7); }
@media (min-width: 760px) { .founder__card { grid-template-columns: auto 1fr; align-items: start; gap: 40px; } }
.founder__photo { width: 112px; height: 112px; border-radius: calc(var(--radius) + 2px); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg); }
@media (min-width: 760px) { .founder__photo { width: 148px; height: 148px; } }
.founder__photo img, .founder__mono { width: 100%; height: 100%; object-fit: cover; }
.founder__mono { display: grid; place-items: center; font: 400 44px/1 var(--font-heading); color: var(--muted); }
.founder__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.founder__badge i { width: 7px; height: 7px; border-radius: 50%; background: #3FB950; }
.founder__name { font-size: calc(clamp(2rem, 4.6vw, 2.75rem) * var(--heading-scale)); line-height: 1.05; margin: 10px 0 6px; }
.founder__role { color: var(--muted); }
.founder__bio { margin: 18px 0 0; color: var(--muted); max-width: 58ch; }
.founder__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; color: var(--faint); font-size: 14px; }
.founder__meta span { display: inline-flex; align-items: center; gap: 7px; }
.founder__meta .ico { width: 15px; height: 15px; }
.founder__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.founder__socials { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .founder__actions > .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; } .founder__socials { width: 100%; } }

/* Links hub */
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.sec-head--center + .filters { justify-content: center; }
.filter { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: color .25s, border-color .25s, background-color .25s; }
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link[hidden] { display: none; }
.link a {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; min-height: 72px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgb(var(--text-rgb) / var(--glass-alpha));
  transition: border-color .25s, background-color .25s;
}
.link a:hover { border-color: var(--line-strong); background: var(--hover); }
.link__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: calc(var(--radius) * .7); border: 1px solid var(--line); color: var(--muted); overflow: hidden; transition: color .25s; }
.link a:hover .link__icon { color: var(--text); }
.link__icon .ico { width: 19px; height: 19px; }
.link__icon img { width: 100%; height: 100%; object-fit: cover; }
.link__body { flex: 1; min-width: 0; }
.link__title { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.link__sub { display: block; color: var(--faint); font-size: 13.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link__go { flex: none; color: var(--faint); transition: color .25s, transform .35s var(--ease); }
.link a:hover .link__go { color: var(--text); transform: translate(2px, -2px); }
.link__go .ico { width: 16px; height: 16px; }
.link--solid a { background: var(--surface); }
.link--outline a { background: transparent; }
.link--accent a { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.link--accent a:hover { background: color-mix(in srgb, var(--accent) 90%, #fff); border-color: var(--accent); }
.link--accent .link__icon { border-color: rgb(0 0 0 / .14); color: #0a0a0a; }
.link--accent .link__sub, .link--accent .link__go, .link--accent a:hover .link__go { color: rgb(0 0 0 / .6); }
.link--featured a { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
.link--featured .link__thumb { aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid var(--line); }
.link--featured .link__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.link--featured a:hover .link__thumb img { transform: scale(1.03); }
.link--featured .link__row { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; }

/* Cards (services, portfolio) */
.grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 28px 26px; transition: border-color .25s, background-color .25s; }
.card:hover { border-color: var(--line-strong); }
.card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); margin-bottom: 22px; }
.card__icon .ico { width: 18px; height: 18px; }
.card h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s; }
.card__more:hover { border-color: var(--text); }
.card__more .ico { width: 14px; height: 14px; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 860px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { padding: clamp(24px, 4vw, 40px) 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric__num { font: 400 calc(clamp(2.4rem, 5.5vw, 3.4rem) * var(--heading-scale))/1 var(--font-heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric__label { margin-top: 12px; display: block; }

/* Portfolio */
.work { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work:hover .work__img img { transform: scale(1.03); }
.work__img--empty { display: grid; place-items: center; color: var(--faint); }
.work__img--empty .ico { width: 32px; height: 32px; }
.work__body { padding: 22px 24px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.work__body h3 { font-size: 1.4rem; }
.work__body p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.work__actions { display: flex; gap: 18px; margin-top: 4px; }
.work__actions .card__more { margin-top: 6px; }

/* Testimonials */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 440px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 16px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; padding: 30px 28px; display: flex; flex-direction: column; gap: 22px; margin: 0; }
.quote__mark { color: var(--faint); width: 22px; height: 22px; }
.quote blockquote { margin: 0; font: 400 1.2rem/1.55 var(--font-heading); flex: 1; }
.quote__stars { display: flex; gap: 2px; color: var(--accent); }
.quote__stars .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__who img, .quote__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.quote__avatar { display: grid; place-items: center; color: var(--muted); font: 400 15px var(--font-heading); }
.quote__who strong { display: block; font-weight: 500; font-size: 15px; }
.quote__who span span { color: var(--faint); font-size: 13.5px; }
.quotes-nav { display: flex; gap: 8px; margin-top: 10px; }
.quotes-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: color .25s, border-color .25s; }
.quotes-nav button:hover { color: var(--text); border-color: rgb(var(--text-rgb) / .4); }
.quotes-nav .ico { width: 16px; height: 16px; }
[data-quotes-prev] .ico { transform: rotate(180deg); }

/* Contact */
.contact { display: grid; gap: 12px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__list { list-style: none; margin: 0; padding: 6px 0; }
.contact__list li + li { border-top: 1px solid var(--line); }
.contact__list a, .contact__list div { display: flex; align-items: center; gap: 16px; padding: 16px 22px; transition: background-color .25s; }
.contact__list a:hover { background: var(--hover); }
.contact__list .ico { width: 18px; height: 18px; color: var(--faint); }
.contact__list small { display: block; font: 500 10.5px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.contact__list span { word-break: break-word; }
.contact__cta { padding: clamp(28px, 5vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.contact__cta h3 { font-size: calc(clamp(1.8rem, 3.6vw, 2.4rem) * var(--heading-scale)); line-height: 1.12; margin-top: 16px; }
.contact__cta p { color: var(--muted); margin: 12px 0 0; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.footer { padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.footer a:hover { color: var(--text); }

/* ---------- Lead form ---------- */
.lead { padding: clamp(24px, 4vw, 36px); max-width: 500px; margin: 0 auto 64px; position: relative; background: var(--surface); }
.lead__head h2 { font-size: 1.85rem; line-height: 1.15; margin: 12px 0 8px; }
.lead__head p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.lead__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: none; place-items: center; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s; }
.lead__close:hover { background: var(--hover); color: var(--text); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field label b { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 15px/1.4 var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color .2s; appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 92px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select.input option { background: var(--surface); color: var(--text); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: rgb(var(--text-rgb) / .55); }
.field.has-error .input { border-color: #e5484d; }
.field__err { color: #ff6369; font-size: 12.5px; }
.field__err:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: 12.5px; color: var(--faint); text-align: center; margin: 2px 0 0; }
.form__status { font-size: 14px; border-radius: 10px; padding: 12px 14px; display: none; }
.form__status.is-error { display: block; background: rgb(229 72 77 / .08); color: #ff9592; border: 1px solid rgb(229 72 77 / .3); }
html[data-mode="light"] .form__status.is-error { color: #b91c1c; }
.lead__done { display: none; text-align: center; padding: 8px 0; }
.lead__done .ok { width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text); }
.lead__done .ok .ico { width: 22px; height: 22px; }
.lead__done h2 { font-size: 1.9rem; margin-bottom: 10px; }
.lead__done p { color: var(--muted); margin: 0 0 24px; }
.lead.is-done .form, .lead.is-done .lead__head { display: none; }
.lead.is-done .lead__done { display: block; }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading .ico { display: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

html.js .lead-layer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; overscroll-behavior: contain; }
html.js .lead-layer.is-open { opacity: 1; visibility: visible; }
html.js .lead-layer .lead { margin: 0; width: 100%; max-height: calc(100svh - 32px); overflow-y: auto; transform: translateY(16px); transition: transform .45s var(--ease); box-shadow: 0 40px 100px -30px rgb(0 0 0 / .8); }
html.js .lead-layer.is-open .lead { transform: none; }
html.js .lead__close { display: grid; }
body.is-locked { overflow: hidden; }

/* ---------- WhatsApp widget ---------- */
.wa-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; gap: 10px; }
.wa-fab__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .6); transition: background-color .25s, color .25s, border-color .25s, transform .5s var(--ease); }
.wa-fab__btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.wa-fab__btn .ico { width: 22px; height: 22px; }
.wa-fab__tip { padding: 8px 12px; border-radius: 8px; font-size: 13px; background: var(--surface); color: var(--text); border: 1px solid var(--line); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; white-space: nowrap; }
.wa-fab:hover .wa-fab__tip, .wa-fab:focus-within .wa-fab__tip { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 16px; left: 50%; z-index: 120; transform: translate(-50%, calc(-100% - 40px)); visibility: hidden; width: min(92vw, 420px); padding: 13px 18px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -20px #000; font-size: 14px; text-align: center; transition: transform .5s var(--ease), visibility .5s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); width: 100%; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / .9); }
.lightbox__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track img { width: 100%; max-height: 80vh; object-fit: contain; scroll-snap-align: center; background: #000; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; font-size: 14px; }
.lightbox__bar button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); }

/* ---------- Ambient (both off by default) ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgb(255 255 255 / .035), transparent 60%); opacity: 0; transition: opacity .6s; will-change: transform; }
.cursor-glow.is-on { opacity: 1; }
.grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Reveal initial state only applies when JS will animate it. */
html.motion [data-reveal] { opacity: 0; transform: translate3d(0, calc(18px * var(--motion)), 0); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.motion.gsap [data-reveal] { transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain, .hero__particles, .hero__butterflies, .cursor-glow { display: none; }
}
html[data-motion="0"] .hero__butterflies, html[data-motion="0"] .hero__particles { display: none; }
html[data-motion="0"] *, html[data-motion="0"] *::before, html[data-motion="0"] *::after { animation: none !important; }

/* Back to top — sits above the WhatsApp button */
.to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 64px); z-index: 79;
  width: 44px; height: 44px; margin-right: 4px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, visibility .3s, transform .4s var(--ease), background-color .25s, color .25s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--text); color: var(--bg); }
.to-top .ico { width: 18px; height: 18px; transform: rotate(-90deg); }
.to-top--solo { bottom: max(18px, env(safe-area-inset-bottom)); }

/* ---------- Performance: smooth on phones / low-end GPUs ---------- */
/* Off-screen hero: stop infinite CSS loops so scrolling never pays for them. */
.hero-off .bf, .hero-off .bf__wing, .hero-off .hero__scroll i { animation-play-state: paused; }
/* Touch devices: full-screen blur and the fixed noise layer are the main
   causes of scroll / modal-open jank. Swap them for flat, slightly more
   opaque fills that look the same at a glance. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .grain { display: none; }
  html.js .lead-layer { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(0 0 0 / .78); }
  .founder__card { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .hero .btn--ghost::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(10 10 11 / .72); }
  .lead { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
