/* AURORA MEDIA portfolio — Telegram Mini App.
   Look: near-black void, acid lime #CCFF00 as the signal colour, the agency red as the second light,
   and an "aurora" glow drifting behind everything (the studio's name, made visible).
   Motion: one heavy signature curve (0.32, 0.72, 0, 1); intro 800–1000 ms, reveals 800 ms, feedback ≤150 ms. */
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap;
  src: url(fonts/unbounded-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap;
  src: url(fonts/unbounded-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url(fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url(fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url(fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url(fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --void: #050505;
  --lime: #ccff00;
  --lime-deep: #a8d400;
  --red: #ff2d4f;
  --text: #f4f4ef;
  --muted: #9a9a93;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --hair: rgba(255, 255, 255, 0.09);
  --gutter: 20px;
  --r-outer: 28px;
  --r-inner: 22px;  /* outer radius − bezel padding: concentric curves */
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Golos Text", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0 auto; max-width: 760px; min-height: 100dvh;
  padding: 0 var(--gutter) calc(48px + env(safe-area-inset-bottom));
  background: transparent; color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--void); }

/* ── Ambient: aurora orbs + grain (fixed, GPU-only) ───────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--void); }
.orb { position: absolute; border-radius: 50%; filter: blur(56px) saturate(160%); opacity: 1; will-change: transform; }
.orb-lime  { width: 70vw; height: 70vw; left: -20vw; top: -18vw; background: radial-gradient(circle, rgba(204,255,0,.7), transparent 65%); animation: drift-a 16s var(--ease) infinite alternate; }
.orb-red   { width: 60vw; height: 60vw; right: -25vw; top: 38vh; background: radial-gradient(circle, rgba(255,45,79,.6), transparent 65%); animation: drift-b 19s var(--ease) infinite alternate; }
.orb-lime-2{ width: 50vw; height: 50vw; left: 10vw; bottom: -25vw; background: radial-gradient(circle, rgba(204,255,0,.4), transparent 65%); animation: drift-a 22s var(--ease) infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(12vw, 10vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-14vw, -12vh, 0) scale(0.9); } }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.06;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Floating island header ───────────────────────────────────────────────── */
.island {
  position: sticky; top: calc(10px + env(safe-area-inset-top)); z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: calc(10px + env(safe-area-inset-top)) auto 0; padding: 6px 6px 6px 16px; max-width: 520px;
  border-radius: 999px; border: 1px solid var(--hair);
  background: rgba(10, 10, 10, 0.62); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.logo b { font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.mark { width: 20px; height: 20px; fill: var(--lime); }
.island-cta {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: var(--void); font-weight: 600; font-size: 14px;
  transition: transform 150ms var(--ease), background-color 300ms var(--ease);
}
.island-cta::after { content: ""; position: absolute; inset: -4px; }
.island-cta { position: relative; }
.island-cta:active { transform: scale(0.96); background: var(--lime-deep); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { min-height: calc(88dvh - 60px); display: flex; flex-direction: column; justify-content: flex-end; padding: 56px 0 48px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px;
  padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--hair); background: var(--glass);
  font-size: 13px; color: var(--text);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(204,255,0,.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(204,255,0,0); } 100% { box-shadow: 0 0 0 0 rgba(204,255,0,0); } }
.hero h1 {
  margin: 0; font: 600 clamp(42px, 13.5vw, 84px)/0.96 var(--display); letter-spacing: -0.04em; color: var(--text);
}
.hero h1 .line:nth-child(2) { color: var(--lime); text-shadow: 0 0 28px rgba(204,255,0,.55), 0 0 80px rgba(204,255,0,.25); }  /* the promise, in signal colour */
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.settled .line { overflow: visible; }  /* after the reveal, let the neon glow breathe past the mask */
.line > span { display: block; will-change: transform; }
.lead { margin: 28px 0 0; max-width: 34ch; font-size: 17px; color: var(--muted); }

/* ── Scroll-driven ribbon: one lime tape across the whole screen, pushed by the scroll ── */
.ribbons { position: relative; width: 100vw; margin: 12px 0 0 calc(50% - 50vw); padding: calc(3vw + 24px) 0; overflow: hidden; }  /* clipped exactly at the screen edges */
.ribbon { position: relative; width: 112vw; margin-left: -6vw; padding: 14px 0; overflow: hidden; }
.ribbon-lime { background: var(--lime); color: var(--void); transform: rotate(-3deg);
  box-shadow: 0 0 60px rgba(204,255,0,.45), 0 24px 120px -20px rgba(204,255,0,.6); }
.ribbon-track { display: flex; width: max-content; will-change: transform; }
.ribbon-lime .ribbon-track span { font: 600 22px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; padding: 0 18px; }
.ribbon-lime .ribbon-track span.star { color: var(--red); padding: 0 4px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.block { padding: 96px 0 0; }
.section-title { margin: 0 0 28px; font: 600 clamp(28px, 8vw, 40px)/1.05 var(--display); letter-spacing: -0.03em; }

/* ── Double-bezel: outer tray + inner core ────────────────────────────────── */
.bezel { padding: 6px; border-radius: var(--r-outer); background: var(--glass); border: 1px solid var(--hair); }
.core {
  border-radius: var(--r-inner); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.12);
}

/* Team bento */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento li:first-child { grid-column: 1 / -1; }
.bento .core { height: 100%; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.bento svg { width: 30px; height: 30px; fill: none; stroke: var(--lime); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bento .role { font: 600 15px/1.2 var(--display); letter-spacing: -0.02em; hyphens: auto; }
.bento .what { color: var(--muted); font-size: 14px; line-height: 1.45; }
.bento li:first-child .core { background: var(--lime); box-shadow: none; }
.bento li:first-child .role { color: var(--void); font-size: 22px; }
.bento li:first-child .what { color: rgba(5,5,5,.72); }
.bento li:first-child svg { stroke: var(--void); }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs {
  position: sticky; top: calc(66px + env(safe-area-inset-top)); z-index: 4;
  display: flex; gap: 6px; overflow-x: auto; margin: 0 0 28px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--hair);
  background: rgba(10, 10, 10, 0.62); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font-size: 14px; cursor: pointer;
  transition: color 400ms var(--ease);
}
.tab.active { color: var(--void); font-weight: 600; }
.tab-indicator {
  position: absolute; z-index: 0; left: 0; top: 5px; height: 40px; width: 0; border-radius: 999px; background: var(--lime);
  transition: transform 600ms var(--ease), width 600ms var(--ease);
}

/* ── Works ────────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; transition: opacity 220ms var(--ease-in); }
.grid.swapping { opacity: 0; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.work.featured { grid-column: 1 / -1; }
.work .bezel { padding: 5px; border-radius: 24px; transition: transform 150ms var(--ease), border-color 400ms var(--ease); }
.work:active .bezel { transform: scale(0.97); border-color: rgba(204,255,0,.5); }
.frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 19px; overflow: hidden;
  background: #121212 center / cover no-repeat; box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
}
.work.featured .frame { aspect-ratio: 4 / 5; }
.frame .placeholder {
  position: absolute; left: 16px; right: 16px; bottom: 18px;
  font: 600 20px/1.08 var(--display); color: var(--lime); letter-spacing: -0.03em;
}
.frame .kind {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.55); border: 1px solid var(--hair); color: var(--text); font-size: 12px;
}
.frame .play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(204,255,0,.18), 0 0 40px rgba(204,255,0,.6);
  animation: halo 2.2s var(--ease) infinite;
}
@keyframes halo { 50% { box-shadow: 0 0 0 16px rgba(204,255,0,.08), 0 0 60px rgba(204,255,0,.8); } }
.frame .play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--void); }
.frame .demo { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: var(--glass-2); color: var(--muted); font-size: 11px; }
.work-title { margin: 14px 4px 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.work.featured .work-title { font: 600 22px/1.15 var(--display); letter-spacing: -0.025em; }
.work-client { margin: 4px 4px 0; font-size: 13px; color: var(--muted); }
.empty { margin: 24px 0; color: var(--muted); }

/* ── CTA card ─────────────────────────────────────────────────────────────── */
.cta-card .core { padding: 32px 22px 22px; background: radial-gradient(120% 90% at 0% 0%, rgba(204,255,0,.22), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.cta-title { margin: 0 0 28px; font: 600 clamp(24px, 7vw, 34px)/1.12 var(--display); letter-spacing: -0.03em; max-width: 18ch; }

/* Island button: pill with the arrow in its own circle */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  min-height: 60px; padding: 8px 8px 8px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: var(--void); font-weight: 600; font-size: 17px;
  transition: transform 150ms var(--ease), background-color 400ms var(--ease);
}
.btn-icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--void); display: grid; place-items: center;
  transition: transform 500ms var(--ease);
}
.btn-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-pill:active { transform: scale(0.98); background: var(--lime-deep); }
.btn-pill:active .btn-icon, .btn-pill:hover .btn-icon { transform: translate(3px, -2px) scale(1.05); }
.btn-ghost { background: var(--glass-2); color: var(--text); border: 1px solid var(--hair); margin-top: 16px; }
.btn-ghost .btn-icon { background: var(--lime); }
.btn-ghost .btn-icon svg { stroke: var(--void); }
.btn-ghost:active { background: rgba(255,255,255,.12); }
.tg .cta-card .btn-pill { display: none; }  /* Telegram shows its own lime MainButton */

/* ── Detail sheet ─────────────────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 500ms var(--ease); }
.sheet-body {
  position: relative; width: 100%; max-width: 760px; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #0c0c0c; border: 1px solid var(--hair); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 52px 0 calc(32px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 700ms var(--ease);
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-body { transform: none; }
.sheet.closing .sheet-body { transition: transform 380ms var(--ease-in); }
.sheet-grip { position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255,255,255,.18); }
.sheet-close { position: absolute; right: 8px; top: 4px; width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.sheet-close::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--hair); }
.sheet-close svg { position: relative; width: 12px; height: 12px; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.sheet-media { margin: 0 12px; border-radius: 20px; overflow: hidden; }
.sheet-media:empty { display: none; }
.sheet-media img, .sheet-media video, .sheet-media iframe { display: block; width: 100%; border: 0; background: #000; }
.sheet-media iframe { aspect-ratio: 16 / 9; }
.sheet-media iframe.insta { aspect-ratio: auto; height: min(76dvh, 720px); background: #fff; }
.sheet-media video { max-height: 72dvh; }
.sheet-media audio { width: 100%; }
.sheet-media .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.sheet-media .gallery img { flex: none; scroll-snap-align: start; max-height: 72dvh; object-fit: contain; }
.sheet-media .frame { aspect-ratio: 16 / 10; border-radius: 0; }
.sheet-text { padding: 24px var(--gutter) 0; max-width: 62ch; }
.sheet-cat { margin: 0; font-size: 13px; color: var(--lime); }
.sheet-text h3 { margin: 8px 0 6px; font: 600 26px/1.12 var(--display); letter-spacing: -0.03em; }
.sheet-text p { margin: 8px 0; }
.sheet-client, #sheet-desc { color: var(--muted); }
.results { list-style: none; padding: 0; margin: 20px 0 4px; display: grid; gap: 8px; }
.results li { padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); }

/* ── Intro choreography ───────────────────────────────────────────────────── */
.is-loading .orb { opacity: 0; }
.is-loading .line > span { transform: translateY(110%); }
.is-loading .reveal-intro, .is-loading .island { opacity: 0; transform: translateY(16px); }
.is-loading .ribbons:not(.ribbons-end) { opacity: 0; transform: translateY(40px); }
.is-ready .orb { transition: opacity 1600ms var(--ease); }
.is-ready .line > span { transition: transform 1000ms var(--ease); transition-delay: calc(150ms + var(--i) * 90ms); }
.is-ready .island { transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.is-ready .reveal-intro { transition: opacity 800ms var(--ease) 500ms, transform 800ms var(--ease) 500ms; }
.is-ready .ribbons { transition: opacity 900ms var(--ease) 700ms, transform 900ms var(--ease) 700ms; }

/* Scroll reveals: heavy fade-up with blur, once per element */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.bezel.reveal.in, .work.reveal.in .bezel { animation: edge 1.6s var(--ease) 1; }
@keyframes edge { 30% { border-color: rgba(204,255,0,.7); box-shadow: 0 0 40px -6px rgba(204,255,0,.45); } }

/* ── Reduced motion: everything in its final state ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ── Cabinet card: real numbers from the Meta ad account ─────────────────── */
.cabinet .core { padding: 18px 18px 14px; }
.cabinet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 13px; }
.live { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(204,255,0,.12); color: var(--lime); font-weight: 600; }
.cabinet-src { color: var(--muted); text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin: 0 0 18px; }
.kpis div { min-width: 0; }
.kpis dt { font: 600 clamp(22px, 6.8vw, 34px)/1 var(--display); letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.kpis div:first-child { grid-column: 1 / -1; }
.kpis div:first-child dt { color: var(--lime); text-shadow: 0 0 24px rgba(204,255,0,.45); font-size: clamp(44px, 14vw, 64px); }
.kpis dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.spark { margin: 0; }
.spark svg { display: block; width: 100%; height: 96px; overflow: visible; }
.spark-line { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(204,255,0,.8));
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2200ms var(--ease) 300ms; }
.spark-area { opacity: 0; transition: opacity 1200ms var(--ease) 1400ms; }
.spark-dot { fill: var(--lime); opacity: 0; filter: drop-shadow(0 0 8px var(--lime)); transition: opacity 400ms var(--ease) 2300ms; }
.cabinet.in .spark-line { stroke-dashoffset: 0; }
.cabinet.in .spark-area, .cabinet.in .spark-dot { opacity: 1; }
.spark figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ── Services: big-type accordion ────────────────────────────────────────── */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.services li { border-bottom: 1px solid var(--hair); }
.svc-btn {
  width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: 600 clamp(19px, 5.6vw, 26px)/1.15 var(--display); letter-spacing: -0.03em;
  transition: color 400ms var(--ease);
}
.svc-star { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hair); color: var(--lime); font-size: 16px; transition: transform 700ms var(--ease), background-color 400ms var(--ease), color 400ms var(--ease); }
.services li.open .svc-btn { color: var(--lime); }
.services li.open .svc-star { transform: rotate(135deg); background: var(--lime); color: var(--void); box-shadow: 0 0 24px rgba(204,255,0,.6); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--ease); }
.svc-body > p { overflow: hidden; margin: 0; color: var(--muted); max-width: 46ch; }
.services li.open .svc-body { grid-template-rows: 1fr; }
.services li.open .svc-body > p { padding-bottom: 20px; }

/* ── Lead: two CTAs ───────────────────────────────────────────────────────── */
.cta-card .btn-pill + .btn-pill { margin-top: 10px; }
.btn-lead { animation: glow 2.6s var(--ease) infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(204,255,0,.12), 0 0 48px rgba(204,255,0,.55); } }
.tg .cta-card #contact { display: inline-flex; }  /* the lead button stays; MainButton covers "write" */
.tg .cta-card .btn-lead { display: inline-flex; }

/* ── Lead quiz sheet ─────────────────────────────────────────────────────── */
.lead-body { padding: 56px var(--gutter) calc(28px + env(safe-area-inset-bottom)); min-height: 62dvh; }
.progress { height: 4px; border-radius: 2px; background: var(--glass-2); overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 12px var(--lime); transition: width 600ms var(--ease); }
.lead-step { margin: 0; font-size: 13px; color: var(--muted); }
.lead-q { margin: 6px 0 22px; font: 600 26px/1.12 var(--display); letter-spacing: -0.03em; }
.lead-stage { animation: step-in 600ms var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(32px); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--glass);
  color: var(--text); font-size: 15px; cursor: pointer; transition: transform 150ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--lime); color: var(--void); border-color: var(--lime); box-shadow: 0 0 24px rgba(204,255,0,.45); font-weight: 600; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.field input {
  width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--hair);
  background: var(--glass); color: var(--text); font: inherit; font-size: 17px; outline: none;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.field input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(204,255,0,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-actions { margin-top: 22px; }
.lead-error { margin: 14px 0 0; color: #ff8a9b; font-size: 14px; }
.lead-done { text-align: left; }
.lead-done .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: 0 0 60px rgba(204,255,0,.6); animation: pop 700ms var(--ease); }
.lead-done .big-check svg { width: 30px; height: 30px; fill: none; stroke: var(--void); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 600ms var(--ease) 300ms forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { padding: 96px 0 24px; }
.footer-big { margin: 0 0 16px; font: 600 clamp(40px, 13vw, 88px)/0.9 var(--display); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(204,255,0,.55); }
.footer-line { margin: 4px 0; color: var(--muted); font-size: 14px; }
.footer-line a { color: var(--lime); text-decoration: none; }

/* ── 3D mark: 40 stacked layers of the "A", lit edges, glow underneath ───── */
.mark3d { position: absolute; right: -8px; top: calc(96px + env(safe-area-inset-top)); width: min(46vw, 220px); aspect-ratio: 1;
  perspective: 700px; touch-action: none; cursor: grab; z-index: 0; }
.mark3d:active { cursor: grabbing; }
.mark3d-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(204,255,0,.55), transparent 70%);
  filter: blur(24px); animation: breathe 4s var(--ease) infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }
.mark3d-obj { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-12deg); will-change: transform; }
.mark3d-layer { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(var(--z)); backface-visibility: visible; }
.mark3d-layer path { fill: color-mix(in srgb, var(--lime) calc(25% + var(--k) * 35%), #0b0f00); }
.mark3d-layer.front path { fill: var(--lime); }
.mark3d-layer.back path { fill: #1a2200; }
.hero { position: relative; }
.hero > :not(.mark3d) { position: relative; z-index: 1; }
.is-loading .mark3d { opacity: 0; transform: scale(.6) translateY(30px); }
.is-ready .mark3d { transition: opacity 1200ms var(--ease) 300ms, transform 1400ms var(--ease) 300ms; }

/* ── Partnership ──────────────────────────────────────────────────────────── */
.partner-lead { margin: -8px 0 28px; max-width: 36ch; font-size: 18px; line-height: 1.5; color: var(--text); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.principle { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--hair); }
.principle-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(204,255,0,.12); color: var(--lime);
  font-size: 17px; transition: transform 900ms var(--ease); }
.principle.in .principle-mark { transform: rotate(180deg); }
.principle-title { margin: 0; font: 600 17px/1.25 var(--display); letter-spacing: -0.02em; }
.principle-what { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ── Budget calculator ────────────────────────────────────────────────────── */
.calc .core { padding: 22px 18px 18px; }
.calc-label { display: block; font-size: 13px; color: var(--muted); }
.calc-budget { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px; }
#calc-budget { font: 600 clamp(40px, 12vw, 56px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-day { color: var(--muted); font-size: 14px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--lime) 0 var(--p, 30%), rgba(255,255,255,.1) var(--p, 30%) 100%);
  box-shadow: 0 0 18px rgba(204,255,0,.35); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--lime); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: var(--lime); border: 4px solid var(--void); box-shadow: 0 0 0 2px var(--lime), 0 0 24px rgba(204,255,0,.8);
  transition: transform 150ms var(--ease); }
.range:active::-webkit-slider-thumb { transform: scale(1.18); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 4px solid var(--void); box-shadow: 0 0 0 2px var(--lime), 0 0 24px rgba(204,255,0,.8); }
.calc-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -2px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 24px 0 22px; padding-top: 22px; border-top: 1px solid var(--hair); }
.calc-main { grid-column: 1 / -1; }
.calc-big { display: block; font: 600 clamp(44px, 14vw, 68px)/1 var(--display); letter-spacing: -0.045em; color: var(--lime);
  text-shadow: 0 0 30px rgba(204,255,0,.5); font-variant-numeric: tabular-nums; }
.calc-row > span:first-child { display: block; font: 600 20px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-cap { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.calc-note { margin: 16px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ── Cases ────────────────────────────────────────────────────────────────── */
.cases { display: grid; gap: 16px; }
.case .core { padding: 22px 18px 18px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,45,79,.18), transparent 55%), radial-gradient(120% 90% at 0% 100%, rgba(204,255,0,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.case-niche { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: rgba(204,255,0,.12); color: var(--lime); font-size: 13px; font-weight: 600; }
.case-title { margin: 16px 0 22px; font: 600 clamp(22px, 6.4vw, 30px)/1.15 var(--display); letter-spacing: -0.03em; }
.case-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-facts li { padding: 16px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--hair); }
.case-facts li:first-child { grid-column: 1 / -1; background: var(--lime); border-color: var(--lime); color: var(--void);
  box-shadow: 0 0 50px -8px rgba(204,255,0,.55); }
.case-facts b { display: block; font: 600 clamp(24px, 7.5vw, 34px)/1 var(--display); letter-spacing: -0.04em; }
.case-facts li:first-child b { font-size: clamp(36px, 11vw, 52px); }
.case-facts span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.case-facts li:first-child span { color: rgba(5,5,5,.7); }
.case.in .case-facts li { animation: fact-in 900ms var(--ease) both; }
.case.in .case-facts li:nth-child(2) { animation-delay: 120ms; }
.case.in .case-facts li:nth-child(3) { animation-delay: 240ms; }
@keyframes fact-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* ── Language switch in the island ────────────────────────────────────────── */
.island-right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--hair); }
.lang button { min-width: 36px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: none;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: background-color 400ms var(--ease), color 400ms var(--ease); position: relative; }
.lang button::after { content: ""; position: absolute; inset: -7px -2px; }  /* ≥44px tap height */
.lang button[aria-pressed="true"] { background: var(--text); color: var(--void); }
@media (max-width: 400px) {
  .island { padding-left: 12px; gap: 8px; }
  .logo { gap: 6px; font-size: 12px; }
  .lang button { min-width: 30px; padding: 0 6px; }
  .island-cta { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 340px) { .logo b { display: none; } }

/* ── Call slot picker ─────────────────────────────────────────────────────── */
.day-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 2px var(--gutter); scrollbar-width: none; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chip { flex: none; min-width: 58px; min-height: 64px; padding: 8px 10px; border-radius: 18px; display: grid; place-items: center; gap: 2px; }
.day-name { font-size: 12px; color: inherit; opacity: .75; }
.day-num { font: 600 20px/1 var(--display); }
.time-chips .chip { min-width: 76px; }
.slot-later { margin-top: 18px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted);
  font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lead-done .btn-pill { margin-top: 22px; }

.done-slot { font: 600 18px/1.3 var(--display); color: var(--lime); letter-spacing: -0.02em; }

/* ── Clients: a quiet grayscale logo row, lit lime on touch ───────────────── */
.clients-block { padding-top: 72px; }
.logos { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos-track { display: flex; align-items: center; width: max-content; }
.logos-track > div { display: flex; align-items: center; }
.logos[data-drag] { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.logos.dragging { cursor: grabbing; }
.logo-item { flex: none; display: grid; place-items: center; height: 72px; padding: 0 36px; color: rgba(244,244,239,.42);
  font: 600 clamp(22px, 6vw, 30px)/1 var(--display); letter-spacing: -0.03em; white-space: nowrap;
  transition: color 400ms var(--ease), text-shadow 400ms var(--ease); }
.logo-item img { max-height: 40px; max-width: 150px; filter: grayscale(1) brightness(1.6); opacity: .55; transition: filter 400ms var(--ease), opacity 400ms var(--ease); }
.logo-item:hover, .logo-item:active { color: var(--lime); text-shadow: 0 0 24px rgba(204,255,0,.5); }
.logo-item:hover img, .logo-item:active img { filter: none; opacity: 1; }
.logo-sep { flex: none; color: var(--lime); opacity: .5; font-size: 14px; }
@keyframes logos { to { transform: translateX(-50%); } }
.logo-mark { display: block; background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-item:hover .logo-mark, .logo-item:active .logo-mark { filter: drop-shadow(0 0 12px rgba(204,255,0,.5)); }
.logo-frame { display: grid; padding: 5px 10px 4px; border: 3px solid currentColor; text-align: left;
  font: 800 17px/0.95 var(--body); letter-spacing: 0.01em; text-transform: uppercase; }
.logo-condensed { font: 700 30px/1 "Arial Narrow", "Roboto Condensed", var(--body); letter-spacing: -0.02em; transform: scaleX(0.86); }
.logos.ribbon { position: relative; left: auto; width: 100vw; padding: 8px 0; background: none; box-shadow: none; transform: none; }

/* One headline number: the whole card is about it */
.cabinet.solo .core { padding: 24px 22px 30px; }
.cabinet.solo .kpis { margin: 8px 0 0; }
.cabinet.solo .kpis div:first-child dt { font-size: clamp(64px, 21vw, 120px); letter-spacing: -0.06em; line-height: .9;
  text-shadow: 0 0 40px rgba(204,255,0,.5), 0 0 120px rgba(204,255,0,.25); }
.cabinet.solo .kpis dd { margin-top: 14px; font-size: 16px; color: var(--text); max-width: 26ch; }
.kpi-before { display: block; margin-bottom: 6px; font: 600 clamp(18px, 5.5vw, 26px)/1 var(--display); letter-spacing: -0.02em; color: var(--lime); }
.cabinet-src:empty { display: none; }

/* ── Hero offer: free Instagram audit ─────────────────────────────────────── */
.hero-cta { margin-top: 28px; max-width: 460px; }
.hero-cta .btn-pill { width: 100%; }
.hero-cta-note { margin: 12px 4px 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.is-ready .hero-cta { transition-delay: 800ms; }

/* FAQ reuses the services accordion; questions are set a little smaller */
.faq .svc-btn { font-size: clamp(17px, 4.8vw, 22px); }

.consent { margin: 14px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.consent a, .footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin: 10px 0 0; font-size: 12.5px; color: rgba(154,154,147,.75); }
.footer-line a[href^="tel:"] { color: var(--text); }

/* ── Document pages (privacy policy) ──────────────────────────────────────── */
.doc-page { background: var(--void); }
.doc-page .logo { color: var(--text); text-decoration: none; }
.doc-back { display: inline-grid; place-items: center; text-decoration: none; }
.doc { max-width: 680px; margin: 0 auto; padding: 48px 0 64px; }
.doc h1 { margin: 0 0 8px; font: 600 clamp(26px, 7vw, 38px)/1.1 var(--display); letter-spacing: -0.03em; }
.doc h2 { margin: 32px 0 8px; font: 600 18px/1.25 var(--display); letter-spacing: -0.02em; color: var(--lime); }
.doc p { margin: 0 0 12px; color: var(--muted); }
.doc a { color: var(--lime); }
.doc-date { font-size: 13px; }
.doc hr { margin: 56px 0; border: 0; border-top: 1px solid var(--hair); }
