/* =====================================================================
   KynexDev — site styles
   Signature element: the thermal receipt (hero, ticket numbers, contact form).
   One accent (violet) for the one word that matters and the main action.
   ===================================================================== */

:root {
  /* brand */
  --mist: #F4F0FF;
  --paper: #FFFFFF;
  --lav: #B9A7F0;
  --lav-2: #D9CEFA;
  --lav-3: #EAE3FD;
  --violet: #7C5CF5;
  --violet-text: #5A3BDB;      /* violet for small text on light (AA) */
  --violet-deep: #4B2CC4;
  --ink: #1B1433;
  --ink-80: #3A3354;
  --ink-60: #5E5878;
  --peach: #FFC9A9;
  --line: rgba(27, 20, 51, .12);
  --line-soft: rgba(27, 20, 51, .07);
  /* status */
  --ok: #0F7A55;
  --ok-bg: #DDF3E8;
  --warn: #9A5B00;
  --warn-bg: #FCEBD2;
  /* type */
  --f-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* shape */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(27, 20, 51, .06), 0 8px 24px -12px rgba(27, 20, 51, .18);
  --shadow-2: 0 2px 6px rgba(27, 20, 51, .06), 0 30px 60px -24px rgba(43, 22, 120, .35);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --head-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--lav); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
