/* =====================================================================
   RAWRAWK — unified stylesheet
   Dark, premium, slightly rebellious. Mobile-first. Flexbox + Grid.
   ===================================================================== */

/* ---- Fonts ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Chaney';
  src: url('uploads/CHANEY-UltraExtended.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Product wordmarks (Quasar / Nebula) as headings/subsections */
.chaney { font-family: 'Chaney', var(--font-display); font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; }

/* ---- Design tokens -------------------------------------------------- */
:root {
  --bg:          #231F20;   /* Pantone Black C */
  --bg-2:        #1b1819;
  --surface:     #2c2728;
  --surface-2:   #37312f;
  --line:        rgba(228, 227, 227, 0.12);
  --line-soft:   rgba(228, 227, 227, 0.07);
  --text:        #E4E3E3;   /* Pantone 7541C */
  --text-dim:    #b7b4b0;
  --muted:       #8f8b86;
  --accent:      #FFF287;   /* Pantone 100C — brand yellow */
  --accent-2:    #fff8b8;
  --accent-dim:  rgba(255, 242, 135, 0.13);
  --radius:      20px;
  --radius-sm:   12px;
  --maxw:        1280px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:      0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Hanken Grotesk', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* clip avoids creating a scroll container that kills position:sticky */
  overflow-x: clip;
}

img, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---- Layout helpers ------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: clamp(72px, 10vw, 152px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--alt { background: var(--bg-2); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-dim); max-width: 62ch; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease);
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #231F20; }
.btn--primary:hover { background: var(--accent-2); color: #231F20; }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 18px 38px; font-size: 1.02rem; }

/* Closing CTA band (accent) + on-accent button variants */
.cta-band { background: var(--accent); color: #17130f; padding-block: clamp(48px, 7vw, 92px); }
.cta-band__inner { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.cta-band h2 { color: #17130f; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; }
.cta-band__lead { color: #3a3226; margin-top: 14px; max-width: 52ch; font-size: 1.05rem; }
.eyebrow--ink { color: #6b5d1e; }
.btn--ink { background: #17130f; color: var(--accent); border: 1px solid #17130f; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--ink-ghost { background: transparent; color: #17130f; border: 1px solid rgba(23,19,15,0.45); }
.btn--ink-ghost:hover { border-color: #17130f; background: rgba(23,19,15,0.06); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 860px) {
  .cta-band__inner { grid-template-columns: 1.4fr auto; }
  .cta-band__actions { flex-direction: column; }
}

/* ---- Header / Nav --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(35, 31, 32, 0.94);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav__links a {
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 9px 15px;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn { padding: 10px 22px; min-height: 40px; font-size: 0.88rem; border-radius: 100px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 82% 12%, rgba(255, 242, 135, 0.14), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(255, 242, 135, 0.06), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.hero__intro { position: relative; max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.hero__intro .lead { margin-bottom: 0; }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1.chaney { font-size: clamp(2rem, 9vw, 4.4rem); line-height: 1; overflow-wrap: anywhere; }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Meet Quasar — wide image band (capped at content width) + intro below */
.meet { padding-block: 0 clamp(20px, 3vw, 40px); }
.meet__image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.meet__image img { width: 100%; height: clamp(340px, 50vh, 560px); object-fit: cover; object-position: center 42%; display: block; }
.meet__body { padding-top: clamp(28px, 4vw, 52px); }
.meet__body .eyebrow { margin-bottom: 14px; }
.meet__body h3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; max-width: 20ch; margin-bottom: clamp(20px, 3vw, 34px); }
.meet__cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
.meet__cols p { color: var(--text-dim); }
@media (min-width: 820px) { .meet__cols { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* Full-bleed hero image variant (product pages) */
.hero--image { padding-block: clamp(88px, 15vw, 188px); border-bottom: 1px solid var(--line-soft); }
.hero--image::before {
  background:
    linear-gradient(90deg, rgba(35,31,32,0.92) 0%, rgba(35,31,32,0.70) 34%, rgba(35,31,32,0.20) 72%, rgba(35,31,32,0.05) 100%),
    var(--hero-img) center right / cover no-repeat;
}
@media (max-width: 760px) {
  .hero--image::before {
    background:
      linear-gradient(to top, rgba(35,31,32,0.96) 8%, rgba(35,31,32,0.72) 46%, rgba(35,31,32,0.42) 100%),
      var(--hero-img) center / cover no-repeat;
  }
}

/* Light-background hero (three finishes): stronger, full-width scrim */
.hero--finishes { padding-block: clamp(72px, 12vw, 150px); }
.hero--finishes::before {
  background:
    linear-gradient(90deg, rgba(20,17,18,0.90) 0%, rgba(20,17,18,0.72) 40%, rgba(20,17,18,0.50) 70%, rgba(20,17,18,0.42) 100%),
    linear-gradient(to top, rgba(20,17,18,0.55), rgba(20,17,18,0.15) 60%),
    var(--hero-img) center 35% / cover no-repeat;
}
@media (max-width: 760px) {
  .hero--finishes::before {
    background:
      linear-gradient(to top, rgba(20,17,18,0.94) 10%, rgba(20,17,18,0.62) 55%, rgba(20,17,18,0.5) 100%),
      var(--hero-img) center 35% / cover no-repeat;
  }
}

/* ---- Product showcase (home) --------------------------------------- */
.products { display: grid; gap: 28px; grid-template-columns: 1fr; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255,242,135,0.45); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: clamp(24px, 4vw, 38px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-card__body h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-card__sub { color: var(--accent); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
.product-card__price { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-top: 4px; }
.product-card__note { font-size: 0.86rem; color: var(--muted); }
.product-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }

/* ---- Section headings ---------------------------------------------- */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 18px; }

/* ---- Feature rows (product pages) ---------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 110px); }
.feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f2f0ed; /* studio seamless for product frames */
  /* Consistent tile size across every feature row (image never outscales the copy) */
  aspect-ratio: 4 / 3;
  width: 100%;
}
/* Pre-framed assets fill the tile evenly */
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.7s var(--ease);
}
.feature__media:hover img { transform: scale(1.03); }
.feature__body h3 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 600; margin-bottom: 16px; }
.feature__body p { color: var(--text-dim); margin-bottom: 14px; }
.feature__body p:last-child { margin-bottom: 0; }
/* Manifesto row — top-align columns so the shorter block isn't stranded mid-height */
.feature--why { align-items: start; }
.feature__statement {
  border-top: 2px solid var(--accent);
  padding-top: clamp(20px, 2.4vw, 30px);
}
.feature__creed {
  font-family: var(--font-display); font-weight: 600;
  color: var(--text) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.35;
}
@media (min-width: 900px) {
  .feature--why .feature__statement { padding-left: clamp(24px, 3vw, 48px); border-top: 0; border-left: 2px solid var(--accent); padding-top: 6px; }
}

/* Chips (e.g. Airframe finishes) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.chip .dot { width: 11px; height: 11px; border-radius: 50%; }

/* Weight callout (construction section) — compact, accent colours */
.weight-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
}
.weight-badge__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255, 242, 133, 0.35);
}
.weight-badge__icon svg { width: 14px; height: 14px; display: block; }
.weight-badge__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}
.weight-badge__value > span:not(.weight-badge__label) {
  color: var(--accent);
  font-weight: 600;
}
.weight-badge__label {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  color: var(--muted);
  line-height: inherit;
}
.weight-badge__label::before {
  content: "·";
  margin: 0 0.4em;
  color: var(--line);
}

/* ---- Spec table ----------------------------------------------------- */
.specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs table { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 16px clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.specs th {
  font-family: var(--font-display); font-weight: 500; color: var(--muted);
  font-size: 0.9rem; width: 38%; letter-spacing: 0.02em;
}
.specs td { color: var(--text); }
.specs tbody tr { transition: background 0.25s var(--ease); }
.specs tbody tr:hover { background: var(--surface-2); }

/* ---- Video grid ----------------------------------------------------- */
.video-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}
.video[data-yt] { background-size: cover; background-position: center; }
.video[data-yt]:not(.is-playing)::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.05) 55%);
}
.video[data-yt]:not(.is-playing)::after {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23231F20'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.6);
  transition: transform 0.3s var(--ease);
}
.video:hover { transform: translateY(-4px); border-color: rgba(255,242,135,0.45); }
.video[data-yt]:not(.is-playing):hover::after { transform: translate(-50%, -50%) scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Testimonials — full grid, person-first cards (compact) ------- */
.quotes-rail {
  margin-top: 4px;
}
/* Hide carousel chrome (kept in HTML for easy rollback if needed) */
.quotes-rail__toolbar,
.quotes-rail__fade {
  display: none !important;
}

.quotes {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: visible;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* ~25% tighter vertical footprint vs previous padding/gap/avatar scale */
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.2vw, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.quote:hover {
  border-color: rgba(255, 242, 135, 0.42);
  box-shadow: 0 14px 32px -24px rgba(0, 0, 0, 0.7);
  transform: translateY(-3px);
}
/* Person → endorsement → full bio → social */
.quote__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0;
}
.quote__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 242, 135, 0.65);
  box-shadow:
    0 0 0 4px rgba(255, 242, 135, 0.08),
    0 10px 20px -8px rgba(0, 0, 0, 0.6);
  flex: none;
  margin-bottom: 8px;
}
.quote__id {
  width: 100%;
}
.quote__id strong,
.quote__person strong {
  font-family: var(--font-display);
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.quote__id span,
.quote__person span {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 3px;
  line-height: 1.3;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 0.55;
  color: var(--accent);
  height: 12px;
  text-align: center;
  opacity: 0.85;
  margin-top: 0;
}
.quote blockquote {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  font-style: italic;
  text-align: center;
  line-height: 1.4;
  width: 100%;
}
.quote__bio {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  /* Full bio — never clamp */
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.quote__social {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}
.quote__social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.quote__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.quote__social svg { width: 13px; height: 13px; }

@media (min-width: 700px) {
  .quotes { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .quote__avatar { width: 96px; height: 96px; }
}
@media (min-width: 1000px) {
  /* 3-up grid so all six cards show without horizontal scroll */
  .quotes { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .quote { transition: none; }
  .quote:hover { transform: none; }
}

/* ---- FAQ ------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq details[open] { border-color: rgba(255,242,135,0.45); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem; color: var(--accent); line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-dim); }

/* ---- Inquiry / order flow ------------------------------------------- */
.inquiry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); }
.inquiry__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.inquiry__context h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 18px; }
.inquiry__context p { color: var(--text-dim); }
.inquiry__hook {
  margin-top: 22px;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 0.98rem;
}
.inquiry__steps { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; list-style: none; padding: 0; }
.inquiry__steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); font-size: 0.96rem; }
.inquiry__steps .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(255,242,135,0.45);
}

