/* ============================================================
   HOME (Nov 6 2026): the hedgehog in the singing bowl opens the
   site again, on daylight. Below it, a short About carried by the
   Sound Experiences photo, then the cast of animal players.
   Every loop is ink on white; mix-blend-mode multiplies the white
   away into the page colour, so no frame or box ever shows.
   ============================================================ */

/* ---------- the hedgehog ---------- */
.hh-hero {
  position: relative;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 5vh, 4rem) var(--gut) clamp(4.5rem, 9vh, 6rem);
  background: var(--bg);
  isolation: isolate;
  text-align: center;
}
.hh-inner { display: flex; flex-direction: column; align-items: center; }
.hh-mark {
  /* by the shorter side too, so a tall tablet doesn't get a small hedgehog in a big room */
  width: clamp(250px, min(40vw, 50vh), 450px);
  margin-bottom: clamp(0.6rem, 1.6vh, 1.2rem);
  /* the fade-in makes this its own layer, so the multiply has to happen here,
     against the page, or the video's white would show as a box */
  mix-blend-mode: multiply;
  opacity: 0; animation: hh-in 1.6s 120ms var(--ease-out) forwards;
}
.hh-video { display: block; width: 100%; height: auto; mix-blend-mode: multiply; background: transparent; }
.hh-name {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.05; letter-spacing: 0; font-weight: 300; color: var(--ink);
  opacity: 0; animation: hh-rise 1.3s 520ms var(--ease-out) forwards;
}
.hh-name em { font-style: italic; }
.hh-line {
  margin: clamp(1rem, 2.4vh, 1.5rem) 0 0;
  font-size: clamp(0.78rem, 1.05vw, 0.9rem); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
  opacity: 0; animation: hh-rise 1.3s 820ms var(--ease-out) forwards;
}
.hh-cue {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); opacity: 0.8;
  animation: hh-bob 2.6s var(--ease) infinite;
}
.hh-cue::after { content: ""; width: 1px; height: 24px; background: var(--line-2); }
@keyframes hh-in   { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes hh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hh-bob  { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,5px); } }

/* ---------- the intro: the Sound Experiences opening, carrying a short About ---------- */
.home-intro { scroll-margin-top: 73px; background: var(--bg); }
.home-intro.sound-hero { min-height: clamp(460px, 44vw, 640px); }
.intro-text { width: min(100%, 29rem); }
.intro-text .btn { padding: 0.85rem 1.35rem; }
.intro-name {
  display: block; margin: 0 0 0.9rem; font-family: var(--sans); line-height: 1.4;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.intro-lede {
  font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.25; color: var(--ink);
  margin-bottom: 0.9rem;
}
.intro-text p:not(.intro-lede):not(.intro-art) { color: var(--ink-2); font-size: 0.98rem; line-height: 1.7; }
.intro-text .btn-row { margin-top: 1.5rem; }
.intro-art {
  margin: 1.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink);
}
.intro-art a {
  font-family: var(--sans); font-style: normal; font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px;
  margin-left: 0.25rem; white-space: nowrap;
}
.intro-art a:hover { color: var(--ink); }

/* ---------- the cast ---------- */
.cast-band { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem); background: var(--bg); }
.cast {
  display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 0 auto clamp(2.2rem, 4.5vw, 3.5rem);
}
.cast-item { margin: 0; display: flex; flex-direction: column; align-items: center; mix-blend-mode: multiply; }
.cast-item video {
  display: block; height: clamp(110px, 12vw, 170px); width: auto; max-width: 100%;
  mix-blend-mode: multiply; background: transparent;
}
.cast-item figcaption {
  margin-top: 0.9rem; max-width: 18ch; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.35; color: var(--ink-2);
}
.cast-text { max-width: 34rem; margin: 0 auto; text-align: center; }
.cast-text p { color: var(--ink-2); }
.cast-text .try-now { margin-top: 1.4rem; }

