/* ============================================================
   Euna Kwon — Portfolio
   Editorial-systematic: serif display · grotesk body · mono labels
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* color — warm paper canvas */
  --paper:    oklch(0.987 0.006 83);
  --paper-2:  oklch(0.965 0.009 83);
  --paper-3:  oklch(0.945 0.011 83);
  --ink:      oklch(0.235 0.012 62);
  --ink-2:    oklch(0.44 0.012 62);
  --ink-3:    oklch(0.585 0.011 65);
  --line:     oklch(0.885 0.009 78);
  --line-2:   oklch(0.83 0.010 78);

  /* accent — tweakable (blue default) */
  --accent:    oklch(0.55 0.17 262);
  --accent-2:  oklch(0.46 0.16 262);
  --on-accent: oklch(0.99 0.01 83);

  /* fonts — display tweakable */
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* rhythm */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 88px);
  --sp: clamp(72px, 11vh, 148px); /* section padding */
}

[data-theme="dark"] {
  --paper:    oklch(0.205 0.006 258);
  --paper-2:  oklch(0.245 0.008 258);
  --paper-3:  oklch(0.285 0.010 258);
  --ink:      oklch(0.945 0.005 258);
  --ink-2:    oklch(0.78 0.008 258);
  --ink-3:    oklch(0.62 0.010 258);
  --line:     oklch(0.34 0.010 258);
  --line-2:   oklch(0.40 0.012 258);
  --accent:    oklch(0.70 0.15 258);
  --accent-2:  oklch(0.78 0.13 256);
  --on-accent: oklch(0.18 0.01 62);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  transition: background .5s ease, color .5s ease;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Type primitives ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif { font-family: var(--font-display); font-weight: 400; }

h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: var(--sp); }

/* hairline rule with mono kicker */
.rule {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.rule::after { content: ""; height: 1px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gut);
  background: color-mix(in oklab, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, padding .4s ease, background .4s ease;
}
.nav.scrolled { border-bottom-color: var(--line); padding-block: 12px; }
.nav__brand { display: flex; align-items: baseline; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.nav__brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-2px); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-size: 14px; color: var(--ink-2);
  padding: 8px 13px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-3); }
.nav__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  margin-left: 6px;
}
.nav__status .led { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.7 0.16 150); box-shadow: 0 0 0 0 oklch(0.7 0.16 150 / .5); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.7 0.16 150 / .5); } 70% { box-shadow: 0 0 0 7px oklch(0.7 0.16 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.7 0.16 150 / 0); } }
@media (max-width: 760px) {
  .nav__links a:not(.nav__status) { display: none; }
  .nav__status { margin-left: 0; }
}

/* ============================================================
   INTRO MONTAGE
   ============================================================ */
