/* One Air Living — marketing site
   Palette: cream #F7F0E7 · paper #FCF9F5 · ink #2D1810 · espresso #1c1009
            accent #9D5726 · deep #552E1E · copper #c88a52 · glow #d99a5f */

:root {
  /* Brand book: Soft Sand / Pure Light / Dark Walnut / Smoked Brown / Deep Earth / Mist */
  --cream: #F7F0E7;
  --paper: #FCF9F5;
  --offwhite: #F9F5EE;
  --ink: #2D1810;
  --smoked: #442518;
  --espresso: #1c1009;
  --accent: #9D5726;
  --deep: #552E1E;
  --copper: #c88a52;
  --glow: #d99a5f;
  /* The one fresh note. Reserved for clean-air states only — never decoration. */
  --sage: #8FB98B;
  --sage-deep: #5C7F58;
  --body-warm: #5c4230;
  --body-soft: #6b5341;
  --cream-70: rgba(247, 240, 231, 0.72);
  --pad-x: clamp(24px, 5vw, 72px);
  --sect-y: clamp(90px, 15vh, 180px);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Funnel Sans', system-ui, sans-serif;
  --script: 'Caveat', cursive;

  /* Signature motion language — one family of curves used everywhere */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);      /* expo-out: entrances, reveals */
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);    /* moves within the page */
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);/* ambient drift */
  --dur-quick: 0.35s;
  --dur-reveal: 1.1s;
  --dur-slow: 1.6s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--deep); }
::selection { background: var(--accent); color: var(--cream); }
input::placeholder { color: #a08a78; }
canvas { display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 em { font-style: italic; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 300;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--cream); }

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

/* Air-lines — the brand's wavy contour texture, drawn once, laid quietly on dark panels */
.airlines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="420" height="280" viewBox="0 0 420 280"><g fill="none" stroke="%23F7F0E7" stroke-opacity="0.05" stroke-width="1.1"><path d="M0 26 C 70 12, 140 40, 210 26 S 350 12, 420 26"/><path d="M0 66 C 70 52, 140 80, 210 66 S 350 52, 420 66"/><path d="M0 106 C 70 96, 140 118, 210 106 S 350 92, 420 106"/><path d="M0 146 C 70 130, 140 158, 210 146 S 350 132, 420 146"/><path d="M0 186 C 70 176, 140 198, 210 186 S 350 172, 420 186"/><path d="M0 226 C 70 210, 140 238, 210 226 S 350 212, 420 226"/><path d="M0 266 C 70 256, 140 278, 210 266 S 350 252, 420 266"/></g></svg>');
}

/* oal. monogram */
.monogram {
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em;
  color: inherit; text-decoration: none;
}
.monogram .m-a { font-family: var(--script); font-size: 1.35em; line-height: 0; font-weight: 600; }