/* photo above, words below, up to 1000 px (between 761 and 1000 the words sat on the photo) */
@media (max-width: 1240px) {
  .home-intro.sound-hero { min-height: 0; }
  .intro-text { width: min(100%, 36rem); padding-bottom: 1rem; }
}
@media (max-width: 760px) {
  .hh-mark { width: min(78vw, 360px); }
  .cast { flex-direction: column; align-items: center; gap: 2.2rem; }
  .cast-item video { height: auto; width: min(74vw, 300px); }
  .cast-monkey video { width: min(46vw, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .hh-mark, .hh-name, .hh-line { animation: none; opacity: 1; }
  .hh-cue { animation: none; }
}

/* ---------- a light header at the top of the homepage (Nov 7 2026, item 17) ----------
   The dark band with a small hedgehog sat right above the big one. At the top of the
   page the header is see-through with dark words and no small mark; once the visitor
   scrolls (or opens the menu) it becomes the usual dark header. */
html[data-room="home"] .site-head { transition: background-color 360ms var(--ease), border-color 360ms var(--ease); }
html[data-room="home"] .site-head .brand { transition: opacity 360ms var(--ease); }
html[data-room="home"] .site-head.is-top {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-room="home"] .site-head.is-top .brand { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 360ms var(--ease), visibility 0s 360ms; }
html[data-room="home"] .site-head.is-top .nav a { color: var(--muted); }
html[data-room="home"] .site-head.is-top .nav a:hover { color: var(--ink); }
html[data-room="home"] .site-head.is-top .nav a.nav-book { color: var(--ink-2); border-color: var(--line-2); }
html[data-room="home"] .site-head.is-top .nav-toggle { color: var(--ink-2); border-color: var(--line-2); }

/* a larger hedgehog on tall screens such as an upright iPad (Nov 7 2026, review) */
@media (orientation: portrait) and (min-width: 700px) {
  .hh-mark { width: min(58vw, 44vh, 520px); }
}

/* Home intro (Nov 7 2026): words beside the session photo; the monkey small beside the buttons */
.home-intro .intro-text h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.home-intro .intro-text .rule { margin: 1.2rem 0; }
.intro-actions { display: flex; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.4rem); margin-top: 1.6rem; flex-wrap: wrap; }
.intro-actions .btn-row { margin-top: 0; }
.intro-monkey { width: 92px; height: auto; mix-blend-mode: multiply; background: transparent; flex: none; }
.home-intro { margin-top: clamp(1rem, 3vw, 2.5rem); margin-bottom: clamp(3rem, 7vw, 6rem); }
@media (max-width: 1240px) { .intro-text { padding-top: 0.5rem; } }
/* the monkey sits just above the first button, as if resting on it */
.intro-actions { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 1.4rem; }
.intro-monkey { width: 78px; margin: 0 0 -4px 2.6rem; }

/* ---------- Home sections (Nov 20 2026 update): three ways in, the curve, the method, the art door ---------- */
/* Home, next update (Nov 20 2026 preview): three ways in, the curve, the method, the art door. Soft, spacious, nothing bold. */
.hn-k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.hn-offers h2, .hn-curve h2, .hn-method h2 { margin: 0 0 1rem; }
.hn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: 1.6rem; }
.hn-card { display: block; text-decoration: none; color: inherit; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.hn-card video { width: 100%; height: 150px; object-fit: contain; mix-blend-mode: multiply; filter: contrast(.62) brightness(1.25); }
.hn-card h3 { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; color: var(--ink); margin: .6rem 0 .2rem; }
.hn-card .meta { display: block; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.hn-card p { color: var(--ink-2); line-height: 1.7; margin: .7rem 0 0; }
.hn-card:hover h3 { color: var(--accent); }
.hn-two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hn-two p { color: var(--ink-2); line-height: 1.75; max-width: 34rem; }
.hn-two p + p { margin-top: 1rem; }
.hn-method { background: var(--bg-2); }
.hn-method p:not(.hn-k) { color: var(--ink-2); line-height: 1.75; }
.hn-art-link { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: baseline; text-decoration: none; color: inherit;
               border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.hn-art-line { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink); }
@media (max-width: 900px) {
  .hn-grid { grid-template-columns: 1fr; }
  .hn-two { grid-template-columns: 1fr; }
  .hn-art-link { grid-template-columns: 1fr; gap: .6rem; }
}
.hn-try { margin-top: 2rem !important; font-family: var(--serif); font-size: 1.2rem; color: var(--ink) !important; }
.hn-try .hn-k { display: block; font-family: var(--sans); margin-bottom: .4rem; }
.hn-offers { padding-top: clamp(1rem, 3vw, 2.5rem); }

/* Nov 25 2026: the invitation stands alone on Home */
.hn-tryonly { padding-top: clamp(2.6rem, 5vw, 3.8rem); padding-bottom: clamp(2.6rem, 5vw, 3.8rem); }
.hn-tryonly .hn-try { margin: 0 auto !important; max-width: 31rem; font-size: 1.3rem; text-wrap: balance; }

/* Nov 25 2026 (round 2): the closing line of the intro; the art section built like the curve section */
.intro-peace { font-family: var(--serif); font-size: clamp(1.2rem, 1.75vw, 1.42rem); line-height: 1.55; color: var(--ink) !important; margin-top: 1.3rem !important; }
.hn-art2 { padding-top: clamp(1rem, 3vw, 2.5rem); }
.hn-prints { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem); align-items: start; text-decoration: none; }
.hn-prints img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; display: block; transition: transform .6s ease, box-shadow .6s ease; box-shadow: 0 8px 26px rgba(52,48,43,.12); }
.hn-prints img:nth-child(2) { margin-top: 1.6rem; }
.hn-prints:hover img { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(52,48,43,.18); }
@media (prefers-reduced-motion: reduce) { .hn-prints img { transition: none; } }

