/* Constantium 2026 — "the screening room".
   A dark stage where the ads are the light: deep navy, one electric-blue accent for actions,
   violet and cyan only as light behind media, each case lit in its own brand colour.
   Montserrat for display, Inter for reading. Motion: GSAP + ScrollTrigger + Lenis (main.js). */

:root {
  --bg: #05060F;
  --deep: #020309;
  --surface: #0B0D22;
  --surface-2: #131636;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #F4F5FF;
  --muted: #9AA2CE;
  --accent: #3354F4;
  --accent-2: #4A68FF;
  --violet: #7B5CFF;
  --cyan: #35D0FF;
  --display: Montserrat, Inter, "Helvetica Neue", Arial, sans-serif;
  --text: Inter, "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --step-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-h2: clamp(2.25rem, 1.4rem + 3.6vw, 4.75rem);
  --step-hero: clamp(2.9rem, 1.6rem + 5.6vw, 7.25rem);
  --step-big: clamp(3rem, 1.6rem + 6vw, 7.5rem);

  --m: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --radius: 28px;
  --gap: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.6; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--violet); color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 100; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 12px; }
.skip:focus { top: 12px; }
main > section { padding: clamp(96px, 12vw, 180px) var(--m) 0; max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; }

/* ---------- Type ---------- */
.h2, .h-mid { font-family: var(--display); font-weight: 700; font-size: var(--step-h2); line-height: 1.02; letter-spacing: -0.045em; }
.h-small { font-family: var(--display); font-weight: 700; font-size: var(--step-h3); letter-spacing: -0.02em; }
.lead, .sec-sub { font-size: var(--step-lead); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.fine { font-size: var(--step-small); color: var(--muted); margin-top: 20px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .sec-sub { justify-self: end; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word { display: inline-block; will-change: transform; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 40px -12px rgba(51, 84, 244, .8);
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(74, 104, 255, .9); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 500;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .04); }
.play-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; }
.play-dot::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid var(--bg); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
.link-arrow.sm { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.link-arrow.center { display: flex; justify-content: center; }
a.inline { color: var(--cyan); text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-bar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 32px;
  padding: 14px var(--m); background: rgba(5, 6, 15, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: transform .5s var(--ease);
}
.site-bar.hide { transform: translateY(-100%); }
.bar-word { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.site-bar nav { display: flex; gap: 6px; }
.site-bar nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .9375rem; font-weight: 500; transition: color .2s, background-color .2s; }
.site-bar nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.site-bar nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .08); }
.site-bar .bar-cta { min-height: 40px; padding: 0 18px; font-size: .9375rem; box-shadow: none; }

/* ---------- Devices (a real ad in a phone) ---------- */
.device {
  position: relative; border-radius: 34px; padding: 7px; background: #0A0B18;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 120px -40px color-mix(in srgb, var(--glow, var(--accent)) 70%, transparent);
}
.device video, .device img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; background: var(--deep); }
.device figcaption { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); white-space: nowrap; font-size: var(--step-small); color: var(--muted); }

/* ---------- Hero ---------- */
.home main > .hero { max-width: none; padding-top: 0; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center;
  min-height: calc(100svh - 68px); padding: clamp(40px, 6vh, 80px) var(--m) clamp(64px, 8vh, 96px) !important; isolation: isolate;
}
.hero-light {
  position: absolute; inset: -10% -10% 0 30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 62% 45%, rgba(123, 92, 255, .35), transparent 70%),
    radial-gradient(30% 40% at 80% 70%, rgba(53, 208, 255, .18), transparent 70%),
    radial-gradient(35% 45% at 45% 60%, rgba(51, 84, 244, .28), transparent 70%);
  filter: blur(20px);
}
.hero-copy { max-width: 760px; }
.hero-h { font-family: var(--display); font-weight: 700; font-size: var(--step-hero); line-height: .98; letter-spacing: -0.05em; margin: 22px 0 28px; }
.hero-sub { font-size: var(--step-lead); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; font-size: var(--step-small); color: var(--muted); }
.proof b { color: var(--ink); font-weight: 600; }
.hero-stage { position: relative; height: min(78svh, 760px); }
.hero-stage .device { position: absolute; top: 50%; left: 50%; width: clamp(170px, 16vw, 270px); }
.hero-stage .d2 { transform: translate(-50%, -52%); z-index: 3; width: clamp(200px, 19vw, 320px); }
.hero-stage .d1 { transform: translate(-128%, -44%) rotate(-7deg); z-index: 2; }
.hero-stage .d3 { transform: translate(28%, -44%) rotate(7deg); z-index: 2; }
.hero-stage .device figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Creative wall ---------- */
main > .wall { max-width: none; padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wall-track { display: flex; gap: 18px; width: max-content; animation: wall 110s linear infinite; }
.wall:hover .wall-track { animation-play-state: paused; }
.wall-item { width: clamp(140px, 13vw, 210px); flex: none; border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px color-mix(in srgb, var(--glow) 80%, transparent); transition: transform .5s var(--ease); }
.wall-item:hover { transform: translateY(-8px); }
.wall-item img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
@keyframes wall { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement-text { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem); line-height: 1.15; letter-spacing: -0.035em; max-width: 22ch; }
.statement-text .sw { transition: opacity .2s linear; }
.has-motion .statement-text .sw { opacity: .16; }

/* ---------- Showreel ---------- */
.reel-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--deep);
  box-shadow: 0 0 0 1px var(--line), 0 80px 160px -60px rgba(123, 92, 255, .55); }
