/* ==========================================================================
   StepInside — stepinside.today
   Design system + components
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & links
   6.  Navigation
   7.  Hero (the door)
   8.  Ticker & marquee
   9.  Steps / feature cards
   10. Phone demo
   11. Story & editorial blocks
   12. Split CTA
   13. Forms
   14. Footer
   15. Motion & reveal
   16. Responsive
   ========================================================================== */

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

:root {
  /* ---- Brand palette (as specified) ------------------------------------- */
  --forest:        #234634;   /* Forest Green  */
  --sage:          #8A9A73;   /* Sage Green    */
  --gold:          #B88A3B;   /* Soft Gold     */
  --cream:         #F7F1E7;   /* Warm Cream    */
  --beige:         #E9DDCB;   /* Warm Beige    */
  --brown:         #6D4C41;   /* Coffee Brown  */
  --blue:          #5F8FA8;   /* Atlantic Blue */

  /* ---- Derived, so small text and UI edges still clear WCAG AA ----------- *
   * Soft Gold is 2.8:1 on Warm Cream and Atlantic Blue is 3.0:1 on Forest,
   * so each gets a darker/lighter sibling for the jobs the brand hue can't do.
   * Nothing here introduces a new hue — every value is a shade of a brand one. */
  --forest-deep:   #14291E;   /* footer, ticker                              */
  --forest-soft:   #395848;   /* hovers, raised surfaces on dark             */
  --paper:         #FBF9F4;   /* card surface, lifted off Warm Cream         */
  --cream-warm:    #FDF9F1;   /* text on dark                                */

  --gold-soft:     #CAA667;   /* gold text on Forest        4.6:1            */
  --gold-deep:     #7B5C28;   /* small gold text on light   5.5:1            */
  --focus:         #9E7733;   /* focus ring on light        3.6:1            */
  --sun:           #E9A63F;   /* logo sunrise only                           */

  --blue-soft:     #6090A9;   /* live marker on dark        3.0:1            */
  --blue-deep:     #57849B;   /* live marker on light       4.1:1            */
  --blue-text:     #4C7286;   /* small blue text            5.2:1            */

  --ink:           #172E22;   /* primary text              12.9:1           */
  --ink-soft:      var(--brown); /* secondary body copy      6.8:1           */
  --ink-mute:      #5B664C;   /* tertiary / captions        5.4:1            */

  /* Surfaces */
  --bg:            var(--cream);
  --surface:       var(--paper);
  --border:        #758362;   /* input + control edges      3.6:1            */
  --hairline:      rgba(138, 154, 115, .55);  /* Sage — dividers          */
  --hairline-soft: rgba(138, 154, 115, .3);
  --gold-line:     rgba(184, 138, 59, .4);

  /* Type */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script:  "Parisienne", "Snell Roundhand", cursive;

  --step--1: clamp(.8rem, .77rem + .14vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + .34vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + .72vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.45vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.85rem + 2.7vw, 4.4rem);
  --step-5:  clamp(3rem, 2rem + 4.8vw, 6.5rem);

  /* Space */
  --gap:      clamp(1rem, .8rem + .9vw, 1.75rem);
  --section:  clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --shell:    1240px;
  --shell-narrow: 860px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(16, 35, 26, .05), 0 4px 14px -8px rgba(16, 35, 26, .18);
  --shadow-md: 0 2px 6px rgba(16, 35, 26, .05), 0 18px 40px -22px rgba(16, 35, 26, .32);
  --shadow-lg: 0 4px 12px rgba(16, 35, 26, .06), 0 44px 90px -40px rgba(16, 35, 26, .45);
  --radius:    18px;
  --radius-lg: 28px;

  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --nav-h: 78px;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

/* Paper grain — sits above backgrounds, below content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--cream-warm); }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--forest);
  color: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: 0 0 12px 12px;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

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

/* 3. Typography ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  color: var(--forest);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -.01em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: clamp(.7rem, .66rem + .16vw, .78rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}
.eyebrow--light { color: var(--gold-soft); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .01em;
  line-height: 1.25;
  text-transform: none;
}

/* Script sub-heading that sits under a display heading */
.script-lg {
  display: block;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.3rem);
  line-height: 1.2;
  margin: -.1em 0 1.1rem;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

.muted { color: var(--ink-mute); }

/* Gold rule with a centre dot — a recurring brand device */
.rule {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.6rem 0;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.rule i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.rule--short { max-width: 190px; }
.rule--center { margin-inline: auto; }

/* 4. Layout primitives ----------------------------------------------------- */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}
.shell--narrow { width: min(100% - 2.5rem, var(--shell-narrow)); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .62); }

