/* Satoshi — self-hosted (Fontshare, free for commercial use). Self-hosting
   removes a third-party request and keeps the site fully self-contained. */
@font-face { font-family:"Satoshi"; src:url("/assets/fonts/satoshi-400.woff2") format("woff2");
             font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Satoshi"; src:url("/assets/fonts/satoshi-500.woff2") format("woff2");
             font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Satoshi"; src:url("/assets/fonts/satoshi-700.woff2") format("woff2");
             font-weight:700; font-style:normal; font-display:swap; }

/* ==========================================================================
   Eunimart Tech AI
   Near-black surface, iridescent mesh hero, heavy uppercase display with an
   italic-serif gradient accent phrase, floating pill nav, violet CTAs.
   ========================================================================== */

:root {
  --bg:        #0F0D0E;
  --bg-2:      #141011;
  --card:      #1A1516;
  --text:      #F7F2EC;
  --text-2:    #B5A9A3;
  --text-3:    #857873;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.18);

  --violet:    #E63946;
  --violet-2:  #F4D35E;

  /* brand support colours */
  --blue:      #457B9D;   /* structural: borders, fills, non-text UI */
  --blue-lt:   #6FA3C4;   /* the text-safe tint, 7.11:1 on --bg */
  --deep:      #8B1E2D;   /* burgundy: too dark for text, structure only */

  --grad-accent: linear-gradient(95deg, #F4D35E 0%, #F4D35E 100%);
  --grad-cta:    linear-gradient(120deg, #D62F3C, #E63946);

  --display: "Archivo", system-ui, sans-serif;
  --serif:   "Instrument Serif", Georgia, serif;
  --body:    "Satoshi", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 26px;
  --spine: 128px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.2,.8,.2,1);
  --border: var(--line);
  --radius-lg: var(--r-lg);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 3px; }

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

.skip { position: absolute; left: 14px; top: -60px; z-index: 999; background: var(--violet); color: #F7F2EC; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
  font-family: var(--body); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-lt);
}

.spine { display: grid; grid-template-columns: var(--spine) 1fr; gap: 30px; }
.spine > * { min-width: 0; }
.spine > .rail { position: relative; padding-top: 6px; }
@media (max-width: 820px) { .spine { grid-template-columns: 1fr; gap: 12px; } }

.band { padding: 112px 0; position: relative; }
.band-tight { padding: 72px 0; }
@media (max-width: 820px) { .band { padding: 72px 0; } .band-tight { padding: 48px 0; } }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.h2 { font-size: clamp(28px, 4.2vw, 50px); text-transform: uppercase; letter-spacing: -.025em; line-height: .98; }
.lede { color: var(--text-2); font-size: 17px; max-width: 56ch; margin-top: 18px; }

/* the accent phrase — lowercase italic serif with a gradient */
.em, .vi {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  /* solid fill, not a gradient clip — reads as a considered brand colour
     rather than a template, and keeps the glyph crisp at every size */
  color: var(--violet-2);
  /* the italic overhangs its box; the negative margin cancels the padding
     so following punctuation still sits tight against the word */
  padding-right: .08em; margin-right: -.08em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
.btn:active { transform: translateY(1px); }
/* fill is a step darker than --violet so white label text clears WCAG AA (5.17:1) */
.btn-fill { background: #D62F3C; color: #FFFFFF; box-shadow: 0 8px 26px -10px rgba(230,57,70,.75); }
.btn-fill:hover { opacity: .92; }
.btn-line { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-line:hover { border-color: var(--text); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Floating pill nav
   ========================================================================== */
.nav { position: fixed; inset: 12px 0 auto 0; z-index: 100; padding: 0 18px; }
.nav-in {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; height: 60px; padding: 0 10px 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(16,16,23,.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.stuck .nav-in { background: rgba(12,12,18,.92); border-color: var(--line-2); }

.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 16.5px; letter-spacing: -.01em; }
.brand-mk { width: 27px; height: 27px; border-radius: 7px; overflow: hidden; position: relative; background: #F7F2EC; flex-shrink: 0; }
.brand-mk img { position: absolute; width: 93px; height: 60px; max-width: none; left: -35px; top: -5px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13.5px; color: var(--text-2); transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 9px; }


.burger { display: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger i { width: 14px; height: 1.5px; background: var(--text); display: block; transition: transform .25s var(--ease), opacity .25s; }
.burger.on i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.on i:nth-child(2) { opacity: 0; }
.burger.on i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 84px 14px auto 14px; z-index: 99;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 18px 20px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.sheet.on { opacity: 1; visibility: visible; transform: none; }
.sheet a { font-family: var(--display); font-weight: 700; font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet a[aria-current="page"] { color: var(--violet-2); }
.sheet .btn { margin-top: 16px; border-bottom: 0; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-right > .btn { display: none; }
}

/* ==========================================================================
   Hero — iridescent mesh, uppercase display
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding: 132px 0 72px; overflow: hidden; }
/* layered radial gradients, no blur filter — same look, far cheaper to paint */
.hero::before {
  content: ""; position: absolute; inset: -10% -5% auto -5%; height: 128%; z-index: -2;
  background:
    radial-gradient(46% 42% at 12% 22%, rgba(56,189,248,.50), transparent 70%),
    radial-gradient(42% 40% at 36% 4%,  rgba(244,211,94,.52), transparent 70%),
    radial-gradient(46% 46% at 68% 26%, rgba(230,57,70,.58), transparent 70%),
    radial-gradient(40% 38% at 92% 56%, rgba(251,146,60,.34), transparent 70%),
    radial-gradient(50% 46% at 24% 78%, rgba(45,212,191,.34), transparent 70%),
    radial-gradient(44% 42% at 60% 94%, rgba(236,72,153,.30), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,12,.72) 0%, rgba(8,8,12,.34) 30%, transparent 58%),
    linear-gradient(to bottom, transparent 64%, var(--bg) 98%);
}

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 132px; } }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 70px);
  font-weight: 900; text-transform: uppercase;
  line-height: .9; letter-spacing: -.03em; margin-top: 16px;
}
.hero h1 .em { font-size: 1.04em; font-weight: 400; }
.hero-sub { color: var(--text-2); font-size: 16.5px; max-width: 46ch; margin-top: 18px; }
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 22px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.hero-meta span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

/* ---------- prompt pill ---------- */
.prompt {
  display: flex; align-items: center; gap: 10px; margin-top: 20px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 16px;
  background: rgba(16,16,23,.66); backdrop-filter: blur(10px);
  max-width: 480px; transition: border-color .2s var(--ease);
}
.prompt:focus-within { border-color: var(--violet); }
.prompt .chev { color: var(--violet-2); font-size: 14px; flex-shrink: 0; line-height: 1; }
.prompt input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--text); padding: 10px 0; }
.prompt input::placeholder { color: var(--text-3); }

/* ---------- hero image card ---------- */
.frame-wrap { position: relative; }
.frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--card);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.frame-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 28% 24%, #FFC48A 0%, transparent 60%),
    radial-gradient(66% 60% at 78% 34%, #F4D35E 0%, transparent 62%),
    radial-gradient(74% 66% at 50% 92%, #E63946 0%, transparent 62%),
    linear-gradient(168deg, #210B10 0%, #3A1119 48%, #43121D 100%);
}
.frame-noise {
  position: absolute; inset: -2%; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 44%, rgba(4,4,8,.6) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; opacity: .8;
}
.frame.developing .frame-noise { animation: develop 2s var(--ease) forwards; }
.frame.developing .frame-art { animation: resolve 2s var(--ease) forwards; }
@keyframes develop { 0% { opacity: 1 } 70% { opacity: .4 } 100% { opacity: 0 } }
@keyframes resolve { 0% { filter: blur(18px) saturate(.5); transform: scale(1.06) } 100% { filter: none; transform: none } }

.frame-tag {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #F7F2EC; background: rgba(8,8,12,.72);
  border: 1px solid rgba(255,255,255,.14); padding: 8px 12px; border-radius: 999px;
}
.frame-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet-2); flex-shrink: 0; }
.frame-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 11px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 15px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 38px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.marquee-track span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }
@keyframes slide { to { transform: translateX(-50%) } }

/* ==========================================================================
   Cards
   ========================================================================== */
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
@media (max-width: 880px) { .cap { grid-template-columns: 1fr; } }
.cap-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; background: var(--card); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.cap-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cap-num { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--violet-2); }
.cap-card h3 { font-size: 25px; margin: 13px 0 11px; text-transform: uppercase; letter-spacing: -.02em; }
.cap-card p { color: var(--text-2); font-size: 15px; }
.cap-list { margin-top: 20px; display: grid; gap: 9px; }
.cap-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.cap-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); margin-top: 8px; flex-shrink: 0; }

