/* ==========================================================================
   India Influencer Awards 2026 - v3
   Same world as the teaser and key visual - black, champagne gold, the red
   carpet - with its own layout: a rail instead of a nav bar, the key visual
   running the full height of the hero, soft rounded cards and pill buttons,
   Cormorant Garamond for the display lines. Mobile first.
   ========================================================================== */

:root {
  --ink: #070505;
  --coal: #100b0a;
  --coal-2: #181110;
  --carpet: #8e1116;
  --carpet-hi: #b8191f;
  --carpet-deep: #47090c;
  --gold: #d8b46a;
  --gold-hi: #f7e3b0;
  --gold-lo: #93703a;
  --cream: #f5ead6;
  --muted: #b5a68e;
  --line: rgba(216, 180, 106, .24);
  --line-soft: rgba(216, 180, 106, .12);

  --foil: linear-gradient(105deg, #93703a 0%, #f7e3b0 30%, #d8b46a 52%, #fff2cc 72%, #a8803f 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --g: 20px;      /* page gutter */
  --rail: 0px;    /* width the rail takes from the page (desktop only) */
  --bar: 60px;    /* height of the rail as a top bar (phones) */
  --r: 16px;      /* card radius */
  --ease: cubic-bezier(.2, .75, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Cormorant sets old-style figures by default; dates and weights read better lined up */
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
::selection { background: var(--gold); color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

main,
.foot { margin-left: var(--rail); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--g); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .3em; line-height: 1.7; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--gold-lo); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; flex: none; width: 28px; height: 1px; background: var(--gold-lo); }

.h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(36px, 8.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--cream);
}
.h2 em,
.hero__title em {
  font-style: italic;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-position .5s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn i { font-style: normal; font-size: 16px; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn--gold {
  color: #1b1107;
  background: var(--foil); background-size: 190% 100%; background-position: 20% 0;
  box-shadow: 0 12px 34px -14px rgba(216, 180, 106, .7);
}
.btn--gold:hover { color: #1b1107; background-position: 85% 0; transform: translateY(-1px); }

.btn--line { color: var(--gold-hi); border-color: var(--gold-lo); background: rgba(7, 5, 5, .35); backdrop-filter: blur(6px); }
.btn--line:hover { color: var(--ink); background: var(--gold-hi); border-color: var(--gold-hi); }

.btn--cream { color: var(--carpet-deep); background: var(--cream); font-weight: 600; }
.btn--cream:hover { color: var(--carpet-deep); background: #fff; transform: translateY(-1px); }

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Rail - top bar on phones
   -------------------------------------------------------------------------- */

.rail {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--bar);
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.rail.is-solid,
.rail.is-open { background: rgba(7, 5, 5, .86); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }

.rail__logo img { width: 38px; height: 38px; }
.rail__dots { display: none; }
.rail__word { display: none; font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; color: var(--cream); }
.rail__word b { font-weight: 600; color: var(--gold); }

.rail__menu {
  order: 3; margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 7px;
  border: 0; background: none;
}
.rail__menu span { display: block; width: 24px; height: 1px; background: var(--gold-hi); transition: transform .35s var(--ease); }
.rail__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.rail__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* The one CTA that is always on screen */
.float-cta {
  position: fixed; top: 11px; right: 60px; z-index: 61;
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px;
  border-radius: 999px;
  background: var(--foil); background-size: 190% 100%; background-position: 20% 0;
  color: #1b1107;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 24px -10px rgba(216, 180, 106, .7);
  transition: background-position .5s var(--ease);
}
.float-cta:hover { color: #1b1107; background-position: 85% 0; }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--bar) + 28px) var(--g) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(110% 60% at 50% 115%, var(--carpet) 0%, var(--carpet-deep) 40%, transparent 72%),
    var(--ink);
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: clamp(30px, 8vw, 58px); line-height: 1.1;
  color: var(--cream);
  transition: color .3s, padding-left .4s var(--ease);
}
.menu__links a:hover { color: var(--gold-hi); padding-left: 10px; }
.menu__links span { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--gold); }
.menu__foot { font-size: 11px; letter-spacing: .2em; line-height: 1.8; text-transform: uppercase; color: var(--cream); }

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* as tall as the photograph behind it, which is cropped to 444 : 820 */
  min-height: min(184.7vw, 94svh);
  padding: max(46vw, var(--bar) + 40px) var(--g) 44px;
}

.hero__kv {
  position: absolute; inset: 0 0 auto; z-index: -1;
  height: min(184.7vw, 94svh);
  overflow: hidden;
}
/* The key visual is 1024 x 1536. This box shows only x 580-1024 of it - the
   figure and the carpet - and none of the poster's own lettering:
   size = 1024 / 444, y = 400 / (1536 - 820). A shorter box simply shows
   fewer rows from the middle of the same strip. */
.hero__photo {
  position: absolute; inset: 0;
  background: url("../img/wid-kv.jpg") 100% 55.9% / 230.6% auto no-repeat;
  transform-origin: 50% 40%;
  animation: push-in 22s ease-in-out infinite alternate;
}
@keyframes push-in { to { transform: scale(1.08); } }
.hero__kv::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 5, .45) 0%, rgba(7, 5, 5, .1) 16%, rgba(7, 5, 5, .7) 36%, rgba(7, 5, 5, .93) 60%, var(--ink) 88%);
}
.hero__stamp { display: none; }

