/* Yudai — singer and voice trainer editorial gallery */
:root {
    color-scheme: only light;
    --bg: #fcfcfa;
    --surface: #f3f5f1;
    --surface-raised: #ffffff;
    --ink: #27332d;
    --ink-secondary: #515e56;
    --ink-muted: #69756d;
    --line: #dce3dc;
    --line-strong: #bfcbbf;
    --accent: #527466;
    --accent-hover: #3f6153;
    --paper-rgb: 252, 252, 250;
    --accent-rgb: 82, 116, 102;
    --selection: #dce9df;
    --error: #81534b;
    --error-line: #a06b61;
    --wash: rgba(105, 147, 119, 0.11);
    --f-display-en: "Cormorant Garamond", Georgia, serif;
    --f-display-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    --f-sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    --f-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    --pad: clamp(18px, 4.4vw, 68px);
    --maxw: 1320px;
    --nav-height: 78px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
    color-scheme: only dark;
    --bg: #171d19;
    --surface: #202a23;
    --surface-raised: #242e27;
    --ink: #edf1e9;
    --ink-secondary: #c5d0c6;
    --ink-muted: #a6b5a9;
    --line: #39483e;
    --line-strong: #596c5f;
    --accent: #a2c5b1;
    --accent-hover: #c2d8c8;
    --paper-rgb: 23, 29, 25;
    --accent-rgb: 162, 197, 177;
    --selection: #3b5344;
    --error: #efb2a7;
    --error-line: #d2978b;
    --wash: rgba(89, 132, 103, 0.18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 18px);
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--line-strong) var(--bg);
    background: var(--bg);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    color: inherit;
    font: inherit;
}

button, select {
    cursor: pointer;
}

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

::selection {
    background: var(--selection);
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.section {
    position: relative;
    scroll-margin-top: calc(var(--nav-height) + 18px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-160%);
    background: var(--ink);
    color: var(--surface-raised);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

html:not(.js) .nav-menu-btn,
html:not(.js) .contact-form {
    display: none;
}

/* The original single canvas remains beneath semantic content. */
.experience {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: clip;
    pointer-events: none;
}

#gallery-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1.45;
    text-transform: uppercase;
}

.eyebrow > span:first-child {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.eyebrow > span:first-child::after {
    display: inline-block;
    width: 27px;
    height: 1px;
    margin-left: 11px;
    vertical-align: middle;
    background: var(--line-strong);
    content: "";
}

.eyebrow-jp {
    margin-left: auto;
    color: var(--ink-secondary);
    font-family: var(--f-jp);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
}

.h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--f-display-jp);
    font-size: clamp(1.8rem, 3.1vw, 2.55rem);
    font-weight: 400;
    letter-spacing: 0.035em;
    line-height: 1.6;
}

