/* BRAVE x Programmatic I/O New York 2026 — event landing page.
   Built on the BRAVE event template (reference: AWNY 2026 page),
   same section order. Palette: the orange set on the greys —
   #FF935B primary accent, #FFB490 hover, #A86C4D deep interaction,
   on #21201F / #313131, off-white #F7F5F1. Swiza display (300/500/700),
   Macan body (400/600), hero subtitle set in Swiza Medium. */

:root {
  --accent:       #FF935B;   /* primary accent */
  --accent-hover: #FFB490;   /* hover */
  --accent-deep:  #A86C4D;   /* deep interaction, on-light accent text */
  --ink:          #21201F;   /* darkest ground */
  --ink-2:        #313131;   /* raised dark surface */
  --paper:        #F7F5F1;   /* off-white */
  --muted:        #6B6B6B;
  --line:         rgba(33, 32, 31, 0.12);

  --on-ink:        rgba(247, 245, 241, 0.94);
  --on-ink-muted:  rgba(247, 245, 241, 0.58);
  --on-ink-faint:  rgba(247, 245, 241, 0.30);

  --font-display: "Swiza", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-body:    "Macan", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --radius-sm: 14px;
  --radius-md: 26px;
  --radius-lg: 40px;
  --radius-xl: 64px;
  --radius-pill: 999px;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 20px;
}

/* Cheap SVG-filter grain, dark surfaces only. The explicit width/height
   matter: an <svg> without them falls back to the 300x150 browser
   default and renders as a small bright rectangle in the corner. */
.grain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Reveal-on-scroll. Falls back to visible if JS never runs. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Logos */
.lockup-brave { height: 34px; width: auto; display: block; }
.lockup-progio { height: 58px; width: auto; display: block; }
.footer-brave { height: 18px; width: auto; display: block; opacity: 0.85; }
.footer-logo-link { display: inline-flex; border-bottom: 0; }
.footer-logo-link:hover .footer-brave { opacity: 1; }

/* ===== Photo/video media: natural color, no brand-color hue ===== */
.photo-media { position: absolute; inset: 0; overflow: hidden; }
.photo-media video, .photo-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.02) saturate(1.02);
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1);
}

/* ===== Buttons. Copy is fixed: BOOK A MEETING everywhere including the
   form submit, REQUEST AN INVITE on the dinner card only, uppercase. ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-primary:active { background: var(--accent-deep); color: var(--paper); }

.btn-table { background: var(--ink); color: var(--paper); }
.btn-table:hover { background: var(--accent-hover); color: var(--ink); }
.btn-table:active { background: var(--accent-deep); color: var(--paper); }

.btn-floor { background: var(--accent); color: var(--ink); }
.btn-floor:hover { background: var(--accent-hover); }
.btn-floor:active { background: var(--accent-deep); color: var(--paper); }

/* ============================= HERO: THE STORY ============================= */
.floor {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  padding-top: 64px;
}

/* Hero video, natural colour, dimmed under an ink scrim for contrast */
.floor-media { opacity: 0.5; }
.floor-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,32,31,0.78) 0%, rgba(33,32,31,0.5) 45%, rgba(33,32,31,0.88) 100%);
}

.floor-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; }

.lockup { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.lockup-x { font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; color: var(--on-ink); }

/* One subtitle voice for both beats, Swiza Medium. The vh term keeps
   the pinned stage from overflowing on short viewports. */
.story-title {
  font-size: clamp(3rem, min(11vw, 17vh), 9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
  max-width: 14ch;
}
.kinetic .line { display: block; }
/* padding-bottom + matching negative margin gives descenders room inside
   the overflow:hidden reveal mask, so lines are not clipped at baseline. */
.kinetic .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.22em;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.kinetic .word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(.19,1,.22,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.kinetic.is-visible .word > span { transform: translateY(0); }
.no-js .kinetic .word > span { transform: none; }

/* Static fallback spacing (no-JS / reduced motion / small screens) */
.acts { position: relative; }
.act-2 { padding-top: 56px; }

.floor-actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 56px; }

.countdown {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 22px;
  border: 1px solid var(--on-ink-faint);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.28);
}
.countdown .cd-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--on-ink-muted); font-weight: 600;
}
.cd-row { display: flex; gap: 16px; }
.cd-unit { display: flex; flex-direction: column; }
.cd-num {
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-unit-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-ink-muted); margin-top: 5px; }

