/* Hypha product page, 2026-10-11, rebuilt 2026-10-12 to show the product first.
   Hybrid VU rises from the lower edge of the shared hero, then the large screens
   sit on full-width dark stages. Depth comes from a lit top edge, a recessed
   screen rim and a contact shadow; backgrounds are flat and never move.
   Nothing moves by itself: views change only when the reader chooses a tab. */
.hy-page {
  --hy-bay: #0e0c09;
  --hy-bay-raised: #18140f;
  --hy-bay-edge: rgb(255 238 206 / 9%);
  --hy-ivory: #efe8da;
  --hy-body: #cfc6b4;
  --hy-muted: #a59b87;
  --hy-gold: #c4a768;
  --hy-cyan: #9fd3dc;
  --hy-rim: rgb(196 167 104 / 26%);
  --hy-stone: #eeeae1;
  --hy-stone-raised: #f4f1ea;
  --hy-stone-ink: #33322b;
  --hy-stone-body: #4b4a43;
  --hy-stone-gold: #665128;
  --hy-wide: 1180px;
  --hy-gutter: clamp(20px, 4vw, 48px);
  --hy-panel-shadow: inset 0 1px 0 #faf8f3, inset 0 -1px 0 #d8d1c3,
    0 2px 3px rgb(51 50 43 / 7%), 0 14px 28px rgb(51 50 43 / 8%);
}

.hy-wrap {
  width: min(var(--hy-wide), calc(100% - 2 * var(--hy-gutter)));
  margin: 0 auto;
}
.hy-kicker {
  margin: 0 0 18px;
  font: 12px/1.6 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hy-stone-gold);
}
.hy-page :is(.hy-stage, .hy-pair, .hy-screens, .hy-start, .hy-record) :is(h2, h3) {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hy-page :is(.hy-stage, .hy-pair, .hy-screens, .hy-start, .hy-record) h2 { color: var(--hy-stone-ink); }
.hy-lead {
  max-width: 44ch;
  margin: 28px 0 0;
  font-family: var(--site-heading-font, var(--font-display));
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.6;
  color: var(--hy-stone-ink);
}
.hy-copy {
  max-width: 68ch;
  margin: 20px 0 0;
  font-size: var(--site-copy-size, 1rem);
  line-height: 1.85;
  color: var(--hy-stone-body);
}
.hy-note {
  max-width: 72ch;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--hy-stone-body);
}

/* Kept sections share the entrance width so every left edge lines up with the hero. */
.hy-page main > .section {
  max-width: calc(var(--hy-wide) + 2 * var(--hy-gutter));
  padding-left: var(--hy-gutter);
  padding-right: var(--hy-gutter);
}

/* A product screen: a thin dark bezel with a lit top edge, the capture recessed inside. */
.hy-screen { margin: 0; min-width: 0; }
.hy-screen__frame {
  display: block;
  padding: clamp(4px, .5vw, 7px);
  border-radius: 16px;
  background: #1b1711;
  box-shadow:
    inset 0 1px 0 rgb(255 240 212 / 14%),
    inset 0 -1px 0 rgb(0 0 0 / 55%),
    0 2px 4px rgb(20 16 10 / 28%),
    0 22px 44px rgb(20 16 10 / 30%);
}
.hy-screen__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  background: var(--hy-bay);
  box-shadow: 0 0 0 1px var(--hy-rim);
}
.hy-screen figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hy-stone-body);
}
.hy-screen--bare .hy-screen__frame { padding: 0; background: transparent; box-shadow: none; }
.hy-screen--bare .hy-screen__frame img { background: transparent; box-shadow: none; border-radius: 0; }