@media (min-width: 720px) { .wrap { padding-left: 40px; padding-right: 40px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--mist); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* progress hairline */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--violet); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-text); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--lav-3); }
.eyebrow--light { color: var(--lav); }
.h2 { font-size: clamp(34px, 4.7vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.h2 em, .hero-title em, .case-line em { color: var(--violet); }
.h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.sec-head { display: grid; gap: 20px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 960px) { .sec-head { grid-template-columns: 1.35fr 1fr; } }
.sec-note { color: var(--ink-60); font-size: 17px; max-width: 46ch; }
.sec-note a { color: var(--violet-text); font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s; }
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--ink { background: var(--ink); color: var(--mist); }
.btn--ink:hover { background: var(--violet-deep); }
.btn--violet { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 92, 245, .8); }
.btn--violet:hover { background: var(--violet-deep); box-shadow: 0 14px 30px -12px rgba(75, 44, 196, .9); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

.round { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); flex: none; }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .35; pointer-events: none; }
.round--lg { width: 54px; height: 54px; }
.round--lg svg { width: 22px; height: 22px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(244, 240, 255, .0); transition: background-color .3s, box-shadow .3s; }
.site-head.is-scrolled { background: rgba(244, 240, 255, .94); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-head.is-scrolled { background: rgba(244, 240, 255, .82); backdrop-filter: saturate(1.4) blur(12px); } }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo .mark { width: 38px; height: 38px; }
.logo .word { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.logo .word span { color: var(--violet); }
.logo--light .word { color: var(--mist); }
.logo--light .word span { color: var(--lav); }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-80); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--lav-3); color: var(--ink); }
.nav a.is-current { color: var(--ink); background: var(--lav-3); }
.head-cta { display: none; }
.menu-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); display: grid; place-content: center; gap: 6px; }
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--head-h) 0 0 0; background: var(--mist); padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { font-size: 32px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 24px; min-height: 56px; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .head-cta { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; } }
.hero-title { font-size: clamp(44px, 6.3vw, 90px); line-height: .98; font-weight: 800; letter-spacing: -.048em; margin-bottom: 28px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .ln > span { display: inline-block; }
.js .hero-title .ln > span { transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js .hero-title .ln:nth-child(2) > span { transition-delay: .08s; }
.js .hero-title .ln:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero-title .ln > span { transform: none; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-60); max-width: 54ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink-60); }
.hero-proof li { position: relative; padding-left: 16px; }
.hero-proof li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lav); }
.hero-proof b { color: var(--ink); }
.hero-proof a { color: var(--violet-text); font-weight: 700; text-underline-offset: 3px; }
.js .hero-copy > :not(h1) { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .hero-copy > .lede { transition-delay: .3s; }
.js .hero-copy > .hero-ctas { transition-delay: .4s; }
.js .hero-copy > .hero-proof { transition-delay: .5s; }
.is-loaded .hero-copy > :not(h1) { opacity: 1; transform: none; }

/* receipt (signature) */
.hero-receipt { position: relative; justify-self: center; width: min(400px, 100%); padding-top: 18px; }
.disc { position: absolute; border-radius: 50%; z-index: 0; }
.disc--lav { width: 130%; aspect-ratio: 1; background: var(--lav-2); left: -8%; top: 4%; }
.disc--peach { width: 34%; aspect-ratio: 1; background: var(--peach); right: -12%; bottom: 6%; opacity: .75; }
.printer { position: relative; z-index: 3; height: 34px; border-radius: 14px; background: var(--ink); margin: 0 -14px; box-shadow: 0 14px 26px -14px rgba(27, 20, 51, .6); }
.printer span { position: absolute; left: 22px; right: 22px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: #000; box-shadow: inset 0 1px 2px rgba(255, 255, 255, .08); }
.printer::after { content: ""; position: absolute; right: 16px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #3BE39A; box-shadow: 0 0 0 3px rgba(59, 227, 154, .18); }
.paper-clip { position: relative; z-index: 2; margin-top: -17px; overflow: hidden; padding: 0 6px 34px; }
.paper-clip { filter: drop-shadow(0 26px 30px rgba(43, 22, 120, .22)) drop-shadow(0 2px 2px rgba(27, 20, 51, .08)); }
.receipt {
  position: relative;
  background: var(--paper);
  padding: 34px 24px 34px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  --zz: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
  padding-bottom: calc(34px + var(--zz));
}
.js .receipt { transform: translateY(-101%); }
.is-loaded .receipt { animation: print 2.6s steps(26, end) .35s forwards; }
@keyframes print { to { transform: translateY(0); } }
.r-head { display: grid; justify-items: center; gap: 2px; text-align: center; }
.r-head svg { width: 34px; height: 34px; margin-bottom: 6px; }
.r-head strong { font-size: 16px; letter-spacing: .18em; }
.r-head span { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-60); }
.r-rule { border-top: 1.5px dashed rgba(27, 20, 51, .35); margin: 16px 0; }
.r-lines { display: grid; gap: 11px; }
.r-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.r-lines .no { color: var(--ink-60); }
.r-lines .it { font-weight: 700; font-family: var(--f-sans); font-size: 14px; line-height: 1.25; }
.r-lines small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; color: var(--ink-60); margin-top: 2px; }
.tag { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; border: 1.2px solid var(--ink); border-radius: 4px; padding: 1px 5px; margin-top: 2px; white-space: nowrap; }
.tag--live { background: var(--ink); color: #fff; }
.r-next { display: flex; justify-content: space-between; align-items: baseline; }
.r-next span { font-size: 11px; letter-spacing: .14em; color: var(--ink-60); }
.r-next b { font-size: 22px; letter-spacing: .02em; color: var(--violet-text); }
.caret { display: inline-block; width: .55em; height: 1em; vertical-align: -.12em; margin-left: 3px; background: var(--violet); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.r-note { font-size: 11px; color: var(--ink-60); margin-top: 4px; }
.barcode { height: 46px; margin: 18px 0 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.r-foot { text-align: center; font-size: 10.5px; letter-spacing: .16em; color: var(--ink-60); }

/* ticker */
.ticker { margin-top: clamp(40px, 6vw, 80px); border-block: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { padding: 18px 0; font-size: 15px; font-weight: 700; color: var(--ink-80); white-space: nowrap; display: inline-flex; align-items: center; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--lav); margin: 0 26px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections spacing ---------- */
.work, .services, .rules, .process, .studio, .faq { padding-block: clamp(80px, 11vw, 150px); }

/* ---------- WORK: case carousel ---------- */
.case-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 22px; padding: 4px 20px; scroll-snap-type: x proximity; }
.case-tabs::-webkit-scrollbar { display: none; }
.case-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 15px; scroll-snap-align: start; overflow: hidden; transition: background-color .25s, color .25s, border-color .25s; }
.case-tab .n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-60); }
.case-tab .s { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: var(--r-pill); background: var(--lav-3); color: var(--violet-text); }
.case-tab .s--live { background: var(--ok-bg); color: var(--ok); }
.case-tab:hover { border-color: var(--ink); }
.case-tab[aria-selected="true"] { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.case-tab[aria-selected="true"] .n { color: var(--lav); }
.case-tab[aria-selected="true"] .s { background: rgba(255, 255, 255, .12); color: var(--mist); }
@media (min-width: 720px) { .case-tabs { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }

.case-stack { display: grid; overflow-x: clip; overflow-clip-margin: 24px; }
html { overflow-x: clip; }
.case {
  grid-area: 1 / 1;
  display: grid;
  gap: 0;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateX(var(--from, 40px));
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out), visibility 0s .7s;
}
.case.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .55s var(--ease-out) .05s, transform .7s var(--ease-out), visibility 0s; z-index: 1; }
.case.is-leaving { transform: translateX(var(--to, -40px)); }


/* stage + inner shots carousel */
.stage { position: relative; background: var(--tint); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; aspect-ratio: 4 / 3.7; display: flex; flex-direction: column; }
@media (max-width: 599px) { .stage { aspect-ratio: auto; height: clamp(400px, 116vw, 560px); } .shot { padding: 16px 16px 0; } }
@media (min-width: 600px) { .stage { aspect-ratio: 16 / 11; } }
@media (min-width: 1000px) { .stage { aspect-ratio: 16 / 8.6; } }
.stage::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -26%; background: rgba(255, 255, 255, .35); pointer-events: none; }
.stage--dark::before { background: rgba(46, 230, 166, .06); }
.shots-track { position: relative; flex: 1; display: flex; transition: transform .7s var(--ease-out); will-change: transform; }
.stage.is-dragging .shots-track { transition: none; }
.shot { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; padding: clamp(18px, 4%, 40px) clamp(16px, 5%, 48px) 0; }
.shot .box { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.shot figcaption { min-height: 70px; padding: 16px 230px 18px 0; font-size: 15px; line-height: 1.4; color: var(--ink-80); }
.shot figcaption b { color: var(--ink); margin-right: 4px; }
.stage--dark .shot figcaption { color: rgba(244, 240, 255, .72); }
.stage--dark .shot figcaption b { color: #fff; }
@media (max-width: 600px) { .shot figcaption { padding: 12px 0 70px; min-height: 0; font-size: 13.5px; } }

.browser, .film, .phones { cursor: zoom-in; }
.browser { width: min(100cqw, calc((100cqh - 30px) * 1.6)); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-2); }
.browser .chrome { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F1EFF6; border-bottom: 1px solid var(--line-soft); }
.browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #D3CDE2; }
.browser .chrome em { margin: 0 auto; font-size: 11px; font-weight: 600; color: var(--ink-60); background: var(--paper); padding: 2px 14px; border-radius: var(--r-pill); transform: translateX(-14px); }
.browser img { width: 100%; }
.film { width: min(100cqw, calc(100cqh * 16 / 9)); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2); }
.film img { width: 100%; }
.phones { display: flex; gap: clamp(10px, 4cqw, 28px); align-items: center; height: min(100cqh, calc((100cqw - 28px) / 2 / .462)); }
.phone { height: 100%; aspect-ratio: 720 / 1558; border-radius: clamp(16px, 5.5cqh, 34px); padding: clamp(4px, 1.2cqh, 8px); background: var(--ink); box-shadow: var(--shadow-2); }
.phone:nth-child(2) { transform: translateY(5%); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(12px, 4.4cqh, 27px); }

