/* Unified entrances, 2026-10-10: TOP / Hypha / OS / Journey / Stage / Mastering.
   One typography grid and scroll-aware header, distinct stationary photographs.
   Depth is baked into the assets. Loaded only by these six page families. */
:root {
  --stone-ink: #33322b;
  --stone-body: #4b4a43;
  --stone-gold: #665128;
  --stone-surface: #eeeae1;
  --stone-edge: #b9b2a0;
  --entrance-white: #f3efe6;
  --entrance-gutter: clamp(22px, 4vw, 48px);
  --entrance-left: max(var(--entrance-gutter), calc((100vw - 1180px) / 2));
  --entrance-heading-size: clamp(2.85rem, 7.8vw, 7rem);
  --site-section-size: clamp(2rem, 4.4vw, 4rem);
  --site-card-size: clamp(1.375rem, 2.2vw, 1.75rem);
  --site-copy-size: 1rem;
  --site-heading-font: 'Waldenburg', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --entrance-body: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, 'Segoe UI', sans-serif;
}

/* Photo and white navigation initially; script.js switches at scrollY > 24.
   Journey depth no longer independently hides or recolors the header. */
:is(body, body.craft-body--experience.is-jungle-depth) .site-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 400ms ease-out, border-color 400ms ease-out;
}
.site-header .site-header__inner {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 18px var(--entrance-left);
  align-items: center;
  gap: 8px;
}
:is(body, body.craft-body--experience.is-jungle-depth) .site-header :is(.site-logo, .site-nav a, .site-nav__language-menu) {
  color: var(--entrance-white);
  transition: color 400ms ease-out;
}
.site-header .site-logo {
  font-family: 'Waldenburg', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .13em;
  white-space: nowrap;
}
.site-header .site-nav { gap: 8px 22px; }
.site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--entrance-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
}
.site-header .site-nav__language-menu {
  align-self: center;
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid currentColor;
}
.site-header .site-nav__language-menu summary {
  min-height: 34px;
  font-family: var(--entrance-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
}
:is(body, body.craft-body--experience.is-jungle-depth) .site-header:is(.site-header--scrolled, .site-header--solid) {
  background: var(--stone-surface);
  border-bottom-color: rgb(102 81 40 / 14%);
}
:is(body, body.craft-body--experience.is-jungle-depth) .site-header:is(.site-header--scrolled, .site-header--solid) :is(.site-logo, .site-nav a, .site-nav__language-menu) {
  color: var(--stone-body);
}
:is(body, body.craft-body--experience.is-jungle-depth) .site-header .site-nav__language-panel {
  background: var(--stone-surface);
  border-color: var(--stone-edge);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:is(body, body.craft-body--experience.is-jungle-depth) .site-header .site-nav__language-panel a { color: var(--stone-body); }
:is(body, body.craft-body--experience.is-jungle-depth) .site-header .site-nav__language-panel a:is(:hover, [aria-current='page']) {
  background: #ddd7c9;
  color: var(--stone-ink);
}
.site-header .site-nav__language-code { color: var(--stone-gold); }
.site-header :is(a, summary):focus-visible {
  outline: 2px solid var(--entrance-white);
  outline-offset: 5px;
}
.site-header:is(.site-header--scrolled, .site-header--solid) :is(a, summary):focus-visible,
:is(body, body.craft-body--experience.is-jungle-depth) .site-header .site-nav__language-panel a:focus-visible { outline-color: var(--stone-gold); }

/* Shared origin and four slots. Empty kicker/lead slots remain on TOP/Hypha.
   Minimum height lets short or zoomed viewports grow instead of clipping CTAs. */
:is(.r1-page, body) :is(.hero--top, .hero--hypha, .os-header, .free-hero, .craft-hero--experience, .jm-hero, .mastering-hero) {
  display: block;
  min-height: 100svh;
  height: auto;
  max-height: none;
  box-sizing: border-box;
  padding: 0;
  background-color: var(--stone-ink);
  color: var(--entrance-white);
  border-bottom: 1px solid #cbc4b5;
}
:is(.r1-page, body) .hero__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 20px calc(var(--entrance-heading-size) * 2.04) minmax(3.4em, auto) auto;
  row-gap: 24px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: max(180px, calc(50svh - 172px)) var(--entrance-left) 96px;
  text-align: left;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  transform: none;
  will-change: auto;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content > :is(.hero__kicker, .section-kicker, .free-eyebrow, .craft-kicker, .jm-label, .mastering-kicker) {
  grid-row: 1;
  margin: 0;
  color: var(--entrance-white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: .16em;
  text-transform: uppercase;
  --entrance-delay: 60ms;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content > h1 {
  grid-row: 2;
  margin: 0;
  max-width: 100%;
  font-family: 'Waldenburg', Georgia, serif;
  font-size: var(--entrance-heading-size);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--entrance-white);
  text-shadow: none;
  font-synthesis: none;
  text-wrap: initial;
  --entrance-delay: 200ms;
}
.entrance-content h1 :is(.hero__line, .jm-nowrap, .mastering-nowrap) {
  display: block;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  white-space: nowrap;
  opacity: 1;
  transform: none;
  animation: none;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content > :is(.hero__lead, .sub, .free-lead, .craft-hero__lead, .entrance-lead) {
  grid-row: 3;
  max-width: 46ch;
  margin: 0;
  font-family: var(--entrance-body);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.65;
  color: var(--entrance-white);
  text-shadow: none;
  --entrance-delay: 400ms;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content > :is(.os-actions, .free-actions, .craft-actions, .jm-actions, .mastering-actions, .r1-hero-actions, .entrance-actions) {
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px 32px;
  margin: 0;
  --entrance-delay: 520ms;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content a,
:is(.r1-page, .craft-body--experience, body) .entrance-content a.btn {
  width: auto;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--entrance-white);
  box-shadow: none;
  font-family: var(--entrance-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content a:is(:hover, :active, :focus-visible),
:is(.r1-page, .craft-body--experience, body) .entrance-content a.btn:is(:hover, :active, :focus-visible) {
  background: transparent;
  color: var(--entrance-white);
  border-bottom-color: currentColor;
  transform: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}
:is(.r1-page, .craft-body--experience, body) .entrance-content a:focus-visible,
:is(.r1-page, .craft-body--experience, body) .entrance-content a.btn:focus-visible {
  outline: 2px solid var(--entrance-white);
  outline-offset: 5px;
}

/* Neutral solid shade guarantees white-text contrast over the lightest stone. */
.os-page.r1-page .os-header::before {
  background-image: url('/assets/images/release/kirin-white-stone-hero-v1.webp');
  background-position: center;
  background-size: cover;
  opacity: 1;
  filter: none;
  transform: none;
  will-change: auto;
}
.free-page .free-hero__media {
  background-image: url('/assets/images/release/kirin-stage-glass-hero-v2.webp');
  background-position: center;
  background-size: cover;
  opacity: 1;
  filter: none;
  transform: none;
  will-change: auto;
}
.craft-body--experience .craft-hero__image {
  opacity: 1;
  filter: none;
  object-position: center;
  transform: none;
  will-change: auto;
}
.jm-page .jm-hero__image,
.mastering-page .mastering-hero__image {
  transform: none;
  filter: none;
  will-change: auto;
}
:is(.r1-page, body) .hero__bg {
  transform: scale(1.1);
  filter: none;
  will-change: auto;
}
.os-page.r1-page .os-header::after,
.free-page .free-hero::before,
.craft-body--experience .craft-hero__shade,
.jm-page .jm-hero::before,
.mastering-page .mastering-hero::before,
:is(.r1-page, body) .hero__overlay { background: rgb(35 31 25 / 66%); }

/* Once-only rise. Explicit FROM also handles already-visible .reveal nodes. */
@keyframes entranceRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.entrance-content > :is(h1, p, div) {
  opacity: 1;
  transform: none;
  animation: entranceRise 700ms ease-out both;
  animation-delay: var(--entrance-delay, 60ms);
  transition: none;
  will-change: auto;
}

/* Original precise explanations and actions immediately below the first fold. */
:is(.os-page.r1-page, .free-page) .entrance-details {
  max-width: 1180px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.os-page.r1-page .entrance-details .sub,
.free-page .entrance-details .free-lead {
  max-width: 72ch;
  margin: 0;
  color: var(--stone-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}
.os-page.r1-page .entrance-details .pricing-disclaimer a {
  color: var(--stone-body);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.free-page .entrance-details .free-chip {
  color: var(--stone-body);
  border-color: var(--stone-edge);
  background: var(--stone-surface);
}
.free-page .entrance-details .free-lang {
  border-color: var(--stone-edge);
  background: var(--stone-surface);
}
.free-page .entrance-details .free-lang button { color: var(--stone-body); }
.free-page .entrance-details .free-lang button[aria-pressed='true'] {
  background: #d4c59e;
  color: var(--stone-ink);
}

/* One type hierarchy below the hero, shared by all pages loading this sheet.
   h2 inside facts, prices and principles is a card title, not a section title.
   Keep price figures, form controls, annotations and the approved hero intact. */
:is(body.r1-page, body) main h2:not(.price-card__name):not(.jm-fact__value):not(.mastering-fact__value):not(.os-principle h2) {
  font-family: var(--site-heading-font);
  font-size: var(--site-section-size);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.015em;
  font-synthesis: none;
}
:is(body.r1-page, body) main :is(h3, .price-card__name, .jm-fact__value, .mastering-fact__value, .os-principle h2) {
  font-family: var(--site-heading-font);
  font-size: var(--site-card-size);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.005em;
  font-synthesis: none;
}
:is(body.r1-page, body) main :is(.jm-copy, .mastering-copy, .mastering-flow__step p, .mastering-os-note p, .jm-card p, .mastering-card p, .hypha-intro__body, .hypha-step p, .hypha-use-card p, .free-copy, .free-feature p, .free-step p, .feature-card p, .story-chapter-head p:not(.story-kicker)) {
  font-size: var(--site-copy-size);
  line-height: 1.8;
}

/* Mastering: let section headings use the width they need, not a narrow
   promotional column. The form and all service conditions remain unchanged. */
:is(.jm-page, .mastering-page) :is(.jm-section, .mastering-section) {
  width: min(1180px, calc(100% - 2 * var(--entrance-gutter)));
  max-width: none;
  box-sizing: border-box;
  padding-inline: 0;
}
:is(.jm-page, .mastering-page) #how-it-works :is(.jm-section__head, .mastering-section__head) {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
:is(.jm-page, .mastering-page) #how-it-works {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
:is(.jm-page, .mastering-page) #mastering-inquiry .mastering-inquiry-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
:is(.jm-page, .mastering-page) :is(#how-it-works, #mastering-inquiry) :is(.jm-copy, .mastering-copy) {
  max-width: 72ch;
}
.jm-page :is(.jm-heading, .mastering-flow__step h3, .mastering-faq-heading) {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* Mastering surfaces: depth comes from a lit edge, a contact shadow and a
   separate resting plane, not outlines, decorative rules or moving layers. */
:is(.jm-page, .mastering-page) {
  --signal-amber: var(--stone-gold);
  --mastering-panel: #eeeae1;
  --mastering-panel-radius: 18px;
  --mastering-panel-shadow: inset 0 1px 0 #f8f5ed, inset 0 -1px 0 #d8d1c3,
    0 2px 3px rgb(51 50 43 / 7%), 0 14px 28px rgb(51 50 43 / 8%);
}
:is(.jm-page, .mastering-page) :is(.jm-section, .mastering-section, .jm-facts, .mastering-facts, .jm-fact, .mastering-fact, .mastering-includes, .mastering-includes li) {
  border: 0;
}
:is(.jm-page, .mastering-page) :is(.mastering-rate, .mastering-flow__step, .mastering-os-note, .jm-card, .mastering-card, .mastering-inquiry-form) {
  border: 0;
  border-radius: var(--mastering-panel-radius);
  background: var(--mastering-panel);
  box-shadow: var(--mastering-panel-shadow);
  padding: clamp(24px, 2.7vw, 36px);
}
:is(.jm-page, .mastering-page) :is(.mastering-flow, .mastering-rates) {
  gap: 24px;
}
:is(.jm-page, .mastering-page) .mastering-flow__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
:is(.jm-page, .mastering-page) .mastering-flow__step h3 { margin-top: 24px; }
:is(.jm-page, .mastering-page) .mastering-flow__step p { margin-top: 16px; }
:is(.jm-page, .mastering-page) :is(.jm-portrait, .mastering-portrait, .jm-gear, .mastering-gear) {
  border: 0;
  border-radius: var(--mastering-panel-radius);
  box-shadow: var(--mastering-panel-shadow);
}
:is(.jm-page, .mastering-page) :is(.jm-link, .mastering-link) {
  border: 0;
  border-radius: 10px;
  background: transparent;
}
:is(.jm-page, .mastering-page) :is(.jm-link, .mastering-link):hover {
  background: #e5dfd2;
}
:is(.jm-page, .mastering-page) .mastering-faq {
  margin-top: 56px;
  padding: clamp(24px, 2.7vw, 36px);
  border: 0;
  border-radius: var(--mastering-panel-radius);
  background: #e9e4d9;
  box-shadow: inset 0 2px 4px rgb(51 50 43 / 6%), inset 0 -1px 0 #f8f5ed;
}
:is(.jm-page, .mastering-page) .mastering-faq-heading { margin-bottom: 12px; }
:is(.jm-page, .mastering-page) .mastering-faq details { border: 0; }
:is(.jm-page, .mastering-page) .mastering-faq details + details {
  border-top: 1px solid rgb(102 81 40 / 12%);
}
:is(.jm-page, .mastering-page) :is(.mastering-field input, .mastering-field select, .mastering-field textarea) {
  border-color: #b9b2a0;
  border-radius: 8px;
  background: #f5f1e9;
  box-shadow: inset 0 2px 3px rgb(51 50 43 / 5%);
}
:is(.jm-page, .mastering-page) :is(.mastering-service-section, .mastering-form-actions) .btn--primary {
  border-color: var(--stone-ink);
  border-radius: 8px;
  background: var(--stone-ink);
  color: var(--entrance-white);
  box-shadow: inset 0 1px 0 rgb(243 239 230 / 15%), 0 2px 3px rgb(51 50 43 / 12%);
}
:is(.jm-page, .mastering-page) :is(.mastering-service-section, .mastering-form-actions) .btn--primary:hover {
  border-color: #454139;
  background: #454139;
  color: var(--entrance-white);
}
:is(.jm-page, .mastering-page) main :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--stone-gold);
  outline-offset: 4px;
}
:is(.jm-page, .mastering-page) :is(.mastering-service-section, .mastering-form-actions) .btn--primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 18%);
}
:is(.jm-page, .mastering-page) :is(.jm-gear, .mastering-gear) img { filter: none; }
:is(.jm-page, .mastering-page) :is(.jm-gear, .mastering-gear) figcaption { pointer-events: none; }
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) main .mastering-photo-open:focus-visible {
  outline: 2px solid var(--entrance-white);
  outline-offset: -6px;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-open__hint {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(51 50 43 / 85%);
  color: var(--entrance-white);
  box-shadow: inset 0 1px 0 rgb(243 239 230 / 25%), 0 2px 4px rgb(0 0 0 / 15%);
  font-family: var(--font-mono);
  font-size: 22px;
  transition: transform 140ms ease-out;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-open:is(:hover, :focus-visible) .mastering-photo-open__hint { transform: scale(1.08); }
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-open:active .mastering-photo-open__hint { transform: scale(.94); }
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(16px, 2.4vw, 28px);
  box-sizing: border-box;
  border: 0;
  border-radius: var(--mastering-panel-radius);
  background: var(--mastering-panel);
  color: var(--stone-ink);
  box-shadow: var(--mastering-panel-shadow), 0 28px 64px rgb(0 0 0 / 25%);
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe::backdrop { background: rgb(36 34 29 / 80%); }
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe__bar p {
  font-family: var(--site-heading-font);
  font-size: var(--site-card-size);
  line-height: 1.4;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62dvh, 650px);
  object-fit: contain;
  border-radius: 10px;
  background: #26241f;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe__controls[hidden] { display: none; }
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe__controls span {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #e2dccf;
  color: var(--stone-ink);
  box-shadow: inset 0 1px 0 #f8f5ed, 0 2px 3px rgb(51 50 43 / 10%);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe button:hover { background: #d8d1c3; }
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe button:active {
  box-shadow: inset 0 2px 3px rgb(51 50 43 / 12%);
}
:is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-loupe button:focus-visible {
  outline: 2px solid var(--stone-gold);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .site-header .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 14px;
    gap: 8px;
  }
  .site-header .site-logo { font-size: 14px; }
  .site-header .site-nav { justify-content: flex-start; gap: 0 14px; }
  .site-header .site-nav a { font-size: 13px; }
  .site-header .site-nav__language-menu { padding-left: 12px; margin-left: 0; }
  .site-header .site-nav__language-menu summary { font-size: 13px; }
}
@media (max-width: 660px) {
  .os-page.r1-page .os-header::before { background-position: 65% center; }
  .free-page .free-hero__media { background-position: 72% center; }
  .craft-body--experience .craft-hero__image { object-position: 68% center; }
  :is(.r1-page, .craft-body--experience, body) .entrance-content { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.jm-page, .mastering-page, .story-page, .free-page) .mastering-photo-open__hint {
    transform: none !important;
    transition: none;
  }
  :is(.jm-page, .mastering-page) :is(.mastering-service-section, .mastering-form-actions) .btn--primary:active { transform: none; }
  .entrance-content > :is(h1, p, div),
  .entrance-content .hero__line {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  :is(body, body.craft-body--experience.is-jungle-depth) .site-header,
  :is(body, body.craft-body--experience.is-jungle-depth) .site-header :is(.site-logo, .site-nav a, .site-nav__language-menu),
  .entrance-content a { transition: none; }
}

/* STAGE: the same stone planes as Mastering, with breathing room for the
   existing instructions. The HTML form, sharing boundaries and hero stay intact. */
.free-page {
  --signal-amber: var(--stone-gold);
  --mastering-panel: var(--stone-surface);
  --mastering-panel-radius: 18px;
  --mastering-panel-shadow: inset 0 1px 0 #f8f5ed, inset 0 -1px 0 #d8d1c3,
    0 2px 3px rgb(51 50 43 / 7%), 0 14px 28px rgb(51 50 43 / 8%);
}
.free-page .free-section {
  width: min(1180px, calc(100% - 2 * var(--entrance-gutter)));
  max-width: none;
  box-sizing: border-box;
  padding-inline: 0;
  border: 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.free-page .free-section__head {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
.free-page .free-section__head .free-copy { max-width: 72ch; }
.free-page .free-heading {
  /* Existing translated newlines become phrase-sized wrap opportunities,
     not compulsory desktop lines. keep-all also works without auto-phrase. */
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}
.free-page :is(.free-label, .free-flow__step, .free-item__mark) { color: var(--stone-gold); }
.free-page :is(.free-video, .free-screen, .free-phone, .free-item, .free-flow__item, .free-url__box) {
  min-width: 0;
  border: 0;
  border-radius: var(--mastering-panel-radius);
  background: var(--mastering-panel);
  box-shadow: var(--mastering-panel-shadow);
}
.free-page .free-caption {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 24px 22px;
  border: 0;
  color: var(--stone-body);
  font-size: .875rem;
  line-height: 1.65;
}
.free-page :is(.free-screen, .free-phone) {
  padding: clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) 0;
  background: var(--mastering-panel);
}
.free-page :is(.free-screen, .free-phone) .mastering-photo-open {
  position: relative;
  inset: auto;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}
.free-page :is(.free-screen, .free-phone) .mastering-photo-open:focus-visible {
  outline: 2px solid var(--stone-gold);
  outline-offset: 4px;
}
.free-page .free-screen img { height: auto; aspect-ratio: auto; object-fit: contain; }
.free-page .free-phone .mastering-photo-open,
html[lang='ja'] .free-page .free-screen--locale .mastering-photo-open { max-width: 390px; }
html[lang='ja'] .free-page .free-screen--locale { background: var(--mastering-panel); }
.free-page :is(.free-screen--locale, .free-phone) .mastering-photo-open { display: grid; justify-items: center; }
html[lang='ja'] .free-page .free-screen--locale img,
.free-page .free-phone img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  aspect-ratio: auto;
}
.free-page .free-panel {
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.free-page .free-split { gap: 32px; align-items: center; }
.free-page .free-item { padding: 24px; gap: 18px; }
.free-page .free-item__mark {
  border: 0;
  border-radius: 50%;
  background: #e5dfd2;
  box-shadow: inset 0 2px 3px rgb(51 50 43 / 7%), inset 0 -1px 0 #f8f5ed;
}
.free-page :is(.free-item, .free-flow__item) p:not(.free-flow__step) {
  margin-top: 14px;
  font-size: var(--site-copy-size);
  line-height: 1.8;
}
.free-page .free-flow { gap: 24px; border: 0; }
.free-page .free-flow__item { padding: clamp(24px, 2.7vw, 36px); }
.free-page .free-flow h3 { margin-top: 24px; }
.free-page .free-url { gap: 24px; }
.free-page .free-url__box { padding: clamp(24px, 2.7vw, 36px); }
.free-page .free-faq {
  border: 0;
  border-radius: var(--mastering-panel-radius);
  background: #e9e4d9;
  padding: clamp(24px, 2.7vw, 36px);
  box-shadow: inset 0 2px 4px rgb(51 50 43 / 6%), inset 0 -1px 0 #f8f5ed;
}
.free-page .free-faq details { border: 0; }
.free-page .free-faq details + details { border-top: 1px solid rgb(102 81 40 / 12%); }
.free-page .free-faq summary {
  font-size: var(--site-card-size);
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: normal;
}
.free-page .free-faq p { font-size: var(--site-copy-size); line-height: 1.8; }
.free-page .free-section .btn {
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #f8f5ed, 0 2px 3px rgb(51 50 43 / 10%);
}
.free-page .free-section .btn--primary {
  background: var(--stone-ink);
  border-color: var(--stone-ink);
  color: var(--entrance-white);
  box-shadow: inset 0 1px 0 rgb(243 239 230 / 15%), 0 2px 3px rgb(51 50 43 / 12%);
}
.free-page .free-section .btn--primary:hover { background: #454139; border-color: #454139; }
.free-page .free-section .btn--ghost {
  border-color: var(--stone-edge);
  background: var(--mastering-panel);
  color: var(--stone-ink);
}
.free-page .free-section .btn--ghost:hover { background: #e5dfd2; }
.free-page .entrance-details .free-lang button { min-height: 44px; }
.free-page .entrance-details .free-lang button[aria-pressed='true'] {
  background: var(--stone-ink);
  color: var(--entrance-white);
}
.free-page main :is(a, button, summary):focus-visible { outline: 2px solid var(--stone-gold); outline-offset: 4px; }
.free-page .mastering-photo-loupe__bar p { font: 400 16px/1.6 var(--font-sans); margin: 0; }
.free-page .mastering-photo-loupe { width: min(720px, calc(100% - 32px)); }
.free-page .stage-image-scroll {
  max-height: min(62dvh, 650px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 10px;
  background: var(--mastering-panel);
}
.free-page .stage-image-scroll:focus-visible { outline: 2px solid var(--stone-gold); outline-offset: 3px; }
.free-page .mastering-photo-loupe__image { width: 100%; height: auto; max-height: none; background: var(--mastering-panel); }
@media (max-width: 1020px) {
  .free-page .free-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .free-page .free-flow { grid-template-columns: minmax(0, 1fr); }
  .free-page .free-section__head { gap: 20px; margin-bottom: 32px; }
  .free-page .free-item { padding: 24px; }
}
