/* =========================================================
   Shishir & Mihika · Jaipur, January 2027
   Palette: Rajasthani ivory, marigold, saffron, deep maroon,
   peacock teal and gold — restrained, so the info leads.
   ========================================================= */

:root {
  --ivory:    #FBEBD2;   /* warmer, more energetic base */
  --card:     #FCF3E1;   /* warm off-white for bubbles/cards (never pure white) */
  --accent-bubble: #FDE7C8;   /* light shade of orange, one step lighter */
  --cream:    #FFEFD4;
  --sand:     #F7DCB4;
  --marigold: #F6A81E;   /* bright marigold yellow */
  --saffron:  #EF5A12;   /* deeper, brighter orange */
  --rose:     #EF3E7A;   /* Jaipur pink */
  --maroon:   #99163C;   /* deep pink-maroon */
  --teal:     #EF3E7A;   /* repurposed as festive pink accent */
  --gold:     #C9962C;
  --ink:      #44271C;
  --ink-soft: #74584a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Mulish", system-ui, -apple-system, sans-serif;

  --shadow: 0 20px 50px -25px rgba(110, 28, 41, 0.35);
  --radius: 18px;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle repeating dot/paisley texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 4%, rgba(246,168,30,0.34), transparent 46%),
    radial-gradient(circle at 92% 10%, rgba(239,62,122,0.30), transparent 46%),
    radial-gradient(circle at 82% 94%, rgba(239,90,18,0.30), transparent 50%),
    radial-gradient(circle at 16% 90%, rgba(153,22,60,0.22), transparent 48%);
  pointer-events: none;
}