.rail-outer { position: relative; margin-top: 36px; min-width: 0; }
.rail-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; max-width: 100%; scrollbar-width: thin; }
.rail-scroll::-webkit-scrollbar { height: 5px; }
.rail-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.style { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); transition: border-color .25s; }
.style:hover { border-color: var(--line-2); }
.style .sw { height: 168px; }
.style .tx { padding: 14px 16px 18px; }
.style h4 { font-family: var(--body); font-weight: 600; font-size: 14.5px; letter-spacing: 0; }
.style p { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.sw-a { background: linear-gradient(150deg,#331016,#E63946 55%,#F26430); }
.sw-b { background: linear-gradient(150deg,#0E1E3F,#E63946 50%,#F4D35E); }
.sw-c { background: linear-gradient(150deg,#2E0F15,#D9541F 55%,#FFC48A); }
.sw-d { background: linear-gradient(150deg,#0B2A22,#0F766E 55%,#F4D35E); }
.sw-e { background: linear-gradient(150deg,#2B0E14,#E63946 55%,#FB8B5E); }
.sw-f { background: linear-gradient(150deg,#260C12,#4A1420 55%,#E63946); }

.steps { margin-top: 40px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 26px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step .n { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--violet-2); padding-top: 5px; }
.step h4 { font-size: 21px; text-transform: uppercase; letter-spacing: -.02em; }
.step p { color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; } .step .n { padding-top: 0 } .step h4 { font-size: 19px } .step p { grid-column: 1 } }

.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; background: var(--card); }
.plan.pick { border-color: var(--deep); background: linear-gradient(180deg, rgba(139,30,45,.28), transparent 60%), var(--card); }
.plan .pk { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); }
.plan h3 { font-size: 36px; margin: 12px 0 6px; letter-spacing: -.03em; }
.plan .desc { color: var(--text-2); font-size: 14px; }
.plan ul { margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { font-size: 14px; color: var(--text-2); display: flex; gap: 9px; }
.plan li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); margin-top: 8px; flex-shrink: 0; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--display); font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-2); font-size: 19px; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--text-2); font-size: 15px; padding-bottom: 22px; max-width: 70ch; }

.contact { display: grid; grid-template-columns: .82fr 1.18fr; gap: 38px; margin-top: 40px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.cinfo dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 20px; font-weight: 600; }
.cinfo dt:first-of-type { margin-top: 0; }
.cinfo dd { margin: 5px 0 0; font-size: 15.5px; }
.cinfo dd a:hover { color: var(--violet-2); }
.form { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--card); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.f { display: flex; flex-direction: column; gap: 7px; }
.f.wide { grid-column: 1 / -1; }
.f label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.f input, .f textarea { border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-sm); padding: 12px 13px; font-size: 15px; outline: none; transition: border-color .2s; }
.f input:focus, .f textarea:focus { border-color: var(--violet); }
.f textarea { min-height: 116px; resize: vertical; }
.form .btn { margin-top: 18px; }
.note { font-size: 12px; color: var(--violet-2); margin-top: 11px; min-height: 15px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); padding: 52px 0 28px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h5 { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 13px; }
.foot ul { display: grid; gap: 9px; }
.foot a { font-size: 14px; color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot .tag { font-size: 12.5px; color: var(--text-3); margin-top: 12px; }
.foot-end { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }

.totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.totop.on { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 15px; height: 15px; }

.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
/* overflow:hidden clips the ::before glow, which is inset -5% horizontally and
   otherwise pushes the page sideways (19px at 390px wide). */
.phead { padding: 148px 0 0; position: relative; isolation: isolate; overflow: hidden; }
.phead::before {
  content: ""; position: absolute; inset: -40% -5% auto -5%; height: 150%; z-index: -2;
  background:
    radial-gradient(40% 40% at 18% 30%, rgba(230,57,70,.26), transparent 72%),
    radial-gradient(36% 36% at 74% 18%, rgba(56,189,248,.20), transparent 72%);
}
.phead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 40%, var(--bg) 96%); }
.phead h1 { font-size: clamp(34px, 5.2vw, 64px); text-transform: uppercase; line-height: .94; letter-spacing: -.03em; margin-top: 14px; }
.phead .lede { margin-top: 18px; font-size: 17px; }
.phead-rule { margin-top: 52px; }
.phead .wrap:has(.lede) { display: grid; grid-template-columns: 1.06fr .94fr; column-gap: 44px; align-items: end; }
/* the stage badge is explicitly placed too, otherwise it auto-flows into
   column 2 and floats beside the lede instead of leading the header */
.phead .wrap:has(.lede) > .stagetag { grid-column: 1; grid-row: 1; justify-self: start; }
.phead .wrap:has(.lede) > .mono { grid-column: 1; grid-row: 2; }
.phead .wrap:has(.lede):has(.stagetag) > h1 { grid-row: 3; }
.phead .wrap:has(.lede):has(.stagetag) > .lede { grid-row: 3; }
.phead .wrap:has(.lede) > h1 { grid-column: 1; grid-row: 2; }
.phead .wrap:has(.lede) > .lede { grid-column: 2; grid-row: 2; margin-top: 0; padding-bottom: 8px; max-width: 40ch; }
@media (max-width: 880px) {
  .phead { padding-top: 118px; }
  .phead .wrap:has(.lede) { grid-template-columns: 1fr; }
  .phead .wrap:has(.lede) > h1, .phead .wrap:has(.lede) > .lede { grid-column: 1; }
  .phead .wrap:has(.lede) > .lede { grid-row: 3; margin-top: 16px; padding-bottom: 0; }
  .phead .wrap:has(.lede):has(.stagetag) > .lede { grid-row: 4; }
}

.uc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 38px; }
@media (max-width: 980px) { .uc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 660px) { .uc-grid { grid-template-columns: 1fr; } }
.uc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); display: flex; flex-direction: column; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.uc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.uc .sw { height: 132px; }
.uc .bd { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.uc h3 { font-size: 17px; text-transform: uppercase; letter-spacing: -.015em; }
.uc p { font-size: 14px; color: var(--text-2); flex: 1; }
.uc .pr { font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 11px; font-family: ui-monospace, Menlo, monospace; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 38px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.two-col p { color: var(--text-2); font-size: 15.5px; margin-bottom: 15px; }

.facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 38px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2,1fr); } }
.fact { background: var(--card); padding: 24px 20px; }
.fact b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.fact span { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); display: block; margin-top: 6px; }

.beliefs { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 38px; }
@media (max-width: 880px) { .beliefs { grid-template-columns: 1fr; } }
.belief { border-top: 1px solid var(--line-2); padding-top: 17px; }
.belief .n { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--violet-2); }
.belief h4 { font-size: 18px; margin: 9px 0 8px; text-transform: uppercase; letter-spacing: -.015em; }
.belief p { font-size: 14.5px; color: var(--text-2); }

.cta { border-top: 1px solid var(--line); padding: 78px 0; background: var(--bg-2); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.6vw, 42px); text-transform: uppercase; letter-spacing: -.025em; }
.cta p { color: var(--text-2); margin-top: 9px; }

.legal { max-width: 70ch; }
.legal h2 { font-size: 19px; margin: 32px 0 11px; text-transform: uppercase; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; line-height: 1.75; margin-bottom: 11px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--violet-2); }
.legal .upd { font-size: 11px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; }

