/* Ernest Stephens theme — ported from the approved homepage prototype (design/erneststephens-prototype.html). */

/* Fonts are served from the theme (assets/fonts), not from Google. See assets/fonts/README.txt for licences. */
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-roman-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/hanken-grotesk-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/hanken-grotesk-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/hanken-grotesk-roman-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/hanken-grotesk-roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Stand-in for the hero headline while Fraunces loads: Georgia scaled to the same width, so the headline
   wraps on the same lines and nothing moves when the real font arrives. (Fraunces' display cut is ~15% narrower.) */
@font-face { font-family: "Fraunces Hero Fallback"; src: local("Georgia"); size-adjust: 84.6%; }

:root {
    --paper: #fbfaf7;
    --paper-2: #f1eee8;
    --ink: #1b1f24;
    --ink-2: #4d535c;
    --ink-3: #62686f;
    --line: #dcd8d0;
    --teal: #2f5d62;
    --teal-soft: #dfe9e8;
    --scene: #1c2226;
    --scene-2: #232a2f;
    --bone: #f3efe6;
    --display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; padding: 0; }
  h1, h2, h3 { margin: 0; text-wrap: balance; }
  p { margin: 0; }
  a { color: inherit; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
  /* Teal disappears on the dark sections and over the hero video: use the light colour there. */
  .dark :focus-visible, .nav:not(.solid) :focus-visible { outline-color: var(--bone); }
  .gutter { padding-inline: clamp(20px, 5vw, 72px); }
  .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
  .standin { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 10px; }
  .dark .standin { color: rgba(243,239,230,0.5); border-color: rgba(243,239,230,0.25); }

  /* ---------- media placeholders ---------- */
  .ph {
    position: relative; overflow: hidden; background-color: #2a3439;
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),
      radial-gradient(90% 70% at 70% 30%, rgba(214,178,120,0.45) 0%, rgba(214,178,120,0) 60%),
      linear-gradient(200deg, #4a5a5f 0%, #1c2226 70%);
  }
  .ph .cap {
    position: absolute; left: 16px; bottom: 14px; z-index: 2;
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,239,230,0.75);
    padding: 6px 10px; border: 1px solid rgba(243,239,230,0.25); border-radius: 999px; backdrop-filter: blur(4px);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .ph .cap i { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; display: inline-block; }
  .hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .about .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: saturate(0.92) contrast(1.02); }
  .skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; text-decoration: none; }
  .skip:focus { top: 12px; }
  .notice { margin-bottom: 18px; padding: 14px 16px; border-radius: 6px; font-size: 15px; background: var(--teal-soft); color: var(--ink); }
  .notice.err { background: var(--amber-soft, #f6ead2); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* ---------- nav ---------- */
  .nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; padding-block: 18px;
    color: var(--bone); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
  }
  .nav.solid { background: rgba(251,250,247,0.92); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
  .nav .brand { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
  .nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
  .nav ul a { text-decoration: none; position: relative; }
  .nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right 250ms ease; }
  .nav ul a:hover::after, .nav ul a[aria-current="page"]::after { right: 0; }
  .menu-btn { display: none; }
  .nav .book { font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid currentColor; transition: background-color 200ms ease, color 200ms ease; }
  .nav.solid .book { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .nav .book:hover { background: var(--bone); color: var(--ink); }
  .nav.solid .book:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

  /* ---------- 1. hero (dark, video) ---------- */
  .hero { position: relative; min-height: min(88vh, 840px); display: grid; align-content: end; color: var(--bone); padding-block: 120px 56px; }
  .hero .ph-bg { position: absolute; inset: 0; z-index: 0; }
  .hero .ph-bg .cap { left: auto; right: 20px; bottom: 20px; }
  .hero .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28,34,38,0.35) 0%, rgba(28,34,38,0.05) 35%, rgba(28,34,38,0.6) 75%, rgba(28,34,38,0.9) 100%); }
  .hero .inner { position: relative; z-index: 2; display: grid; gap: 26px; max-width: 900px; }
  .hero .label { color: rgba(243,239,230,0.75); }
  .hero h1 { font-family: "Fraunces", "Fraunces Hero Fallback", Georgia, serif; font-weight: 400; font-size: clamp(40px, 7vw, 100px); line-height: 0.96; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
  .hero h1 em { font-style: italic; font-weight: 300; }
  .hero .lede { font-size: clamp(17px, 1.4vw, 21px); max-width: 52ch; color: rgba(243,239,230,0.85); font-weight: 300; }
  .hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
  .btn { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--bone); color: var(--bone); background: none; font-family: inherit; cursor: pointer; transition: transform 200ms ease, background-color 200ms ease, color 200ms ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn.primary { background: var(--bone); color: var(--ink); }
  .btn.primary:hover { background: #fff; }
  .btn .play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; display: inline-block; }
  .vid-toggle { position: absolute; right: calc(clamp(20px, 5vw, 72px) + 76px); bottom: 30px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(243,239,230,0.55); background: rgba(28,34,38,0.4); color: var(--bone); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background-color 200ms ease; }
  .vid-toggle[hidden] { display: none; }
  .vid-toggle:hover { background: rgba(28,34,38,0.7); }
  .vid-toggle i { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
  .vid-toggle.paused i { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
  .hero .cue { position: absolute; right: clamp(20px, 5vw, 72px); bottom: 30px; z-index: 2; display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,239,230,0.7); }
  .hero .cue i { width: 1px; height: 44px; background: rgba(243,239,230,0.6); display: block; transform-origin: top; }
  @media (prefers-reduced-motion: no-preference) {
    .hero .cue i { animation: drop 1.8s ease-in-out infinite; }
    @keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
    .hero .inner > * { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
    .hero .inner > *:nth-child(2) { animation-delay: 120ms; }
    .hero .inner > *:nth-child(3) { animation-delay: 240ms; }
    .hero .inner > *:nth-child(4) { animation-delay: 360ms; }
    @keyframes rise { from { transform: translateY(28px); } to { transform: translateY(0); } }
  }

  /* ---------- 2. rooms (light, forty dots) ---------- */
  .rooms { background: var(--paper); padding-block: clamp(64px, 8vw, 110px); display: grid; gap: 36px; }
  .rooms .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; }
  .rooms .head .label { color: var(--teal); margin-bottom: 12px; }
  .rooms .head h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; }
  .rooms .head p { color: var(--ink-2); max-width: 44ch; justify-self: end; }
  .rooms .demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
  .stage { position: relative; align-self: stretch; min-height: 340px; max-width: 100%; background: var(--paper-2); overflow: hidden; }
  .stage .dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transform: translate(var(--tx), var(--ty)); transition: transform 1100ms cubic-bezier(.3,.8,.2,1); }
  .stage .dot.you { background: var(--teal); width: 15px; height: 15px; z-index: 2; box-shadow: 0 0 0 5px var(--teal-soft); }
  .stage .furn { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; transition: all 1100ms cubic-bezier(.3,.8,.2,1); opacity: 0; }
  .stage .furn.on { opacity: 1; }
  .stage .key { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 14px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .stage .key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-right: 6px; vertical-align: middle; }
  .stage .key i.t { background: var(--teal); }
  .stage .now { position: absolute; right: 14px; top: 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .formats { border-left: 1px solid var(--line); display: grid; align-content: start; }
  .fmt { border-bottom: 1px solid var(--line); }
  .fmt:last-of-type { border-bottom: 0; }
  .fmt button {
    width: 100%; font: inherit; text-align: left; background: none; border: 0; cursor: pointer; color: var(--ink);
    padding: 20px 22px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: baseline;
    transition: background-color 200ms ease;
  }
  .fmt button:hover { background: var(--paper-2); }
  .fmt button .n { font-family: var(--display); font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .fmt button b { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
  .fmt button b small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
  .fmt button .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(-45deg); transition: transform 300ms ease; align-self: center; }
  .fmt.on button { background: var(--teal-soft); }
  .fmt.on button .chev { transform: rotate(45deg); }
  /* Panels are open by default; with JS they collapse to the active one. Rows animate 0fr→1fr so nothing clips at large text sizes,
     and collapsed panels are visibility:hidden so their links leave the tab order and the reading order. */
  .fmt .detail { display: grid; grid-template-rows: 1fr; background: var(--teal-soft); }
  .fmt .detail-in { min-height: 0; overflow: hidden; display: grid; gap: 14px; padding: 0 22px 0 64px; }
  .fmt .detail-in::after { content: ""; height: 8px; }
  .js .fmt .detail { transition: grid-template-rows 500ms cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .js .fmt:not(.on) .detail { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 500ms cubic-bezier(.2,.7,.2,1), visibility 0s 500ms; }
  .fmt .detail p { color: var(--ink-2); font-size: 15px; max-width: 40ch; }
  .fmt .detail .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .fmt .detail .more { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; justify-self: start; }
  .fmt .detail .more:hover { color: var(--teal); border-color: var(--teal); }
  .formats .auto { font: inherit; text-align: left; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; padding: 12px 22px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .formats .auto:hover { color: var(--ink); }

  /* ---------- 3. about (dark, sticky portrait + chapters) ---------- */
  .about { background: var(--scene); color: var(--bone); }
  .about .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
  .about .sticky { position: sticky; top: 0; height: 100vh; display: grid; align-content: center; gap: 18px; padding-block: 60px; }
  .about .portrait { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; max-height: calc(100vh - 190px); border-radius: 6px; background: var(--scene-2); }
  /* Soft dark vignette blends the studio backdrop into the section and hides retouching at the edges. */
  .about .portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 50% 35%, rgba(28,34,38,0) 45%, rgba(28,34,38,0.55) 100%); }
  .about .portrait.ph { background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),
      radial-gradient(70% 60% at 35% 25%, rgba(214,178,120,0.5) 0%, rgba(214,178,120,0) 60%),
      linear-gradient(190deg, #55636a 0%, #1c2226 75%); }
  .about .counter { display: flex; gap: 14px; align-items: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,239,230,0.55); }
  .about .counter .bar { width: 64px; height: 1px; background: rgba(243,239,230,0.25); position: relative; }
  .about .counter .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 33.3%; background: var(--bone); transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
  .about .chapters { display: grid; }
  .chapter { min-height: 100vh; display: grid; align-content: center; gap: 22px; padding-block: 60px; }
  .chapter:first-child { padding-top: 120px; }
  .chapter .label { color: rgba(243,239,230,0.55); }
  .chapter h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -0.02em; }
  .chapter h2 em { font-style: italic; }
  .chapter p { color: rgba(243,239,230,0.75); font-weight: 300; max-width: 48ch; font-size: 18px; }
  .creds { border-top: 1px solid rgba(243,239,230,0.18); padding-block: 40px 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .creds > div { display: grid; gap: 6px; }
  .creds .label { color: rgba(243,239,230,0.5); }
  .creds b { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; line-height: 1.15; }
  .creds p { color: rgba(243,239,230,0.65); font-size: 14px; font-weight: 300; }

  /* ---------- 4. belief (light, reading light) ---------- */
  .belief { background: var(--paper); padding-block: clamp(80px, 11vw, 160px) clamp(56px, 8vw, 110px); display: grid; gap: 40px; }
  .belief .label { color: var(--teal); }
  .belief p.read { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.22; letter-spacing: -0.015em; max-width: 26ch; }
  /* Readable by default; with JS the lines start dim and light up as they are read. */
  .belief p.read span { transition: color 600ms ease; }
  .belief p.read span.key { color: var(--teal); font-style: italic; }
  .js .belief p.read span:not(.lit) { color: var(--line); font-style: normal; }
  .reserved {
    margin-top: 24px; border: 1px dashed var(--line); border-radius: 8px; padding: 26px 28px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; color: var(--ink-3);
  }
  .reserved b { display: block; color: var(--ink-2); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
  .reserved p { font-size: 14px; max-width: 60ch; }
  .reserved .lgs { display: flex; gap: 10px; }
  .reserved .lgs i { width: 72px; height: 18px; border-radius: 3px; border: 1px dashed var(--line); display: block; }

  /* ---------- 5. book (dark) ---------- */
  .book { background: var(--scene); color: var(--bone); padding-block: clamp(72px, 9vw, 120px); }
  .book .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .book h2 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
  .book h2 em { font-style: italic; }
  .book .side { display: grid; gap: 20px; }
  .book .side p { color: rgba(243,239,230,0.72); font-weight: 300; max-width: 42ch; }
  .book .kit { display: grid; gap: 10px; border-top: 1px solid rgba(243,239,230,0.2); padding-top: 20px; font-size: 15px; }
  .book .kit a, .book .kit .row { color: var(--bone); text-decoration: none; display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid rgba(243,239,230,0.12); }
  .book .kit a span:last-child, .book .kit .row span:last-child { color: rgba(243,239,230,0.5); font-size: 13px; }
  .form { display: grid; gap: 14px; }
  .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .field { display: grid; gap: 6px; }
  .field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,239,230,0.6); font-weight: 600; }
  .field label .opt { font-weight: 400; letter-spacing: 0.06em; color: rgba(243,239,230,0.5); margin-left: 6px; }
  .field input, .field select, .field textarea { font: inherit; color: var(--bone); background: rgba(243,239,230,0.05); border: 1px solid rgba(243,239,230,0.4); border-radius: 4px; padding: 12px 14px; width: 100%; transition: border-color 200ms ease, background-color 200ms ease; }
  .field input::placeholder, .field textarea::placeholder { color: rgba(243,239,230,0.6); opacity: 1; }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bone); background: rgba(243,239,230,0.09); }
  .field select option { color: var(--ink); }
  .form .send { justify-self: start; margin-top: 6px; }

  /* ---------- footer (light) ---------- */
  footer { padding-block: 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); background: var(--paper); }
  footer .brand { font-family: var(--display); color: var(--ink); font-size: 18px; }
  footer ul { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin: 0; padding: 0; }
  footer a { color: var(--ink-2); text-decoration: none; }

  /* ---------- side dots ---------- */
  .dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
  .dots a { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-3); background: transparent; transition: background-color 250ms ease, transform 250ms ease, border-color 250ms ease; }
  .dots a.on { background: var(--teal); border-color: var(--teal); transform: scale(1.35); }
  .dots.light a { border-color: rgba(243,239,230,0.6); }
  .dots.light a.on { background: var(--bone); border-color: var(--bone); }

  .js .rv { transform: translateY(28px); transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
  .js .rv.in { transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .rv, .stage .dot, .btn, .belief p.read span { transition: none !important; transform: none !important; }
    .stage .furn, .fmt .detail, .fmt button .chev, .about .counter .bar i, .nav { transition: none !important; }
  }

  /* ---------- responsive ---------- */
  @media (max-width: 900px) {
    /* Phone menu. With JS: a button opens the links as a panel under the bar. Without JS: the links wrap onto a second row. */
    .nav { gap: 10px; }
    .nav .brand, .nav .book { white-space: nowrap; }
    .nav .book { margin-left: auto; }
    .js .nav ul { display: none; }
    .js .menu-btn { display: inline-grid; place-items: center; order: 3; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; }
    .menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 200ms ease; }
    .menu-btn i { position: relative; }
    .menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
    .menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
    .nav.open .menu-btn i { background: transparent; }
    .nav.open .menu-btn i::before { top: 0; transform: rotate(45deg); }
    .nav.open .menu-btn i::after { top: 0; transform: rotate(-45deg); }
    .js .nav.open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
    .js .nav.open ul { display: grid; gap: 0; position: absolute; left: 0; right: 0; top: 100%; padding: 4px clamp(20px, 5vw, 72px) 16px; background: var(--paper); color: var(--ink); font-size: 18px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(27,31,36,0.10); }
    .js .nav.open ul a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
    .js .nav.open ul li:last-child a { border-bottom: 0; }
    .js .nav.open ul a::after { display: none; }
    .js .nav.open ul a[aria-current="page"] { color: var(--teal); }
    .nav.open :focus-visible { outline-color: var(--teal); }
    html:not(.js) .nav { flex-wrap: wrap; }
    html:not(.js) .nav ul { order: 4; width: 100%; flex-wrap: wrap; gap: 8px 20px; }
    .about .grid, .book .grid { grid-template-columns: 1fr; }
    .rooms .head { grid-template-columns: 1fr; }
    .rooms .head p { justify-self: start; }
    .rooms .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .stage { min-height: 300px; }
    .fmt button { padding: 16px 18px; gap: 10px; }
    .fmt button b { font-size: 18px; }
    .fmt .detail-in { padding-left: 46px; padding-right: 18px; }
    .about .sticky { position: static; height: auto; padding-block: 72px 0; }
    .about .portrait { aspect-ratio: 16 / 10; }
    .chapter { min-height: 0; padding-block: 40px; }
    .chapter:first-child { padding-top: 40px; }
    .creds { grid-template-columns: 1fr 1fr; }
    .reserved { grid-template-columns: 1fr; }
    .dots { display: none; }
  }
  @media (max-width: 600px) {
    .form .two, .creds { grid-template-columns: 1fr; }
    .rooms .demo { grid-template-columns: 1fr; }
    .stage { aspect-ratio: 16 / 10; min-height: 0; }
    .formats { border-left: 0; border-top: 1px solid var(--line); }
    .stage .key { display: none; }
    .hero .cue { display: none; }
    .vid-toggle { right: 20px; bottom: 24px; }
  }

