/* ===========================================================================
   9th World Zoroastrian Youth Congress — Mumbai 2027
   Pre-registration landing page styles
   ---------------------------------------------------------------------------
   All colours, fonts and spacing are defined as CSS variables in :root below.
   To restyle the site, change them there — you rarely need to touch anything
   further down.
   =========================================================================== */

:root {
  /* Brand palette */
  --purple-deep:  #2b1d52;
  --purple:       #3b2a6b;
  --purple-soft:  #5a4a86;
  --gold:         #b8974f;
  --gold-light:   #d6bd88;
  --gold-pale:    #e8dcc0;

  /* Neutrals */
  --cream:        #fbf7ef;
  --cream-warm:   #f6efe1;
  --card:         #fffdf8;
  --ink:          #4a4458;
  --ink-soft:     #6f6885;
  --line:         #e7dcc6;

  /* Feedback */
  --error:        #b3382f;
  --success:      #3f8f52;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script:  "Pinyon Script", "Brush Script MT", cursive;

  /* Layout */
  --wrap:         1320px;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow-card:  0 18px 50px rgba(59, 42, 107, 0.10), 0 2px 8px rgba(59, 42, 107, 0.05);
}

/* ---------------------------------------------------------------- Reset */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  /* Soft lilac-to-cream wash, echoing the sunrise in the hero artwork */
  background-image:
    radial-gradient(1200px 600px at 78% 8%,  rgba(233, 224, 245, 0.55), transparent 62%),
    radial-gradient(900px 520px at 12% 92%, rgba(226, 216, 240, 0.45), transparent 60%),
    linear-gradient(180deg, #fdfaf4 0%, #f8f2e6 55%, #f1eaf4 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--purple); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--purple);
  margin: 0;
  line-height: 1.18;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  padding: 14px 30px;
  box-shadow: 0 6px 18px rgba(59, 42, 107, 0.26);
}

.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(59, 42, 107, 0.32); }
.btn-primary:active { transform: translateY(0); }

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--purple-soft);
  outline-offset: 2px;
}

/* ================================================================ HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 239, 0.82);
  border-bottom: 1px solid rgba(231, 220, 198, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark { width: 62px; height: 62px; object-fit: contain; flex: none; }
/* Set by JavaScript if assets/img/logo.png is missing, so no broken-image icon shows. */
.brand-mark.is-missing { display: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-line-1,
.brand-line-2 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.brand-line-1 { font-size: 11px; }
.brand-line-2 { font-size: 15px; }
.brand-line-3 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3.4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.primary-nav { display: flex; align-items: center; gap: 30px; }

.primary-nav a {
  font-size: 15px;
  color: var(--ink);
  padding-block: 6px;
  position: relative;
  transition: color 0.18s ease;
}
.primary-nav a:hover { color: var(--purple); }

.primary-nav a.is-current { color: var(--purple); }
.primary-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta { color: #fff !important; margin-left: 8px; }
.nav-cta::after { display: none !important; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--purple);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================ HERO */

.hero { position: relative; padding-block: 46px 120px; overflow: hidden; }

/* ---- Hero backdrop ---------------------------------------------------
   .hero-bg    the Gateway of India photograph
   .hero-wave  the lilac wave band along its foot
   To swap the photograph, just replace assets/img/hero.jpg.
   --------------------------------------------------------------------- */

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  pointer-events: none;
  /* Fades the artwork out towards the left so the headline stays readable. */
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 16%, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 16%, #000 38%, #000 100%);
}

.hero-bg {
  background-image: url("../img/hero.jpg");
  opacity: 0.88;
}

/* Warm sunrise glow washing in from the right, as in the design. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 62% 34%, rgba(255, 233, 186, 0.5), transparent 68%),
    radial-gradient(520px 340px at 88% 22%, rgba(250, 226, 190, 0.38), transparent 70%);
}

/* Lilac wave band across the foot of the hero. */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 146px;
  opacity: 0.9;
  background-image: url("../img/wave.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 52px;
  align-items: start;
}

/* Decorative script flourish, top right */
.script-mark {
  position: absolute;
  top: 24px;
  right: 244px;
  z-index: 4;
  margin: 0;
  font-family: var(--font-script);
  font-size: 38px;
  line-height: 1.12;
  /* Deeper gold plus a soft halo — the sky behind this is very bright. */
  color: #9c7c35;
  text-shadow: 0 1px 10px rgba(255, 252, 244, 0.9), 0 0 3px rgba(255, 252, 244, 0.8);
  text-align: center;
  transform: rotate(-7deg);
  pointer-events: none;
}
.script-mark em { font-style: normal; display: inline-block; transform: translateX(14px); }

/* Vertical "Good Thoughts / Good Words / Good Deeds" rail */
.values-rail {
  position: absolute;
  top: 24px;
  right: 30px;
  z-index: 4;
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 1px solid var(--gold-pale);
  font-size: 10px;
  letter-spacing: 3px;
  line-height: 2.05;
  text-transform: uppercase;
  color: #8a6c2c;
  text-shadow: 0 1px 8px rgba(255, 252, 244, 0.95);
  pointer-events: none;
}

/* ---- Hero copy ---- */

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 4.4px;
  text-transform: uppercase;
  color: #8a6c2c;
  text-shadow: 0 1px 8px rgba(255, 252, 244, 0.85);
}