/* Grain */
.grain {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* Type utilities */
.eyebrow {
  margin: 0 0 26px;
  font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.eyebrow-dark { color: var(--copper); }
.eyebrow-glow { color: var(--glow); }
.body-copy {
  margin: 28px 0 0;
  font-size: 16.5px; line-height: 1.75; color: var(--body-soft);
  max-width: 58ch;
}
.body-copy + .body-copy { margin-top: 20px; }
.body-copy-dark { color: var(--cream-70); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 500; font-family: var(--sans);
  transition: background var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out),
    color var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
  cursor: pointer;
}
.btn-solid { background: var(--accent); color: #F9F5EE; padding: 11px 22px; font-size: 14px; border: none; }
.btn-solid:hover { background: var(--deep); color: #F9F5EE; }
.btn-ghost {
  border: 1px solid rgba(45, 24, 16, 0.22); color: var(--ink);
  background: rgba(252, 249, 245, 0.5); padding: 16px 30px;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(252, 249, 245, 0.8); color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 15.5px; }

/* ── Nav ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-soft), border-color .5s var(--ease-soft),
    transform .6s var(--ease-out);
}
nav.is-tucked { transform: translateY(-100%); }
nav.is-solid {
  background: rgba(247, 240, 231, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(45, 24, 16, 0.08);
}
/* Brand-book wordmark: lowercase sans with a handwritten "air" */
.brand {
  display: inline-flex; align-items: baseline;
  font-family: var(--sans); font-weight: 600;
  font-size: 19px; letter-spacing: 0.005em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-air {
  font-family: var(--script); font-size: 1.5em; line-height: 0;
  font-weight: 600; color: inherit;
  margin: 0 0.14em;
}
.brand-tm { font-size: 0.42em; align-self: flex-start; margin-left: 3px; opacity: 0.6; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav-links > a:not(.btn) {
  font-size: 14.5px; color: #5c4636; letter-spacing: 0.01em;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: color var(--dur-quick) var(--ease-out), background-size .45s var(--ease-out);
}
.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).is-current {
  color: var(--ink);
  background-position: 0 100%; background-size: 100% 1px;
}

.menu-btn {
  display: none; flex-direction: column; gap: 6px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.menu-btn span {
  display: block; width: 22px; height: 1.6px; background: var(--ink);
  transition: transform .3s ease;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 30px; background: rgba(247, 240, 231, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a:not(.btn) {
  font-family: var(--serif); font-size: 28px; color: var(--ink);
}
.mobile-menu .btn { margin-top: 10px; }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(160deg, #F7F0E7, #e7d7c3);
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 72% 62% at 50% 54%, rgba(247, 240, 231, 0.62), rgba(247, 240, 231, 0.04) 72%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 110px var(--pad-x) 96px;
}
/* Staged arrival — each element enters on the same expo-out curve, offset in time */
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; }
.hero-stage { animation: heroUp 1.2s var(--ease-out) both; }
h1 .hero-stage { animation-name: heroLine; animation-duration: 1.4s; }
.hs-1 { animation-delay: .15s; }
.hs-2 { animation-delay: .35s; }
.hs-3 { animation-delay: .5s; }
.hs-4 { animation-delay: .85s; }
.hs-5 { animation-delay: 1.05s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroLine { from { transform: translateY(112%); } to { transform: none; } }

/* Progressive enhancement: hero copy drifts up and dissolves as you leave it */
@supports (animation-timeline: scroll(root)) {
  .hero-content {
    animation: heroDrift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 90vh;
  }
}
@keyframes heroDrift { to { transform: translateY(-72px); opacity: 0; } }
.hero-content .eyebrow { letter-spacing: 0.32em; font-size: 12.5px; }
h1 {
  margin: 0 auto; max-width: 14ch;
  font-size: clamp(52px, 8.5vw, 120px);
  line-height: 1.02; letter-spacing: -0.025em;
}
.hero-em { font-style: italic; color: var(--deep); }
.hero-sub {
  margin: 34px auto 0; max-width: 52ch;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--body-warm);
}
.hero-ctas {
  margin-top: 44px; display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}
@keyframes intro { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .9; } 50% { transform: translateX(-50%) scale(1.08); opacity: .5; } }

/* ── Belief ──────────────────────────────── */
.belief {
  position: relative; background: var(--ink); color: var(--cream);
  padding: var(--sect-y) var(--pad-x); text-align: center; overflow: hidden;
}
.belief-glow {
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 87, 38, 0.28), transparent 70%);
  filter: blur(20px);
  animation: breathe 11s ease-in-out infinite;
}
.belief > div { position: relative; }
.belief h2 {
  margin: 0 auto; max-width: 20ch; font-weight: 300;
  font-size: clamp(34px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -0.02em;
  color: #F9F5EE;
}
.belief h2 em { color: #e0a56e; }
.belief-body {
  margin: 36px auto 0; max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: var(--cream-70);
}

/* ── Split layout ────────────────────────── */
.split {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.split-loose { max-width: 1120px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
/* Editorial offset: vision sits lower, so the pair reads as a sequence, not a template */
@media (min-width: 721px) {
  .split-loose > div:last-child { margin-top: clamp(48px, 8vw, 120px); }
}

/* ── Story ───────────────────────────────── */
.story { padding: var(--sect-y) var(--pad-x); }
.story h2 {
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em;
}
.story .eyebrow { margin-bottom: 22px; }

/* Crafted scenes */
.scene {
  position: relative; margin: 0; width: 100%;
  height: clamp(360px, 52vh, 560px); border-radius: 20px; overflow: hidden;
}
/* Scenes drift a touch slower than the page — depth without spectacle */
@supports (animation-timeline: view()) {
  .scene {
    animation: sceneFloat linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}
@keyframes sceneFloat {
  from { transform: translateY(34px); }
  to { transform: translateY(-34px); }
}
@media (prefers-reduced-motion: reduce) { .scene { animation: none; } }
html.reduce-motion .scene { animation: none; }
.scene-light {
  background: linear-gradient(168deg, #efe3d2 0%, #e6d3ba 46%, #d9bf9f 100%);
  box-shadow: 0 34px 70px -46px rgba(45, 24, 16, 0.45);
}
.scene-sun {
  position: absolute; top: -18%; right: -12%;
  width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 244, 228, 0.95), rgba(240, 216, 178, 0.35) 55%, transparent 72%);
  animation: sunDrift 14s ease-in-out infinite alternate;
}
.scene-curtain {
  position: absolute; top: 0; bottom: 0; width: 34%;
  background: linear-gradient(180deg, rgba(252, 249, 245, 0.5), rgba(252, 249, 245, 0.16));
  border-radius: 0 0 45% 45% / 0 0 6% 6%;
  filter: blur(1px);
}
.scene-curtain.c1 { left: 4%; animation: sway 9s ease-in-out infinite alternate; }
.scene-curtain.c2 { left: 34%; opacity: .8; animation: sway 11s ease-in-out -3s infinite alternate-reverse; }
.scene-curtain.c3 { left: 64%; opacity: .65; animation: sway 13s ease-in-out -6s infinite alternate; }
.scene-sill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
  background: linear-gradient(180deg, transparent, rgba(85, 46, 30, 0.28));
}
.scene-caption {
  position: absolute; left: 24px; bottom: 18px;
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: rgba(85, 46, 30, 0.75);
}
@keyframes sway { from { transform: skewX(0deg) translateX(0); } to { transform: skewX(2.4deg) translateX(10px); } }
@keyframes sunDrift { from { transform: translate(0, 0); } to { transform: translate(-4%, 5%); } }

/* ── How it works ────────────────────────── */
.how { position: relative; background: var(--espresso); }
.how-track { position: relative; height: 360vh; }
.how-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: flex; align-items: center;
}
#proc-gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, #4a3120, var(--espresso));
}
.how-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 12, 7, 0.55), rgba(20, 12, 7, 0.05) 55%, rgba(20, 12, 7, 0));
}
.how-copy { position: relative; z-index: 3; width: 100%; padding: 0 clamp(24px, 6vw, 110px); }
.how-inner { max-width: 540px; }
.how-inner .eyebrow { margin-bottom: 28px; letter-spacing: 0.32em; }
.how-caps { position: relative; min-height: 250px; }
.how-cap { position: absolute; inset: 0; opacity: 0; }
.how-cap:first-child { opacity: 1; }
.cap-num { font-family: var(--serif); font-size: 14px; color: var(--glow); letter-spacing: 0.08em; }
.how-cap h3 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.02em;
  color: #F9F5EE;
}
.how-cap p {
  margin: 0; max-width: 44ch;
  font-size: 17px; line-height: 1.7; color: rgba(247, 240, 231, 0.82);
}