.reel-frame video { width: 100%; aspect-ratio: 16 / 9; }
.reel-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 0 28px 0 10px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: 1.0625rem;
  box-shadow: 0 20px 60px -10px rgba(51, 84, 244, .9); transition: transform .4s var(--ease), opacity .3s; }
.reel-play-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; }
.reel-play:hover { transform: translate(-50%, -50%) scale(1.05); }
.reel-play.gone { opacity: 0; pointer-events: none; }

/* ---------- Method (live hooks) ---------- */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(40px, 7vw, 120px); align-items: center; }
.method .sec-sub { margin-top: 24px; }
.hook-list { display: grid; gap: 10px; margin-top: 40px; }
.hook { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; text-align: left; padding: 20px 24px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface); transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.hook:hover { border-color: var(--line-2); transform: translateX(4px); }
.hook[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.hook-q { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.25; }
.hook-n { font-size: var(--step-small); color: var(--muted); }
.hook[aria-pressed="true"] .hook-n { color: rgba(255, 255, 255, .8); }
.method-stage { position: relative; display: grid; justify-items: center; gap: 18px; }
.method-stage::before { content: ""; position: absolute; inset: 10% -10%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(31, 164, 99, .35), transparent 70%); filter: blur(30px); }
.device-lg { width: min(100%, 360px); }
.sound { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: var(--step-small); }
.sound[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Selected work ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2), 0 60px 120px -50px color-mix(in srgb, var(--acc) 70%, transparent); }
.case-visual { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--deep); }
.case-light { position: absolute; inset: 0; background: radial-gradient(55% 65% at 50% 60%, color-mix(in srgb, var(--acc) 55%, transparent), transparent 72%); opacity: .75; transition: opacity .6s var(--ease); }
.case-card:hover .case-light { opacity: 1; }
.cf { position: absolute; left: 50%; top: 54%; width: 26%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .8); transition: transform .8s var(--ease); }
.cf2 { transform: translate(-50%, -50%); z-index: 3; width: 30%; }
.cf1 { transform: translate(-125%, -46%) rotate(-8deg); z-index: 2; }
.cf3 { transform: translate(25%, -46%) rotate(8deg); z-index: 2; }
.case-card:hover .cf1 { transform: translate(-140%, -48%) rotate(-11deg); }
.case-card:hover .cf3 { transform: translate(40%, -48%) rotate(11deg); }
.case-card:hover .cf2 { transform: translate(-50%, -54%) scale(1.03); }
.case-meta { padding: 26px 28px 30px; display: grid; gap: 8px; }
.case-tag { font-size: var(--step-small); color: var(--tint); font-weight: 500; }
.case-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.05; }
.case-pain { color: var(--muted); max-width: 46ch; }
.case-kpi { margin-top: 10px; color: var(--muted); font-size: var(--step-small); }
.case-kpi b { font-family: var(--display); font-weight: 700; font-size: var(--step-h3); color: var(--ink); letter-spacing: -0.02em; margin-right: 6px; }
.case-kpi span { margin-left: 8px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .75rem; }
.case-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; }
.case-wide .case-visual { aspect-ratio: 16 / 10; height: 100%; }
.case-wide .case-meta { padding: 48px; }
.case-wide .case-name { font-size: var(--step-h2); }

