/* ==========================================================================
   thereig.net — REIG homepage
   Direction 3B (Carolina blue + navy). Design width 1280px.
   ========================================================================== */

/* ------------------------------- Tokens -------------------------------- */
:root {
  /* Colors */
  --ink:          #141414;
  --cream:        #fffaf3;
  --carolina:     #7BAFD4;
  --navy:         #13294b;
  --white:        #ffffff;
  --divider-dark: #3a3a3a;
  --placeholder-a:#f1ebe1;
  --placeholder-b:#f7f2ea;

  /* Radii */
  --r-panel:    40px;
  --r-card:     32px;
  --r-count:    28px;
  --r-sticker:  14px;
  --r-pill:     999px;

  /* Layout */
  --page-pad:   40px;
  --panel-inset:24px;
  --rhythm:     96px;

  /* Type */
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-hero:     clamp(56px, 10vw, 128px);
  --fs-city:     clamp(48px, 9vw, 104px);
  --fs-wordmark: clamp(64px, 12vw, 140px);
  --fs-section:  clamp(38px, 5vw, 64px);
  --fs-cities:   clamp(34px, 4.4vw, 56px);
  --fs-faq:      clamp(34px, 3.8vw, 48px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

/* Hover: drop to 0.7 opacity. */
a:hover, button:hover:not(:disabled) { opacity: 0.7; }

/* Visible focus for keyboard users. */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 50%; top: 8px;
  transform: translate(-50%, -200%);
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 800;
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translate(-50%, 0); opacity: 1; }

/* Shared placeholder treatment — delete once real photos/map land. */
.ph-label {
  font: 12px var(--font-mono);
  color: var(--ink);
  opacity: 0.55;
}

/* ------------------------------- Header -------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px var(--page-pad);
}

.logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.logo__tld { color: var(--navy); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-pill {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile menu button — hidden until the nav collapses. */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
}
.nav__toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* -------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  margin: 0 var(--panel-inset);
  padding: 72px 56px 64px;
  border-radius: var(--r-panel);
  background: var(--carolina);
  overflow: hidden;
}

.hero__stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.sticker {
  padding: 12px 18px;
  border: 2px solid var(--ink);
  transition: transform 150ms ease;
}
.sticker--when {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 800;
  transform: rotate(-3deg);
}
.sticker--where {
  background: var(--cream);
  border-radius: var(--r-sticker);
  font-size: 16px;
  font-weight: 600;
  transform: rotate(2deg);
}
.sticker:hover { transform: rotate(0deg); }

.hero__headline {
  max-width: 980px;
  font-size: var(--fs-hero);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__body {
  max-width: 40ch;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
}

/* ------------------------------- Signup -------------------------------- */
.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.signup__pill {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 17px var(--font);
  outline: none;
  border-radius: var(--r-pill);
}
.signup__input::placeholder { color: var(--ink); opacity: 0.5; }

.signup__btn {
  padding: 12px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.signup__btn:disabled { cursor: default; opacity: 0.6; }

/* Honeypot — kept out of sight without display:none, which some bots detect. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__msg {
  padding: 2px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.signup__msg a { text-decoration: underline; }

/* ------------------------------ Countdown ------------------------------ */
.countdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  border-radius: var(--r-count);
  background: var(--ink);
  color: var(--cream);
  transform: rotate(-2deg);
  transition: transform 150ms ease;
}
.countdown:hover { transform: rotate(0deg); }

.countdown__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--carolina);
}

