/* ==========================================================
   The Articulate Project — single page
   Brand: paper #F7F3ED · navy #141C31 · red #C8362F · gold #E6B63E
   Type: Playfair Display (display serif) + Inter (body)
   ========================================================== */

:root {
  /* Official TAP brand palette (from branding sheet) */
  --cream: #F7F3ED;        /* Paper — surface / space */
  --cream-tint: #ECE6DA;   /* darker paper for tinted sections */
  --navy: #141C31;         /* Navy — base / anchor */
  --navy-deep: #0E1424;    /* deeper navy for gradients & footer */
  --red: #C8362F;          /* Red — energy / accent */
  --red-deep: #A82823;     /* Deep Red — secondary */
  --gold: #E6B63E;         /* Gold — prestige / mark */
  --gold-soft: #CEA856;    /* Gold Soft — secondary */
  --ink: #1A1C26;          /* Ink — darkest text */
  --ink-soft: #49526B;     /* soft slate body text */
  --blue-grey: #96A2BE;    /* Blue-Grey — secondary */
  --navy-line: #364262;    /* Navy Line — secondary */
  --line: rgba(20, 28, 49, 0.16);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --narrow: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.12;
  font-weight: 600;
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

.red  { color: var(--red); }
.gold { color: var(--gold); }

a { color: var(--red); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--narrow); }
.center { text-align: center; }

/* ---------- shared pieces ---------- */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.eyebrow.sm { margin-bottom: 0.7rem; letter-spacing: 0.28em; font-size: 0.7rem; }
.eyebrow-gold { color: var(--gold); }

.rule {
  width: 100%;
  max-width: 720px;
  height: 2px;
  background: var(--red);
  margin: 2rem 0 2.2rem;
}
.rule-full { max-width: 100%; }

.lead {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }

/* cream sections: faint linen hairlines */
.section {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(20, 28, 49, 0.028) 0px,
    rgba(20, 28, 49, 0.028) 1px,
    transparent 1px,
    transparent 13px
  );
}

/* tinted sections: dot grid */
.section-tint {
  background-color: var(--cream-tint);
  background-image: radial-gradient(rgba(20, 28, 49, 0.085) 1px, transparent 1.5px);
  background-size: 26px 26px;
}

