/* BIZCLUB — single stylesheet, no external dependencies.
 * Fonts are system stacks on purpose: no build step, no CDN, so a webfont
 * would be the page's only network dependency. */

:root {
  --bg:        #0a0a0c;
  --bg-alt:    #0d0d10;
  --bg-raise:  #141418;
  --line:      rgba(255, 255, 255, 0.10);
  --line-firm: rgba(255, 255, 255, 0.22);
  --text:      #ece9e3;
  --muted:     #918f99;
  --gold:      #c8a656;
  --gold-dim:  rgba(200, 166, 86, 0.16);
  --ink:       #0a0a0c;
  --wrap:      76rem;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           ui-serif, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
           Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* No overflow-x:hidden here. It makes <body> a scroll container, which
     breaks position:sticky on iOS Safari (the header lags and leaves a gap
     while scrolling). Overflow is prevented structurally instead: every grid
     uses minmax(0,…) and no element exceeds 100%. */
}

h1, h2, h3 { margin: 0; line-height: 1.14; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.wrap.wide { max-width: 84rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--ink);
  padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; top: 0; z-index: 50; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > *:not(.grain) { position: relative; z-index: 2; }

/* ---------- shared type ---------- */

.label {
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.label.centered {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem; margin-bottom: 2.75rem;
}
.label .rule, .eyebrow .rule {
  display: inline-block; width: 2.5rem; height: 1px;
  background: var(--gold); opacity: 0.55;
}

.eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.6rem;
  color: var(--gold);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}

.hr {
  display: block; width: 3rem; height: 1px;
  background: var(--line-firm);
  margin: 1.75rem 0;
}

.muted { color: var(--muted); font-size: 0.95rem; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease;
}
.btn-outline { border: 1px solid var(--line-firm); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-solid { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn-solid:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.arrow { font-size: 0.95rem; letter-spacing: 0; }

/* ---------- image slots ---------- */
/* Each slot keeps its aspect ratio and shows a warm gradient until the real
   file lands in client/images/. Backgrounds are layered so the photograph,
   once present, simply covers the gradient. */

/* The photograph is layered ON TOP of a gradient placeholder, both declared in
   one background-image. A missing file simply falls through to the gradient —
   no broken-image icon, no empty black rectangle. */
.slot {
  --ph:
    radial-gradient(120% 90% at 70% 20%, rgba(200,166,86,0.13), transparent 62%),
    linear-gradient(160deg, #191920 0%, #0e0e12 55%, #15151a 100%);
  background-color: #101014;
  background-image: var(--ph);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.slot-hero       { background-image: url("/images/hero.jpg"), var(--ph); }
.slot-membership { background-image: url("/images/membership-card.jpg"), var(--ph); }

.cards li:nth-child(1) .slot-card { background-image: url("/images/card-01.jpg"), var(--ph); }
.cards li:nth-child(2) .slot-card { background-image: url("/images/card-02.jpg"), var(--ph); }
.cards li:nth-child(3) .slot-card { background-image: url("/images/card-03.jpg"), var(--ph); }

/* Alternating gradient angles so the six squares do not read as one flat band. */
.strip .slot:nth-child(1) { background-image: url("/images/strip-1.jpg"), var(--ph); }
.strip .slot:nth-child(2) { background-image: url("/images/strip-2.jpg"), var(--ph); --ph: linear-gradient(20deg, #16161c, #0d0d11); }
.strip .slot:nth-child(3) { background-image: url("/images/strip-3.jpg"), var(--ph); }
.strip .slot:nth-child(4) { background-image: url("/images/strip-4.jpg"), var(--ph); --ph: linear-gradient(200deg, #17171d, #0e0e12); }
.strip .slot:nth-child(5) { background-image: url("/images/strip-5.jpg"), var(--ph); }
.strip .slot:nth-child(6) { background-image: url("/images/strip-6.jpg"), var(--ph); --ph: linear-gradient(340deg, #15151b, #0d0d11); }

/* ---------- header ---------- */

/* Selector must out-specify `body > *:not(.grain)` above, which sets
   position:relative on every direct child and would otherwise kill sticky. */
body > header.site-head {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  /* Fully opaque, and no backdrop-filter. On iOS Safari a sticky element with
     backdrop-filter repaints unreliably during momentum scroll and shows a
     seam above the bar. At 96% opacity the blur was doing nothing visible, so
     the effect is not worth the bug. */
  background: var(--bg);
}

/* Anchor targets must clear the sticky header, or the heading lands
   underneath it when a nav link is followed. */
#club, #experiences, #circle, #membership, #request, #contact {
  scroll-margin-top: 5.5rem;
}
.head-inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 84rem; margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  min-height: 4.6rem;
}

.brand { display: block; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.28em;
}
.brand-sub {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav {
  display: flex; gap: 2rem;
  margin-inline: auto;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.nav a { color: var(--text); transition: color 0.16s ease; }
.nav a:hover { color: var(--gold); }

/* gap:0 — the label is one text run plus a span, and the flex gap would
   render as a double space between "Request" and "an Invitation". */
.head-cta { padding: 0.8rem 1.3rem; gap: 0; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  letter-spacing: -0.015em;
}
/* The narrow measure is a desktop composition choice. Below that it would
   squeeze the headline into a ~12-character column. */
@media (min-width: 62.01em) {
  .hero h1 { max-width: 12ch; }
}
.hero .lede { color: var(--muted); font-size: 1rem; margin-bottom: 2.4rem; }
.hero .btn { align-self: flex-start; }
.hero-media { min-height: clamp(20rem, 42vw, 34rem); }

/* ---------- bands ---------- */

.band { padding: clamp(3.5rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.band.alt { background: var(--bg-alt); }

.belongs {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.belongs h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 1.1rem;
}
#circle .belongs h2 { max-width: 16ch; }

/* icon rows */

.icon-row { display: grid; text-align: center; }
.icon-row.three { grid-template-columns: repeat(3, 1fr); }
.icon-row.five  { grid-template-columns: repeat(5, 1fr); }

.icon-row li { padding: 0 1rem; border-left: 1px solid var(--line); }
.icon-row li:first-child { border-left: 0; }

.ico {
  width: 2.6rem; height: 2.6rem;
  margin: 0 auto 1.1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-row h3 {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.icon-row.three h3 { margin-bottom: 0.7rem; }
.icon-row p { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.cards li {
  position: relative;
  border: 1px solid var(--line);
  min-height: clamp(17rem, 26vw, 22rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.cards .slot-card { position: absolute; inset: 0; z-index: 0; }
.cards li::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,10,12,0.94) 12%,
                                      rgba(10,10,12,0.55) 45%,
                                      rgba(10,10,12,0.15) 100%);
}
.card-body { position: relative; z-index: 2; padding: 1.6rem; }
.card-body .num {
  display: block; margin-bottom: 0.9rem;
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold);
}
.card-body h3 {
  margin-bottom: 0.55rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
/* Reserve two lines so the 01/02/03 numerals sit on one line across all three
   cards — they are bottom-aligned, so uneven copy would stagger them. */
.card-body p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; min-height: 3em; }

/* ---------- strip ---------- */

.strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}
.strip .slot { aspect-ratio: 1 / 1; }

/* ---------- membership ---------- */

.membership {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.membership-copy {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.membership h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.membership .muted { margin-bottom: 2rem; }
.slot-membership { min-height: clamp(16rem, 32vw, 26rem); }

/* signup */

.signup { max-width: 27rem; }
.field {
  display: flex; gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--line-firm);
  background: var(--bg-raise);
  transition: border-color 0.18s ease;
}
.field:focus-within { border-color: var(--gold); }
.field:has(input[aria-invalid="true"]) { border-color: #a8564c; }

.signup input {
  flex: 1 1 auto; min-width: 0;
  padding: 0.7rem 0.8rem;
  font: inherit; font-size: 0.9rem;
  color: var(--text); background: transparent; border: 0;
}
.signup input::placeholder { color: #66646e; }
.signup input:focus { outline: none; }

.signup button {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  border: 0; cursor: pointer; white-space: nowrap;
  transition: filter 0.16s ease;
}
.signup button:hover:not(:disabled) { filter: brightness(1.08); }
.signup button:disabled { opacity: 0.5; cursor: default; }
.signup button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.fineprint {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.76rem; line-height: 1.55;
}
.fineprint.is-error { color: #dd8880; }
.fineprint.is-ok    { color: var(--gold); }

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

.site-foot { background: var(--bg-alt); }
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  max-width: 84rem; margin-inline: auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.5; text-align: center;
}

.foot-bar {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  max-width: 84rem; margin-inline: auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.foot-links { display: flex; gap: 1.6rem; text-transform: uppercase; }
.foot-links a:hover, .social a:hover { color: var(--gold); }
.social { display: flex; gap: 0.9rem; }
.soc {
  width: 1.05rem; height: 1.05rem;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

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

@media (max-width: 62em) {
  /* Nav collapses to the CTA — a five-item bar does not fit, and a landing
     page this short does not justify a drawer. */
  .nav { display: none; }
  .head-inner { justify-content: space-between; gap: 1rem; }

  .hero, .membership { grid-template-columns: 1fr; }
  .hero-media { min-height: 16rem; order: -1; }
  .slot-membership { min-height: 14rem; }

  .belongs { grid-template-columns: 1fr; }
  .icon-row.five { grid-template-columns: repeat(3, 1fr); row-gap: 2.25rem; }
  .icon-row.five li:nth-child(3n+1) { border-left: 0; }

  .cards { grid-template-columns: 1fr; gap: 0; }
  .strip { grid-template-columns: repeat(3, 1fr); }

  .foot-top { justify-content: center; text-align: center; }
}

/* ---- portrait phones ---- */
@media (max-width: 34em) {
  /* Three across keeps the labels on one line; two would strand the fifth
     icon alone on its own row. */
  .icon-row.three, .icon-row.five { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .icon-row li { padding: 0 0.4rem; }
  .icon-row li:nth-child(3n+1) { border-left: 0; }
  .ico { width: 2.1rem; height: 2.1rem; }
  .icon-row h3 { font-size: 0.6rem; letter-spacing: 0.1em; }
  .icon-row p { font-size: 0.76rem; }

  .strip { grid-template-columns: repeat(3, 1fr); }

  /* Header must survive ~320px: drop the subtitle and shorten the CTA. */
  .brand-sub { display: none; }
  .brand-name { font-size: 1.05rem; letter-spacing: 0.2em; }
  .cta-rest { display: none; }
  .head-cta { padding: 0.65rem 0.9rem; font-size: 0.62rem; letter-spacing: 0.1em; }

  .hero-copy, .membership-copy { padding-inline: 1.25rem; }
  .hero-media { min-height: 13rem; }

  .field { flex-wrap: wrap; }
  .signup button { width: 100%; justify-content: center; }

  .foot-bar { justify-content: center; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.1rem; }
  .pullquote br { display: none; }
}

/* ---- landscape phones ----
   Short and wide. Stacking the hero here wastes the whole viewport on an
   image, and a sticky header eats a fifth of the remaining height. */
@media (max-height: 30em) and (orientation: landscape) {
  /* Same specificity battle as above — a sticky bar would eat a fifth of a
     390px-tall viewport. */
  body > header.site-head { position: relative; }
  .head-inner { min-height: 3.4rem; }

  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-media { order: 0; min-height: 0; }
  .hero-copy { padding-block: 2rem; }
  .hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
  .hero .lede { margin-bottom: 1.4rem; }
  .hero .lede br { display: none; }

  .membership { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .slot-membership { min-height: 0; }

  .band { padding-block: 2.5rem; }
  .hr { margin-block: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