.section--dark {
  background: var(--forest);
  color: rgba(248, 240, 229, .82);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream-warm); }
.section--dark .lede { color: rgba(248, 240, 229, .74); }
.section--dark .muted { color: rgba(248, 240, 229, .66); }

.section--paper { background: var(--beige); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Torn-paper edge between cream and forest bands */
.edge {
  position: absolute;
  left: 0; right: 0;
  height: 26px;
  pointer-events: none;
  z-index: 2;
}
.edge--top { top: -1px; }
.edge--bottom { bottom: -1px; transform: scaleY(-1); }
.edge svg { width: 100%; height: 100%; display: block; }

/* 5. Buttons & links ------------------------------------------------------- */

.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--cream-warm);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  padding: 1.02em 1.9em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .3s var(--ease-soft);
  box-shadow: 0 1px 2px rgba(16, 35, 26, .12), 0 12px 26px -14px rgba(16, 35, 26, .55);
  will-change: transform;
}
.btn span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .65em; }
/* Liquid fill that rises from the bottom on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16, 35, 26, .12), 0 22px 42px -18px rgba(16, 35, 26, .6);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #22150A; }
.btn--gold::before { background: var(--forest); }
.btn--gold:hover { color: var(--cream-warm); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--forest);
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
}
.btn--ghost::before { background: var(--forest); }
.btn--ghost:hover, .btn--ghost:focus-visible {
  color: var(--cream-warm);
  box-shadow: inset 0 0 0 1.5px transparent, 0 20px 40px -20px rgba(16, 35, 26, .55);
}

.btn--light { --btn-bg: var(--cream-warm); --btn-fg: var(--forest); }
.btn--light::before { background: var(--gold); }

.btn--on-dark.btn--ghost {
  --btn-fg: var(--cream-warm);
  box-shadow: inset 0 0 0 1.5px rgba(216, 177, 114, .45);
}
.btn--on-dark.btn--ghost::before { background: var(--cream-warm); }
.btn--on-dark.btn--ghost:hover { color: var(--forest); }

.btn--lg { padding: 1.2em 2.4em; font-size: var(--step-0); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}

/* Text link with a rule that draws in */
.link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease), color .3s;
}
.link:hover, .link:focus-visible { background-size: 100% 1.5px; color: var(--gold-deep); }
.link svg { transition: transform .45s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link--light { color: var(--cream-warm); }
.link--light:hover { color: var(--gold-soft); }

/* Live pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em 1.05em .5em .85em;
  border-radius: 999px;
  background: rgba(248, 240, 229, .12);
  border: 1px solid rgba(216, 177, 114, .35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: clamp(.68rem, .64rem + .16vw, .76rem);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-warm);
}
.pill--solid {
  background: var(--forest);
  border-color: transparent;
  color: var(--cream-warm);
}
.pill--cream {
  background: rgba(28, 54, 41, .06);
  border-color: var(--gold-line);
  color: var(--gold-deep);
  backdrop-filter: none;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-soft);
  flex: none;
  position: relative;
}
.dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-soft);
  animation: ping 2.2s var(--ease-soft) infinite;
}
/* Inside the phone the marker sits on white, where the darker blue reads better. */
.phone .dot, .card-live .dot { background: var(--blue-deep); }
.phone .dot::after, .card-live .dot::after { border-color: var(--blue-deep); }

@keyframes ping {
  0%   { transform: scale(.55); opacity: .9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* 6. Navigation ------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 240, 229, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline-soft);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.nav.is-stuck { --nav-h: 66px; }
.nav.is-stuck::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); transition: transform .45s var(--ease); }

.nav__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--forest);
  margin-right: auto;
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  transition: transform .6s var(--ease), width .45s var(--ease), height .45s var(--ease);
}
.nav.is-stuck .brand__mark { width: 34px; height: 34px; }
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-2deg); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1;
}
.brand--light { color: var(--cream-warm); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, .3rem + 1.5vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: .4rem;
  transition: color .3s;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--forest); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--forest); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { margin-left: .4rem; }

/* Over a full-bleed hero the bar is transparent, so the chrome goes light
   until the user scrolls and the cream panel fades in behind it. */
