/* ============================================================================
   layout.css — page shell, navigation, gate, footer, chrome
   ========================================================================= */

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

.section {
  padding-block: var(--section-y);
  position: relative;
}

.sec-head {
  display: grid;
  gap: 18px;
  max-width: 74ch;
  margin-bottom: clamp(40px, 6vw, 84px);
}

.sec-head h2 { max-width: 20ch; }

.sec-head .lede { margin-top: 4px; }

.sec-head--side { max-width: none; }

/* --------------------------------------------------------------- chrome */

.veil {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s var(--ease);
}
.veil.is-on { opacity: 1; pointer-events: all; }

.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%);
  transition: opacity 0.8s var(--ease);
  mix-blend-mode: screen;
}
:root.is-ready .spotlight { opacity: 0.55; }
:root[data-mode="weddings"] .spotlight,
:root[data-mode="corporate"] .spotlight { opacity: 0.22; mix-blend-mode: multiply; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1300;
  background: transparent;
  pointer-events: none;
}
.progress__fill {
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  width: 100%;
}

.nav__word {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.3rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: none;
}

.nav__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.nav__links { flex: 1 1 auto; min-width: 0; }
.nav__links ul {
  display: flex;
  gap: clamp(10px, 1.6vw, 26px);
  overflow: hidden;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
  padding-block: 6px;
  position: relative;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.34s var(--ease-out);
}
.nav__links a:hover,
.nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Over the dark stage the nav keeps light text on a dark scrim. */
.nav--over {
  color: #f6efe6;
  background: linear-gradient(180deg, rgba(8, 6, 6, 0.5), rgba(8, 6, 6, 0));
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
}
.nav--over.is-stuck {
  color: #f6efe6;
  background: color-mix(in srgb, #0c090b 62%, transparent);
  border-bottom-color: rgba(246, 239, 230, 0.14);
}

/* ------------------------------------------------------------- modepill */

.modepill { position: relative; }

.modepill__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), background-color 0.25s var(--ease);
}
.modepill__btn:hover { opacity: 1; }

.modepill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.modepill__caret { font-size: 0.7em; opacity: 0.7; }

.modepill__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, 84vw);
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  z-index: 10;
}
.modepill__panel[hidden] { display: none; }

.modepill__head {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 10px 4px;
}

.modepill__panel button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease);
}
.modepill__panel button:hover { background: var(--surface-2); }
.modepill__panel button span { font-size: var(--step-0); }
.modepill__panel button em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.modepill__panel button.is-current { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.modepill__panel button.is-current span { color: var(--accent); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease), transform 0.28s var(--ease-out);
  will-change: auto;
}
.btn--sm { padding: 9px 16px; }
.btn--lg { padding: 16px 30px; font-size: var(--step--1); }

.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--solid:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }

.btn--ghost {
  border-color: currentColor;
  color: inherit;
  opacity: 0.9;
}
.btn--ghost:hover {
  background: currentColor;
  color: var(--bg);
  opacity: 1;
}

/* --------------------------------------------------------------- ticker */

.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 18px;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-right: clamp(28px, 4vw, 64px);
  flex: none;
  min-width: 100%;
  justify-content: space-around;
}

.marquee__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.1rem, 0.9rem + 1.1vw, 2rem);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
}
.marquee__item b { color: var(--accent); font-weight: inherit; }
.marquee__item i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.marquee__toggle {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.5;
  padding: 4px 8px;
}
.marquee__toggle:hover { opacity: 1; }

/* ----------------------------------------------------------------- gate */

