/* =========================================================================
   Edward In — Portfolio
   Design system: "Designed & Shipped"
   Space Grotesk (display) · Figtree (body) · Space Mono (utility/spec)
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ---------- Tokens: dark (default) ---------- */
:root {
  color-scheme: dark;

  --bg:        #0D0E12;
  --bg-2:      #101218;
  --surface:   #14161C;
  --surface-2: #1A1D24;
  --border:    #262A33;
  --border-2:  #313641;
  --text:      #ECEDF1;
  --muted:     #969CA8;
  --faint:     #6B7280;

  --accent:      #D4671F;
  --accent-ink:  #FFFFFF;
  --accent-soft: rgba(212,103,31,0.14);
  --accent-line: rgba(212,103,31,0.32);

  /* type */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  /* scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.6rem);
  --step-5:  clamp(3.2rem, 2.2rem + 5vw, 6.4rem);

  /* layout */
  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1200px;
  --readw: 68ch;
  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Tokens: light ---------- */
[data-theme="light"] {
  color-scheme: light;

  --bg:        #F7F7F5;
  --bg-2:      #F1F1EE;
  --surface:   #FFFFFF;
  --surface-2: #FAFAF8;
  --border:    #E4E4E0;
  --border-2:  #D6D6D1;
  --text:      #16181D;
  --muted:     #5C616B;
  --faint:     #8A8F98;

  --accent:      #B24E12;
  --accent-ink:  #FFFFFF;
  --accent-soft: rgba(79,91,213,0.10);
  --accent-line: rgba(79,91,213,0.28);
}

/* ---------- 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; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }

/* ---------- Utility ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand {
  font-family: var(--display);
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.04em; color: var(--muted);
  padding: 0.5rem 0.75rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--border-2); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--pad) 1rem;
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0; font-size: var(--step-0); }
  .nav-toggle {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text);
  }
  .nav-right { display: flex; gap: 0.5rem; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.03em;
  padding: 0.8rem 1.25rem; border-radius: 10px;
  border: 1px solid var(--border-2);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { box-shadow: 0 10px 30px -12px var(--accent); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* =========================================================================
   Home — hero
   ========================================================================= */
.hero { padding: clamp(3rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem); position: relative; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 20% 0%, #000 0%, transparent 65%);
  opacity: 0.35;
}
.hero .status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--muted); margin-bottom: 1.6rem;
  border: 1px solid var(--border); padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--surface);
}
.hero .status .live {
  width: 8px; height: 8px; border-radius: 50%; background: #38C172;
  box-shadow: 0 0 0 3px rgba(56,193,114,0.18);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero h1 .amp { font-style: normal; color: var(--accent); }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero-lede {
  font-size: var(--step-1); color: var(--muted); max-width: 46ch;
  line-height: 1.5; margin-bottom: 2.2rem;
}
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); margin-top: clamp(3rem, 7vw, 5rem);
}
.stat-strip .stat { padding: 1.4rem 0; border-right: 1px solid var(--border); }
.stat-strip .stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--display); font-size: var(--step-2); font-weight: 600;
  letter-spacing: -0.02em; display: block;
}
.stat .lab { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); letter-spacing: 0.03em; }
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: 0; }
  .stat-strip .stat:nth-child(1), .stat-strip .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* =========================================================================
   Section shell
   ========================================================================= */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display); font-weight: 500;
  font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1.05;
}
.section-index { font-family: var(--mono); font-size: var(--step--1); color: var(--faint); }

/* measurement-tick divider (signature) */
.tick-rule {
  height: 14px; width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 24px);
  border-bottom: 1px solid var(--border);
  opacity: 0.9;
}

/* =========================================================================
   Work index (home)
   ========================================================================= */