/* Marquee ticker */
.marquee {
  position: relative;
  border-top: 1px solid var(--on-ink-faint);
  overflow: hidden;
  padding: 18px 0;
  background: rgba(0,0,0,0.22);
}
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 30s linear infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-muted); white-space: nowrap;
}
.marquee-track span.hi { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Pinned mode: tall scroll region, sticky full-viewport stage, two
   beats overlaid and swapped by .beat2 (default = beat 1) */
.story.pinned { height: 300vh; }
.story.pinned .story-stage {
  position: sticky; top: 0;
  min-height: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.story.pinned .acts { display: grid; }
/* Tighter vertical chrome while pinned so everything fits one viewport */
.story.pinned .floor-inner { padding-top: 16px; padding-bottom: 16px; }
.story.pinned .lockup { margin-bottom: 28px; }
.story.pinned .act {
  grid-area: 1 / 1;
  align-self: center;
  padding-top: 0;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.story.pinned.beat2 .act-1 { transform: translateY(-28px); }
.story.pinned:not(.beat2) .act-1,
.story.pinned.beat2 .act-2 { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .story.pinned .act { transition: none; }
}

/* ============================= THE TABLE ============================= */
.table { background: var(--paper); }

/* Positioning statement */
.positioning { padding-top: 130px; padding-bottom: 120px; }
.positioning-inner { max-width: 860px; }
.positioning h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}
.positioning h2 .hl-deep { color: var(--accent-deep); }
.positioning p { font-size: 1.16rem; color: var(--muted); max-width: 58ch; margin-bottom: 1.2em; }
.positioning .positioning-close {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.2rem;
}

/* Delegate feature: its own dark band to isolate it from the paper
   sections around it. */
.feature-delegate {
  background: var(--ink-2);
  color: var(--on-ink);
  padding-top: 110px;
  padding-bottom: 110px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "label media"
    "title media"
    "link  media";
  grid-template-rows: auto auto 1fr;
  column-gap: 64px;
  align-items: start;
}
.delegate-label { grid-area: label; color: var(--accent); }
.delegate-title {
  grid-area: title;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.delegate-link {
  grid-area: link;
  align-self: start;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; color: var(--on-ink);
  border-bottom: 1.5px solid var(--accent); padding-bottom: 4px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.delegate-link:hover { opacity: 0.75; border-bottom-color: var(--accent-hover); }
.delegate-media { grid-area: media; align-self: center; }
.feature-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-media:hover .photo-media video { transform: scale(1.05); }
/* Overlay caption on the video: mobile-only (see media query) */
.figure-caption {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 20px 18px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, rgba(33,32,31,0) 0%, rgba(33,32,31,0.72) 100%);
}
.figure-caption .cap-name, .figure-caption .cap-role { display: block; }
.figure-caption .cap-role { font-weight: 400; margin-top: 4px; }
@media (max-width: 900px) and (min-width: 641px) {
  .feature-grid { column-gap: 40px; }
}
@media (max-width: 640px) {
  /* Per brief: name overlays the video bottom in white, LinkedIn link
     moves under the video. */
  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "link";
    grid-template-rows: auto auto auto;
    row-gap: 24px;
  }
  .delegate-label { display: none; }
  .delegate-title { margin-bottom: 0; }
  .figure-caption { display: block; }
}

/* Experience cards, two PARALLEL choices */
.invites { padding-top: 110px; padding-bottom: 130px; }
.invites-head { margin-bottom: 52px; }
.invites-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.01em; }

.invites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 860px) { .invites-grid { grid-template-columns: 1fr; } }