.shots-ui { position: absolute; right: clamp(16px, 5%, 48px); bottom: 16px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.dots { display: flex; gap: 6px; }
.dots button { position: relative; width: 22px; height: 6px; border-radius: 6px; border: 0; padding: 0; background: rgba(27, 20, 51, .18); overflow: hidden; transition: width .4s var(--ease-out); }
.dots button::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.dots button[aria-current="true"] { width: 38px; }
.dots button[aria-current="true"]::after { transform: scaleX(var(--t, 1)); }
.dots button::before { content: ""; position: absolute; inset: -12px -2px; }
.stage--dark .dots button { background: rgba(244, 240, 255, .25); }
.stage--dark .dots button::after { background: var(--tint-2); }
.stage .round { width: 38px; height: 38px; background: rgba(255, 255, 255, .85); border-color: transparent; }
.stage .round:hover { background: var(--ink); }
.stage--dark .round { background: rgba(255, 255, 255, .1); color: #fff; }
.stage--dark .round:hover { background: var(--tint-2); color: var(--ink); }
@media (max-width: 600px) { .shots-ui { left: 16px; right: 16px; justify-content: space-between; } }

/* info column */
.info { padding: clamp(26px, 4vw, 52px); display: grid; gap: 28px 64px; }
@media (min-width: 1000px) { .info { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.info-main, .info-side { display: flex; flex-direction: column; min-width: 0; }
.info-side { gap: 0; }
@media (min-width: 1000px) { .info-side { padding-top: 6px; } }
.info-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.case-no { font-family: var(--f-mono); font-size: 13px; font-weight: 700; padding: 6px 10px; border: 1.5px dashed rgba(27, 20, 51, .35); border-radius: 6px; letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); background: var(--lav-3); color: var(--violet-text); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--ok-bg); color: var(--ok); }
.status--live i { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 122, 85, .45); } 70% { box-shadow: 0 0 0 8px rgba(15, 122, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 122, 85, 0); } }
.status--build { background: #E3E8FF; color: #2A44C8; }
.status--soft { background: #EFEDF3; color: var(--ink-80); }
.trade { font-size: 14px; font-weight: 600; color: var(--ink-60); margin-bottom: 4px; }
.case-title { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.case-line { font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px; }
.case-body { color: var(--ink-60); font-size: 16.5px; max-width: 56ch; }
.built { display: grid; gap: 0; margin-bottom: 22px; border-top: 1px solid var(--line-soft); }
.built li { display: grid; grid-template-columns: 132px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink-60); line-height: 1.45; }
.built b { color: var(--ink); }
@media (max-width: 420px) { .built li { grid-template-columns: 1fr; gap: 2px; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.facts li { background: var(--mist); border-radius: var(--r-md); padding: 14px 12px; }
.facts b { display: block; font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: 6px; white-space: nowrap; }
.facts span { display: block; font-size: 12px; line-height: 1.35; color: var(--ink-60); }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts span br { display: none; } }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-80); }
.case-foot { margin-top: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet-text); text-decoration: none; border-bottom: 2px solid var(--lav); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--violet); }
.fine { font-size: 13px; color: var(--ink-60); }