/* Camera flashes along the rope line */
.flashes i {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 4px rgba(255, 250, 235, .95), 0 0 46px 20px rgba(255, 236, 190, .5), 0 0 120px 50px rgba(255, 220, 160, .22);
  opacity: 0;
  animation: flash var(--t) linear var(--d) infinite;
}
@keyframes flash {
  0%, 91%, 100% { opacity: 0; transform: scale(.3); }
  93% { opacity: 1; transform: scale(1.5); }
  96% { opacity: .25; transform: scale(.9); }
}

.hero__title {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(46px, 14.5vw, 92px);
  line-height: .96;
  letter-spacing: -.015em;
  color: var(--cream);
}
/* Each line rises out of its own slot on load */
.hero__title .line { display: block; overflow: hidden; margin: 0 -.1em; padding: 0 .1em .1em; }
.hero__title .line > span { display: block; animation: rise 1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(110%); } }

.hero__sub { margin-top: 18px; max-width: 520px; color: var(--cream); }
.hero__ctas { margin-top: 28px; display: grid; gap: 12px; }
.hero__meta {
  margin-top: 26px; padding-top: 18px;
  display: grid; gap: 6px;
  border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: .2em; line-height: 1.7; text-transform: uppercase; color: var(--cream);
  animation: fade-up 1s var(--ease) .7s both;
}
.hero__meta li { display: flex; align-items: baseline; gap: 12px; }
.hero__meta li::before { content: ""; flex: none; width: 5px; height: 5px; rotate: 45deg; translate: 0 -2px; background: var(--gold); }