a { color: var(--saffron); text-decoration: none; transition: color .2s; }
a:hover { color: var(--maroon); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 145, 47, 0.18);
  transition: transform .35s ease;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: .05em;
}
.nav__amp { color: var(--marigold); }
.nav__links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav__links a {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav__links a:hover { color: var(--saffron); }
.nav__links a {
  position: relative;
  padding-bottom: 3px;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav__links a.active { color: var(--rose); }
.nav__links a.active::after { width: 100%; }
.nav__cta {
  padding: .5rem 1.2rem;
  background: linear-gradient(135deg, var(--saffron), var(--rose));
  color: #fff !important;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(239,62,122,.6);
}
.nav__cta:hover { filter: brightness(1.07); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: .3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(700px, 126vh, 1320px);  /* taller frame so the full portrait fits */
  display: flex;
  align-items: flex-start;                   /* text sits up top, over the sky */
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 70%;   /* centre the floral archway; single knob to fine-tune */
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 72% at 50% 14%, rgba(46,20,14,0.62) 0%, rgba(46,20,14,0) 66%),
    linear-gradient(180deg,
      rgba(46,20,14,0.78) 0%,
      rgba(46,20,14,0.44) 30%,
      rgba(46,20,14,0.08) 55%,
      rgba(46,20,14,0.14) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(96px, 15vh, 190px) 1.5rem 0;
  max-width: 760px;
  animation: rise 1.1s ease both;
}
.hero__eyebrow {
  font-size: clamp(.8rem, 2.5vw, 1rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.hero__names {
  font-size: clamp(3.2rem, 12vw, 7rem);
  font-weight: 500;
  letter-spacing: .01em;
  text-shadow: 0 3px 26px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.5);
}
.hero__names span { color: var(--marigold); font-style: italic; padding: 0 .1em; }
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
  font-size: clamp(.95rem, 3vw, 1.25rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.hero__meta .dot { color: var(--marigold); font-size: .7em; }
.hero__sub {
  margin-top: 1.3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3.6vw, 1.7rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.7);
}
.hero__scroll {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 20px;
  position: absolute;
  left: 50%;
  bottom: 3.5vh;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--card);
  border-radius: 2px;
  animation: scrolldot 1.6s infinite;
}

/* ---------- SECTION SHELL ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 2rem);
}
.section__head { text-align: center; margin-bottom: 3rem; }
.kicker {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 700;
  margin-bottom: .8rem;
}
.section__title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--maroon);
}
.section__head .section__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--marigold), var(--saffron), var(--rose));
}
.section__intro {
  max-width: 620px;
  margin: 1.1rem auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.lead {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-family: var(--serif);
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.muted { color: var(--ink-soft); max-width: 680px; margin: 1.5rem auto 0; text-align: center; }
.center { text-align: center; }

.ornament {
  text-align: center;
  color: var(--marigold);
  letter-spacing: .6em;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.invite { text-align: center; }
.invite .section__title { margin-bottom: 1.5rem; }   /* tidy gap before the lead line */
.invite .lead { max-width: 640px; }
.invite .muted {
  margin-top: 3.6rem;                                 /* give this line its own breathing room */
  font-style: italic;
}

/* ---------- TIMELINE (THE DAYS) ---------- */
.timeline { list-style: none; position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 120px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--marigold), var(--teal));
  opacity: .4;
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 114px; top: 8px;
  width: 14px; height: 14px;
  background: var(--marigold);
  border: 3px solid var(--ivory);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--marigold);
}
.timeline__item--soft::before { background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.timeline__date {
  text-align: right;
  padding-right: 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-soft);
}
.timeline__day {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--maroon);
  font-weight: 600;
}
.timeline__card {
  background: var(--card);
  border: 1px solid rgba(184,145,47,.18);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.timeline__card h3 { font-size: 1.5rem; color: var(--maroon); margin-bottom: .4rem; }
.timeline__card p { color: var(--ink-soft); }
.timeline__item--soft .timeline__card { background: var(--accent-bubble); box-shadow: none; }

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(184,145,47,.18);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:not(.card--soft)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--marigold), var(--saffron), var(--rose));
}
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 55px -28px rgba(110,28,41,.5); }
.card__icon {
  font-size: 1.9rem;
  color: var(--rose);
  margin-bottom: .6rem;
}
.card h3 { font-size: 1.55rem; color: var(--maroon); margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__link { display: inline-block; margin-top: .9rem; font-weight: 700; font-size: .9rem; }
.card--soft {
  background: var(--cream);
  box-shadow: none;
  text-align: center;
  border-top: 3px solid var(--marigold);
}
.card--soft:nth-child(2) { border-top-color: var(--saffron); }
.card--soft:nth-child(3) { border-top-color: var(--rose); }
.card--soft:nth-child(4) { border-top-color: var(--teal); }
.card--soft h3 { color: var(--maroon); }

/* Explore section sub-headings (Jaipur / wider Rajasthan) */
.explore__subhead {
  text-align: center;
  font-size: clamp(1.4rem, 3.6vw, 1.95rem);
  color: var(--saffron);
  margin: 2.6rem 0 1.4rem;
}
.explore .cards + .explore__subhead { margin-top: 3rem; }

/* Clickable hotel names in the plus-one panel */
.stay__list a {
  color: var(--maroon);
  font-weight: 700;
  border-bottom: 1px solid rgba(153,22,60,.35);
  transition: color .2s, border-color .2s;
}
.stay__list a:hover { color: var(--saffron); border-color: var(--saffron); }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.5rem; }
.split__block {
  background: var(--card);
  border: 1px solid rgba(184,145,47,.18);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.split__block h3 { font-size: 1.6rem; color: var(--maroon); margin-bottom: .6rem; }
.split__block p { color: var(--ink-soft); }
.split__block--accent {
  background: var(--accent-bubble);
  color: var(--ink);
  border-color: rgba(153,22,60,.22);
  box-shadow: 0 20px 45px -28px rgba(180,110,50,.45);
}
.split__block--accent h3 { color: var(--rose); }
.split__block--accent p { color: var(--ink-soft); }
.split__block--accent strong { color: var(--maroon); }
.stay__list {
  list-style: none;
  margin: 1rem 0 0;
  display: grid;
  gap: .6rem;
}
.stay__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: .98rem;
}
.stay__list li::before {
  content: "❁";
  position: absolute;
  left: 0;
  color: var(--saffron);
}
.stay__list strong { color: var(--maroon); }
.split__fine {
  margin-top: 1rem;
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- STEPS (VISA) ---------- */
.steps { display: grid; gap: 1.2rem; max-width: 760px; margin: 0 auto; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  background: var(--card);
  border: 1px solid rgba(184,145,47,.18);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.step__num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--marigold);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}
.step h3 { font-size: 1.4rem; color: var(--maroon); margin-bottom: .2rem; }
.step p { color: var(--ink-soft); }

/* ---------- WEATHER ---------- */
.weather {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.weather__stat {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  text-align: center;
  min-width: 180px;
  border: 1px solid rgba(184,145,47,.2);
}
.weather__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--saffron);
  font-weight: 600;
}
.weather__label { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- EXPECT ---------- */
.expect__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
.expect__tile {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card);
  border: 1px solid rgba(184,145,47,.18);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.expect__tile span { font-size: 2rem; flex-shrink: 0; }
.expect__tile p { color: var(--ink-soft); }
.expect__tile strong { color: var(--maroon); }
.expect__hype {
  max-width: 720px;
  margin: 2.4rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.35;
  color: var(--maroon);
}
.expect__hype strong { color: var(--rose); }
.expect__closer {
  max-width: 720px;
  margin: 1.4rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  color: var(--saffron);
}

/* ---------- NOTE ---------- */
.note {
  max-width: 720px;
  margin: 2.2rem auto 0;
  padding: 1.2rem 1.5rem;
  background: rgba(246,168,30,.16);
  border-left: 4px solid var(--saffron);
  border-radius: 0 12px 12px 0;
  font-size: 1.08rem;      /* footnotes bumped up — don't want anyone missing them */
  line-height: 1.6;
  color: var(--ink);
}
.note strong { color: var(--rose); }

/* ---------- RSVP ---------- */
.rsvp { text-align: center; }
.rsvp__form {
  max-width: 560px;
  margin: 2.5rem auto 0;
  text-align: left;
  background: var(--card);
  border: 1px solid rgba(184,145,47,.2);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.6rem);
  box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 1.4rem; border: 0; }