.body-text {
    max-width: 42em;
    margin: 0 0 1.1em;
    color: var(--ink-secondary);
    font-family: var(--f-jp);
    font-size: clamp(0.94rem, 0.3vw + 0.89rem, 1.02rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 2;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* Fixed navigation and the existing accessible full-page menu. */
.nav {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    display: flex;
    min-height: var(--nav-height);
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 10px var(--pad);
    border-bottom: 1px solid transparent;
    background: rgba(var(--paper-rgb), 0.9);
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.nav.is-scrolled {
    border-color: var(--line);
    background: rgba(var(--paper-rgb), 0.97);
    box-shadow: 0 5px 20px rgba(28, 40, 32, 0.05);
}

.nav.is-hidden {
    transform: translateY(-110%);
}

.nav-brand {
    display: inline-flex;
    min-width: 0;
    flex: none;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 42px;
    height: 28px;
    flex: none;
    object-fit: contain;
    opacity: 0.86;
}

:root[data-theme="dark"] .nav-logo {
    filter: brightness(0) invert(1);
}

.nav-word, .footer-word {
    color: var(--ink);
    font-family: var(--f-display-en);
    font-size: 1.62rem;
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1;
}

.nav-links {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
    margin-left: auto;
}

.nav-links a {
    position: relative;
    padding-block: 8px;
    color: var(--ink-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.025em;
    white-space: nowrap;
    transition: color 180ms ease;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--accent);
    content: "";
    transition: transform 200ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.theme-toggle {
    display: inline-flex;
    min-width: 58px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-secondary);
    font-size: 0.69rem;
    line-height: 1;
    letter-spacing: 0.05em;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.theme-toggle:hover {
    border-color: var(--line-strong);
    color: var(--accent);
}

.theme-toggle-icon {
    font-size: 1rem;
}

.nav-menu-btn {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    transition: color 180ms ease;
}

.nav-menu-btn:hover {
    color: var(--accent);
}

.nav-menu-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-menu-icon {
    position: relative;
    width: 20px;
    height: 18px;
}

.nav-menu-icon i {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transition: top 180ms ease, transform 180ms ease;
}

.nav-menu-icon i:first-child {
    top: 5px;
}

.nav-menu-icon i:last-child {
    top: 12px;
}

body.menu-open .nav-menu-icon i:first-child {
    top: 9px;
    transform: rotate(45deg);
}

body.menu-open .nav-menu-icon i:last-child {
    top: 9px;
    transform: rotate(-45deg);
}

.menu {
    position: fixed;
    z-index: 90;
    inset: 0;
    visibility: hidden;
    overflow: hidden;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms ease;
}

.menu-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 74% 38%, var(--wash), transparent 56%),
        var(--surface);
    pointer-events: none;
}

.menu-inner {
    position: relative;
    display: flex;
    width: min(100%, var(--maxw));
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    margin-inline: auto;
    padding: calc(var(--nav-height) + 28px) var(--pad) clamp(30px, 7vh, 72px);
}

.menu-eyebrow {
    margin: 0 0 18px;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.menu-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list li {
    border-top: 1px solid var(--line);
}

.menu-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.menu-list a {
    display: grid;
    min-height: 74px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-block: 10px;
    transition: color 180ms ease, padding 180ms ease;
}

.menu-list a:hover {
    padding-left: 8px;
    color: var(--accent);
}

.menu-num {
    color: var(--ink-muted);
    font-size: 0.67rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.menu-name {
    color: var(--ink);
    font-family: var(--f-display-en);
    font-size: clamp(1.7rem, 3.3vw, 2.8rem);
    line-height: 1.1;
}

.menu-jp {
    color: var(--ink-secondary);
    font-family: var(--f-jp);
    font-size: 0.78rem;
}

.menu-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
    color: var(--ink-secondary);
    font-size: 0.76rem;
}

.menu-foot a {
    width: fit-content;
    text-underline-offset: 3px;
    transition: color 180ms ease;
}

.menu-foot a:hover {
    color: var(--accent);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.menu.is-closing .menu-list a {
    transition-duration: 140ms;
}

/* Real content stays in the page flow above the single sculptural canvas. */
.world {
    position: relative;
    z-index: 1;
    min-height: 0;
    --world-progress: 1;
    --world-presence: 1;
    padding: 0;
    overflow: visible;
    background: transparent;
    scroll-margin-top: 0;
}

.world-stage {
    position: relative;
    isolation: isolate;
    min-height: 0;
    overflow: visible;
    padding-block: clamp(76px, 9vh, 116px);
    background: transparent;
}

.world-stage::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: radial-gradient(ellipse at 76% 45%, var(--chapter-wash, var(--wash)), transparent 58%);
    content: "";
    pointer-events: none;
}

.world-art {
    position: absolute;
    z-index: 1;
    inset: 10% 2% 9% 56%;
    pointer-events: none;
}

.world-stage > .container {
    position: relative;
    z-index: 2;
}

.world-intro { --chapter-wash: rgba(105, 147, 119, 0.1); }
.world-about { --chapter-wash: rgba(92, 133, 151, 0.1); }
.world-practice { --chapter-wash: rgba(164, 143, 94, 0.09); }
.world-music { --chapter-wash: rgba(87, 132, 160, 0.11); }
.world-contact { --chapter-wash: rgba(105, 147, 119, 0.1); }

:root[data-theme="dark"] .world-intro { --chapter-wash: rgba(91, 132, 103, 0.16); }
:root[data-theme="dark"] .world-about { --chapter-wash: rgba(74, 112, 132, 0.15); }
:root[data-theme="dark"] .world-practice { --chapter-wash: rgba(129, 109, 62, 0.14); }
:root[data-theme="dark"] .world-music { --chapter-wash: rgba(64, 105, 132, 0.17); }
:root[data-theme="dark"] .world-contact { --chapter-wash: rgba(73, 126, 91, 0.15); }

/* Hero: large Voice./&Music. type holds its own field beside the sculpture. */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 0;
    --exhibit-scroll-progress: 0;
    background: transparent;
}

.hero-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: max(680px, min(100svh, 920px));
    align-items: center;
    overflow: visible;
    padding-block: calc(var(--nav-height) + 50px) 86px;
    background: transparent;
}

.world-intro .world-art {
    inset: 8% 1% 9% 54%;
}

.hero-content {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.06fr) minmax(250px, 0.94fr);
    align-items: center;
    gap: clamp(24px, 4vw, 66px);
}