.case-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; }
.case-count { font-family: var(--f-mono); font-size: 14px; color: var(--ink-60); min-width: 200px; text-align: center; }
.case-count b { color: var(--ink); font-size: 18px; }
.case-count span { display: block; font-family: var(--f-sans); font-weight: 700; font-size: 13px; color: var(--ink-80); }
.sample-note { text-align: center; font-size: 13px; color: var(--ink-60); margin-top: 14px; }

/* ---------- screen wall (rail carousel) ---------- */
.wall { padding-bottom: clamp(70px, 9vw, 120px); }
.wall-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.wall-head .h3 span { display: block; color: var(--ink-60); font-weight: 700; font-size: .62em; letter-spacing: -.01em; margin-top: 6px; }
.wall-btns { display: flex; gap: 10px; }
.rail { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - 1260px) / 2 + 40px)); padding: 6px max(20px, calc((100vw - 1260px) / 2 + 40px)) 26px; scrollbar-width: thin; scrollbar-color: var(--lav) transparent; cursor: grab; }
.rail.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.rail.is-grabbing .tile { pointer-events: none; }
.tile { flex: none; scroll-snap-align: start; width: clamp(260px, 34vw, 460px); border: 0; padding: 0; background: none; text-align: left; border-radius: var(--r-md); }
.tile-img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--tint, var(--lav-3)); display: grid; place-items: center; box-shadow: var(--shadow-1); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease-out); }
.tile-img.is-phone img { position: absolute; top: 7%; left: 50%; width: auto; height: 86%; aspect-ratio: 720 / 1558; object-fit: cover; transform: translateX(-50%); border-radius: 14px; border: 4px solid var(--ink); }
.tile:hover .tile-img.is-phone img { transform: translateX(-50%) scale(1.035); }
.tile:hover .tile-img img { transform: scale(1.035); }
.tile-cap { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px 0; font-size: 14px; }
.tile-cap b { font-weight: 700; }
.tile-cap span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-60); white-space: nowrap; }