.e404 { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 150px 0 90px; }
.e404 .code { font-size: 11.5px; letter-spacing: .16em; color: var(--violet-2); font-weight: 600; }
.e404 h1 { font-size: clamp(36px, 5.6vw, 62px); text-transform: uppercase; letter-spacing: -.03em; }
.e404 p { color: var(--text-2); max-width: 44ch; margin: 0 auto; }
.e404 .btn { justify-self: center; margin-top: 6px; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 560px) {
  .prompt { flex-wrap: wrap; border-radius: var(--r-md); padding: 12px 14px; gap: 10px; }
  .prompt .chev { display: none; }
  .prompt input { flex: 1 1 100%; padding: 4px 0; }
  .prompt .btn { flex: 1 1 100%; }
  .totop { right: 15px; bottom: 15px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 122px; }
  .hero h1 { font-size: clamp(32px, 10.6vw, 44px); }
  .phead h1 { font-size: clamp(30px, 9.4vw, 40px); }
  .h2 { font-size: clamp(24px, 7.4vw, 32px); }
  .cap-card, .plan, .form { padding: 22px; }
  .band { padding: 58px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .foot ul { gap: 2px; }
  .foot li a { display: block; padding: 11px 0; }
  .cinfo dd a { display: inline-block; padding: 6px 0; }
}

/* the styles rail is a horizontal scroller; fade the right edge so the partly
   visible next card reads as "scroll for more" rather than a clipped card */
.rail-outer::after {
  content: ""; position: absolute; top: 0; bottom: 14px; right: 0; width: 84px;
  background: linear-gradient(to left, var(--bg), transparent);
  pointer-events: none;
}
@media (max-width: 620px) { .rail-outer::after { width: 44px; } }

/* Pin image slots to standard generation ratios so exported renders drop in
   without re-cropping (2.4:1 letterboxing was unusable for real photos). */
.style .sw { aspect-ratio: 3 / 2;  height: auto; }
.uc .sw    { aspect-ratio: 16 / 9; height: auto; }

/* ==========================================================================
   Nav — transparent full-width bar (replaces the floating pill)
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 0; }
.nav-in {
  max-width: none; margin: 0; height: 74px;
  padding: 0 34px; gap: 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: 0; border: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .3s var(--ease);
}
.nav.stuck .nav-in { background: transparent; border-color: transparent; }
/* only tint once you're well down the page, so it never fights the hero */
.nav.stuck .nav-in { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }

.brand { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: .01em; text-transform: uppercase; gap: 10px; }
.brand-mk { width: 26px; height: 26px; border-radius: 6px; }
.brand-mk img { width: 90px; height: 58px; left: -34px; top: -5px; }

.nav-links { justify-self: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--text); opacity: .82; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { display: none; }

.nav-right { justify-self: end; gap: 10px; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-white { background: #F7F2EC; color: #0B0B12; }
.btn-white:hover { background: #F2EDE7; }

@media (max-width: 1040px) { .nav-alt { display: none; } }
@media (max-width: 880px) {
  .nav-in { grid-template-columns: 1fr auto; padding: 0 20px; height: 66px; }
  .nav-right > .btn-white { display: none; }
}
.sheet { inset: 66px 0 auto 0; border-radius: 0; border-left: 0; border-right: 0; padding: 10px 20px 22px; }

/* ==========================================================================
   Staggered image carousel — full-bleed, arrow-driven
   ========================================================================== */
.gallery { position: relative; padding: 92px 0; overflow: hidden; }
.g-head { max-width: var(--container); margin: 0 auto 34px; padding: 0 var(--gutter); }
.g-viewport { position: relative; }
.g-track {
  display: flex; align-items: center; gap: 22px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 60px 34px; scrollbar-width: none;
  /* the vertical padding gives the staggered offsets room to breathe */
}
.g-track::-webkit-scrollbar { display: none; }

.g-item {
  position: relative; margin: 0; flex: 0 0 auto; scroll-snap-align: center;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.g-item:hover { transform: translateY(-6px) scale(1.015); border-color: var(--line-2); }
.g-item .ph { position: absolute; inset: 0; }
.g-cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  font-size: 11px; color: #F7F2EC; background: rgba(8,8,12,.72);
  border: 1px solid rgba(255,255,255,.14); padding: 7px 11px; border-radius: 999px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0;
  transition: opacity .3s var(--ease);
}
.g-item:hover .g-cap { opacity: 1; }

/* staggered sizes + vertical offsets — this is what makes it read as a scatter
   rather than a row of equal tiles */
.g-item.s1 { width: 236px; aspect-ratio: 3/4;  transform: translateY(-38px); }
.g-item.s2 { width: 320px; aspect-ratio: 4/3;  transform: translateY(26px); }
.g-item.s3 { width: 200px; aspect-ratio: 1/1;  transform: translateY(-14px); }
.g-item.s4 { width: 280px; aspect-ratio: 9/16; transform: translateY(40px); }
.g-item.s5 { width: 360px; aspect-ratio: 16/9; transform: translateY(-30px); }
.g-item.s6 { width: 224px; aspect-ratio: 4/5;  transform: translateY(14px); }
.g-item.s1:hover { transform: translateY(-46px) scale(1.015); }
.g-item.s2:hover { transform: translateY(18px)  scale(1.015); }
.g-item.s3:hover { transform: translateY(-22px) scale(1.015); }
.g-item.s4:hover { transform: translateY(32px)  scale(1.015); }
.g-item.s5:hover { transform: translateY(-38px) scale(1.015); }
.g-item.s6:hover { transform: translateY(6px)   scale(1.015); }

.g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px); display: grid; place-items: center;
  transition: background .2s, border-color .2s, opacity .2s;
}
.g-arrow:hover { border-color: var(--text); }
.g-arrow[disabled] { opacity: .25; cursor: default; }
.g-arrow svg { width: 17px; height: 17px; }
.g-prev { left: 18px; }
.g-next { right: 18px; }

/* edge fades so items dissolve rather than clip at the viewport edge */
.g-viewport::before, .g-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 3; pointer-events: none;
}
.g-viewport::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.g-viewport::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

@media (max-width: 700px) {
  .gallery { padding: 62px 0; }
  .g-track { gap: 14px; padding: 44px 18px; }
  .g-item.s1 { width: 168px } .g-item.s2 { width: 220px } .g-item.s3 { width: 150px }
  .g-item.s4 { width: 186px } .g-item.s5 { width: 240px } .g-item.s6 { width: 162px }
  .g-item { transform: none !important; }
  .g-arrow { display: none; }
  .g-viewport::before, .g-viewport::after { width: 40px; }
}

/* Scroll-snap cancels smooth programmatic scrollBy — the arrow buttons moved
   0px because snap yanked the track back to the nearest point. A scattered
   gallery reads better free-scrolling anyway, so snapping is off here. */
.g-track { scroll-snap-type: none; }
.g-item  { scroll-snap-align: none; }

/* honest labelling under the hero prompt + form error state */
.prompt-note { margin-top: 10px; font-size: 12px; color: var(--text-3); max-width: 480px; }
.prompt-note a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 2px; }
.note.is-error { color: #FF8A8A; }

/* ==========================================================================
   Real imagery — sources are 1024×1024, so every slot crops with object-fit
   rather than distorting. Backgrounds stay as the pre-load colour.
   ========================================================================== */
img.frame-art, img.ph, img.sw {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
img.sw { aspect-ratio: inherit; }
.style .sw { aspect-ratio: 3 / 2; }
.uc .sw    { aspect-ratio: 16 / 9; }
.g-item .ph { position: absolute; inset: 0; }
/* keep a dark plate behind images so nothing flashes white while loading */
.style .sw, .uc .sw, .g-item, .frame { background-color: #0E0E14; }

/* ==========================================================================
   About — process sections
   ========================================================================== */
.proc { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; margin-top: 36px; }
.proc > * { min-width: 0; }
@media (max-width: 900px) { .proc { grid-template-columns: 1fr; gap: 28px; } }
.proc-steps { border-top: 1px solid var(--line); }
.proc-steps .step { grid-template-columns: 84px 1fr; gap: 22px; }
/* .n is itself a <p>, so a bare `p` selector here steals column 2 from the
   heading and squeezes it into the 84px number column. Exclude it explicitly. */
.proc-steps .step .n { grid-column: 1; }
.proc-steps .step h4 { grid-column: 2; }
.proc-steps .step > p:not(.n) { grid-column: 2; }
@media (max-width: 760px) {
  .proc-steps .step { grid-template-columns: 1fr; }
  .proc-steps .step .n,
  .proc-steps .step h4,
  .proc-steps .step > p:not(.n) { grid-column: 1; }
}

.proc-fig { margin: 0; position: sticky; top: 96px; }
.proc-fig img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); display: block; }
.proc-fig figcaption { margin-top: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--text-3); }
@media (max-width: 900px) { .proc-fig { position: static; } }

.proc-note {
  margin-top: 30px; padding: 18px 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card);
  font-size: 14.5px; color: var(--text-2);
}

.prompt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
@media (max-width: 760px) { .prompt-pair { grid-template-columns: 1fr; } }
.prompt-pair > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--card); }
.prompt-pair > div:last-child { border-color: var(--violet); }
.pp-code {
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--text);
  margin: 12px 0 14px; line-height: 1.6; word-break: break-word;
}
.pp-note { font-size: 14px; color: var(--text-2); }

/* footer contact column */
.foot-grid { grid-template-columns: 1.35fr .75fr .75fr 1.15fr; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-contact p { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.foot-contact .fc-name { color: var(--text); font-weight: 600; }
.foot-contact .fc-name span {
  display: block; font-weight: 400; font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-3); margin-top: 3px;
}
.foot-contact a { color: var(--text-2); }
.foot-contact a:hover { color: var(--violet-2); }
.foot-contact address {
  font-style: normal; font-size: 13.5px; color: var(--text-3); line-height: 1.75;
}
@media (max-width: 720px) { .foot-contact a { display: inline-block; padding: 6px 0; } }

/* ==========================================================================
   Auth pages — own chrome, no marketing nav/footer
   ========================================================================== */
body.is-auth { min-height: 100svh; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.auth > * { min-width: 0; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

.auth-panel { display: grid; place-items: center; padding: 40px 28px; }
.auth-inner { width: 100%; max-width: 396px; }

.auth-brand { margin-bottom: 52px; }
.auth-head h1 {
  font-size: clamp(34px, 4.4vw, 50px); text-transform: uppercase;
  line-height: .94; letter-spacing: -.03em;
}
.auth-head p { color: var(--text-2); margin-top: 12px; font-size: 15.5px; }

.auth-form { margin-top: 34px; display: grid; gap: 18px; }
.auth-form .f-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.f-link { font-size: 12.5px; color: var(--text-3); }
.f-link:hover { color: var(--violet-2); }

.f-pass { position: relative; }
.f-pass input { width: 100%; padding-right: 46px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--text-3); border-radius: 8px;
}
.pass-toggle:hover { color: var(--text); }
.pass-toggle svg { width: 17px; height: 17px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--violet); flex-shrink: 0; }

.auth-form .btn { margin-top: 4px; }
.auth-alt { margin-top: 26px; font-size: 14px; color: var(--text-2); }
.auth-alt a { color: var(--violet-2); font-weight: 600; }
.auth-legal { margin-top: 30px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.auth-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* visual side */
.auth-aside { position: relative; overflow: hidden; background: var(--card); }
.auth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,12,.92) 4%, rgba(8,8,12,.30) 46%, rgba(8,8,12,.55));
}
.auth-aside-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px; }
.auth-quote {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(21px, 2.2vw, 30px); line-height: 1.04; letter-spacing: -.025em;
  margin-top: 12px; color: #F7F2EC; max-width: 15ch;
}
.auth-prompt { margin-top: 14px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: rgba(255,255,255,.62); }
@media (max-width: 900px) { .auth-aside { min-height: 240px; order: -1; } .auth-aside-in { padding: 26px; } .auth-brand { margin-bottom: 34px; } }

.note.is-warn { color: #FFC48A; }

/* Log in link in the marketing nav */
.nav-login { font-size: 13.5px; color: var(--text-2); padding: 0 6px; transition: color .18s; }
.nav-login:hover { color: var(--text); }
@media (max-width: 1040px) { .nav-login { display: none; } }

/* password strength meter + rules (sign-up) */
.pw-meter { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 10px; }
.pw-meter span { height: 3px; border-radius: 99px; background: var(--line-2); transition: background .25s var(--ease); }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: #E5484D; }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #F5A524; }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #F4D35E; }
.pw-meter[data-score="4"] span { background: #30C08B; }
.pw-label { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.pw-rules { margin-top: 10px; display: grid; gap: 5px; }
.pw-rules li { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.pw-rules li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-2); flex-shrink: 0; transition: background .2s;
}
.pw-rules li.ok { color: var(--text-2); }
.pw-rules li.ok::before { background: #30C08B; }
.note.is-ok { color: #30C08B; }

/* hero video — shown by default, swapped for stills once Render is pressed */
.frame-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.frame.has-video .frame-vid { display: block; }
.frame.has-video .frame-art { display: none; }
.frame.has-video .frame-noise { display: none; }

/* VIDEO / IMAGE badge inside the hero frame chip */
.tag-kind {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
  background: var(--violet); color: #F7F2EC;
}

/* ==========================================================================
   Nav — Create dropdown (primary section)
   ========================================================================== */
.nav-create { position: relative; }
.nav-create-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #F7F2EC;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--violet) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 55%, transparent);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-create-btn svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.nav-create:hover .nav-create-btn,
.nav-create:focus-within .nav-create-btn,
.nav-create.is-active .nav-create-btn { background: var(--violet); border-color: var(--violet); }
.nav-create:hover .nav-create-btn svg,
.nav-create:focus-within .nav-create-btn svg { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 290px; padding: 8px; z-index: 60;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 26px 60px -24px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-create:hover .nav-drop,
.nav-create:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* hover bridge so the pointer can travel to the menu */
.nav-create::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }

.nav-drop a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: var(--r-md); }
.nav-drop a:hover { background: rgba(255,255,255,.05); }
.nav-drop strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.nav-drop small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.nd-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet-2);
}
.nd-ic svg { width: 15px; height: 15px; }

/* mobile sheet group */
.sheet-group { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sheet .sheet-lead { border-bottom: 0; color: var(--violet-2); padding-bottom: 6px; }
.sheet .sheet-sub {
  border-bottom: 0; font-family: var(--body); font-weight: 500; font-size: 15px;
  color: var(--text-2); padding: 9px 0 9px 16px; position: relative;
}
.sheet .sheet-sub::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 1px; background: var(--line-2);
}

/* ==========================================================================
   Studio
   ========================================================================== */
.studio { padding-bottom: 90px; }

.stage { position: relative; isolation: isolate; padding: 138px 26px 44px; text-align: center; overflow: hidden; }
.stage-bg { position: absolute; inset: 0; z-index: -2; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; }
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(8,8,12,.72) 0%, rgba(8,8,12,.55) 40%, var(--bg) 96%);
}
.stage-in { max-width: 860px; margin: 0 auto; }
.stage h1 { font-size: clamp(38px, 6vw, 76px); text-transform: uppercase; letter-spacing: -.03em; line-height: .94; margin-top: 12px; }