/* ---------- inner pages and blog (plain, same system) ---------- */
body.is-inner { padding-top: 76px; }
.inner-wrap { max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 120px); display: grid; gap: 28px; }
.inner-wrap .label { color: var(--teal); }
.inner-wrap h1 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.inner-wrap .entry { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.inner-wrap .entry h2, .inner-wrap .entry h3 { font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; margin: 1.6em 0 0.5em; }
.inner-wrap .entry h2 { font-size: 30px; } .inner-wrap .entry h3 { font-size: 24px; }
.inner-wrap .entry p, .inner-wrap .entry ul, .inner-wrap .entry ol { margin: 0 0 1.1em; }
.inner-wrap .entry a { color: var(--teal); }
.inner-wrap .optout button { font: inherit; font-size: 15px; font-weight: 600; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.inner-wrap .optout button:hover { background: var(--ink); color: var(--paper); }
.inner-wrap .optout span { margin-left: 12px; color: var(--teal); font-size: 15px; }
.inner-wrap .entry img { max-width: 100%; height: auto; border-radius: 6px; }
.inner-wrap .entry blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--teal); font-family: var(--display); font-size: 1.15em; color: var(--ink); }
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-list article { padding-block: 26px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.post-list h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; }
.post-list h2 a { text-decoration: none; }
.post-list time, .post-meta { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pagination { display: flex; gap: 16px; justify-content: space-between; font-size: 14px; }
.pagination a { color: var(--teal); text-decoration: none; }

/* ---------- interior pages (Facilitation, Book): same dark/light rhythm as the homepage ---------- */
.is-inner section.book { padding-top: clamp(56px, 7vw, 96px); }
.book h1 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.book h1 em { font-style: italic; }
.phero { background: var(--scene); color: var(--bone); padding-block: clamp(56px, 8vw, 112px) clamp(48px, 7vw, 88px); }
.phero .inner { display: grid; gap: 24px; max-width: 980px; }
.phero .label { color: rgba(243,239,230,0.7); }
.phero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(36px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.phero h1 em, .sec h2 em, .inner-wrap h1 em { font-style: italic; }
.phero .lede { font-size: clamp(17px, 1.4vw, 21px); max-width: 56ch; color: rgba(243,239,230,0.82); font-weight: 300; }
.phero .chips { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,239,230,0.6); }
.phero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.sec { padding-block: clamp(64px, 8vw, 110px); display: grid; gap: 40px; background: var(--paper); }
.sec.dark { background: var(--scene); color: var(--bone); }
.sec .head { display: grid; gap: 14px; max-width: 760px; }
.sec .head .label { color: var(--teal); }
.sec.dark .head .label { color: rgba(243,239,230,0.6); }
.sec h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -0.02em; }
.sec .head p { color: var(--ink-2); max-width: 52ch; }
.sec.dark .head p { color: rgba(243,239,230,0.75); font-weight: 300; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px 0 0 0; }
.cards > div { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.6vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards h3, .steps h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; line-height: 1.15; }
.cards p { color: var(--ink-2); font-size: 16px; max-width: 44ch; }
.steps { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; counter-reset: step; border-top: 1px solid var(--line); }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: grid; gap: 8px; align-content: start; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-2); font-size: 15px; max-width: 40ch; }
.sec.dark .steps { border-top-color: rgba(243,239,230,0.18); }
.sec.dark .steps li::before { color: rgba(243,239,230,0.55); }
.sec.dark .steps p { color: rgba(243,239,230,0.72); font-weight: 300; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); max-width: 980px; }
.specs > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.specs dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--teal); }
.specs dd { margin: 0; color: var(--ink-2); max-width: 60ch; }
.talks { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: talk; border-top: 1px solid var(--line); }
.talks > li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 4fr); gap: 20px clamp(24px, 4vw, 56px); padding-block: clamp(28px, 3.8vw, 52px); border-bottom: 1px solid var(--line); align-items: start; }
.talks .t-tag { display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--teal); }
.talks .t-tag::before { counter-increment: talk; content: counter(talk, decimal-leading-zero); font-family: var(--display); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.talks .t-main { display: grid; gap: 14px; }
.talks h3 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.talks .t-main p { color: var(--ink-2); max-width: 50ch; }
.talks .t-main .t-promise { color: var(--ink); font-size: clamp(17px, 1.35vw, 19px); }
.talks .t-side { display: grid; gap: 10px; align-content: start; }
.talks h4 { margin: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.talks ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.talks ul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.talks ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.talks .t-side p { color: var(--ink-2); font-size: 16px; }
.cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.inner-wrap .links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 16px; font-weight: 600; }
.inner-wrap .links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.inner-wrap .links a:hover { color: var(--teal); border-color: var(--teal); }
@media (max-width: 900px) {
  .steps, .steps.three { grid-template-columns: 1fr 1fr; }
  .talks > li { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards, .steps, .steps.three { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 420px) {
  /* Narrow phones: keep the header on one line. */
  .nav .brand { font-size: 19px; }
  .nav .book { padding: 9px 14px; font-size: 13px; }
  .nav .book .w { display: none; }
  .js .menu-btn { width: 38px; height: 38px; }
}