.intro {
  position: relative;
  height: 100svh; min-height: 560px;
  width: 100%; overflow: hidden;
  background: #08080a;
}
.intro__stage { position: absolute; inset: 0; z-index: 0; }
.intro__trio { position: absolute; inset: 0; display: flex; z-index: 0; }
.tri { position: relative; flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-decoration: none; overflow: hidden; transition: flex-grow .7s cubic-bezier(.2,.7,.3,1); opacity: 0; transform: translateY(36px); animation: triIn .9s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: calc(var(--i) * .12s + .2s); }
@keyframes triIn { to { opacity: 1; transform: none; } }
.tri + .tri { box-shadow: -1px 0 0 rgba(255,255,255,.14); }
.tri--apple { background: #000; }
.tri--bp { background: #0866FF; }
.tri--airbnb { background: #000; }
.tri__logo { width: min(62%, 280px); height: auto; max-height: 30%; object-fit: contain; transform: scale(0.8); transition: transform .7s cubic-bezier(.2,.7,.3,1); filter: drop-shadow(0 6px 9px rgba(0,0,0,.45)) drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.tri--apple .tri__logo { width: auto; height: min(40%, 208px); max-width: 64%; }
.tri--bp .tri__logo { width: auto; height: min(52%, 300px); max-width: 78%; filter: none; transform: scale(0.7); }
.tri--airbnb .tri__logo { width: auto; height: min(31%, 158px); max-width: 56%; }
.tri__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 4vh, 46px); display: flex; flex-direction: column; gap: 7px; }
.tri__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.tri__t { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 28px); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.tri__go { transition: transform .4s ease; }
.tri__k { color: rgba(255,255,255,.72); }
.tri__t { color: #fff; }
@media (hover: hover) {
  .intro__trio:hover .tri { flex-grow: .72; }
  .intro__trio .tri:hover { flex-grow: 2.2; }
  .tri:hover .tri__logo { transform: translateY(-10px) scale(1); filter: drop-shadow(0 16px 24px rgba(0,0,0,.32)) drop-shadow(0 5px 10px rgba(0,0,0,.28)); }
  .tri--bp:hover .tri__logo { filter: drop-shadow(0 16px 26px rgba(10,32,94,.4)) drop-shadow(0 5px 12px rgba(10,32,94,.32)); }
  .tri:hover .tri__go { transform: translateX(5px); }
  .tri__cap { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .tri:hover .tri__cap { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .intro__trio { flex-direction: column; }
  .tri__logo { max-height: 44%; }
}
@media (prefers-reduced-motion: reduce) { .tri { animation: none; opacity: 1; transform: none; } }
.intro__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease;
}
.intro__slide.active { opacity: 1; transform: scale(1); transition: opacity 1.4s ease, transform 7s ease; }
.intro__slide--contain { object-fit: contain; background: #08080a; box-sizing: border-box; padding: clamp(60px, 16vh, 200px); transform: none; filter: invert(1) hue-rotate(185deg) saturate(1.15); }
.intro__slide--contain.active { transform: none; }
.intro__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.32) 40%, rgba(0,0,0,.12) 66%, rgba(0,0,0,.5) 100%),
    radial-gradient(120% 80% at 82% 8%, color-mix(in oklab, var(--accent) 13%, transparent), transparent 60%);
}
.intro__content {
  position: absolute; left: 0; right: 0; bottom: clamp(78px, 13vh, 152px);
  padding-inline: var(--gut); z-index: 2;
}
.intro__kicker {
  font-size: clamp(11px, 1.3vw, 14px); letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.82); margin-bottom: clamp(16px, 2.5vh, 26px);
  opacity: 0; animation: introUp .9s cubic-bezier(.2,.7,.3,1) forwards .3s;
}
.intro__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(66px, 15vw, 280px); line-height: 0.86; letter-spacing: -0.045em;
  color: #fff; text-shadow: 0 4px 60px rgba(0,0,0,.45);
}
.intro__title span { display: block; overflow: hidden; padding-bottom: 0.04em; }
.intro__title span > i { display: inline-block; font-style: normal; opacity: 0; transform: translateY(112%); animation: introUp 1s cubic-bezier(.2,.75,.25,1) forwards; }
.intro__title .l1 > i { animation-delay: .42s; }
.intro__title .l2 > i { animation-delay: .56s; }
.intro__title em { font-style: italic; color: color-mix(in oklab, var(--accent) 82%, white); }
.intro__tagline {
  margin-top: clamp(20px, 3vh, 34px); max-width: 56ch;
  font-size: clamp(16px, 1.55vw, 22px); line-height: 1.5; color: rgba(255,255,255,.9);
  opacity: 0; animation: introUp 1s cubic-bezier(.2,.7,.3,1) forwards .9s;
}
@keyframes introUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.intro__scroll {
  position: absolute; right: var(--gut); bottom: clamp(78px, 13vh, 152px);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.7); text-decoration: none;
  opacity: 0; animation: introUp 1s ease forwards 1.15s;
}
.intro__scroll .bar { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.75), transparent); }
.intro__scroll:hover { color: #fff; }
.intro__dots { position: absolute; left: var(--gut); bottom: clamp(36px, 6vh, 58px); z-index: 3; display: flex; gap: 8px; }
.intro__dots i { width: 24px; height: 2px; background: rgba(255,255,255,.3); transition: background .4s ease; }
.intro__dots i.on { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .intro__slide { transition: opacity .4s ease; transform: none; }
  .intro__kicker, .intro__title span > i, .intro__tagline, .intro__scroll { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .intro__title { font-size: clamp(56px, 19vw, 120px); }
  .intro__tagline { font-size: 16px; }
  .intro__scroll { display: none; }
  .intro__dots { bottom: 26px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(140px, 22vh, 240px); padding-bottom: var(--sp); position: relative; }
/* hero blueprint backdrop */
.hero__bg {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100%; pointer-events: none; z-index: 0; overflow: hidden;
}
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: radial-gradient(125% 92% at 72% 4%, #000 26%, transparent 76%);
          mask-image: radial-gradient(125% 92% at 72% 4%, #000 26%, transparent 76%);
}
.hero__glow {
  position: absolute; top: -22%; right: 4%;
  width: min(54vw, 760px); height: min(72vh, 640px);
  background: radial-gradient(circle at 60% 40%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 60%);
  filter: blur(36px);
  opacity: 0; transform: scale(.92);
  animation: heroGlowIn 1.4s ease-out .2s forwards;
}
@keyframes heroGlowIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__glow { animation: none; opacity: 1; transform: none; } }
.hero__kicker, .hero h1, .hero__sub, .hero__meta, .hero__scroll { position: relative; z-index: 1; }

.hero__kicker {
  margin-bottom: clamp(28px, 5vh, 52px);
  display: inline-block; max-width: 100%; line-height: 1.6;
  padding: 9px 17px; border: 1px solid var(--line-2); border-radius: 999px;
  background: color-mix(in oklab, var(--paper-2) 55%, transparent);
  backdrop-filter: blur(6px);
}
.hero__kicker .sep { color: var(--line-2); margin-inline: 8px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 0.99;
  letter-spacing: -0.025em;
  max-width: none;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .alt { font-family: var(--font-display); }
.hero__sub {
  margin-top: clamp(28px, 4.5vh, 46px);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: none;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__meta {
  margin-top: clamp(40px, 6vh, 64px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  transition: transform .2s, background .3s;
}
.hero__cta:hover { transform: translateY(-2px); }
.hero__cta .arr { transition: transform .25s; }
.hero__cta:hover .arr { transform: translate(3px, -3px); }
.hero__companies { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__companies .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hero__companies ul { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.hero__companies li { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink-2); }

/* marquee stat band */
.statband {
  border-block: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.statband .stat { padding: clamp(28px,4vh,44px) var(--gut); border-left: 1px solid var(--line); }
.statband .stat:first-child { border-left: 0; }
.stat__n { font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.stat__n .u { color: var(--accent); }
.stat__l { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; max-width: 22ch; }
@media (max-width: 860px) { .statband { grid-template-columns: repeat(2, 1fr); } .statband .stat:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .statband { grid-template-columns: 1fr; } .statband .stat { border-left: 0; border-top: 1px solid var(--line); } .statband .stat:first-child { border-top: 0; } }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(40px, 6vh, 68px); flex-wrap: wrap; }
.shead h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -0.02em; line-height: 1; max-width: 18ch; }
.shead__meta { text-align: right; }
.shead__meta .mono { display: block; margin-bottom: 6px; }
.shead__count { font-family: var(--font-display); font-size: 15px; color: var(--ink-2); }

/* ============================================================
   WORK
   ============================================================ */
.work { display: flex; flex-direction: column; position: relative; }

/* cursor-following project preview */
.work-preview {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: clamp(230px, 24vw, 360px); aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 28px 64px rgba(0,0,0,.42);
  opacity: 0; transform: translate(-50%, -50%) scale(.88);
  transition: opacity .28s ease, transform .4s cubic-bezier(.2,.8,.3,1);
  pointer-events: none; will-change: transform, opacity;
}
.work-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work-preview img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--paper-2); }
@media (hover: none), (max-width: 820px) { .work-preview { display: none; } }
.proj {
  border-top: 1px solid var(--line);
  transition: background .3s;
}
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj__head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.6vh, 40px) 8px;
  cursor: pointer;
  position: relative;
}
.proj__num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); align-self: start; padding-top: 6px; }
.proj__main { min-width: 0; }
.proj__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px;
}
.tag.accent { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, var(--line-2)); }
.proj:hover { background: color-mix(in oklab, var(--ink) 3.5%, transparent); }
.proj:hover .proj__num { color: var(--accent); }
.proj__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -0.02em; line-height: 1.02;
  transition: color .25s, transform .4s cubic-bezier(.2,.8,.3,1);
}
.proj:hover .proj__title { color: var(--accent); transform: translateX(10px); }
.proj__role { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.proj__right { display: flex; align-items: center; gap: clamp(18px,3vw,42px); }
.proj__metric { text-align: right; }
.proj__metric .m-n { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.proj__metric .m-l { margin-top: 6px; font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.04em; }
.proj__toggle {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--paper);
  display: grid; place-items: center; color: var(--ink-2);
  transition: transform .35s cubic-bezier(.34,1.3,.5,1), background .3s, color .3s, border-color .3s;
}
.proj:hover .proj__toggle { border-color: var(--accent); color: var(--accent); }
.proj[aria-expanded="true"] .proj__toggle { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.proj__toggle svg { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .proj__head { grid-template-columns: 32px 1fr; }
  .proj__right { grid-column: 1 / -1; justify-content: space-between; padding-left: calc(32px + 16px); }
  .proj__num { padding-top: 2px; }
}

/* expandable body */
.proj__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.4,0,.1,1); }
.proj[aria-expanded="true"] .proj__body { grid-template-rows: 1fr; }
.proj__body-inner { overflow: hidden; min-height: 0; }
.proj__detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  padding: 8px 8px clamp(40px, 5vh, 60px) calc(56px + clamp(16px,3vw,40px));
}
@media (max-width: 900px) { .proj__detail { grid-template-columns: 1fr; padding-left: 8px; } }