.hero-main {
    grid-column: 1;
    min-width: 0;
    max-width: 700px;
}

.hero-kicker {
    margin: 0 0 clamp(12px, 2vh, 22px);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--f-display-en);
    font-size: clamp(7rem, 12.5vw, 11.25rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.76;
}

.hero-title .line {
    display: block;
    overflow: clip;
    padding-block: 0.04em 0.13em;
    white-space: nowrap;
}

.hero-line {
    display: inline-block;
}

html.js .hero-line {
    transform: translateY(108%);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: transform 1.05s cubic-bezier(0.19, 1, 0.22, 1), clip-path 1.05s cubic-bezier(0.19, 1, 0.22, 1), opacity 760ms ease;
}

.hero-title .line:nth-child(2) .hero-line {
    font-size: 0.84em;
    transition-delay: 150ms;
}

body.is-ready .hero-line {
    transform: translateY(0);
    clip-path: inset(0);
    opacity: 1;
}

.hero-title em {
    color: var(--accent);
    font-style: italic;
}

.hero-main .hero-lead {
    max-width: 30em;
    margin: 24px 0 0;
    color: var(--ink-secondary);
    font-family: var(--f-jp);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: var(--surface-raised);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    box-shadow: 0 5px 15px rgba(28, 40, 32, 0.12);
}

.text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 180ms ease;
}

.text-link:hover {
    color: var(--accent-hover);
}

.text-link span[aria-hidden="true"] {
    transition: transform 180ms ease;
}

.text-link:hover span[aria-hidden="true"] {
    transform: translate(2px, -1px);
}

.hero-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 20px 0 0;
    color: var(--ink-muted);
    font-size: 0.78rem;
}

.hero-identity span {
    color: var(--ink);
    font-family: var(--f-display-jp);
    font-size: 1rem;
}

.hero-exhibit-note {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: var(--pad);
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-width: min(36em, 46vw);
    margin: 0;
    color: var(--ink-secondary);
    font-size: 0.72rem;
    letter-spacing: 0.035em;
    pointer-events: none;
}

.hero-exhibit-note span:first-child {
    color: var(--accent);
    font-family: var(--f-display-en);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    right: var(--pad);
    bottom: 24px;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    color: var(--ink-muted);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scroll-cue span[aria-hidden="true"] {
    color: var(--accent);
}

/* About: portrait left, profile copy and statistics right, with its own art column. */
.about-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.84fr) minmax(320px, 1fr) minmax(190px, 0.6fr);
    align-items: center;
    gap: clamp(22px, 3vw, 42px);
}

.profile-exhibit {
    position: relative;
    isolation: isolate;
    width: min(100%, 390px);
    aspect-ratio: 4 / 5;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 46px rgba(28, 40, 32, 0.1), 0 2px 9px rgba(28, 40, 32, 0.045);
}

.profile-exhibit::before,
.stage-media::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 30%;
    filter: blur(clamp(24px, 3vw, 42px)) saturate(0.76) brightness(1.13);
    opacity: 0.29;
    content: "";
    pointer-events: none;
}

.profile-exhibit::before {
    background: url("/img/profile.webp") 52% 42% / cover no-repeat;
}

.stage-media::before {
    background: url("/img/uta.webp") 50% 38% / cover no-repeat;
}

.profile-exhibit img,
.stage-media img {
    position: relative;
    z-index: 1;
}

.profile-exhibit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 42%;
}