/* Dark band: the main picture. A gentle, static light from above only. */
.hy-stage {
  padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px);
  background-color: var(--hy-bay);
  color: var(--hy-ivory);
}
.hy-stage__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hy-stage .hy-kicker { color: var(--hy-gold); }
.hy-page .hy-stage h2 { color: var(--hy-ivory); }
.hy-stage .hy-copy { margin-top: 0; color: var(--hy-body); }
.hy-stage .hy-copy + .hy-copy { margin-top: 14px; }
.hy-stage .hy-screen__frame {
  border-radius: 22px;
  padding: clamp(6px, .8vw, 10px);
  background: #15110c;
  box-shadow:
    inset 0 1px 0 rgb(255 240 212 / 16%),
    inset 0 -1px 0 rgb(0 0 0 / 70%),
    0 0 0 1px rgb(255 238 206 / 5%),
    0 40px 80px rgb(0 0 0 / 55%),
    0 10px 20px rgb(0 0 0 / 40%);
}
.hy-stage .hy-screen__frame img { border-radius: 15px; }
.hy-stage .hy-screen figcaption { color: var(--hy-muted); text-align: center; }

/* First screen. The shared hero keeps its grid, photograph and copy; Hybrid VU
   rises from its lower edge so the product is visible without scrolling.
   The lift is derived from the same tokens as the hero grid, so the screen
   always starts below the headline (desktop, beside the action link) or below
   the action link (narrow screens). Nothing here is transformed or animated. */
.hy-page .hero--hypha { border-bottom-color: var(--hy-bay); }
.hy-page .hero--hypha .hero__scroll { display: none; }
/* 2026-10-15: the first-time download and the update link stack in one column,
   so on desktop both stay left of the rising Hybrid VU. */
.hy-page .hero--hypha .entrance-content > .entrance-actions { flex-direction: column; }
/* 2026-10-20: the free download is a surface button, like the Reference page's
   trial; the one-line lead stays left of the rising Hybrid VU on desktop. */