.cs-block + .cs-block { margin-top: 26px; }
.cs-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.cs-label::before { content: ""; width: 16px; height: 1px; background: var(--accent); }
.cs-block p { color: var(--ink-2); font-size: 15.5px; line-height: 1.62; max-width: 52ch; }
.cs-block p strong { color: var(--ink); font-weight: 600; }
.cs-outcomes { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cs-outcomes li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; line-height: 1.55; text-align: left; text-wrap: pretty; }
.cs-outcomes li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--font-mono); }
.cs-outcomes li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* media placeholder */
.ph {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 11px, var(--paper-3) 11px 22px);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.ph__tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); background: var(--paper);
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2);
}
.ph.tall { aspect-ratio: 3 / 4; }
.ph.wide { aspect-ratio: 16 / 9; }
.cs-media { display: flex; flex-direction: column; gap: 14px; }
.cs-media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--paper-2); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 880px) { .about__grid { grid-template-columns: 1fr; } }
.about__photo { position: sticky; top: 100px; }
.about__photo .ph { aspect-ratio: 4/5; border-radius: 16px; }
.about__caption { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.about h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.8vw, 48px); letter-spacing: -0.02em; line-height: 1.05; max-width: 20ch; }
.about__lead { margin-top: 24px; font-size: clamp(17px,1.5vw,20px); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.about__lead strong { color: var(--ink); font-weight: 600; }
.about__body { margin-top: 18px; color: var(--ink-2); line-height: 1.65; max-width: 54ch; }

.life { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (max-width: 520px) { .life { grid-template-columns: 1fr; } }
.life__item { background: var(--paper); padding: 20px 22px; }
.life__item .t { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.life__item .d { margin-top: 5px; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

.skills { margin-top: 44px; }
.skills__group + .skills__group { margin-top: 24px; }
.skills__group .mono { display: block; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-size: 14px; color: var(--ink); padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

.timeline { margin-top: 44px; border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 150px 150px 1fr; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tl-row .yr { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.03em; }
.tl-row .co { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.tl-row .ro { color: var(--ink-2); font-size: 14px; text-align: left; }
@media (max-width: 600px) { .tl-row { grid-template-columns: 1fr; gap: 4px; } }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact { border-top: 1px solid var(--line); }
.contact__inner { padding-block: clamp(80px, 14vh, 180px); }
.contact .mono { margin-bottom: 28px; display: block; }
.contact h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 8vw, 116px); letter-spacing: -0.03em; line-height: 0.95;
}
.contact h2 a { color: var(--ink); border-bottom: 2px solid var(--line-2); transition: color .3s, border-color .3s; }
.contact h2 a:hover { color: var(--accent); border-color: var(--accent); }
.contact__row { margin-top: clamp(40px,6vh,64px); display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.contact__links { display: flex; gap: 10px; flex-wrap: wrap; }
.clink { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink); padding: 11px 20px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s, transform .2s, background .2s; }
.clink:hover { border-color: var(--accent); transform: translateY(-2px); }
.clink svg { width: 15px; height: 15px; }

.foot { border-top: 1px solid var(--line); padding-block: 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .mono { font-size: 11px; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   FEEDBACK PASS — bolder hero, sans headlines, full-bleed, visual craft
   ============================================================ */

/* sans-headline tweak: bump weight so big grotesk type holds */
[data-headline="sans"] .hero h1,
[data-headline="sans"] .shead h2,
[data-headline="sans"] .proj__title,
[data-headline="sans"] .about h2,
[data-headline="sans"] .contact h2,
[data-headline="sans"] .stat__n,
[data-headline="sans"] .proj__metric .m-n {
  font-weight: 600;
  letter-spacing: -0.035em;
}
[data-headline="sans"] .hero h1 em { font-style: italic; }

/* monogram logo */
.nav__brand .mono-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: -0.04em; transform: translateY(-1px);
  transition: background .3s, color .3s;
}
.nav__brand .dot { display: none; }

/* bigger, full-height hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero h1 {
  font-size: clamp(46px, 9vw, 138px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: none;
}
.hero__scroll {
  margin-top: auto;
  padding-top: clamp(40px, 7vh, 80px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.hero__scroll .line { width: 46px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: scrollline 2.4s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes scrollline { 0% { transform: translateX(-100%); } 55%,100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll .line::after { animation: none; } }

/* full-bleed visual band — the dynamic "first impression" moment */
.fullbleed {
  position: relative;
  width: 100%;
  height: clamp(480px, 72vh, 780px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0a0a0b;
  display: grid;
  place-items: center;
}

/* ---- Blueprint Design Language animated board ---- */
.bp {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  padding: clamp(48px, 8vh, 88px) clamp(44px, 7vw, 124px);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font-body);
}
.bp__head { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 34px); }
.bp__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
}
.bp__logo { width: clamp(28px, 2.6vw, 38px); height: clamp(28px, 2.6vw, 38px); flex: none; color: #fff; }
.bp__badge {
  align-self: flex-start;
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  transition: color .6s ease;
}
.bp__dots {
  margin-top: 12px;
  height: 2px;
  background-image: radial-gradient(circle, #3b6ef5 0 1.4px, transparent 1.6px);
  background-size: 11px 2px;
  background-repeat: repeat-x;
  opacity: .85;
}
.bp__grid {
  flex: 1;
  margin-top: clamp(20px, 3.4vh, 40px);
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  align-content: space-evenly;
  gap: clamp(22px, 4vh, 48px) clamp(16px, 2vw, 34px);
}
.bp__item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.92);
  opacity: 0;
  transform: translateY(8px);
  animation: bpIn .55s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(var(--i) * .12s + .2s);
}
.bp__item svg { width: clamp(26px, 2.6vw, 36px); height: clamp(26px, 2.6vw, 36px); flex: none; opacity: .92; }
.bp__item span { font-size: clamp(17px, 1.9vw, 26px); letter-spacing: -0.01em; white-space: nowrap; }
@keyframes bpIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bp__item { animation: none; opacity: 1; transform: none; }
}

/* the 4th-column additions — hidden until v2 */
.bp__item--new {
  opacity: 0 !important;
  transform: translateX(14px);
  animation: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1), color .6s ease;
  color: #6f9bff;
}
.bp.v2 .bp__item--new { opacity: 1 !important; transform: none; }
.bp.v2 .bp__item--new svg { color: #6f9bff; }

.bp.v2 .bp__badge { border-color: #3b6ef5; }

.bp__base { margin-top: clamp(16px, 2.6vh, 30px); height: 1.5px; background: linear-gradient(90deg, #3b6ef5, rgba(255,255,255,.55)); }
.bp__link { position: absolute; inset: 0; z-index: 5; }
.bp__cta {
  position: absolute; right: clamp(28px, 5vw, 70px); bottom: clamp(28px, 4vh, 52px); z-index: 6;
  display: inline-flex; align-items: center; gap: 9px; pointer-events: none;
  font-family: var(--font-mono); font-size: clamp(12px, 1.3vw, 15px); letter-spacing: 0.06em;
  color: rgba(255,255,255,.62); transition: color .4s ease, gap .4s ease;
}
.bp__cta .arr { transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.bp:hover .bp__cta { color: var(--accent); gap: 14px; }
.bp:hover .bp__cta .arr { transform: translateX(5px); }
.bp__ver {
  align-self: flex-end;
  margin-top: 16px;
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease .1s, transform .6s ease .1s;
}
.bp.v2 .bp__ver { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .bp__grid { grid-template-columns: repeat(2, 1fr); align-content: start; gap: 16px 18px; }
  .bp__ver { font-size: 15px; }
  .fullbleed { height: clamp(520px, 80vh, 720px); }
}

/* visual & craft gallery */
.visual { background: var(--paper-2); border-top: 1px solid var(--line); }
.vgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.vcard { position: relative; min-height: clamp(360px, 30vw, 470px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--paper) 0 12px, var(--paper-3) 12px 24px); display: flex; align-items: flex-end; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.vcard:hover { transform: translateY(-4px); }
.vcard__meta { position: relative; z-index: 1; padding: 20px 22px; width: 100%; background: linear-gradient(to top, color-mix(in oklab, var(--paper) 92%, transparent), transparent); }
.vcard__meta .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.vcard__meta .t { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 27px); font-weight: 400; letter-spacing: -0.01em; margin-top: 6px; line-height: 1.08; }
.vcard__meta .d { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.45; text-wrap: pretty; }
.vcard.c-7 { grid-column: span 7; }
.vcard.c-5 { grid-column: span 5; }
.vcard.c-4 { grid-column: span 4; }
.vcard.c-6 { grid-column: span 6; }

/* clickable visual cards → case study */
a.vcard, .vcard--link { text-decoration: none; color: inherit; cursor: pointer; }
.vcard--link { transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .4s ease; }
.vcard--link:hover { transform: translateY(-4px); border-color: var(--accent); }
.vcard__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 13px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}
.vcard--link:hover .vcard__go { opacity: 1; transform: none; }
.vcard__go .arr { transition: transform .35s ease; }
.vcard--link:hover .vcard__go .arr { transform: translateX(4px); }

/* photo-backed visual card */
.vcard--photo { overflow: hidden; }
.vcard__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.vcard--photo:hover .vcard__bg { transform: scale(1.04); }
.vcard__bg--xfade { animation: sunriseXfade 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .vcard__bg--xfade { animation: none; opacity: 0; } }
.vcard--photo .vcard__meta {
  background: linear-gradient(to top,
    var(--paper) 0%,
    color-mix(in oklab, var(--paper) 88%, transparent) 42%,
    transparent 88%);
  padding-top: clamp(60px, 12vh, 120px);
}
@media (max-width: 820px) {
  .vcard.c-7, .vcard.c-5, .vcard.c-4, .vcard.c-6 { grid-column: span 12; min-height: 300px; }
}

/* ---- logo in nav ---- */
.nav__logo {
  height: 42px; width: auto; display: block;
  mix-blend-mode: multiply;
  transition: height .4s ease, filter .4s ease;
}
[data-theme="dark"] .nav__logo { filter: invert(1); mix-blend-mode: screen; }
.nav.scrolled .nav__logo { height: 36px; }
.nav__brand { gap: 0; }

/* ---- real project screenshots ---- */
.shot {
  width: 100%; display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0a0b;
  object-fit: cover;
}
.shot.wide { aspect-ratio: 16 / 9; }
.shot.portrait { aspect-ratio: 4 / 5; border-radius: 16px; }

/* ============================================================
   CASE-STUDY DETAIL PAGES (airbnb-dsl.html, apple.html)
   ============================================================ */
.cd-hero { padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(36px, 6vh, 64px); }
.cd-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 20px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vh, 52px);
}
.cd-subnav { display: flex; gap: 3px; flex-wrap: wrap; }
.cd-subnav a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); text-decoration: none;
  padding: 6px 12px; border-radius: 999px;
  transition: color .3s ease, background .3s ease;
}
.cd-subnav a:hover { color: var(--accent); }
.cd-subnav a.is-active {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 9%, transparent);
}
.cd-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); text-decoration: none;
  margin-bottom: 0; transition: color .3s ease, gap .3s ease;
}
.cd-back:hover { color: var(--accent); gap: 12px; }
.cd-hero .cd-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.cd-hero .cd-kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.cd-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 6.5vw, 88px); letter-spacing: -0.025em; line-height: 1.02;
  margin: 18px 0 0; text-wrap: balance;
}
.cd-hero h1 em { font-style: italic; color: var(--accent); }
.cd-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2);
}
.cd-lede {
  max-width: none; margin-top: 30px;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--ink-2);
  text-wrap: pretty;
}
.cd-lede strong { color: var(--ink); font-weight: 600; }

