:root {
    color-scheme: dark;
    --background: #0b0b0e;
    --text: #e2e0e5;
    --muted: #97939f;
    --faint: #77717f;
    --line: #2b252f;
    --button: #1c1820;
    --hover: #30202a;
    --accent: #cd7183;
    --crimson: #8f3449;
    --halo: #b7adca;
    --wash: #45233024;
    --corner-flower-opacity: .25;
    --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-theme="light"] {
    color-scheme: light;
    --background: #f0edf0;
    --text: #302832;
    --muted: #6b606f;
    --faint: #796d7f;
    --line: #d5cbd7;
    --button: #e7dfe7;
    --hover: #ddcbd7;
    --accent: #97334d;
    --crimson: #97334d;
    --halo: #8f819c;
    --wash: #b97b9418;
    --corner-flower-opacity: .18;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; isolation: isolate; background: radial-gradient(ellipse at 80% 35%, var(--wash), transparent 48%), var(--background); color: var(--text); font-family: var(--mono); font-size: 13px; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url('../assets/images/higanbana-corner.svg') left bottom / clamp(600px, 82vw, 1080px) auto no-repeat; opacity: var(--corner-flower-opacity); }
.topbar, main, .footer { position: relative; z-index: 1; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--text); background: var(--crimson); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.identity { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .035em; }
.symbol { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.identity-path { color: var(--faint); font-size: 10px; margin-left: 8px; }
.tools { display: flex; align-items: center; gap: 20px; margin-left: auto; }
#theme-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px; border: 0; background: transparent; color: var(--muted); }
#theme-label { font-size: 9px; letter-spacing: .1em; min-width: 44px; text-align: right; }
.theme-track { display: block; position: relative; width: 54px; height: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--button); transition: border-color .25s, background .25s; }
.theme-thumb { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--hover); color: var(--accent); transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .25s; }
.theme-thumb svg { position: absolute; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .35s; }
.theme-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
#theme-button[aria-checked="true"] .theme-thumb { transform: translateX(26px); }
#theme-button[aria-checked="true"] .theme-sun { opacity: 1; transform: rotate(0) scale(1); }
#theme-button[aria-checked="true"] .theme-moon { opacity: 0; transform: rotate(70deg) scale(.6); }
#theme-button:hover .theme-track { border-color: var(--accent); }
#language-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px; border: 0; background: transparent; color: var(--muted); }
#language-label { font-size: 9px; letter-spacing: .08em; min-width: 44px; text-align: right; }
.language-track { position: relative; display: grid; grid-template-columns: 1fr 1fr; place-items: center; width: 62px; height: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--button); transition: border-color .25s, background .25s; }
.language-thumb { position: absolute; top: 3px; left: 3px; width: 26px; height: 20px; border-radius: 14px; background: var(--hover); transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .25s; }
.language-option { z-index: 1; font-size: 8px; letter-spacing: .04em; color: var(--faint); transition: color .2s; }
.language-en { color: var(--accent); }
#language-button[aria-checked="true"] .language-thumb { transform: translateX(28px); }
#language-button[aria-checked="true"] .language-en { color: var(--faint); }
#language-button[aria-checked="true"] .language-pt { color: var(--accent); }
#language-button:hover .language-track { border-color: var(--accent); }
main { min-height: calc(100svh - 127px); padding: 48px 28px 65px; }
.workspace { max-width: 1180px; margin: 0 auto; }
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; padding: 8px 0 51px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.intro h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5vw, 70px); line-height: 1.06; letter-spacing: -.05em; }
.intro h1 em { font-weight: 400; color: var(--muted); }
.intro-name { margin: 0 0 20px; color: var(--text); font-family: var(--serif); font-size: 24px; line-height: 1.3; letter-spacing: -.015em; }
.intro-description { max-width: 460px; color: var(--muted); font-size: 12px; line-height: 1.95; margin: 24px 0 19px; }
.intro-link { display: inline-flex; gap: 22px; align-items: center; font-size: 11px; padding: 5px 0; }
.intro-link > span[aria-hidden] { color: var(--accent); font-size: 16px; }
.intro-link:hover { color: var(--accent); }
.intro-manifesto { position: relative; isolation: isolate; display: flex; align-items: flex-end; border-left: 1px solid var(--line); margin: 12px 0 0; padding: 0 0 18px 38px; min-width: 0; }
.intro-flower { position: absolute; z-index: -1; top: -25px; right: 0; width: 360px; height: 245px; max-width: 100%; background: linear-gradient(135deg, var(--crimson), var(--accent)); mask: url('../assets/images/imgbin_red-spider-lily-tokyo-ghoul-flower-rat-pngg.png') center / contain no-repeat; opacity: .6; }
.intro-flower { mask-mode: luminance; }
.manifesto-flower-name { position: absolute; top: 13px; left: 38px; color: var(--accent); writing-mode: vertical-rl; letter-spacing: .24em; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 11px; }
.intro blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -.02em; max-width: 430px; }
.intro blockquote em { font-weight: 400; color: var(--muted); }
.navigation { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: stretch; gap: 20px; margin-bottom: 42px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 12px; }
.navigation-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.navigation a { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; padding: 16px 10px; color: var(--muted); border: 0; transition: background .2s, color .2s; }
.navigation a:hover { background: transparent; color: var(--text); }
.navigation a[aria-current] { color: var(--text); background: transparent; }
.navigation-icon { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--faint); }
.navigation a:hover .navigation-icon, .navigation a[aria-current] .navigation-icon { color: var(--accent); }
.navigation-step { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 0; background: transparent; border: 0; color: var(--faint); }
.navigation-step:hover:not(:disabled) { color: var(--accent); background: transparent; }
.navigation-step:disabled { opacity: .3; cursor: default; }
.navigation-step kbd { font: inherit; font-size: 9px; border: 0; padding: 3px; color: inherit; }
.navigation-step > span { font-size: 16px; }
.file-heading { display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; letter-spacing: .08em; margin-bottom: 16px; }
.content-view { min-height: 490px; padding: 25px 0 50px; max-width: 680px; }
.section-path { color: var(--faint); margin: 0 0 34px; font-size: 11px; }
.content-view h2 { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); letter-spacing: -.045em; font-weight: 400; margin: 0 0 24px; }
.content-view > p:not(.section-path) { font-size: 14px; line-height: 1.9; color: var(--muted); }
.content-view .content-note { padding-top: 22px; border-top: 1px solid var(--line); margin-top: 35px; font-size: 12px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; font-size: 10px; letter-spacing: .025em; color: var(--faint); }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
@media (min-width: 1500px) { main { padding-top: 85px; } }
@media (max-width: 700px) {
    .topbar { align-items: flex-start; padding: 22px 20px; }
    main { padding: 48px 20px; }
    .navigation { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 11px; }
    .navigation-links { grid-column: 1 / -1; grid-row: 1; gap: 3px; }
    .navigation a { flex-direction: column; min-height: 62px; padding: 10px 3px; gap: 7px; font-size: 10px; }
    .navigation-step { min-height: 40px; }
    .footer { padding: 20px; flex-wrap: wrap; font-size: 9px; }
    .footer > span:last-child { display: none; }
    .content-view { min-height: 450px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.home-profile { min-width: 0; padding-top: 10px; }
.home-profile h2 { margin: 0 0 25px; font-family: var(--serif); font-size: 42px; font-weight: 400; letter-spacing: -.04em; }
.home-profile > p { color: var(--muted); font-size: 13px; line-height: 1.95; margin: 0; }
.home-profile .about-introduction { margin-bottom: 0; }
.avatar-panel { min-width: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.avatar-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.avatar-role { margin: 0 0 12px; color: var(--accent); font-size: 8px; letter-spacing: .1em; }
.avatar-header h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.035em; }
.avatar-handle { margin: 9px 0 0; color: var(--faint); font-size: 10px; }
.avatar-stage { position: relative; height: 425px; isolation: isolate; overflow: clip; background: radial-gradient(ellipse at 50% 48%, var(--wash), transparent 68%); }
.avatar-fallback { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.avatar-stage.is-loaded[data-avatar-mode="3d"] .avatar-fallback { opacity: 0; visibility: hidden; }
.avatar-stage model-viewer { opacity: 0; visibility: hidden; pointer-events: none; }
.avatar-stage.is-loaded[data-avatar-mode="3d"] model-viewer { opacity: 1; visibility: visible; pointer-events: auto; }
.avatar-view-controls { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(6px); }
.avatar-stage:hover .avatar-view-controls, .avatar-view-controls:has(:focus-visible) { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (hover: none), (pointer: coarse) { .avatar-view-controls { opacity: 1; pointer-events: auto; transform: none; } }
#avatar-mode-button { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 154px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 22px; background: var(--button); }
.avatar-mode-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 18px; background: var(--hover); }
.avatar-mode-option { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 10px; }
.avatar-mode-option svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.avatar-mode-image { color: var(--accent); }
#avatar-mode-button[aria-checked="true"] .avatar-mode-thumb { transform: translateX(100%); }
#avatar-mode-button[aria-checked="true"] .avatar-mode-image { color: var(--faint); }
#avatar-mode-button[aria-checked="true"] .avatar-mode-3d { color: var(--accent); }
#avatar-mode-button:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
    .avatar-view-controls { transition: opacity .2s, transform .2s; }
    .avatar-mode-thumb { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
    .avatar-mode-option { transition: color .2s; }
    .avatar-stage model-viewer, .avatar-fallback { transition: opacity .3s, visibility .3s; }
}
model-viewer { position: relative; display: block; width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: var(--accent); --progress-bar-height: 1px; }
.avatar-profile { display: flex; align-items: center; gap: 12px; min-height: 50px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--crimson); background: var(--button); color: var(--text); font-size: 11px; transition: border-color .18s, background .18s; }
.avatar-profile-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.avatar-profile-arrow { width: 16px; height: 16px; flex-shrink: 0; margin-left: auto; color: var(--accent); transition: transform .18s; }
.avatar-profile:hover { background: var(--hover); border-color: var(--accent); }
.avatar-profile:hover .avatar-profile-arrow { transform: translate(2px, -2px); }

.avatar-orbit { pointer-events: none; position: absolute; z-index: -1; top: 17%; left: 12%; width: 76%; height: 65%; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-24deg); }
.avatar-orbit::before { content: ""; position: absolute; inset: 9px -13px; border: 1px solid var(--line); border-radius: 50%; opacity: .55; }
.avatar-orbit::after { content: ""; position: absolute; top: -14%; bottom: -14%; left: 50%; width: 1px; background: linear-gradient(transparent, var(--line) 20%, var(--line) 80%, transparent); }
.orbit-cross { position: absolute; top: -8px; left: calc(50% - 4px); font-size: 12px; color: var(--accent); background: var(--background); line-height: 14px; }
.lycoris-ornament { position: absolute; pointer-events: none; right: -12px; bottom: 2px; width: 125px; height: auto; opacity: .48; transform: rotate(12deg); }
.footer-flower { color: var(--accent); display: flex; align-items: center; gap: 10px; }
.footer-flower i { font-family: var(--serif); font-size: 13px; color: var(--muted); }
.footer-flower i[lang="ja"] { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", var(--serif); font-style: normal; font-size: 11px; letter-spacing: .15em; }

.content-view.is-contact { max-width: 980px; }
.content-view.is-projects { max-width: none; }
.is-projects > #section-copy { max-width: 760px; }
.project-categories { display: inline-flex; gap: 22px; border: 0; border-bottom: 1px solid var(--line); padding: 0; margin: 20px 0 34px; background: transparent; }
.project-category { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 2px; border: 0; background: transparent; font-size: 12px; color: var(--muted); }
.project-category:hover { color: var(--text); background: transparent; }
.project-category[aria-selected="true"] { background: transparent; color: var(--text); }
.project-category-icon { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.project-category[aria-selected="true"] .project-category-icon { color: var(--accent); }
.project-category-title { font-family: var(--serif); font-size: 27px; letter-spacing: -.025em; font-weight: 400; margin: 0 0 23px; }
.project-category-panel:focus-visible { outline: 1px solid var(--accent); outline-offset: 8px; }
.project-empty { margin: 0; padding: 35px 25px; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-card { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 36px; min-width: 0; padding: 32px 0; margin-bottom: 24px; border: 0; border-top: 1px solid var(--line); background: transparent; }
.project-info { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: var(--project-media-height, 360px); overflow: hidden; }
.project-heading { flex-shrink: 0; padding: 0; }
.project-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 9px; letter-spacing: .09em; margin-bottom: 20px; }
.project-development { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.project-development::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.project-title { margin: 0; color: var(--text); font-family: var(--serif); font-size: clamp(26px, 2.5vw, 31px); font-weight: 400; letter-spacing: -.035em; line-height: 1.2; }
.project-description { margin: 18px 0 0; max-width: 760px; font-size: 12px; color: var(--muted); line-height: 1.95; }
.project-description a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.project-description a:hover { color: var(--text); }
.project-description strong { color: var(--text); font-weight: 600; }
.project-media { min-width: 0; width: 100%; padding-block: 14px; }
.project-video-count { color: var(--faint); padding: 0; margin-left: auto; font-variant-numeric: tabular-nums; }
.project-figure { margin: 0; }
.project-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #050506; }
.video-player { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--background); }
.video-surface { position: relative; }
.video-overlay-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #e2e0e566; border-radius: 50%; background: #0b0b0e26; backdrop-filter: blur(2px); color: #e2e0e5; opacity: 0; pointer-events: none; transition: opacity .18s, border-color .2s, background .2s; }
.video-overlay-play:hover { background: #30202a40; border-color: var(--accent); }
.video-overlay-play svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 1; margin-left: 3px; }
.video-playback-status { position: absolute; top: 12px; left: 12px; padding: 7px 9px; font-size: 10px; line-height: 1.5; color: #e2e0e5; background: #0b0b0ec9; }
.video-controls { --text: #f0edf0; --muted: #e2e0e5; --line: #ffffff40; --accent: #e195a4; position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 10px 7px; border-top: 1px solid #ffffff1a; background: #0b0b0e1f; backdrop-filter: blur(3px); text-shadow: 0 1px 3px #0008; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.video-player:hover .video-controls, .video-player:has(:focus-visible) .video-controls { opacity: 1; pointer-events: auto; transform: translateY(0); }
.video-player:hover .video-overlay-play, .video-player:has(:focus-visible) .video-overlay-play { opacity: 1; pointer-events: auto; }
@media (hover: none), (pointer: coarse) {
    .video-controls { opacity: 1; pointer-events: auto; transform: none; }
    .video-overlay-play { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .video-controls, .video-overlay-play { transition: none; }
}
.video-toolbar { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.video-control { display: grid; place-items: center; min-width: 32px; min-height: 32px; padding: 6px; border: 0; background: transparent; color: var(--muted); }
.video-control:hover, .video-control[aria-pressed="true"] { color: var(--accent); }
.video-control svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.video-play svg { stroke-width: 1.8; }
.video-time { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.video-control-spacer { flex: 1; min-width: 0; }
.video-range { --video-progress: 0%; appearance: none; -webkit-appearance: none; display: block; height: 18px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: linear-gradient(to right, var(--accent) var(--video-progress), var(--line) var(--video-progress)) center / 100% 3px no-repeat; cursor: pointer; }
.video-range::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.video-range::-moz-range-track { height: 3px; background: transparent; }
.video-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 9px; height: 9px; margin-top: -3px; border: 0; border-radius: 50%; background: var(--accent); }
.video-range::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--accent); }
.video-range:disabled { opacity: .35; cursor: default; }
.video-seek { width: 100%; }
.video-volume { width: 62px; flex-shrink: 0; }
.video-player:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; background: #050506; border: 0; }
.video-player:fullscreen .video-surface { flex: 1; min-height: 0; }
.video-player:fullscreen .project-video { height: 100%; aspect-ratio: auto; }
.video-player:fullscreen .video-controls { flex-shrink: 0; }
@media (max-width: 700px) {
    .video-volume { display: none; }
    .video-controls { padding: 4px 8px 6px; }
    .video-toolbar { gap: 4px; }
    .video-control { min-width: 36px; min-height: 40px; }
    .video-time { font-size: 9px; }
    .video-overlay-play { width: 48px; height: 48px; }
}
.project-video-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; padding: 0; white-space: nowrap; }
.project-carousel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: stretch; gap: 12px; }
.project-video-stack { position: relative; min-width: 0; isolation: isolate; }
.project-video-stack > .video-player { z-index: 1; box-shadow: 0 6px 22px #0003; }
.project-stack-preview { position: absolute; inset: 0; z-index: 0; border: 1px solid var(--line); background: var(--button); overflow: hidden; pointer-events: none; }
.project-stack-preview img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.22) saturate(.45); }
.project-stack-before { transform: translateY(-16px) scale(.96); }
.project-stack-after { transform: translateY(16px) scale(.96); }
.project-carousel-navigation { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; width: 36px; }
.project-video-arrow { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); background: var(--button); color: var(--text); font-size: 19px; }
.project-video-arrow:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--hover); }
.project-video-arrow:disabled { opacity: .28; cursor: default; }
.project-gallery { display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; overflow-y: auto; scrollbar-width: none; }
.project-video-choices { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.project-video-dot { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; }
.project-video-dot::before { content: ""; width: 6px; height: 6px; border-radius: 6px; background: var(--faint); opacity: .65; transition: height .18s, background .18s; }
.project-video-dot[aria-pressed="true"]::before { height: 18px; background: var(--accent); opacity: 1; }
.project-video-dot:hover::before { background: var(--accent); opacity: 1; }
.project-video-error { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 16px 0 0; }
.project-video-error a { text-decoration: underline; color: var(--accent); text-underline-offset: 3px; }
.project-features { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--crimson) transparent; scrollbar-gutter: stable; margin-top: 26px; padding: 22px 14px 6px 0; border-top: 1px solid var(--line); }
.project-features:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.project-features h5 { font-size: 11px; font-weight: 400; letter-spacing: .025em; margin: 0 0 20px; color: var(--accent); }
.project-feature-list { margin: 0; padding: 0; list-style: none; }
.project-feature-list li { position: relative; padding-left: 16px; margin-bottom: 18px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.project-feature-list li:last-child { margin-bottom: 0; }
.project-feature-list li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.project-feature-list strong { color: var(--text); font-weight: 400; }
.project-feature-list li > span { display: block; margin-top: 3px; }
@media (max-width: 950px) {
    .project-card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .project-info { display: contents; height: auto; overflow: visible; }
    .project-heading { grid-row: 1; }
    .project-media { grid-row: 2; }
    .project-features { grid-row: 3; max-height: 240px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .project-video-dot::before { transition: none; } }
@media (max-width: 700px) {
    .project-categories { display: flex; }
    .project-category { flex: 1; justify-content: center; padding: 10px 13px; gap: 9px; }
    .project-card { padding: 18px; gap: 18px; }
    .project-meta { gap: 12px; }
    .project-carousel { grid-template-columns: minmax(0, 1fr) 32px; gap: 8px; }
    .project-video-arrow { width: 32px; height: 32px; }
    .project-carousel-navigation { width: 32px; }
    .project-video-dot { width: 24px; height: 20px; }
    .project-description, .project-feature-list li { font-size: 11px; }
}
.is-contact > #section-copy { max-width: 680px; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.contact-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; align-items: start; gap: 18px; width: 100%; padding: 28px 12px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font: inherit; color: var(--text); transition: border-color .15s, background .15s; }
.contact-card:hover { border-color: var(--crimson); background: var(--button); }
.contact-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 0; color: var(--accent); }
.contact-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.contact-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.contact-platform { color: var(--accent); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.contact-value { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.contact-action { margin-top: 10px; color: var(--faint); font-size: 10px; }
.contact-arrow { justify-self: end; font-size: 16px; color: var(--muted); }
.contact-card:hover .contact-arrow, .contact-card:hover .contact-action { color: var(--accent); }
.contact-status { position: fixed; bottom: 24px; right: 28px; z-index: 10; max-width: calc(100vw - 40px); padding: 14px 20px; margin: 0; border: 1px solid var(--line); background: var(--background); color: var(--text); font-size: 12px; box-shadow: 0 8px 30px #0002; }

.content-view.is-journey { max-width: none; padding-bottom: 10px; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 820px; margin: 32px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.about-facts dt { color: var(--faint); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.about-facts dd { margin: 10px 0 0; font-size: 13px; color: var(--text); }
.about-qualifications { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; row-gap: 26px; }
.about-qualifications dd { line-height: 1.65; }
.about-qualifications small { display: block; margin-top: 5px; color: var(--faint); font-size: 10px; line-height: 1.8; }
.about-introduction { max-width: 820px; margin-bottom: 44px; }
.about-introduction p, .about-block-body p { color: var(--muted); font-size: 13px; line-height: 1.95; margin: 0 0 16px; }
.about-block { display: grid; grid-template-columns: 29% minmax(0, 1fr); gap: 42px; padding: 30px 0; border-top: 1px solid var(--line); }
.about-label { margin: 0 0 14px; color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.about-block h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; letter-spacing: -.025em; margin: 0; }
.skill-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 13px; }
.skill-list li { position: relative; color: var(--muted); font-size: 12px; line-height: 1.8; padding-left: 14px; }
.skill-list li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 700px) {
    .about-facts { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .about-block { grid-template-columns: 1fr; gap: 24px; padding: 27px 0; }
    .skill-list { grid-template-columns: 1fr; }
    .about-introduction { margin-bottom: 30px; }
}
@media (max-width: 900px) {
    .home-grid { grid-template-columns: 1fr; gap: 38px; }
    .avatar-panel { width: 100%; max-width: 400px; justify-self: center; }
    .avatar-stage { height: 360px; }
}
@media (max-width: 700px) {
    .lycoris-ornament { right: 0; width: 105px; }
}
@media (max-width: 1000px) {
    .identity-path { display: none; }
    .intro { gap: 35px; }
    .intro-manifesto { padding-left: 25px; }
    .manifesto-flower-name { left: 25px; }
}
@media (max-width: 700px) {
    .topbar { flex-wrap: wrap; gap: 18px; padding-bottom: 0; }
    .tools { width: 100%; justify-content: flex-end; gap: 20px; padding-top: 8px; border-top: 1px solid var(--line); }
    .identity { font-size: 12px; }
    main { padding-top: 35px; }
    .intro { grid-template-columns: 1fr; padding-bottom: 30px; gap: 28px; }
    .intro h1 { font-size: clamp(38px, 11vw, 64px); }
    .intro-description { font-size: 11px; margin-top: 22px; }
    .intro-manifesto { min-height: 250px; border-left: 0; border-top: 1px solid var(--line); padding: 0 0 6px; margin: 0; }
    .intro-flower { width: 260px; height: 175px; top: 0; right: 0; opacity: .48; }
    .manifesto-flower-name { left: 0; top: 24px; font-size: 10px; }
    .intro blockquote { font-size: 22px; }
    .contact-list { grid-template-columns: 1fr; gap: 12px; }
    .contact-card { padding: 20px; gap: 14px; }
}
@media (max-width: 380px) { #theme-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .theme-track, .theme-thumb, .theme-thumb svg, .language-track, .language-thumb, .language-option { transition: none; } }

.project-image-player { position: relative; z-index: 1; box-shadow: 0 6px 22px #0003; overflow: hidden; }
.project-game-link { display: inline-flex; align-items: center; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--line); color: var(--text); font-size: 11px; text-decoration: none; transition: border-color .2s, color .2s; }
.project-game-link:hover { border-color: var(--accent); color: var(--accent); }

/* Short, quiet movements; decorative elements stay still after the entrance. */
@media (prefers-reduced-motion: no-preference) {
    body { transition: background-color .3s, color .3s; }
    .intro-flower { animation: flower-arrival 1.4s ease-out .3s backwards; }
    .identity .symbol { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
    .identity:hover .symbol { transform: rotate(-12deg); }
    .intro-link, .project-game-link, .avatar-profile, .navigation-step,
    .project-category, .project-video-arrow { transition: color .2s, border-color .2s, background .2s, translate .25s; }
    .intro-link > span[aria-hidden], .navigation-icon, .contact-arrow,
    .contact-icon, .project-category svg { transition: transform .3s, color .2s, border-color .2s; }
    .intro-link:hover > span[aria-hidden] { transform: translate(3px, -3px); }
    .navigation a:hover .navigation-icon { transform: translateY(-2px); }
    .navigation a[aria-current] .navigation-icon { animation: selected-icon .35s ease-out; }
    .navigation-step:hover:not(:disabled), .project-game-link:hover { translate: 0 -2px; }
    .project-category:hover svg { transform: rotate(-8deg); }
    .project-video-arrow:hover:not(:disabled) { translate: 0 -2px; }
    .project-video-next:hover:not(:disabled) { translate: 0 2px; }
    .contact-card { transition: border-color .25s, background .25s, translate .3s, box-shadow .3s; }
    .contact-card:hover { translate: 0 -3px; box-shadow: 0 10px 24px #0001; }
    .contact-card:hover .contact-icon { transform: rotate(-5deg); border-color: var(--crimson); }
    .contact-card:hover .contact-arrow { transform: translate(2px, -2px); }
    .project-card, .avatar-panel { transition: border-color .3s; }
    .project-card:hover, .avatar-panel:hover { border-color: var(--crimson); }
    .project-image-player img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
    .project-image-player:hover img { transform: scale(1.015); }
    .footer-name { transition: color .2s; }
    .footer-name:hover { color: var(--accent); }
}
@keyframes flower-arrival { from { opacity: 0; } }
@keyframes selected-icon { from { transform: translateY(3px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.is-entering { overflow: hidden; }
.is-entering .topbar, .is-entering main, .is-entering .footer { opacity: 0; visibility: hidden; }
.is-entering body::before { opacity: 0; }
.entrance-overlay { position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; }
.entrance-flower { position: absolute; left: 0; bottom: 0; width: clamp(600px, 82vw, 1080px); aspect-ratio: 900 / 760; opacity: .85; }
.entrance-flower svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Shared accent strokes tie navigation to the quieter section dividers. */
.navigation a::after, .project-category::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .3s; }
.navigation a[aria-current]::after, .project-category[aria-selected="true"]::after { transform: scaleX(1); }
.project-category::after { left: 0; right: 0; }
.project-category-panel:has(.project-card--stacked) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 38px; align-items: start; }
.project-category-panel:has(.project-card--stacked) > .project-category-title { grid-column: 1 / -1; }
.project-card--stacked { display: flex; flex-direction: column; gap: 26px; padding: 0 0 30px; border-top: 0; border-bottom: 1px solid var(--line); }
.project-card--stacked .project-media { padding-block: 16px; }
.project-card--stacked .project-info { display: flex; flex-direction: column; height: auto; width: 100%; padding: 0 2px; overflow: visible; }
.project-card--stacked .project-title { font-size: 34px; }
.project-card--stacked .project-description { max-width: 54ch; }
.project-card--stacked .project-features { flex: auto; max-height: 260px; margin-top: 28px; }
.project-card--stacked .project-image-player { border: 1px solid var(--line); }
@media (max-width: 950px) {
    .project-category-panel:has(.project-card--stacked) { grid-template-columns: minmax(0, 1fr); }
    .project-card--stacked { max-width: 720px; }
}
@media (max-width: 700px) {
    .intro-name { font-size: 22px; margin-bottom: 18px; }
    .intro-description { font-size: 11px; max-width: 44ch; }
    .navigation { grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-bottom: 32px; }
    .navigation-links { gap: 3px; }
    .navigation a { min-height: 68px; padding: 12px 3px; }
    .navigation a::after { left: 6px; right: 6px; }
    .navigation-step { min-height: 32px; justify-content: flex-start; padding: 4px 8px; }
    #next-section { justify-content: flex-end; }
    .project-card { padding: 26px 0; gap: 24px; }
    .project-card--stacked { padding-top: 0; }
    .project-card--stacked .project-title { font-size: 30px; }
    .project-card--stacked .project-info { padding: 0; }
    .project-description, .project-feature-list li { font-size: 12px; }
    .project-categories { gap: 28px; }
    .project-category { padding: 12px 2px; }
    .project-meta { gap: 12px; }
    .contact-card { padding: 24px 4px; }
}

/* The animated flower is painted through the glyphs; the title remains real text. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    @media (prefers-reduced-motion: no-preference) {
        :is(h1, h2, h3, h4, h5, h6, .intro-name) {
            background-image: url('../assets/images/higanbana-title.svg'), linear-gradient(currentColor, currentColor);
            background-size: min(100%, 360px) auto, 100% 100%;
            background-position: left center, center;
            background-repeat: no-repeat;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        :is(h5, h6, .intro-name) { background-size: min(100%, 240px) auto, 100% 100%; }
        .intro h1 {
            background-image: url('../assets/images/higanbana-title.svg'), linear-gradient(to bottom, var(--text) 0%, var(--text) 48%, var(--muted) 52%, var(--muted) 100%);
            background-size: 100% auto, 100% 100%;
            background-position: center, center;
            background-repeat: no-repeat;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .intro h1 em { -webkit-text-fill-color: transparent; }
        :is(h1, h2, h3, h4, h5, h6, .intro-name)::selection, .intro h1 em::selection { -webkit-text-fill-color: var(--text); }
    }
}

@media (prefers-reduced-motion: no-preference) {
    body::before { background-image: url('../assets/images/higanbana-background.svg'); }
}

.system-preview { color: inherit; text-decoration: none; cursor: pointer; }
.system-preview-title { display: block; }
.system-preview .project-media { cursor: default; }
.system-preview .project-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.system-preview-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; color: var(--accent); font-size: 11px; }
.system-preview-action > span { font-size: 18px; }
.project-dialog-open { overflow: hidden; }
.project-dialog { width: min(1120px, calc(100% - 64px)); max-width: none; max-height: calc(100svh - 64px); margin: auto; padding: 0 32px 32px; color: var(--text); background: var(--background); border: 1px solid var(--line); box-shadow: 0 24px 100px #0006; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--crimson) transparent; }
.project-dialog::backdrop { background: #06050899; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.project-dialog-toolbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 18px; min-height: 76px; background: var(--background); border-bottom: 1px solid var(--line); }
.project-dialog-label { margin-right: auto; font-size: 9px; letter-spacing: .12em; color: var(--faint); }
.project-dialog-share, .project-dialog-close { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 11px; }
.project-dialog-close { width: 40px; padding: 8px; }
.project-dialog-toolbar button:hover { color: var(--accent); border-color: var(--accent); }
.project-dialog-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project-dialog-feedback { margin: 0; color: var(--accent); font-size: 11px; line-height: 1.7; }
.project-dialog-feedback:not(:empty) { margin-top: 16px; }
.project-share-link { display: block; width: 100%; margin-top: 12px; padding: 12px; color: var(--text); background: var(--button); border: 1px solid var(--line); }
.project-dialog .project-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: none; padding: 28px 0 0; margin: 0; border: 0; }
.project-dialog .project-heading { grid-column: 1 / -1; grid-row: auto; }
.project-dialog .project-title { font-size: clamp(28px, 3.5vw, 42px); }
.project-dialog .project-description { max-width: 80ch; }
.project-dialog .project-media { grid-row: auto; padding-block: 16px; }
.project-dialog .project-carousel:has(.project-carousel-navigation[hidden]) { grid-template-columns: minmax(0, 1fr); }
.project-dialog .project-info { display: block; height: auto; padding: 0; overflow: visible; }
.project-dialog .project-features { max-height: none; overflow: visible; margin-top: 0; padding-top: 24px; border: 0; border-top: 1px solid var(--line); scrollbar-gutter: auto; }
@media (max-width: 800px) {
    .project-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 0 20px 24px; }
    .project-dialog-toolbar { min-height: 68px; gap: 12px; }
    .project-dialog .project-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .project-dialog .project-features { padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .system-preview-action > span { transition: transform .25s; }
    .system-preview:hover .system-preview-action > span { transform: translate(3px, -3px); }
    .project-dialog[open] { animation: dialog-arrival .28s cubic-bezier(.22, 1, .36, 1); }
    .project-dialog::backdrop { animation: backdrop-arrival .28s ease-out; }
}
@keyframes dialog-arrival { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes backdrop-arrival { from { opacity: 0; } to { opacity: 1; } }

.entrance-name { position: absolute; top: calc(50% + 122px); left: 50%; width: min(82vw, 420px); margin: 0; transform: translateX(-50%); color: var(--text); }
.entrance-name svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 12px #cd718330); }
.entrance-name text { font-family: var(--serif); font-size: 56px; letter-spacing: -1px; fill: var(--text); fill-opacity: 0; stroke: var(--accent); stroke-width: .8; stroke-dasharray: 500; stroke-dashoffset: 500; stroke-linecap: round; stroke-linejoin: round; }
.entrance-name::after { content: ''; display: block; width: 64px; height: 1px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
    .motion-ready :where(.topbar, .intro-name, #page-title, .intro-description, .intro-link, .intro-manifesto, .navigation, .home-profile > h2, .home-profile > p, .about-introduction, .about-facts, .avatar-panel, .section-path, #section-title, #section-copy, .about-block, .contact-card, .project-categories, .project-category-title, .project-card, .footer):not([data-motion-state="visible"]):not(dialog *) { opacity: 0; }
}