.pm-card {
  margin-top: 38px; max-width: 360px; padding: 20px 22px;
  border-radius: 16px; background: rgba(247, 240, 231, 0.06);
  border: 1px solid rgba(247, 240, 231, 0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pm-row { display: flex; align-items: baseline; justify-content: space-between; }
.pm-label {
  display: inline-flex; align-items: center; gap: 8px;
  /* no text-transform: uppercasing µ turns µg/m³ into Greek-capital "ΜG/M³" (reads as milligrams) */
  font-size: 11.5px; letter-spacing: 0.2em; color: rgba(247, 240, 231, 0.55);
}
.pm-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--glow);
  animation: pmPulse 2.6s var(--ease-soft) infinite;
}
@keyframes pmPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(217, 154, 95, 0.5); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(217, 154, 95, 0); } }
@media (prefers-reduced-motion: reduce) { .pm-live { animation: none; } }
html.reduce-motion .pm-live { animation: none; }
.pm-status { font-size: 13px; font-weight: 600; color: #c96a3a; letter-spacing: 0.02em; }
.pm-value { margin: 8px 0 14px; }
.pm-value span { font-family: var(--serif); font-size: 52px; line-height: 1; color: #F9F5EE; }
.pm-track { height: 5px; border-radius: 999px; background: rgba(247, 240, 231, 0.12); overflow: hidden; }
.pm-bar { height: 100%; width: 100%; border-radius: 999px; background: #c96a3a; transition: width .1s linear, background .3s ease; }

.how-dots {
  position: absolute; right: clamp(20px, 4vw, 54px); top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 16px;
}
.how-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(247, 240, 231, 0.25); transition: all .3s ease;
}
.how-dot.is-active { background: var(--glow); transform: scale(1.35); }

/* Once the air clears, the stage is light — the copy crossfades to ink */
.how-cap h3, .how-cap p, .how-inner .eyebrow, .cap-num,
.pm-label, .pm-value span { transition: color .9s var(--ease-soft); }
.pm-card { transition: background .9s var(--ease-soft), border-color .9s var(--ease-soft); }
.how-stage.is-clear .how-cap h3 { color: var(--ink); }
.how-stage.is-clear .how-cap p { color: var(--body-warm); }
.how-stage.is-clear .how-inner .eyebrow { color: var(--accent); }
.how-stage.is-clear .cap-num { color: var(--accent); }
.how-stage.is-clear .pm-card {
  background: rgba(45, 24, 16, 0.05);
  border-color: rgba(45, 24, 16, 0.14);
}
.how-stage.is-clear .pm-label { color: rgba(45, 24, 16, 0.55); }
.how-stage.is-clear .pm-value span { color: var(--ink); }
.how-stage.is-clear .pm-track { background: rgba(45, 24, 16, 0.12); }
.how-stage.is-clear .how-dot { background: rgba(45, 24, 16, 0.22); }
.how-stage.is-clear .how-dot.is-active { background: var(--accent); }

/* ── Mission ─────────────────────────────── */
.mission {
  background: var(--paper);
  padding: var(--sect-y) var(--pad-x);
  border-bottom: 1px solid rgba(45, 24, 16, 0.06);
}
.mission .eyebrow { margin-bottom: 20px; }
.creed {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.01em;
}

/* ── Statement — phrases sharpen into focus as you scroll past ── */
.statement {
  background: var(--cream);
  padding: clamp(80px, 13vh, 160px) var(--pad-x); text-align: center;
}
.statement h2 {
  margin: 0 auto; max-width: 18ch;
  font-size: clamp(34px, 5.5vw, 76px); line-height: 1.05; letter-spacing: -0.025em;
}
.statement h2 em { color: var(--accent); }
.statement .phrase { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.statement .phrase.is-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--i) * 0.18s);
}
@supports (animation-timeline: view()) {
  .statement .phrase {
    opacity: 1; transform: none; filter: none; transition: none;
    animation: phraseIn linear both;
    animation-timeline: view();
    animation-range: entry calc(15% + var(--i) * 12%) cover calc(42% + var(--i) * 12%);
  }
}
@keyframes phraseIn {
  from { opacity: 0.08; transform: translateY(26px); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ── Trust — light section, the blueprint stays dark inside its card ── */
.trust {
  background: var(--paper); color: var(--ink);
  padding: var(--sect-y) var(--pad-x);
}
.trust h2 {
  font-weight: 400; font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
}
.trust .eyebrow { margin-bottom: 22px; }
.trust-copy { order: 1; }
.trust-scene { order: 2; }
.scene-plan {
  display: flex; align-items: center; justify-content: center;
  height: clamp(340px, 50vh, 540px);
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(157, 87, 38, 0.14), transparent 70%),
    #241408;
  box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 0.6);
  padding: clamp(16px, 3vw, 36px);
}
.scene-plan svg { width: 100%; height: 100%; max-height: 100%; }
.plan-flow { animation: flowDash 3.2s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -24; } }
.plan-pulse { animation: planPulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes planPulse { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .35; transform: scale(1.7); } }