.gate {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(28px, 6vh, 72px) var(--gutter);
  background:
    radial-gradient(120% 90% at 50% 0%, #241713 0%, #120c0b 46%, #0a0706 100%);
  color: #f6efe6;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.gate.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.gate__inner {
  width: 100%;
  max-width: 1180px;
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.gate__kicker {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d9a06a;
}

.gate__title {
  font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.gate__title em { font-style: italic; color: #ff5a36; }

.gate__sub {
  font-size: var(--step-1);
  color: #b8a493;
  max-width: 46ch;
}

.gate__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.gate__group { display: grid; gap: 10px; }

.gate__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7666;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(246, 239, 230, 0.12);
}
.gate__label span { color: #ff5a36; }

.gcard {
  --gcard-accent: #ff5a36;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  width: 100%;
  text-align: left;
  padding: 18px;
  min-height: 168px;
  border: 1px solid rgba(246, 239, 230, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease),
              transform 0.45s var(--ease-out);
}
.gcard:hover,
.gcard:focus-visible {
  border-color: color-mix(in srgb, var(--gcard-accent) 70%, transparent);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.gcard__art {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease), transform 0.9s var(--ease-out);
}
.gcard__art svg { width: 100%; height: 100%; object-fit: cover; }
.gcard:hover .gcard__art { opacity: 0.78; transform: scale(1.05); }

.gcard__body {
  position: relative;
  display: grid;
  gap: 7px;
  z-index: 1;
}

.gcard__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.gcard__line {
  font-size: var(--step--1);
  color: #c3b3a4;
  line-height: 1.45;
  max-width: 34ch;
}

.gcard__meta {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gcard-accent) 88%, #fff);
}

.gcard__go {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: var(--gcard-accent);
  transition: transform 0.4s var(--ease-out);
}
.gcard:hover .gcard__go { transform: translateX(5px); }

.gate__foot {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f5c4e;
}

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

.footer {
  background: var(--deep);
  color: color-mix(in srgb, var(--ink) 88%, var(--deep));
  padding-block: clamp(48px, 7vw, 96px) 28px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.footer__word {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.footer__line { color: var(--ink-2); max-width: 34ch; }

.footer__head {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer__col p { color: var(--ink-2); }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}

/* --------------------------------------------------------------- live dot */

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
  position: relative;
}

.live[data-open="true"] .live__dot { background: #4ade80; }
.live[data-open="true"] .live__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: live-pulse 2.4s var(--ease-out) infinite;
}
@keyframes live-pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

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

@media (max-width: 1080px) {
  .gate__groups { grid-template-columns: 1fr 1fr; }
  .gate__group:nth-child(3) { grid-column: 1 / -1; }
  .gate__group:nth-child(3) .gcard { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Burger: hidden on desktop, where the links are laid out inline. Declared
   before the 860px block so the media query's `display: inline-flex` wins. */
.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  /* 44px minimum touch target. */
  width: 44px;
  height: 44px;
  margin-inline: -8px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav__burger-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav__burger-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease);
}
.nav--open .nav__burger-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav--open .nav__burger-bars i:nth-child(2) { opacity: 0; }
.nav--open .nav__burger-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__inner { justify-content: space-between; }

  /* Below 860px the section nav collapses into a panel under the header rather
     than disappearing. It is the SAME element the deck renders its links into,
     so the anchors are never duplicated and the scroll-spy keeps working. */
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 2px;
    padding: 10px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    /* Kept out of the tab order and the a11y tree while closed. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0.22s var(--ease);
  }
  .nav--open .nav__links { visibility: visible; opacity: 1; transform: none; }

  .nav__links ul { display: grid; gap: 2px; overflow: visible; }
  .nav__links a {
    display: block;
    padding: 13px 12px;
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    opacity: 0.82;
    border-radius: var(--radius);
  }
  /* The desktop underline reads as a stray rule in a stacked list. */
  .nav__links a::after { display: none; }
  .nav__links a:hover,
  .nav__links a.is-active { background: var(--surface-2); opacity: 1; }

  .nav__burger { display: inline-flex; }
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; }
  .nav__actions .btn { display: none; }
  /* 34px is under the 44px touch minimum; give the pill a real hit area. */
  .modepill__btn { min-height: 44px; }
  .gate__groups { grid-template-columns: 1fr; }
  .gate__group:nth-child(3) .gcard { max-width: none; }
  .gcard { min-height: 140px; }
  .footer__grid { grid-template-columns: 1fr; }
  .marquee__toggle { display: none; }
}
