/* ===========================================================
   AIO ASIA — The Cited Line
   Editorial print-magazine meets answer engine.
   =========================================================== */

:root {
  --paper:      #F7F5F0;
  --paper-2:    #F1EEE6;
  --ink:        #16140F;
  --ink-soft:   rgba(22, 20, 15, 0.62);
  --ink-faint:  rgba(22, 20, 15, 0.42);
  --rule:       rgba(22, 20, 15, 0.15);
  --rule-soft:  rgba(22, 20, 15, 0.08);
  --jade:       #0E5C4A;
  --jade-deep:  #0A4538;
  --amber:      #E8A23D;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 96px);
  --spine-x: clamp(20px, 5vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--ink); }

/* ----------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(72px, 11vh, 150px);
}

.section--tight { padding-block: clamp(56px, 8vh, 104px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--jade);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.display {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 86px);
  text-wrap: balance;
}

.headline {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.014em;
  margin: 0;
  font-size: clamp(30px, 4.4vw, 56px);
  max-width: 17ch;
  text-wrap: balance;
}

.lede {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 28px 0 0;
}

.body-copy {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
}
.body-copy strong { color: var(--ink); font-weight: 600; }

em.serif-em { font-style: italic; font-family: var(--serif); color: var(--ink); }

/* editorial drop cap (a human, print touch) */
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.3em;
  line-height: 0.74;
  padding: 8px 14px 0 0;
  color: var(--jade);
}

/* ----------------------------------------------------------
   Buttons / links
   ---------------------------------------------------------- */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary { padding: 17px 30px; }
.btn--primary:hover { background: var(--jade); }

.link-text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.link-text:hover { border-color: var(--jade); color: var(--jade); }

/* ----------------------------------------------------------
   Citation spine (the answer line)
   ---------------------------------------------------------- */
.spine {
  position: absolute;
  top: 0;
  left: var(--spine-x);
  width: 1px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.spine__track {
  position: absolute;
  inset: 0;
  width: 1px;
  background: var(--rule);
}
.spine__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: var(--jade);
  opacity: 0.55;
}
.spine__marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(232, 162, 61, 0.16);
  will-change: top;
}
.spine__marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--paper);
}
.spine__tick {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 1px;
  background: var(--ink-faint);
  transform: translate(-50%, 0);
}
@media (max-width: 880px) {
  .spine { display: none; }
}

/* nudge content clear of the spine on desktop */
@media (min-width: 881px) {
  .wrap { padding-left: calc(var(--gutter) + 56px); }
}