.promptbar {
  display: flex; align-items: center; gap: 10px; margin-top: 34px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(12,12,18,.78); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.9);
}
.promptbar:focus-within { border-color: var(--violet); }
.pb-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--text-2); flex-shrink: 0; }
.pb-ic svg { width: 16px; height: 16px; }
.promptbar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: var(--text); padding: 12px 0; }
.promptbar input::placeholder { color: var(--text-3); }
.pb-spark {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0; cursor: pointer;
  border: 1px solid var(--line-2); background: none; color: var(--text-2); display: grid; place-items: center;
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.pb-spark:hover { color: #F7F2EC; border-color: var(--text); transform: rotate(90deg); }
.pb-spark svg { width: 16px; height: 16px; }
.pb-go { flex-shrink: 0; }

.modes { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.mode {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer; font-size: 12px; color: var(--text-2);
  font-family: var(--body); padding: 0;
}
.mode-ic {
  width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: var(--text-2); transition: all .2s var(--ease);
}
.mode-ic svg { width: 20px; height: 20px; }
.mode:hover .mode-ic { border-color: var(--line-2); color: #F7F2EC; }
.mode[aria-selected="true"] .mode-ic { background: var(--violet); border-color: var(--violet); color: #F7F2EC; }
.mode[aria-selected="true"] { color: #F7F2EC; }

/* workspace grid */
.ws { display: grid; grid-template-columns: 292px 1fr; gap: 26px; margin-top: 46px; align-items: start; }
.ws > * { min-width: 0; }
@media (max-width: 900px) { .ws { grid-template-columns: 1fr; } }

.ws-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--card);
  position: sticky; top: 92px;
}
@media (max-width: 900px) { .ws-panel { position: static; } }
.ws-h { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); font-family: var(--body); font-weight: 600; }
.ws-field { margin-top: 20px; }
.ws-lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 9px; }
.ws-lab span { color: var(--violet-2); font-variant-numeric: tabular-nums; }

.chipset { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: none; color: var(--text-2); cursor: pointer;
  font-size: 12px; padding: 7px 11px; border-radius: 999px; font-family: var(--body);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-on { background: var(--violet); border-color: var(--violet); color: #F7F2EC; }

.ws-select, .ws-input {
  width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; outline: none;
}
.ws-select:focus, .ws-input:focus { border-color: var(--violet); }
.ws-range { width: 100%; accent-color: var(--violet); }

.ws-summary {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-3); line-height: 1.7;
  word-break: break-word;
}

.ws-canvas-head { margin-bottom: 18px; }
.ws-note { font-size: 13px; color: var(--text-3); margin-top: 7px; max-width: 60ch; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1080px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .results { grid-template-columns: 1fr; } }
.res {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); aspect-ratio: 1/1;
}
.res img { width: 100%; height: 100%; object-fit: cover; }
.res figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: #F7F2EC;
  background: rgba(8,8,12,.76); border: 1px solid rgba(255,255,255,.12);
  padding: 6px 9px; border-radius: 999px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transition: opacity .25s var(--ease);
}
.res:hover figcaption { opacity: 1; }
.res.is-video::before {
  content: "VIDEO"; position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  background: var(--violet); color: #F7F2EC; padding: 3px 7px; border-radius: 4px;
}

.ws-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  margin-top: 26px; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--violet); background: linear-gradient(180deg, rgba(230,57,70,.12), transparent 60%), var(--card);
}
.ws-cta h3 { font-size: 19px; text-transform: uppercase; letter-spacing: -.02em; }
.ws-cta p { color: var(--text-2); font-size: 14px; margin-top: 6px; }

/* mode-conditional fields */
.studio[data-mode="image"] .only-video,
.studio[data-mode="video"] .only-image { display: none; }

@media (max-width: 620px) {
  .stage { padding: 112px 18px 34px; }
  .promptbar { flex-wrap: wrap; border-radius: var(--r-lg); padding: 12px; }
  .promptbar input { flex: 1 1 100%; order: -1; padding: 6px 2px; }
  .pb-go { flex: 1; }
}

/* locked sub-pages show only their own mode tile */
.studio[data-locked="image"] .mode[data-set="video"],
.studio[data-locked="video"] .mode[data-set="image"] { display: none; }
.studio[data-locked="image"] .modes,
.studio[data-locked="video"] .modes { pointer-events: none; }

/* stage video (video mode only) */
.stage-bg { position: absolute; inset: 0; z-index: -2; }
.stage-still, .stage-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-vid { display: none; }
.studio[data-mode="video"] .stage-vid { display: block; }
.studio[data-mode="video"] .stage-still { display: none; }

/* ==========================================================================
   Studio — richer stage, presets, info strip
   ========================================================================== */
.stage-sub { color: var(--text-2); font-size: 16px; max-width: 56ch; margin: 16px auto 0; }

.quickrow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.quick {
  border: 1px solid var(--line-2); background: rgba(12,12,18,.6); color: var(--text-2);
  font-family: var(--body); font-size: 12px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(8px); transition: all .18s var(--ease);
}
.quick:hover { color: #F7F2EC; border-color: var(--text); }

/* settings panel extras */
.ws-panel-top { display: flex; align-items: baseline; justify-content: space-between; }
.ws-reset {
  background: none; border: 0; cursor: pointer; font-family: var(--body);
  font-size: 11.5px; color: var(--text-3); text-decoration: underline; text-underline-offset: 2px;
}
.ws-reset:hover { color: var(--violet-2); }
.ws-hint { color: var(--text-3) !important; font-weight: 400; }

.preset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pre {
  position: relative; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  cursor: pointer; padding: 0; background: none; aspect-ratio: 1/1;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.pre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pre span {
  position: absolute; inset: auto 0 0 0; font-family: var(--body); font-size: 9.5px;
  padding: 4px 5px; background: rgba(8,8,12,.82); color: #F7F2EC; letter-spacing: .02em;
}
.pre:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pre.is-on { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }

.ws-adv { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.ws-adv summary {
  list-style: none; cursor: pointer; font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 7px;
}
.ws-adv summary::-webkit-details-marker { display: none; }
.ws-adv summary::before { content: "+"; color: var(--violet-2); font-size: 14px; }
.ws-adv[open] summary::before { content: "\2013"; }

.ws-canvas-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ws-count { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* result cards get metadata */
.res-meta {
  display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px 0;
  font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: var(--text-3);
}
.res-wrap { display: flex; flex-direction: column; }

/* info strip */
.studio-info { margin-top: 74px; }
.si-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .si-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .si-grid { grid-template-columns: 1fr; } }
.si { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--card); }
.si-ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet-2); margin-bottom: 14px;
}
.si-ic svg { width: 17px; height: 17px; }
.si h4 { font-size: 15px; text-transform: uppercase; letter-spacing: -.015em; }
.si p { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }

.tips {
  margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; background: var(--card);
}
.tips-h { font-size: 19px; text-transform: uppercase; letter-spacing: -.02em; }
.tips-list { margin-top: 16px; display: grid; gap: 11px; counter-reset: t; max-width: 82ch; }
.tips-list li {
  font-size: 14.5px; color: var(--text-2); padding-left: 30px; position: relative; counter-increment: t;
}
.tips-list li::before {
  content: counter(t); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-family: ui-monospace, Menlo, monospace; font-size: 10px;
  background: color-mix(in srgb, var(--violet) 22%, transparent); color: var(--violet-2);
}
.tips-list strong { color: var(--text); font-weight: 600; }
.tips-link { display: inline-block; margin-top: 16px; font-size: 13.5px; color: var(--violet-2); font-weight: 600; }

/* ==========================================================================
   Studio — BIGGER / more visual pass
   ========================================================================== */
.stage { min-height: 100svh; display: grid; place-items: center; padding: 120px 26px 70px; }
.stage-in { max-width: 1100px; width: 100%; }
.stage h1 { font-size: clamp(52px, 10vw, 132px); line-height: .86; letter-spacing: -.04em; }
.stage-sub { font-size: clamp(16px, 1.5vw, 19px); max-width: 50ch; margin-top: 22px; }

.promptbar {
  max-width: 880px; margin-left: auto; margin-right: auto; margin-top: 42px;
  padding: 12px 12px 12px 22px; gap: 14px;
  border-radius: 999px; border-width: 1px;
}
.promptbar input { font-size: 17px; padding: 16px 0; }
.pb-ic { width: 44px; height: 44px; border-radius: 12px; }
.pb-ic svg { width: 20px; height: 20px; }
.pb-spark { width: 46px; height: 46px; }
.pb-spark svg { width: 19px; height: 19px; }
.pb-go { padding: 16px 32px; font-size: 15.5px; }

.quickrow { margin-top: 20px; }
.quick { font-size: 12.5px; padding: 9px 16px; }

.modes { margin-top: 40px; gap: 18px; }
.mode-ic { width: 78px; height: 78px; border-radius: 18px; }
.mode-ic svg { width: 28px; height: 28px; }
.mode { font-size: 13px; gap: 11px; }

/* bigger settings + presets */
/* the two-column studio layout is desktop-only — unscoped it overrode the
   max-width:900px single-column rule above and forced a 330px sidebar onto phones */
