/* ==========================================================================
   pages.css — components for the sub-pages (/selected-work, /ai, /writing,
   /about). Loaded after home/style.css, which owns the tokens, buttons,
   nav, cards, reveals and footer. Nothing here re-defines a token.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Compact page hero — same entrance motion as the home hero (.name-reveal /
   .blur-in are keyed off `.hero.is-in`, so the element keeps class `hero`).
   -------------------------------------------------------------------------- */
.hero.page-hero {
  min-height: 62vh;
  min-height: 62svh;
  align-items: flex-end;
  text-align: left;
}
.page-hero .hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  padding: 140px 24px 56px;
}
@media (min-width: 768px) { .page-hero .hero-content { padding: 160px 40px 64px; } }
@media (min-width: 1024px) { .page-hero .hero-content { padding: 180px 64px 72px; } }

/* The page title and lede sit bottom-left over bright footage, so the scrim is
   weighted that way rather than to the centre like the home hero's vignette. */
.page-hero .bg-overlay {
  background:
    linear-gradient(to top, rgb(0 0 0 / 0.90) 0%, rgb(0 0 0 / 0.62) 38%, rgb(0 0 0 / 0.28) 72%, rgb(0 0 0 / 0.20) 100%),
    linear-gradient(to right, rgb(0 0 0 / 0.70) 0%, rgb(0 0 0 / 0.34) 48%, rgb(0 0 0 / 0.05) 100%);
}
.page-hero .hero-eyebrow { color: hsl(0 0% 80%); }
.page-hero .page-lede { color: hsl(0 0% 84%); }

.page-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-lede {
  margin: 0;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.65;
  color: hsl(0 0% 74%);
}
@media (min-width: 768px) { .page-lede { font-size: 17px; } }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
}

/* Small label pill, used for tags and filters. */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: hsl(0 0% 8% / 0.5);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.chip-strong { color: var(--text); border-color: hsl(0 0% 22%); }
a.chip { transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
a.chip:hover { color: var(--text); border-color: hsl(0 0% 34%); background: var(--surface); }
a.chip:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Section rhythm on sub-pages
   -------------------------------------------------------------------------- */
.section-page { padding: 56px 0; }
@media (min-width: 768px) { .section-page { padding: 88px 0; } }
.section-page + .section-page { padding-top: 0; }

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

/* --------------------------------------------------------------------------
   Branding grid (Selected Work → Branding)
   -------------------------------------------------------------------------- */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.brand-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.brand-card:hover { border-color: hsl(0 0% 24%); transform: translateY(-4px); }
.brand-card .brand-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d0d0d;
}
.brand-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.brand-card:hover img { transform: scale(1.06); }
.brand-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 20px;
}
.brand-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.brand-body p { margin: 0; font-size: 12.5px; color: var(--muted); }
.brand-arrow { color: hsl(0 0% 38%); font-size: 16px; transition: transform 0.3s var(--ease-out), color 0.3s; }
.brand-card:hover .brand-arrow { color: var(--text); transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   Archive — posters, packaging and logos, opened in the lightbox
   -------------------------------------------------------------------------- */
.archive-group { margin-top: 40px; }
.archive-group:first-of-type { margin-top: 28px; }
.archive-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.archive-label::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.archive-count { font-size: 11px; color: hsl(0 0% 38%); letter-spacing: 0.14em; }

.archive-grid {
  columns: 2;
  column-gap: 14px;
}
@media (min-width: 768px) { .archive-grid { columns: 3; column-gap: 18px; } }
@media (min-width: 1180px) { .archive-grid { columns: 4; } }

.archive-item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
@media (min-width: 768px) { .archive-item { margin-bottom: 18px; } }
.archive-item img { width: 100%; height: auto; display: block; transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.archive-item:hover { border-color: hsl(0 0% 26%); transform: translateY(-3px); }
.archive-item:hover img { opacity: 0.86; transform: scale(1.03); }
.archive-item:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Writing — feature article cards
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) { .article-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: hsl(0 0% 8% / 0.45);
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.article-card:hover { background: var(--surface); border-color: hsl(0 0% 24%); transform: translateY(-4px); }
.article-cover { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #0d0d0d; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px 22px 24px; }
.article-body h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.article-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  font-size: 11.5px;
  color: hsl(0 0% 45%);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.article-card:hover .article-foot { color: hsl(0 0% 70%); }

/* --------------------------------------------------------------------------
   AI page — capability rows and metric board
   -------------------------------------------------------------------------- */
.cap-list { display: flex; flex-direction: column; gap: 0; }
.cap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 30px 0;
  border-top: 1px solid var(--stroke);
}
.cap-row:last-child { border-bottom: 1px solid var(--stroke); }
@media (min-width: 900px) {
  .cap-row { grid-template-columns: 88px 1.05fr 1.35fr; gap: 32px; align-items: start; padding: 36px 0; }
}
.cap-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cap-row h3 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.cap-row h3 span { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 400; color: hsl(0 0% 42%); text-transform: uppercase; letter-spacing: 0.16em; }
.cap-row p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.cap-row p:last-child { margin-bottom: 0; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.metric-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 8px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  overflow: hidden;
  background: var(--stroke);
}
@media (min-width: 900px) { .metric-board { grid-template-columns: repeat(4, 1fr); } }
.metric {
  padding: 26px 20px;
  background: var(--bg);
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric-label { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.metric-note { margin-top: 6px; font-size: 11px; color: hsl(0 0% 38%); }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) { .about-intro { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
.about-portrait {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.about-portrait img { width: 100%; height: auto; display: block; }
.about-copy p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.75; color: hsl(0 0% 72%); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--text); font-weight: 500; }

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.value-card {
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: hsl(0 0% 8% / 0.4);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.value-card:hover { background: var(--surface); border-color: hsl(0 0% 22%); transform: translateY(-3px); }
.value-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.value-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* Career timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--stroke);
}
@media (min-width: 900px) { .timeline::before { left: 172px; } }
.tl-item { position: relative; padding: 0 0 34px 32px; }
@media (min-width: 900px) { .tl-item { display: grid; grid-template-columns: 172px 1fr; gap: 40px; padding-left: 0; } }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 3px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid hsl(0 0% 34%);
}
@media (min-width: 900px) { .tl-item::before { left: 168px; } }
.tl-when { font-size: 12px; color: hsl(0 0% 45%); text-transform: uppercase; letter-spacing: 0.14em; padding-top: 2px; }
@media (min-width: 900px) { .tl-when { text-align: right; padding-right: 16px; } }
.tl-body h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
@media (min-width: 900px) { .tl-body h3 { margin-top: 0; } }
.tl-org { margin: 0 0 10px; font-size: 13px; color: hsl(0 0% 58%); }
.tl-body p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* Two-column fact lists (education, certificates) */
.fact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .fact-grid { grid-template-columns: repeat(2, 1fr); gap: 44px; } }
.fact-list { margin: 0; padding: 0; list-style: none; }
.fact-list li {
  padding: 13px 0;
  border-top: 1px solid var(--stroke);
  font-size: 14px;
  color: var(--muted);
}
.fact-list li:last-child { border-bottom: 1px solid var(--stroke); }
.fact-list strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 3px; }