.hero .eyebrow,
.hero__sub,
.hero__ctas { animation: fade-up 1s var(--ease) both; }
.hero__sub { animation-delay: .4s; }
.hero__ctas { animation-delay: .55s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* --------------------------------------------------------------------------
   Key dates - a timeline
   -------------------------------------------------------------------------- */

.dates { padding: 48px 0 40px; background: var(--coal); border-block: 1px solid var(--line-soft); }
.timeline { margin-top: 26px; margin-left: 5px; }
.timeline li {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 0 26px 26px;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 5px;
  width: 9px; height: 9px; rotate: 45deg;
  border: 1px solid var(--gold); background: var(--coal);
}
/* The night itself is the one filled marker */
.timeline li:last-child::before { background: var(--gold-hi); box-shadow: 0 0 16px 2px rgba(247, 227, 176, .55); }
.timeline span { font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.timeline b { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--cream); }
.timeline li:last-child b { color: var(--gold-hi); }
.timeline small { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.sec { position: relative; padding: 84px 0; }

/* Heading on the left, content on the right - the heading stays put while
   the content scrolls past it on desktop */
.ledger { display: grid; gap: 28px; }
.ledger > * { min-width: 0; }

.sec__head { display: grid; gap: 18px; margin-bottom: 40px; }
.sec__head > * { min-width: 0; }
.sec__head .h2:first-child { margin-top: 0; }
.sec__lede { max-width: 560px; color: var(--muted); }

/* About */
.about__text p + p { margin-top: 20px; }
.about__text p:first-child { font-family: var(--serif); font-size: clamp(24px, 5.6vw, 34px); line-height: 1.25; color: var(--cream); }
.about__text p:last-child { max-width: 620px; color: var(--muted); }

/* World Influencer Day - the carpet */
.wid {
  text-align: center;
  border-block: 1px solid rgba(247, 227, 176, .3);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 220, 160, .14), transparent 65%),
    radial-gradient(130% 100% at 50% 120%, var(--carpet-hi) 0%, var(--carpet) 34%, var(--carpet-deep) 78%);
}
/* woven pile */
.wid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 4px);
}
.wid .wrap { position: relative; }
.wid .eyebrow { color: var(--gold-hi); }
.wid .eyebrow::before,
.wid .eyebrow::after { background: var(--gold); }
.wid .h2 em { background: linear-gradient(105deg, #f7e3b0, #fff6dc 50%, #e9c98a); -webkit-background-clip: text; background-clip: text; }
.wid__text { display: grid; gap: 18px; max-width: 720px; margin: 28px auto 0; color: #f3dcc4; }
.wid__pull {
  max-width: 980px; margin: 48px auto 0; padding-top: 40px;
  border-top: 1px solid rgba(247, 227, 176, .32);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 7.4vw, 76px); line-height: 1.04;
  color: var(--cream);
}
.wid__pull span { display: block; color: var(--gold-hi); }

/* The night */
.night__grid { display: grid; gap: 44px; }
.night__grid > * { min-width: 0; }
.poster {
  position: relative;
  width: min(100%, 400px); margin: 0 auto;
  rotate: -2.5deg;
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 50px 90px -40px #000, 0 0 0 1px var(--line), 0 0 90px -30px rgba(216, 180, 106, .4);
  transition: rotate .8s var(--ease);
}
.poster:hover { rotate: 0deg; }
.poster::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(247, 227, 176, .28); border-radius: 10px; pointer-events: none; }
/* the evening in three acts, one sentence each, down a gold thread */
.acts { margin-top: 28px; }
.acts li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; }
.acts li:last-child { padding-bottom: 0; }
.acts li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--gold-lo), transparent); }
.acts span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-hi);
}
.acts p { padding-top: 8px; font-size: 17px; color: var(--cream); }
.plaques { margin-top: 30px; display: grid; gap: 12px; }
.plaques div { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(216, 180, 106, .08), transparent); }
.plaques dt { font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.plaques dd { margin-top: 2px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }

/* Who it's for */
.who { background: var(--coal); border-block: 1px solid var(--line-soft); }
.guests { display: grid; gap: 14px; }
.guest {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(216, 180, 106, .08), rgba(216, 180, 106, 0) 55%), var(--coal-2);
  transition: border-color .4s, transform .5s var(--ease);
}
.guest:hover { border-color: var(--line); transform: translateY(-4px); }
.guest__n {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-hi);
}
.guest h3 { margin-top: 20px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.05; }
.guest p { margin-top: 12px; font-size: 15px; color: var(--muted); }

.meet {
  margin-top: 14px;
  display: grid; gap: 18px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: radial-gradient(120% 140% at 0% 0%, rgba(142, 17, 22, .45), transparent 60%), var(--coal-2);
}
.meet__label { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--gold-hi); }
.meet__list li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid var(--line-soft); }
.meet__list li::before { content: "✦"; position: absolute; left: 0; top: 14px; font-size: 12px; color: var(--gold); }