/* ---- Forms ---------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.01em; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a877e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form__note { font-size: 0.82rem; color: var(--muted); }

/* ---- Modal ---------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 44px);
  box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal__dialog .eyebrow, .modal__title { padding-right: 52px; }
.modal__title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; margin: 10px 0 0; }
.modal__steps { margin-bottom: 30px; }
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal__head h2 { font-size: 1.7rem; font-weight: 700; }
.modal__close {
  position: absolute; top: clamp(18px, 4vw, 30px); right: clamp(18px, 4vw, 30px); z-index: 3;
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font-size: 1.3rem; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__close:hover { background: var(--accent-dim); border-color: var(--accent); transform: rotate(90deg); }
.modal__hook { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 22px; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding-block: clamp(48px, 6vw, 76px); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer__brand img { height: 44px; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text-dim); font-size: 0.95rem; }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-dim);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: 0.85rem;
}

/* ---- Newsletter ----------------------------------------------------- */
.subscribe { text-align: center; max-width: 620px; margin-inline: auto; }
.subscribe h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 14px; }
.subscribe > p { color: var(--text-dim); margin-bottom: 26px; }
.subscribe__form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: stretch; position: relative; }
.subscribe__form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.subscribe__form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--surface);
}
.subscribe__form input[type="email"]::placeholder { color: var(--muted); }
.subscribe__form .btn { flex: 0 0 auto; align-self: stretch; display: inline-flex; align-items: center; }
/* Honeypot fields — hidden from people, visible to naive bots */
.subscribe__honey,
.form-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.subscribe__note {
  margin-top: 18px;
  color: var(--accent) !important;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.subscribe__fine {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  font-size: 0.82rem !important;
  color: var(--muted) !important;
}
.subscribe__fine a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.subscribe__fine a:hover { color: var(--accent); }

/* ---- Toasts (celebratory form success / errors) -------------------- */
.site-toast-host {
  position: fixed;
  z-index: 800;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  background: transparent;
  transition: background 0.35s var(--ease);
}
.site-toast-host.is-active { pointer-events: auto; }
.site-toast-host.is-in {
  background: rgba(5, 5, 7, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-toast {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: min(420px, 100%);
  width: 100%;
  padding: 22px 24px 22px 20px;
  border-radius: 18px;
  font-family: var(--font-display);
  text-align: left;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(28px) scale(0.88);
  filter: blur(4px);
  transition:
    opacity 0.38s var(--ease),
    transform 0.55s cubic-bezier(0.22, 1.4, 0.36, 1),
    filter 0.38s var(--ease);
  overflow: hidden;
}
.site-toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.site-toast.is-out {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  filter: blur(2px);
  transition-duration: 0.32s;
  transition-timing-function: var(--ease);
}
.site-toast.is-reduced {
  transition: opacity 0.2s ease;
  transform: none;
  filter: none;
}
.site-toast.is-reduced.is-in { opacity: 1; }
.site-toast.is-reduced.is-out { opacity: 0; }

.site-toast--success {
  color: var(--text);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 242, 135, 0.16), transparent 55%),
    linear-gradient(165deg, #322c2d 0%, #231f20 55%, #1b1819 100%);
  border-color: rgba(255, 242, 135, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 242, 135, 0.08),
    0 24px 60px -16px rgba(0, 0, 0, 0.75),
    0 0 48px -8px rgba(255, 242, 135, 0.22);
}
.site-toast--error {
  color: #ffd6d9;
  background: linear-gradient(165deg, #4a2428 0%, #3a1f22 100%);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.75);
}

.site-toast__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #231F20;
  box-shadow:
    0 0 0 4px rgba(255, 242, 135, 0.18),
    0 8px 20px rgba(255, 242, 135, 0.25);
}
.site-toast--success .site-toast__icon {
  animation: toast-icon-pop 0.65s cubic-bezier(0.22, 1.5, 0.36, 1) 0.05s both;
}
.site-toast--error .site-toast__icon {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}
.site-toast__icon svg { width: 26px; height: 26px; display: block; }
.site-toast__check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: toast-check-draw 0.45s var(--ease) 0.28s forwards;
}
.site-toast.is-reduced .site-toast__check { stroke-dashoffset: 0; animation: none; }
.site-toast.is-reduced .site-toast__icon { animation: none; }

.site-toast__body { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.site-toast__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  animation: toast-text-in 0.45s var(--ease) 0.12s both;
}
.site-toast--error .site-toast__title { color: #ffb4b8; }
.site-toast__msg {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dim);
  animation: toast-text-in 0.45s var(--ease) 0.18s both;
}
.site-toast--error .site-toast__msg { color: #ffd6d9; }
.site-toast.is-reduced .site-toast__title,
.site-toast.is-reduced .site-toast__msg { animation: none; }

/* Soft yellow sparks */
.site-toast__sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.site-toast__sparks span {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: toast-spark 0.85s var(--ease) calc(0.08s + var(--i) * 0.04s) both;
  box-shadow: 0 0 8px rgba(255, 242, 135, 0.8);
  transform: rotate(calc(var(--i) * 45deg)) translateY(0);
}
@keyframes toast-icon-pop {
  0% { transform: scale(0); }
  55% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes toast-check-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes toast-text-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-spark {
  0% { opacity: 0; transform: rotate(calc(var(--i) * 45deg)) translateY(0) scale(0.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 45deg)) translateY(-42px) scale(0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .site-toast-host.is-in { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---- Reveal-on-scroll ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ----------------------------------------------------- */
@media (min-width: 700px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__media { order: 2; }
  .inquiry__grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(35, 31, 32, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(20px, 5vw, 48px) 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  body.nav-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 8px; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__cta .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Expanding product showcase (home hero) ------------------------ */
.showcase {
  display: flex;
  gap: 14px;
  height: clamp(480px, 66vh, 680px);
}
.showcase-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background-image: var(--panel-img);
  background-size: cover;
  background-position: var(--panel-pos, center);
  flex-grow: 1;
  transition: flex-grow 0.7s var(--ease), background-position 1s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--line);
}
/* softer bottom scrim so the card can be lighter and hardware stays visible */
.showcase-panel::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,11,12,0.5) 0%, rgba(14,11,12,0) 42%);
  transition: opacity 0.4s var(--ease);
}
.showcase-panel.is-active { flex-grow: 1.75; }
.showcase-panel:hover { box-shadow: 0 0 0 2px var(--accent) inset; }

/* content card sits at the bottom, constrained — never covers the whole product */
.showcase-panel__text {
  position: absolute; z-index: 2;
  left: clamp(12px, 1.4vw, 18px); right: clamp(12px, 1.4vw, 18px); top: clamp(12px, 1.4vw, 18px);
  max-width: 460px;
  padding: clamp(13px, 1.4vw, 20px) clamp(16px, 1.7vw, 24px);
  background: rgba(18,15,16,0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: calc(var(--radius) - 6px);
}
.showcase-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.showcase-panel__sub {
  font-family: var(--font-display); font-weight: 600;
  color: var(--accent); font-size: 0.86rem; letter-spacing: 0.02em;
  display: block; margin-bottom: 5px;
  white-space: nowrap;
}
.showcase-panel__text h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1; white-space: nowrap;
  color: #fff;
  transition: font-size 0.6s var(--ease);
}
/* persistent "clickable" affordance — always visible, even when collapsed */
.showcase-panel__arrow {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 1.15rem; line-height: 1;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.showcase-panel:hover .showcase-panel__arrow,
.showcase-panel.is-active .showcase-panel__arrow {
  background: var(--accent); border-color: var(--accent); color: #17130f; transform: translateX(2px);
}
/* Collapsed panels are narrow — shrink the CHANEY name so it never clips */
.showcase-panel:not(.is-active) .showcase-panel__text h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.showcase-panel:not(.is-active) .showcase-panel__sub { font-size: 0.8rem; }
.showcase-panel__price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: #fff !important; margin-top: 9px;
}
.showcase-panel__price span { font-size: 0.72em; color: rgba(255,255,255,0.7); }
.showcase-panel__more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--ease), opacity 0.45s var(--ease), margin-top 0.45s var(--ease);
  margin-top: 0;
}
.showcase-panel__more > div { overflow: hidden; min-height: 0; }
.showcase-panel.is-active .showcase-panel__more {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 11px;
}
.showcase-panel__more p { color: rgba(255,255,255,0.86); max-width: 46ch; }
.showcase-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.showcase-panel__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: transparent;
}
.showcase-panel__actions .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,0,0,0.25);
}
.showcase-panel__photo { display: none; }
.showcase-panel__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--panel-pos, center);
}
.showcase-hint {
  text-align: center; margin-top: 18px;
  font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/*
  Phone + tablet: stack both products fully.
  The desktop expand interaction collapses the inactive panel to a sliver —
  that reads as the image "disappearing" on narrow screens.
*/
@media (max-width: 900px) {
  .showcase {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  .showcase-panel {
    flex: none !important;
    flex-grow: 0 !important;
    height: auto;
    min-height: 0;
    background-image: none !important;
    background-color: var(--surface-2);
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }
  .showcase-panel.is-active { flex-grow: 0 !important; }
  .showcase-panel::after { display: none; }
  .showcase-panel:hover { box-shadow: none; }
  .showcase-panel__photo {
    display: block;
    order: -1;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 220px;
    max-height: none;
    flex: none;
    background-color: var(--surface-2);
    background-image: var(--panel-img);
    background-size: cover;
    background-position: var(--panel-pos, center);
    background-repeat: no-repeat;
  }
  .showcase-panel__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--panel-pos, center);
  }
  .showcase-panel__text {
    position: static;
    max-width: none;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    backdrop-filter: none;
    left: auto;
    right: auto;
    top: auto;
    padding: clamp(16px, 4vw, 22px);
  }
  .showcase-panel__text h3,
  .showcase-panel:not(.is-active) .showcase-panel__text h3 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    white-space: normal;
  }
  .showcase-panel__sub,
  .showcase-panel:not(.is-active) .showcase-panel__sub {
    font-size: 0.88rem;
    white-space: normal;
  }
  /* Always show full copy + CTAs on small screens */
  .showcase-panel__more {
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
    margin-top: 12px !important;
  }
  .showcase-panel__more > div { overflow: visible; min-height: auto; }
  .showcase-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-panel__actions .btn { width: 100%; justify-content: center; }
  .showcase-panel__arrow { display: none; }
  .showcase-hint {
    display: block;
    margin-top: 14px;
    letter-spacing: 0.08em;
    text-transform: none;
    font-size: 0.88rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-panel, .showcase-panel__photo, .showcase-panel__more { transition: none; }
}