.nav--hero:not(.is-stuck) .brand { color: var(--cream-warm); }
.nav--hero:not(.is-stuck) .brand__name { text-shadow: 0 2px 18px rgba(16, 35, 26, .5); }
.nav--hero:not(.is-stuck) .nav__links a { color: rgba(248, 240, 229, .82); text-shadow: 0 2px 14px rgba(16, 35, 26, .55); }
.nav--hero:not(.is-stuck) .nav__links a:hover,
.nav--hero:not(.is-stuck) .nav__links a[aria-current="page"] { color: var(--cream-warm); }
.nav--hero:not(.is-stuck) .nav__burger { border-color: rgba(248, 240, 229, .4); }
.nav--hero:not(.is-stuck) .nav__burger span { background: var(--cream-warm); }
.nav--hero:not(.is-stuck) .nav__cta {
  --btn-bg: rgba(248, 240, 229, .14);
  --btn-fg: var(--cream-warm);
  box-shadow: inset 0 0 0 1px rgba(216, 177, 114, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav--hero:not(.is-stuck) .nav__cta::before { background: var(--gold); }
.nav--hero:not(.is-stuck) .nav__cta:hover { color: #22150A; }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .25s;
}
.nav__burger span + span { margin-top: 4.5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--forest);
  padding: calc(var(--nav-h) + 2rem) 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  clip-path: circle(0% at calc(100% - 46px) 42px);
  transition: clip-path .75s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.drawer__links { list-style: none; margin: 0; padding: 0; }
.drawer__links li { overflow: hidden; }
.drawer__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .55rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 3.4vw, 2.8rem);
  color: var(--cream-warm);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 177, 114, .16);
  transform: translateY(110%);
  transition: transform .8s var(--ease), color .3s;
}
.drawer.is-open .drawer__links a { transform: translateY(0); }
.drawer__links li:nth-child(1) a { transition-delay: .1s; }
.drawer__links li:nth-child(2) a { transition-delay: .16s; }
.drawer__links li:nth-child(3) a { transition-delay: .22s; }
.drawer__links li:nth-child(4) a { transition-delay: .28s; }
.drawer__links li:nth-child(5) a { transition-delay: .34s; }
.drawer__links a:hover { color: var(--gold-soft); }
.drawer__links em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold);
}
.drawer__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(248, 240, 229, .6);
  font-size: var(--step--1);
}

/* 7. Hero (the door) ------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--forest-deep);
  isolation: isolate;
}

.hero__scene {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  perspective-origin: 50% 45%;
}

/* the world beyond */
.hero__view {
  position: absolute;
  inset: -6%;
  background: url("../assets/img/view.jpg") center 42% / cover no-repeat;
  transform: scale(1.18);
  opacity: 0;
  transition: transform 2.6s var(--ease), opacity 1.6s var(--ease-soft);
  will-change: transform;
}
.hero.is-open .hero__view { transform: scale(1); opacity: 1; }

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 78% at 50% 42%, rgba(16, 35, 26, 0) 32%, rgba(16, 35, 26, .5) 76%, rgba(16, 35, 26, .82) 100%),
    linear-gradient(180deg, rgba(16, 35, 26, .58) 0%, rgba(16, 35, 26, .06) 28%, rgba(16, 35, 26, .12) 58%, rgba(16, 35, 26, .78) 100%);
}

/* light spilling through the opening */
.hero__spill {
  position: absolute;
  left: 50%; top: 46%;
  width: 70vw; height: 70vw;
  transform: translate(-50%, -50%) scale(.2);
  background: radial-gradient(circle, rgba(255, 205, 130, .34) 0%, rgba(255, 186, 96, .1) 44%, transparent 68%);
  opacity: 0;
  transition: transform 2.8s var(--ease), opacity 2.2s var(--ease-soft);
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero.is-open .hero__spill { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* the two door leaves */
.door {
  position: absolute;
  top: -2%;
  width: 51%;
  height: 104%;
  background: url("../assets/img/door-right.jpg") center / cover no-repeat;
  backface-visibility: hidden;
  transition: transform 2.4s var(--ease), filter 2.4s var(--ease);
  will-change: transform;
  box-shadow: 0 0 90px rgba(16, 35, 26, .8);
}
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 35, 26, .1), rgba(16, 35, 26, .72));
}
.door--l {
  left: 0;
  transform-origin: left center;
  transform: rotateY(0deg);
}
.door--r {
  right: 0;
  transform-origin: right center;
  transform: scaleX(-1) rotateY(0deg);
}
.door--r::after { background: linear-gradient(90deg, rgba(16, 35, 26, .1), rgba(16, 35, 26, .72)); }