/* ============================================================
   Nov 25 2026 (evening, his notes): each Home section is its own room.
   Three grounds in turn: warm stone for the three ways in, the page
   itself for the curve, a deep warm charcoal for the art (the dark
   gallery it leads to). The rooms alternate sides (photo left, words
   right; words left, curve right; loop left, words right), share one
   rhythm of space, and their words rise in softly as each arrives.
   ============================================================ */
section.hn-room { padding: clamp(5.5rem, 11vw, 10rem) 0; margin: 0; }
.hn-room-warm { background: #F2EEE8; }
.hn-room h2 { margin: 0; }
.hn-room .rule { margin: 1.35rem 0 1.7rem; }
.hn-head { margin-bottom: clamp(3rem, 6vw, 4.6rem); }
.hn-head .rule { margin-bottom: 0; }
.home-intro { margin-bottom: clamp(4.5rem, 9vw, 7.5rem); }

/* three ways in: the animals smaller, each standing on its own hairline; more air between the three */
.hn-grid { gap: clamp(2.6rem, 6vw, 6rem); margin-top: 0; }
.hn-card { border-top: 0; padding-top: 0; mix-blend-mode: multiply; } /* the card multiplies as a whole, so no white box shows while it fades in */
.hn-ani { display: flex; align-items: flex-end; height: clamp(78px, 7.4vw, 104px); padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-2); box-sizing: content-box; }
.hn-card video { height: 100%; width: auto; max-width: 82%; object-fit: contain; }
.hn-card h3 { margin: 1.5rem 0 .3rem; }
.hn-card p { max-width: 21rem; margin-top: .9rem; }

/* the curve: the room breathes; the map sits a little lower than the words' top */
.hn-curve.hn-room .hn-two { align-items: center; }

/* the art: a dark room; the mosaic loop in a print's 4:5 frame */
.hn-room-dark {
  background: #1E1B18;
  --ink: #EFE9E0; --ink-2: #C7BFB4; --muted: #9A9186; --accent: #C99A6B; --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.24);
  color: var(--ink);
}
.hn-room-dark p { color: var(--ink-2); }
.hn-room-dark .event-link { color: var(--ink); }
.hn-room-dark .event-link:hover { color: var(--accent); }
.hn-two-flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hn-mosaic { display: block; justify-self: center; width: min(100%, 430px); aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden;
             box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); background: #2A2622; }
.hn-mosaic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-mosaic:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

@media (max-width: 900px) {
  .hn-two { gap: clamp(2.6rem, 8vw, 3.6rem); }
  .hn-two-flip .hn-mosaic { order: 2; width: min(100%, 380px); justify-self: start; }
  .hn-card p { max-width: 32rem; }
}

/* ============================================================
   PHONE PASS (Nov 25 2026): Home on phones and tablets. Desktop (1240 px and up) unchanged.
   ============================================================ */

/* Phone pass (Nov 25 2026): the hedgehog opening. On a phone it filled the whole screen, the content
   floating in a sea of blank page; now it is as tall as it needs to be (60% of the screen at least),
   the hedgehog a size smaller, and the session photo shows below it on the first screen.
   The line under the name breaks evenly ("…experiences for / all ages" left two words alone). */
@media (max-width: 600px) {
  .hh-hero { min-height: 60vh; min-height: 60svh; padding: 2.6rem var(--gut) 5rem; }
  .hh-mark { width: min(64vw, 260px); }
  .hh-name { font-size: 2.5rem; }
  .hh-line { max-width: 20rem; font-size: 0.72rem; letter-spacing: 0.17em; line-height: 1.75; text-wrap: balance; }
  .hh-cue { bottom: 0.8rem; }
}
/* Phone pass (Nov 25 2026): upright tablets. The hedgehog was 445-520 px wide in a screen-tall room;
   it is smaller and the room shorter, so the photo below shows on the first screen. */
@media (orientation: portrait) and (min-width: 601px) and (max-width: 1239px) {
  .hh-hero { min-height: 62vh; min-height: 62svh; }
  .hh-mark { width: min(42vw, 30vh, 400px); }
}
/* Phone pass (Nov 25 2026): phones on their side. The room is shorter than the hedgehog and the name,
   so the hedgehog shrinks to fit and the scroll cue steps aside. */