/* ---- Interior page hero -------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 44px); overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 85% 0%, rgba(255,242,135,0.10), transparent 55%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; margin-bottom: 16px; }
.page-hero p { color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 60ch; }
.page-hero .updated { color: var(--muted); font-size: 0.9rem; margin-top: 12px; font-family: var(--font-display); }

/* ---- Long-form prose (legal, articles) ----------------------------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin-top: 1.8em; }
.prose h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 600; color: var(--text); margin-top: 1.5em; }
.prose h4 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.5em; }
.prose li { padding-left: 0.2em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 1.2em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose thead th { background: var(--surface-2); color: var(--text); font-family: var(--font-display); font-weight: 600; }
.prose tbody td { color: var(--text-dim); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 20px; margin-left: 0; color: var(--text); font-style: italic; }
.prose figure {
  margin: 1.4em 0;
  max-width: 100%;
}
.prose figure img {
  width: 100%;
  height: auto;
  max-height: min(560px, 70vh);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; font-style: italic; }
.prose .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6em; }
.prose .tags span { font-family: var(--font-display); font-size: 0.8rem; color: var(--text-dim); border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; }
.prose .callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

/* ---- Journal grid --------------------------------------------------- */
.journal-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 52px); }
.journal-cats a {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line); color: var(--text-dim);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.journal-cats a:hover, .journal-cats a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.journal-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(255,242,135,0.4); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__body h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.post-card__body h2 a { color: var(--text); }
.post-card__body h2 a:hover { color: var(--accent); }
.post-card__excerpt { color: var(--text-dim); font-size: 0.96rem; flex: 1; }
.post-card__meta { font-family: var(--font-display); font-size: 0.82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

@media (min-width: 720px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Article layout (journal: science / lab note) ------------------- */
.article-hero { padding-block: clamp(44px, 6vw, 80px) 0; }
.article-hero__inner { max-width: 760px; }
.article-hero--journal .article-hero__inner {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.article-hero--journal .byline { justify-content: center; }
.article-hero .kicker { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 18px; }
.article-hero .byline { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/*
  Journal hero image — same measure as the prose column (~680–720px).
*/
.article-figure {
  max-width: min(45rem, 100%);
  margin: clamp(16px, 2.5vw, 28px) auto 0;
  padding-inline: clamp(20px, 5vw, 48px);
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  background: transparent;
}
.article-figure img,
.article-figure--wide img {
  width: 100%;
  height: auto;
  max-height: min(360px, 42vh);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.article-figure--wide {
  max-width: min(45rem, 92vw);
}

/*
  Article body layout
  -------------------
  • Prose is a single centred column (~680–720px), centred in the viewport.
  • Left “On this page” rail sits in the outer margin and does NOT shift the prose.
  • Wide technical figures/charts/tables can break out to ~960–1040px, still centred.
*/
.article-section {
  padding-top: clamp(36px, 5vw, 64px) !important;
  overflow: visible !important;
}
.article-layout {
  --article-prose-w: 42.5rem;   /* ~680px */
  --article-prose-max: 45rem;   /* ~720px */
  --article-rail-w: 220px;
  --article-rail-gap: 1.75rem;
  --article-wide-max: 65rem;    /* ~1040px */
  --article-header-offset: 96px;
  display: block;
  width: 100%;
  overflow: visible !important;
  position: relative;
}
/* Centred reading column — independent of the rail */
.article-layout__row {
  position: relative;
  display: block;
  width: 100%;
  max-width: min(var(--article-prose-max), 100%);
  margin-inline: auto;
  overflow: visible;
}
.article-layout__main {
  min-width: 0;
  width: 100%;
  overflow: visible;
}
.article-layout__main > .prose,
.article-layout .prose {
  max-width: min(var(--article-prose-max), 100%) !important;
  width: 100%;
  min-width: 0;
  margin-inline: 0;
}

/* ---- Editorial rail (TOC) ----------------------------------------- */
.article-rail {
  min-width: 0;
  z-index: 2;
}
.article-rail__sticky {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
/* Hero already shows author / date / length / category — keep rail lean */
.article-rail__kicker,
.article-rail__meta {
  display: none !important;
}
.article-rail__tags {
  margin: 0 !important;
  gap: 6px !important;
}
.article-rail__tags span {
  font-size: 0.72rem !important;
  padding: 5px 10px !important;
}
.article-rail__back { margin: 2px 0 0; }

/* Desktop: float rail to the left of the centred prose, sticky while reading.
   1240px leaves room for ~720px prose + 220px rail + gap without clipping. */
@media (min-width: 1240px) {
  .article-rail {
    position: absolute;
    width: var(--article-rail-w);
    right: calc(100% + var(--article-rail-gap));
    top: 0;
    bottom: 0;
    height: auto;
  }
  .article-rail__sticky {
    position: sticky;
    top: var(--article-header-offset);
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
  /* Always-open look for details on desktop — summary is mobile-only chrome */
  .article-rail__details {
    border: none;
    padding: 0;
    margin: 0;
  }
  .article-rail__details > summary {
    display: none;
  }
}

/* Tablet / mobile: TOC above article as collapsible control */
@media (max-width: 1239px) {
  .article-layout__row {
    display: flex;
    flex-direction: column;
    max-width: min(var(--article-prose-max), 100%);
  }
  .article-rail {
    position: static;
    width: 100%;
    order: -1;
    margin-bottom: 1.25rem;
  }
  .article-rail__sticky {
    max-height: none;
    overflow: visible;
    padding: 0;
    border: none;
    background: transparent;
    gap: 12px;
  }
  .article-rail__details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 0;
  }
  .article-rail__details > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .article-rail__details > summary::-webkit-details-marker { display: none; }
  .article-rail__details > summary::marker { content: none; }
  .article-rail__summary-hint {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: none;
  }
  .article-rail__details[open] > summary {
    border-bottom: 1px solid var(--line-soft);
    color: var(--accent);
  }
  .article-rail__details .article-rail__toc {
    padding: 12px 16px 16px;
  }
  .article-rail__tags,
  .article-rail__back {
    padding-inline: 4px;
  }
}

.article-rail__toc-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 1239px) {
  /* summary already says “On this page” */
  .article-rail__toc-label { display: none; }
}
.article-rail__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-rail__toc-list a {
  line-height: 1.35;
  text-decoration: none;
  display: block;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
/* H2 — clear section markers */
.article-rail__toc-item--h2 {
  margin-top: 10px;
}
.article-rail__toc-item--h2:first-child {
  margin-top: 0;
}
.article-rail__toc-item--h2 a {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  border-left: 2px solid rgba(255, 242, 135, 0.35);
  padding: 6px 8px 6px 10px;
  letter-spacing: 0.01em;
}
/* H3 — nested under section */
.article-rail__toc-item--h3 a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
  border-left: 1px solid var(--line);
  padding: 4px 8px 4px 18px;
  margin-left: 4px;
}
/* H4 — deeper nest, quieter */
.article-rail__toc-item--h4 a {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
  border-left: 1px solid transparent;
  padding: 3px 8px 3px 26px;
  margin-left: 4px;
}
.article-rail__toc-list a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}
.article-rail__toc-list a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}
.article-rail__toc-item--h2 a.is-active {
  background: rgba(255, 242, 135, 0.06);
  border-radius: 0 6px 6px 0;
}
.article-rail__toc-item--h3 a.is-active,
.article-rail__toc-item--h4 a.is-active {
  color: var(--accent);
}

/* ---- In-body media ------------------------------------------------ */
/* Supporting photos match the text column width */
.article-layout .prose figure {
  max-width: 100%;
  margin-inline: 0;
}
.article-layout .prose figure img {
  width: 100%;
  height: auto;
  max-height: min(560px, 70vh);
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--surface-2);
}

/*
  Wide treatment is for technical visuals only (charts / data tables).
  Prefer article-chart--wide and table-scroll--wide over figure--wide for photos.
*/
.article-layout .prose .article-chart--wide,
.article-layout .prose .table-scroll--wide,
.article-layout .prose .is-wide {
  --_wide: min(var(--article-wide-max), calc(100vw - 2rem));
  width: var(--_wide);
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
}
/* Optional: diagrams that need a bit more presence still stay near prose measure */
.article-layout .prose .figure--wide {
  max-width: 100%;
  margin-inline: 0;
  width: auto;
  left: auto;
  transform: none;
}
.article-layout .prose .figure--wide img {
  max-height: min(440px, 50vh);
  object-fit: contain;
  background: var(--surface-2);
}
/* Captions stay on the prose measure when possible */
.article-layout .prose .article-chart--wide > .article-chart__cap {
  max-width: min(var(--article-prose-max), 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

/* Interactive Plotly chart embed */
.article-chart {
  margin: 1.8em 0 2em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f0d0e;
}
.article-chart__takeaway {
  margin: 0 !important;
  padding: 13px clamp(14px, 2.5vw, 22px);
  background: var(--accent-dim);
  color: var(--text) !important;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}
.article-chart__takeaway strong { color: var(--accent); font-weight: 600; }
.article-chart__frame {
  position: relative;
  width: 100%;
  height: clamp(420px, 52vh, 580px);
  background: #0f0d0e;
}
.article-chart__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.article-chart__cap {
  margin: 0 !important;
  padding: 11px clamp(14px, 2.5vw, 22px);
  color: var(--muted) !important;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0f0d0e;
}
/* Mobile: pan sideways for readable plot width + open full chart */
.chart-pan {
  position: relative;
  width: 100%;
  background: #0f0d0e;
}
.chart-pan__scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.chart-pan__scroll iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.chart-pan__hint {
  display: none;
  margin: 0;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 242, 135, 0.06);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.chart-pan__hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.chart-pan__hint a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .article-chart__frame {
    height: auto;
    min-height: 0;
  }
  .article-chart__frame.chart-pan {
    display: flex;
    flex-direction: column;
  }
  .article-chart .chart-pan__scroll {
    height: min(58vh, 460px);
    min-height: 320px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(255, 242, 135, 0.35) transparent;
  }
  .article-chart .chart-pan__scroll iframe {
    position: relative;
    inset: auto;
    width: max(640px, 100%);
    min-width: 640px;
    height: 100%;
  }
  .article-chart .chart-pan__hint { display: block; }
}

/* Tables: scroll on small screens; wide class can break out on desktop */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0;
  border-radius: var(--radius-sm);
}
.table-scroll table {
  min-width: 520px;
  margin-top: 0;
}

/*
  .prose-cols wrappers are legacy from the dual-column experiment.
  display:contents keeps a single column and normal .prose spacing.
*/
.article-layout__main .prose-cols {
  display: contents;
}

.back-link { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* ---- Modal expand strips ----------------------------------------------
   Desktop sticky runway:
   1) Image/graph alone at a large fixed width
   2) Scroll opens a text drawer; media NEVER shrinks — frame grows wider
   ------------------------------------------------------------------ */
.modal-expand {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-block: clamp(48px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-expand__frame {
  --p: 0;
  /* Large default so even the closed state feels substantial */
  --text-w: clamp(280px, 22vw, 400px);
  --open-max: 96vw;
  --media-w: min(1400px, calc(var(--open-max) - var(--text-w)));
  --strip-h: clamp(460px, 60vh, 640px);
  width: var(--media-w);
  max-width: var(--open-max);
  height: var(--strip-h);
  border-radius: 20px;
  overflow: hidden;
  background: #0f0d0e;
  border: 1px solid var(--line);
  box-shadow: 0 36px 80px -36px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  will-change: width;
}
.modal-expand__grid {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  position: relative;
}

/* Text drawer — clipped; content fixed-width, glued to media edge */
.modal-expand__text {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 0;
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #0f0d0e;
}
.modal-expand__text-inner {
  width: 100%;
  max-width: 58ch;
  box-sizing: border-box;
  padding: clamp(28px, 5vw, 40px) clamp(20px, 5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: calc(0.25 + 0.75 * var(--p));
  transform: translate3d(calc((1 - var(--p)) * 16px), 0, 0);
  will-change: transform, opacity;
}
/* Eyebrow is a <p> — must beat .modal-expand__text p color */
.modal-expand__text .eyebrow {
  margin-bottom: clamp(10px, 1.4vw, 14px);
  color: var(--accent);
}
.modal-expand__text .eyebrow .chaney {
  color: var(--accent);
}
.modal-expand__text h3 {
  font-size: clamp(1.45rem, 2.2vw + 0.4rem, 2.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: clamp(12px, 1.6vw, 18px);
  max-width: 16ch;
  text-wrap: balance;
}
.modal-expand__text p {
  color: var(--text-dim);
  margin-bottom: clamp(10px, 1.3vw, 14px);
  line-height: 1.62;
  max-width: 36ch;
  font-size: clamp(0.95rem, 0.3vw + 0.88rem, 1.05rem);
}
.modal-expand__text p:last-child { margin-bottom: 0; }
.modal-expand__text a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 2px;
}

/* Media / chart — fixed size on desktop; sits above the drawer */
.modal-expand__chart,
.modal-expand__media {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  background: #0f0d0e;
  box-shadow: -16px 0 36px -24px rgba(0, 0, 0, calc(0.55 * var(--p)));
}
.modal-expand__chart {
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  height: 100%;
  min-height: 420px;
}
.modal-expand__chart iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  align-self: stretch;
}
.modal-expand__media {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  min-height: clamp(320px, 54vh, 500px);
  overflow: hidden;
}
.modal-expand__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.meet .modal-expand__media {
  background: #061428; /* deep blue match for spotlight hero */
}
/* Prefer bottom of frame so feet + spotlight pool stay visible (strip is wider than 4:3) */
.meet .modal-expand__media img {
  object-position: center 72%;
}

.meet .modal-expand { margin-block: 0; }
.meet .modal-expand__text h3 { max-width: 20ch; }

.modal-expand__takeaway {
  margin: 0; padding: 13px clamp(16px, 3vw, 26px);
  background: var(--accent-dim); color: var(--text);
  border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; line-height: 1.4;
  flex: 0 0 auto;
}
.modal-expand__takeaway strong { color: var(--accent); font-weight: 600; }
.modal-expand__cap {
  margin: 0;
  padding: 11px clamp(16px, 3vw, 26px);
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line-soft);
  flex: 0 0 auto;
}

/* Desktop: sticky runway + large fixed media + growing drawer */
@media (min-width: 900px) {
  .modal-expand {
    /* Scroll distance while pinned — scrub opens the drawer */
    height: 145vh;
    margin-block: clamp(32px, 5vw, 72px);
    justify-content: flex-start;
  }
  .meet .modal-expand {
    height: 150vh;
    margin-block: 0;
  }
  .modal-expand__frame {
    /*
      Media is the hero. Closed ≈ full content width; open adds the
      drawer without shrinking media (total capped at 96vw).
    */
    --text-w: clamp(300px, 22vw, 400px);
    --open-max: 96vw;
    --media-w: min(1400px, calc(var(--open-max) - var(--text-w)));
    --strip-h: clamp(500px, 62vh, 680px);
    position: sticky;
    top: max(88px, calc((100vh - var(--strip-h)) * 0.35));
    /* Only the drawer adds width — media stays fixed */
    width: calc(var(--media-w) + var(--p) * var(--text-w));
    max-width: var(--open-max);
    height: var(--strip-h);
    min-height: var(--strip-h);
    border-radius: calc(20px - 6px * var(--p));
    /* No sideways float — stay centered as the strip grows */
    transform: none;
    margin-inline: auto;
  }
  /* Meet has longer copy — wider drawer; strip a touch shorter to crop top white */
  .meet .modal-expand__frame {
    --text-w: clamp(360px, 28vw, 460px);
    --open-max: 96vw;
    --media-w: min(1280px, calc(var(--open-max) - var(--text-w)));
    --strip-h: clamp(460px, 54vh, 600px);
  }
  .meet .modal-expand__media img {
    object-fit: cover;
    object-position: center 72%;
  }
  .modal-expand__grid {
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    min-height: 100%;
  }
  .modal-expand__text {
    flex: 0 0 calc(var(--p) * var(--text-w));
    width: calc(var(--p) * var(--text-w));
    max-width: var(--text-w);
    height: 100%;
    align-self: stretch;
    align-items: center;
    justify-content: flex-end;
    border-right: 1px solid rgba(228, 227, 227, calc(0.08 * var(--p)));
  }
  .modal-expand__text-inner {
    width: var(--text-w);
    max-width: var(--text-w);
    flex-shrink: 0;
    height: auto;
    max-height: 100%;
    overflow-y: auto;
    padding: clamp(28px, 3vw, 48px) clamp(18px, 1.8vw, 28px) clamp(28px, 3vw, 48px) clamp(24px, 2.4vw, 40px);
    opacity: calc(0.15 + 0.85 * var(--p));
    transform: translate3d(calc((1 - var(--p)) * 28px), 0, 0);
  }
  /* Meet: no inner scroll — room is provided via wider/taller drawer */
  .meet .modal-expand__text-inner {
    overflow-y: hidden;
    max-height: none;
    height: 100%;
    justify-content: center;
    padding: clamp(24px, 2.8vw, 40px) clamp(16px, 1.6vw, 24px) clamp(24px, 2.8vw, 40px) clamp(22px, 2.2vw, 36px);
  }
  .meet .modal-expand__text p {
    max-width: 38ch;
    font-size: clamp(0.92rem, 0.25vw + 0.86rem, 1.02rem);
    margin-bottom: clamp(8px, 1.1vw, 12px);
    line-height: 1.58;
  }
  .meet .modal-expand__text h3 {
    max-width: 16ch;
    font-size: clamp(1.35rem, 1.8vw + 0.4rem, 1.9rem);
    margin-bottom: clamp(10px, 1.3vw, 16px);
  }
  @supports (align-items: safe center) {
    .modal-expand__text { align-items: safe center; }
  }
  /* FIXED media width — never gives space to the drawer */
  .modal-expand__chart,
  .modal-expand__media {
    flex: 0 0 var(--media-w);
    width: var(--media-w);
    max-width: var(--media-w);
    min-width: var(--media-w);
    border-top: none;
    align-self: stretch;
    height: 100%;
    min-height: 0;
  }
  .modal-expand__chart {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .modal-expand__chart iframe {
    min-height: 0;
    height: 100%;
  }
  .modal-expand__media { min-height: 100%; }
  .modal-expand__text h3 { max-width: 15ch; }
  .modal-expand__text p { max-width: 34ch; }
}

/* Mid widths: keep media dominant */
@media (min-width: 900px) and (max-width: 1200px) {
  .modal-expand__frame {
    --text-w: clamp(260px, 24vw, 340px);
    --open-max: 96vw;
    --media-w: min(900px, calc(var(--open-max) - var(--text-w)));
  }
  .meet .modal-expand__frame {
    --text-w: clamp(300px, 28vw, 380px);
    --media-w: min(820px, calc(var(--open-max) - var(--text-w)));
    --strip-h: clamp(440px, 52vh, 560px);
  }
  .modal-expand__text h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); max-width: 14ch; }
  .modal-expand__text p { max-width: 32ch; font-size: 0.96rem; }
  .meet .modal-expand__text h3 { max-width: 15ch; font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
  .meet .modal-expand__text p { max-width: 34ch; font-size: 0.92rem; }
}

/* Mobile: match feature rows — media on top, full-width copy below */
@media (max-width: 899px) {
  .modal-expand {
    height: auto;
    /* Stay in the page container (like .feature), no full-bleed breakout */
    width: 100%;
    margin-left: 0;
    margin-block: clamp(40px, 8vw, 72px);
    align-items: stretch;
  }
  .meet .modal-expand {
    margin-block: 0;
  }
  .modal-expand__frame {
    --p: 1; /* no half-open drawer state on small screens */
    --media-w: 100%;
    --text-w: auto;
    --strip-h: auto;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    min-height: 0;
    border-radius: var(--radius) !important;
    border: 1px solid var(--line);
    transform: none !important;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }
  .modal-expand__grid {
    flex-direction: column;
    height: auto;
    gap: clamp(24px, 5vw, 40px);
  }
  /* Image/graph first, then body — same rhythm as .feature */
  .modal-expand__media,
  .modal-expand__chart { order: 1; }
  .modal-expand__text { order: 2; }

  .modal-expand__text {
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    flex: 0 0 auto;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .modal-expand__text-inner {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    /* Fully readable — no scroll-linked fade/offset on mobile */
    opacity: 1 !important;
    transform: none !important;
    align-items: stretch;
    justify-content: flex-start;
  }
  /* Typography aligned with .feature__body */
  .modal-expand__text .eyebrow {
    margin-bottom: 14px;
  }
  .modal-expand__text h3,
  .meet .modal-expand__text h3 {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    max-width: none;
    margin-bottom: 16px;
    line-height: 1.12;
  }
  .modal-expand__text p,
  .meet .modal-expand__text p {
    max-width: none;
    font-size: inherit;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .modal-expand__text p:last-child,
  .meet .modal-expand__text p:last-child {
    margin-bottom: 0;
  }

  .modal-expand__chart,
  .modal-expand__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    background: #0f0d0e;
  }
  .modal-expand__chart {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(320px, 58vh) auto auto;
  }
  .modal-expand__chart .chart-pan {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .modal-expand__chart .chart-pan__scroll {
    flex: 1 1 auto;
    min-height: 300px;
    height: clamp(320px, 52vh, 480px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(255, 242, 135, 0.35) transparent;
  }
  .modal-expand__chart .chart-pan__scroll iframe {
    position: relative;
    width: max(640px, 100%);
    min-width: 640px;
    height: 100%;
    min-height: 0;
  }
  .modal-expand__chart .chart-pan__hint { display: block; }
  .modal-expand__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .modal-expand__media img {
    position: absolute;
    inset: 0;
  }
  .modal-expand__takeaway {
    border-radius: 0;
  }
}

/* Reduced motion: always open, no sticky runway */
@media (prefers-reduced-motion: reduce) {
  .modal-expand {
    height: auto !important;
  }
  .modal-expand__frame {
    --p: 1 !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    width: min(calc(var(--media-w) + var(--text-w)), 96vw) !important;
    border-radius: 16px;
  }
  .modal-expand__text-inner {
    opacity: 1 !important;
    transform: none !important;
  }
  @media (max-width: 899px) {
    .modal-expand__frame { width: 100vw !important; border-radius: 0 !important; }
  }
}

/* ---- Nebula Builder landing + embed -------------------------------- */
.builder-steps {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: 1fr;
}
.builder-step {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.builder-step__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 242, 133, 0.35);
}
.builder-step h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 10px;
}
.builder-step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.55;
}
@media (min-width: 800px) {
  .builder-steps { grid-template-columns: repeat(3, 1fr); }
}

.builder-fullbleed { width: 100%; }
.builder-frame {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: #0f0d0e;
  height: min(84vh, 940px);
}
.builder-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.builder-note { margin-top: 20px; color: var(--text-dim); font-size: 0.95rem; max-width: 70ch; }
@media (max-width: 700px) {
  /* Give the planner almost the full phone viewport — less page chrome fight */
  .page-hero { padding-block: 28px 10px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .page-hero p { font-size: 0.95rem; }
  .builder-frame {
    height: calc(100dvh - 12rem);
    min-height: 520px;
    max-height: none;
    border-radius: 0;
  }
  .builder-note { margin: 14px 16px 28px; font-size: 0.88rem; max-width: none; }
}
