/* ==========================================================================
   Lantern Media Lab — site styles
   Palette is inherited from the video ads (Ad Creation/src/LanternAd/constants.ts)
   so the site and the creative read as one brand.

   Motion architecture: the base layer below is the FINISHED, STATIC page.
   Every animation lives inside `@media (prefers-reduced-motion: no-preference)`
   nested in `@supports (animation-timeline: view())`. Browsers without
   scroll-driven animation support (Firefox, as of 152) and anyone who has
   switched on "reduce motion" get the full static site. Never broken, only
   less animated.
   ========================================================================== */

:root {
  --navy:         #101B33;
  --navy-deep:    #0A1224;
  --cream:        #F7F3EC;
  --cream-soft:   #EFE9DE;
  --amber:        #ECA43F;
  --amber-bright: #FFC773;
  --slate:        #8B95A8;

  --ink:          #101B33;   /* body text on light bands */
  --ink-soft:     #4A5468;   /* secondary text on light bands */
  --rule-light:   #DDD5C7;
  --rule-dark:    rgba(247, 243, 236, 0.16);

  --serif: "Rockwell", "Georgia", "Times New Roman", serif;
  --sans:  "Segoe UI", Arial, sans-serif;

  /* The exact glow from Ad Creation/src/shared/Glow.tsx */
  --glow: radial-gradient(circle,
            var(--amber-bright) 0%,
            var(--amber) 35%,
            rgba(236, 164, 63, 0) 70%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }

/* --------------------------------------------------------------------------
   Bands — the dark/light rhythm. Dark bands are the cinematic moments,
   cream bands are for reading.
   -------------------------------------------------------------------------- */
.band { padding: 110px 0; position: relative; }
.band-tight { padding: 72px 0; }

.band-cream      { background: var(--cream); color: var(--ink); }
.band-cream-soft { background: var(--cream-soft); color: var(--ink); }
.band-navy       { background: var(--navy); color: var(--cream); }
.band-deep       { background: var(--navy-deep); color: var(--cream); }

.band-navy h1, .band-navy h2, .band-navy h3,
.band-deep h1, .band-deep h2, .band-deep h3 { color: var(--cream); }

/* --------------------------------------------------------------------------
   Scroll progress line — the lantern's light level
   -------------------------------------------------------------------------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Sticky nav — slim bar, transparent over the hero, solid once scrolled
   -------------------------------------------------------------------------- */
/* The bar carries its own dark background at all times. Over the navy-deep
   hero it is the same colour, so it reads as transparent; over the cream
   bands it keeps the cream-coloured nav text legible. Relying on a scroll
   animation for this would leave the nav invisible for anyone with reduced
   motion switched on. */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 18, 36, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.head-inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* min-width:0 on both children is what stops the brand and the nav from
   colliding. A flex item defaults to min-width:auto, meaning it refuses to
   shrink below its own text — and both of these use white-space:nowrap. With
   neither able to give, a narrow screen forces the whole bar wider than the
   viewport; because the header is sticky, the page then scrolls sideways
   underneath it and the two blocks appear to sit on top of each other. */
/* flex-shrink:0 makes the brand hold its full width and forces the nav to be
   the element that gives — the nav can scroll inside itself, the name cannot. */
.brand-link {
  display: flex; align-items: center; gap: 13px; text-decoration: none;
  min-width: 0; flex-shrink: 0;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  box-shadow: 0 0 22px rgba(236, 164, 63, 0.30);
}
.brand-name {
  font-family: var(--serif); font-size: 20px; color: var(--cream);
  letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* The nav is the piece that gives first: it scrolls sideways within itself
   rather than pushing the layout wider. Set at every width, not just mobile. */
.site-nav {
  display: flex; align-items: center; gap: 26px;
  min-width: 0; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 14.5px; color: var(--cream); text-decoration: none;
  opacity: 0.72; white-space: nowrap; padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--amber); }
.site-nav a.nav-cta {
  opacity: 1; border: 1.5px solid rgba(247, 243, 236, 0.35);
  border-radius: 30px; padding: 9px 20px;
}
.site-nav a.nav-cta:hover { background: var(--amber); border-color: var(--amber); color: var(--navy-deep); }

/* --------------------------------------------------------------------------
   Mobile menu button.

   Built on <details>/<summary>, the browser's own show/hide widget. It opens
   and closes with no JavaScript at all, which matters here because the site's
   Content-Security-Policy (the header telling the browser what it may run)
   sets script-src 'none' — no script of any kind is permitted to execute.
   <summary> is also focusable and toggles on Enter or Space for free, so the
   keyboard and screen-reader behaviour comes from the browser rather than
   from code we would have to get right ourselves.

   Hidden above 700px; the media query further down turns it on.
   -------------------------------------------------------------------------- */
.menu { display: none; position: relative; flex: none; }
.menu > summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 40px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(247, 243, 236, 0.32); border-radius: 11px;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu > summary::-webkit-details-marker { display: none; }   /* Safari's arrow */
.menu > summary::marker { content: ""; }
.menu > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* The three lines: one element plus its two generated siblings. */
.bars, .bars::before, .bars::after {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--cream);
  transition: transform 0.22s ease, background 0.18s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after  { top: 6px; }

/* Open state: the bars fold into an X so the button also reads as "close". */
.menu[open] > summary { border-color: var(--amber); background: rgba(236, 164, 63, 0.10); }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

.menu-panel {
  position: absolute; right: 0; top: calc(100% + 13px);
  min-width: 216px; display: flex; flex-direction: column; gap: 2px;
  padding: 10px;
  background: rgba(10, 18, 36, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(247, 243, 236, 0.14); border-radius: 15px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
}
.menu-panel a {
  font-size: 15.5px; color: var(--cream); text-decoration: none;
  padding: 12px 15px; border-radius: 10px; opacity: 0.82;
  transition: background 0.18s ease, opacity 0.18s ease;
}
.menu-panel a:hover { opacity: 1; background: rgba(247, 243, 236, 0.07); }
.menu-panel a[aria-current="page"] { opacity: 1; color: var(--amber); background: rgba(236, 164, 63, 0.10); }
.menu-panel a.nav-cta {
  margin-top: 7px; opacity: 1; text-align: center; font-weight: 600;
  background: var(--amber); color: var(--navy-deep);
  border-radius: 30px; padding: 12px 15px;
}
.menu-panel a.nav-cta:hover { background: var(--amber-bright); }

/* --------------------------------------------------------------------------
   Hero — every page opens dark, so the nav is always over a dark surface
   -------------------------------------------------------------------------- */
.hero {
  background: var(--navy-deep); color: var(--cream);
  position: relative; overflow: hidden;
  padding: 20px 0 110px 0;
  margin-top: -77px;      /* pull up under the sticky transparent nav */
  padding-top: 97px;
}
.hero::before {          /* ambient light pooled at the top of the page */
  content: ""; position: absolute; top: -46%; left: 50%;
  width: 1100px; height: 1100px; transform: translateX(-50%);
  background: var(--glow); opacity: 0.16; filter: blur(70px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-lantern { position: relative; width: 96px; margin: 40px auto 34px auto; }
.hero-lantern img { width: 96px; height: 96px; border-radius: 50%; position: relative; z-index: 1; }
.hero-lantern::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 420px; height: 420px; transform: translate(-50%, -50%);
  background: var(--glow); opacity: 0.5; filter: blur(46px);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 82px); line-height: 1.03;
  text-align: center; max-width: 15ch; margin: 0 auto;
}
.hero .hero-sub {
  font-size: 18.5px; line-height: 1.7; max-width: 620px;
  margin: 32px auto 0 auto; text-align: center;
  color: rgba(247, 243, 236, 0.78);
}
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 42px; flex-wrap: wrap; }

/* Interior (non-home) hero runs shorter */
.hero-page { padding-bottom: 84px; }
.hero-page h1 { font-size: clamp(32px, 4.6vw, 58px); max-width: 20ch; }
.hero-page .hero-sub { margin-top: 26px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block; border-radius: 30px; padding: 15px 32px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-amber { background: var(--amber); color: var(--navy-deep); border: 1.5px solid var(--amber); }
.btn-amber:hover { background: var(--amber-bright); border-color: var(--amber-bright); }
.btn-ghost { background: none; color: var(--cream); border: 1.5px solid rgba(247, 243, 236, 0.35); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-dark { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--cream); }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.section-title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; margin-bottom: 24px; max-width: 20ch; }
.section-title.centered { text-align: center; margin-left: auto; margin-right: auto; }
.lede { font-size: 18px; line-height: 1.72; max-width: 760px; margin-bottom: 18px; }
.band-navy .lede, .band-deep .lede { color: rgba(247, 243, 236, 0.80); }
.body-copy { font-size: 16.5px; line-height: 1.78; max-width: 780px; margin-bottom: 16px; }
.body-copy:last-child { margin-bottom: 0; }
.band-navy .body-copy, .band-deep .body-copy { color: rgba(247, 243, 236, 0.78); }

/* --------------------------------------------------------------------------
   Point list — bold lead-in plus explanation
   -------------------------------------------------------------------------- */
.points { list-style: none; max-width: 900px; }
.points li { font-size: 16.5px; line-height: 1.72; padding: 20px 0 20px 26px; position: relative; border-top: 1px solid var(--rule-light); }
.points li:last-child { border-bottom: 1px solid var(--rule-light); }
.points li::before {
  content: ""; position: absolute; left: 0; top: 31px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 12px rgba(236, 164, 63, 0.75);
}
.band-navy .points li, .band-deep .points li { border-color: var(--rule-dark); color: rgba(247, 243, 236, 0.78); }
.band-navy .points li strong, .band-deep .points li strong { color: var(--cream); }

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */
.checklist { list-style: none; max-width: 900px; column-gap: 48px; }
.checklist li { font-size: 16.5px; line-height: 1.62; padding: 10px 0 10px 26px; position: relative; break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 2px; background: var(--amber); }
@media (min-width: 861px) { .checklist.two-col { column-count: 2; } }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--rule-light); border-radius: 16px;
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--amber); box-shadow: 0 20px 46px rgba(16, 27, 51, 0.13); }
.card h3 { font-size: 23px; margin-bottom: 14px; }
.card p { font-size: 15.8px; line-height: 1.68; margin-bottom: 24px; color: var(--ink-soft); }
.card-link {
  margin-top: auto; align-self: flex-start; font-size: 14.5px; font-weight: 600;
  text-decoration: none; color: var(--ink); padding-bottom: 3px;
  border-bottom: 1.5px solid var(--amber);
}
.card-link:hover { color: var(--amber); }