@media (orientation: landscape) and (max-height: 500px) {
  .hh-hero { min-height: 0; padding: 1.6rem var(--gut) 2.6rem; }
  .hh-mark { width: min(36vh, 220px); width: min(48svh, 220px); }
  .hh-name { font-size: 2.3rem; }
  .hh-line { margin-top: 0.7rem; }
  .hh-cue { display: none; }
}

/* Phone pass (Nov 25 2026): the rooms on phones keep their air but a little less of it
   (88 px above and below was a screen of blank stone around the three ways in). */
@media (max-width: 600px) {
  section.hn-room { padding: 4.6rem 0; }
  .hn-head { margin-bottom: 2.6rem; }
  .hn-room .rule { margin: 1.2rem 0 1.5rem; }
  .home-intro { margin-bottom: 4rem; }
  .hn-grid { gap: 2.8rem; }
  .hn-card h3 { margin-top: 1.25rem; }
  .intro-text { padding-bottom: 0; }
}

/* Phone pass (Nov 25 2026): BUG. The art room's two-column rule (.hn-two-flip, written after the
   900 px rule) kept two columns on phones, squeezing the words into a 150 px strip beside the picture.
   On phones the words come first, then the picture. */
@media (max-width: 700px) {
  .hn-two-flip { grid-template-columns: minmax(0, 1fr); }
  .hn-two-flip .hn-mosaic { width: min(100%, 340px); box-shadow: 0 18px 44px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.06); }
  /* the picture now ends the room; its shadow stays inside the dark room instead of greying the footer */
  .hn-room-dark { overflow: hidden; overflow: clip; }
}

/* Phone pass (Nov 25 2026): upright tablets, three ways in. Stacked, each animal stood alone over a
   long empty line; now each way is a row, the animal on the left, its words beside it. */
@media (min-width: 601px) and (max-width: 900px) {
  .hn-grid { gap: 3rem; }
  .hn-card { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: 2.6rem; align-items: start; }
  .hn-card .hn-ani { grid-column: 1; grid-row: 1 / span 3; height: 88px; }
  .hn-card h3, .hn-card .meta, .hn-card p { grid-column: 2; }
  .hn-card h3 { margin-top: 0; }
  .hn-card video, .hn-card .loop-still { max-width: 100%; }
}

/* Phone pass (Nov 25 2026): no stuck hover colour on a tapped card (touch screens only). */
@media (hover: none) {
  .hn-card:hover h3 { color: var(--ink); }
  .hn-prints:hover img { transform: none; box-shadow: 0 8px 26px rgba(52,48,43,.12); }
  .hn-room-dark .event-link:hover { color: var(--ink); }
  .intro-art a:hover { color: var(--accent); }
}

/* Phone pass (Nov 25 2026): large tablets (iPad Pro upright, iPad on its side, 1000-1239 px). The intro
   stacked a full-width photo over a half-width column of words with an empty right half; as on About
   (tonight's fix) the words now sit beside the photo, which fades toward them, as on a wide screen. */
@media (min-width: 1000px) and (max-width: 1239px) {
  .home-intro.sound-hero { display: flex; min-height: 600px; }
  .home-intro .sound-hero-media { position: absolute; top: 0; bottom: 0; left: 0; width: 56%; aspect-ratio: auto; max-height: none; }
  .home-intro .sound-hero-media img {
    -webkit-mask-image: linear-gradient(to right, #000 48%, transparent 100%), linear-gradient(to top, transparent 0%, #000 22%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, #000 48%, transparent 100%), linear-gradient(to top, transparent 0%, #000 22%);
            mask-composite: intersect;
  }
  .home-intro .intro-text { margin-left: auto; width: min(47%, 29rem); padding-block: 3rem; }
}

/* Phone pass (Nov 25 2026): tablets with the curve beside its words (901-1239 px). In that half-width
   column the wide map's labels were 9 px; the narrower drawing of the same map (as on phones) reads at 15-17 px. */
@media (min-width: 901px) and (max-width: 1239px) {
  .hn-map .as-map { display: none; }
  .hn-map .as-mapm { display: block; }
}

/* Nov 26 2026 (independent review, his yes): a quiet link line on each of the three cards */
.hn-card .hn-more { display: inline-block; margin-top: 1rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hn-card:hover .hn-more { color: var(--accent); }
@media (min-width: 601px) and (max-width: 900px) { .hn-card .hn-more { grid-column: 2; justify-self: start; } .hn-card .hn-ani { grid-row: 1 / span 4; } }
@media (hover: none) { .hn-card:hover .hn-more { color: var(--ink); } }
