/* ==========================================================================
   FLOWW Media — public site
   Warm cream canvas, near-black ink, deep amber accent.
   ========================================================================== */

/* -- fonts ----------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2-variations');
}

/* -- tokens ---------------------------------------------------------------- */
:root {
  --bg:            #faf8f4;
  --bg-raised:     #ffffff;
  --bg-sunken:     #f2eee7;
  --ink:           #12100e;
  --ink-soft:      #3a352e;
  --muted:         #6b655c;
  --muted-light:   #948d82;
  --accent:        #b45309;
  --accent-hover:  #92400e;
  --accent-soft:   #fdf3e7;
  --border:        #e5dfd5;
  --border-strong: #d5cdbf;
  --success:       #15803d;
  --danger:        #b42318;
  --danger-soft:   #fef3f2;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 16, 14, .05);
  --shadow:    0 4px 16px rgba(18, 16, 14, .06);
  --shadow-lg: 0 18px 45px rgba(18, 16, 14, .10);

  --wrap:    1200px;
  --wrap-sm: 760px;

  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Author `display` declarations outrank the UA stylesheet's [hidden] rule, so
   a `hidden` element carrying .btn would otherwise stay visible. */
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

/* -- typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }

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

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}

.lede { font-size: 1.13rem; color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Accent only where it means "act on this". */
.accent { color: var(--accent); }

/* -- layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap-sm { max-width: var(--wrap-sm); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(36px, 5vw, 60px); }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* -- nav ------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 248, 244, .93);
}

/* Over a hero image the bar goes translucent-dark, as in the reference design. */
.nav.is-over-hero {
  position: absolute;
  inset-inline: 0;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: none;
}

/* Over a dark hero everything in the bar has to invert, including the
   black-on-transparent shutter mark. */
.nav.is-over-hero .nav-link,
.nav.is-over-hero .nav-brand { color: #fff; }
.nav.is-over-hero .nav-link:hover { color: rgba(255, 255, 255, .78); }
.nav.is-over-hero .nav-mark { filter: brightness(0) invert(1); }
.nav.is-over-hero .nav-toggle { color: #fff; }

.nav.is-over-hero .btn-ghost { color: rgba(255, 255, 255, .82); }
.nav.is-over-hero .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); }

.nav.is-over-hero .btn-dark { background: #fff; color: var(--ink); }
.nav.is-over-hero .btn-dark:hover { background: rgba(255, 255, 255, .88); color: var(--ink); }

.nav.is-over-hero .btn-outline { border-color: rgba(255, 255, 255, .38); color: #fff; }
.nav.is-over-hero .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }

.nav-mark {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  transition: filter .25s var(--ease);
}

.nav-wordmark {
  display: flex;
  align-items: baseline;
  gap: .34em;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: .1em;
}
.nav-wordmark strong { font-weight: 600; }
.nav-wordmark span   { font-weight: 300; opacity: .72; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}

.nav-link {
  color: var(--ink-soft);
  font-size: .93rem;
  font-weight: 400;
  text-decoration: none;
  transition: color .18s var(--ease);
}
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-link.is-active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: inherit;
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .93rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2620; color: #fff; }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(18, 16, 14, .03); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--muted); padding-inline: 14px; }
.btn-ghost:hover { color: var(--ink); background: rgba(18, 16, 14, .04); }

.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: #fff; color: var(--accent); box-shadow: var(--shadow); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #93231a; color: #fff; }

.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* Circular arrow badge, as on the reference "Get Consultation" button. */
.btn-arrow::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor;
  opacity: .16;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H8M17 7v9'/%3E%3C/svg%3E") center / 13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H8M17 7v9'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .22s var(--ease);
}
.btn-arrow:hover::after { transform: translate(2px, -2px); }

/* -- cards ----------------------------------------------------------------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-body { padding: 22px; }
.card-pad-lg { padding: 30px; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* -- badges ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-accent  { background: var(--accent-soft); color: var(--accent); }
.badge-success { background: #ecfdf3; color: var(--success); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); }
.badge-owned   { background: var(--ink); color: #fff; }

/* -- forms ----------------------------------------------------------------- */
.field { margin-bottom: 18px; }

.label {
  display: block;
  margin-bottom: 7px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, .13);
}