.hero.is-open .door--l { transform: rotateY(-104deg); filter: brightness(.55); }
.hero.is-open .door--r { transform: scaleX(-1) rotateY(-104deg); filter: brightness(.55); }

/* stone reveal / arch frame */
.hero__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 180px 60px rgba(16, 35, 26, .55);
}

.hero__inner {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5.5rem;
  width: min(100% - 2rem, 860px);
  isolation: isolate;
}
/* Soft scrim so the wordmark holds up against a bright sky. */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: 8% -16% 6%;
  z-index: -1;
  background: radial-gradient(58% 52% at 50% 50%, rgba(13, 30, 22, .66) 0%, rgba(13, 30, 22, .42) 46%, rgba(13, 30, 22, .12) 70%, transparent 84%);
  pointer-events: none;
}

.hero__mark {
  width: clamp(66px, 8vw, 94px);
  height: auto;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  filter: drop-shadow(0 14px 34px rgba(13, 30, 22, .6));
}

.hero__title {
  font-size: var(--step-5);
  color: var(--cream-warm);
  margin: 0 0 .35em;
  letter-spacing: -.028em;
  text-shadow: 0 6px 40px rgba(16, 35, 26, .55);
}
.hero__title .word { display: inline-block; }

.hero__sub {
  font-size: clamp(.76rem, .7rem + .3vw, .95rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--cream-warm);
  margin: 0 0 1.3rem;
  font-weight: 500;
  text-shadow: 0 2px 20px rgba(13, 30, 22, .75);
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  color: #EFCE93;
  margin: 0 0 2.2rem;
  text-shadow: 0 3px 24px rgba(13, 30, 22, .8);
}

.hero__ctas { justify-content: center; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: rgba(248, 240, 229, .7);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s;
}
.hero__scroll:hover { color: var(--cream-warm); }
.hero__scroll i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold-soft), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--cream-warm);
  animation: trickle 2.4s var(--ease-soft) infinite;
}
@keyframes trickle {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(340%); }
}

/* Hero entrance choreography */
.hero__inner > * { opacity: 0; transform: translateY(26px); }
.hero.is-open .hero__inner > * {
  animation: rise .95s var(--ease) forwards;
}
.hero.is-open .hero__mark   { animation-delay: .95s; }
.hero.is-open .hero__title  { animation-delay: 1.08s; }
.hero.is-open .hero__sub    { animation-delay: 1.2s; }
.hero.is-open .hero__rule   { animation-delay: 1.28s; }
.hero.is-open .hero__script { animation-delay: 1.36s; }
.hero.is-open .hero__ctas   { animation-delay: 1.48s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Interior hero for sub-pages */
.hero-page {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 2rem + 8vw, 8rem)) 0 clamp(3rem, 2rem + 4vw, 6rem);
  background: var(--forest);
  color: rgba(248, 240, 229, .8);
  overflow: hidden;
  isolation: isolate;
}
.hero-page__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/img/band.jpg") center 38% / cover no-repeat;
  opacity: .72;
  transform: scale(1.06);
}
.hero-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 35, 26, .88) 0%, rgba(16, 35, 26, .58) 55%, rgba(16, 35, 26, .8) 100%),
    linear-gradient(180deg, rgba(16, 35, 26, .8) 0%, rgba(16, 35, 26, .42) 42%, rgba(16, 35, 26, .92) 100%);
}
.hero-page h1 { color: var(--cream-warm); max-width: 18ch; }
.hero-page .lede { color: rgba(248, 240, 229, .76); }
.hero-page__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: end;
}

/* 8. Ticker & marquee ------------------------------------------------------ */

.ticker {
  position: relative;
  z-index: 6;
  background: var(--forest-deep);
  border-block: 1px solid rgba(216, 177, 114, .16);
  overflow: hidden;
  padding-block: .95rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: slide 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--step--1);
  color: rgba(248, 240, 229, .72);
  white-space: nowrap;
}
.ticker__item b { color: var(--cream-warm); font-weight: 600; }
.ticker__item .sep { color: var(--gold); opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--forest-deep), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--forest-deep), transparent); }

/* 9. Steps / feature cards ------------------------------------------------- */

.steps { counter-reset: step; }

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(189, 144, 68, .12), transparent 70%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.step:hover::before { opacity: 1; }
.step > * { position: relative; }