/* --------------------------------------------------------------------------
   Process steps, with the amber path that draws itself on scroll
   -------------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; max-width: 880px; position: relative; padding-left: 4px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 40px 74px; font-size: 16.5px; line-height: 1.72; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--amber); background: var(--cream);
  font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--amber);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.steps li strong { display: block; margin-bottom: 6px; font-size: 17.5px; }
.band-cream-soft .steps li::before { background: var(--cream-soft); }

/* the line itself — a real element so it can carry its own scroll timeline */
.lit-path {
  position: absolute; left: 22px; top: 10px; bottom: 40px; width: 2px;
  background: linear-gradient(180deg, var(--amber), rgba(236, 164, 63, 0.15));
  transform-origin: 50% 0; z-index: 0;
}

/* --------------------------------------------------------------------------
   Numbered stage list ("How it works"). Static — no scroll behaviour.
   -------------------------------------------------------------------------- */
.beats { list-style: none; counter-reset: beat; margin-top: 30px; display: grid; }
.beat {
  counter-increment: beat; position: relative;
  padding: 17px 0 17px 76px; border-top: 1px solid var(--rule-dark);
}
.beat:last-child { border-bottom: 1px solid var(--rule-dark); }
.beat::before {
  content: "0" counter(beat); position: absolute; left: 0; top: 22px;
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.08em;
  color: var(--amber);
}
.beat h3 { font-size: clamp(20px, 2vw, 27px); margin-bottom: 6px; }
.beat p { font-size: 15.5px; line-height: 1.68; color: rgba(247, 243, 236, 0.74); max-width: 72ch; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 900px; }
.faq .qa { border-top: 1px solid var(--rule-light); padding: 28px 0; }
.faq .qa:last-child { border-bottom: 1px solid var(--rule-light); }
.faq h3 { font-size: 19.5px; margin-bottom: 11px; }
.faq p { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .section-title { margin-left: auto; margin-right: auto; }
.cta-band p { font-size: 17.5px; line-height: 1.7; max-width: 700px; margin: 0 auto 34px auto; }
.related { text-align: center; font-size: 16px; }
.related a { margin: 0 8px; text-decoration: none; border-bottom: 1.5px solid var(--amber); padding-bottom: 2px; }
.related a:hover { color: var(--amber); }

/* --------------------------------------------------------------------------
   Contact — deliberately still. This is the surface that produces leads;
   motion here creates hesitation, not delight.
   -------------------------------------------------------------------------- */
.gs-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 64px; align-items: start; }
.gs-grid .sub { font-size: 16.5px; line-height: 1.7; max-width: 400px; color: rgba(247, 243, 236, 0.78); }
.gs-badge { width: 100%; max-width: 400px; margin-top: 44px; border-radius: 16px; }