.input::placeholder { color: var(--muted-light); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b655c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.input.has-error,
.select.has-error,
.textarea.has-error { border-color: var(--danger); }

.field-error { margin-top: 6px; font-size: .82rem; color: var(--danger); }
.field-hint  { margin-top: 6px; font-size: .82rem; color: var(--muted); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

/* -- flash ----------------------------------------------------------------- */
.flash-stack {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(400px, calc(100vw - 40px));
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 17px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  animation: flash-in .3s var(--ease);
}

.flash-success { border-left: 3px solid var(--success); }
.flash-error   { border-left: 3px solid var(--danger); }
.flash-close   { margin-left: auto; background: none; border: 0; color: var(--muted-light); cursor: pointer; padding: 0 2px; line-height: 1; }
.flash-close:hover { color: var(--ink); }

/* -- returning-season notice (2025–2026 account loss) --------------------- */
.season-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink);
}
.season-notice p { margin: 0; }
.season-notice-icon { color: var(--primary); flex: 0 0 auto; margin-top: 1px; }

@keyframes flash-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* -- auth pages ------------------------------------------------------------ */
.auth-shell {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 48px 24px 80px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.auth-card h1 { font-size: 1.8rem; margin-bottom: .35em; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--muted-light);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* -- footer ---------------------------------------------------------------- */
.footer {
  margin-top: auto;
  padding-block: 52px 34px;
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
}

/* Explicit tracks. `repeat(auto-fit, …)` after a fixed first column collapsed
   to a single track, which stacked the whole footer vertically. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px 32px;
  margin-bottom: 40px;
  align-items: start;
}

.footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--ink-soft); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}

/* -- page shell ------------------------------------------------------------ */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.page-main { flex: 1; }

.page-head { padding-block: clamp(38px, 5vw, 64px) clamp(20px, 3vw, 34px); }
.page-head h1 { margin-bottom: .3em; }

/* -- empty state ----------------------------------------------------------- */
.empty {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty h3 { color: var(--ink); margin-bottom: .4em; }

/* -- hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--nav-h) + 80px) clamp(52px, 8vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

/* Weiser boys media day. The colour behind it matches the frame's darkest
   tone, so the hero never flashes cream before the photo paints. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #14100f;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  /* Biased left of centre: keeps the lit player in the gap between the copy
     and the photo card rather than hidden behind the card. */
  background-position: 42% center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .hero-media { background-image: url('../img/hero-bg-sm.jpg'); }
}

/* The scrim. Weighted left and bottom, where the copy sits, and deliberately
   light through the middle so the subject stays visible rather than being
   flattened into a texture. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(10, 9, 8, .90) 0%,
      rgba(10, 9, 8, .72) 30%,
      rgba(10, 9, 8, .40) 58%,
      rgba(10, 9, 8, .42) 100%),
    linear-gradient(180deg,
      rgba(10, 9, 8, .55) 0%,
      rgba(10, 9, 8, .10) 34%,
      rgba(10, 9, 8, .55) 100%);
}

/* One column on a phone: the copy sits over the whole frame, so the scrim
   has to be even rather than left-weighted. */
@media (max-width: 900px) {
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(10, 9, 8, .72) 0%,
      rgba(10, 9, 8, .66) 45%,
      rgba(10, 9, 8, .82) 100%);
  }
}

/* Copy on the left, anchored to the bottom; photo card on the right. */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  width: 100%;
}

.hero-content { max-width: 620px; }

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 1.1rem;
}