/* Bookshelf strip */
.shelf {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shelf::-webkit-scrollbar { height: 6px; }
.shelf::-webkit-scrollbar-track { background: var(--stroke); border-radius: 99px; }
.shelf::-webkit-scrollbar-thumb { background: hsl(0 0% 28%); border-radius: 99px; }
.shelf img {
  flex: 0 0 auto;
  width: 96px;
  height: 144px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease-out);
}
.shelf img:hover { transform: translateY(-5px); }

/* Personality meter */
.meters { display: flex; flex-direction: column; gap: 14px; }
.meter-row { display: grid; grid-template-columns: 108px 1fr 46px; gap: 14px; align-items: center; font-size: 13px; }
.meter-name { color: var(--text); }
.meter-track { height: 4px; border-radius: 99px; background: var(--stroke); overflow: hidden; }
.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent-gradient);
  transition: width 1.1s var(--ease-out);
}
.reveal.is-in .meter-fill { width: var(--pct, 50%); }
.meter-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Footer page-nav row (keeps every destination reachable from any page)
   -------------------------------------------------------------------------- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-bottom: 22px;
  font-size: 13px;
}
.footer-nav a { color: var(--muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-nav a.is-here { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .meter-fill { transition: none; }
}

/* Full-width bento card (used by the Selected Work page's fifth case study). */
@media (min-width: 768px) {
  .bento .span-12 { grid-column: span 12; }
  .card.span-12 { aspect-ratio: 21 / 9; }
}

/* ==========================================================================
   Case-study pages (/maynoon, /thrifter, /chivalri) and the small utility
   pages (/contact, /coming-soon, /404, the B2B gate, redirect stubs).
   ========================================================================== */

/* --- Cover hero: the project's own image, not the site video ------------- */
.hero.case-hero { min-height: 74vh; min-height: 74svh; align-items: flex-end; text-align: left; }
.case-cover { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: #0b0b0b; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.case-cover::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgb(0 0 0 / 0.78) 30%, rgb(0 0 0 / 0.45) 65%, rgb(0 0 0 / 0.35) 100%),
    linear-gradient(to right, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.30) 55%, rgb(0 0 0 / 0.05) 100%);
}
.case-hero .hero-content {
  width: 100%; max-width: 1200px; margin: 0 auto;
  align-items: flex-start;
  padding: 150px 24px 52px;
}
@media (min-width: 768px) { .case-hero .hero-content { padding: 170px 40px 64px; } }
@media (min-width: 1024px) { .case-hero .hero-content { padding: 190px 64px 76px; } }
.case-hero .hero-eyebrow { color: hsl(0 0% 80%); }

/* --- Fact strip under the hero ------------------------------------------ */
.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--stroke);
}
@media (min-width: 900px) { .case-facts { grid-template-columns: repeat(4, 1fr); } }
.case-fact { padding: 22px 20px; background: var(--bg); }
.case-fact dt { margin: 0 0 8px; font-size: 11px; color: hsl(0 0% 42%); text-transform: uppercase; letter-spacing: 0.18em; }
.case-fact dd { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.45; }