@media (min-width: 901px) { .ws { grid-template-columns: 330px 1fr; } }
.ws { gap: 34px; margin-top: 70px; }
.ws-panel { padding: 26px; }
.preset { grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pre span { font-size: 10.5px; padding: 5px 6px; }

/* fewer, larger results */
.results { grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 620px) { .results { grid-template-columns: 1fr; } }
.res { aspect-ratio: 4/3; border-radius: var(--r-lg); }
.res figcaption { font-size: 11.5px; padding: 8px 12px; opacity: 1; left: 12px; right: 12px; bottom: 12px; }
.res-meta { font-size: 11px; padding: 10px 4px 0; }

.ws-canvas-head { margin-bottom: 24px; }
.ws-canvas-head .ws-h { font-size: 15px; }
.ws-note { font-size: 14px; }

.ws-cta { margin-top: 34px; padding: 30px; }
.ws-cta h3 { font-size: 23px; }

/* image tiles replace the text cards */
.studio-info { margin-top: 96px; }
.si-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .si-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .si-grid { grid-template-columns: 1fr; } }
.si {
  position: relative; display: block; padding: 0; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  aspect-ratio: 3/4; background: var(--card);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.si img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.si::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,12,.94) 6%, rgba(8,8,12,.25) 52%, transparent);
}
.si:hover { transform: translateY(-5px); border-color: var(--line-2); }
.si:hover img { transform: scale(1.06); }
.si-tx { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.si-tx strong {
  display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 19px; letter-spacing: -.02em; color: #F7F2EC;
}
.si-tx em { display: block; font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.66); margin-top: 5px; }

/* tips as a compact four-across strip */
.tips { margin-top: 22px; padding: 30px; }
.tips-h { font-size: 22px; }
.tips-list { grid-template-columns: repeat(4, 1fr); display: grid; gap: 18px; margin-top: 20px; max-width: none; }
@media (max-width: 860px) { .tips-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tips-list { grid-template-columns: 1fr; } }
.tips-list li { padding-left: 0; font-size: 13.5px; }
.tips-list li::before { position: static; margin-bottom: 10px; }
.tips-list strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: 14px; margin-bottom: 4px; letter-spacing: -.01em; }

@media (max-width: 620px) {
  .stage { min-height: auto; padding: 108px 18px 52px; }
  .stage h1 { font-size: clamp(40px, 13vw, 58px); }
  .promptbar { padding: 12px; }
  .pb-go { padding: 14px 20px; }
  .mode-ic { width: 62px; height: 62px; }
}

/* ==========================================================================
   Pipeline — prompt → image → video, as connected nodes
   ========================================================================== */
.flowband { overflow: hidden; }
.flow-head { max-width: 620px; margin-bottom: 46px; }

.flow { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; gap: 0; align-items: stretch; }
@media (max-width: 1000px) { .flow { grid-template-columns: 1fr; gap: 0; } }

.node {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px);
  transition: border-color .3s var(--ease);
}
.flow.on .node { animation: nodeIn .6s var(--ease) forwards; animation-delay: var(--d); }
@keyframes nodeIn { to { opacity: 1; transform: none; } }
.node:hover { border-color: var(--line-2); }

.node-h {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--body); font-weight: 600; font-size: 13px;
}
.node-n {
  font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .1em;
  background: color-mix(in srgb, var(--violet) 24%, transparent); color: var(--violet-2);
  padding: 3px 7px; border-radius: 5px;
}
.node-b { padding: 16px; flex: 1; }
.node-f {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  border-top: 1px solid var(--line); font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px; color: var(--text-3);
}
.dot-on { width: 6px; height: 6px; border-radius: 50%; background: #30C08B; box-shadow: 0 0 0 3px rgba(48,192,139,.16); }

.node-code {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.7;
  color: var(--text-2); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 13px;
}

.node-rows { display: grid; gap: 7px; margin: 0 0 14px; }
.node-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.node-rows dt { color: var(--text-3); margin: 0; }
.node-rows dd { margin: 0; color: var(--text); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }

.node-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.node-out img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.node-final { position: relative; margin: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--violet); }
.node-final img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.node-final figcaption {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--body); font-size: 9px; font-weight: 700; letter-spacing: .12em;
  background: var(--violet); color: #F7F2EC; padding: 3px 7px; border-radius: 4px;
}

/* connectors */
.wire { position: relative; display: block; align-self: center; width: 74px; }
.wire svg { width: 100%; height: 12px; display: block; overflow: visible; }
.wire path { stroke: var(--line-2); stroke-width: 1.5; fill: none; stroke-dasharray: 5 5; }
.wire .pulse {
  position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--violet-2);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--violet) 70%, transparent);
  opacity: 0;
}
.flow.on .wire .pulse { animation: travel 2.6s var(--ease) infinite; animation-delay: var(--d); }
@keyframes travel {
  0%   { left: 0;    opacity: 0; }
  12%  { opacity: 1; }
  70%  { left: calc(100% - 7px); opacity: 1; }
  85%, 100% { left: calc(100% - 7px); opacity: 0; }
}

@media (max-width: 1000px) {
  .wire { width: 100%; height: 46px; }
  .wire svg { height: 100%; }
  .wire path { d: path("M60 0 V12"); }
  .wire svg { transform: rotate(90deg); }
  .flow.on .wire .pulse { animation-name: travelDown; }
  @keyframes travelDown {
    0%   { top: 0; opacity: 0; }
    12%  { opacity: 1; }
    70%  { top: calc(100% - 7px); opacity: 1; }
    85%, 100% { top: calc(100% - 7px); opacity: 0; }
  }
  .wire .pulse { left: calc(50% - 3.5px); top: 0; margin-top: 0; }
}

.flow-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 42px; }

@media (prefers-reduced-motion: reduce) {
  .flow .node { opacity: 1; transform: none; animation: none; }
  .flow .pulse { animation: none; opacity: 1; left: calc(100% - 7px); }
}

/* ==========================================================================
   Partners — logo strip
   ========================================================================== */
.pt-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.pt-head .mono { display: block; }

.pt-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
@media (max-width: 1000px) { .pt-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .pt-row { grid-template-columns: repeat(2, 1fr); } }

.pt {
  display: grid; place-items: center;
  aspect-ratio: 5/3; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
/* real logos: muted until hover, so the row stays quiet */
.pt img {
  max-width: 100%; max-height: 46px; width: auto; height: auto;
  filter: grayscale(1) brightness(1.7); opacity: .62;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
a.pt:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--bg-2); }
a.pt:hover img { filter: none; opacity: 1; }

/* placeholder state — visibly unfinished on purpose */
.pt.is-empty {
  border-style: dashed; border-color: var(--line-2); background: transparent;
}
.pt.is-empty em {
  font-style: normal; font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}

.pt-note {
  margin-top: 22px; text-align: center;
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-3);
}
.pt-note code { color: var(--violet-2); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.news { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0; border-top: 1px solid var(--line); }
.news-bg { position: absolute; inset: 0; z-index: -2; }
.news-bg img { width: 100%; height: 100%; object-fit: cover; }
.news::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 12%, rgba(8,8,12,.90) 52%, rgba(8,8,12,.72) 100%);
}

.news-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.news-in > * { min-width: 0; }
@media (max-width: 900px) { .news-in { grid-template-columns: 1fr; gap: 34px; } .news { padding: 68px 0; } }

.news-tx h2 {
  font-size: clamp(30px, 4.4vw, 52px); text-transform: uppercase;
  letter-spacing: -.03em; line-height: .98; margin-top: 12px;
}
.news-sub { color: var(--text-2); font-size: 16px; margin-top: 18px; max-width: 44ch; }

.news-row { display: flex; gap: 10px; align-items: stretch; }
@media (max-width: 480px) { .news-row { flex-wrap: wrap; } .news-row .btn { width: 100%; } }
.news-row input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line-2); background: rgba(12,12,18,.72);
  border-radius: 999px; padding: 16px 22px; font-size: 15px; color: var(--text);
  outline: none; backdrop-filter: blur(10px);
  transition: border-color .2s var(--ease);
}
.news-row input::placeholder { color: var(--text-3); }
.news-row input:focus { border-color: var(--violet); }
.news-row .btn { padding: 16px 30px; flex-shrink: 0; }

.news-fine { margin-top: 14px; font-size: 12px; color: var(--text-3); }
.news-fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.news-fine a:hover { color: var(--violet-2); }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .why-grid { grid-template-columns: 1fr; } }
.why {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  background: var(--card); transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.why:hover { border-color: var(--line-2); transform: translateY(-3px); }
.why-n {
  display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px;
  letter-spacing: .1em; color: var(--violet-2);
  background: color-mix(in srgb, var(--violet) 22%, transparent);
  padding: 4px 8px; border-radius: 5px; margin-bottom: 16px;
}
.why h3 { font-size: 18px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.15; }
.why p { font-size: 14.5px; color: var(--text-2); margin-top: 10px; }

/* footer: social row + statutory identifiers */
.foot-soc { display: flex; gap: 10px; margin-top: 18px; }
.foot-soc a {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.foot-soc a:hover { border-color: var(--text); color: var(--text); transform: translateY(-2px); }
.foot-soc svg { width: 16px; height: 16px; }

.foot-legalid {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-3);
  letter-spacing: .04em;
}

/* ==========================================================================
   Footer — rebuilt: description, five columns, statutory row
   ========================================================================== */
.foot { padding: 68px 0 30px; }
.foot-grid { grid-template-columns: 1.9fr .85fr .85fr 1fr 1.15fr; gap: 36px; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (max-width: 760px)  { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px)  { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand { max-width: 400px; }
@media (max-width: 1080px) { .foot-brand { grid-column: 1 / -1; max-width: 560px; } }
.foot-desc { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-top: 18px; }
.foot .tag { margin-top: 14px; font-size: 12.5px; color: var(--text-3); font-style: italic; }

.foot-col h5, .foot-contact h5 {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; margin-bottom: 15px;
}
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--text-2); transition: color .18s; }
.foot-col a:hover { color: var(--text); }

.foot-contact .fc-hours {
  font-size: 12px; color: var(--text-3); margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.6;
}
.foot-end { align-items: center; }
.foot-made { color: var(--text-3); }

@media (max-width: 720px) {
  .foot-col li a { display: block; padding: 9px 0; }
  .foot-col ul { gap: 2px; }
}

/* pricing: per-line + credit top-up band */
.plan .per { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-3); margin: -2px 0 12px; }
.plan li strong { color: var(--text); font-weight: 600; }

