/* ==========================================================================
   GNS STUDIO — site.css
   Palette + type extracted from the live gns.studio build. See design-tokens.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour — verified from rendered CSS custom properties */
  --bg:            #111111;
  --bg-elevated:   #121212;
  --bg-black:      #000000;
  --accent:        #6b0000;
  --accent-hot:    #ff2424;
  --accent-warm:   #ff872b;
  --text:          #ffffff;
  --text-muted:    rgba(255, 255, 255, 0.70);
  --text-dim:      #adadad;
  --surface-light: #f2f2f2;
  --glass:         rgba(255, 255, 255, 0.10);
  --glass-strong:  rgba(255, 255, 255, 0.16);
  --hairline:      rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --scrim:         rgba(17, 17, 17, 0.65);
  --scrim-soft:    rgba(17, 17, 17, 0.40);

  /* Type */
  --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.375rem, 5.4vw, 4rem);
  --fs-h2:      clamp(1.875rem, 5.5vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 2.5vw, 1.625rem);
  --fs-lead:    clamp(1.0625rem, 2.2vw, 1.3125rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  --tracking: -0.02em;

  /* Space */
  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 12vw, 9rem);
  --maxw:    1280px;

  --radius:      18px;
  --radius-lg:   26px;
  --radius-pill: 100px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

html {
  /* Oxblood substrate — reveals on overscroll bounce, as on the original site */
  background: var(--accent);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }

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

p { text-wrap: pretty; }

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

button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

/* Focus — always visible, never removed */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0 0 12px 12px;
  font-size: var(--fs-small);
  font-weight: 600;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }

.section--tight { padding-block: clamp(3rem, 8vw, 6rem); }

.section--hairline { border-top: 1px solid var(--hairline-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent-hot);
  flex: none;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   4. Buttons — the site's signature glass pill
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9375rem 1.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.btn:hover { background: var(--glass-strong); border-color: var(--glass-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); }

.btn--lg { padding: 1.125rem 2.25rem; font-size: 1rem; }

.btn--block { width: 100%; }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.875rem var(--gutter);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(17, 17, 17, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline-soft);
}

.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand__mark { width: 30px; height: auto; }
.brand__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--tracking);
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3125rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}
.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: var(--glass); }

.header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: center;
  gap: 0.5rem;
  padding: 6rem var(--gutter) var(--gutter);
  background: rgba(17, 17, 17, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  /* Visibility flips instantly on open (so links are focusable straight away)
     and only after the fade on close. Never interpolate it. */
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
}
.mobile-nav nav { display: grid; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 800;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-nav .btn { margin-top: 1.5rem; }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Video wells — full-bleed, lazy-attached
   -------------------------------------------------------------------------- */

.video-well {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(107, 0, 0, 0.55) 0%, transparent 62%),
    linear-gradient(180deg, #1a1a1a 0%, var(--bg-black) 100%);
}
.video-well video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.video-well video.is-ready { opacity: 1; }

.video-well__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.75) 0%, rgba(17,17,17,0.35) 35%, rgba(17,17,17,0.88) 100%),
    var(--scrim-soft);
}

/* Film grain — subtle cinematic texture */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(5.5rem, 13vh, 7.5rem) var(--gutter) 0.75rem;
}

.hero h1 {
  font-size: var(--fs-display);
  max-width: 26ch;
  margin-bottom: 1.25rem;
}

.hero .lead { margin-bottom: 1.75rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__meta li { display: flex; align-items: center; gap: 0.5rem; }
.hero__meta li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-hot);
}

/* Oversized wordmark pinned to the bottom of the hero */
.hero__wordmark {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  padding-bottom: clamp(0.375rem, 1.2vw, 1rem);
}
.hero__wordmark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 11vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.hero__wordmark img { width: clamp(30px, 5.5vw, 68px); height: auto; }

/* --------------------------------------------------------------------------
   8. Problem
   -------------------------------------------------------------------------- */

.problem { background: var(--bg); }

.problem h2 {
  font-size: var(--fs-h2);
  max-width: 20ch;
  margin-bottom: 2rem;
}
.problem h2 em { font-style: normal; color: var(--text-dim); }

