/* =========================================================
   TUBO DEV — styles
   ========================================================= */

:root {
  --bg: #0B0B0B;
  --bg-2: #151515;
  --bg-3: #1D1D1C;
  --line: #292929;
  --line-strong: #3A3936;
  --text: #F2EFE8;
  --muted: #A6A39C;
  --accent: #C9A96E;
  --accent-ink: #0B0B0B;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
}
.loader__count { font-family: var(--serif); font-style: italic; font-size: clamp(80px, 18vw, 260px); line-height: 0.8; }
.loader__brand { padding-bottom: 12px; }
.loader__bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--text); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
  display: grid; place-items: center;
}
.cursor span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #000; opacity: 0; transition: opacity .2s; text-transform: uppercase; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--accent); }
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: transform .5s var(--ease), background .3s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid { background: rgba(11, 11, 11, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.menu-open .nav { transform: none; background: transparent; border-color: transparent; backdrop-filter: none; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1;
}
.nav__links { display: flex; gap: 34px; }
.nav__links a { font-size: 15px; color: var(--muted); transition: color .25s; position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--bg);
  padding: 110px var(--gutter) var(--gutter); display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); pointer-events: none; visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; visibility: visible; }
.mobile-menu a.big { display: block; font-size: clamp(44px, 12vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.mobile-menu a.big em { font-family: var(--serif); color: var(--accent); }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--text); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px) rotate(-45deg); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 48px; overflow: hidden; isolation: isolate;
}
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; left: 50%; top: 40%; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%; filter: blur(80px); opacity: .55;
  background: radial-gradient(circle at 30% 30%, rgba(201, 169, 110, .26), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(120, 92, 60, .22), transparent 55%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(28px, 5vw, 56px); flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,169,110,.6); } 70% { box-shadow: 0 0 0 10px rgba(201,169,110,0); } 100% { box-shadow: 0 0 0 0 rgba(201,169,110,0); } }