/* ----------------------------------------------------------
   Top nav
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  transition: background 0.25s ease;
}
.nav__cta:hover { background: var(--jade); }
@media (max-width: 760px) {
  .nav__links .nav__link { display: none; }
}

/* ----------------------------------------------------------
   Logo: AIOasia wordmark — the O is the citation marker
   ---------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.logo__b { font-weight: 700; }
.logo__reg { font-weight: 400; letter-spacing: -0.01em; }
.logo__o {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border: 0.12em solid var(--ink);
  border-radius: 50%;
  position: relative;
  margin: 0 0.03em;
  vertical-align: -0.012em;
}
.logo__o::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--amber);
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  padding-top: clamp(64px, 10vh, 120px);
  padding-bottom: clamp(72px, 11vh, 150px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 40px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.hero h1 { max-width: 18ch; }
.hero__sub {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.52;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 36px 0 44px;
}
.hero__sub b { color: var(--ink); font-weight: 600; }
.hero__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* engine logos under hero — infinite marquee */
.engines {
  margin-top: clamp(54px, 8vh, 92px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 22px;
}
.engines__track {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  display: flex;
  -webkit-mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
}
.engines__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.engines__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  flex-shrink: 0;
  animation: marquee 20s linear infinite;
}
.engines__logos[data-clone] {
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* pause on hover */
.engines:hover .engines__logos { animation-play-state: paused; }

.engine { display: inline-flex; align-items: center; flex-shrink: 0; }
.engine__name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 10px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.engine__logo {
  height: 27px;
  width: 27px;
  display: block;
  color: var(--ink);
  opacity: 0.66;
  flex-shrink: 0;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.engine__logo path { fill: currentColor; }
.engine:hover .engine__logo { opacity: 1; transform: translateY(-2px); }
.engine:hover .engine__name { color: var(--ink); }

/* ----------------------------------------------------------
   Stat blocks (numbered editorial)
   ---------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 7vh, 80px);
}
.stat {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.stat__num-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--jade);
  margin-bottom: 18px;
}
.stat__fig {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--ink);
}
.stat__fig small { font-size: 0.42em; color: var(--ink-soft); letter-spacing: 0; }
.stat__txt {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34ch;
}
@media (max-width: 820px) {
  .stat-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { padding-block: 30px; border-top: 1px solid var(--rule); }
  .stat:first-child { border-top: 1px solid var(--ink); }
}

/* ----------------------------------------------------------
   Services / method numbered blocks
   ---------------------------------------------------------- */
.blocks {
  margin-top: clamp(48px, 7vh, 86px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(40px, 6vw, 96px);
}
.block {
  padding: 34px 0 38px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
}
.block__idx {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--jade);
  font-weight: 420;
  letter-spacing: 0.02em;
  padding-top: 4px;
  min-width: 28px;
}
.block__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 420;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.block__title .tag {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 7px;
}
.block__txt {
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}
@media (max-width: 820px) {
  .blocks { grid-template-columns: 1fr; }
}

/* method spine variant — phases */
.phases {
  margin-top: clamp(48px, 7vh, 86px);
  display: grid;
  gap: 0;
}
.phase {
  display: grid;
  grid-template-columns: clamp(120px, 16vw, 200px) 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.phase:last-child { border-bottom: 1px solid var(--rule); }
.phase__meta { position: relative; }
.phase__idx {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 340;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.phase__weeks {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  margin-top: 14px;
}
.phase__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 420;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.phase__txt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 58ch;
}
@media (max-width: 720px) {
  .phase { grid-template-columns: 1fr; gap: 16px; }
  .phase__idx { font-size: 42px; }
}

/* ----------------------------------------------------------
   Why Asia — stat band
   ---------------------------------------------------------- */
.asia-band {
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.asia-stat {
  padding: 36px clamp(18px, 2.2vw, 30px) 36px 0;
  border-right: 1px solid var(--rule);
}
.asia-stat:last-child { border-right: none; }
.asia-stat__fig {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 360;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--jade);
  margin-bottom: 16px;
}
.asia-stat__txt {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .asia-band { grid-template-columns: 1fr 1fr; }
  .asia-stat { border-bottom: 1px solid var(--rule); }
  .asia-stat:nth-child(odd) { padding-right: clamp(18px, 4vw, 30px); }
  .asia-stat:nth-child(even) { border-right: none; }
}
@media (max-width: 480px) {
  .asia-band { grid-template-columns: 1fr; }
  .asia-stat { border-right: none; padding-right: 0; }
}
.asia-close {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 26px);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  max-width: 40ch;
  margin: clamp(40px, 6vh, 64px) 0 0;
}

/* ----------------------------------------------------------
   Hokai connection — feature row
   ---------------------------------------------------------- */
.edge {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 1;
}
.edge .eyebrow { color: var(--amber); }
.edge .eyebrow::before { background: var(--amber); }
.edge__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.edge h2 {
  color: var(--paper);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.014em;
  margin: 0;
  max-width: 16ch;
}
.edge__body {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.62;
  color: rgba(247, 245, 240, 0.74);
}
.edge__body p { margin: 0 0 22px; }
.edge__body b { color: var(--paper); font-weight: 600; }
.edge__note {
  margin-top: 32px;
  font-size: 13.5px;
  font-style: italic;
  color: rgba(247, 245, 240, 0.45);
  max-width: 52ch;
}
@media (max-width: 820px) {
  .edge__inner { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   Insights rail
   ---------------------------------------------------------- */
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rail-cta { margin: 26px 0 0; }
.rail-nav { display: flex; gap: 12px; }
.rail-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.rail-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-btn:disabled:hover { background: transparent; color: var(--ink); border-color: var(--rule); }
.chev {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  display: block;
}
.chev--l { transform: rotate(135deg); margin-left: 3px; }
.chev--r { transform: rotate(-45deg); margin-right: 3px; }

.rail-viewport {
  margin-top: clamp(36px, 5vh, 56px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
  border-top: 1px solid var(--ink);
}
.rail-viewport::-webkit-scrollbar { display: none; }
.rail-viewport.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail {
  display: flex;
  gap: 0;
  width: max-content;
}
.card {
  scroll-snap-align: start;
  width: clamp(280px, 33vw, 380px);
  padding: 32px 34px 34px 0;
  margin-right: 34px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  user-select: none;
  text-decoration: none;
  color: inherit;
}
.card:hover .card__title { color: var(--jade); }
.card:last-child { border-right: none; margin-right: 0; }
.card__tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 22px;
}
.card__title {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 420;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
  transition: color 0.25s ease;
}
.card__dek {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 26px;
  flex-grow: 1;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card__time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.card__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.card:hover .card__more { color: var(--jade); border-color: var(--jade); }

/* ----------------------------------------------------------
   Form
   ---------------------------------------------------------- */
.form-section { background: var(--paper-2); }
.form-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.form-intro h2 { font-size: clamp(36px, 5vw, 68px); margin: 0; line-height: 1.02; }
.form-intro .lede { margin-top: 26px; }

form.lead { display: grid; gap: 0; }
.field {
  display: grid;
  gap: 9px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.field:first-child { border-top: 1px solid var(--ink); }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field label .opt { color: var(--ink-faint); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 4px 0;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field textarea { min-height: 58px; line-height: 1.5; }
.field select {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 4px 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316140F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
}
.field:focus-within label { color: var(--jade); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form-micro {
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 30ch;
}
.form-sent {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 2px solid var(--jade);
  background: rgba(14, 92, 74, 0.06);
  font-size: 15px;
  color: var(--jade-deep);
  display: none;
}
.form-sent.show { display: block; }
@media (max-width: 820px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vh, 88px);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer__brand { max-width: 34ch; }
.footer .logo__mark { color: var(--paper); }
.footer .logo__o { border-color: var(--paper); }
.footer__tag {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: rgba(247, 245, 240, 0.82);
  margin: 20px 0 0;
  line-height: 1.35;
}
.footer__cols {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}
.footer__col-head {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.35);
  margin: 0 0 14px;
}
.footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link {
  color: rgba(247, 245, 240, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}
.footer__link:hover { color: var(--paper); }
.footer__rule {
  border: none;
  border-top: 1px solid rgba(247, 245, 240, 0.1);
  margin: clamp(32px, 4vh, 48px) 0 0;
  padding-top: 22px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__meta {
  font-size: 12.5px;
  color: rgba(247, 245, 240, 0.38);
  margin: 0;
}
.footer__bottom-links {
  display: flex;
  gap: 22px;
}
.footer__bottom-links a {
  font-size: 12.5px;
  color: rgba(247, 245, 240, 0.38);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__bottom-links a:hover { color: rgba(247, 245, 240, 0.7); }
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; }
  .footer__cols { flex-direction: column; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------------------------------------
   Reveal animations
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}