.work-list { display: grid; gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.work-card {
  display: grid; grid-template-columns: 56px 1.4fr 1fr auto;
  align-items: center; gap: 1.5rem;
  background: var(--bg); padding: 1.75rem clamp(0.5rem, 2vw, 1.25rem);
  transition: background 0.3s var(--ease);
  position: relative;
}
.work-card:hover { background: var(--surface); }
.work-card .wc-idx { font-family: var(--mono); color: var(--faint); font-size: var(--step--1); }
.work-card .wc-title {
  font-family: var(--display); font-size: var(--step-2); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1;
}
.work-card .wc-sub { color: var(--muted); font-size: var(--step--1); margin-top: 0.3rem; }
.work-card .wc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--muted); border: 1px solid var(--border-2);
  padding: 0.25rem 0.55rem; border-radius: 999px; white-space: nowrap;
}
.work-card .wc-go {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2);
  display: grid; place-items: center; color: var(--muted);
  transition: all 0.25s var(--ease);
}
.work-card:hover .wc-go { border-color: var(--accent); color: var(--accent); transform: rotate(0deg) translate(2px,-2px); }
.work-card .lock { color: var(--accent); }
@media (max-width: 860px) {
  .work-card { grid-template-columns: 40px 1fr auto; }
  .work-card .wc-meta { display: none; }
}
@media (max-width: 520px) {
  .work-card { grid-template-columns: 1fr auto; gap: 0.75rem; }
  .work-card .wc-idx { display: none; }
  .work-card .wc-title { font-size: var(--step-1); }
}

/* =========================================================================
   About (home)
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.about-copy p { color: var(--muted); max-width: var(--readw); margin-bottom: 1.1rem; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-side { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; align-self: start; }
.about-side .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.about-side .row:last-child { border-bottom: 0; }
.about-side .row .k { font-family: var(--mono); color: var(--faint); letter-spacing: 0.03em; }
.about-side .row .v { text-align: right; }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

/* logo row */
.logos { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1.5rem; }
.logos span { font-family: var(--mono); font-size: var(--step--1); color: var(--faint); }

/* =========================================================================
   Case study
   ========================================================================= */
.cs-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.cs-back { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); display: inline-flex; gap: 0.4rem; margin-bottom: 2rem; }
.cs-back:hover { color: var(--accent); }
.cs-kicker { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.cs-hero h1 {
  font-family: var(--display); font-weight: 500; font-size: var(--step-4);
  letter-spacing: -0.03em; line-height: 1.03; max-width: 20ch; margin-bottom: 1.25rem;
}
.cs-lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.5; }

/* spec sheet (signature) */
.spec {
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.spec .cell { padding: 1.1rem 1.25rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec .cell:nth-child(4n) { border-right: 0; }
.spec .cell .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 0.4rem; }
.spec .cell .v { font-size: var(--step--1); color: var(--text); }
@media (max-width: 760px) {
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec .cell:nth-child(4n) { border-right: 1px solid var(--border); }
  .spec .cell:nth-child(2n) { border-right: 0; }
}

/* outcome metrics band */
.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.metrics .m { background: var(--surface); padding: clamp(1.5rem, 4vw, 2.4rem) 1.5rem; }
.metrics .m .mv {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--accent);
}
.metrics .m .ml { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); margin-top: 0.7rem; letter-spacing: 0.02em; }

/* prose */
.cs-body { padding-bottom: clamp(3rem, 8vw, 6rem); }
.block { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--border); }
.block:first-child { border-top: 0; }
.block-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.block-num { font-family: var(--mono); font-size: var(--step--1); color: var(--accent); letter-spacing: 0.05em; }
.block-title { font-family: var(--display); font-weight: 500; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.5rem; position: sticky; top: 90px; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--muted); max-width: var(--readw); }
.prose p strong { color: var(--text); font-weight: 600; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: var(--step-1); color: var(--text); letter-spacing: -0.01em; margin-top: 2rem; }
.prose ul { list-style: none; max-width: var(--readw); }
.prose ul li { color: var(--muted); padding-left: 1.5rem; position: relative; margin-top: 0.7rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: var(--accent); }
.prose ul li strong { color: var(--text); font-weight: 600; }
.pull {
  font-family: var(--display); font-weight: 400; font-size: var(--step-2);
  letter-spacing: -0.01em; color: var(--text); line-height: 1.3;
  border-left: 2px solid var(--accent); padding-left: 1.5rem; margin: 2rem 0;
  max-width: 30ch;
}
@media (max-width: 780px) {
  .block-grid { grid-template-columns: 1fr; gap: 1rem; }
  .block-title { position: static; }
}