.countdown__units { display: flex; gap: 18px; }

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__digits {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.countdown__digits--accent { color: var(--carolina); }

.countdown__unit-label { font-size: 13px; opacity: 0.7; }

/* ----------------------------- City strip ------------------------------ */
.strip {
  margin-top: 24px;
  padding: 22px 0;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.strip__track {
  display: flex;
  width: max-content;
  padding-left: var(--page-pad);
  animation: strip-scroll 40s linear infinite;
}

.strip__list {
  display: flex;
  gap: 36px;
  margin-right: 36px;          /* keeps the -50% loop seamless */
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.strip__sep--carolina { color: var(--carolina); }
.strip__sep--white    { color: var(--white); }

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------ Audience ------------------------------- */
.audience {
  padding: var(--rhythm) var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.audience__headline {
  font-size: var(--fs-section);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.audience__accent { color: var(--navy); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 14px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 18px;
  font-weight: 600;
  transition: transform 150ms ease;
}
.pill--carolina { background: var(--carolina); }
.pill--cream    { background: var(--cream); }
.pill--white    { background: var(--white); }
.pill--navy     { background: var(--navy); color: var(--white); }
.pill--ink      { background: var(--ink);  color: var(--cream); }
.pill--tilt-left  { transform: rotate(-3deg); }
.pill--tilt-right { transform: rotate(2deg); }
.pill--tilt-left:hover, .pill--tilt-right:hover { transform: rotate(0deg); }

/* ------------------------------ Founders ------------------------------- */
.founders {
  padding: 0 var(--page-pad) var(--rhythm);
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.founders__heading {
  font-size: var(--fs-section);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.founder {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: start;
}

/* Second founder mirrors the first: portrait right, opposite tilt. */
.founder--flip { grid-template-columns: 1fr 420px; }
.founder--flip .founder__portrait { grid-column: 2; grid-row: 1; }
.founder--flip .founder__body     { grid-column: 1; grid-row: 1; }

.founder__portrait { position: relative; }

.founder__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  transform: rotate(-2deg);
  transition: transform 150ms ease;
}
.founder--flip .founder__img { transform: rotate(2deg); }
.founder__portrait:hover .founder__img { transform: rotate(0deg); }

.founder__sticker {
  position: absolute;
  left: -12px;
  bottom: 22px;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  transform: rotate(-4deg);
  transition: transform 150ms ease;
}
.founder__sticker--alt {
  left: auto;
  right: -12px;
  background: var(--carolina);
  color: var(--ink);
  transform: rotate(4deg);
}
.founder__portrait:hover .founder__sticker { transform: rotate(0deg); }

.founder__name {
  font-size: var(--fs-cities);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.founder__roles {
  margin-top: 10px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
}

.founder__copy {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.stats {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  display: grid;
  /* Spreads however many stats a block has across the full width, so adding or
     removing one needs no CSS change. */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat__label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}

/* ------------------------------- Cities -------------------------------- */
.cities {
  margin: 0 var(--panel-inset);
  padding: 64px 56px;
  border-radius: var(--r-panel);
  background: var(--ink);
  color: var(--cream);
}

.cities__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 32px;
}

.cities__headline {
  font-size: var(--fs-cities);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.cities__accent { color: var(--carolina); }

.cities__note {
  max-width: 32ch;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0.8;
  text-align: right;
}

.cities__list { display: flex; flex-direction: column; gap: 8px; }

.city {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--divider-dark);
}
.city--last { border-bottom: 1px solid var(--divider-dark); }

.city__name {
  font-size: var(--fs-city);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.city__name--cream    { color: var(--cream); }
.city__name--carolina { color: var(--carolina); }
.city__name--white    { color: var(--white); }

.city__status {
  flex: none;
  padding: 10px 18px;
  border: 2px solid var(--cream);
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.city__status--filled {
  background: var(--carolina);
  color: var(--ink);
  border-color: var(--carolina);
}

.cities__foot {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.7;
}
.cities__link { color: var(--carolina); }

/* ----------------------------- Membership ------------------------------ */
.membership { padding: var(--rhythm) var(--page-pad); }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  transition: transform 150ms ease;
}
.tier--featured {
  background: var(--navy);
  color: var(--white);
  transform: rotate(-1.5deg);
}
.tier--featured:hover { transform: rotate(0deg); }

.tier__title { font-size: 26px; font-weight: 800; }
.tier__price {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.tier__period {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.65;
}

.tier__tagline { font-size: 17px; font-weight: 500; }

/* ------------------------------- Gallery ------------------------------- */
.gallery {
  padding: 0 var(--page-pad) var(--rhythm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot {
  position: relative;
  margin: 0;
  height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 10px, var(--placeholder-b) 10px 20px);
  transition: transform 150ms ease;
}
.shot--1 { border-radius: var(--r-card); transform: rotate(-2deg); }
.shot--2 { border-radius: var(--r-pill); justify-content: center; padding: 28px; }
.shot--3 { border-radius: var(--r-card); transform: rotate(2deg); }
.shot--4 { border-radius: 32px 32px 140px 32px; }
.shot--1:hover, .shot--3:hover { transform: rotate(0deg); }

.shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------- FAQ + location --------------------------- */
.faq-location {
  padding: 0 var(--page-pad) var(--rhythm);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.faq {
  padding: 40px;
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--cream);
}

.faq__heading {
  margin-bottom: 12px;
  font-size: var(--fs-faq);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.faq__item {
  padding: 14px 0;
  border-top: 1px solid var(--divider-dark);
}

.faq__q {
  color: var(--carolina);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }

.faq__a {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

.location {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map {
  flex: 1;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 10px, var(--placeholder-b) 10px 20px);
  overflow: hidden;
}
.map__embed {
  flex: 1;
  width: 100%;
  min-height: 240px;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 20px;
  font-weight: 800;
}

/* -------------------------------- Footer ------------------------------- */
.footer {
  margin: 0 var(--panel-inset) var(--panel-inset);
  padding: 48px 56px;
  border-radius: var(--r-panel);
  background: var(--carolina);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer__wordmark {
  font-size: var(--fs-wordmark);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.07em;
}
.footer__tld { color: var(--navy); }

.footer__meta {
  font-size: 17px;
  font-weight: 600;
  text-align: right;
  line-height: 1.5;
}

/* ============================= Responsive ============================== */

/* Tablet: keep the 1280px proportions from collapsing too early. */
@media (max-width: 1100px) {
  .hero    { padding: 56px 40px 48px; }
  .cities  { padding: 48px 36px; }
  .footer  { padding: 40px 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root {
    --page-pad: 20px;
    --panel-inset: 12px;
    --rhythm: 64px;
  }

  /* Nav collapses into a menu; the CTA stays visible. */
  .nav__toggle { display: flex; }
  .nav {
    position: absolute;
    left: var(--page-pad);
    right: var(--page-pad);
    top: 86px;
    z-index: 50;
  }
  .nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: var(--r-card);
    font-size: 18px;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--r-pill);
  }

  .header { position: relative; padding: 20px var(--page-pad); }
  .logo { font-size: 26px; }

  /* Stack the two-column grids. */
  .hero__grid,
  .audience,
  .faq-location { grid-template-columns: 1fr; }

  .hero { padding: 44px 28px 40px; }
  .hero__grid { margin-top: 32px; align-items: stretch; }
  .hero__body { font-size: 19px; }

  .countdown { align-self: start; justify-self: start; }
  .countdown__units { gap: 14px; }
  .countdown__digits { font-size: clamp(36px, 11vw, 56px); }

  .strip__list { font-size: 24px; gap: 24px; margin-right: 24px; }

  .audience { gap: 32px; }
  .pill { font-size: 16px; padding: 12px 18px; }

  .cities { padding: 40px 24px; }
  .cities__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cities__note { text-align: left; font-size: 16px; }
  .city { flex-direction: column; align-items: flex-start; gap: 10px; }

  .founders { gap: 56px; }
  .founder,
  .founder--flip {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: start;
  }
  .founder--flip .founder__portrait { grid-column: 1; grid-row: 1; }
  .founder--flip .founder__body     { grid-column: 1; grid-row: 2; }
  .founder__portrait { width: min(100%, 340px); }
  .founder__copy { font-size: 17px; }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .stat__num { font-size: 38px; }

  .tiers { grid-template-columns: 1fr; }
  .tier--featured { transform: rotate(0deg); }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot { height: 200px; }

  .faq { padding: 28px 24px; }
  .contact { font-size: 17px; padding: 18px 22px; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 24px;
  }
  .footer__meta { text-align: left; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .shot--2 { border-radius: var(--r-card); }
  .shot--4 { border-radius: 32px 32px 90px 32px; }
  .signup__pill { flex-wrap: wrap; border-radius: var(--r-card); }
  .signup__input { flex-basis: 100%; }
  .signup__btn { width: 100%; }
}

/* --------------------------- Reduced motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Strip stops scrolling and simply bleeds off the right edge. */
  .strip__track { animation: none; }
}