.profile-exhibit figcaption,
.stage-media figcaption {
    z-index: 2;
    background: rgba(var(--paper-rgb), 0.93);
    color: var(--ink-secondary);
    font-size: 0.75rem;
}

.profile-exhibit figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 12px;
    font-family: var(--f-jp);
    letter-spacing: 0.04em;
}

.about-body {
    min-width: 0;
}

.about-body .eyebrow {
    margin-bottom: 14px;
}

.about-body .h2 {
    margin-bottom: 0;
}

.about-body .body-text {
    max-width: 40em;
    color: var(--ink-secondary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 32px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.stats li {
    min-width: 0;
}

.stat-num {
    display: block;
    color: var(--ink);
    font-family: var(--f-display-en);
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-num em {
    color: var(--accent);
    font-size: 0.72em;
    font-style: normal;
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--ink-secondary);
    font-size: 0.72rem;
    letter-spacing: 0.055em;
}

.stat-label small {
    display: block;
    color: var(--ink-muted);
    font-family: var(--f-jp);
    font-size: 0.8rem;
    letter-spacing: 0.015em;
}

.world-about .world-art {
    inset: 10% max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))) 10% auto;
    width: min(19vw, 250px);
}

/* Practice: two spacious service rows leave the right field to the sculpture. */
.practice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
    align-items: center;
    gap: clamp(30px, 5vw, 78px);
}

.practice-copy {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.section-head {
    margin-bottom: clamp(22px, 3.6vw, 38px);
}

.section-head .h2 {
    max-width: 22em;
}

.world-practice .world-art {
    inset: 12% max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))) 10% auto;
    width: min(38%, 490px);
}

.works-grid {
    display: grid;
    max-width: 780px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.work-card {
    display: block;
    min-width: 0;
    border-top: 1px solid var(--line-strong);
    color: inherit;
    transition: border-color 180ms ease, color 180ms ease;
}

.work-card:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.work-card:hover {
    border-color: var(--accent);
}

.work-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 24px;
    padding: 20px 10px 22px;
}

.work-num {
    grid-column: 1 / -1;
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-title {
    grid-column: 1;
    margin: 5px 0 1px;
    color: var(--ink);
    font-family: var(--f-display-en);
    font-size: clamp(1.8rem, 2.65vw, 2.35rem);
    font-weight: 400;
    line-height: 1.18;
}

.work-sub {
    grid-column: 1;
    margin: 0 0 9px;
    color: var(--accent);
    font-family: var(--f-jp);
    font-size: 0.94rem;
}

.work-desc {
    grid-column: 1;
    max-width: 40em;
    margin: 0;
    color: var(--ink-secondary);
    font-family: var(--f-jp);
    font-size: 0.94rem;
    line-height: 1.9;
}

.tags {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 10px 0 0;
    padding: 0;
    color: var(--ink-muted);
    font-size: 0.73rem;
    list-style: none;
}

.tags li + li::before {
    margin-right: 12px;
    color: var(--line-strong);
    content: "·";
}

.work-cta {
    grid-column: 2;
    grid-row: 2 / span 5;
    display: inline-flex;
    align-self: end;
    align-items: center;
    gap: 8px;
    margin: 0 0 3px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Music: a natural 16:10 photograph, clear listening copy and a reserved note field below. */
.stage-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.96fr) minmax(330px, 1.04fr);
    align-items: start;
    gap: clamp(34px, 5.4vw, 78px);
}

.stage-media {
    grid-column: 1;
    position: relative;
    isolation: isolate;
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: visible;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 17px 42px rgba(28, 40, 32, 0.09), 0 2px 9px rgba(28, 40, 32, 0.04);
}

.stage-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
}

.stage-media figcaption {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 5px 9px;
    font-family: var(--f-jp);
    letter-spacing: 0.04em;
}

.stage-content {
    grid-column: 2;
    min-width: 0;
    padding-bottom: clamp(150px, 22vh, 220px);
}

.stage-content .eyebrow {
    margin-bottom: 14px;
}

.stage-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: var(--f-display-jp);
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.035em;
    line-height: 1.55;
}

.stage-content .body-text {
    max-width: 34em;
    margin-top: 0;
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 22px;
}