/* ghost serif glyph behind a section */
.ghost {
  position: absolute;
  top: 0.5rem;
  right: 2vw;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(14rem, 30vw, 26rem);
  line-height: 1;
  color: rgba(20, 28, 49, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }
.section p + p { margin-top: 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #efc65b; box-shadow: 0 8px 22px rgba(230, 182, 62, 0.4); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #d4473d; }

.btn-ghost { color: var(--cream); border: 1px solid rgba(247, 243, 237, 0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-small { padding: 0.55rem 1.15rem; font-size: 0.85rem; border-radius: 3px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(14, 20, 36, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(14, 20, 36, 0.96);
  box-shadow: 0 1px 0 rgba(230, 182, 62, 0.25);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
  white-space: nowrap;
}
.brand-text em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  color: rgba(247, 243, 237, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:not(.btn):hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: grid;
  align-items: center;
  text-align: left;
  background:
    linear-gradient(rgba(230, 182, 62, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 182, 62, 0.04) 1px, transparent 1px),
    linear-gradient(100deg, rgba(14, 20, 36, 0.94) 0%, rgba(14, 20, 36, 0.82) 45%, rgba(14, 20, 36, 0.42) 100%),
    url("assets/hero-bg.jpg") center 70% / cover no-repeat var(--navy-deep);
  background-size: 84px 84px, 84px 84px, auto, cover;
  color: rgba(247, 243, 237, 0.78);
  padding: 7rem 24px 5rem;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-content { max-width: 680px; }

.hero .eyebrow, .page-hero .eyebrow { display: inline-flex; flex-direction: column; gap: 0.5rem; }
.hero .eyebrow { align-items: flex-start; }
.page-hero .eyebrow { align-items: flex-start; }
.eyebrow-rule { width: 44px; height: 2px; background: var(--red); display: block; }

.hero-title {
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  color: var(--cream);
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.hero-divider {
  width: 110px;
  height: 1px;
  background: rgba(247, 243, 237, 0.35);
  margin: 2.2rem 0 1.6rem;
}

.hero-tag {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--cream);
}

.hero-type {
  margin: 2rem 0 0;
  min-height: 1.8em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gold);
}
.hero-type .struck { text-decoration: line-through; text-decoration-color: var(--red); opacity: 0.55; color: rgba(247,243,237,0.6); }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--gold);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-cities { color: var(--gold); letter-spacing: 0.3em; font-size: 0.85rem; }

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.hero-cta.center { justify-content: center; }

.hero-corner {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  opacity: 0.6;
}
.hero-corner.tl { top: 88px; left: 32px; border-right: 0; border-bottom: 0; }
.hero-corner.br { bottom: 32px; right: 32px; border-left: 0; border-top: 0; }

/* ---------- about ---------- */

.pull {
  margin-top: 3rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--red);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.35;
  color: var(--navy);
}

/* ---------- studio split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.split .rule { max-width: 280px; }

.studio-photo {
  margin-top: 2.2rem;
  position: relative;
}
.studio-photo img {
  border-radius: 8px;
  border: 1px solid var(--navy);
  width: 100%;
}
.studio-photo::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  z-index: -1;
}

.studio-list { list-style: none; display: grid; gap: 2.4rem; }
.studio-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.studio-list h3 { margin-bottom: 0.45rem; }
.li-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--red);
  background: var(--cream);
}

/* ---------- method ---------- */

.method { list-style: none; display: grid; gap: 1.1rem; margin-top: 2rem; }
.method li {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: #FBF9F4;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.method li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 28, 49, 0.1);
}
.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgba(200, 54, 47, 0.35);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.method h3 { margin-bottom: 0.4rem; }

/* ---------- programs ---------- */

.rooms {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.room {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.room:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 28, 49, 0.12);
}
.room-photo { margin: 0; }
.room-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--navy);
  filter: saturate(0.92);
  transition: transform 0.35s ease;
}
.room:hover .room-photo img { transform: scale(1.04); }
.room-photo { overflow: hidden; }
.room-body {
  position: relative;
  padding: 1.6rem 1.8rem 1.7rem 2.1rem;
}
.room-tick {
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 5px;
  background: var(--red);
  border-radius: 0 3px 3px 0;
}
.room-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; margin-bottom: 0.7rem; }
.room-age {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.room p { font-size: 0.98rem; }
.room-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, gap 0.18s ease;
}
.room-link:hover { background: var(--red); border-color: var(--red); color: #fff; gap: 0.7rem; }

/* ---------- founders ---------- */

.founders {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.founder {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 360px;
  background: #FBF9F4;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
/* photo fills its column edge to edge; cropping is fine */
.founder-photo { position: relative; }
.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.founder-body {
  padding: 2.2rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.founder-body h3 { font-size: 1.7rem; }
.founder-rule { display: block; width: 30px; height: 2px; background: var(--red); margin: 0.9rem 0 1.1rem; }
.founder-body p { font-size: 0.97rem; }
.founder-body blockquote {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--red);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(rgba(230, 182, 62, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 182, 62, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 20, 36, 0.85) 0%, rgba(14, 20, 36, 0.92) 100%),
    url("assets/cta-bg.jpg") center / cover no-repeat var(--navy-deep);
  background-size: 84px 84px, 84px 84px, auto, cover;
  color: rgba(247, 243, 237, 0.8);
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 1.6rem; }
.cta-band p { max-width: 560px; margin: 0 auto; }
.cta-band .hero-cta { margin-top: 2.2rem; }
.cta-cities {
  margin-top: 1.6rem !important;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 243, 237, 0.6);
}
.cta-cities span {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}
.cta-handle { margin-top: 1.6rem; font-size: 0.9rem; letter-spacing: 0.08em; }
.cta-handle a { color: var(--gold); text-decoration: none; }
.cta-handle a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(230, 182, 62, 0.25);
  padding: 2.6rem 0;
  text-align: center;
  color: rgba(247, 243, 237, 0.55);
  font-size: 0.88rem;
}
.footer-inner { display: grid; gap: 0.9rem; justify-items: center; }
.footer-brand .brand-text { font-size: 0.98rem; }
.footer-line strong { color: var(--gold); font-weight: 600; }
.footer-copy { font-size: 0.8rem; }
.footer-credit { font-size: 0.8rem; color: rgba(247, 243, 237, 0.4); }
.footer-immixart { color: rgba(247, 243, 237, 0.72); text-decoration: none; transition: color 0.18s ease; }
.footer-immixart:hover { color: var(--gold); }

/* ---------- enrolling ribbon ---------- */

.ribbon {
  background: var(--red);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(230, 182, 62, 0.4);
}
.ribbon-track {
  display: inline-flex;
  gap: 3rem;
  animation: ribbon-scroll 28s linear infinite;
  will-change: transform;
}
.ribbon span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.ribbon span b { color: var(--gold); font-weight: 700; }
@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- cities ---------- */

.cities {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.city {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(247, 243, 237, 0.78);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}
.city::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(230, 182, 62, 0.35);
  border-radius: 5px;
  pointer-events: none;
  z-index: 2;
}
.city-photo {
  height: 210px;
  overflow: hidden;
}
.city-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.city-body {
  position: relative;
  padding: 1.8rem 2.2rem 2rem;
}
.city-body > .city-pin {
  position: absolute;
  top: -22px;
  left: 2rem;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.city h3 {
  font-size: 2rem;
  color: var(--cream);
  margin: 0.9rem 0 0.4rem;
}
.city-pin {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 1px solid var(--gold);
  color: var(--gold);
}
.city-meta {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.city-meta span { display: flex; align-items: center; gap: 0.55rem; }
.city-meta svg { color: var(--gold); flex: 0 0 auto; }

/* ---------- signup page ---------- */

.page-hero {
  background:
    linear-gradient(rgba(230, 182, 62, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 182, 62, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 20, 36, 0.82) 0%, rgba(14, 20, 36, 0.7) 50%, rgba(16, 26, 52, 0.92) 100%),
    url("assets/signup-bg.jpg") right center / cover no-repeat var(--navy-deep);
  background-size: 84px 84px, 84px 84px, auto, cover;
  color: rgba(247, 243, 237, 0.78);
  text-align: left;
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(4rem, 7vw, 6rem);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--cream);
  margin: 0.4rem 0 1.2rem;
}
.page-hero .lead { color: rgba(247, 243, 237, 0.85); max-width: 640px; margin: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 3rem auto 0;
  max-width: 880px;
  transform: translateY(50%);
}
.fact {
  background: var(--cream);
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 1.3rem 1rem 1.1rem;
  text-align: center;
  box-shadow: 0 16px 34px rgba(14, 20, 36, 0.25);
}
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  line-height: 1.1;
}
.fact small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.form-section { padding-top: clamp(4.5rem, 9vw, 7.5rem); }

.form-shell {
  margin-top: 2.4rem;
  background: #FBF9F4;
  border: 1px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
}

/* ----- progress ----- */
.form-progress { padding: 1.3rem 1.6rem 0; }
.form-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.form-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.form-step-count {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin: 0;
  white-space: nowrap;
}
.form-progress-bar {
  height: 4px;
  background: rgba(20, 28, 49, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.form-progress-bar span {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.35s ease;
}

/* ----- steps ----- */
#enrollForm { padding: 2rem 1.8rem 1.8rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fstep { display: none; border: 0; }
.fstep.active { display: block; animation: step-in 0.3s ease; }
.fstep:focus { outline: none; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

.fstep legend {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.7rem;
}
.step-intro {
  margin: -0.3rem 0 1.8rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
}

/* ----- fields ----- */
.field { margin-bottom: 1.6rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}
.field label,
.group-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
}
.req { color: var(--red); }
.hint-inline { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(20, 28, 49, 0.35);
  border-radius: 5px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(200, 54, 47, 0.18);
}

/* ----- choice grids (radio / checkbox cards) ----- */
.choice-grid { display: grid; gap: 0.6rem; }
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.program-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }

.opt {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--cream);
  border: 1px solid rgba(20, 28, 49, 0.3);
  border-radius: 5px;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.opt:hover { border-color: var(--navy); }
.opt input {
  accent-color: var(--red);
  margin-top: 0.2em;
  margin-right: 0.4rem;
  flex: 0 0 auto;
  cursor: pointer;
}
.opt:has(input:checked) {
  border-color: var(--red);
  background: #FDF6F0;
  box-shadow: inset 3px 0 0 var(--red);
}
.opt:has(input:focus-visible) { outline: 3px solid rgba(230, 182, 62, 0.6); outline-offset: 2px; }

.opt-card { align-items: flex-start; padding: 1rem 1.1rem; line-height: 1.5; }
.opt-card span { display: block; }
.opt-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy);
}
.opt-card em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0.15rem 0 0.4rem;
}
.opt-card { font-size: 0.88rem; }