form .row { display: flex; gap: 20px; }
form .field { margin-bottom: 22px; flex: 1; }
form label { display: block; font-size: 15px; margin-bottom: 9px; color: rgba(247, 243, 236, 0.88); }
form label .req { color: var(--slate); font-weight: 400; font-size: 13.5px; }
form input[type="text"], form input[type="email"], form input[type="tel"], form textarea {
  width: 100%; font-family: inherit; font-size: 15px; padding: 14px 15px;
  color: var(--cream); background: rgba(247, 243, 236, 0.06);
  border: 1px solid rgba(247, 243, 236, 0.16); border-radius: 8px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
form input::placeholder, form textarea::placeholder { color: rgba(247, 243, 236, 0.38); }
form input:focus, form textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(247, 243, 236, 0.09);
}
form textarea { resize: vertical; min-height: 112px; }

fieldset.checkboxes { border: none; margin-bottom: 26px; }
fieldset.checkboxes legend { font-size: 15px; margin-bottom: 15px; color: rgba(247, 243, 236, 0.88); }
fieldset.checkboxes .opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; }
.checkboxes .opt { display: flex; align-items: center; gap: 11px; }
.checkboxes .opt label { margin: 0; font-size: 15px; }
.checkboxes input { width: 17px; height: 17px; flex: none; accent-color: var(--amber); }