.hy-page .hero--hypha .entrance-content > .entrance-lead { max-width: 14em; }
.hy-page .entrance-content a.btn--primary { padding: 12px 24px; border: 0; border-radius: 6px; background: #f3efe6; color: #2e2d29 !important; font-weight: 600; text-decoration: none; }
.hy-page .entrance-content a.btn--primary:is(:hover, :active, :focus-visible) { background: #ffffff; color: #2e2d29 !important; text-decoration: none; }
.hy-page .entrance-content a.btn--primary:focus-visible { outline-color: #f3efe6; }
.hy-vu {
  /* 2026-10-20: a little narrower so the hero lead keeps a clear column to its left. */
  --hy-vu-width: min(880px, 60vw);
  --hy-vu-lift: min(
    calc(min(100svh - 180px, 50svh + 172px) - 80px - 2.04 * var(--entrance-heading-size)),
    calc(.6 * var(--hy-vu-width))
  );
  position: relative;
  padding: 0 0 clamp(64px, 8vw, 104px);
  background: var(--hy-bay);
  color: var(--hy-ivory);
}
.hy-vu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  column-gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.hy-vu__screen {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  justify-self: end;
  width: var(--hy-vu-width);
  margin-top: calc(-1 * max(0px, var(--hy-vu-lift)));
}
.hy-page .hy-vu__screen .hy-screen__frame {
  border-radius: 22px;
  padding: clamp(6px, .7vw, 10px);
  background: #15110c;
  box-shadow:
    inset 0 1px 0 rgb(255 240 212 / 18%),
    inset 0 -1px 0 rgb(0 0 0 / 70%),
    0 0 0 1px rgb(255 238 206 / 6%),
    0 44px 88px rgb(0 0 0 / 55%),
    0 12px 24px rgb(0 0 0 / 42%);
}
.hy-page .hy-vu__screen .hy-screen__frame img { border-radius: 15px; }
.hy-vu__head { margin-top: clamp(40px, 5vw, 64px); }
.hy-vu .hy-kicker { color: var(--hy-gold); }
.hy-page .hy-vu h2 { margin: 0; color: var(--hy-ivory); word-break: keep-all; overflow-wrap: normal; }
.hy-vu__copy { margin: 0; padding-bottom: .4em; color: var(--hy-body); }

/* The VU stage and the FREQ landscape share one dark room. */
.hy-vu + .hy-stage { padding-top: clamp(56px, 7vw, 96px); }

/* PRE / POST: the question and the insert points on stone. */
.hy-pair { padding: clamp(88px, 10vw, 136px) 0 0; }
.hy-pair__head { max-width: 900px; }
.hy-pair .hypha-signal-path { margin-top: clamp(40px, 5vw, 64px); }
.hy-pair .hypha-signal-node {
  border: 0;
  border-radius: 16px;
  background: var(--hy-stone-raised);
  box-shadow: var(--hy-panel-shadow);
}
.hy-pair .hypha-signal-node--chain { background: #e3ddd0; }
.hy-pair .hypha-signal-node span { color: var(--hy-stone-gold); }
.hy-pair .hypha-signal-arrow { color: var(--hy-stone-gold); }

/* SEE -> LISTEN -> BLIND: one full-width dark stage with large screens. */
.hy-steps {
  margin-top: clamp(72px, 9vw, 120px);
  padding: clamp(80px, 10vw, 136px) 0 clamp(72px, 9vw, 120px);
  background: var(--hy-bay);
  box-shadow: inset 0 1px 0 rgb(255 240 212 / 8%);
  color: var(--hy-ivory);
}
.hy-flow { margin: 0; padding: 0; list-style: none; }
.hy-step + .hy-step { margin-top: clamp(96px, 12vw, 168px); }
.hy-step__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.hy-step__head[id] { scroll-margin-top: calc(var(--header-h, 68px) + 40px); }
.hy-step__label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
  font: 12px/1.6 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hy-gold);
}
.hy-step__num {
  font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-mono);
  letter-spacing: -.02em;
  color: var(--hy-ivory);
}
.hy-page .hy-step h3 { color: var(--hy-ivory); }
.hy-step .hy-copy { margin-top: 0; color: var(--hy-body); }
.hy-step .hy-copy + .hy-copy { margin-top: 12px; }
.hy-step .hy-note { color: var(--hy-muted); }
.hy-step .hy-screen figcaption { color: var(--hy-muted); }
.hy-step .hy-screen__frame {
  border-radius: 20px;
  padding: clamp(5px, .7vw, 9px);
  background: #15110c;
  box-shadow:
    inset 0 1px 0 rgb(255 240 212 / 16%),
    inset 0 -1px 0 rgb(0 0 0 / 70%),
    0 0 0 1px rgb(255 238 206 / 5%),
    0 32px 64px rgb(0 0 0 / 52%),
    0 8px 16px rgb(0 0 0 / 38%);
}
.hy-step .hy-screen__frame img { border-radius: 14px; }
.hy-step__wide figcaption { text-align: center; }
.hy-step__sub {
  margin: 0 0 12px;
  font: 12px/1.6 var(--font-mono);
  letter-spacing: .16em;
  color: var(--hy-gold);
}
/* SEE: the FREQ screen across the stage, DRUM beside its own explanation. */
.hy-step__aside {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}
/* LISTEN: text beside one large screen. */
.hy-step--listen {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hy-page .hy-step--listen h3 { margin-bottom: 20px; }
/* LISTEN, 2026-11-04: MATCH as the level gap before and after, readable at a glance.
   A static figure in the screen's colours; PRE is cyan, POST gold, as in Hypha.
   Flat fills with a lit top edge, like the screens, and nothing rotates. */
.hy-match__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 20px;
  background: var(--hy-bay-raised);
  box-shadow:
    inset 0 1px 0 rgb(255 238 206 / 14%),
    inset 0 0 0 1px var(--hy-rim),
    0 30px 60px rgb(0 0 0 / 45%);
}
.hy-match__side { display: grid; gap: 14px; min-width: 0; }
.hy-page .hy-match p { margin: 0; }
.hy-match__label { font: 12px/1.4 var(--font-mono); letter-spacing: .18em; color: var(--hy-gold); }
.hy-match__meters { display: grid; gap: 12px; }
.hy-match__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.hy-match__name { font: 13px/1 var(--font-mono); letter-spacing: .06em; color: var(--hy-ivory); }
.hy-match__track {
  position: relative;
  height: 16px;
  border-radius: 9px;
  background: #0a0907;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 70%), inset 0 0 0 1px rgb(255 238 206 / 6%);
}
.hy-match__bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(78% - 6px);
  border-radius: 6px;
  background: var(--hy-gold);
  box-shadow: inset 0 1px 0 rgb(255 248 228 / 45%), 0 0 14px rgb(196 167 104 / 35%);
}
.hy-match__bar--pre {
  background: var(--hy-cyan);
  box-shadow: inset 0 1px 0 rgb(240 252 255 / 50%), 0 0 14px rgb(159 211 220 / 30%);
}
.hy-match__bar--low { width: calc(52% - 6px); }
.hy-match__note { font: 13px/1.5 var(--font-mono); color: var(--hy-ivory); }
.hy-match__note b { margin: 0 .15em; font: 400 28px/1 var(--font-display); }
.hy-match__same { margin-left: .9em; }
.hy-match__key { display: grid; justify-items: center; gap: 8px; }
.hy-match__button {
  padding: 8px 14px;
  border-radius: 8px;
  font: 13px/1 var(--font-body);
  letter-spacing: .08em;
  color: #1a150e;
  background: #d2b574;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 6px 16px rgb(0 0 0 / 40%);
}
.hy-match__arrow { font: 22px/1 var(--font-mono); color: var(--hy-gold); }
.hy-match__arrow--down { display: none; }
/* BLIND: three moments, read left to right. */
.hy-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hy-sequence li { position: relative; min-width: 0; }
.hy-sequence li + li::before {
  content: '→';
  position: absolute;
  top: calc(33% - .6em);
  left: calc(-1 * clamp(16px, 2.4vw, 32px) / 2 - .5em);
  width: 1em;
  text-align: center;
  font: 16px/1.2 var(--font-mono);
  color: var(--hy-gold);
}
.hy-sequence__label {
  display: block;
  margin-bottom: 4px;
  font: 400 12px/1.6 var(--font-mono);
  letter-spacing: .12em;
  color: var(--hy-gold);
}
/* A/B: the order on one track, PRE1 -> A -> PRE2 -> B -> POST, on the dark stage.
   A and B are the two things being compared, so they carry the gold rim. */