/* ---------- services ---------- */
.services { background: var(--paper); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.svc-list { border-top: 1.5px solid var(--ink); }
.svc { display: grid; gap: 14px 40px; padding: 34px 0; border-bottom: 1px solid var(--line); grid-template-columns: 56px 1fr; }
.svc-n { font-family: var(--f-mono); font-size: 14px; font-weight: 700; color: var(--violet-text); padding-top: 8px; }
.svc-main h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 10px; }
.svc-main p { color: var(--ink-60); max-width: 48ch; }
.svc-get, .svc-seen { grid-column: 2; }
.svc-get li { position: relative; padding: 5px 0 5px 26px; font-size: 15px; }
.svc-get li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }
.svc-seen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-60); }
.svc-seen button, .svc-seen a { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--mist); color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.svc-seen button:hover, .svc-seen a:hover { background: var(--ink); color: var(--mist); border-color: var(--ink); }
@media (min-width: 1000px) {
  .svc { grid-template-columns: 70px 1.25fr 1fr 220px; align-items: start; padding: 44px 0; }
  .svc-get, .svc-seen { grid-column: auto; }
  .svc-seen { flex-direction: column; align-items: flex-start; padding-top: 8px; }
}

/* ---------- proof (dark) ---------- */
.proof { background: var(--ink); color: var(--mist); padding-block: clamp(80px, 11vw, 150px); position: relative; overflow: hidden; }
.proof::before { content: ""; position: absolute; width: 640px; aspect-ratio: 1; border-radius: 50%; background: #241B45; right: -180px; top: -220px; }
.proof .wrap { position: relative; }
.proof .eyebrow { color: var(--lav); }
.proof .h2 em { color: var(--lav); }
.sec-head--dark .sec-note { color: rgba(244, 240, 255, .66); }
.proof-grid { display: grid; gap: 1px; background: rgba(244, 240, 255, .12); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(244, 240, 255, .12); }
@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof-grid li { background: var(--ink); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px; transition: background-color .3s; }
.proof-grid li:hover { background: #221A40; }
.proof-grid b { font-size: clamp(44px, 5vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof-grid b i { font-style: normal; color: var(--lav); }
.proof-grid span { font-size: 17px; font-weight: 700; margin-top: 8px; }
.proof-grid small { font-size: 13.5px; color: rgba(244, 240, 255, .6); line-height: 1.5; }
.proof-grid code { font-family: var(--f-mono); font-size: .92em; }

/* ---------- rules ---------- */
.rule-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }
.rule { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 44px); padding-top: clamp(84px, 8vw, 110px); overflow: hidden; }
.rule h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.rule p { color: var(--ink-60); max-width: 44ch; }
.stamp { position: absolute; top: clamp(26px, 3vw, 38px); left: clamp(28px, 3.4vw, 44px); font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--violet-text); border: 2px solid currentColor; border-radius: 6px; padding: 5px 10px; transform: rotate(-4deg); }
.stamp--mono { letter-spacing: .04em; transform: rotate(-2deg); }
.rule:nth-child(2) .stamp { transform: rotate(2deg); }
.rule:nth-child(4) .stamp { color: #B4232F; }

/* ---------- process ---------- */
.process { background: var(--lav-3); }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--violet-text); }
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.step p { color: var(--ink-60); font-size: 15px; }
.step-t { margin-top: auto; padding-top: 12px; font-size: 12px; font-weight: 700; color: var(--ink-80); border-top: 1.5px dashed var(--line); }
@media (max-width: 999px) {
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -20px; padding: 4px 20px 16px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
}
@media (min-width: 720px) and (max-width: 999px) { .steps { margin-inline: -40px; padding-inline: 40px; } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step::after { content: ""; position: absolute; top: 37px; right: -14px; width: 14px; height: 2px; background: var(--lav); }
  .step:last-child::after { display: none; }
}