.field > span {
  display: block;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: .5rem;
  font-size: .95rem;
}
.field small { color: var(--ink-soft); font-weight: 400; }
.field input[type="text"],
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--marigold);
  box-shadow: 0 0 0 3px rgba(233,166,59,.2);
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.choices label {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem .9rem;
  border: 1px solid var(--sand);
  border-radius: 12px;
  cursor: pointer;
  transition: .2s;
  background: var(--ivory);
}
.choices label:hover { border-color: var(--marigold); }
.choices input { accent-color: var(--saffron); }
.choices em { font-style: normal; font-weight: 600; font-size: .92rem; }
.choices label:has(input:checked) {
  border-color: var(--saffron);
  background: rgba(220,106,42,.1);
}
.btn {
  width: 100%;
  padding: .95rem;
  background: linear-gradient(135deg, var(--saffron), var(--rose));
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(239,62,122,.6);
  transition: filter .25s, transform .1s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.98); }
.rsvp__hint { text-align: center; font-size: .82rem; color: var(--ink-soft); margin-top: .9rem; }
.rsvp__soon {
  text-align: center;
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--saffron);
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  background: linear-gradient(160deg, var(--maroon), #4d121c);
  color: #f6e6cf;
}
.ornament--footer { color: var(--marigold); font-size: 1.6rem; letter-spacing: 0; margin-bottom: .5rem; }
.footer__names { font-family: var(--serif); font-size: clamp(2rem,7vw,3rem); color: #fff; }
.footer__meta { letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; margin-top: .5rem; color: var(--marigold); }
.footer__note { margin-top: 1.4rem; font-size: .95rem; }
.footer__note a { color: var(--marigold); }
.footer__fine { margin-top: 1.2rem; font-style: italic; font-family: var(--serif); font-size: 1.05rem; opacity: .8; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes scrolldot { 0% { top: 8px; opacity: 1; } 100% { top: 24px; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__content { animation: none; }
  .hero__scroll span { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .nav__links {
    position: fixed;
    top: 62px; right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 1.5rem 2rem;
    gap: 1.1rem;
    border-left: 1px solid rgba(184,145,47,.2);
    border-bottom: 1px solid rgba(184,145,47,.2);
    border-radius: 0 0 0 16px;
    transform: translateX(110%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav__links.open { transform: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav__cta { margin-left: .4rem; }
}
@media (max-width: 640px) {
  .split, .expect__grid { grid-template-columns: 1fr; }
  .cards, .cards--4 { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .timeline__item { grid-template-columns: 1fr; gap: .6rem; padding-left: 34px; }
  .timeline__item::before { left: 2px; }
  .timeline__date { text-align: left; padding-right: 0; }
  .choices { grid-template-columns: 1fr; }
}

/* ---------- PASSWORD GATE ---------- */
html:not(.is-unlocked) body { overflow: hidden; height: 100vh; }
html.is-unlocked .gate { display: none; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(246,168,30,0.38), transparent 46%),
    radial-gradient(circle at 86% 16%, rgba(239,62,122,0.30), transparent 46%),
    radial-gradient(circle at 80% 90%, rgba(239,90,18,0.30), transparent 50%),
    var(--ivory);
  transition: opacity .55s ease;
}
.gate--closing { opacity: 0; pointer-events: none; }

.gate__card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid rgba(184,145,47,.2);
  border-radius: 24px;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.6rem);
  box-shadow: 0 30px 70px -30px rgba(110,28,41,.5);
  animation: rise .8s ease both;
}
.gate__names {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose);
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.gate__title {
  font-family: var(--serif);
  color: var(--maroon);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  margin: .25rem 0 .7rem;
}
.gate__text {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 auto 1.7rem;
  max-width: 320px;
}
.gate__digits {
  display: flex;
  gap: clamp(.5rem, 3vw, .8rem);
  justify-content: center;
}
.gate__digit {
  width: clamp(48px, 15vw, 58px);
  height: clamp(56px, 17vw, 66px);
  text-align: center;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--maroon);
  background: var(--ivory);
  border: 2px solid var(--sand);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, transform .1s;
}
.gate__digit:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(239,90,18,.22);
}
.gate__digit:not(:placeholder-shown),
.gate__digit[value]:not([value=""]) { border-color: var(--marigold); }
.gate__error {
  color: var(--rose);
  font-weight: 700;
  font-size: .95rem;
  margin-top: 1.1rem;
}
.gate__hint {
  color: var(--ink-soft);
  font-size: .82rem;
  margin-top: 1.7rem;
}
.gate__digits.shake { animation: gate-shake .5s; }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-9px); }
  40%, 60% { transform: translateX(9px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate, .gate__card { transition: none; animation: none; }
  .gate__digits.shake { animation: none; }
}