.topup {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  margin-top: 20px; padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--card);
}
.topup h3 { font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; margin-top: 8px; }
.topup p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; max-width: 52ch; }
.topup-price { text-align: right; flex-shrink: 0; }
.topup-price b {
  display: block; font-family: var(--display); font-weight: 800; font-size: 38px;
  letter-spacing: -.03em; line-height: 1;
}
.topup-price span { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
@media (max-width: 620px) { .topup-price { text-align: left; } }

.price-note { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
.price-note a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Pricing — comparison table + credit cards
   ========================================================================== */
.ctable-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.ctable { width: 100%; border-collapse: collapse; min-width: 620px; }
.ctable th, .ctable td { padding: 15px 18px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.ctable thead th { font-family: var(--body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ctable tbody th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 14px; }
.ctable td { color: var(--text); }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }
.ctable .is-pick { background: color-mix(in srgb, var(--violet) 9%, transparent); }
.ctable thead .is-pick { color: var(--violet-2); }
.ctable i { display: inline-block; width: 16px; height: 16px; }
.ctable i.yes { background: currentColor; color: #30C08B;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ctable i.no { background: var(--text-3); opacity: .45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.credit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 880px) { .credit-grid { grid-template-columns: 1fr; } }
.credit { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--card); }
.credit-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet-2); margin-bottom: 14px; }
.credit-ic svg { width: 17px; height: 17px; }
.credit h4 { font-size: 16px; text-transform: uppercase; letter-spacing: -.015em; }
.credit p { font-size: 14px; color: var(--text-2); margin-top: 9px; }

/* ==========================================================================
   Gallery — filters + masonry
   ========================================================================== */
.gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.gal-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.gf { border: 1px solid var(--line); background: none; color: var(--text-2); cursor: pointer;
  font-family: var(--body); font-size: 13px; padding: 9px 18px; border-radius: 999px; transition: all .18s var(--ease); }
.gf:hover { border-color: var(--line-2); color: var(--text); }
.gf.is-on { background: var(--violet); border-color: var(--violet); color: #F7F2EC; }
.gal-count { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--text-3); }

.masonry { columns: 3; column-gap: 16px; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.mi { break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--line); background: var(--card); display: block; }
.mi img, .mi video { width: 100%; display: block; }
.mi figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px;
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: #F7F2EC;
  background: rgba(8,8,12,.8); border: 1px solid rgba(255,255,255,.13);
  padding: 7px 10px; border-radius: 999px; opacity: 0; transform: translateY(4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi:hover figcaption { opacity: 1; transform: none; }
.mi:hover { border-color: var(--line-2); }
.mi .vtag { position: absolute; top: 10px; left: 10px; font-size: 9px; font-weight: 700;
  letter-spacing: .12em; background: var(--violet); color: #F7F2EC; padding: 3px 7px; border-radius: 4px; }
.gal-note { margin-top: 28px; font-size: 12.5px; color: var(--text-3); }

/* ==========================================================================
   Guides — sticky contents + long form
   ========================================================================== */
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 52px; align-items: start; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; gap: 30px; } }
.toc { position: sticky; top: 96px; }
@media (max-width: 900px) { .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; } }
.toc-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 14px; }
.toc ol { display: grid; gap: 10px; counter-reset: toc; }
.toc a { font-size: 13.5px; color: var(--text-2); display: block; padding-left: 22px; position: relative; counter-increment: toc; }
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0;
  font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: var(--text-3); }
.toc a:hover { color: var(--violet-2); }

.guide-body { max-width: 68ch; }
.guide { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.guide:last-child { border-bottom: 0; }
.guide-meta { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--violet-2); letter-spacing: .04em; }
.guide h2 { font-size: clamp(24px,3vw,34px); text-transform: uppercase; letter-spacing: -.025em; margin: 10px 0 16px; }
.guide p { color: var(--text-2); font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.guide strong { color: var(--text); font-weight: 600; }
.guide-list, .guide-ol { margin: 16px 0; display: grid; gap: 11px; }
.guide-list li, .guide-ol li { color: var(--text-2); font-size: 15px; line-height: 1.7; padding-left: 20px; position: relative; }
.guide-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.guide-ol { counter-reset: g; }
.guide-ol li { counter-increment: g; padding-left: 30px; }
.guide-ol li::before { content: counter(g); position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center; font-family: ui-monospace, Menlo, monospace; font-size: 10px;
  background: color-mix(in srgb, var(--violet) 22%, transparent); color: var(--violet-2); }

.guide-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
@media (max-width: 620px) { .guide-compare { grid-template-columns: 1fr; } }
.guide-compare > div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--card); }
.guide-compare .is-good { border-color: var(--violet); }
.gc-tag { font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.gc-code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--text); line-height: 1.6; margin: 0; }

/* matches the plain nav links beside it — --text-2 made it read as disabled */
.nav-plain .nav-create-btn { background: none; border-color: transparent; color: var(--text); font-weight: 400; }
.nav-plain:hover .nav-create-btn, .nav-plain.is-active .nav-create-btn { background: none; border-color: transparent; color: var(--text); }

/* ─────────────────────────────────────────────────────────
   USE CASES — industries, worked example, roles, fit
   ───────────────────────────────────────────────────────── */
.ind-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1px;
  background:var(--line);border:1px solid var(--line);margin-top:3rem}
.ind-grid > *{min-width:0}
.ind{background:var(--bg);padding:2.2rem 1.9rem;transition:background .3s}
.ind:hover{background:var(--card)}
.ind h3{font-family:var(--display);font-weight:900;text-transform:uppercase;
  font-size:clamp(1.05rem,1.6vw,1.3rem);letter-spacing:-.01em;margin:0 0 .8rem}
.ind p{color:var(--text-2);font-size:.95rem;line-height:1.65;margin:0 0 1.3rem}
.ind-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line);padding-top:1.1rem}
.ind-list li{position:relative;padding-left:1.1rem;color:var(--text-3);font-size:.86rem;
  line-height:1.5;margin-bottom:.5rem}
.ind-list li::before{content:"";position:absolute;left:0;top:.55em;width:5px;height:5px;
  border-radius:50%;background:var(--violet-2)}

.wex{list-style:none;margin:3rem 0 0;padding:0;counter-reset:none}
.wex-row{display:grid;grid-template-columns:auto 1fr;gap:1.6rem;align-items:start;
  padding:2rem 0;border-top:1px solid var(--line)}
.wex-row:last-child{border-bottom:1px solid var(--line)}
.wex-row > *{min-width:0}
.wex-n{font-family:var(--display);font-weight:900;font-size:clamp(1.6rem,3vw,2.4rem);
  line-height:1;color:transparent;-webkit-text-stroke:1px var(--text-3);letter-spacing:-.02em}
.wex-row h3{font-family:var(--display);font-weight:900;text-transform:uppercase;
  font-size:clamp(1rem,1.5vw,1.2rem);margin:0 0 .7rem;letter-spacing:-.01em}
.wex-row p{color:var(--text-2);font-size:.95rem;line-height:1.7;margin:0}
.wex-row .pr{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;
  color:var(--violet-2);background:var(--card);border:1px solid var(--line);
  padding:.7rem .9rem;margin:0 0 .9rem;overflow-x:auto;white-space:nowrap}

.role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.5rem;margin-top:3rem}
.role-grid > *{min-width:0}
.role{border:1px solid var(--line);padding:1.8rem 1.6rem;background:var(--bg);
  transition:border-color .3s,transform .3s}
.role:hover{border-color:var(--violet);transform:translateY(-3px)}
.role h3{font-family:var(--display);font-weight:900;text-transform:uppercase;
  font-size:1rem;margin:0 0 .7rem;letter-spacing:.01em}
.role p{color:var(--text-2);font-size:.92rem;line-height:1.65;margin:0}

.fit-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1px;background:var(--line);border:1px solid var(--line);margin-top:3rem}
.fit-two > *{min-width:0}
.fit-col{background:var(--bg);padding:2.1rem 1.9rem}
.fit-h{display:flex;align-items:center;gap:.6rem;font-family:var(--display);font-weight:900;
  text-transform:uppercase;font-size:.95rem;letter-spacing:.04em;margin:0 0 1.4rem}
.fit-h::before{content:"";width:18px;height:18px;flex:none;border-radius:50%;
  display:inline-block}