.hy-page .hy-ab { margin: 0; }
.hy-ab__chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  list-style: none;
  border-radius: 20px;
  background: var(--hy-bay-raised);
  box-shadow:
    inset 0 1px 0 rgb(255 238 206 / 14%),
    inset 0 0 0 1px var(--hy-bay-edge),
    0 30px 60px rgb(0 0 0 / 45%);
}
.hy-ab__chain li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 18px 16px 20px;
  border-radius: 14px;
  background: rgb(255 240 212 / 4%);
  box-shadow: inset 0 1px 0 rgb(255 238 206 / 8%);
}
.hy-ab__chain li.hy-ab__slot {
  background: rgb(196 167 104 / 10%);
  box-shadow: inset 0 1px 0 rgb(255 238 206 / 14%), inset 0 0 0 1px var(--hy-rim);
}
.hy-ab__chain li + li::before {
  content: '→';
  position: absolute;
  top: calc(50% - .5em);
  left: calc(-1 * clamp(18px, 2.6vw, 34px) / 2 - .5em);
  width: 1em;
  text-align: center;
  font: 16px/1 var(--font-mono);
  color: var(--hy-gold);
}
.hy-page .hy-ab__chain :is(span, strong, small) { display: block; margin: 0; }
.hy-ab__label { font: 400 12px/1.6 var(--font-mono); letter-spacing: .12em; color: var(--hy-gold); }
.hy-ab__chain strong { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 400; line-height: 1.25; color: var(--hy-ivory); }
.hy-ab__chain small { font-size: 13px; line-height: 1.5; color: var(--hy-muted); }
.hy-page .hy-ab figcaption { margin-top: 16px; }
.hy-condition {
  display: flex;
  gap: 14px;
  align-items: baseline;
  max-width: 900px;
  margin: clamp(64px, 8vw, 104px) 0 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--hy-bay-raised);
  box-shadow: inset 0 1px 0 rgb(255 240 212 / 8%);
  font-size: 14px;
  line-height: 1.75;
  color: var(--hy-body);
}
.hy-condition__label {
  flex: none;
  font: 12px/1.75 var(--font-mono);
  letter-spacing: .12em;
  color: var(--hy-gold);
}