/* --- Readable prose column ---------------------------------------------- */
.prose { max-width: 46rem; }
.prose p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.78; color: hsl(0 0% 72%); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 500; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 10px; font-size: 15.5px; line-height: 1.7; color: hsl(0 0% 72%); }
.prose h3 { margin: 34px 0 12px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.prose h3:first-child { margin-top: 0; }

/* --- Figures ------------------------------------------------------------- */
.case-figure { margin: 32px 0; }
.case-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.case-figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: hsl(0 0% 46%);
}
.case-figure.is-plain img { border: 0; border-radius: 0; background: none; }

.case-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 32px 0; }
@media (min-width: 700px) {
  .case-grid.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .case-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.case-grid figure { margin: 0; }
.case-grid img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
}
.case-grid figcaption { margin-top: 10px; font-size: 12px; color: hsl(0 0% 46%); line-height: 1.55; }

/* --- Callout ------------------------------------------------------------- */
.case-callout {
  margin: 34px 0;
  padding: 26px 26px 26px 30px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: hsl(0 0% 8% / 0.5);
  position: relative;
  overflow: hidden;
}
.case-callout::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
}
.case-callout p { margin: 0; font-size: 16px; line-height: 1.7; color: hsl(0 0% 84%); }
.case-callout p + p { margin-top: 14px; }

/* --- Numbered process steps ---------------------------------------------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 0 26px 56px;
  border-top: 1px solid var(--stroke);
  counter-increment: step;
}
.step:last-child { border-bottom: 1px solid var(--stroke); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.2;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* --- Next / previous project -------------------------------------------- */
.case-next {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0 0;
  border-top: 1px solid var(--stroke);
}
@media (min-width: 700px) { .case-next { flex-direction: row; align-items: center; justify-content: space-between; } }
.case-next-label { font-size: 11px; color: hsl(0 0% 42%); text-transform: uppercase; letter-spacing: 0.2em; }
.case-next a.case-next-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  color: var(--text);
  transition: opacity 0.25s;
}
.case-next a.case-next-title:hover { opacity: 0.66; }

/* --- Gallery page (Lab & Studio) ----------------------------------------- */
.gallery { columns: 2; column-gap: 14px; }
@media (min-width: 768px) { .gallery { columns: 3; column-gap: 18px; } }
@media (min-width: 1180px) { .gallery { columns: 4; } }
.gallery > * { break-inside: avoid; margin: 0 0 14px; }
@media (min-width: 768px) { .gallery > * { margin-bottom: 18px; } }

/* --- Small centred utility pages (404, coming soon, gate, redirect) ------ */
.mini {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.mini-inner { position: relative; z-index: 10; max-width: 34rem; }
.mini-code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--text);
  margin: 0 0 18px;
}
.mini h1 { margin: 0 0 16px; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; }
.mini p { margin: 0 0 28px; font-size: 15px; line-height: 1.7; color: hsl(0 0% 74%); }
/* `.mini p` above outranks the single-class rules on these two, so restate them here. */
.mini p.mini-code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--text);
  margin: 0 0 18px;
}
.mini p.hero-eyebrow {
  font-size: 12px;
  line-height: 1.4;
  color: hsl(0 0% 80%);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0 0 20px;
}
.mini .hero-ctas { justify-content: center; }

/* --- Password gate ------------------------------------------------------- */
.gate-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.gate-input {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: hsl(0 0% 8% / 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.gate-input::placeholder { color: hsl(0 0% 40%); }
.gate-input:focus { outline: none; border-color: hsl(0 0% 36%); background: var(--surface); }
.gate-msg { margin: 16px 0 0; min-height: 20px; font-size: 13px; color: hsl(0 0% 58%); }
.gate-msg.is-error { color: #e88; }