.fit-yes::before{background:color-mix(in oklab,#34D399 22%,transparent);
  box-shadow:inset 0 0 0 1px #34D399}
.fit-no::before{background:color-mix(in oklab,#F87171 18%,transparent);
  box-shadow:inset 0 0 0 1px #F87171}
.fit-list{list-style:none;margin:0;padding:0}
.fit-list li{position:relative;padding-left:1.4rem;color:var(--text-2);font-size:.93rem;
  line-height:1.6;padding-bottom:.85rem;margin-bottom:.85rem;border-bottom:1px solid var(--line)}
.fit-list li:last-child{border-bottom:0;padding-bottom:0;margin-bottom:0}
.fit-list li::before{content:"";position:absolute;left:0;top:.5em;width:7px;height:7px;
  background:var(--text-3)}
.fit-yes ~ .fit-list li::before{background:#34D399}
.fit-no  ~ .fit-list li::before{background:#F87171}

@media (max-width:640px){
  .wex-row{grid-template-columns:1fr;gap:.8rem}
  .ind,.fit-col{padding:1.7rem 1.3rem}
}

/* ─────────────────────────────────────────────────────────
   FIX: .ws-canvas-head is a flex row; its children default to
   min-width:auto, so the title block + nowrap count could not
   shrink and pushed the studio pages ~170px wide on mobile.
   ───────────────────────────────────────────────────────── */
.ws-canvas-head > * { min-width: 0; }
.ws-note { max-width: min(60ch, 100%); }
@media (max-width: 700px) {
  .ws-canvas-head { flex-direction: column; gap: 8px; }
  .ws-count { white-space: normal; }
}

/* ─────────────────────────────────────────────────────────
   Brand palette roles
     #E63946 red      primary actions, active states
     #F4D35E gold     accent words, highlights, prompt text
     #457B9D blue     eyebrows, quiet structural marks
     #8B1E2D burgundy deep structure — never text (2.1:1 on --bg)
   ───────────────────────────────────────────────────────── */
.uc .bd h3, .ind h3 { color: var(--text); }
.ind-list li::before { background: var(--blue); }
.wex-n { -webkit-text-stroke: 1px var(--blue); }
.fit-yes::before { background: color-mix(in oklab, var(--blue) 30%, transparent);
                   box-shadow: inset 0 0 0 1px var(--blue-lt); }
.fit-yes ~ .fit-list li::before { background: var(--blue-lt); }
.fit-no::before  { background: color-mix(in oklab, var(--deep) 45%, transparent);
                   box-shadow: inset 0 0 0 1px #C4485A; }
.fit-no ~ .fit-list li::before { background: #C4485A; }
.role:hover { border-color: var(--blue); }
.toc a:hover, .guide a { color: var(--blue-lt); }

/* ==========================================================================
   SCROLL CHOREOGRAPHY
   Entrance animations, parallax, micro-interactions.

   Every animated property is opacity / transform / filter only, so the
   compositor handles them on the GPU and nothing triggers layout. Elements
   animate once, then `will-change` is dropped so we don't hold GPU layers
   for the life of the page.
   ========================================================================== */

:root {
  --e-out:   cubic-bezier(.16, 1, .3, 1);      /* expo-out: fast start, long settle */
  --e-soft:  cubic-bezier(.22, .61, .36, 1);
  --d-base:  .9s;
  --stagger: 110ms;
}

/* ── base hidden state ─────────────────────────────────────────────────── */
/* NOTE: every hiding rule below is gated on html.js, which an inline script
   in <head> sets immediately. If JavaScript is blocked, fails, or simply has
   not run yet, none of these apply and the content is plainly visible.
   Animation is an enhancement; it is never a precondition for reading. */
.js [data-anim] {
  opacity: 0;
  transition:
    opacity   var(--dur, var(--d-base)) var(--e-out) var(--delay, 0ms),
    transform var(--dur, var(--d-base)) var(--e-out) var(--delay, 0ms),
    filter    var(--dur, var(--d-base)) var(--e-out) var(--delay, 0ms);
}
.js [data-anim].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── entrance variants ─────────────────────────────────────────────────── */
.js [data-anim="fade-up"]    { transform: translate3d(0, 38px, 0); }
.js [data-anim="fade-down"]  { transform: translate3d(0, -32px, 0); }
.js [data-anim="fade-left"]  { transform: translate3d(-44px, 0, 0); }
.js [data-anim="fade-right"] { transform: translate3d(44px, 0, 0); }
.js [data-anim="scale-in"]   { transform: scale3d(.92, .92, 1); }
.js [data-anim="rotate-in"]  { transform: translate3d(0, 26px, 0) rotate(-2.5deg) scale3d(.97, .97, 1); }
.js [data-anim="blur-in"]    { transform: translate3d(0, 18px, 0); filter: blur(12px); }
.js [data-anim="fade"]       { transform: none; }

/* Cards float up further and land softer — the extra distance is what makes a
   grid read as "dealt out" rather than "switched on". */
.js [data-anim="card"] {
  transform: translate3d(0, 52px, 0) scale3d(.97, .97, 1);
  --dur: 1s;
}

/* Icons pop with a slight counter-rotation. */
.js [data-anim="pop"] {
  transform: scale3d(.6, .6, 1) rotate(-12deg);
  --dur: .75s;
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);   /* gentle overshoot */
}

/* Media scales down 1.05 → 1 on entry, which reads as a slow settle. */
.js [data-anim="zoom-in"] { transform: scale3d(1.06, 1.06, 1); --dur: 1.2s; }

/* ── stagger ───────────────────────────────────────────────────────────── */
/* JS stamps --i on each child of [data-stagger]; delay is index × step. */
.js [data-stagger] > * { --delay: calc(var(--i, 0) * var(--step, var(--stagger))); }
[data-stagger="slow"] { --step: 160ms; }
[data-stagger="fast"] { --step: 70ms; }

/* Section-level ordering: heading, then copy, then actions, then media. */
[data-seq] > :is(h1, h2, .h2, .mono)      { --delay: 0ms; }
[data-seq] > :is(p, .lede, ul, ol)        { --delay: 140ms; }
[data-seq] > :is(.btn, .cta-row, .actions){ --delay: 260ms; }
[data-seq] > :is(img, figure, video, .media) { --delay: 360ms; }

/* ── split-text reveal ─────────────────────────────────────────────────── */
/* Each word sits in an overflow-hidden mask and slides up from beneath it. */
.split-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .04em;   /* descenders would otherwise be clipped by the mask */
  margin-bottom: -.04em;
}
.js .split-i {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform .95s var(--e-out) var(--wd, 0ms);
}
.js .in .split-i, .js .split-done .split-i { transform: none; }

/* ── parallax + mouse-follow ───────────────────────────────────────────── */
/* JS writes --py (scroll) and --mx/--my (pointer); CSS composes them so the
   two never fight over the same transform property. */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
[data-float] {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
  will-change: transform;
}

/* ── scroll progress ───────────────────────────────────────────────────── */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet) 0%, var(--violet-2) 60%, var(--blue-lt) 100%);
  pointer-events: none;
}

/* ── micro-interactions ────────────────────────────────────────────────── */
.btn {
  transition: transform .3s var(--e-soft), box-shadow .3s var(--e-soft),
              opacity .3s var(--e-soft), border-color .3s var(--e-soft),
              background-color .3s var(--e-soft), color .3s var(--e-soft);
}
.btn:hover  { transform: translate3d(0, -2px, 0); }
.btn:active { transform: translate3d(0, 0, 0); transition-duration: .08s; }
.btn-fill:hover { box-shadow: 0 14px 34px -12px rgba(230, 57, 70, .85); }

/* Cards lift and tilt. The tilt angles come from JS via --rx/--ry so the card
   leans toward the cursor; without JS it still lifts. */
:is(.uc, .plan, .role, .ind, .guide, .mi, .si, .cap-card) {
  transition: transform .45s var(--e-soft), box-shadow .45s var(--e-soft),
              border-color .45s var(--e-soft);
  transform-style: preserve-3d;
}
:is(.uc, .plan, .role, .ind, .guide, .si, .cap-card):hover {
  transform: translate3d(0, -6px, 0)
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, .85);
}

/* Media zoom on hover — the wrapper clips, the image scales. */
:is(.uc, .mi, .si, .guide) :is(img, video) {
  transition: transform .7s var(--e-soft);
  will-change: transform;
}
:is(.uc, .mi, .si, .guide):hover :is(img, video) { transform: scale3d(1.06, 1.06, 1); }

/* Nav link for the section currently in view. */
.nav a.is-current { color: var(--text); }
.nav a.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 1px; background: var(--violet-2);
  transform: scaleX(1); transform-origin: 0 50%;
}

/* ── smooth scrolling ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* ── reduced motion ────────────────────────────────────────────────────── */
/* Everything resolves to its final state instantly. Nothing moves, nothing
   fades, and no content is ever left hidden. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-anim], [data-anim].in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .split-i { transform: none !important; transition: none !important; }
  [data-parallax], [data-float] { transform: none !important; }
  .btn:hover,
  :is(.uc, .plan, .role, .ind, .guide, .si, .cap-card):hover { transform: none; }
  :is(.uc, .mi, .si, .guide):hover :is(img, video) { transform: none; }
  .progress { display: none; }
}

/* Style-rail captions now carry the real prompt, so they get the same
   monospace treatment as every other prompt on the site. */
.style .tx p {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem; line-height: 1.45; color: var(--violet-2);
  overflow-wrap: anywhere;
}

/* Stage signal — states plainly that the product is not open yet. Deliberately
   quiet: it is a fact, not a badge to brag about. */
.stagetag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-size: 12px; font-weight: 500;
  letter-spacing: .02em; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .42rem .85rem .42rem .7rem; margin-bottom: 1.1rem;
  background: color-mix(in oklab, var(--card) 70%, transparent);
}
.stagetag-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--violet-2);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--violet-2) 22%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .stagetag-dot { animation: stagePulse 2.6s var(--e-soft) infinite; }
  @keyframes stagePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .45; }
  }
}
.foot-stage { color: var(--text-3); font-size: 12.5px; margin-top: .5rem; }

/* ==========================================================================
   MOBILE
   Phone-specific layout decisions, not the desktop grid compressed. Each
   block below exists because something measurably failed at 390px, and the
   fix is chosen for how a phone is actually held and read.
   ========================================================================== */

/* Entrance animations translate horizontally (fade-left is -44px). On a 390px
   viewport that pushes elements past the edge and the page gains 44px of
   horizontal scroll before anything has revealed. `clip` rather than `hidden`
   so the sticky nav keeps working. */
html { overflow-x: clip; }
body { overflow-x: clip; }