.rule-faravahar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 22px;
  max-width: 430px;
}
.rule-faravahar .rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.rule-faravahar .fv   { color: var(--gold); display: block; flex: none; }
.rule-faravahar .fv svg { display: block; }

/* Sized so "9th World Zoroastrian" holds a single line at desktop widths,
   matching the design. The nowrap is lifted on narrow screens below. */
.hero-title { font-size: clamp(34px, 4.55vw, 68px); letter-spacing: -0.5px; }
.hero-title .line-1,
.hero-title .line-2 { display: block; white-space: nowrap; }
.hero-title .line-1 { color: var(--purple-deep); font-weight: 700; }
.hero-title .line-2 { color: var(--gold); font-weight: 700; }
.hero-title sup { font-size: 0.46em; vertical-align: super; font-weight: 600; }

.hero-sub {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 33px);
  font-weight: 600;
  color: var(--purple);
}

.hero-lede {
  margin: 20px 0 0;
  max-width: 520px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.58;
  color: var(--ink);
}

/* ---- Countdown ---- */

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cd-box {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 16px 12px 13px;
  text-align: center;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--purple-deep);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-caption {
  margin: 34px 0 0;
  font-size: 11px;
  letter-spacing: 3.4px;
  line-height: 2;
  text-transform: uppercase;
  color: #8a6c2c;
  text-shadow: 0 1px 8px rgba(255, 252, 244, 0.9);
}

/* ================================================================ FORM CARD */

.form-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(231, 220, 198, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 30px 28px 26px;
  margin-top: 14px;
}

/* On wide screens the card drops below the script flourish, as in the design. */
@media (min-width: 1181px) {
  .form-card { margin-top: 98px; }
}

.card-title { font-size: 29px; font-weight: 700; }
.card-sub   { margin: 4px 0 22px; font-family: var(--font-display); font-size: 19px; color: var(--ink-soft); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 11px;
}

.field { position: relative; min-width: 0; }
.field-full { grid-column: 1 / -1; }