/* ---------- Services ---------- */
.caps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.caps li { padding: 32px 0 40px; border-top: 1px solid var(--line-2); }
.caps h3 { font-family: var(--display); font-weight: 600; font-size: var(--step-h3); letter-spacing: -0.025em; margin-bottom: 12px; }
.caps p { color: var(--muted); max-width: 34ch; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.process-media { position: sticky; top: 14vh; height: 72vh; display: grid; place-items: center; }
.process-frame { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 80px 140px -50px rgba(123, 92, 255, .7); }
.process-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.process-frame img.on { opacity: 1; transform: none; }
.steps { list-style: none; margin-top: 48px; }
.steps li { padding: 34px 0; border-top: 1px solid var(--line); min-height: 34vh; transition: opacity .5s var(--ease); }
.has-motion .steps li { opacity: .35; }
.has-motion .steps li.on { opacity: 1; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: var(--step-h3); letter-spacing: -0.025em; margin-bottom: 12px; }
.steps p { color: var(--muted); max-width: 44ch; }

/* ---------- Since 2013 ---------- */
main > .since { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 7vw, 120px); align-items: end; }
.since .sec-sub { margin: 24px 0 32px; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.stats li { padding: 28px 0; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.stat { font-family: var(--display); font-weight: 700; font-size: var(--step-big); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); }
.since .fine { grid-column: 2; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 36px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { font-family: var(--display); font-weight: 600; font-size: var(--step-h3); letter-spacing: -0.02em; }
.price { font-family: var(--display); font-weight: 700; font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); letter-spacing: -0.05em; line-height: 1; margin-top: 18px; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); }
.incl { color: var(--muted); margin: 18px 0 28px; flex: 1; }
.plan .btn, .plan .btn-ghost { align-self: flex-start; }
.plan-hero { background: linear-gradient(180deg, #172056, var(--surface) 70%); box-shadow: 0 0 0 1px rgba(74, 104, 255, .55), 0 60px 120px -50px rgba(51, 84, 244, .8); }

/* ---------- FAQ ---------- */
main > .faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 32px clamp(40px, 7vw, 120px); }
.qa details { border-top: 1px solid var(--line-2); }
.qa details:last-child { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 0 26px; color: var(--muted); max-width: 60ch; }

/* ---------- Contact ---------- */
main > .contact { position: relative; text-align: center; display: grid; justify-items: center; padding-bottom: clamp(96px, 12vw, 180px); isolation: isolate; }
.contact-light { position: absolute; inset: 10% 5% 0; z-index: -1; background: radial-gradient(45% 55% at 50% 55%, rgba(51, 84, 244, .45), transparent 70%), radial-gradient(30% 40% at 65% 40%, rgba(123, 92, 255, .35), transparent 70%); filter: blur(30px); }
.contact-h { font-family: var(--display); font-weight: 700; font-size: var(--step-big); line-height: 1; letter-spacing: -0.05em; max-width: 14ch; }
.contact .sec-sub { margin: 28px auto 40px; text-align: center; }
.form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100%, 860px); }
.form label { flex: 1 1 240px; }
.form input { width: 100%; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11, 13, 34, .8); color: var(--ink); font: inherit; transition: border-color .2s, background-color .2s; }
.form input::placeholder { color: var(--muted); }
.form input:focus { outline: none; border-color: var(--accent-2); background: var(--surface-2); }

/* ---------- Footer ---------- */
.foot { padding: 64px var(--m) 0; max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.foot-col { display: grid; gap: 16px; align-content: start; }
.foot-claim { font-family: var(--display); font-weight: 600; font-size: var(--step-h3); letter-spacing: -0.02em; line-height: 1.3; }
.foot-nav a { text-decoration: none; color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }
.foot-mail { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); text-decoration: none; }
.foot-mail:hover { color: var(--cyan); }
.foot-word { font-family: var(--display); font-weight: 800; font-size: 16.6vw; line-height: .8; letter-spacing: -0.06em; color: var(--surface-2); margin: 48px 0 -2.2vw; white-space: nowrap; text-align: center; user-select: none; }
.social { list-style: none; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); --icon-cut: var(--bg); transition: background-color .25s, border-color .25s, color .25s; }
.social a:hover, .social a:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); --icon-cut: var(--ink); }