/* quotes (research) */
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5rem; }
.quote { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.3rem; background: var(--surface); }
.quote p { color: var(--text); font-size: var(--step--1); }
.quote .who { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-top: 0.8rem; letter-spacing: 0.03em; }

/* personas */
.personas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5rem; }
.persona { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.4rem; background: var(--surface); }
.persona .pname { font-family: var(--display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; }
.persona .prole { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.03em; margin: 0.3rem 0 0.9rem; text-transform: uppercase; }
.persona p { color: var(--muted); font-size: var(--step--1); }

/* image placeholder (marked for later assets) */
.ph {
  border: 1px dashed var(--border-2); border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in oklab, var(--surface) 60%, transparent) 12px 13px),
    var(--surface);
  display: grid; place-items: center; text-align: center;
  padding: 2rem 1.5rem; margin-top: 1.5rem; position: relative;
  min-height: 200px;
}
.ph[data-ratio="16/9"] { aspect-ratio: 16/9; }
.ph[data-ratio="4/3"]  { aspect-ratio: 4/3; }
.ph[data-ratio="3/2"]  { aspect-ratio: 3/2; }
.ph[data-ratio="1/1"]  { aspect-ratio: 1/1; }
.ph[data-ratio="21/9"] { aspect-ratio: 21/9; }
.ph .ph-tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 0.25rem 0.55rem; border-radius: 6px;
}
.ph .ph-label { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); max-width: 44ch; }
.ph .ph-icon { width: 26px; height: 26px; color: var(--faint); margin-bottom: 0.75rem; }
.ph-caption { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-top: 0.7rem; letter-spacing: 0.02em; }

/* full-bleed figure spacing */
.figure { margin-top: 1.5rem; }
.figure.wide { max-width: none; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .two-up { grid-template-columns: 1fr; } }

/* next project */
.next {
  border-top: 1px solid var(--border); padding: clamp(3rem, 8vw, 5rem) 0;
}
.next a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; group: 1; }
.next .nl { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.next .nt { font-family: var(--display); font-size: var(--step-3); font-weight: 500; letter-spacing: -0.02em; transition: color 0.2s; }
.next a:hover .nt { color: var(--accent); }

/* =========================================================================
   Contact / footer
   ========================================================================= */
.contact { border-top: 1px solid var(--border); padding: clamp(4rem, 10vw, 7rem) 0; }
.contact h2 {
  font-family: var(--display); font-weight: 500; font-size: var(--step-4);
  letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch; margin-bottom: 1.5rem;
}
.contact h2 a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; font-family: var(--mono); font-size: var(--step--1); }
.contact-row a { color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.contact-row a:hover { color: var(--text); border-color: var(--accent); }

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: var(--step--1); color: var(--faint); }

/* =========================================================================
   Password gate
   ========================================================================= */
.gate { min-height: 70vh; display: grid; place-items: center; padding: 2rem 0; }
.gate-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: clamp(1.75rem, 4vw, 2.5rem); max-width: 420px; width: 100%; text-align: center; }
.gate-card .lock-ic { width: 34px; height: 34px; color: var(--accent); margin: 0 auto 1rem; }
.gate-card h1 { font-family: var(--display); font-weight: 500; font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.gate-card p { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.5rem; }
.gate-form { display: flex; gap: 0.5rem; }
.gate-form input {
  flex: 1; background: var(--bg); border: 1px solid var(--border-2); color: var(--text);
  padding: 0.75rem 0.9rem; border-radius: 10px; font-family: var(--mono); font-size: var(--step--1);
}
.gate-form input:focus { outline: none; border-color: var(--accent); }
.gate-err { color: #E5484D; font-size: var(--step--1); margin-top: 0.9rem; min-height: 1.2em; }