@media (max-width: 760px) {

  /* ── MOTION ───────────────────────────────────────────────────────────
     No sideways travel on a narrow screen: it causes the overflow above and
     reads as a jolt rather than a reveal. Distances shrink and durations
     shorten because the same 38px feels sluggish on a small, close-held
     screen that it feels elegant on at desktop distance. */
  :root { --d-base: .68s; --stagger: 75ms; }

  [data-anim="fade-left"],
  [data-anim="fade-right"],
  [data-anim="fade-up"]    { transform: translate3d(0, 22px, 0); }
  [data-anim="fade-down"]  { transform: translate3d(0, -18px, 0); }
  [data-anim="scale-in"]   { transform: scale3d(.96, .96, 1); }
  [data-anim="rotate-in"]  { transform: translate3d(0, 20px, 0) rotate(-1deg); }
  [data-anim="blur-in"]    { transform: translate3d(0, 14px, 0); filter: blur(7px); }
  [data-anim="card"]       { transform: translate3d(0, 26px, 0); }
  [data-anim="zoom-in"]    { transform: scale3d(1.03, 1.03, 1); }
  /* stagger over many cards adds up to a long wait on a screen that shows
     two at a time — cap the visible delay */
  [data-stagger] > * { --step: 60ms; }

  /* ── TYPE ─────────────────────────────────────────────────────────────
     Display type stays large (it is the brand), but body copy moves up:
     15px is the floor for comfortable reading at arm's length, and several
     supporting styles were sitting at 12.5px. */
  h1, .h1 { font-size: clamp(38px, 11.5vw, 52px); line-height: .94; letter-spacing: -.02em; }
  .h2     { font-size: clamp(27px, 8.2vw, 38px);  line-height: 1.0;  letter-spacing: -.015em; }
  .lede, .hero-sub { font-size: 16.5px; line-height: 1.62; }
  .prompt-note, .price-note, .proc-note, .ws-note,
  .desc-more, .price-stage, .foot-stage { font-size: 13.5px; line-height: 1.6; }
  .mono { font-size: 11px; letter-spacing: .14em; }
  .pr, .node-code, .style .tx p { font-size: 12.5px; }

  /* ── VERTICAL RHYTHM ──────────────────────────────────────────────────
     Sections need less air than desktop (the screen is the frame), but the
     gap between a heading and its content needs more, since there is no
     column structure left to separate them. */
  .band  { padding: 66px 0; }
  .phead { padding: 116px 0 0; }
  .cta   { padding: 66px 0; }

  /* ── SPINE ────────────────────────────────────────────────────────────
     The rail label is a left-hand column on desktop. Stacked, it becomes a
     stranded full-width row. Turn it into a proper eyebrow: short rule,
     tight to the heading it introduces. */
  .spine { display: block; }
  .spine > .rail { margin-bottom: 1.1rem; }
  .rail .mono {
    display: inline-flex; align-items: center; gap: .6rem;
  }
  .rail .mono::after {
    content: ""; width: 26px; height: 1px; background: var(--line-2);
  }

  /* ── TOUCH TARGETS ────────────────────────────────────────────────────
     WCAG 2.5.8 wants 24px minimum; Apple and Android both ask for 44px.
     Inline links inside a sentence are exempt and left alone — these are
     the standalone controls, which were 29–41px. */
  .burger { width: 44px; height: 44px; }
  .sheet-lead, .sheet-sub {
    min-height: 48px; display: flex; align-items: center;
  }
  .totop { width: 48px; height: 48px; }
  .btn { min-height: 48px; padding-block: 0; display: inline-flex;
         align-items: center; justify-content: center; }
  .btn-sm { min-height: 44px; }
  .prompt input, .promptbar input,
  .ws-input, .ws-select, .field input, .field textarea { min-height: 48px; }
  .nav .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .faq summary { min-height: 48px; display: flex; align-items: center; }
  .gf, .quick, .chip, .pb-spark, .ws-reset { min-height: 44px; }
.ws-adv summary { min-height: 44px; display: flex; align-items: center; }
.pass-toggle { min-width: 44px; min-height: 44px; }

/* A range input is only as tappable as its thumb. The track can stay thin;
   the grab handle and the row it sits in cannot. */
.ws-range { height: 44px; }
.ws-range::-webkit-slider-thumb { width: 24px; height: 24px; }
.ws-range::-moz-range-thumb     { width: 24px; height: 24px; }

/* Checkboxes: enlarge the box, and make the whole label row the target
   so the tap area is the sentence, not the 16px square. */
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; flex: none; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]),
.check, .checkline {
  display: flex; align-items: center; gap: .7rem; min-height: 44px;
}

  .quick, .gf { padding-inline: 15px; }

  /* ── HERO ─────────────────────────────────────────────────────────────
     Stack text over media, and let the prompt bar breathe: on desktop the
     input and button sit side by side, which leaves the input ~120px wide
     on a phone. */
  .hero { padding-top: 104px; }
  .prompt { flex-wrap: wrap; padding: 10px; gap: 8px; }
  .prompt input { flex: 1 1 100%; order: 1; }
  .prompt .chev { display: none; }
  .prompt .btn { flex: 1 1 100%; order: 2; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; gap: 0; }
  .hero-meta > div {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 13px 0; border-bottom: 1px solid var(--line);
  }
  .stagetag { font-size: 11.5px; padding: .4rem .75rem .4rem .6rem; }

  /* ── COMPARISON TABLE → STACKED ROWS ──────────────────────────────────
     A 10×4 table is 620px wide; on a 390px screen it becomes a horizontal
     scroller, which hides the column you are comparing against. Each row
     becomes its own block: the feature name, then the three plans labelled
     inline. Nothing scrolls and nothing is hidden. */
  /* the desktop rule sets min-width:620px so the table can scroll inside its
     wrapper; once it stacks that min-width is what keeps the page 620px wide */
  .ctable-wrap { overflow: visible; border: 0; border-radius: 0; margin-top: 28px; }
  .ctable { min-width: 0; width: 100%; border-collapse: separate; }
  .ctable, .ctable tbody, .ctable tr, .ctable td, .ctable th { display: block; width: auto; }
  .ctable thead { display: none; }
  .ctable tr {
    border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 14px 15px; margin-bottom: 10px; background: var(--card);
  }
  .ctable th[scope="row"] {
    font-size: 14px; font-weight: 600; color: var(--text);
    padding: 0 0 10px; border: 0; text-align: left;
  }
  .ctable td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 7px 0; border: 0; border-top: 1px solid var(--line);
    font-size: 13.5px; color: var(--text-2); text-align: left;
  }
  .ctable td::before {
    content: attr(data-plan);
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-3); font-weight: 600;
  }
  .ctable td.is-pick { color: var(--text); }
  .ctable td.is-pick::before { color: var(--violet-2); }
  .ctable td i { margin: 0; }

  /* ── HORIZONTAL SCROLLERS ─────────────────────────────────────────────
     These are meant to scroll. Bleed them to the screen edge so it is
     obvious there is more, instead of stopping flush with the text column. */
  .rail-outer, .g-viewport { margin-inline: calc(var(--gutter) * -1); }
  .rail-scroll, .g-track {
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .rail-scroll { grid-auto-columns: 78vw; }

  /* ── GRIDS ────────────────────────────────────────────────────────────
     Single column throughout: two columns at 390px leaves ~170px each,
     which is narrower than the images inside them want to be. */
  .why-grid, .ind-grid, .role-grid, .cap, .fit-two,
  .credit-grid, .uc-grid, .si-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .plans { gap: 14px; }
  .plan { padding: 22px 20px; }

  /* ── FOOTER ───────────────────────────────────────────────────────────
     Five columns become one; the link lists get touch-sized rows. */
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .foot-col ul li a { display: flex; min-height: 40px; align-items: center; }
  .foot-end { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Very narrow phones (iPhone SE and similar). */
@media (max-width: 380px) {
  h1, .h1 { font-size: 36px; }
  .band   { padding: 56px 0; }
  .stagetag { font-size: 11px; }
}

/* ── Build status ─────────────────────────────────────────────────────────
   Three plain blocks. Deliberately unstyled-looking: this is a status
   report, and dressing it up would undercut what it is for. */
.bstat {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 2.6rem;
}
.bstat > * { min-width: 0; }
.bs { background: var(--bg); padding: 2rem 1.8rem; }
.bs-k {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-lt);
  margin: 0 0 1rem;
}
.bs h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: -.01em;
  margin: 0 0 .8rem; line-height: 1.15;
}
.bs p { color: var(--text-2); font-size: .93rem; line-height: 1.68; margin: 0; }

/* The stage question sitting in the company block. */
.qa-q {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 1rem; letter-spacing: -.01em; margin: 0 0 .7rem;
}
.qa-a {
  color: var(--text-2); font-size: .95rem; line-height: 1.7;
  padding-bottom: 1.4rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .bstat { grid-template-columns: 1fr; }
  .bs { padding: 1.7rem 1.35rem; }
}

/* ── OFF SWITCH ───────────────────────────────────────────────────────────
   Add class="no-anim" to <html> (or delete the inline js-flag script in the
   <head>) and every entrance animation is disabled sitewide. Content renders
   immediately, exactly as it does with JavaScript turned off. Nothing else
   about the design changes. */
html.no-anim [data-anim],
html.no-anim [data-anim].in,
html.no-anim .rv,
html.no-anim .rv.in { opacity: 1 !important; transform: none !important; filter: none !important; }
html.no-anim .split-i { transform: none !important; }

/* ── PLAIN EXPLAINER ──────────────────────────────────────────────────────
   Deliberately the quietest block on the page: no display face, no accent
   colour, generous line-height. Everything else can be stylish because this
   one section says plainly what the product is. */
.plainband { padding-top: 74px; padding-bottom: 74px; }
.plain {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px;
  align-items: start;
}
.plain > * { min-width: 0; }
.plain-h {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(23px, 2.5vw, 33px); line-height: 1.28;
  letter-spacing: -.015em; color: var(--text); margin: 12px 0 0; max-width: 20ch;
}
.plain-body p {
  color: var(--text-2); font-size: 16.5px; line-height: 1.72; margin: 0 0 1rem;
  max-width: 54ch;
}
.plain-body p:last-child { margin-bottom: 0; }

.plain-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 46px;
}
.plain-steps > * { min-width: 0; }
.pstep {
  background: var(--bg); padding: 1.7rem 1.5rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.pstep-n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--body); font-size: 12.5px; font-weight: 600;
  color: var(--bg); background: var(--violet-2);
}
.pstep h3 {
  font-family: var(--body); font-weight: 600; font-size: 15px;
  letter-spacing: 0; text-transform: none; margin: 2px 0 .45rem; color: var(--text);
}
.pstep p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 0; }

.plain-for { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.plain-for p:not(.mono) {
  color: var(--text-2); font-size: 16px; line-height: 1.72;
  margin: .8rem 0 0; max-width: 76ch;
}

@media (max-width: 860px) { .plain { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 760px) {
  .plainband { padding-top: 56px; padding-bottom: 56px; }
  .plain-steps { grid-template-columns: 1fr; margin-top: 32px; }
  .plain-h { font-size: 22px; max-width: none; }
  .plain-body p, .plain-for p:not(.mono) { font-size: 15.5px; }
}