/* ---------- Shared parts used by case pages ---------- */
.phone-wrap { display: grid; justify-items: center; gap: 14px; }
.phone { border-radius: 34px; padding: 7px; background: #0A0B18; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 120px -40px color-mix(in srgb, var(--case-acc, var(--accent)) 70%, transparent); width: min(100%, 380px); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; background: var(--deep); }
.phone-ctrl { display: flex; gap: 8px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: var(--step-small); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.table-wrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.grid th, .grid td { text-align: left; padding: 18px 12px; border-bottom: 1px solid var(--line); }
.grid thead th { color: var(--muted); font-weight: 500; font-size: var(--step-small); }

/* ---------- Motion states (set by main.js / case.js, never hide content without JS) ---------- */
.has-motion [data-reveal], .has-motion [data-hero-item], .has-motion .rv { opacity: 0; transform: translateY(28px); }
.rv.in { opacity: 1 !important; transform: none !important; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .has-motion [data-reveal], .has-motion [data-hero-item], .has-motion .rv { opacity: 1; transform: none; }
  .has-motion .statement-text .sw, .has-motion .steps li { opacity: 1; }
  .wall-track { animation: none; }
  .case-card, .cf, .btn, .hook { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { height: min(70vw, 620px); }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .sec-sub { justify-self: start; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  main > .since, main > .faq { grid-template-columns: 1fr; }
  .since .fine { grid-column: 1; }
  .case-wide { grid-template-columns: 1fr; }
  .case-wide .case-meta { padding: 28px; }
}
@media (max-width: 760px) {
  .site-bar { gap: 12px; padding: 12px 18px; }
  .site-bar nav a:nth-child(n+4), .site-bar .bar-cta { display: none; }
  .site-bar nav a { padding: 8px 10px; }
  .hero-stage { height: 112vw; }
  .hero-stage .device { width: 36vw; }
  .hero-stage .d2 { width: 44vw; }
  .hero-stage .device figcaption { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .method-stage { order: -1; }
  .device-lg { width: min(76vw, 340px); }
  .process { grid-template-columns: 1fr; }
  .process-media { position: relative; top: 0; height: auto; }
  .process-frame { width: min(64vw, 280px); }
  .steps li { min-height: 0; }
  .has-motion .steps li { opacity: 1; }
  .caps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .reel-play span:last-child { display: none; }
  .reel-play { padding: 0 9px; }
}

/* fixes after round 1 */
.hero { overflow: clip; }
main > .contact { overflow: clip; }
.hero-h { font-size: clamp(2.6rem, 1.2rem + 4.9vw, 6.4rem); }
@media (max-width: 1000px) { .method { grid-template-columns: 1fr; } .method-stage { order: -1; } }
@media (max-width: 760px) { .contact-h { font-size: clamp(2.25rem, 1.2rem + 5vw, 3rem); } }
html { overflow-x: clip; }
.case-wide .case-visual { aspect-ratio: auto; min-height: 460px; height: 100%; }
.case-wide .cf { width: 20%; }
.case-wide .cf2 { width: 24%; }
.case-flip .case-visual { order: 2; }
@media (max-width: 1100px) { .case-wide .case-visual { min-height: 0; aspect-ratio: 16 / 11; } .case-flip .case-visual { order: 0; } .case-wide .cf { width: 26%; } .case-wide .cf2 { width: 30%; } }
@media (max-width: 760px) { .case-visual, .case-wide .case-visual { aspect-ratio: 1 / 1; min-height: 0; } .cf { top: 50%; } }

/* ---------- Centring, round 2: positions on wrappers, motion on the inside ---------- */
.case-visual { display: grid; place-items: center; }
.case-light { z-index: 0; }
.fan { position: relative; z-index: 1; width: clamp(110px, 24%, 230px); aspect-ratio: 9 / 16; }
.case-wide .fan { width: clamp(120px, 22%, 230px); }
.fan .cf { position: absolute; inset: 0; width: 100%; height: 100%; top: auto; left: auto; transform-origin: 50% 100%; }
.fan .cf2 { transform: none; z-index: 3; }
.fan .cf1 { transform: translateX(-58%) rotate(-9deg) scale(.88); z-index: 2; }
.fan .cf3 { transform: translateX(58%) rotate(9deg) scale(.88); z-index: 2; }
.case-card:hover .fan .cf1 { transform: translateX(-72%) rotate(-12deg) scale(.88); }
.case-card:hover .fan .cf3 { transform: translateX(72%) rotate(12deg) scale(.88); }
.case-card:hover .fan .cf2 { transform: translateY(-3%) scale(1.03); }
@media (max-width: 760px) { .fan, .case-wide .fan { width: 34%; } }

.hero-stage .slot { position: absolute; top: 50%; left: 50%; width: clamp(170px, 16vw, 270px); }
.hero-stage .s2 { transform: translate(-50%, -50%); z-index: 3; width: clamp(200px, 19vw, 320px); }
.hero-stage .s1 { transform: translate(-128%, -44%) rotate(-7deg); z-index: 2; }
.hero-stage .s3 { transform: translate(28%, -44%) rotate(7deg); z-index: 2; }
.hero-stage .slot .device { position: relative; top: auto; left: auto; width: 100%; transform: none; }
@media (max-width: 760px) { .hero-stage .slot { width: 36vw; } .hero-stage .s2 { width: 44vw; } }

/* ---------- Language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .875rem; font-weight: 600; color: var(--ink); transition: border-color .2s, background-color .2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu summary:hover { border-color: rgba(255, 255, 255, .4); }
.lang-menu ul { list-style: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 200px; padding: 8px; border-radius: 18px;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -20px rgba(0, 0, 0, .8); display: grid; gap: 2px; }
.lang-menu a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: .9375rem; }
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--ink); background: rgba(51, 84, 244, .25); }
@media (max-width: 760px) { .lang-menu summary { min-height: 36px; padding: 0 10px; } .lang-menu ul { right: -8px; } }

/* ---------- Creative automation ---------- */
.auto-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.auto-stats li { padding: 28px 0; border-top: 1px solid var(--line-2); display: grid; gap: 6px; align-content: start; }
.auto-stats li:nth-child(3) .stat { color: var(--cyan); }
.auto-flow { list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.auto-flow li { counter-increment: flow; padding: 28px 26px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); position: relative; }
.auto-flow li::before { content: counter(flow); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: rgba(51, 84, 244, .2); color: var(--ink); font-weight: 600; font-size: .875rem; }
.auto-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; }
.auto-flow h3 { font-family: var(--display); font-weight: 600; font-size: var(--step-h3); letter-spacing: -0.02em; margin-bottom: 10px; }
.auto-flow p { color: var(--muted); }
@media (max-width: 1100px) { .auto-stats, .auto-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .auto-flow li::after { display: none; } }
@media (max-width: 640px) { .auto-flow { grid-template-columns: 1fr; } }

/* ---------- Headings that run long in some languages ---------- */
.hero-h, .h2, .h-mid, .contact-h, .case-name, .statement-text { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.hero-h.fit-l { font-size: clamp(2.4rem, 1.1rem + 4.3vw, 5.6rem); }
.hero-h.fit-xl { font-size: clamp(2.2rem, 1rem + 3.8vw, 5rem); }
.h2.fit-l, .h-mid.fit-l { font-size: clamp(2rem, 1.3rem + 3vw, 4rem); }
.h2.fit-xl, .h-mid.fit-xl { font-size: clamp(1.85rem, 1.2rem + 2.5vw, 3.4rem); }
.contact-h.fit-l { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 6rem); }
.contact-h.fit-xl { font-size: clamp(2.2rem, 1.2rem + 4vw, 5.2rem); }
.statement-text { max-width: 26ch; }
@media (max-width: 760px) { .statement-text { font-size: clamp(1.5rem, 1rem + 2.6vw, 2.25rem); } }
@media (max-width: 760px) {
  .site-bar nav a:nth-child(2) { display: none; }
  .site-bar .bar-word { font-size: 17px; }
  .site-bar { gap: 8px; }
}

/* ---------- Fixes from Timur's review (2026-10-19) ---------- */
/* Footer wordmark: sized to the footer's own width (not the window), so it is whole and centred at any size */
.foot { container-type: inline-size; }
.foot-word { font-size: 15.4cqi; margin: 48px 0 24px; text-align: center; white-space: nowrap; overflow: visible; }
/* Automation numbers: smaller step and no wrapping, so 1,000+ never runs into the next column */
.auto-stats .stat { font-size: clamp(2.5rem, 1.5rem + 2.8vw, 4.4rem); white-space: nowrap; }
.auto-stats li { min-width: 0; }
/* Back link on case pages */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: border-color .2s, background-color .2s, transform .3s var(--ease); }
.back-link::before { content: "←"; transition: transform .3s var(--ease); }
.back-link:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .04); }
.back-link:hover::before { transform: translateX(-4px); }

/* ---------- Plans: volume line and prices that always fit their card ---------- */
.plan { container-type: inline-size; }
.plan .price { font-size: min(4rem, 12.5cqi); white-space: nowrap; }
.plan-vol { margin-top: 14px; color: var(--muted); }
.plan-vol b { display: block; font-family: var(--display); font-weight: 700; font-size: min(3rem, 10cqi); line-height: 1; letter-spacing: -0.045em; color: var(--cyan); margin-bottom: 4px; }
.plan-hero .plan-vol b { font-size: min(4.4rem, 15cqi); }
.case-kpi span { border-color: var(--acc, var(--accent)); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
/* Logo lockup in the header */
.bar-word { display: inline-flex; align-items: center; color: var(--ink); }
.bar-word svg { display: block; height: 22px; width: auto; }
@media (max-width: 760px) { .site-bar .bar-word svg { height: 18px; } }
/* Sound toggle: bright pill with a speaker icon; pulses until the viewer turns sound on */
.sound { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: var(--step-small); cursor: pointer; box-shadow: 0 0 0 0 rgba(51, 84, 244, .55), 0 8px 24px rgba(51, 84, 244, .35); animation: sound-pulse 2.2s ease-out infinite; transition: background .2s, color .2s; }
.sound .ico { flex: none; }
.sound .ico-off { display: none; }
.sound[aria-pressed="true"] { background: #fff; color: var(--bg); animation: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.sound[aria-pressed="true"] .ico-on { display: none; }
.sound[aria-pressed="true"] .ico-off { display: block; }
.sound:hover { filter: brightness(1.12); }
.sound:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@keyframes sound-pulse { 0% { box-shadow: 0 0 0 0 rgba(51, 84, 244, .55), 0 8px 24px rgba(51, 84, 244, .35); } 70% { box-shadow: 0 0 0 14px rgba(51, 84, 244, 0), 0 8px 24px rgba(51, 84, 244, .35); } 100% { box-shadow: 0 0 0 0 rgba(51, 84, 244, 0), 0 8px 24px rgba(51, 84, 244, .35); } }
@media (prefers-reduced-motion: reduce) { .sound { animation: none; } }
/* Contact form: honeypot, Turnstile, status line */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .cf-turnstile { flex-basis: 100%; display: flex; justify-content: center; }
.form .cf-turnstile:empty { display: none; }
.form-status { flex-basis: 100%; text-align: center; margin: 4px 0 0; min-height: 1.4em; font-size: var(--step-small); color: var(--muted); }
.form-status.is-ok { color: #5BE49B; }
.form-status.is-err { color: #FF8A8A; }
.form-status a { color: inherit; text-decoration: underline; }
.form button[disabled] { opacity: .6; cursor: progress; }
/* Wall tiles are links into the cases */
a.wall-item { display: block; cursor: pointer; }
a.wall-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; transform: translateY(-8px); }
.wall:focus-within .wall-track { animation-play-state: paused; }
/* Sound on: dark glass pill, readable over any video or background */
.sound[aria-pressed="true"] { background: rgba(5, 6, 15, .82); color: #fff; box-shadow: inset 0 0 0 1.5px var(--cyan), 0 8px 24px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* Contact form: optional message */
.form .form-msg { flex: 1 1 100%; }
.form textarea { width: 100%; min-height: 120px; padding: 16px 22px; border-radius: 24px; border: 1px solid var(--line-2); background: rgba(11, 13, 34, .8); color: var(--ink); font: inherit; line-height: 1.5; resize: vertical; transition: border-color .2s, background-color .2s; }
.form textarea::placeholder { color: var(--muted); }
.form textarea:focus { outline: none; border-color: var(--accent-2); background: var(--surface-2); }