.hero__title {
  margin: 0; font-weight: 500; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(52px, 11.2vw, 190px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .serif { color: var(--accent); letter-spacing: -0.02em; }
.hero__bottom {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: end;
  margin-top: clamp(32px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__lead { margin: 0; font-size: clamp(17px, 1.5vw, 21px); max-width: 520px; color: var(--muted); }
.hero__lead strong { color: var(--text); font-weight: 500; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-hint { display: flex; align-items: center; gap: 12px; }
.scroll-hint__line { width: 1px; height: 48px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
  .scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-size: clamp(22px, 3vw, 40px); letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track span:nth-child(even) { font-family: var(--serif); font-style: italic; color: var(--muted); }
.marquee__track b { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 200px) 0; }
.section--tight { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); flex-wrap: wrap; }
.section-head > p { max-width: 380px; margin: 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.h2 { margin: 0; font-size: clamp(40px, 6.4vw, 104px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 500; }
.h2 .serif { color: var(--accent); }
.h3 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.025em; font-weight: 500; line-height: 1.1; }

/* statement */
.statement { font-size: clamp(28px, 4.4vw, 66px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; max-width: 1200px; margin: 0; }
.js .statement .w { opacity: .14; }
.statement .serif { color: var(--accent); }
.statement-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.statement-meta > div { padding-top: 24px; }
.statement-meta .big { font-size: clamp(36px, 4vw, 60px); letter-spacing: -0.04em; line-height: 1; margin: 12px 0 8px; }
.statement-meta p { margin: 0; color: var(--muted); font-size: 15px; max-width: 300px; }
@media (max-width: 760px) { .statement-meta { grid-template-columns: 1fr; } }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service {
  background: var(--bg); padding: clamp(28px, 3.5vw, 52px); min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden; isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(201,169,110,.10), transparent 45%);
}
.service:hover::before { opacity: 1; }
.service__top { display: flex; justify-content: space-between; align-items: start; }
.service__icon { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .4s, color .4s, transform .6s var(--ease); }
.service__icon svg { width: 24px; height: 24px; }
.service:hover .service__icon { background: var(--accent); color: var(--accent-ink); transform: rotate(-8deg) scale(1.05); }
.service p { color: var(--muted); margin: 12px 0 0; max-width: 440px; }
.service__more { position: relative; z-index: 1; align-self: start; margin-top: -22px; font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.service__more:hover { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.service--wide { grid-column: 1 / -1; min-height: 0; }

/* work list with hover reveal */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 70px 1.5fr 1fr 110px 40px; align-items: center; gap: 24px;
  padding: clamp(26px, 3vw, 42px) 0; border-bottom: 1px solid var(--line); position: relative;
}
.work-row__idx { color: var(--muted); }
.work-row__title { font-size: clamp(28px, 4.2vw, 64px); letter-spacing: -0.04em; line-height: 1; font-weight: 500; transition: transform .6s var(--ease), color .4s; }
.work-row__cat { color: var(--muted); }
.work-row__cat small { display: block; font-size: 14px; opacity: .8; }
.work-row__year { text-align: right; color: var(--muted); }
.work-row__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .5s var(--ease); }
.work-row__arrow svg { width: 14px; height: 14px; }
.work-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.work-row:hover::after { transform: scaleX(1); }
.work-row:hover .work-row__title { transform: translateX(18px); }
.work-row:hover .work-row__arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }
.badge { display: inline-block; margin-left: 12px; vertical-align: middle; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); transform: translateY(-0.4em); }
.work-row__mobile-img { display: none; }

.reveal-img {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(280px, 26vw, 420px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.6); will-change: transform;
}
.reveal-img__inner { position: absolute; inset: 0; }
.reveal-img__inner > div { position: absolute; inset: 0; transition: opacity .35s; opacity: 0; }
.reveal-img__inner > div.is-on { opacity: 1; }

.cover { width: 100%; height: 100%; position: relative; overflow: hidden; background: var(--bg-3); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--gen {
  background:
    radial-gradient(120% 80% at 20% 10%, hsla(var(--h), 85%, 62%, .85), transparent 55%),
    radial-gradient(100% 90% at 90% 100%, hsla(calc(var(--h) + 50), 80%, 45%, .9), transparent 60%),
    hsl(var(--h), 30%, 10%);
}
.cover--gen .cover__label { position: absolute; left: 18px; bottom: 16px; right: 18px; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.cover--gen .cover__ui { position: absolute; left: 18px; right: 18px; top: 18px; height: 10px; display: flex; gap: 6px; }
.cover--gen .cover__ui i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }

@media (max-width: 900px) {
  .work-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .work-row__idx, .work-row__year { display: none; }
  .work-row__mobile-img { display: block; order: 1; grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
  .work-row__title { grid-column: 1 / -1; order: 2; }
  .work-row__cat { order: 3; }
  .work-row__arrow { order: 4; }
  .work-row:hover .work-row__title { transform: none; }
  .reveal-img { display: none; }
}
.work-more { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }

/* process — horizontal */
.process { overflow: hidden; }
.process__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.process__track { display: flex; gap: 24px; padding-left: var(--gutter); width: max-content; }
.step {
  width: clamp(300px, 34vw, 480px); height: clamp(380px, 52vh, 520px); flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-2);
}
.step__n { font-family: var(--serif); font-style: italic; font-size: clamp(90px, 10vw, 150px); line-height: .8; color: var(--accent); }
.step p { color: var(--muted); margin: 12px 0 0; }
.step__time { margin-top: 18px; display: inline-block; }
.step--intro { background: transparent; border: 0; padding: 0 40px 0 0; justify-content: center; width: clamp(300px, 36vw, 560px); }
.step--intro p { font-size: 18px; }
@media (max-width: 900px) {
  .process__pin { height: auto; padding: 96px 0; }
  .process__track { flex-direction: column; width: 100%; padding: 0 var(--gutter); }
  .step, .step--intro { width: 100%; height: auto; min-height: 0; gap: 40px; }
  .step--intro { padding: 0 0 16px; }
}

/* pricing cards */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 24px; position: relative; transition: transform .6s var(--ease), border-color .4s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.plan--featured { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.plan--featured .muted { color: rgba(11,11,11,.78); }
.plan--featured .plan__list li { border-color: rgba(11,11,11,.15); }
.plan--featured .plan__list li::before { color: var(--accent-ink); }
.plan__tag { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--accent-ink); color: var(--accent); padding: 5px 9px; border-radius: 999px; }
.plan__name { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.plan__for { font-size: 14px; margin-top: 4px; }
.plan__price { font-size: clamp(42px, 3.6vw, 56px); letter-spacing: -0.045em; line-height: 1; font-weight: 500; }
.plan__price small { font-size: 14px; letter-spacing: 0; font-weight: 400; display: block; margin-bottom: 8px; opacity: .65; }
.plan__list { list-style: none; margin: 0; padding: 0; font-size: 15px; flex: 1; }
.plan__list li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; }
.plan__list li::before { content: "✦"; position: absolute; left: 0; top: 10px; color: var(--accent); font-size: 12px; }
.plan .btn { justify-content: center; width: 100%; }
.plan--featured .btn--ghost { border-color: rgba(11,11,11,.3); }
.plan--featured .btn--ghost::before { background: var(--accent-ink); }
.plan--featured .btn--ghost:hover { color: var(--accent); }
@media (max-width: 1150px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.pricing-note { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }

/* why */
/* meet the builder (homepage) */
.about { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.about__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: #1a1a1a; }
.about__text .h3 { margin: 10px 0 14px; }
.about__text p { color: var(--muted); max-width: 560px; margin: 0 0 12px; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 240px; } }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why__item { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.why__item .mono { color: var(--accent); }
.why__item .h3 { margin: 28px 0 10px; }
.why__item p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact__title { font-size: clamp(56px, 9vw, 150px); line-height: .9; letter-spacing: -0.05em; margin: 0; font-weight: 500; }
.contact__title .serif { color: var(--accent); }
.contact__links { margin-top: 40px; display: grid; gap: 4px; }
.contact__links a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; transition: padding .5s var(--ease), color .3s; }
.contact__links a:hover { padding-left: 12px; color: var(--accent); }
.form { display: grid; gap: 22px; align-content: start; }
.field label, .field legend { display: block; margin-bottom: 10px; padding: 0; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font: inherit; font-size: 20px; padding: 10px 0 14px; outline: none; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #85827B; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 15px; transition: all .3s; margin: 0; }
.pills label:hover { border-color: var(--text); }
.pills input:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pills input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form__hint { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.footer__grid h4 { margin: 0 0 16px; font-weight: 400; }
.footer__grid a { display: block; color: var(--muted); padding: 4px 0; transition: color .25s; }
.footer__grid a:hover { color: var(--text); }
.footer__grid p { color: var(--muted); max-width: 340px; margin: 16px 0 0; }
.footer__word { font-size: clamp(52px, 14.5vw, 240px); letter-spacing: -0.06em; line-height: .8; font-weight: 600; margin: 64px 0 24px; white-space: nowrap; color: var(--text); }
.footer__word span { font-family: var(--serif); font-style: italic; font-weight: 400; -webkit-text-stroke: 0; color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.footer__bottom a:hover { color: var(--text); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- pricing guide page ---------- */
.page-hero { padding: 180px 0 80px; }
.page-hero .h1 { font-size: clamp(56px, 10vw, 170px); line-height: .9; letter-spacing: -0.05em; margin: 0; font-weight: 500; }
.page-hero .h1 .serif { color: var(--accent); }
.page-hero .h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero .h1 .line > span { display: inline-block; }
.page-hero__lead { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-hero__lead p { margin: 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 560px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.toc a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .3s; }
.toc a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
@media (max-width: 800px) { .page-hero__lead { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.split__side { position: sticky; top: 110px; align-self: start; }
.split__side p { color: var(--muted); max-width: 380px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__side { position: static; } }

.factors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.factor { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.factor .mono { color: var(--accent); }
.factor h3 { margin: 18px 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.factor p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .factors { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; }
.table td { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.table td:last-child { text-align: right; color: var(--accent); font-family: var(--mono); font-size: 14px; white-space: nowrap; padding-left: 16px; }
.table tr:first-child td { border-top: 1px solid var(--line); }

.care { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.care__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-2); }
.care__price { font-size: 44px; letter-spacing: -0.04em; margin: 12px 0 16px; }
.care__price small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
@media (max-width: 640px) { .care { grid-template-columns: 1fr; } }

.timeline-pay { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timeline-pay > div { padding: 32px; border-right: 1px solid var(--line); }
.timeline-pay > div:last-child { border-right: 0; }
.timeline-pay .pct { font-size: clamp(56px, 6vw, 88px); letter-spacing: -0.05em; line-height: 1; margin: 16px 0 12px; }
.timeline-pay .pct .serif { color: var(--accent); }
.timeline-pay p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .timeline-pay { grid-template-columns: 1fr; } .timeline-pay > div { border-right: 0; border-bottom: 1px solid var(--line); } .timeline-pay > div:last-child { border-bottom: 0; } }

.methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.checklist { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before { content: "0" counter(c); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 5px; }
.checklist strong { display: block; font-weight: 500; font-size: 19px; }
.checklist span { color: var(--muted); font-size: 15px; }

/* estimator */
.estimator { border: 1px solid var(--line-strong); border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; background: var(--bg-2); }
.estimator__form { padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; }
.estimator__out { padding: clamp(24px, 4vw, 48px); background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.estimator__out .muted { color: rgba(11,11,11,.62); }
.estimate { font-size: clamp(44px, 5.4vw, 84px); letter-spacing: -0.05em; line-height: .95; font-weight: 500; }
.estimate-sub { display: block; font-size: 15px; margin-top: 14px; color: rgba(11,11,11,.7); }
.range { display: grid; gap: 12px; }
.range__row { display: flex; justify-content: space-between; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-strong); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 4px solid var(--bg-2); }
.estimator__out .btn { background: var(--accent-ink); color: var(--accent); justify-content: center; }
.estimator__out .btn::before { background: var(--text); }
.estimator__out .btn:hover { color: var(--accent-ink); }
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; position: relative; transition: all .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .faq__a { padding: 0 60px 28px 0; color: var(--muted); max-width: 760px; }
.faq .faq__a p { margin: 0 0 10px; }
@media (max-width: 640px) { .faq .faq__a { padding-right: 0; } }

/* ---------- scene 1: the meteor ---------- */
.intro { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #060606; isolation: isolate; }
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 1.4s ease; transform-origin: 50% 78%; }
.intro__content { position: absolute; inset: 0; }
.intro__center {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.intro__eyebrow { margin: 0 0 14px; color: var(--muted); }
.intro__title {
  margin: 0; font-size: clamp(44px, 10vw, 168px); line-height: 1; font-weight: 500;
  letter-spacing: -0.055em; white-space: nowrap;
}
.intro__title .serif { color: var(--accent); letter-spacing: -0.02em; }
/* the name comes into focus as the light rises, then a sheen glides across it */
.intro__title span {
  --c: var(--text);
  display: inline-block; padding: 0;
  background-image: linear-gradient(105deg, var(--c) 0 42%, #fff8ea 50%, var(--c) 58% 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro__title .serif { --c: var(--accent); margin-left: .02em; padding-right: .08em; /* room for the italic overhang */ }
.js .intro__title { opacity: 0; filter: blur(18px); transform: scale(1.04); }
.intro__title.is-in {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 1.6s ease, filter 2s cubic-bezier(.2,.7,.2,1), transform 2.4s cubic-bezier(.2,.7,.2,1);
}
.intro__title.is-in span { animation: title-sheen 2.4s cubic-bezier(.45,0,.2,1) 1s both; }
.intro__title.is-in .serif { animation-delay: 1.35s; }
@keyframes title-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.intro__tagline { margin: 18px 0 0; font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -0.02em; }
.intro__tagline em { color: var(--accent); font-size: 1.12em; }
.intro__lead { margin: 12px 0 0; max-width: 540px; color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); }
.intro__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.js [data-intro-el] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js [data-intro-el].is-in { opacity: 1; transform: none; }

.intro__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.intro__bar .status { justify-self: start; }
.intro__scroll { grid-column: 2; }
.intro__where { grid-column: 3; justify-self: end; }

@media (max-width: 760px) {
  .intro__lead { display: none; }
  .intro__bar { bottom: 18px; grid-template-columns: 1fr; justify-items: center; }
  .intro__bar .status { font-size: 10px; padding: 7px 10px; justify-self: center; }
  .intro__scroll, .intro__where { display: none; }
}
@media (max-height: 680px) { .intro__lead { display: none; } }

/* ---------- the space environment + glass windows ---------- */
.space { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; pointer-events: none; transition: opacity .6s ease; }
html:not(.has-space) .space { display: none; }
html.has-space .intro { background: transparent; }
html.has-space .intro__canvas { display: none; }

.intro__stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px var(--gutter) 110px; perspective: 1600px;
}
.js .intro__stage { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(10px); }
.intro.is-done .intro__stage {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.4s ease, transform 1.8s cubic-bezier(.2,.8,.2,1), filter 1.4s ease;
}

/* a floating window of frosted glass */
.vwin {
  position: relative; width: min(1060px, 100%); border-radius: 44px; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 5.5vw, 76px) clamp(22px, 5vw, 80px);
  background: linear-gradient(140deg, rgba(255,255,255,.11), rgba(255,255,255,.035) 42%, rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.04),
    0 50px 120px rgba(0,0,0,.55),
    0 12px 32px rgba(0,0,0,.35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
/* specular edge: bright where light hits the glass, champagne at the far corner */
.vwin::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, rgba(201,169,110,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* light where you look */
.vwin__glare {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(560px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.10), transparent 60%);
}
.vwin:hover .vwin__glare { opacity: 1; }
.vwin .btn--ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

/* the little grab bar under a spatial window */
.vwin__grabber { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.vwin__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.3); }
.vwin__bar { width: 128px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.3); }

/* sections become windows floating in space */
html.has-space .section { padding: clamp(56px, 9vw, 130px) 0; }
.wrap.vwin--section {
  width: calc(100% - 2 * var(--gutter)); max-width: 1320px; margin: 0 auto;
  padding: clamp(28px, 4.6vw, 72px);
}
.vwin--section .section-head { margin-bottom: clamp(36px, 5vw, 72px); }
.vwin .services { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.08); }
.vwin .service { background: rgba(8,8,9,.42); }
.vwin .plan:not(.plan--featured) { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.vwin .why__item { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.vwin .work-list, .vwin .work-row { border-color: rgba(255,255,255,.1); }
html.has-space .step {
  background: linear-gradient(140deg, rgba(255,255,255,.09), rgba(255,255,255,.03) 45%, rgba(255,255,255,.05));
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  border-color: rgba(255,255,255,.12); border-radius: 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 80px rgba(0,0,0,.45);
}
/* pricing page pieces inside glass */
.vwin .estimator { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.14); }
.vwin .factor, .vwin .care__card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.vwin .timeline-pay, .vwin .timeline-pay > div, .vwin .table td, .vwin .faq, .vwin .faq details, .vwin .checklist li { border-color: rgba(255,255,255,.1); }
html.has-space .page-hero { padding: 120px 0 0; }
html.has-space .page-hero .wrap.vwin--section { padding-top: clamp(40px, 6vw, 88px); }
html.has-space .split__side { position: static; }

html.has-space .step--intro { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.has-space .marquee { border-color: rgba(255,255,255,.08); }
@media (max-width: 760px) {
  .wrap.vwin--section { width: calc(100% - 24px); padding: 26px 18px; border-radius: 28px; -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
}

/* reviews */
.reviews { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
.reviews:not(:has(.reviews__grid)) { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; text-align: center; }
.reviews__summary {
  border-radius: 28px; padding: 32px; display: grid; gap: 12px; justify-items: start;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
}
.reviews:not(:has(.reviews__grid)) .reviews__summary { justify-items: center; }
.reviews__summary p { margin: 0; }
.reviews__score { font-size: clamp(64px, 7vw, 96px); line-height: .9; letter-spacing: -0.05em; font-weight: 500; }
.reviews__score--empty .stars svg { width: 30px; height: 30px; }
.reviews__first { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.reviews__google { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }
.reviews__google strong { font-size: 22px; font-weight: 500; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.reviews:not(:has(.reviews__grid)) .reviews__actions { justify-content: center; }
.reviews__actions .btn svg { width: 16px; height: 16px; }
.reviews__actions .btn:hover svg { transform: none; }
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.reviews__grid { columns: 2 280px; column-gap: 20px; }
.review {
  break-inside: avoid; margin: 0 0 20px; padding: 28px; border-radius: 24px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1);
  display: grid; gap: 18px;
}
.review blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption strong { display: block; font-weight: 500; }
.review figcaption .muted { font-size: 14px; }
.review__avatar {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-family: var(--serif); font-style: italic; font-size: 20px;
}
.review__meta { font-size: 11px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* lighter glass when the quality governor (js/space.js) detects a slow device */
html.space-lite .vwin,
html.space-lite.has-space .step {
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  background: linear-gradient(140deg, rgba(34,33,36,.82), rgba(20,20,22,.78));
}
html.space-lite .grain { display: none; }

/* floating menu bar */
.ornament {
  position: fixed; left: 50%; bottom: 22px; z-index: 80; display: flex; gap: 2px; padding: 6px;
  transform: translateX(-50%); border-radius: 999px;
  background: rgba(30,30,32,.42); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 50px rgba(0,0,0,.5);
  opacity: 0; translate: 0 20px; transition: opacity .8s ease, translate .9s var(--ease);
}
.ornament.is-in { opacity: 1; translate: 0 0; }
.ornament a { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s; }
.ornament a:hover, .ornament a.is-active { color: var(--text); }
.ornament__pill {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; z-index: 0;
  background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .6s var(--ease), width .6s var(--ease);
}
html.has-ornament .nav__links { display: none; }
@media (min-width: 901px) { html.has-ornament .region-toast { bottom: 92px; } }
@media (max-width: 900px) { .ornament { display: none; } }

html.has-space .intro__bar .status { background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

@media (max-width: 760px) {
  .intro__stage { padding: 84px 14px 80px; }
  .vwin { border-radius: 30px; }
  .vwin__bar { width: 90px; }
}

/* ---------- project videos ---------- */
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }
.cover video { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.work-row[data-play] { cursor: pointer; }
.work-row[data-play]:focus-visible { outline-offset: 6px; }
.reveal-img { transition: width .5s var(--ease), aspect-ratio .5s var(--ease); }
.reveal-img.is-portrait { width: clamp(220px, 17vw, 290px); aspect-ratio: 9 / 16; }
.reveal-img:not(.is-portrait) { width: clamp(320px, 30vw, 500px); aspect-ratio: 16 / 9; }
@media (max-width: 900px) {
  .work-row__mobile-img.is-portrait { aspect-ratio: 4 / 5; }
}

.video-dialog {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100svh - 32px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 22px;
  background: var(--bg-2); color: var(--text); overflow: auto; overscroll-behavior: contain;
}
.video-dialog.is-portrait { width: min(460px, calc(100% - 32px)); }
.video-dialog[open] { animation: dlg-in .45s var(--ease); }
.video-dialog::backdrop { background: rgba(5,5,5,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vd-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 20px 16px; }
.vd-title { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.05; margin-top: 6px; }
.vd-frame { background: #000; display: grid; place-items: center; }
.vd-frame video { width: 100%; max-height: 72svh; display: block; }
.video-dialog.is-portrait .vd-frame video { max-height: 64svh; width: auto; max-width: 100%; }
.vd-summary { margin: 0; padding: 18px 20px 0; font-size: 15px; }
.vd-views { display: inline-flex; gap: 2px; padding: 4px; margin-left: auto; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); }
.vd-views[hidden] { display: none; }
.vd-views button { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: background .3s, color .3s; }
.vd-views button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.vd-views button:hover:not([aria-pressed="true"]) { color: var(--text); }
.vd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vd-actions [hidden] { display: none; }
.badge--concept { border-color: var(--line-strong); color: var(--muted); }
.badge--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.vd-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px 20px; }

/* ---------- region picker ---------- */
.region-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 6px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; transition: border-color .3s, background .3s;
}
.region-btn:hover { border-color: var(--text); background: rgba(242,239,232,.04); }
.region-btn__code {
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--bg-3);
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
}
.region-btn__cur { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.region-btn svg { width: 12px; height: 12px; color: var(--muted); }

.region-inline {
  display: inline; padding: 0; border-bottom: 1px dashed var(--accent); color: var(--accent);
  font: inherit; line-height: inherit; cursor: pointer; transition: opacity .2s;
}
.region-inline:hover { opacity: .75; }

.region-dialog {
  width: min(560px, calc(100% - 32px)); max-height: min(720px, calc(100svh - 48px));
  padding: 0; border: 1px solid var(--line-strong); border-radius: 22px;
  background: var(--bg-2); color: var(--text); overflow: hidden;
  flex-direction: column;
}
.region-dialog[open] { display: flex; animation: dlg-in .45s var(--ease); }
.region-dialog::backdrop { background: rgba(5,5,6,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.rd-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 24px 16px; }
.rd-title { margin: 8px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.rd-close { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, color .3s; }
.rd-close:hover { background: var(--text); color: var(--bg); }
.rd-close svg { width: 14px; height: 14px; }
.rd-search {
  margin: 0 24px 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; outline: none;
}
.rd-search:focus { border-color: var(--accent); }
.rd-list { overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 12px; flex: 1; min-height: 0; }
.rd-group { padding: 8px 0; }
.rd-group[hidden] { display: none; }
.rd-group__name { padding: 8px 12px; font-size: 11px; }
.rd-item {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; text-align: left; transition: background .2s;
}
.rd-item[hidden] { display: none; }
.rd-item:hover, .rd-item:focus-visible { background: var(--bg-3); outline: none; }
.rd-item__code {
  height: 30px; border-radius: 8px; background: var(--bg-3); display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
}
.rd-item:hover .rd-item__code { background: var(--bg); }
.rd-item[aria-current="true"] { background: rgba(201,169,110,.08); }
.rd-item[aria-current="true"] .rd-item__code { background: var(--accent); color: var(--accent-ink); }
.rd-item[aria-current="true"] .rd-item__name::after { content: " ✓"; color: var(--accent); }
.rd-item .mono { font-size: 11px; }
.rd-empty { padding: 16px 12px; margin: 0; font-size: 15px; }
.rd-note { margin: 0; padding: 14px 24px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }

.region-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 95; display: flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(21,21,21,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.region-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.region-toast strong { font-weight: 500; color: var(--accent); }
.region-toast button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.region-toast__change { border: 1px solid var(--line-strong); }
.region-toast__change:hover { border-color: var(--text); }
.region-toast__ok { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) {
  .region-toast { border-radius: 18px; flex-wrap: wrap; padding: 14px; bottom: 12px; }
  .region-toast span { width: 100%; }
}

/* ---------- reveal helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement .w { opacity: 1; }
  .grain { display: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