.cd-body { padding-bottom: clamp(60px, 10vh, 120px); }
.cd-step { padding-block: clamp(40px, 7vh, 90px); border-top: 1px solid var(--line); }
.cd-step:first-child { border-top: none; }
.cd-step__head { max-width: none; margin-bottom: clamp(26px, 4vh, 44px); }
.cd-step__n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3); display: block; margin-bottom: 14px;
}
.cd-step h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -0.02em; line-height: 1.08;
  margin: 0 0 18px;
}
.cd-step p {
  color: var(--ink-2); font-size: 16px; line-height: 1.68; max-width: none;
  text-wrap: pretty;
}
.cd-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3) !important; margin-bottom: 6px !important; }
.cd-step p + p { margin-top: 14px; }
.cd-step ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; max-width: none; }
.cd-step li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.cd-step li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.cd-fig {
  margin-top: clamp(26px, 4vh, 44px);
  border-radius: 14px; overflow: hidden;
  background: var(--paper-2);
}
.cd-fig img { width: 100%; display: block; }
.cd-next {
  border-top: 1px solid var(--line); padding-block: clamp(40px, 7vh, 80px);
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cd-next a {
  font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 14px; transition: gap .3s ease, color .3s ease;
}
.cd-next a:hover { color: var(--accent); gap: 20px; }
.cd-next .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.anim-watch {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(24px, 4vh, 40px);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  padding: 14px 24px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink); text-decoration: none; transition: border-color .3s, color .3s, gap .3s;
}
.anim-watch:hover { border-color: var(--accent); color: var(--accent); gap: 14px; }
.anim-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.anim-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sunrise {
  position: relative; width: 100%; max-width: 620px; margin-inline: auto;
  aspect-ratio: 1400 / 1867; border-radius: 14px; overflow: hidden; background: #000;
}
.sunrise img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sunrise .top { animation: sunriseXfade 7s ease-in-out infinite; }
@keyframes sunriseXfade { 0%, 32% { opacity: 1; } 48%, 84% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sunrise .top { animation: none; opacity: 0; } }
.sunrise__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 22px 16px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
}
.jpslide {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto;
  aspect-ratio: 1000 / 1778; border-radius: 14px; overflow: hidden; background: #000;
}
.jpslide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.jpslide img.active { opacity: 1; }
.jpslide__dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2; display: flex; gap: 7px; justify-content: center; }
.jpslide__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s ease; }
.jpslide__dots i.on { background: #fff; }


/* ---- password gate cover ---- */
html.locked { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 10000; background: var(--paper); display: grid; place-items: center; padding: 28px; transition: opacity .55s ease, visibility .55s; }
html.unlocked .gate { display: none; }
.gate--open { opacity: 0; visibility: hidden; }
.gate[data-peek]:not(.gate--reveal) { opacity: 0; visibility: hidden; pointer-events: none; }
.gate--reveal { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transition: opacity .5s ease !important; }
.gate__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gate__bg::before { content: ""; position: absolute; left: 50%; top: 40%; width: 62vw; height: 62vw; transform: translate(-50%,-50%); background: radial-gradient(circle, color-mix(in oklab, var(--accent) 32%, transparent), transparent 60%); filter: blur(46px); animation: gateGlow 7s ease-in-out infinite; }
.gate__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in oklab, var(--ink) 16%, transparent) 1px, transparent 1.5px); background-size: 26px 26px; opacity: .5; -webkit-mask-image: radial-gradient(circle at 50% 42%, #000, transparent 72%); mask-image: radial-gradient(circle at 50% 42%, #000, transparent 72%); }
@keyframes gateGlow { 0%,100% { opacity: .65; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.14); } }
.gate__card { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 460px; width: 100%; animation: gateIn .8s cubic-bezier(.2,.7,.3,1) both; }
@keyframes gateIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gate__logo { height: 46px; width: auto; margin-bottom: 30px; }
[data-theme="light"] .gate__logo { filter: invert(1); }
.gate__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.gate__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 8vw, 76px); line-height: 1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 18px; }
.gate__title em { font-style: italic; color: var(--accent); }
.gate__desc { font-size: 15px; color: var(--ink-2); max-width: 34ch; line-height: 1.55; margin-bottom: 38px; text-wrap: balance; }
.gate__form { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; width: min(330px, 80vw); transition: border-color .25s; }
.gate__form:focus-within { border-color: var(--accent); }
.gate__form input { flex: 1; background: none; border: none; outline: none; font-family: var(--font-body); font-size: 16px; color: var(--ink); letter-spacing: .02em; }
.gate__form input::placeholder { color: var(--ink-3); }
.gate__form button { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: none; font-size: 17px; cursor: pointer; display: grid; place-items: center; transition: filter .2s, transform .2s; }
.gate__form button:hover { filter: brightness(1.1); transform: translateX(2px); }
.gate__err { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e2574f; margin-top: 16px; height: 13px; opacity: 0; transition: opacity .2s; }
.gate--err .gate__err { opacity: 1; }
.gate--shake .gate__card { animation: gateShake .42s; }
@keyframes gateShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .gate__bg::before, .gate__card { animation: none; } }