.submit-btn {
  display: block; width: 100%; padding: 17px; border-radius: 30px;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  background: var(--amber); color: var(--navy-deep); border: 1.5px solid var(--amber);
  transition: background 0.2s ease;
}
.submit-btn:hover { background: var(--amber-bright); border-color: var(--amber-bright); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { background: var(--navy-deep); color: var(--cream); padding: 74px 0 56px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; gap: 40px; }
footer h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 18px; }
footer p, footer a { font-size: 15px; line-height: 1.65; color: rgba(247, 243, 236, 0.72); }
footer .contact-us a { text-decoration: none; display: block; margin-bottom: 9px; width: fit-content; }
footer .contact-us a:hover { color: var(--amber); }
.footer-nav a { display: block; margin-bottom: 9px; text-decoration: none; width: fit-content; }
.footer-nav a:hover { color: var(--amber); }

/* Currently unused — the Instagram and Facebook links were pulled until those
   profiles have content worth landing on. Kept so restoring them is one edit.
   Verified URLs are recorded in LMLVault/Website Redesign Plan.md.
   Qualified with `footer` so it outranks `footer .contact-us a`, which these
   links sit inside and which would otherwise force them back to display:block. */
.footer-social { margin-top: 18px; }
footer .footer-social a {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 10px; text-decoration: none; width: fit-content;
}
footer .footer-social a:hover { color: var(--amber); }
footer .footer-social svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.newsletter-sub { margin-bottom: 20px; }
.signup-row { display: flex; gap: 12px; max-width: 460px; flex-wrap: wrap; }
.signup-row input {
  flex: 1; min-width: 200px; font-family: inherit; font-size: 15px; padding: 14px 16px;
  color: var(--cream); background: rgba(247, 243, 236, 0.06);
  border: 1px solid rgba(247, 243, 236, 0.16); border-radius: 8px;
}
.signup-row input::placeholder { color: rgba(247, 243, 236, 0.38); }
.signup-row input:focus { outline: none; border-color: var(--amber); }
.signup-btn {
  border: 1.5px solid var(--amber); background: none; color: var(--amber);
  padding: 14px 28px; border-radius: 30px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.signup-btn:hover { background: var(--amber); color: var(--navy-deep); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   ENHANCEMENT LAYER — everything below is optional motion.
   Nothing here is required for the page to be complete and readable.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {

    /* --- progress line ------------------------------------------------- */
    .progress {
      animation: progress-fill linear forwards;
      animation-timeline: scroll(root block);
    }
    @keyframes progress-fill { to { transform: scaleX(1); } }

    /* --- nav condenses once you leave the hero -------------------------- */
    .site-head {
      animation: head-solid linear both;
      animation-timeline: scroll(root block);
      animation-range: 60px 220px;
    }
    @keyframes head-solid {
      to {
        background: rgba(10, 18, 36, 0.96);
        border-bottom-color: var(--rule-dark);
      }
    }
    .brand-mark {
      animation: mark-shrink linear both;
      animation-timeline: scroll(root block);
      animation-range: 60px 220px;
    }
    @keyframes mark-shrink { to { width: 32px; height: 32px; } }

    /* --- hero: the lantern lights on arrival ---------------------------- */
    .hero-lantern::after { animation: bloom 1.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
    @keyframes bloom {
      from { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
      to   { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    }
    .hero h1        { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
    .hero .hero-sub { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
    .hero-actions   { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }
    @keyframes rise {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* hero drifts and dims as you scroll past it */
    .hero .wrap {
      animation: hero-exit linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 90%;
    }
    @keyframes hero-exit { to { opacity: 0.15; transform: translateY(-46px); } }

    /* --- headline wipe --------------------------------------------------- */
    .wipe {
      animation: wipe-up linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 32%;
    }
    @keyframes wipe-up {
      from { clip-path: inset(0 0 108% 0); opacity: 0.2; }
      to   { clip-path: inset(0 0 -12% 0); opacity: 1; }
    }

    /* --- generic content lift -------------------------------------------- */
    .lift {
      animation: lift-in linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    @keyframes lift-in {
      from { opacity: 0; transform: translateY(34px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* stagger the service cards so they arrive as a sequence */
    .stagger > * {
      animation: lift-in linear both;
      animation-timeline: view();
    }
    .stagger > *:nth-child(1) { animation-range: entry 6%  cover 24%; }
    .stagger > *:nth-child(2) { animation-range: entry 12% cover 30%; }
    .stagger > *:nth-child(3) { animation-range: entry 18% cover 36%; }

    /* --- the amber path draws itself down the process steps -------------- */
    .lit-path {
      animation: draw-path linear both;
      animation-timeline: view();
      animation-range: entry 60% exit 15%;
    }
    @keyframes draw-path { from { transform: scaleY(0); } to { transform: scaleY(1); } }

    .steps li::before {
      animation: node-light linear both;
      animation-timeline: view();
      animation-range: entry 45% entry 95%;
    }
    @keyframes node-light {
      from { border-color: var(--rule-light); color: var(--ink-soft); box-shadow: none; }
      to   { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 20px rgba(236, 164, 63, 0.35); }
    }

  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1.3fr; gap: 40px 30px; }
}

@media (max-width: 860px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .band { padding: 66px 0; }
  .band-tight { padding: 48px 0; }
  .head-inner { padding: 14px 22px; gap: 14px; }
  .brand-name { font-size: 17px; }
  .site-nav { gap: 18px; margin-left: auto; }
  .site-nav a.nav-cta { padding: 7px 15px; }

  .hero { padding-top: 82px; padding-bottom: 66px; margin-top: -68px; }
  .hero-lantern { width: 72px; margin: 26px auto 26px auto; }
  .hero-lantern img { width: 72px; height: 72px; }
  .hero-lantern::after { width: 280px; height: 280px; }
  .hero .hero-sub { font-size: 16.5px; }

  .gs-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .gs-badge { max-width: 300px; margin-top: 30px; }
  form .row { flex-direction: column; gap: 0; }
  fieldset.checkboxes .opt-grid { grid-template-columns: 1fr; }

  .steps li { padding-left: 60px; padding-bottom: 32px; }
  .steps li::before { width: 38px; height: 38px; font-size: 16px; }
  .lit-path { left: 18px; }

  .beat { padding: 18px 0 18px 52px; }
  .beat::before { top: 22px; font-size: 13px; }
}

/* Phones — the full link row cannot share a line with the brand at 375px, so
   below 700px it collapses into a menu button. */
@media (max-width: 700px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 16.5px; }
  .head-inner { padding: 12px 18px; gap: 12px; }
}