/* Category map */
.rubric { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-bottom: 40px; }
.rubric li { display: flex; flex-direction: column; gap: 2px; }
.rubric li::before {
  /* drawn to scale: the heaviest weight, 30%, fills the column */
  content: ""; width: calc(var(--w) / 30 * 100%); height: 3px; margin-bottom: 12px;
  border-radius: 3px; background: var(--foil);
}
.rubric b { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; margin-bottom: 6px; color: var(--gold-hi); }
.rubric span { font-size: 11px; font-weight: 500; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; color: var(--muted); }

.chips {
  display: flex; gap: 8px;
  margin: 0 calc(var(--g) * -1) 22px; padding: 0 var(--g) 6px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent;
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: color .25s, background-color .25s, border-color .25s;
}
.chip b { margin-left: 6px; font-weight: 500; color: var(--gold-lo); transition: color .25s; }
.chip.is-on b { color: rgba(7, 5, 5, .55); }
.chip:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.chip.is-on { color: var(--ink); background: var(--gold-hi); border-color: var(--gold-hi); }

.cats { display: grid; gap: 14px; }
.cat {
  display: flex; flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--coal);
  transition: border-color .4s, background-color .4s;
}
.cat:hover { border-color: var(--line); background: var(--coal-2); }
.cat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat__n { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; color: var(--gold); }
.cat__cluster { padding: 4px 10px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 9.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cat h3 { margin-top: 16px; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.05; }
.cat dl { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-content: space-between; gap: 16px 14px; margin-top: 14px; }
.cat__focus { grid-column: 1 / -1; }
.cat dt { font-size: 9.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.cat dd { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cat__focus dd { color: var(--cream); }
.cat dl > div:not(.cat__focus) { padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* Partner strip - a length of carpet */
.partners { padding-top: 0; }
.carpet-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 52px;
  border: 1px solid rgba(247, 227, 176, .35);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(80% 90% at 50% -10%, rgba(255, 220, 160, .2), transparent 60%),
    radial-gradient(130% 110% at 50% 120%, var(--carpet-hi) 0%, var(--carpet) 36%, var(--carpet-deep) 80%);
  box-shadow: 0 60px 110px -60px rgba(184, 25, 31, .8);
}
.carpet-card .h2 { margin-top: 0; max-width: 900px; font-size: clamp(32px, 7.4vw, 64px); }
.carpet-card .h2 em { background: linear-gradient(105deg, #f7e3b0, #fff6dc 50%, #e9c98a); -webkit-background-clip: text; background-clip: text; }
.carpet-card p { max-width: 560px; margin-top: 18px; color: #f3dcc4; }
.carpet-card .btn { margin-top: 30px; }

/* Forms */
.rsvp { padding-top: 0; }
.rsvp__card {
  max-width: 860px; margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(100% 50% at 50% 0%, rgba(216, 180, 106, .1), transparent 70%), var(--coal);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(7, 5, 5, .7); }
.tab {
  min-height: 48px; padding: 0 10px;
  border: 0; border-radius: 999px;
  background: transparent;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s, background-color .3s;
}
.tab:hover { color: var(--gold-hi); }
.tab.is-on { color: #1b1107; background: var(--foil); }

.panel { padding: 26px 14px 16px; scroll-margin-top: 110px; }
/* Without the script the two forms show one after the other */
.js .panel:not(.is-on) { display: none; }

.form { display: grid; gap: 24px; }
.form__grid { display: grid; gap: 18px; }
.field { display: block; }
.field > span {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; color: var(--gold);
}
.field > span i { flex: none; font-style: normal; letter-spacing: .14em; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%; height: 54px; padding: 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--cream);
  font: 400 16px var(--sans);
  color-scheme: dark;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { height: auto; min-height: 100px; padding: 14px 18px; resize: vertical; }
.field select {
  appearance: none; padding-right: 46px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b46a' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat,
    rgba(255, 255, 255, .03);
}
.field select:invalid { color: rgba(181, 166, 142, .6); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(181, 166, 142, .5); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216, 180, 106, .14); }

.done { display: grid; justify-items: center; padding: 48px 16px 56px; text-align: center; }
.done:focus { outline: none; }
.done__mark { font-size: 30px; color: var(--gold-hi); margin-bottom: 14px; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .4; transform: scale(.8) rotate(45deg); } }

/* Closing banner - a moving band of the three lines, then an invitation card */
.closing {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(142, 17, 22, .5), transparent 70%),
    var(--ink);
}

.band { overflow: hidden; margin-bottom: 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.band__track { display: flex; width: max-content; animation: band 46s linear infinite; }
.band__track span {
  flex: none;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(40px, 9vw, 104px); line-height: 1.15; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 227, 176, .8);
}
.band i { font-style: normal; font-size: .32em; margin: 0 .9em; vertical-align: .5em; color: var(--gold); -webkit-text-stroke: 0; }
@keyframes band { to { transform: translateX(-50%); } }

.invitation {
  position: relative;
  max-width: 940px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 22px 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(216, 180, 106, .12), transparent 70%),
    linear-gradient(180deg, var(--coal-2), var(--coal));
  box-shadow: 0 60px 120px -60px #000, 0 0 120px -50px rgba(216, 180, 106, .35);
}
/* a second, finer rule set in from the edge - the way a printed card is framed */
.invitation::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line-soft); border-radius: 16px; pointer-events: none; }
/* the seal sits half out of the card, over its top edge */
.invitation__seal { position: relative; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%; box-shadow: 0 0 0 8px var(--ink), 0 0 0 9px var(--line); }
.invitation__lines { margin-top: 30px; display: grid; gap: 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .26em; line-height: 1.9; text-transform: uppercase; color: var(--muted); }
.invitation__one {
  margin-top: 18px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(44px, 11vw, 112px); line-height: .98;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 .08em .1em;
}
.invitation__when {
  width: 100%; max-width: 640px; margin-top: 26px;
  display: grid;
  border-block: 1px solid var(--line);
  font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--cream);
}
.invitation__when li { padding: 14px 10px; }
.invitation__when li + li { border-top: 1px solid var(--line-soft); }
.invitation .btn { margin-top: 30px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot { padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: #040303; }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.foot__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot__brand p { font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot__links a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.foot__links a:hover { color: var(--gold-hi); }
.foot__copy { font-size: 12px; color: rgba(181, 166, 142, .6); }

/* --------------------------------------------------------------------------
   Reveal on scroll - switched on by js/main.js
   -------------------------------------------------------------------------- */

.rv-on .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   >= 600px
   ========================================================================== */

@media (min-width: 600px) {
  :root { --g: 32px; }

  .rail { padding: 0 18px 0 22px; }
  .rail__word { display: block; }
  .float-cta { right: 78px; height: 40px; padding: 0 20px; font-size: 11px; }

  .hero { padding-top: max(40vw, 200px); }
  .hero__ctas { grid-template-columns: auto auto; justify-content: start; }

  .timeline { margin-left: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .timeline li,
  .timeline li:last-child { padding: 26px 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .timeline li::before { left: 0; top: -5px; }

  .plaques { grid-template-columns: 1fr 1fr; }
  .guests { grid-template-columns: 1fr 1fr; }
  .rubric { grid-template-columns: repeat(5, 1fr); }
  .chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .cats { grid-template-columns: 1fr 1fr; }

  .carpet-card { padding: 72px 48px 68px; }
  .rsvp__card { padding: 14px; }
  .tab { font-size: 12.5px; letter-spacing: .18em; }
  .panel { padding: 34px 26px 24px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }

  .invitation { padding: 0 48px 56px; }
  .invitation__when { grid-template-columns: 1fr 1fr; align-items: center; }
  .invitation__when li + li { border-top: 0; border-left: 1px solid var(--line-soft); }
}

/* ==========================================================================
   >= 1100px - the bar becomes a rail down the left edge
   ========================================================================== */

@media (min-width: 1100px) {
  :root { --g: 56px; --rail: 88px; }

  html { scroll-padding-top: 28px; }
  body { font-size: 17px; }

  .rail,
  .rail.is-solid,
  .rail.is-open {
    inset: 0 auto 0 0;
    width: var(--rail); height: auto;
    flex-direction: column; gap: 20px;
    padding: 22px 0 28px;
    border-bottom: 0; border-right: 1px solid var(--line-soft);
    background: rgba(7, 5, 5, .9); backdrop-filter: blur(14px);
  }
  .rail__logo img { width: 48px; height: 48px; }
  .rail__menu { order: 0; margin: 0; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .3s, background-color .3s; }
  .rail__menu:hover { border-color: var(--gold); background: rgba(216, 180, 106, .08); }
  .rail__menu span { width: 20px; }
  .rail__word {
    display: block; text-align: center;
    writing-mode: vertical-rl; rotate: 180deg;
    letter-spacing: .44em; color: var(--muted);
  }

  .float-cta { top: 24px; right: 32px; height: 46px; padding: 0 26px; font-size: 11.5px; letter-spacing: .18em; }

  .menu { padding: 72px 80px 48px calc(var(--rail) + 80px); }
  .menu__links { max-width: 760px; }

  /* Hero: type left, the key visual full height on the right edge */
  .hero {
    --h: clamp(660px, 100svh, 1000px);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    min-height: var(--h);
    padding: 0;
  }
  .hero__copy { position: relative; z-index: 2; padding: 110px 32px 80px clamp(48px, 5.4vw, 104px); }
  .hero__kv {
    position: relative; inset: auto; z-index: 0;
    align-self: start;
    width: calc(var(--h) * 444 / 820); height: var(--h);
  }
  .hero__kv::after {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(7, 5, 5, .45) 22%, transparent 48%),
      linear-gradient(180deg, rgba(7, 5, 5, .5) 0%, transparent 18%, transparent 78%, rgba(7, 5, 5, .7) 100%);
  }
  /* a hairline frame, set in from the edge of the photograph */
  .hero__kv::before {
    /* starts below the floating CTA, which sits over this corner */
    content: ""; position: absolute; inset: 92px 22px 22px 34%; z-index: 1;
    border: 1px solid rgba(247, 227, 176, .32); border-left: 0;
    border-radius: 0 14px 14px 0;
    pointer-events: none;
  }
  .hero__stamp {
    display: block;
    position: absolute; right: 40px; top: 54%; z-index: 2;
    translate: 0 -50%;
    writing-mode: vertical-rl;
    font-size: 10px; font-weight: 500; letter-spacing: .44em; text-transform: uppercase; white-space: nowrap;
    color: var(--gold-hi);
    text-shadow: 0 0 12px rgba(7, 5, 5, .9);
  }
  .hero__stamp b { margin: .8em 0; font-weight: 400; color: var(--gold); }

  .hero__title { margin-top: 26px; font-size: clamp(72px, 7.5vw, 138px); }
  .hero__sub { margin-top: 26px; max-width: 540px; font-size: 18px; }
  .hero__ctas { margin-top: 38px; gap: 14px; }
  .hero__meta { max-width: 540px; margin-top: 44px; padding-top: 22px; grid-auto-flow: column; justify-content: start; gap: 34px; }
  /* the carpet's glow, spilling in under the type */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(55% 45% at 78% 105%, rgba(142, 17, 22, .55), transparent 70%),
      radial-gradient(40% 40% at 12% 0%, rgba(216, 180, 106, .09), transparent 70%);
  }

  /* Section dots on the rail */
  .rail__dots { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-block: auto; }
  .rail__dots a { position: relative; display: grid; place-items: center; width: 28px; height: 22px; }
  .rail__dots a::before {
    content: ""; width: 5px; height: 5px; rotate: 45deg;
    border: 1px solid var(--gold-lo);
    transition: scale .35s var(--ease), background-color .3s, border-color .3s, box-shadow .3s;
  }
  .rail__dots a:hover::before { border-color: var(--gold-hi); }
  .rail__dots a.is-current::before { scale: 1.7; background: var(--gold-hi); border-color: var(--gold-hi); box-shadow: 0 0 14px 1px rgba(247, 227, 176, .6); }
  /* the section's name slides out beside its dot */
  .rail__dots span {
    position: absolute; left: 100%; top: 50%; translate: 4px -50%;
    padding: 7px 14px;
    border: 1px solid var(--line); border-radius: 999px;
    background: rgba(7, 5, 5, .94);
    font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
    color: var(--gold-hi);
    opacity: 0; pointer-events: none;
    transition: opacity .25s, translate .35s var(--ease);
  }
  .rail__dots a:hover span,
  .rail__dots a:focus-visible span { opacity: 1; translate: 14px -50%; }
  .rail__word { flex: none; }

  .dates { padding: 64px 0 60px; }
  .timeline b { font-size: 30px; }

  .sec { padding: 136px 0; }
  .ledger { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .ledger__side { position: sticky; top: 56px; }

  .sec__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; margin-bottom: 64px; }

  .about__text p:first-child { font-size: 40px; }
  .about__text p:last-child { font-size: 18px; }

  .wid__text { grid-template-columns: 1fr 1fr; gap: 48px; max-width: 980px; margin-top: 40px; text-align: left; font-size: 18px; }
  .wid__pull { margin-top: 72px; padding-top: 60px; }

  .night__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: center; }
  .poster { width: min(100%, 440px); }
  .acts { margin-top: 34px; }
  .acts li { padding-bottom: 26px; }
  .acts p { font-size: 19px; line-height: 1.55; }

  .guests { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .guest { padding: 30px 26px 34px; }
  .meet { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; margin-top: 18px; padding: 44px 48px; }
  .meet__label { font-size: 46px; }
  .meet__list li:first-child { border-top: 0; padding-top: 0; }
  .meet__list li:first-child::before { top: 1px; }

  .rubric { gap: 28px; margin-bottom: 56px; }
  .rubric b { font-size: 56px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .partners,
  .rsvp { padding-top: 0; }
  .carpet-card { padding: 96px 64px 88px; border-radius: 32px; }
  .rsvp__card { border-radius: 32px; }
  .panel { padding: 44px 44px 34px; }

  .closing { padding: 110px 0 150px; }
  .band { margin-bottom: 84px; }
  .invitation { padding: 0 72px 72px; border-radius: 32px; }
  .invitation::before { inset: 11px; border-radius: 22px; }
  .invitation__seal { width: 76px; height: 76px; margin-top: -38px; }
  .invitation__lines { margin-top: 38px; font-size: 12.5px; }
  .invitation__when { font-size: 26px; margin-top: 34px; }
  .invitation__when li { padding: 18px 16px; }
  .invitation .btn { margin-top: 38px; }

  .foot__in { flex-direction: row; justify-content: space-between; text-align: left; }
  .foot__brand { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv-on .rv { opacity: 1; transform: none; }
  .flashes { display: none; }
}

/* ==========================================================================
   Category list - a group of cards per cluster
   ========================================================================== */

.categories__cta { margin-top: 22px; }

.cgroup + .cgroup { margin-top: 48px; }
.cgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 18px; }
.cgroup__name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--gold-hi); }
.cgroup__note { font-size: 15px; color: var(--muted); }

.cat h4 { margin: 14px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.05; color: var(--cream); }
.cat > p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.cat dl { grid-template-columns: 1fr; align-content: start; gap: 12px; }
.cat dl > div { padding-top: 12px; border-top: 1px solid var(--line-soft); }

@media (min-width: 1100px) {
  .cgroup + .cgroup { margin-top: 64px; }
  .cgroup__name { font-size: 40px; }
}