.problem__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.problem__card {
  padding: 1.75rem;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.problem__card h3 { font-size: 1.0625rem; margin-bottom: 0.625rem; }
.problem__card p { font-size: var(--fs-small); color: var(--text-muted); }
.problem__card--accent { border-color: rgba(255, 36, 36, 0.35); background: linear-gradient(180deg, rgba(107,0,0,0.28), var(--bg-elevated)); }

/* --------------------------------------------------------------------------
   9. Process — 3 steps
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 1.25rem; counter-reset: step; }

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: var(--hairline); transform: translateY(-3px); }
.step::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-hot), transparent 70%);
  opacity: 0.6;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(107, 0, 0, 0.4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   10. Packages
   -------------------------------------------------------------------------- */

.packages { display: grid; gap: 1.5rem; }

.package {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.package--featured {
  border-color: rgba(255, 36, 36, 0.4);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(107,0,0,0.5) 0%, transparent 60%),
    var(--bg-elevated);
}

.package__tag {
  align-self: flex-start;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.package__tag--quiet { background: var(--glass); color: var(--text-dim); }

.package h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.5rem; }
.package__kicker { font-size: var(--fs-small); color: var(--text-dim); margin-bottom: 1.75rem; }

.package__price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.package__price b {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
}
.package__price span { font-size: var(--fs-small); color: var(--text-dim); }

.package__list { display: grid; gap: 0.875rem; margin-bottom: 2rem; flex: 1; }
.package__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.package__list svg { margin-top: 5px; color: var(--accent-hot); }

/* --------------------------------------------------------------------------
   11. Proof / testimonials
   -------------------------------------------------------------------------- */

.placeholder-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border: 1px dashed rgba(255, 135, 43, 0.5);
  border-radius: 12px;
  background: rgba(255, 135, 43, 0.07);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.placeholder-note strong { color: var(--accent-warm); font-weight: 600; }

.proof { display: grid; gap: 1.25rem; }

.proof__card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.proof__result {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.proof__quote { font-size: 0.9375rem; color: var(--text-muted); flex: 1; margin-bottom: 1.5rem; }
.proof__attr {
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: var(--fs-small);
}
.proof__attr b { display: block; font-weight: 600; }
.proof__attr span { color: var(--text-dim); }

.is-placeholder { color: var(--accent-warm); }

/* --------------------------------------------------------------------------
   12. Portfolio grid
   -------------------------------------------------------------------------- */

.work { display: grid; gap: 1.25rem; }

.work__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-soft);
}

.work__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 60% 20%, rgba(107,0,0,0.5) 0%, transparent 60%),
    linear-gradient(180deg, #1c1c1c, var(--bg-black));
}
.work__media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.7s var(--ease);
}
.work__media video.is-ready { opacity: 1; }
.work__item:hover .work__media video.is-ready { transform: scale(1.03); }

.work__loading {
  position: absolute;
  inset: auto auto 1rem 1rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: opacity 0.4s var(--ease);
}
.work__media.is-loaded .work__loading { opacity: 0; }

.work__body { padding: 1.5rem; }
.work__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.work__caption {
  font-size: var(--fs-small);
  color: var(--accent-warm);
  border-left: 2px solid rgba(255, 135, 43, 0.45);
  padding-left: 0.75rem;
}

/* --------------------------------------------------------------------------
   13. Final CTA + contact
   -------------------------------------------------------------------------- */

.book {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--hairline-soft);
}
.book__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(107, 0, 0, 0.55) 0%, transparent 65%),
    var(--bg);
}
.book h2 { font-size: var(--fs-h2); max-width: 16ch; margin-bottom: 1.25rem; }

.book__layout { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.contact-list { display: grid; gap: 1rem; margin-top: 2.5rem; }
.contact-list a, .contact-list p {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.contact-list a:hover { color: var(--text); }
.contact-list svg { flex: none; color: var(--accent-hot); }

/* Form */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: var(--fs-small); font-weight: 500; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent-hot);
  background: #161616;
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: var(--fs-micro); color: var(--text-dim); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  background: var(--bg-black);
}
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.125rem;
}
.site-footer li + li { margin-top: 0.625rem; }
.site-footer a { color: var(--text-muted); font-size: 0.9375rem; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--text); }

.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.1;
}
.site-footer__tagline span { color: var(--accent-hot); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: var(--fs-micro);
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   15. Page header (portfolio + inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  padding-block: clamp(8rem, 20vw, 12rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--hairline-soft);
}
.page-head__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 120% at 20% 0%, rgba(107, 0, 0, 0.6) 0%, transparent 60%),
    var(--bg);
}
.page-head h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 1.25rem; }

/* Empty-state slot for content added later */
.slot {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 340px;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.slot h2 { font-size: 1.25rem; }
.slot p { font-size: var(--fs-small); color: var(--text-dim); max-width: 46ch; }

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */

/* Content is visible by default. Only once JS has confirmed it is running
   (the `js` class, set by an inline script in <head>) do we hide it to
   animate it in — so a JS failure can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
  .problem__grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .packages { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: repeat(3, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .book__layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero__content { padding-bottom: 3rem; }
}

/* --------------------------------------------------------------------------
   18. Motion & data preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .work__item:hover .work__media video { transform: none; }
}

@media print {
  .site-header, .video-well, .grain, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
}