.opt-agree { border-style: dashed; }

/* invalid state */
.field.invalid input,
.field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 54, 47, 0.15); }
.field.invalid .opt { border-color: rgba(200, 54, 47, 0.65); }
.field.invalid > label,
.field.invalid .group-label { color: var(--red); }

.form-error {
  margin: 0.4rem 0 0;
  padding: 0.7rem 1rem;
  background: rgba(200, 54, 47, 0.08);
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ----- payment box ----- */
.pay-box {
  background: var(--cream);
  border: 1px solid rgba(20, 28, 49, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: 5px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
}
.pay-box h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.pay-box h4 + dl { margin-bottom: 1rem; }
.pay-box dl { display: grid; gap: 0.3rem; }
.pay-box dl div { display: flex; gap: 0.7rem; font-size: 0.92rem; }
.pay-box dt { min-width: 150px; font-weight: 600; color: var(--navy); }
.pay-box dd { color: var(--ink-soft); }
.pay-note { font-size: 0.85rem; margin-top: 0.4rem; }

/* ----- terms ----- */
.terms-box {
  background: var(--cream);
  border: 1px solid rgba(20, 28, 49, 0.3);
  border-left: 4px solid var(--red);
  border-radius: 5px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
  font-size: 0.93rem;
}
.terms-box p { font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.terms-box ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }

/* ----- nav buttons ----- */
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.form-nav .btn { cursor: pointer; border: 0; }
.form-nav #nextBtn, .form-nav #submitBtn { margin-left: auto; }
.btn-ghost-navy {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(20, 28, 49, 0.4) !important;
}
.btn-ghost-navy:hover { border-color: var(--navy) !important; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none !important; }

/* ----- success ----- */
.form-success {
  padding: 3.5rem 2rem 4rem;
  text-align: center;
}
.form-success:focus { outline: none; }
.success-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(200, 54, 47, 0.1);
  color: var(--red);
  margin-bottom: 1.2rem;
}
.form-success h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.form-success p { max-width: 480px; margin: 0 auto; }
.form-success .signup-note { margin-top: 1.2rem; }

.signup-note { margin-top: 1.4rem; font-size: 0.9rem; text-align: center; }

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); transform: none; margin-top: 2.4rem; }
  .form-section { padding-top: clamp(4.5rem, 9vw, 7.5rem); }
  .choice-grid.cols-3, .choice-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cities { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .choice-grid.cols-2, .choice-grid.cols-3, .choice-grid.cols-4 { grid-template-columns: 1fr; }
  .pay-box dl div { flex-direction: column; gap: 0.05rem; }
  .form-nav { flex-wrap: wrap; }
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.38s; }
.reveal.d4 { transition-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .ribbon-track { animation: none; }
  .fstep.active { animation: none; }
  .btn:hover, .room:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .rooms { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav { background: rgba(14, 20, 36, 0.96); }
  .nav-links {
    position: fixed;
    top: 58px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(230, 182, 62, 0.25);
    padding: 0.6rem 24px 1.4rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 0.85rem 0; width: 100%; }
  .nav-links .btn { margin-top: 0.8rem; }

  .founder { grid-template-columns: 1fr; min-height: 0; }
  .founder-photo { height: 320px; }

  .method li { gap: 1rem; }
  .hero-corner { display: none; }
}