.step__icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--forest);
  transition: transform .7s var(--ease), border-color .5s, background .5s;
}
.step:hover .step__icon {
  transform: translateY(-3px) rotate(-6deg);
  border-color: var(--gold);
  background: rgba(189, 144, 68, .08);
}
.step__icon svg { width: 26px; height: 26px; }

.step__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .9rem;
}
.step__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #22150A;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 700;
  flex: none;
}
.step__head h3 { margin: 0; font-size: var(--step-2); }

.step p { color: var(--ink-soft); font-size: var(--step-0); }
.step strong { color: var(--forest); font-weight: 600; }

/* Value chips (Real / Local / Right now / Meaningful) */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.values--light { border-color: rgba(216, 177, 114, .2); }
.value {
  display: flex;
  gap: .9rem;
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-right: 1px solid var(--hairline);
}
.values--light .value { border-color: rgba(216, 177, 114, .2); }
.value:last-child { border-right: 0; }
.value:not(:first-child) { padding-left: 1.4rem; }
.value svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.value h4 {
  margin: 0 0 .2rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest);
}
.values--light .value h4 { color: var(--cream-warm); }
.value p { margin: 0; font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); }
.values--light .value p { color: rgba(248, 240, 229, .66); }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: -.03em;
}
.stat__label {
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(248, 240, 229, .6);
  margin-top: .6rem;
}

/* 10. Phone demo ----------------------------------------------------------- */

.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 1rem + 6vw, 6rem);
  align-items: center;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  aspect-ratio: 300 / 620;
  background: var(--forest-deep);
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 0 0 2px rgba(216, 177, 114, .22),
    var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 24px;
  background: var(--forest-deep);
  border-radius: 0 0 16px 16px;
  z-index: 4;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--cream-warm);
}

.screen {
  position: absolute;
  inset: 0;
  padding: 42px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
  overflow: hidden;
}
.screen.is-active { opacity: 1; transform: none; pointer-events: auto; }

.screen__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.screen__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--forest);
  margin: 2px 0 4px;
}

.card-live {
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 6px 18px -12px rgba(16, 35, 26, .5);
}
.card-live__thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  flex: none;
  background: url("../assets/img/band.jpg") center / cover;
}
.card-live h5 {
  margin: 0;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--forest);
}
.card-live p { margin: 1px 0 0; font-size: .64rem; color: var(--ink-mute); line-height: 1.35; }
.card-live .tag {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-live .dot { width: 5px; height: 5px; }

.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip {
  font-size: .56rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip.is-on { background: var(--forest); color: var(--cream-warm); border-color: var(--forest); }

.deal {
  border-radius: 12px;
  padding: 9px 11px;
  background: linear-gradient(120deg, var(--gold), #D9A85A);
  color: #22150A;
}
.deal b { font-size: .72rem; display: block; }
.deal span { font-size: .58rem; opacity: .82; }

/* passport grid */
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stamp {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px dashed var(--sage);
  display: grid;
  place-items: center;
  font-size: .95rem;
  color: var(--ink-mute);
  background: rgba(138, 154, 115, .1);
}
.stamp.is-earned {
  border-style: solid;
  background: var(--forest);
  color: var(--gold-soft);
  animation: stampIn .5s var(--ease) backwards;
}
@keyframes stampIn {
  0% { transform: scale(1.5) rotate(-12deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(28, 54, 41, .1);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 75%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-soft));
}

/* dashboard metrics */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.metric {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
}
.metric b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest);
  line-height: 1;
  display: block;
}
.metric span { font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

/* screen switcher */
.demo__nav { list-style: none; margin: 2rem 0 0; padding: 0; }
.demo__nav li { border-top: 1px solid var(--hairline); }
.section--dark .demo__nav li { border-color: rgba(216, 177, 114, .2); }
.demo__nav li:last-child { border-bottom: 1px solid var(--hairline); }
.section--dark .demo__nav li:last-child { border-color: rgba(216, 177, 114, .2); }
.demo__btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem .4rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  font-size: var(--step-0);
  transition: padding .5s var(--ease), color .3s;
}
.demo__btn em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  flex: none;
  width: 2.2em;
}
.demo__btn strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  color: var(--cream-warm);
  transition: color .3s;
}
.demo__btn small {
  display: block;
  font-size: var(--step--1);
  color: rgba(248, 240, 229, .6);
  margin-top: .2rem;
  max-width: 42ch;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .5s var(--ease), max-height .5s var(--ease), margin .5s var(--ease);
}
.demo__btn[aria-selected="true"] { padding-left: 1.1rem; }
.demo__btn[aria-selected="true"] strong { color: var(--gold-soft); }
.demo__btn[aria-selected="true"] small { opacity: 1; max-height: 5rem; }
.demo__btn:hover strong { color: var(--gold-soft); }