.invite {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.invite:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(33,32,31,0.35); }
.invite:hover .photo-media video, .invite:hover .photo-media img { transform: scale(1.05); }
.invite-media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.invite-body { padding: 34px 34px 38px; display: flex; flex-direction: column; flex: 1; }
.invite-meta {
  font-family: var(--font-display); font-weight: 600; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-deep); margin-bottom: 12px;
}
.invite h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; margin-bottom: 14px; }
.invite p { color: var(--muted); font-size: 1.02rem; margin-bottom: 20px; }
.invite-venue {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 26px;
}
.invite .btn { align-self: flex-start; margin-top: auto; }

/* ===== Register ===== */
.register {
  /* Grey BRAVE background art with a left ink scrim for heading
     legibility, the orange set carries the accents. */
  background:
    linear-gradient(90deg, rgba(33,32,31,0.88) 0%, rgba(33,32,31,0.5) 42%, rgba(33,32,31,0.18) 100%),
    url("../img/bg-brand-grey.png") center center / cover no-repeat,
    var(--ink-2);
  color: var(--on-ink);
  padding-top: 96px;
  padding-bottom: 110px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.register-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .register-grid { grid-template-columns: 1fr; gap: 40px; } }
.register-head { position: static; }
.register-head .section-label { color: var(--accent); }
.register-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600; margin-bottom: 18px; }
.register-head p { color: var(--on-ink-muted); font-size: 1.08rem; max-width: 36ch; }

.reg-form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid; gap: 22px;
  border: 0;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.84rem; margin-bottom: 8px; color: var(--muted); }
.field input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 14px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,147,91,0.18); }

.experience-options {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0; margin: 0;
  display: grid; gap: 14px;
}
.experience-options legend {
  padding: 0; float: left; width: 100%;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.check-option {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border: 1.5px solid var(--line); border-radius: var(--radius-md); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check-option:hover { border-color: var(--accent); background: rgba(255,147,91,0.06); }
.check-option:has(input:checked) { border-color: var(--accent-deep); background: rgba(168,108,77,0.08); }
.check-option input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent-deep); flex: none; }
.opt-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.opt-sub { display: block; font-size: 0.9rem; color: var(--muted); }

.reg-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.reg-disclaimer { font-size: 0.8rem; color: var(--muted); max-width: 42ch; margin: 0; }
.reg-status { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--accent); display: none; margin: 0; }
.reg-status.visible { display: block; }

/* ===== Footer ===== */
footer { background: var(--ink); color: var(--on-ink-muted); padding-top: 34px; padding-bottom: 46px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 0.85rem; }
.footer-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
footer a { text-decoration: none; border-bottom: 1px solid var(--on-ink-faint); padding-bottom: 2px; }
footer a:hover { border-bottom-color: var(--accent-hover); color: var(--on-ink); }

/* ===== Small screens ===== */
@media (max-width: 640px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .floor { min-height: auto; padding-top: 32px; justify-content: flex-start; }
  .floor-inner { flex: none; padding-top: 28px; padding-bottom: 40px; }
  /* both logos on one line: shrink proportionally, never wrap */
  .lockup { margin-bottom: 28px; gap: 14px; flex-wrap: nowrap; }
  .lockup-brave { height: 24px; }
  .lockup-progio { height: 38px; }
  .lockup-x { font-size: 1.3rem; }
  /* the two title beats read as one continuous sentence, no gap */
  .act-2 { padding-top: 0; }
  .floor-actions { gap: 20px; margin-top: 44px; }
  .countdown { width: 100%; }
  .cd-row { gap: 12px; }
}
/* Per brief: keep the hero CTA off the section edge on small phones */
@media (max-width: 540px) {
  .floor-inner { padding-bottom: 72px; }
}
