/* BNI NextGen visitor page. BNI red #CF2030 on near-black and warm white, Helvetica. */
:root {
  --red: #cf2030;
  --red-deep: #a8192a;
  --ink: #111214;
  --ink-2: #1c1d20;
  --gray: #6a6c70;
  --line: #e6e4e0;
  --paper: #ffffff;
  --warm: #f5f2ed;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(36px, 5.2vw, 72px); margin-bottom: 40px; text-wrap: balance; }
h3 { font-size: 22px; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 8px; }
p { margin: 0 0 16px; }
a { color: inherit; }
section { padding: clamp(88px, 12vw, 160px) 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.lede { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.45; }

/* Nav floats over the dark hero */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: rgba(17,18,20,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo .mark { width: 54px; height: 21px; background: var(--red); -webkit-mask: url(/assets/bni-mark.png) center / contain no-repeat; mask: url(/assets/bni-mark.png) center / contain no-repeat; }
.logo b { font-size: 18px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25); line-height: 21px; }

/* Buttons */
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-lg { padding: 20px 36px; font-size: 18px; }

/* Hero */
.hero { background: var(--ink); color: #fff; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 104px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -18vw; top: -20vw; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(circle, rgba(207,32,48,.35), rgba(207,32,48,0) 62%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(46px, min(8vw, 12.5svh), 132px); letter-spacing: -.045em; line-height: .95; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { color: rgba(255,255,255,.74); max-width: 640px; margin: clamp(20px, 3.5svh, 40px) 0 clamp(24px, 4svh, 44px); }

/* Members rail */
.members { background: var(--ink); padding: 0 0 96px; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 28px; scrollbar-width: none; scroll-padding: 0 28px; }
.rail::-webkit-scrollbar { display: none; }
.portrait { background: #222; position: relative; flex: 0 0 clamp(270px, 28vw, 380px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; scroll-snap-align: start; color: #fff; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { position: absolute; inset: auto 0 0 0; padding: 80px 24px 24px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.cap blockquote { margin: 0 0 14px; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.cap blockquote::before { content: "\201C"; }
.cap blockquote::after { content: "\201D"; }
.cap .who { margin: 0; font-size: 15px; line-height: 1.35; color: rgba(255,255,255,.78); }
.cap .who b { display: block; font-size: 22px; letter-spacing: -.02em; color: #fff; margin-bottom: 4px; }
.rail-foot { display: flex; justify-content: flex-end; align-items: center; margin-top: 28px; color: rgba(255,255,255,.6); }
.rail-foot .names { margin: 0; font-size: 16px; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.rail-nav button:hover { background: #fff; color: var(--ink); }

/* Proof */
.proof { text-align: center; }
.big { margin: 0; font-size: clamp(110px, 17vw, 240px); font-weight: 700; letter-spacing: -.06em; line-height: .9; color: var(--red); }
.big-label { margin: 22px auto 64px; font-size: clamp(17px, 1.7vw, 22px); color: var(--gray); max-width: 36ch; }
.proof-line { margin: 0 auto; font-size: clamp(28px, 3.3vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; max-width: 24ch; text-wrap: balance; }
.proof-line span { color: var(--red); }
.proof-foot { list-style: none; padding: 0; margin: 56px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 48px; font-size: 17px; color: var(--gray); }
.proof-foot b { color: var(--ink); }

/* Once you're in */
.inside { background: var(--warm); }
.perks { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid #ddd8d0; }
.perks li { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: baseline; padding: 36px 0; border-top: 1px solid #ddd8d0; }
.perks h3 { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.perks p { color: var(--gray); margin: 0; font-size: 19px; text-wrap: pretty; }

/* Beyond business */
.beyond { padding-bottom: clamp(88px, 12vw, 160px); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery figure { margin: 0; border-radius: 22px; overflow: hidden; }
.g1 { grid-column: span 3; grid-row: span 2; }
.g2, .g3, .g4, .g5 { grid-column: span 3; }
.g4, .g5 { grid-row: span 1; }
.ph { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 22px; font-weight: 700; font-size: 17px; color: #fff; }
.g1 .ph { background: linear-gradient(150deg, #cf2030, #7a0f1a); }
.g2 .ph { background: linear-gradient(150deg, #2a2b2f, #0d0e10); }
.g3 .ph { background: linear-gradient(150deg, #c8bfb3, #8a8076); }
.g4 .ph { background: linear-gradient(150deg, #5e0d16, #2a070b); }
.g5 .ph { background: linear-gradient(150deg, #3d3f44, #1c1d20); }

/* Founding */
.founding { background: var(--ink); color: #fff; text-align: center; }
.founding h2 { margin: 0 auto 24px; max-width: 16ch; }
.founding .lede { color: rgba(255,255,255,.72); margin-bottom: 56px; }
.seats { display: grid; grid-template-columns: repeat(20, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
.seats i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); }
.seats i.on { background: var(--red); border-color: var(--red); }
.seat-count { margin-top: 28px; color: rgba(255,255,255,.7); font-size: 17px; }
.seat-count b { color: #fff; }

/* Invite */
.invite { background: var(--warm); }
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.invite .lede { color: var(--gray); max-width: 30ch; }
form { background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.18); }
form h3 { font-size: 28px; }
form p { color: var(--gray); }
label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.opt { font-weight: 400; color: var(--gray); }
input { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 17px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
input:focus { outline: none; border-color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 4px 0 24px; }
legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { margin: 0; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day span { display: block; text-align: center; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; }
.day input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.day input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
form .btn { width: 100%; }
.form-msg { margin: 12px 0 0; color: var(--red); font-size: 15px; }


/* Testimonials */
.voices { background: var(--ink); color: #fff; }
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; }
.big-win strong { display: block; font-size: clamp(96px, 14vw, 210px); font-weight: 700; letter-spacing: -.06em; line-height: .85; color: var(--red); }
.big-win span { display: block; margin-top: 22px; font-size: clamp(19px, 1.8vw, 24px); color: rgba(255,255,255,.8); max-width: 20ch; line-height: 1.35; }
.q { margin: 0; padding-left: 40px; border-left: 2px solid rgba(255,255,255,.14); }
.q blockquote { margin: 0 0 32px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; text-wrap: pretty; }
.q blockquote::before, .card-q blockquote::before { content: "\201C"; }
.q blockquote::after, .card-q blockquote::after { content: "\201D"; }
.q figcaption { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.6); font-size: 15px; }
.q figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.q figcaption b { display: block; color: #fff; font-size: 17px; }
.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 96px; }
.card-q { margin: 0; background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; min-height: 300px; color: #fff; text-decoration: none; transition: transform .25s, border-color .25s; }
.card-q:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.card-q .init { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #2c2e33; font-weight: 700; margin-bottom: 24px; }
.card-q blockquote { margin: 0 0 24px; font-size: 18px; line-height: 1.45; flex: 1; }
.card-q blockquote.ph { color: rgba(255,255,255,.38); font-style: italic; }
.card-q figcaption { color: rgba(255,255,255,.55); font-size: 15px; }
.card-q figcaption b { display: block; color: #fff; font-size: 17px; }
.card-next { background: var(--red); border-color: var(--red); justify-content: space-between; }
.card-next:hover { border-color: var(--red); }
.card-next strong { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.03em; line-height: 1.05; }
.card-next span { font-weight: 700; }

/* Open classifications */
.open-seats { background: var(--paper); }
.open-seats .head-row p b { color: var(--red); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input { width: 100%; max-width: 560px; font: inherit; font-size: 18px; padding: 18px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--warm); margin-bottom: 36px; }
.search input:focus { outline: none; border-color: var(--ink); }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team { background: var(--warm); border-radius: 20px; padding: 24px; }
.team h3 { font-size: 16px; line-height: 1.3; margin-bottom: 16px; min-height: 2.6em; }
.team h3 span { display: block; color: var(--red); font-size: 13px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; line-height: 1.25; padding: 7px 11px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; transition: background .15s, color .15s, opacity .2s; }
a.chip:hover { background: var(--red); color: #fff; }
.chip.taken { text-decoration: line-through; color: #aaa; }
.chip.dim { opacity: .25; }
.no-match { color: var(--gray); }

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 48px; }
  .q { padding-left: 24px; }
  .trio { grid-template-columns: 1fr; margin-top: 56px; }
  .card-q { min-height: 0; }
  .card-next { min-height: 200px; }
  .teams { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .teams { grid-template-columns: 1fr; } .team h3 { min-height: 0; } }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js .hero h1, .js .hero .lede, .js .hero .btn-lg { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.js .hero .lede { animation-delay: .15s; }
.js .hero .btn-lg { animation-delay: .3s; }
.js .portrait { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.js .portrait:nth-child(2) { animation-delay: .1s; } .js .portrait:nth-child(3) { animation-delay: .2s; } .js .portrait:nth-child(4) { animation-delay: .3s; } .js .portrait:nth-child(5) { animation-delay: .4s; }
.portrait img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.portrait:hover img { transform: scale(1.05); }
.hero::after { animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 4vw) scale(1.12); } }
.gallery figure { transition: transform .4s; } .gallery figure:hover { transform: scale(1.015); }
.js .seats i { transition: background .3s, border-color .3s; }
.js .seats:not(.lit) i.on { background: transparent; border-color: rgba(255,255,255,.28); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero h1, .js .hero .lede, .js .hero .btn-lg, .js .portrait { animation: none; opacity: 1; transform: none; transition: none; }
  .hero::after { animation: none; }
}

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 40px 0; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; color: rgba(255,255,255,.6); font-size: 15px; }

/* Tablet and phone */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: span 1; grid-row: span 1; }
  .g1 { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .rail { padding: 0 16px; scroll-padding: 0 16px; }
  .portrait { flex-basis: 80vw; }
  .hero { min-height: min(88vh, 720px); padding: 120px 0 64px; }
  .perks li { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .seats { gap: 6px; grid-template-columns: repeat(10, 1fr); max-width: 320px; }
  .row { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(2, 1fr); }
  form { padding: 24px; }
  .btn-lg { width: 100%; text-align: center; }
  .rail-nav { display: none; }
}