/* ---------- studio ---------- */
.studio-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .studio-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.studio-mark { aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; border-radius: 34%; background: var(--paper); display: grid; place-items: center; box-shadow: var(--shadow-1); position: relative; }
.studio-mark svg { width: 62%; height: 62%; }
.studio-mark::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--peach); right: -4%; bottom: 8%; z-index: -1; }
.studio-copy p:not(.eyebrow) { color: var(--ink-60); font-size: 18px; margin-top: 20px; max-width: 56ch; }
.studio-copy p b { color: var(--ink); }
.studio-copy .h2 { margin-bottom: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tools li { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq .sec-note { margin-top: 20px; }
.qa { border-top: 1.5px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: transform .35s var(--ease-out), background-color .2s; }
.qa details[open] summary::after { transform: rotate(45deg); background-color: var(--lav-3); }
.qa summary:hover::after { border-color: var(--ink); }
.qa details p { color: var(--ink-60); padding: 0 50px 26px 0; max-width: 64ch; }
.qa details[open] p { animation: fadeDown .45s var(--ease-out); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--mist); padding-block: clamp(80px, 11vw, 150px); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 760px; aspect-ratio: 1; border-radius: 50%; background: #2A1F55; left: -280px; bottom: -380px; }
.contact-grid { position: relative; display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact .h2 em { color: var(--lav); }
.contact-copy > p { color: rgba(244, 240, 255, .7); font-size: 18px; margin-top: 20px; max-width: 46ch; }
.channels { margin-top: 36px; display: grid; gap: 10px; max-width: 440px; }
.channels a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-md); background: rgba(244, 240, 255, .06); border: 1px solid rgba(244, 240, 255, .12); text-decoration: none; font-weight: 700; transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.channels a span { font-size: 13px; font-weight: 600; color: rgba(244, 240, 255, .6); }
.channels a:hover { background: rgba(244, 240, 255, .12); border-color: var(--lav); transform: translateX(4px); }

.ticket {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 34px clamp(22px, 3vw, 36px) calc(34px + 10px);
  --zz: 10px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zz) * 2) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zz) * 2) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) 51% repeat-x;
  padding-top: calc(30px + var(--zz));
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-mono); border-bottom: 1.5px dashed rgba(27, 20, 51, .3); padding-bottom: 16px; margin-bottom: 22px; }
.ticket-head span { font-size: 12px; letter-spacing: .16em; color: var(--ink-60); font-weight: 700; }
.ticket-head b { font-size: 22px; color: var(--violet-text); }
.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field label, .field legend { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field input:not([type="checkbox"]), .field textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; min-height: 50px; transition: border-color .2s, background-color .2s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8C87A3; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--paper); }
.field input[aria-invalid="true"] { border-color: #B4232F; }
.err { color: #B4232F; font-size: 13px; font-weight: 600; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; transition: background-color .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.chips input:checked + span::before { content: "✓"; font-size: 12px; }
.chips input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.ticket-rule { border-top: 1.5px dashed rgba(27, 20, 51, .3); margin: 26px 0 22px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ticket-actions .btn--violet { flex: 1 1 220px; }
.ticket-fine { font-size: 12.5px; color: var(--ink-60); margin-top: 14px; }

/* ---------- footer ---------- */
.foot { background: #120D24; color: rgba(244, 240, 255, .72); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(244, 240, 255, .1); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-line { margin-top: 14px; }
.foot nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact { display: grid; gap: 8px; align-content: start; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: 13px; color: rgba(244, 240, 255, .5); }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 13, 36, .97); color: var(--mist); }
.lightbox::backdrop { background: rgba(18, 13, 36, .6); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .3s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { max-width: min(1400px, 92vw); display: grid; justify-items: center; gap: 16px; }
.lightbox img { max-height: 80dvh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { font-size: 15px; text-align: center; color: rgba(244, 240, 255, .8); max-width: 70ch; }
.lightbox figcaption b { color: #fff; }
.lightbox .round { position: fixed; background: rgba(255, 255, 255, .1); color: #fff; border-color: transparent; }
.lightbox .round:hover { background: #fff; color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -27px; }
.lb-next { right: 18px; top: 50%; margin-top: -27px; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .receipt { transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track span:nth-child(n + 12) { display: none; }
  .caret { animation: none; }
}