.pill {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-strong);
    color: var(--accent);
    font-size: 0.84rem;
    transition: color 180ms ease, border-color 180ms ease;
}

.pill:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.world-music .world-art {
    inset: auto max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))) 28px auto;
    width: min(40%, 500px);
    height: clamp(280px, 40vh, 400px);
}

/* Contact: invitation and form share the upper grid; the ring has its own lower field. */
.world-contact .world-art {
    inset: auto auto max(40px, 7vh) max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
    width: min(32%, 360px);
    height: clamp(160px, 25vh, 240px);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
    align-items: start;
    gap: clamp(32px, 5.2vw, 78px);
}

.contact-intro {
    position: relative;
    min-width: 0;
    padding-bottom: clamp(145px, 20vh, 210px);
}

.contact-title {
    margin: 0 0 18px;
}

.contact-intro .body-text {
    max-width: 36em;
}

.contact-email {
    margin-top: 8px;
}

.contact-form {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    background: rgba(var(--paper-rgb), 0.92);
    box-shadow: 0 14px 38px rgba(28, 40, 32, 0.065);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.field label {
    order: -1;
    color: var(--ink-secondary);
    font-size: 0.82rem;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.94rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
}

.field textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.8;
}

.field select:invalid {
    color: var(--ink-muted);
}

.field select option {
    background: var(--surface-raised);
    color: var(--ink);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: var(--error-line);
}

.btn-send {
    display: inline-flex;
    min-width: 132px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: var(--surface-raised);
    font-size: 0.84rem;
    font-weight: 500;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-send:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.btn-send[disabled] {
    cursor: progress;
    opacity: 0.62;
}

.form-status {
    min-height: 1.7em;
    margin: 14px 0 0;
    color: var(--ink-secondary);
    font-family: var(--f-jp);
    font-size: 0.85rem;
    line-height: 1.75;
}

.form-status.ok {
    color: var(--accent);
}

.form-status.err {
    color: var(--error);
}

.form-status a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Footer remains a quiet, navigable part of the same page. */
.footer {
    position: relative;
    z-index: 2;
    padding-block: 46px 22px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
    align-items: start;
    gap: 26px 40px;
}

.footer-brand {
    display: flex;
    width: fit-content;
    flex-direction: column;
    gap: 8px;
    color: var(--ink-secondary);
    font-size: 0.76rem;
}

.footer-word {
    font-size: 1.9rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--ink-secondary);
    font-size: 0.8rem;
}

.footer-nav a,
.to-top {
    transition: color 180ms ease;
}

.footer-nav a:hover,
.to-top:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 0.73rem;
}

.footer-bottom p {
    margin: 0;
}

.to-top {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    color: var(--ink-secondary);
    letter-spacing: 0.04em;
}

/* The existing reveal hook is visual only; semantic content stays available. */
html.js [data-reveal] {
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 440ms ease, transform 440ms ease;
}

html.js [data-reveal].is-in {
    transform: none;
    opacity: 1;
}

/* Desktop runways fit real content and only engage after the first scene frame. */
@media (min-width: 901px) and (min-height: 780px) and (prefers-reduced-motion: no-preference) {
    html.has-experience-layout .world[data-world="0"],
    html.has-experience-layout .world[data-world="1"],
    html.has-experience-layout .world[data-world="2"],
    html.has-experience-layout .world[data-world="3"] {
        min-height: 158svh;
    }

    html.has-experience-layout .world[data-world="0"] > .world-stage,
    html.has-experience-layout .world[data-world="1"] > .world-stage,
    html.has-experience-layout .world[data-world="2"] > .world-stage,
    html.has-experience-layout .world[data-world="3"] > .world-stage {
        position: sticky;
        top: 0;
        min-height: 100svh;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    :root {
        --pad: clamp(28px, 3.2vw, 42px);
    }

    .nav {
        gap: 12px;
    }

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 0.74rem;
    }

    .theme-toggle {
        min-width: 50px;
        gap: 5px;
        padding-inline: 6px;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
    }

    .hero-title {
        font-size: clamp(6.7rem, 11.2vw, 8.8rem);
    }

    .about-grid {
        grid-template-columns: minmax(220px, 0.84fr) minmax(280px, 1fr) minmax(150px, 0.55fr);
        gap: 24px;
    }

    .practice-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(245px, 0.8fr);
        gap: 28px;
    }

    .stage-grid {
        grid-template-columns: minmax(300px, 0.9fr) minmax(290px, 1.1fr);
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 0.82fr) minmax(390px, 1.18fr);
        gap: 32px;
    }
}