/* ── Instrument strip — quiet engineering facts ── */
.instrument {
  background: var(--cream);
  border-top: 1px solid rgba(45, 24, 16, 0.1);
  border-bottom: 1px solid rgba(45, 24, 16, 0.1);
  padding: clamp(48px, 8vh, 88px) var(--pad-x);
}
.instrument-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.inst-label {
  margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.inst-value {
  margin: 0 0 8px; font-family: var(--sans); font-weight: 600;
  font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.01em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.inst-note { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body-soft); max-width: 32ch; }
@media (min-width: 721px) {
  .inst-item { border-left: 1px solid rgba(45, 24, 16, 0.12); padding-left: clamp(20px, 2.4vw, 32px); }
  .inst-item:first-child { border-left: none; padding-left: 0; }
}

/* ── Contact ─────────────────────────────── */
.contact {
  padding: clamp(96px, 16vh, 200px) var(--pad-x); text-align: center;
}
.contact h2 {
  margin: 0 auto; max-width: 16ch;
  font-size: clamp(38px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.025em;
}
#consult-form {
  margin: 44px auto 0; max-width: 520px;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
#consult-form input {
  flex: 1; min-width: 240px; padding: 16px 22px;
  border-radius: 999px; border: 1px solid rgba(45, 24, 16, 0.2);
  background: var(--paper); font-family: var(--sans);
  font-size: 15.5px; color: var(--ink); outline: none;
  transition: border-color .25s ease;
}
#consult-form input:focus { border-color: var(--accent); }
#consult-form input[aria-invalid="true"] { border-color: #b0492e; }
.contact-note { margin: 22px 0 0; font-size: 14px; color: #8a7361; }
.contact-note.is-success { color: var(--sage-deep); font-weight: 500; }
.contact-soft {
  margin: 10px 0 0; font-family: var(--serif); font-style: italic;
  font-size: 15px; color: #a08a78;
}

/* ── Story page ──────────────────────────── */
.story-hero {
  padding: clamp(150px, 22vh, 240px) var(--pad-x) clamp(60px, 9vh, 110px);
  max-width: 1180px; margin: 0 auto;
}
.story-hero h1 {
  margin: 0; max-width: 14ch; text-align: left;
  font-size: clamp(44px, 7vw, 104px);
}
.story-lede {
  margin-top: 36px; max-width: 58ch;
  margin-left: clamp(0px, 18vw, 260px);
}
.story-lede p {
  margin: 0; font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.7; color: var(--body-warm);
}
.story-body { padding: clamp(40px, 7vh, 90px) var(--pad-x) var(--sect-y); }
.story-col { max-width: 640px; margin: 0 auto; }
.story-col p {
  margin: 0 0 26px; font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.75; color: var(--body-soft);
}
.story-pull {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px) !important; line-height: 1.35 !important;
  color: var(--deep) !important; margin-top: 44px !important;
}
.story-panel {
  position: relative; overflow: hidden;
  background: var(--smoked); color: var(--cream);
  padding: var(--sect-y) var(--pad-x);
}
.story-panel-inner { position: relative; max-width: 820px; margin: 0 auto; }
.creed-dark { color: #F9F5EE; }
.story-panel-note {
  margin: 30px 0 0; font-size: 16px; line-height: 1.7;
  color: rgba(247, 240, 231, 0.66); max-width: 52ch;
}
.story-vision {
  background: var(--paper); padding: var(--sect-y) var(--pad-x);
  border-bottom: 1px solid rgba(45, 24, 16, 0.06);
}
.story-vision > div { max-width: 820px; margin: 0 auto; }
.founder { background: var(--cream); padding: var(--sect-y) var(--pad-x); }
.founder-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.founder-quote {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45;
  letter-spacing: -0.01em; color: var(--ink);
}
.founder-sig {
  margin: 34px 0 0; font-family: var(--script); font-weight: 600;
  font-size: clamp(38px, 4vw, 54px); color: var(--accent);
  transform: rotate(-4deg);
}
.founder-name { margin: 6px 0 0; font-size: 14px; color: #8a7361; letter-spacing: 0.04em; }
.sys-cta h2 em { color: var(--deep); }

/* ── Contact page ────────────────────────── */
.contact-page { padding-top: clamp(150px, 24vh, 260px); }
.contact-h1 {
  margin: 0 auto; max-width: 16ch;
  font-size: clamp(38px, 6vw, 84px); line-height: 1.04; letter-spacing: -0.025em;
}
.next-steps { background: var(--paper); padding: var(--sect-y) var(--pad-x); border-top: 1px solid rgba(45, 24, 16, 0.06); }
.next-inner { max-width: 1120px; margin: 0 auto; }
.next-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 64px); margin-top: 40px;
}
.next-title { margin: 0; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.02em; }
.next-h { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; margin-bottom: 4px; }
.direct-band {
  position: relative; overflow: hidden;
  background: var(--deep); color: var(--cream);
  padding: clamp(80px, 12vh, 140px) var(--pad-x); text-align: center;
}
.direct-inner { position: relative; }
.direct-ask {
  margin: 0 0 18px; font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 1.8vw, 24px); color: rgba(247, 240, 231, 0.72);
}
.direct-mail { font-size: clamp(24px, 3.4vw, 44px); }
.direct-alt { margin: 20px 0 0; font-size: 15px; color: rgba(247, 240, 231, 0.6); }
.direct-alt a { color: var(--glow); }
.direct-alt a:hover { color: var(--cream); }