/* 10b. Week of discovery ---------------------------------------------------- *
 * The seven-day content rhythm. Each day carries its own palette colour as a
 * decorative marker only — the tab itself always uses the forest/cream pairing
 * so the label contrast never depends on which day is selected. */

.week {
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.week__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}
.week__days li + li { border-left: 1px solid var(--hairline); }

.week__day {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem .7rem 1.3rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-soft);
  text-align: center;
  transition: background .45s var(--ease), color .35s var(--ease);
}
.week__day::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--day, var(--gold));
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.week__day:hover { background: rgba(138, 154, 115, .12); }
.week__day[aria-selected="true"] {
  background: var(--forest);
  color: var(--cream-warm);
}
.week__day[aria-selected="true"]::before { transform: scaleX(1); }

.week__day svg { width: 26px; height: 26px; color: var(--day, var(--gold)); }
.week__day[aria-selected="true"] svg { color: var(--cream-warm); }
.week__day em {
  font-style: normal;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}
.week__day strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.15;
}

.week__panel {
  display: none;
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}
.week__panel.is-active { display: grid; animation: weekIn .6s var(--ease); }
@keyframes weekIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.week__panel h3 { margin-bottom: .4rem; }
.week__panel > div > p { color: var(--ink-soft); }

.week__ideas {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.week__ideas li {
  font-size: var(--step--1);
  padding: .45em 1em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}

.week__quote {
  border-radius: var(--radius);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  background: var(--beige);
  border: 1px solid var(--gold-line);
  text-align: center;
}
.week__quote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--forest);
  margin: 0;
}
.week__quote span {
  display: block;
  margin-top: 1rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

@media (max-width: 900px) {
  .week__days {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .week__panel.is-active { grid-template-columns: 1fr; }
}

/* 11. Story & editorial blocks --------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 1rem + 6vw, 6rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.1fr .9fr; }

.frame {
  position: relative;
  border-radius: 260px 260px 22px 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--forest-deep);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.frame:hover img { transform: scale(1.18); }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(248, 240, 229, .25);
  border-radius: inherit;
  pointer-events: none;
}
.frame--square { border-radius: var(--radius-lg); aspect-ratio: 1; }

/* floating mission card over the image */
/* Sits inside the frame's clip, so it is inset rather than overhanging. */
.float-card {
  position: absolute;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 3;
  width: min(330px, 82%);
  background: var(--forest);
  color: rgba(248, 240, 229, .88);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(216, 177, 114, .25);
}
.float-card p { font-size: var(--step--1); line-height: 1.6; margin: 0; }
.float-card strong { color: var(--gold-soft); font-weight: 600; }
.float-card svg { width: 20px; margin: 0 auto .7rem; color: var(--gold); }

.quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--forest);
  text-align: center;
  max-width: 22ch;
  margin-inline: auto;
}
.quote--light { color: var(--cream-warm); }

/* Manifesto list */
.manifesto { list-style: none; margin: 0; padding: 0; }
.manifesto li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.section--dark .manifesto li { border-color: rgba(216, 177, 114, .18); }
.manifesto li:last-child { border-bottom: 1px solid var(--hairline); }
.section--dark .manifesto li:last-child { border-color: rgba(216, 177, 114, .18); }
.manifesto b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--forest);
}
.section--dark .manifesto b { color: var(--cream-warm); }
.manifesto em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  padding-top: .45rem;
}
.manifesto p { margin: .3rem 0 0; font-size: var(--step-0); color: var(--ink-soft); }
.section--dark .manifesto p { color: rgba(248, 240, 229, .68); }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--forest);
  transition: color .3s;
}
.faq__q:hover { color: var(--gold-deep); }
.faq__sign {
  position: relative;
  width: 20px; height: 20px;
  flex: none;
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: var(--gold);
  transition: transform .45s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(0); }
.faq__a {
  overflow: hidden;
  height: 0;
  transition: height .55s var(--ease);
}
.faq__a > div { padding: 0 3rem 1.7rem 0; color: var(--ink-soft); max-width: 68ch; }