.hero-title {
  color: #fff;
  /* Ceiling lowered from 5rem — the copy column shares the row with the photo
     card now, and 80px type left a one-word last line. */
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.032em;
  margin-bottom: .5em;
  text-wrap: balance;
  /* Holds up wherever the photo is bright behind a word. Cheaper and more
     robust than tuning the scrim for one particular frame. */
  text-shadow: 0 1px 24px rgba(10, 9, 8, .55), 0 1px 3px rgba(10, 9, 8, .35);
}

.hero-sub {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 16px rgba(10, 9, 8, .6);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -- hero photo card ------------------------------------------------------- */
.hero-card {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 70px rgba(10, 9, 8, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-card img { width: 100%; height: 100%; object-fit: cover; }

/* Stands in until a real frame is dropped at assets/img/hero-photo.jpg. */
.hero-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, .5);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, .035) 0 12px,
      transparent 12px 24px
    );
}

.hero-card-placeholder-label {
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .30);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

/* -- steps ----------------------------------------------------------------- */
.step-card {
  padding: 30px 28px 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.step-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.step-number {
  display: inline-block;
  margin-bottom: 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
}

.step-card h3 { font-size: 1.22rem; font-weight: 400; margin-bottom: .5em; }

/* -- value band ------------------------------------------------------------ */
.value-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 22px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.value-item:first-child { border-left: 0; }

.value-figure { font-size: 1.6rem; font-weight: 300; letter-spacing: -.02em; color: var(--ink); }
.value-label  { font-size: .82rem; color: var(--muted); }

/* -- closing CTA ----------------------------------------------------------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 120% at 88% 6%, #3b342b 0%, transparent 60%),
    linear-gradient(140deg, #1c1915 0%, #2c2721 100%);
}

/* -- utilities ------------------------------------------------------------- */
.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-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* -- responsive ------------------------------------------------------------ */
/* Drawer-only action buttons; the desktop bar uses .nav-actions instead. */
.nav-drawer-actions { display: none; }

@media (max-width: 900px) {
  /* One column: copy first, then the card in a wider crop so it doesn't
     dominate a phone screen. */
  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-content { max-width: none; }
  .hero-card { aspect-ratio: 3 / 2; margin-top: 30px; }
}

@media (max-width: 860px) {
  /* The buttons cannot fit beside the wordmark at phone widths — they would
     push the whole page sideways. They move into the drawer instead. */
  .nav-actions { display: none; }

  /* The over-hero rules turn everything in the bar white so it reads against
     the photo. The drawer, though, is an opaque white panel — so that
     inversion has to stop at its edge, or the menu is white on white and
     effectively invisible. */
  .nav.is-over-hero .nav-links .nav-link { color: var(--ink-soft); }
  .nav.is-over-hero .nav-links .nav-link:hover,
  .nav.is-over-hero .nav-links .nav-link.is-active { color: var(--accent); }

  .nav.is-over-hero .nav-drawer-actions .btn-outline {
    border-color: var(--border-strong);
    color: var(--ink);
  }
  .nav.is-over-hero .nav-drawer-actions .btn-outline:hover {
    border-color: var(--ink);
    background: rgba(18, 16, 14, .03);
    color: var(--ink);
  }

  .nav.is-over-hero .nav-drawer-actions .btn-ghost { color: var(--muted); }
  .nav.is-over-hero .nav-drawer-actions .btn-ghost:hover {
    color: var(--ink);
    background: rgba(18, 16, 14, .04);
  }

  .nav.is-over-hero .nav-drawer-actions .btn-primary,
  .nav.is-over-hero .nav-drawer-actions .btn-dark {
    background: var(--accent);
    color: #fff;
  }

  .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 18px;
  }
  .nav-drawer-actions form { width: 100%; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 26px;
    margin: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform .28s var(--ease);
  }
  .nav-links.is-open { transform: none; }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions .btn { padding-inline: 16px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .grid { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .flash-stack { right: 12px; left: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
