/* Review only: tighter display lettering, without changing body typography. */
.content-section h3 { letter-spacing:.04em; font-variant-ligatures:none; }
.menu-item { letter-spacing:.06em; font-variant-ligatures:none; }
/* All three strokes share one centre, independent of responsive button dimensions. */
.hamburger span { position:absolute; top:50%; left:0; width:100%; margin-top:-.5px; transform-origin:center; transition:transform .25s ease,opacity .2s ease; }
.hamburger span:nth-child(1) { transform:translateY(-7px); }
.hamburger span:nth-child(2) { transform:none; }
.hamburger span:nth-child(3) { transform:translateY(7px); }
.hamburger.open span:nth-child(1) { transform:rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg); }
@media(prefers-reduced-motion:reduce) { .hamburger span { transition:none; } }
.title-zero { font-size:.78em; vertical-align:.04em; }
@media(max-width:600px) { .header-left .back-short { font-size:0; }.header-left a::before { content:none; }.header-left .back-short::before { content:'«'; font-size:22px; line-height:1; }.header-left a { display:inline-flex; min-width:36px; min-height:36px; align-items:center; justify-content:center; } }

/* Translucent header with a stable contrast floor; a shared five-link footer. */
.header-fixed { background:rgba(16,17,23,.34); backdrop-filter:blur(16px) saturate(125%); -webkit-backdrop-filter:blur(16px) saturate(125%); }
.header-left a { display:inline-flex; align-items:center; gap:6px; min-height:44px; }
.back-chevrons { display:block; width:32px; height:26px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:square; stroke-linejoin:miter; }
.ryoshian-profiles { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; margin:28px auto; }
.ryoshian-profiles a { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; color:#fff; }
.ryoshian-profiles svg { width:22px; height:22px; fill:currentColor; }
.ryoshian-profiles a:focus-visible { outline:2px solid #99e5ff; outline-offset:3px; }
@media(max-width:600px) { .header-left .back-label { display:none; }.header-left a { min-width:44px; }.back-chevrons { width:34px; height:28px; } }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { .header-fixed { background:rgba(16,17,23,.78); } }
@media(prefers-reduced-transparency:reduce) { .header-fixed { background:#14141a; backdrop-filter:none; -webkit-backdrop-filter:none; } }

/* Equal edge insets and 44px centres for both navigation controls. */
.header-left { transform:translateY(-50%); }
.header-left a { padding:0; min-width:44px; height:44px; }
.header-left .back-chevrons { width:44px; height:28px; }
.header-right .hamburger { width:44px; height:44px; margin:0!important; align-items:center; }
.header-right .hamburger span { left:9.5px; width:25px; }
@media(max-width:600px) {
 .header-right .hamburger span { left:12px; width:20px; }
 .header-right { gap:8px; }
 .header-center { max-width:calc(100% - 208px); }
}
.header-fixed .header-left { left:20px; }
.header-fixed .header-right { right:20px; }
@media(max-width:600px) { .header-fixed .header-left { left:10px; }.header-fixed .header-right { right:10px; } }
.header-fixed .header-left,.header-fixed .header-right { grid-area:auto; }

.header-fixed { height:calc(80px + env(safe-area-inset-top,0px)); }
.header-fixed .header-left,.header-fixed .header-right,.header-fixed .header-center { top:calc(50% + env(safe-area-inset-top,0px)/2); }
.container { padding-top:calc(120px + env(safe-area-inset-top,0px)); }
.footer { padding-bottom:calc(40px + env(safe-area-inset-bottom,0px)); }
@media(max-width:600px) { .header-fixed { height:calc(90px + env(safe-area-inset-top,0px)); }.container { padding-top:calc(125px + env(safe-area-inset-top,0px)); } }

/* Keep blur off the viewport-edge element used by Safari's toolbar sampler. */
.header-fixed { background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; isolation:isolate; }
.header-fixed::before { content:""; position:absolute; inset:1px 0 0; z-index:-1; pointer-events:none; background:rgba(16,17,23,.34); backdrop-filter:blur(16px) saturate(125%); -webkit-backdrop-filter:blur(16px) saturate(125%); }
html { background-color:#141419; }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { .header-fixed::before { background:rgba(16,17,23,.78); } }
@media(prefers-reduced-transparency:reduce) { .header-fixed::before { background:#14141a; backdrop-filter:none; -webkit-backdrop-filter:none; } }

/* Fade the glass rather than ending it at a horizontal border. */
.header-fixed { border-bottom:0; }
.header-fixed::before { top:calc(-1 * env(safe-area-inset-top,0px)); bottom:-24px; background:linear-gradient(to bottom,rgba(0,0,0,.94),rgba(8,9,14,.65) 40%,rgba(16,17,23,.24) 72%,transparent); backdrop-filter:blur(12px) saturate(125%); -webkit-backdrop-filter:blur(12px) saturate(125%); mask-image:linear-gradient(#000 55%,transparent); -webkit-mask-image:linear-gradient(#000 55%,transparent); }

/* Closed navigation must not remain a viewport-sized composited surface. */
#menu-overlay:not(.show) { visibility:hidden; }
#menu-overlay.show { visibility:visible; overflow-y:auto; padding:80px 20px max(24px,env(safe-area-inset-bottom)); }
.menu-home-mark { display:flex; align-items:center; justify-content:center; flex:none; width:96px; height:96px; margin:8px auto 0; }
.menu-home-mark img { display:block; width:96px; height:96px; object-fit:contain; }
.menu-list { margin:0; }.menu-list li { margin:16px 0; }
.video-overlay { display:none; }
#bg-video { filter:brightness(.8); }
#about { line-height:1.65; margin-bottom:28px; }
#about h3 { margin-bottom:24px; }
#about h4 { margin-top:20px!important; margin-bottom:10px!important; font-size:1rem; }
#about .gfa-description { font-size:.9rem; line-height:1.65; max-width:440px; }
.about-home-mark { margin:20px auto; }
#about .about-role { margin-top:20px; margin-bottom:5px; font-size:.72rem; line-height:1.5; }
#about .about-name { font-size:1rem; line-height:1.5; }
.ryoshian-profiles { margin:16px auto; }.footer { margin-top:18px; }
.content-section { line-height:1.95; margin-bottom:82px; }
.content-section h3 { margin-bottom:38px; }.content-section h4 { margin-top:38px; margin-bottom:18px; }
@media(max-height:700px){ #menu-overlay.show { justify-content:flex-start; }.menu-list li { margin:10px 0; }.menu-home-mark,.menu-home-mark img { width:72px; height:72px; } }

/* No bright loading placeholder or close-fade compositing residue. */
body { position:relative; animation:none; }
.motion-backdrop { position:fixed; top:0; left:0; width:100%; height:100lvh; z-index:0; overflow:hidden; pointer-events:none; background:linear-gradient(#0003,#0003),url("/review-assets/ryoshian-video-start.webp") center/cover no-repeat; }
#bg-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:auto; filter:brightness(.8); transform:none; }
#menu-overlay { transition:none; }
#menu-overlay:not(.show) { display:none; }
#menu-overlay.show { display:flex; }
@media(prefers-reduced-motion:reduce) { #bg-video { display:block; } }
/* A black canvas and edge fade avoid exposing a gray fallback beneath the video. */
html,body { background-color:#000; }
.header-fixed::before { top:calc(-1 * env(safe-area-inset-top,0px)); bottom:-40px; background:linear-gradient(to bottom,#000,rgba(0,0,0,.92) 35%,rgba(0,0,0,.48) 65%,transparent); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); mask-image:linear-gradient(#000 40%,transparent); -webkit-mask-image:linear-gradient(#000 40%,transparent); }

/* Explicit background/content ordering avoids negative composited video layers. */
body { isolation:isolate; }

/* Keep the still above the video until a decoded frame reaches the compositor. */
#bg-video { opacity:1; }
.motion-backdrop::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(#0003,#0003),url("/review-assets/ryoshian-video-start.webp") center/cover no-repeat; opacity:1; transition:opacity .3s ease; }
.motion-backdrop.video-playing::after { opacity:0; }
.motion-backdrop.video-settled::after { display:none; }
@media(prefers-reduced-motion:reduce) { .motion-backdrop::after { transition:none; } }

/* Viewport-edge fade sits above the fixed video, below the z=1 content. */
body::after {
 content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
 background-image:
  linear-gradient(to bottom,#000 0%,rgba(0,0,0,.94) 14%,rgba(0,0,0,.68) 38%,rgba(0,0,0,.28) 70%,transparent 100%),
  linear-gradient(to top,#000 0%,rgba(0,0,0,.94) 14%,rgba(0,0,0,.68) 38%,rgba(0,0,0,.28) 70%,transparent 100%);
 background-size:100% 96px,100% 96px;
 background-position:center top,center bottom;
 background-repeat:no-repeat;
}

/* Lighter header treatment; the independent background edge fade stays intact. */
.header-fixed::before { background:linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.55) 35%,rgba(0,0,0,.2) 65%,transparent); }
.container { padding-bottom:max(12px,env(safe-area-inset-bottom,0px)); }
.footer { padding-bottom:0; font-family:'Shippori Mincho',serif; font-size:.7rem; font-weight:400; line-height:1.6; color:#444; }

.footer { color:#aaa; }

/* Rotate the entire background surface, including its first-frame still. */
@media(min-width:1024px) {
 .motion-backdrop { top:50%; left:50%; width:100lvh; height:100vw; transform:translate(-50%,-50%) rotate(-90deg); }
}