/* 12. Split CTA ------------------------------------------------------------ */

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: clamp(2rem, 1.2rem + 2.4vw, 3.2rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--cream-warm);
  text-decoration: none;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.path__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}
.path:hover .path__bg { transform: scale(1.14); }
.path::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(16, 35, 26, .45) 0%, rgba(16, 35, 26, .82) 62%, rgba(16, 35, 26, .95) 100%);
  transition: opacity .7s;
}
.path--explorer .path__bg { background-image: url("../assets/img/story.jpg"); }
.path--host .path__bg { background-image: url("../assets/img/door-warm.jpg"); }
.path h3 { color: var(--cream-warm); font-size: var(--step-3); margin-bottom: .35em; }
.path p { color: rgba(248, 240, 229, .74); max-width: 40ch; }
.path .link { margin-top: auto; padding-top: 1.6rem; }
.path__badge {
  align-self: flex-start;
  margin-bottom: auto;
}

/* 13. Forms ---------------------------------------------------------------- */

.form-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* In a two-column layout the form follows the reader down the benefits list. */
@media (min-width: 981px) {
  .form-card--sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

.form-card--dark {
  background: rgba(248, 240, 229, .05);
  border-color: rgba(216, 177, 114, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.field { position: relative; margin-bottom: 1.1rem; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.5rem 1.05rem .62rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream-warm);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--step-0);
  line-height: 1.4;
  transition: border-color .35s, box-shadow .35s, background .35s;
  appearance: none;
}
.field textarea { min-height: 108px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7F72' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}
.field label {
  position: absolute;
  left: 1.08rem;
  top: 1.02rem;
  font-size: var(--step-0);
  color: var(--ink-mute);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(189, 144, 68, .13);
  background: #fff;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.has-value + label {
  transform: translateY(-.72rem) scale(.72);
  color: var(--gold-deep);
}
.field textarea + label { top: 1.02rem; }

.form-card--dark .field input,
.form-card--dark .field select,
.form-card--dark .field textarea {
  background: rgba(16, 35, 26, .35);
  border-color: rgba(216, 177, 114, .25);
  color: var(--cream-warm);
}
.form-card--dark .field label { color: rgba(248, 240, 229, .55); }
.form-card--dark .field input:focus,
.form-card--dark .field select:focus,
.form-card--dark .field textarea:focus { background: rgba(16, 35, 26, .55); }
.form-card--dark .field input:focus + label,
.form-card--dark .field input:not(:placeholder-shown) + label,
.form-card--dark .field select.has-value + label,
.form-card--dark .field select:focus + label { color: var(--gold-soft); }

.field__error {
  display: block;
  font-size: var(--step--1);
  color: #AB3D33;
  margin: .4rem 0 0 .2rem;
  min-height: 0;
  opacity: 0;
  transition: opacity .25s;
}
.field.is-invalid input,
.field.is-invalid select { border-color: #AB3D33; }
.field.is-invalid .field__error { opacity: 1; }

.checkbox {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--ink-mute);
  cursor: pointer;
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.form-card--dark .checkbox { color: rgba(248, 240, 229, .6); }
.checkbox input {
  appearance: none;
  width: 20px; height: 20px;
  flex: none;
  margin-top: 1px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--cream-warm);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background .25s, border-color .25s;
}
.form-card--dark .checkbox input { background: rgba(16, 35, 26, .35); border-color: rgba(216, 177, 114, .3); }
.checkbox input::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid var(--cream-warm);
  border-bottom: 2px solid var(--cream-warm);
  transform: rotate(-45deg) scale(0);
  transition: transform .25s var(--ease);
}
.checkbox input:checked { background: var(--gold); border-color: var(--gold); }
.checkbox input:checked::after { transform: rotate(-45deg) scale(1); }
.checkbox a { color: var(--gold-deep); }
.form-card--dark .checkbox a { color: var(--gold-soft); }

/* Interest tags */
.tagset { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.tagset input { position: absolute; opacity: 0; width: 0; height: 0; }
.tagset label {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .55em 1.05em;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: var(--step--1);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .3s var(--ease);
  user-select: none;
}
.form-card--dark .tagset label { border-color: rgba(216, 177, 114, .25); color: rgba(248, 240, 229, .7); }
.tagset label:hover { border-color: var(--gold); }
.tagset input:checked + label {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream-warm);
}
.form-card--dark .tagset input:checked + label {
  background: var(--gold);
  border-color: var(--gold);
  color: #22150A;
}
.tagset input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }

.form-note {
  font-size: var(--step--1);
  color: var(--ink-mute);
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
}
.form-card--dark .form-note { color: rgba(248, 240, 229, .6); }
.form-note svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

/* Success state */
.form-success {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  gap: .4rem;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: scale(.97);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.form-card--dark .form-success { background: var(--forest); }
.form-card.is-sent .form-success { opacity: 1; visibility: visible; transform: none; }
.form-success__mark {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 1.4rem;
  color: var(--gold);
  animation: stampIn .6s var(--ease);
}
.form-success h3 { margin-bottom: .3rem; }
.form-card--dark .form-success h3 { color: var(--cream-warm); }
.form-success p { color: var(--ink-mute); max-width: 34ch; margin-inline: auto; }
.form-card--dark .form-success p { color: rgba(248, 240, 229, .6); }

.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy span::after {
  content: "";
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.footer {
  position: relative;
  background: var(--forest-deep);
  color: rgba(248, 240, 229, .62);
  padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0 2rem;
}
.footer__motto {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0 0 clamp(2.5rem, 1.5rem + 2vw, 4rem);
  text-align: center;
}
.footer__motto::before, .footer__motto::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.footer__motto .script {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  color: var(--gold-soft);
  line-height: 1.3;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1.2fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(216, 177, 114, .16);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer a:not(.btn):not(.brand) { color: rgba(248, 240, 229, .62); text-decoration: none; font-size: var(--step--1); transition: color .3s; }
.footer a:not(.btn):not(.brand):hover { color: var(--gold-soft); }
.footer .btn { color: var(--btn-fg); text-decoration: none; }
.footer__blurb { max-width: 34ch; font-size: var(--step--1); line-height: 1.7; }
.footer .brand { color: var(--cream-warm); margin-bottom: 1.2rem; }

.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(216, 177, 114, .3);
  display: grid;
  place-items: center;
  color: rgba(248, 240, 229, .8);
  transition: all .45s var(--ease);
}
.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #22150A;
  transform: translateY(-3px);
}
.socials svg { width: 17px; height: 17px; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: var(--step--1);
  color: rgba(248, 240, 229, .55);
}
.footer__bar .script { font-size: 1.5rem; color: var(--gold-soft); }
.footer__bar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* 15. Motion & reveal ------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Kept inside the 20px shell gutter so a pre-reveal column can never widen
   the document — the offset is small, the opacity fade carries the direction. */
[data-reveal="left"]  { transform: translateX(-18px); }
[data-reveal="right"] { transform: translateX(18px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal="left"].is-in,
[data-reveal="right"].is-in,
[data-reveal="zoom"].is-in { transform: none; }

/* line-by-line heading reveal */
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * .09s);
}
.reveal-lines.is-in .line > span { transform: none; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], .reveal-lines .line > span, .hero__inner > * { opacity: 1 !important; transform: none !important; }
  .hero .door { display: none; }
  .hero__view { opacity: 1 !important; transform: none !important; }
  .ticker__track { animation: none; }
}

/* 16. Responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: 1fr; }
  .demo, .split, .split--wide-left, .paths, .hero-page__grid { grid-template-columns: 1fr; }
  .demo { gap: 3rem; }
  .split .frame { order: -1; max-width: 480px; margin-inline: auto; width: 100%; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2n) { border-right: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .values--light .value:nth-child(n+3) { border-color: rgba(216, 177, 114, .2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .float-card { right: 1rem; }
  /* Once the columns stack there is nothing to slide in from the side, and the
     offset would push the document wider than the viewport before it animates. */
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(26px); }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  /* A hero page keeps its transparent bar until it sticks, so the light
     chrome always sits on the photograph rather than on the cream panel. */
  .nav:not(.nav--hero)::before { opacity: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .field__row { grid-template-columns: 1fr; gap: 0; }
  .hero { min-height: 92svh; }
  .btn-row .btn { width: 100%; }
  .path { min-height: 380px; }
  .faq__a > div { padding-right: 0; }
}

@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .value { border-right: 0; padding-left: 0 !important; }
  .value:not(:first-child) { border-top: 1px solid var(--hairline); }
  .footer__grid { grid-template-columns: 1fr; }
  .shell { width: min(100% - 1.75rem, var(--shell)); }
}