/* Compact widths keep each chapter in natural flow with a separate art box. */
@media (max-width: 900px) {
    :root {
        --nav-height: 68px;
        --pad: clamp(18px, 4.5vw, 38px);
    }

    .world-stage,
    .hero-stage {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-block: clamp(62px, 9vw, 84px);
    }

    .world-stage > .container {
        order: 1;
    }

    .world-art {
        position: relative;
        inset: auto;
        order: 2;
        width: calc(100% - 2 * var(--pad));
        height: clamp(210px, 48vw, 330px);
        margin: 28px auto 0;
    }

    .world-intro .world-art {
        inset: auto;
        width: calc(100% - 2 * var(--pad));
        height: clamp(260px, 64vw, 390px);
        margin-top: 10px;
    }

    .hero-stage {
        min-height: 0;
        align-items: stretch;
        padding-block: calc(var(--nav-height) + 48px) 38px;
    }

    .hero-content {
        display: block;
        order: 1;
        min-height: 0;
    }

    .hero-main {
        width: 100%;
        max-width: 680px;
    }

    .hero-kicker {
        margin-bottom: 14px;
        font-size: 0.68rem;
    }

    .hero-title {
        font-size: clamp(5.6rem, 15.5vw, 8rem);
        line-height: 0.81;
    }

    .hero-main .hero-lead {
        max-width: 32em;
        margin-top: 22px;
        font-size: 0.96rem;
    }

    .hero-actions {
        gap: 12px 20px;
        margin-top: 20px;
    }

    .hero-exhibit-note {
        position: relative;
        order: 3;
        inset: auto;
        max-width: none;
        margin: 16px var(--pad) 0;
    }

    .scroll-cue {
        display: none;
    }

    .about-grid {
        grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
        gap: clamp(24px, 4vw, 36px);
    }

    .profile-exhibit {
        width: min(100%, 350px);
    }

    .world-about .world-art {
        inset: auto;
        width: calc(100% - 2 * var(--pad));
        height: clamp(210px, 48vw, 300px);
        margin-inline: auto;
    }

    .practice-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .world-practice .world-art {
        inset: auto;
        width: calc(100% - 2 * var(--pad));
        height: clamp(230px, 55vw, 340px);
        margin-inline: auto;
    }

    .stage-grid {
        grid-template-columns: minmax(250px, 0.94fr) minmax(260px, 1.06fr);
        gap: clamp(24px, 4vw, 38px);
    }

    .stage-content {
        padding-bottom: 0;
    }

    .contact-intro {
        padding-bottom: 0;
    }

    .world-music .world-art {
        inset: auto;
        width: calc(100% - 2 * var(--pad));
        height: clamp(210px, 48vw, 300px);
        margin-inline: auto;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 0.88fr) minmax(330px, 1.12fr);
        gap: 28px;
    }

    .world-contact .world-art {
        inset: auto;
        width: clamp(180px, 36vw, 260px);
        height: clamp(155px, 30vw, 220px);
        margin-right: auto;
        margin-left: var(--pad);
    }

    .footer-inner {
        gap: 24px 28px;
    }
}