/* ── Monitoring page ─────────────────────── */
.mon-hero {
  padding: clamp(150px, 22vh, 230px) var(--pad-x) clamp(70px, 10vh, 120px);
  max-width: 1180px; margin: 0 auto;
}
.mon-hero h1 { margin: 0; max-width: 12ch; text-align: left; font-size: clamp(44px, 6.8vw, 100px); }
.mon-sub { margin: 26px 0 0; max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--body-warm); }

.stat-hero { margin-top: clamp(48px, 8vh, 90px); }
.stat-lede { margin: 0; font-size: 15px; letter-spacing: 0.06em; color: #8a7361; }
.stat-big {
  margin: 4px 0 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(96px, 15vw, 220px); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: 0.45em; font-style: italic; color: var(--accent); }
.stat-tail { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 26px); color: var(--deep); }
.stat-chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 14.5px; color: var(--body-soft);
  border: 1px solid rgba(45, 24, 16, 0.14); background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.chip strong { font-size: 17px; color: var(--ink); font-weight: 600; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.chip-inside .chip-dot { background: #177A50; }
.chip-outside .chip-dot { background: #A85A22; }
.stat-note { margin: 18px 0 0; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #a08a78; }

.rooms { background: var(--paper); padding: var(--sect-y) var(--pad-x); border-top: 1px solid rgba(45, 24, 16, 0.06); }
.rooms-inner { max-width: 1180px; margin: 0 auto; }
.rooms h2 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.02em; margin-bottom: 40px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.room-tile {
  border: 1px solid rgba(45, 24, 16, 0.1); border-radius: 18px;
  background: var(--cream); padding: 24px 24px 20px;
  transition: background .6s var(--ease-soft), border-color .6s var(--ease-soft);
}
.room-tile.is-settling { background: #F6EAD8; border-color: rgba(157, 87, 38, 0.24); }
.room-name { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a7361; }
.room-pm {
  margin: 0; font-family: var(--serif); font-size: clamp(44px, 4vw, 60px);
  line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.room-unit { font-family: var(--sans); font-size: 13px; color: #a08a78; margin-left: 8px; }
.room-state { margin: 14px 0 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-clean { color: #177A50; }
.state-settling { color: #8F5E1D; }
.room-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #8a7361; font-style: italic; font-family: var(--serif); }
.rooms-caption { margin: 32px 0 0; font-size: 14.5px; color: #8a7361; max-width: 62ch; }

.daychart { background: var(--cream); padding: var(--sect-y) var(--pad-x); }
.daychart-inner { max-width: 1080px; margin: 0 auto; }
.daychart h2 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.02em; }
.chart-legend { display: flex; gap: 22px; margin: 26px 0 10px; }
.lg-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body-soft); }
.lg-swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-fig { margin: 0; }
.chart-wrap { position: relative; }
#day-chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart-tip {
  position: absolute; top: 8px; transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.5;
  pointer-events: none; white-space: nowrap;
  display: flex; flex-direction: column; gap: 2px;
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 240, 231, 0.66); font-weight: 500; }
.tip-row { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.tip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chart-caption { margin: 14px 0 0; font-size: 13.5px; color: #8a7361; }

.quiet-band { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding: var(--sect-y) var(--pad-x); }
.quiet-inner { position: relative; max-width: 820px; margin: 0 auto; }
.quiet-band h2 { color: #F9F5EE; font-weight: 300; font-size: clamp(30px, 4vw, 56px); letter-spacing: -0.02em; margin-bottom: 20px; }
.quiet-rows { margin-top: 44px; border-top: 1px solid rgba(247, 240, 231, 0.14); }
.quiet-row {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 18px; padding: 20px 0;
  border-bottom: 1px solid rgba(247, 240, 231, 0.14);
}
.quiet-when { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--glow); }
.quiet-what { font-size: 15.5px; line-height: 1.65; color: rgba(247, 240, 231, 0.75); }
.quiet-row-rest .quiet-when { color: rgba(247, 240, 231, 0.5); }
@media (max-width: 600px) { .quiet-row { grid-template-columns: 1fr; gap: 4px; } }

/* ── Footer — the last scene ─────────────── */
footer {
  position: relative; overflow: hidden;
  background: var(--espresso); color: var(--cream-70);
  padding: clamp(64px, 10vh, 120px) var(--pad-x) 40px;
}
footer > :not(.airlines) { position: relative; }
.footer-hero {
  max-width: 1180px; margin: 0 auto clamp(56px, 9vh, 110px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.footer-big {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 10vw, 150px); line-height: 0.98; letter-spacing: -0.03em;
  color: #F9F5EE;
  animation: footBreathe 8s var(--ease-soft) infinite;
  transform-origin: left bottom;
}
.footer-big em { font-style: italic; color: var(--glow); }
@keyframes footBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.footer-mail {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px); color: var(--cream-70);
  background: linear-gradient(var(--glow), var(--glow)) no-repeat 100% 100% / 0 1px;
  padding-bottom: 4px;
  transition: color var(--dur-quick) var(--ease-out), background-size .5s var(--ease-out);
}
.footer-mail:hover { color: #F9F5EE; background-position: 0 100%; background-size: 100% 1px; }
.motion-toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em;
  color: rgba(247, 240, 231, 0.5); padding: 0;
  transition: color var(--dur-quick) var(--ease-out);
}
.motion-toggle:hover { color: var(--cream); }
.footer-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; align-items: start;
}
.brand-footer { font-size: 23px; color: var(--cream); }
.footer-tag {
  margin: 18px 0 0; font-family: var(--serif); font-style: italic;
  font-size: 19px; color: rgba(247, 240, 231, 0.85);
}
.footer-head {
  margin: 0 0 14px; font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--copper);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--cream-70); font-size: 15px; }
.footer-links a:hover { color: var(--cream); }
.footer-base {
  max-width: 1180px; margin: clamp(40px, 6vh, 64px) auto 0;
  padding-top: 26px; border-top: 1px solid rgba(247, 240, 231, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(247, 240, 231, 0.5);
}

/* ── The System page ─────────────────────── */
.page-dark { background: #1a0f08; }
nav.nav-dark:not(.is-solid) .brand { color: var(--cream); }
nav.nav-dark:not(.is-solid) .nav-links > a:not(.btn) { color: rgba(247, 240, 231, 0.75); }
nav.nav-dark:not(.is-solid) .nav-links > a:not(.btn):hover,
nav.nav-dark:not(.is-solid) .nav-links > a:not(.btn).is-current { color: var(--cream); }
nav.nav-dark:not(.is-solid) .menu-btn span { background: var(--cream); }

.sys-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; color: var(--cream);
}
#diffuser-gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 44%, #3a2416, #1a0f08 75%);
}
.sys-hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 15, 8, 0.42), rgba(26, 15, 8, 0) 30%, rgba(26, 15, 8, 0) 55%, rgba(26, 15, 8, 0.72) 92%);
}
.sys-hero-copy {
  position: relative; z-index: 2;
  padding: 0 var(--pad-x) clamp(84px, 14vh, 150px);
  max-width: 860px;
}
.sys-hero-copy h1 {
  margin: 0; max-width: 12ch; text-align: left;
  font-size: clamp(44px, 6.8vw, 96px);
  color: #F9F5EE;
}
.sys-hero-copy .hero-em { color: var(--glow); }
.sys-hero-sub {
  margin: 26px 0 0; max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65;
  color: rgba(247, 240, 231, 0.78);
}

.part { position: relative; padding: var(--sect-y) var(--pad-x); overflow: hidden; }
.part-light { background: var(--cream); }
.part-dark { background: var(--ink); color: var(--cream); }
.part-dark > .split { position: relative; }
.part h2 {
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 17ch;
}
.part-dark h2 { color: #F9F5EE; font-weight: 300; }
.part-num {
  font-family: var(--serif); font-size: 15px; color: var(--copper);
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.part .eyebrow { margin-bottom: 18px; }

.scene-unit {
  background: #efe0c9;
  box-shadow: 0 34px 70px -46px rgba(45, 24, 16, 0.45);
}
.scene-unit svg { width: 100%; height: 100%; display: block; }

/* The hidden-ceiling scene */
.scene-ceiling {
  box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 0.6);
}
.scene-ceiling svg { width: 100%; height: 100%; display: block; }
.air-fall { animation: airFall 5s var(--ease-soft) infinite; }
@keyframes airFall { 0%, 100% { opacity: 0.5; transform: translateY(0); } 50% { opacity: 0.25; transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .air-fall { animation: none; } }
html.reduce-motion .air-fall { animation: none; }
.scene-caption-dark { color: rgba(247, 240, 231, 0.6); }

.app-band { position: relative; background: var(--deep); color: var(--cream); padding: var(--sect-y) var(--pad-x); overflow: hidden; }
.app-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="420" height="280" viewBox="0 0 420 280"><g fill="none" stroke="%23F7F0E7" stroke-opacity="0.05" stroke-width="1.1"><path d="M0 26 C 70 12, 140 40, 210 26 S 350 12, 420 26"/><path d="M0 66 C 70 52, 140 80, 210 66 S 350 52, 420 66"/><path d="M0 106 C 70 96, 140 118, 210 106 S 350 92, 420 106"/><path d="M0 146 C 70 130, 140 158, 210 146 S 350 132, 420 146"/><path d="M0 186 C 70 176, 140 198, 210 186 S 350 172, 420 186"/><path d="M0 226 C 70 210, 140 238, 210 226 S 350 212, 420 226"/><path d="M0 266 C 70 256, 140 278, 420 266"/></g></svg>');
}
.app-band > .split { position: relative; }
.app-band h2 { color: #F9F5EE; font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.02em; }

.phone {
  width: min(320px, 82%); margin: 0 auto;
  border-radius: 38px; padding: 54px 22px 34px;
  background: linear-gradient(175deg, #241509, #180d05);
  border: 1px solid rgba(247, 240, 231, 0.14);
  box-shadow: 0 44px 90px -50px rgba(0, 0, 0, 0.8);
  position: relative;
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 9px; border-radius: 999px;
  background: rgba(247, 240, 231, 0.12);
}
.phone-brand { font-size: 17px; color: var(--cream); margin-bottom: 20px; }
.phone-room {
  margin: 0 0 10px; font-family: var(--serif); font-size: 24px;
  color: #F9F5EE;
}
.phone-card { max-width: none; margin-top: 0; }
.phone-note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(247, 240, 231, 0.6); }
.phone-note strong { color: #d59a4e; font-weight: 600; }

.sys-cta { background: var(--cream); padding: clamp(96px, 15vh, 180px) var(--pad-x); text-align: center; }
.sys-cta h2 {
  margin: 0 auto 36px; max-width: 17ch;
  font-size: clamp(34px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.025em;
}

@media (prefers-reduced-motion: reduce) { .sd-rings span { animation: none; } }
html.reduce-motion .sd-rings span { animation: none; }

/* ── Reveal ──────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
[data-reveal-delay] { transition-delay: .12s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── Mobile ──────────────────────────────── */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .how-stage { padding-top: 64px; }
  .how-copy { padding: 0 24px; }
  .how-caps { min-height: 300px; }
  .how-dots { right: 16px; }
  .footer-base { justify-content: center; text-align: center; }
}

/* ── Reduced motion ───────────────────────────
   Same parallel design serves the OS preference and the on-page toggle
   (html.reduce-motion). Not a kill switch: composition survives, motion rests. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content, .hero-stage { animation: none; }
  .belief-glow, .scene-sun, .scene-curtain,
  .plan-flow, .plan-pulse, .footer-big { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .statement .phrase { animation: none; opacity: 1; transform: none; filter: none; transition: none; }
  .how-track { height: auto; }
  .how-stage { position: static; height: auto; padding: var(--sect-y) 0; }
  .how-caps { min-height: 0; }
  .how-cap { position: static; margin-bottom: 48px; opacity: 1 !important; transform: none !important; }
  .how-dots { display: none; }
}
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion .hero-content, html.reduce-motion .hero-stage, html.reduce-motion .belief-glow, html.reduce-motion .scene-sun,
html.reduce-motion .scene-curtain, html.reduce-motion .plan-flow, html.reduce-motion .plan-pulse,
html.reduce-motion .footer-big { animation: none; }
html.reduce-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
html.reduce-motion .statement .phrase { animation: none; opacity: 1; transform: none; filter: none; transition: none; }
html.reduce-motion .how-track { height: auto; }
html.reduce-motion .how-stage { position: static; height: auto; padding: var(--sect-y) 0; }
html.reduce-motion .how-caps { min-height: 0; }
html.reduce-motion .how-cap { position: static; margin-bottom: 48px; opacity: 1 !important; transform: none !important; }
html.reduce-motion .how-dots { display: none; }