/* Screens: the reader picks a view. Without script every view stays visible. */
.hy-screens { padding: clamp(80px, 9vw, 128px) 0; }
.hy-screens__head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 52px); }
.hy-tabs__list {
  display: none;
  gap: 4px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 6px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  background: #e2dccf;
  box-shadow: inset 0 1px 2px rgb(51 50 43 / 14%), 0 1px 0 #faf8f3;
  scrollbar-width: none;
}
.hy-tabs.is-ready .hy-tabs__list { display: flex; }
.hy-tabs__list [role='tab'] {
  flex: none;
  min-height: 44px;
  padding: 0 clamp(14px, 2vw, 24px);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hy-stone-body);
  font: 13px/1 var(--font-mono);
  letter-spacing: .12em;
  cursor: pointer;
  transition: background-color var(--motion-hover), color var(--motion-hover);
}
.hy-tabs__list [role='tab']:hover { color: var(--hy-stone-ink); }
.hy-tabs__list [role='tab'][aria-selected='true'] {
  background: var(--hy-bay-raised);
  color: var(--hy-ivory);
  box-shadow: inset 0 1px 0 rgb(255 240 212 / 14%), 0 2px 6px rgb(20 16 10 / 25%);
}
.hy-tabs__list [role='tab']:focus-visible,
.hy-views button:focus-visible {
  outline: 2px solid var(--hy-stone-gold);
  outline-offset: 2px;
}
.hy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hy-tabs:not(.is-ready) .hy-panel + .hy-panel { margin-top: clamp(56px, 7vw, 88px); }
.hy-panel[hidden] { display: none; }
.hy-panel:focus-visible { outline: 2px solid var(--hy-stone-gold); outline-offset: 8px; border-radius: 8px; }
.hy-viewer {
  padding: clamp(12px, 1.6vw, 20px);
  border-radius: 22px;
  background: var(--hy-bay);
  box-shadow:
    inset 0 1px 0 rgb(255 240 212 / 10%),
    0 3px 6px rgb(51 50 43 / 16%),
    0 24px 48px rgb(51 50 43 / 20%);
}
.hy-views {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.hy-tabs.is-ready .hy-views { display: flex; }
.hy-views button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hy-muted);
  font: 12px/1 var(--font-mono);
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(239 232 218 / 12%);
}
.hy-views button:hover { color: var(--hy-ivory); }
.hy-views button[aria-pressed='true'] {
  background: #29231a;
  color: var(--hy-ivory);
  box-shadow: inset 0 1px 0 rgb(255 240 212 / 16%), inset 0 0 0 1px var(--hy-rim);
}
.hy-views button:focus-visible { outline-color: var(--hy-gold); }
.hy-viewer .hy-screen + .hy-screen { margin-top: 16px; }
.hy-tabs.is-ready .hy-viewer .hy-screen + .hy-screen { margin-top: 0; }
.hy-viewer .hy-screen[hidden] { display: none; }
.hy-viewer .hy-screen__frame { padding: 0; background: transparent; box-shadow: none; }
.hy-viewer .hy-screen__frame img { border-radius: 12px; }
.hy-viewer .hy-screen figcaption { margin: 12px 4px 2px; color: var(--hy-muted); }
.hy-panel__copy h3 { color: var(--hy-stone-ink); }
.hy-panel__copy .hy-kicker { margin-bottom: 10px; }
.hy-panel__copy .hy-copy { margin-top: 16px; }
.hy-terms {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hy-terms li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hy-stone-body);
  box-shadow: inset 0 1px 0 rgb(51 50 43 / 10%);
}
.hy-terms__key {
  font: 400 12px/1.95 var(--font-mono);
  letter-spacing: .08em;
  color: var(--hy-stone-gold);
}