@media (max-width: 760px) {
    .nav {
        gap: 8px;
    }

    .nav-links {
        display: none;
    }

    html:not(.js) .nav-links {
        display: flex;
        min-width: 0;
        max-width: 52%;
        flex: 0 1 52%;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 2px 10px;
    }

    html:not(.js) .nav-links a {
        padding-block: 3px;
        font-size: 0.65rem;
    }

    .nav-actions {
        gap: 2px;
    }

    .theme-toggle {
        min-width: 44px;
        gap: 5px;
        padding-inline: 5px;
    }

    .nav-menu-label {
        display: none;
    }

    .nav-menu-btn {
        width: 44px;
        padding-inline: 8px;
    }

    .menu-list a {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 10px;
    }

    .menu-jp {
        grid-column: 2;
        margin-top: -12px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .profile-exhibit {
        width: min(78vw, 360px);
        margin-inline: auto;
    }

    .about-body {
        max-width: 680px;
    }

    .stage-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .stage-media {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .stage-content {
        grid-column: 1;
        grid-row: 2;
        padding-bottom: 0;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .contact-intro {
        padding-bottom: 0;
    }

    .contact-form {
        padding: clamp(20px, 5vw, 28px);
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    body {
        font-size: 15px;
    }

    :root {
        --pad: 18px;
    }

    .container {
        padding-inline: var(--pad);
    }

    .hero-title {
        font-size: clamp(4.35rem, 16.5vw, 5.3rem);
    }

    .hero-main .hero-lead {
        font-size: 0.94rem;
    }

    .button {
        min-height: 46px;
        padding-inline: 13px;
        font-size: 0.76rem;
    }

    .hero-actions {
        align-items: flex-start;
        gap: 10px 14px;
    }

    .hero-exhibit-note {
        font-size: 0.68rem;
    }

    .world-stage {
        padding-block: 58px;
    }

    .hero-stage {
        padding-top: calc(var(--nav-height) + 42px);
    }

    .work-body {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2px;
        padding: 19px 4px 20px;
    }

    .work-num,
    .work-title,
    .work-sub,
    .work-desc,
    .tags,
    .work-cta {
        grid-column: 1;
    }

    .work-title {
        margin-top: 7px;
    }

    .work-cta {
        grid-row: auto;
        margin-top: 12px;
        white-space: normal;
    }

    .stats {
        gap: 14px 18px;
    }

    .contact-form {
        padding: 18px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-nav {
        font-size: 0.76rem;
    }
}

@media (max-height: 620px) {
    .menu-inner {
        justify-content: flex-start;
    }

    .menu-eyebrow {
        margin-bottom: 12px;
    }

    .menu-list a {
        min-height: 58px;
    }

    .menu-foot {
        margin-top: 18px;
    }
}

/* Short viewports and reduced motion read as ordinary flowing pages. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html.js [data-reveal] {
        transform: none !important;
        opacity: 1 !important;
    }

    .hero-title .hero-line {
        transform: none !important;
        clip-path: inset(0) !important;
        opacity: 1 !important;
    }

}

@media (prefers-reduced-motion: reduce), (min-width: 901px) and (max-height: 779px) {
    .hero-stage,
    .world-stage {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-block: clamp(60px, 8vw, 84px);
    }

    .hero-content,
    .world-stage > .container {
        order: 1;
    }

    .hero-stage {
        padding-top: calc(var(--nav-height) + 40px);
    }

    .hero-content {
        display: block;
    }

    .about-grid {
        grid-template-columns: minmax(250px, 0.88fr) minmax(0, 1.12fr);
    }

    .practice-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .stage-content,
    .contact-intro {
        padding-bottom: 0;
    }

    .world-art {
        position: relative;
        inset: auto;
        order: 2;
        width: calc(100% - 2 * var(--pad));
        height: clamp(200px, 34vw, 300px);
        margin: 28px auto 0;
    }

    .world-intro .world-art,
    .world-about .world-art,
    .world-practice .world-art,
    .world-music .world-art,
    .world-contact .world-art {
        position: relative;
        inset: auto;
    }

    .world-intro .world-art {
        width: calc(100% - 2 * var(--pad));
        height: clamp(240px, 42vw, 360px);
        margin-top: 18px;
    }

    .hero-exhibit-note {
        position: relative;
        order: 3;
        inset: auto;
        max-width: none;
        margin: 16px var(--pad) 0;
    }

    .scroll-cue {
        display: none;
    }

    .world-contact .world-art {
        width: clamp(190px, 24vw, 280px);
        height: clamp(155px, 19vw, 230px);
        margin-right: auto;
        margin-left: var(--pad);
    }

}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .nav-links {
        display: none;
    }

    html:not(.js) .nav-links {
        display: flex;
    }

    .about-grid,
    .stage-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-exhibit {
        width: min(78vw, 360px);
        margin-inline: auto;
    }

    .stage-media {
        grid-row: auto;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .stage-content {
        grid-row: auto;
        padding-bottom: 0;
    }

    .contact-intro {
        padding-bottom: 0;
    }
}