/* ---- Inputs ---- */

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card select {
  width: 100%;
  padding: 12px 13px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-card input::placeholder { color: #a49dae; }

.form-card input:hover,
.form-card select:hover { border-color: var(--gold-light); }

.form-card input:focus,
.form-card select:focus {
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 3px rgba(90, 74, 134, 0.12);
  outline: none;
}

/* Custom chevron for selects */
.form-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236f6885' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
  cursor: pointer;
}

/* A select showing its disabled placeholder option should look like a placeholder */
.form-card select:invalid,
.form-card select.is-placeholder { color: #a49dae; }
.form-card select option { color: var(--ink); }

/* ---- Phone group: dial-code select fused to the number input ---- */

.phone-group { display: flex; }

.phone-group select {
  width: 96px;
  flex: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  padding-inline: 12px 26px;
  background-position: right 8px center;
  font-size: 14px;
}

.phone-group input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* ---- Instagram prefix ---- */

.input-prefix { position: relative; }
.input-prefix .prefix {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: #a49dae;
  font-size: 15px;
  pointer-events: none;
}
.input-prefix input { padding-left: 30px !important; }

/* ---- City autocomplete dropdown ---- */

.field-city { position: relative; }

.suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0; right: 0;
  margin: 0;
  padding: 5px;
  list-style: none;
  max-height: 226px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(59, 42, 107, 0.14);
}

.suggestions li {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14.5px;
  cursor: pointer;
}
.suggestions li:hover,
.suggestions li.is-active { background: var(--cream-warm); color: var(--purple); }

.suggestions li.is-empty { color: var(--ink-soft); cursor: default; font-style: italic; }
.suggestions li.is-empty:hover { background: none; }

/* ---- Validation ---- */

.field-error {
  margin: 5px 2px 0;
  font-size: 12.5px;
  color: var(--error);
  min-height: 0;
}

.form-card input.has-error,
.form-card select.has-error { border-color: var(--error); }

.form-message {
  margin: 4px 0 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fdeceb;
  border: 1px solid #f2c9c5;
  color: var(--error);
}
.form-message.is-success { background: #eaf6ec; border-color: #c4e3cb; color: var(--success); }

/* Honeypot — off-screen, never shown to people */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---- Submit ---- */

.btn-submit {
  width: 100%;
  margin-top: 6px;
  padding-block: 17px;
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-submit .btn-arrow { transition: transform 0.2s ease; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-submit.is-loading { pointer-events: none; opacity: 0.85; }
.btn-submit.is-loading .btn-arrow { display: none; }
.btn-submit.is-loading .spinner  { display: block; }

.privacy-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.privacy-note .lock { margin-right: 5px; font-size: 12px; }

/* ================================================================ SUCCESS */

.success-state { text-align: center; padding: 22px 6px 14px; animation: fadeUp 0.5s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.success-check {
  position: relative;
  width: 118px; height: 118px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #d8f0dc 0%, #eaf6ec 62%, rgba(234,246,236,0) 100%);
}

.check-svg { width: 62px; height: 62px; }
.check-circle { stroke: var(--success); stroke-width: 2.4; opacity: 0.35; }
.check-tick {
  stroke: var(--success);
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw 0.55s 0.2s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.sparkle { position: absolute; color: var(--gold-light); font-size: 15px; animation: twinkle 2.4s ease-in-out infinite; }
.sparkle.s1 { top: 4px;  left: 8px;  animation-delay: 0s; }
.sparkle.s2 { top: 12px; right: 4px; animation-delay: 0.5s; font-size: 19px; }
.sparkle.s3 { bottom: 8px; right: 14px; animation-delay: 1s; }
@keyframes twinkle { 0%,100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

.success-title { font-size: 40px; font-weight: 700; }
.success-title:focus { outline: none; }
.success-sub   { margin: 6px 0 0; font-family: var(--font-display); font-size: 23px; color: var(--ink-soft); }

.success-rule { width: 72px; height: 1px; border: none; background: var(--gold-light); margin: 22px auto; }

.success-body {
  margin: 0 auto;
  max-width: 400px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
}

.success-socials { display: flex; justify-content: center; gap: 20px; margin: 26px 0 4px; }

.soc {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.soc:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.16); }
.soc-ig { background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%); }
.soc-yt { background: #ff0000; }
.soc-fb { background: #1877f2; }

.success-footer { margin: 0; font-family: var(--font-display); font-size: 19px; color: var(--ink-soft); }
.success-heart  { margin: 10px 0 0; color: var(--gold); font-size: 19px; }

/* ================================================================ PILLARS */

/* The cream band the value cards sit on, picking up where the wave ends. */
.pillars {
  position: relative;
  z-index: 2;
  padding-block: 40px 58px;
  background: linear-gradient(180deg, #f3ecf5 0%, #faf5ea 18%, #faf5ea 100%);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(231, 220, 198, 0.75);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(59, 42, 107, 0.10); }

.pillar-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-warm);
  color: var(--gold);
}

.pillar h3 { font-size: 24px; font-weight: 700; }

.pillar-rule { display: block; width: 44px; height: 1px; background: var(--gold-light); margin: 12px auto 14px; }

.pillar p { margin: 0; font-family: var(--font-display); font-size: 17.5px; line-height: 1.5; color: var(--ink); }

/* ================================================================ FOOTER */

.site-footer { position: relative; z-index: 2; padding-block: 12px 34px; background: #faf5ea; }

.footer-motto {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 26px;
  font-size: 11px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--gold);
  justify-content: center;
}
.footer-motto .rule { flex: 1; max-width: 190px; height: 1px; background: var(--gold-pale); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-name {
  margin: 0;
  font-size: 11px;
  letter-spacing: 2.4px;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--purple);
}

.footer-socials { display: flex; gap: 18px; }
.footer-socials a { color: var(--purple-deep); opacity: 0.75; transition: opacity 0.18s ease, transform 0.18s ease; }
.footer-socials a:hover { opacity: 1; transform: translateY(-2px); }

.footer-fv {
  display: block;
  width: 118px;
  height: 40px;
  background-image: url("../img/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  order: 4;
}

.footer-values {
  display: flex;
  gap: 14px;
  margin: 0;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-values span + span { padding-left: 14px; border-left: 1px solid var(--gold-pale); }

/* ================================================================ RESPONSIVE */

@media (max-width: 1180px) {
  .script-mark { display: none; }
  .values-rail { display: none; }
  .hero-inner  { gap: 38px; }
}

@media (max-width: 980px) {
  .wrap { padding-inline: 20px; }

  /* Mobile nav: slides down as a panel under the header */
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(59, 42, 107, 0.10);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 4px; border-bottom: 1px solid rgba(231, 220, 198, 0.6); }
  .primary-nav a.is-current::after { display: none; }
  .nav-cta { margin: 14px 0 0; border-bottom: none !important; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; }

  /* One column now, so fade the artwork downwards rather than sideways. */
  .hero-bg {
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, #000 34%, #000 62%, transparent 92%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, #000 34%, #000 62%, transparent 92%);
    background-position: center 38%;
  }
  .hero-bg { opacity: 0.6; }
  .hero-wave { height: 150px; }

  /* Narrower column — let the headline wrap naturally again. */
  .hero-title .line-1,
  .hero-title .line-2 { white-space: normal; }

  .hero-caption { display: none; }
  .form-card { margin-top: 34px; }

  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; padding: 22px; }
  .pillar-icon { width: 52px; height: 52px; margin: 0; grid-row: 1 / span 3; }
  .pillar-rule { display: none; }
  .pillar h3 { font-size: 20px; align-self: center; }
  .pillar p  { font-size: 16px; }
}

@media (max-width: 620px) {
  .brand-mark   { width: 48px; height: 48px; }
  .brand-line-2 { font-size: 12.5px; letter-spacing: 1.1px; }
  .brand-line-1 { font-size: 9.5px; }
  .brand-line-3 { font-size: 9px; letter-spacing: 2.6px; }

  .hero { padding-block: 26px 44px; }
  .hero-lede { font-size: 18px; }

  .countdown { gap: 9px; }
  .cd-box { flex: 1 1 0; min-width: 0; padding: 12px 6px 10px; }
  .cd-num { font-size: 27px; }
  .cd-label { font-size: 11px; }

  .form-card { padding: 24px 20px 22px; border-radius: 16px; }
  .card-title { font-size: 26px; }
  .card-sub   { font-size: 17px; margin-bottom: 18px; }

  /* Stack all paired fields on narrow screens */
  .field-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }

  .success-title { font-size: 31px; }
  .success-sub   { font-size: 20px; }
  .success-body  { font-size: 17px; }
  .soc { width: 52px; height: 52px; }

  .pillar-grid { grid-template-columns: 1fr; gap: 14px; }

  .hero-wave { height: 96px; }
  .footer-fv { display: none; }
  .footer-bar { flex-direction: column; text-align: center; }
  .footer-motto { gap: 12px; font-size: 9.5px; letter-spacing: 2.4px; }
  .footer-motto .rule { max-width: 44px; }
}

/* Respect the visitor's motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