/* 2MIX / TRACK/STEM */
.hy-context {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
  margin-top: clamp(64px, 8vw, 104px);
}
.hy-context__intro h3 { color: var(--hy-stone-ink); }
.hy-context__intro .hy-note { margin-top: 14px; }
.hy-context__card {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 18px;
  background: var(--hy-stone-raised);
  box-shadow: var(--hy-panel-shadow);
}
.hy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--hy-bay-raised);
  color: var(--hy-ivory);
  font: 12px/1 var(--font-mono);
  letter-spacing: .1em;
  box-shadow: inset 0 1px 0 rgb(255 240 212 / 16%);
}
.hy-context__card p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--hy-stone-body);
}
.hy-slots {
  max-width: 72ch;
  margin: clamp(28px, 4vw, 40px) 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--hy-stone-body);
}

/* Start: three steps beside the pair menu. */
.hy-start { padding: clamp(80px, 9vw, 120px) 0; }
.hy-start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hy-start ol {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hy-start li {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  gap: 8px;
  padding: 18px 0;
  box-shadow: inset 0 1px 0 rgb(51 50 43 / 10%);
}
.hy-start li > span {
  font: 12px/2.1 var(--font-mono);
  letter-spacing: .1em;
  color: var(--hy-stone-gold);
}
.hy-start li h3 { color: var(--hy-stone-ink); font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.hy-start li p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: var(--hy-stone-body); }
.hy-free {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--hy-stone-raised);
  box-shadow: var(--hy-panel-shadow);
  font-size: 15px;
  line-height: 1.75;
  color: var(--hy-stone-ink);
}
.hy-menu-bay {
  padding: clamp(18px, 3vw, 36px);
  border-radius: 24px;
  background: var(--hy-bay);
  box-shadow:
    inset 0 1px 0 rgb(255 240 212 / 10%),
    0 3px 6px rgb(51 50 43 / 16%),
    0 24px 48px rgb(51 50 43 / 20%);
}
.hy-menu-bay .hy-screen figcaption { color: var(--hy-muted); margin-top: 16px; }
/* The menu captures show the whole plug-in window with the menu at its right
   edge. The bay shows the menu side at a readable size; the file is not cropped. */
.hy-menu-shot .hy-screen__frame {
  overflow: hidden;
  aspect-ratio: 1.48;
  border-radius: 12px;
}
/* 2026-10-20 (1.1.52 captures): the PAIR menu sits in the right 42% of the
   frame and its top 62%; the MENU covers the right 48%, shown down to PRE / POST. */
.hy-menu-shot .hy-screen__frame img {
  width: calc(100% / .42);
  max-width: none;
  margin-left: calc(-100% * .58 / .42);
}
.hy-menu-shot--keep .hy-screen__frame { aspect-ratio: 1.08; }
.hy-menu-shot--keep .hy-screen__frame img {
  width: calc(100% / .48);
  margin-left: calc(-100% * .52 / .48);
}

/* Keep / Record with Kirin OS. */
.hy-record { padding: clamp(80px, 9vw, 120px) 0; }
.hy-record__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hy-record__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  color: var(--hy-stone-gold);
  text-underline-offset: 5px;
}
.hy-record__link:focus-visible,
.hy-source a:focus-visible { outline: 2px solid var(--hy-stone-gold); outline-offset: 4px; }

/* Reference entry: one block on this page. */
/* Hypha 1.1.58 の Reference の曲との差を見る針の段落。前の段落と続いて見えないよう少し空ける。 */
.hy-page .hypha-reference-entry .hypha-reference-entry__meter { margin-top: 14px; }
.hy-page .hypha-reference-entry .hy-required {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 4px 0 0;
  padding: 0 12px;
  border-radius: 8px;
  background: #e2dccf;
  color: var(--hy-stone-ink);
  font-size: 14px;
  box-shadow: inset 0 1px 0 #f8f5ed;
}

.hy-source {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-body);
}
.hy-source a { color: var(--hy-stone-gold); text-underline-offset: 4px; text-decoration: underline; }
/* Links inside the update guide and the questions read as links, like the source line. */
.hypha-update-guide p a { color: var(--hy-stone-gold); text-underline-offset: 4px; text-decoration: underline; }
.hypha-update-guide p a:focus-visible { outline: 2px solid var(--hy-stone-gold); outline-offset: 4px; }

@media (max-width: 960px) {
  .hy-panel { grid-template-columns: minmax(0, 1fr); }
  .hy-context { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hy-context__intro { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  /* Narrow screens: the screen spans the width and starts below the action links.
     The second stacked link adds one 44px row and its 16px gap (60px); the
     four-line lead adds about 6.6 lines of body text (2026-10-20). */
  .hy-vu {
    --hy-vu-width: min(1180px, 100vw - 2 * var(--hy-gutter));
    --hy-vu-lift: min(
      calc(min(50svh - 4px, 100svh - 356px) - 2.04 * var(--entrance-heading-size) - 3.4 * clamp(1rem, 1.55vw, 1.3rem) - 60px - 6.9 * clamp(1rem, 1.55vw, 1.3rem) - 24px),
      calc(.6 * var(--hy-vu-width))
    );
  }
  .hy-vu__grid,
  .hy-stage__head,
  .hy-step__head,
  .hy-step__aside,
  .hy-step--listen,
  .hy-start__grid,
  .hy-record__grid { grid-template-columns: minmax(0, 1fr); }
  .hy-vu__screen { justify-self: stretch; width: auto; }
  .hy-vu__copy { margin-top: 18px; }
  .hy-step__aside { gap: 24px; }
  .hy-sequence { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hy-ab__chain { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hy-ab__chain li + li::before { content: '↓'; top: -23px; left: 16px; width: auto; }
  .hy-sequence li + li::before {
    content: '↓';
    top: -30px;
    left: 0;
    width: auto;
  }
}
@media (max-width: 640px) {
  .hy-match__panel { grid-template-columns: minmax(0, 1fr); }
  .hy-match__key { grid-auto-flow: column; justify-content: start; align-items: center; }
  .hy-match__arrow--across { display: none; }
  .hy-match__arrow--down { display: inline; }
  .hy-context { grid-template-columns: minmax(0, 1fr); }
  .hy-condition { flex-direction: column; gap: 6px; }
  .hy-terms li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hy-tabs__list { width: auto; }
  .hy-tabs__list [role='tab'] { padding: 0 12px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .hy-tabs__list [role='tab'] { transition: none; }
}
.hy-condition a {
  color: var(--hy-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hy-condition a:focus-visible { outline: 2px solid var(--hy-gold); outline-offset: 3px; }

/* Japanese line breaking, 2026-10-11: break only between phrases.
   The page marks phrase boundaries with <wbr> and keeps words whole with
   keep-all, which Safari also follows; auto-phrase refines it where supported.
   Headings group each comma-delimited part in .jp-chunk so a line ends at the comma. */
.hy-page main:lang(ja) {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
.hy-page main .jp-chunk { display: inline-block; max-width: 100%; }
.hy-page main :is(h1, h2, h3, .hypha-signal-node strong, .hy-step__label, .bridge__text, .btn) { text-wrap: balance; }
.hy-page main :is(p, li, dd, dt, figcaption) { text-wrap: pretty; }
.hy-page main { hyphens: manual; }
.hy-page main .hy-nowrap { white-space: nowrap; }
/* The download buttons keep their text in one piece for the release step, so
   keep-all leaves no break inside them. On phones they shrink to stay on one
   line; below that, anywhere is the last resort against horizontal overflow. */
@media (max-width: 480px) {
  .hy-page main:lang(ja) .cta-row .btn {
    font-size: clamp(13px, 3.9vw, 17px);
    padding-inline: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* The site material (styles.css, 2026-10-26): glass for screens and bays, raised keys and chips,
   lit stone cards, the processing chain as a sunken well, and the measured numbers on a glass readout. */
.hy-screen__frame:not(.hy-screen--bare .hy-screen__frame, .hy-viewer .hy-screen__frame), .hy-viewer, .hy-menu-bay { background-image: var(--mat-glass); box-shadow: var(--mat-glass-lift), 0 0 0 1px var(--mat-glass-edge); }
.hy-tabs__list { background-image: var(--mat-well); box-shadow: var(--mat-well-sink); }
.hy-tabs__list [role='tab'][aria-selected='true'] { background-image: var(--mat-key); box-shadow: var(--mat-key-lift), inset 0 0 0 1px var(--mat-key-edge); }
.hy-chip { background-image: var(--mat-key); box-shadow: inset 0 1px 0 rgb(255 250 235 / 12%), inset 0 -2px 0 rgb(0 0 0 / 45%), 0 3px 6px rgb(0 0 0 / 30%); }
.hy-context__card, .hy-pair .hypha-signal-node:not(.hypha-signal-node--chain), .hy-free { background-image: var(--mat-stone); box-shadow: var(--mat-stone-lift), inset 0 0 0 1px var(--mat-stone-edge); }
.hy-pair .hypha-signal-node--chain { background-image: var(--mat-well); box-shadow: var(--mat-well-sink); }
.hy-page .hypha-reference-entry .hy-required { background-image: var(--mat-stone-key); box-shadow: var(--mat-stone-key-lift); }
.hy-page :is(.hypha-performance__panel, .hypha-self-check__panel) { border: 1px solid var(--mat-stone-edge); border-radius: 26px; background-image: var(--mat-stone); box-shadow: var(--mat-stone-lift); }
.hy-page :is(.hypha-performance__stats, .hypha-self-check__stats) { position: relative; overflow: hidden; border: 1px solid var(--mat-glass-edge); border-radius: 20px; background: #161512; background-image: var(--mat-glass); box-shadow: var(--mat-glass-lift); }
.hy-page .hypha-performance__stats > div { padding: 24px 26px; }
.hy-page :is(.hypha-performance__stats > div + div, .hypha-self-check__stats > div + div) { border-color: rgb(255 248 230 / 9%); }
.hy-page :is(.hypha-performance__stats, .hypha-self-check__stats) dt { color: rgb(236 229 214 / 62%); }
.hy-page :is(.hypha-performance__stats, .hypha-self-check__stats) dd { color: #d9cba4; text-shadow: 0 0 22px rgb(217 203 164 / 18%); }

/* 2026-11-22 映像の節：表紙と題を並べ、押すと YouTube で開く（頁の中では YouTube を読まない） */
.hy-videos { padding: clamp(64px, 7vw, 96px) 0; }
.hy-videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hy-video a { display: block; color: var(--hy-stone-ink); text-decoration: none; }
.hy-video img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 3px 6px rgb(51 50 43 / 16%), 0 16px 32px rgb(51 50 43 / 14%);
}
.hy-video__title { display: block; margin-top: 14px; font-size: 15px; line-height: 1.6; }
.hy-video__meta { display: block; margin-top: 6px; font: 12px/1.6 var(--font-mono); letter-spacing: .08em; color: var(--hy-stone-gold); }
.hy-video a:hover .hy-video__title,
.hy-video a:focus-visible .hy-video__title { text-decoration: underline; text-underline-offset: 3px; }

/* 2026-11-22 映像の節の下に、使い方の記事（/learn）へのリンク */
.hy-learn { margin-top: clamp(32px, 4vw, 48px); }
.hy-learn h3 { color: var(--hy-stone-ink); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hy-learn ul { margin: 12px 0 0; padding-left: 1.2em; }
.hy-learn li { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--hy-stone-ink); }
.hy-learn a { color: var(--hy-stone-ink); text-decoration: underline; text-underline-offset: 3px; }
