:root {
  --color-primary: #002d80;
  --color-accent: #543ef9;
  --color-on-accent: var(--color-surface);
  --color-section-label-text: #002d80;
  --color-section-label-bg: #d2f42a;
  --color-surface: #f4f3ee;
  --color-text: var(--color-primary);
  --paper: var(--color-surface);
  --ink: var(--color-text);
  --navy: var(--color-primary);
  --navy-bright: #174b9b;
  --line: rgba(8, 36, 95, 0.34);
  --decorative-font: "Orbitron", sans-serif;
  --script-font: "Mrs Saint Delafield", cursive;
  --jp-font: "LINE Seed JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono-font: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-size-body: 13px;
  --font-size-decoration: calc(var(--font-size-body) - 3px);
  --line-height-body: 2;
  --line-height-heading: 1.38;
  --line-height-display: .75;
  --line-height-name: .8;
  --line-height-decorative: .72;
  --line-height-label: 1;
  --line-height-control: 1.4;
  --line-height-dev-ui: 1.35;
  --tracking-body: .02em;
  --tracking-label: .02em;
  --tracking-nav: .02em;
  --tracking-display: .02em;
  --tracking-decorative: .02em;
  --noise-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' seed='8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.045' filter='url(%23n)'/%3E%3C/svg%3E");
  --navy-surface-color: var(--navy);
  --navy-surface-image: var(--noise-texture);
  --navy-surface-size: 120px 120px;
  --accent: var(--color-accent);
  --profile-dither-height: 190px;
  --profile-dither-overscan: 3px;
  --profile-peek: clamp(120px, 14vh, 170px);
  --corner-graphic-size: clamp(56px, 6.6vw, 96px);
  --content-gutter: clamp(40px, 4.5vw, 72px);
  --content-max-width: 1440px;
  --detail-frame-width: clamp(128px, 18vw, 320px);
  --detail-frame-ratio: 4 / 3;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--jp-font); overflow-x: hidden; }
.inline-mono, .is-mono { font-family: var(--mono-font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { color: white; background: var(--navy-bright); }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; color: white; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.hero { position: relative; min-height: 860px; height: 100svh; max-height: 1060px; overflow: hidden; background: var(--paper); isolation: isolate; }
.hero__texture { position: absolute; z-index: -2; inset: 0; opacity: .7; background-image: linear-gradient(rgba(8,26,58,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(8,26,58,.045) 1px, transparent 1px), radial-gradient(circle, rgba(8,26,58,.19) 1px, transparent 1.5px); background-position: 0 0, 0 0, 6px 6px; background-size: 48px 48px, 48px 48px, 12px 12px; mask-image: linear-gradient(90deg, black, transparent 50%, black); }
.hero h1 { margin: 0; }
.detail { position: absolute; z-index: 6; margin: 0; overflow: visible; border: 5px solid var(--paper); outline: 1px solid var(--navy); background: var(--paper); box-shadow: 10px 10px 0 rgba(8,36,95,.12); }
.detail__viewport { position: absolute; inset: 0; display: block; overflow: hidden; }
.detail img { position: absolute; top: 50%; left: 50%; width: 100%; height: auto; max-width: none; transform: translate3d(0, var(--detail-parallax-y, 0px), 0) scale(3.25) translate3d(var(--detail-focus-x), var(--detail-focus-y), 0); transform-origin: 0 0; }
.detail figcaption { position: absolute; right: 0; bottom: -22px; font-size: 14px; font-weight: 600; letter-spacing: var(--tracking-label); }
.section-shell { margin: 0 auto; }

.profile { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 860px; color: white; background: var(--ink); }
.profile__visual { position: relative; min-height: 860px; overflow: hidden; background: #e8e7e2; }
.profile__figure { position: absolute; z-index: 2; top: 1%; left: 15%; width: 71%; max-width: none; }
.profile__content { padding: 112px clamp(48px, 6vw, 105px); }
.profile__name { display: flex; align-items: end; gap: 20px; margin: 0 0 42px; }
.profile__name span { font-family: var(--decorative-font); font-size: clamp(78px, 8vw, 130px); font-weight: 500; line-height: var(--line-height-name); letter-spacing: var(--tracking-display); }
.profile__name small { padding-bottom: 5px; font-size: 14px; font-weight: 500; letter-spacing: var(--tracking-label); }
.profile__intro { max-width: 560px; margin-bottom: 55px; font-size: var(--font-size-body); line-height: var(--line-height-body); letter-spacing: var(--tracking-body); }
.profile__facts { display: grid; gap: 0; margin: 0; }
.profile__facts div { display: grid; grid-template-columns: 110px 1fr; padding: 6px 0; border: 0; }
.profile__facts dt { color: rgba(255,255,255,.55); font-size: var(--font-size-body); line-height: var(--line-height-body); letter-spacing: var(--tracking-label); }.profile__facts dd { margin: 0; font-size: var(--font-size-body); line-height: var(--line-height-body); letter-spacing: var(--tracking-body); }

.streams { padding: 155px 0 175px; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; column-gap: 10%; margin-bottom: 80px; }
.section-heading h2 { margin: 24px 0 0; font-family: var(--decorative-font); font-size: clamp(45px, 5vw, 76px); font-weight: 500; line-height: var(--line-height-heading); letter-spacing: var(--tracking-display); }
.stream-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 28px; }
.stream-card h3 { margin: 16px 0 0; font-family: var(--jp-font); font-size: var(--font-size-body); font-weight: 500; line-height: var(--line-height-body); }
.stream-card h3.is-mono { font-family: var(--mono-font); }

.links { padding: 155px 0; }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 0; }

@media (max-width: 1050px) {
  .profile { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 760px) {
  .profile { display: block; }
  .profile__figure { left: 13%; }
  .profile__name { margin-top: 0; }
  .profile__name span { font-size: 88px; }
  .profile__facts div { grid-template-columns: 84px 1fr; }
  .stream-card { margin-bottom: 52px; }
}

/* Minimal KV and direct information hierarchy */
.hero--minimal { min-height: 720px; height: min(100svh, 900px); max-height: none; overflow: hidden; background: var(--paper); }
.hero--minimal .hero__texture { opacity: .62; mask-image: linear-gradient(to bottom, black, black 68%, transparent 100%); }
.hero__logo { position: absolute; z-index: 8; right: 0; bottom: 8px; left: 0; margin: 0; color: white; font-family: var(--decorative-font); font-size: clamp(184px, calc(18vw + 72px), 332px); font-weight: 400; line-height: var(--line-height-display); letter-spacing: var(--tracking-display); text-align: center; }

.profile { min-height: 940px; }
.profile__visual { min-height: 940px; }
.profile__figure { top: 25px; bottom: 25px; left: 50%; width: auto; height: calc(100% - 50px); max-width: 86%; object-fit: contain; transform: translateX(-50%); }
.profile__content { display: flex; flex-direction: column; justify-content: center; }
.section-heading { display: block; }
.section-heading h2 { font-family: var(--decorative-font); letter-spacing: var(--tracking-display); }

/* Fixed poster frame: only the inner canvas scrolls. */
html, body { width: 100%; height: 100%; }
body { overflow: hidden; background: var(--navy); }
.site-shell { position: fixed; z-index: 1; inset: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.72); background: var(--paper); box-shadow: 0 16px 54px rgba(8,36,95,.28); }
.site-scroll { width: 100%; height: 100%; overflow-x: clip; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); scrollbar-gutter: stable; }
.site-scroll:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 6px #fff; }
.hero--minimal { min-height: calc(100dvh - 44px); }
.hero--minimal .hero__texture { z-index: 0; opacity: .48; background-image: radial-gradient(circle, rgba(8,26,58,.28) 1px, transparent 1px); background-position: 0 0; background-size: 19px 19px; mask-image: linear-gradient(to bottom, black, black 70%, transparent 96%); }
.hero--minimal .detail { z-index: 7; }
.hero__logo { z-index: 8; }

.profile { width: 100%; min-height: 940px; color: white; background-color: var(--navy-surface-color); background-image: var(--navy-surface-image); background-size: var(--navy-surface-size); }
.profile__visual { min-height: 940px; background: var(--navy); border: 0; }
.profile__figure { top: 28px; bottom: 28px; height: calc(100% - 56px); max-width: 86%; }
.profile__content { padding-top: 100px; padding-bottom: 100px; }
.profile__intro { max-width: 520px; margin-bottom: 32px; font-family: var(--jp-font); font-size: var(--font-size-body); line-height: var(--line-height-body); }
.profile__facts div { grid-template-columns: 120px 1fr; padding: 6px 0; }
.profile__credits { margin-top: 28px; }
.profile__credits p { display: flex; justify-content: space-between; margin: 0; padding: 9px 0; border: 0; font-size: var(--font-size-body); line-height: var(--line-height-body); letter-spacing: var(--tracking-label); }
.profile__credits b { font-weight: 500; }

.streams { padding-top: 120px; padding-bottom: 130px; }
.stream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.links { padding-top: 120px; padding-bottom: 100px; }
.link-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 760px) {
  .site-shell { inset: 8px; }
  .site-scroll { scrollbar-gutter: auto; }
  .hero--minimal { min-height: calc(100dvh - 16px); height: calc(100dvh - 16px); }
  .hero--minimal .hero__texture { background-size: 17px 17px; }
  .profile { min-height: 0; }
  .profile__visual { min-height: 720px; border: 0; }
  .profile__figure { top: 22px; bottom: 22px; height: calc(100% - 44px); max-width: 94%; }
  .profile__content { padding: 76px 24px 82px; }
  .stream-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
  .link-grid { grid-template-columns: 1fr; }
}

/* Poster frame navigation and closer hero revision. */
body { background: var(--paper); }
.frame-nav { position: fixed; z-index: 60; top: 0; right: 12px; left: 12px; display: flex; height: 44px; align-items: center; justify-content: space-between; color: var(--navy); font-family: var(--decorative-font); font-size: var(--font-size-body); letter-spacing: var(--tracking-nav); pointer-events: none; }
.frame-nav > div { display: flex; height: 100%; align-items: center; gap: 4px; }
.frame-nav a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; pointer-events: auto; }
.frame-nav a:hover { color: var(--navy); background: transparent; box-shadow: none; opacity: .62; }
.frame-nav a:focus-visible { color: var(--navy); background: transparent; box-shadow: none; outline: 2px solid var(--navy); outline-offset: -4px; }
.corner-type { position: fixed; z-index: 0; color: var(--navy); font-family: var(--decorative-font); font-size: var(--corner-graphic-size); line-height: var(--line-height-decorative); letter-spacing: var(--tracking-decorative); pointer-events: none; white-space: nowrap; }
.corner-type--tl { top: -10px; left: -12px; }
.corner-type--br { right: -.22em; bottom: -.12em; letter-spacing: var(--tracking-decorative); }
.frame-footer { position: fixed; z-index: 50; right: 44px; bottom: 0; left: 44px; display: flex; height: 44px; align-items: center; justify-content: flex-start; padding: 0; color: var(--navy); font-family: var(--mono-font); font-size: var(--font-size-body); line-height: var(--line-height-body); letter-spacing: var(--tracking-body); pointer-events: none; }
.frame-nav { justify-content: flex-end; }
.frame-nav > div { margin-right: 32px; }
.frame-nav > div a:last-child { padding-right: 0; }
.frame-nav__socials { display: flex; height: 100%; align-items: center; gap: 4px; margin-left: 8px; }
.frame-nav__socials a, .frame-nav__social { position: relative; display: inline-flex; width: 44px; min-width: 44px; height: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0; }
.frame-nav__socials svg { width: 28px; height: 28px; fill: currentColor; }
.frame-nav__twitch { display: block; width: 28px; height: 28px; fill: currentColor; }
.frame-nav__socials .social-icon__knockout { fill: var(--paper); }
.frame-nav__social--inactive { color: var(--navy); opacity: 1; pointer-events: none; }
.site-shell { inset: 44px; border-color: rgba(8,36,95,.64); box-shadow: none; }
.content-backdrop { position: absolute; z-index: 0; inset: 0; overflow: hidden; background-color: var(--paper); background-image: radial-gradient(circle, rgba(8,36,95,.08) 0 .7px, transparent .8px); background-size: 9px 9px; pointer-events: none; }
.content-character { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.content-character img { position: absolute; top: 94px; left: 50%; width: auto; height: 214.8%; max-width: none; transform: translateX(-50%); }
.site-scroll { position: relative; z-index: 3; background: transparent; scroll-padding-top: 60px; scroll-padding-bottom: 60px; }
.section-shell { width: min(1320px, calc(100% - var(--content-gutter) - var(--content-gutter))); }
.hero__logo, .section-heading h2 { font-family: var(--decorative-font); }
.profile.section-shell { display: block; width: 100%; max-width: none; margin: 0; padding: 100px var(--content-gutter) 80px; }
.profile__inner { display: grid; width: 100%; max-width: var(--content-max-width); grid-template-columns: 1.05fr 1fr; align-items: center; margin-inline: auto; }
.profile__content { padding-right: clamp(28px, 3vw, 52px); padding-left: clamp(28px, 3vw, 52px); }

.hero--minimal { height: calc(100dvh - 88px - var(--profile-peek)); min-height: calc(100dvh - 88px - var(--profile-peek)); background: transparent; isolation: auto; }
.hero--minimal .hero__texture { display: none; }
.hero-hud { --hero-rail-half-width: 5px; position: absolute; z-index: 5; inset: clamp(20px, 2.5vw, 40px); color: var(--navy); font-family: var(--mono-font); font-size: var(--font-size-decoration); line-height: var(--line-height-label); letter-spacing: .12em; pointer-events: none; }
.hero-hud__rail { position: absolute; top: calc(var(--hero-rail-half-width) * -1); left: calc(var(--hero-rail-half-width) * -1); display: flex; align-items: flex-start; gap: 16px; transform: rotate(180deg); transform-origin: center; writing-mode: vertical-rl; text-orientation: sideways; white-space: nowrap; font-weight: 500; }
.hero-hud__rail b { font-weight: inherit; }
.hero-hud__qr { position: absolute; bottom: calc(var(--hero-rail-half-width) * -1); left: calc(var(--hero-rail-half-width) * -1); width: clamp(78px, 7vw, 106px); transform: translate(-9.677419%, 9.677419%); }
.hero-hud__qr img { width: 100%; height: auto; }
.hero__logo { z-index: 1; top: calc(26% - 48px); right: auto; bottom: auto; left: 50%; width: max-content; color: var(--navy); background: none; filter: blur(var(--hero-title-blur, 0px)); opacity: var(--hero-title-opacity, 1); -webkit-text-stroke: 0; text-shadow: none; transform: translate(-50%, -50%); text-align: center; will-change: filter, opacity; }
.hero__logo-copy { position: absolute; z-index: 1; top: 58%; left: 50%; color: var(--color-section-label-bg); font-family: var(--script-font); font-size: clamp(56px, 8vw, 112px); font-weight: 400; line-height: var(--line-height-label); letter-spacing: .01em; transform: translate(-50%, -50%) rotate(-7deg); white-space: nowrap; }
.section-heading { margin: 0 auto 64px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.7vw, 50px); font-weight: 400; letter-spacing: var(--tracking-nav); }
.section-heading--light { color: #fff; }
.section-heading__label { display: block; width: fit-content; margin: 0 auto; padding: 0 2px; color: var(--color-section-label-text); background: var(--color-section-label-bg); font-size: 14px; font-weight: 600; line-height: var(--line-height-label); letter-spacing: var(--tracking-body); }
.profile { z-index: auto; isolation: auto; }
.profile { overflow: hidden; box-shadow: inset 0 2px 0 var(--accent); }
.profile-dither { position: absolute; z-index: 5; left: calc(0px - var(--profile-dither-overscan)); width: calc(100% + var(--profile-dither-overscan) + var(--profile-dither-overscan)); height: calc(var(--profile-dither-height) + var(--profile-dither-overscan)); background-color: var(--accent); -webkit-mask-image: url("./public/assets/profile-dither-mask.svg"); -webkit-mask-repeat: no-repeat; -webkit-mask-position: top center; -webkit-mask-size: 100% 100%; mask-image: url("./public/assets/profile-dither-mask.svg"); mask-repeat: no-repeat; mask-position: top center; mask-size: 100% 100%; pointer-events: none; }
.profile-dither--top { top: calc(0px - var(--profile-dither-overscan)); }
.profile-dither--bottom { bottom: calc(0px - var(--profile-dither-overscan)); transform: scaleY(-1); }
.profile > :not(.profile-dither) { position: relative; z-index: 6; }
.profile > .section-heading { top: 0; width: 100%; max-width: var(--content-max-width); margin-inline: auto; margin-bottom: 16px; padding-top: 0; }
.hero--minimal .detail { border-width: 3px; box-shadow: none; }
.hero--minimal .detail::after { position: absolute; right: -1px; bottom: -20px; color: var(--navy); font-family: var(--mono-font); font-size: var(--font-size-decoration); line-height: var(--line-height-label); letter-spacing: .12em; }
.hero--minimal .detail--hand-left::after { content: "DETAIL 01"; }
.hero--minimal .detail--hand-right::after { content: "DETAIL 02"; }
.hero--minimal .detail--ornament::after { content: "DETAIL 03"; }
.hero--minimal .detail { width: var(--detail-frame-width); aspect-ratio: var(--detail-frame-ratio); }
.hero--minimal .detail--hand-left { top: auto; right: auto; bottom: calc(24% + 24px); left: 11%; }
.detail--hand-left img { --detail-focus-x: -13%; --detail-focus-y: -49%; }
.hero--minimal .detail--hand-right { top: calc(20% - 24px); right: 11%; bottom: auto; left: auto; }
.detail--hand-right img { --detail-focus-x: -65%; --detail-focus-y: -12%; }
.hero--minimal .detail--ornament { right: 14%; bottom: calc(10% + 24px); left: auto; }
.detail--ornament img { --detail-focus-x: -63%; --detail-focus-y: -40%; }

.credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile__credits .credit-grid p { min-height: 74px; align-items: center; flex-direction: row; justify-content: space-between; gap: 12px; padding: 13px; border: 0; }
.profile__credits .credit-grid p span { color: rgba(255,255,255,.55); font-size: var(--font-size-body); text-transform: uppercase; }
.profile__credits .credit-grid p b { margin-top: 0; font-family: var(--mono-font); font-size: var(--font-size-body); }

.video-player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.link-card { position: relative; }

.profile { isolation: auto; }
.profile__visual { min-height: 780px; background: transparent; }
.profile__figure { top: 1.6%; bottom: auto; height: 96.8%; max-width: 76%; }
.profile__fanart { display: grid; width: 100%; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 18px; color: var(--color-surface); border: 1px solid var(--color-accent); background-color: var(--navy-surface-color); background-image: var(--navy-surface-image); background-size: var(--navy-surface-size); }
.profile__fanart span { color: var(--color-surface); font-size: var(--font-size-body); line-height: var(--line-height-body); letter-spacing: var(--tracking-label); }
.profile__fanart strong { color: var(--color-surface); font-size: var(--font-size-body); font-weight: 500; line-height: var(--line-height-body); letter-spacing: var(--tracking-body); }
.profile__credits .credit-grid { gap: 24px; }
.profile__credits .credit-grid p { min-height: 62px; padding: 8px 0; border: 0; }

.link-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(36px, 5vw, 72px); border: 0; }
.link-grid .link-card { display: flex; min-height: 190px; flex: 0 1 calc(25% - 54px); align-items: center; flex-direction: column; justify-content: center; gap: 26px; padding: 16px 0; border: 0; background: transparent; text-align: center; }
.link-card__logo { display: flex; width: min(190px, 88%); height: 64px; align-items: center; justify-content: center; }
.link-card__logo img { width: auto; height: auto; max-width: var(--link-logo-width, 150px); max-height: var(--link-logo-height, 46px); object-fit: contain; }
.link-card--youtube { --link-logo-width: 132px; --link-logo-height: 38px; }
.link-card--x { --link-logo-width: 52px; --link-logo-height: 52px; }
.link-card--discord { --link-logo-width: 66px; --link-logo-height: 50px; }
.link-card--tiktok { --link-logo-width: 180px; --link-logo-height: 54px; }
.link-card--instagram { --link-logo-width: 52px; --link-logo-height: 52px; }
.link-card--booth { --link-logo-width: 142px; --link-logo-height: 44px; }
.link-card--pixiv { --link-logo-width: 148px; --link-logo-height: 48px; }
.link-card--twitch { --link-logo-width: 150px; --link-logo-height: 46px; }
.link-card__name { color: var(--ink); font-family: var(--mono-font); font-size: 28px; font-weight: 600; line-height: var(--line-height-label); letter-spacing: var(--tracking-body); }
.link-grid .link-card > span:last-child { color: rgba(8,36,95,.62); font-family: var(--mono-font); font-size: var(--font-size-body); font-weight: 400; line-height: var(--line-height-body); letter-spacing: var(--tracking-body); }
.link-grid a.link-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }

.profile { position: relative; }
.streams, .links { position: relative; z-index: 3; }
.streams, .links { background: var(--paper); }
.streams.section-shell, .links.section-shell { width: 100%; max-width: none; padding-right: var(--content-gutter); padding-left: var(--content-gutter); }
.streams > .section-heading, .streams > .stream-grid, .links > .section-heading, .links > .link-grid { width: 100%; max-width: var(--content-max-width); margin-inline: auto; }
.contact-band { --contact-panel-width: min(1040px, calc(100% - var(--content-gutter) - var(--content-gutter))); --contact-panel-height: min(560px, calc(100% - var(--content-gutter) - var(--content-gutter) - 16px)); position: relative; z-index: 3; height: calc(100dvh - 88px); min-height: calc(100dvh - 88px); overflow: hidden; color: white; background: transparent; }
.contact-band__overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-primary) 72%, transparent); background-image: var(--noise-texture); background-size: 120px 120px; }
.contact-band__content { position: relative; z-index: 2; display: flex; width: 100%; max-width: var(--content-max-width); height: 100%; align-items: center; justify-content: center; margin-inline: auto; padding: var(--content-gutter); }
.contact-band__panel { position: relative; display: flex; width: var(--contact-panel-width); height: var(--contact-panel-height); min-height: var(--contact-panel-height); align-items: center; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(48px, 7vw, 96px) var(--content-gutter); border: 1px solid rgba(255,255,255,.72); background: color-mix(in srgb, var(--color-primary) 42%, transparent); }
.contact-band__dots { position: absolute; z-index: 1; inset: 0; background-image: radial-gradient(circle, rgba(8,36,95,.24) 0 .65px, transparent .75px); background-size: 9px 9px; mix-blend-mode: multiply; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc((100% - var(--contact-panel-height)) / 2) no-repeat, linear-gradient(#000 0 0) bottom / 100% calc((100% - var(--contact-panel-height)) / 2) no-repeat, linear-gradient(#000 0 0) left center / calc((100% - var(--contact-panel-width)) / 2) var(--contact-panel-height) no-repeat, linear-gradient(#000 0 0) right center / calc((100% - var(--contact-panel-width)) / 2) var(--contact-panel-height) no-repeat; mask: linear-gradient(#000 0 0) top / 100% calc((100% - var(--contact-panel-height)) / 2) no-repeat, linear-gradient(#000 0 0) bottom / 100% calc((100% - var(--contact-panel-height)) / 2) no-repeat, linear-gradient(#000 0 0) left center / calc((100% - var(--contact-panel-width)) / 2) var(--contact-panel-height) no-repeat, linear-gradient(#000 0 0) right center / calc((100% - var(--contact-panel-width)) / 2) var(--contact-panel-height) no-repeat; }
.contact-band .section-heading { margin-bottom: 28px; }
.contact-band__message { margin: 0 0 26px; font-family: var(--jp-font); font-size: var(--font-size-body); line-height: var(--line-height-body); letter-spacing: var(--tracking-body); text-align: center; }
.contact-band__message span { display: block; }
.contact-band__cta { display: flex; width: fit-content; min-width: min(320px, 100%); min-height: 56px; align-items: center; justify-content: center; margin: 0 auto; padding: 16px 28px; color: white; border: 0; background: var(--navy); font-family: var(--jp-font); font-size: 14px; font-weight: 600; line-height: var(--line-height-control); letter-spacing: var(--tracking-label); text-align: center; }
.contact-band__cta:hover, .contact-band__cta:focus-visible { color: var(--color-primary); background: var(--color-section-label-bg); }
.contact-band__cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 1050px) and (min-width: 761px) {
  .profile__inner { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 760px) {
  :root { --content-gutter: 20px; --page: calc(100% - 40px); --corner-graphic-size: 34px; --profile-dither-height: 160px; --profile-peek: clamp(80px, 12vh, 110px); }
  .site-shell { inset: 32px; }
  .frame-nav { top: 0; right: 6px; bottom: auto; left: 6px; height: 32px; }
  .frame-nav > div { margin-right: 0; }
  .corner-type--tl { top: -2px; left: -3px; }
  .corner-type--br { right: -.22em; bottom: -.12em; }
  .frame-footer { right: 32px; left: 32px; height: 32px; padding: 0; font-size: var(--font-size-body); }
  .frame-nav > div { width: 100%; margin-left: auto; justify-content: flex-end; }
  .frame-nav a { min-height: 32px; padding: 0 5px; }
  .frame-nav__cluster > a { min-width: 0; padding-right: 1px; padding-left: 1px; }
  .frame-nav__socials { margin-left: 2px; }
  .frame-nav__socials a, .frame-nav__social { width: 44px; min-width: 44px; height: 32px; min-height: 32px; }
  .frame-nav__socials a::before, .frame-nav__social::before { position: absolute; inset: -6px 0; content: ""; }
  .frame-nav__socials svg { width: 24px; height: 24px; }
  .frame-nav__twitch { width: 24px; height: 24px; }
  .hero--minimal { min-height: calc(100dvh - 64px - var(--profile-peek)); height: calc(100dvh - 64px - var(--profile-peek)); }
  .hero-hud { inset: 12px; }
  .hero-hud__rail { top: calc(4px - var(--hero-rail-half-width)); left: calc(4px - var(--hero-rail-half-width)); gap: 10px; }
  .hero-hud__qr { bottom: calc(4px - var(--hero-rail-half-width)); left: calc(4px - var(--hero-rail-half-width)); width: 74px; }
  .hero--minimal .detail::after { bottom: -17px; font-size: var(--font-size-decoration); }
  .content-character img { top: 70px; height: 201.6%; }
  .hero__logo { top: calc(24% - 48px); left: 50%; bottom: auto; width: max-content; font-size: 160px; letter-spacing: var(--tracking-display); transform: translate(-50%, -50%); }
  .hero__logo-copy { top: 60%; font-size: 54px; }
  .hero--minimal .detail--hand-left { bottom: calc(25% + 24px); left: 8%; }
  .hero--minimal .detail--hand-right { top: calc(21% - 24px); right: 8%; }
  .hero--minimal .detail--ornament { right: 10%; bottom: calc(7% + 24px); display: block; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2 { font-size: 26px; }
  .profile > .section-heading { top: 0; margin-bottom: 8px; padding-top: 0; }
  .credit-grid { grid-template-columns: 1fr; }
  .profile.section-shell { padding: 36px var(--content-gutter) 56px; }
  .profile__inner { display: block; }
  .profile__content { padding: 76px 0 82px; }
  .profile__visual { min-height: 620px; }
  .profile__figure { top: 11%; height: 78%; max-width: 82%; }
  .profile__credits .credit-grid p { min-width: 0; align-items: flex-start; flex-direction: column; }
  .profile__credits .credit-grid p b { margin-top: 6px; }
  .link-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
  .link-grid .link-card { min-height: 150px; gap: 22px; }
  .link-card__logo { width: min(190px, 86%); height: 58px; }
  .contact-band { --contact-panel-height: min(520px, calc(100% - var(--content-gutter) - var(--content-gutter) - 8px)); height: calc(100dvh - 64px); min-height: calc(100dvh - 64px); }
  .contact-band__content { padding: var(--content-gutter); }
  .contact-band__panel { padding: 44px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail { --detail-parallax-y: 0px !important; }
}

.palette-dev { position: fixed; z-index: 1000; right: 12px; bottom: 12px; width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--color-primary); border: 1px solid var(--color-primary); background: var(--color-surface); font-family: var(--mono-font); font-size: 14px; line-height: var(--line-height-dev-ui); }
.palette-dev__header { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 12px; background: var(--color-surface); }
.palette-dev button, .palette-dev input, .palette-dev select { color: inherit; font: inherit; }
.palette-dev button, .palette-dev select, .palette-dev input[type="text"] { min-height: 44px; border: 1px solid currentColor; background: var(--color-surface); }
.palette-dev button { padding: 8px 10px; cursor: pointer; }
.palette-dev button:focus-visible, .palette-dev input:focus-visible, .palette-dev select:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.palette-dev[data-collapsed="true"] .palette-dev__body { display: none; }
.palette-dev__body { padding: 12px; border-top: 1px solid var(--color-primary); }
.palette-dev__colors { display: grid; gap: 8px; }
.palette-dev__color { display: grid; grid-template-columns: 72px 44px 1fr; align-items: center; gap: 8px; }
.palette-dev__color input[type="color"] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--color-primary); background: var(--color-surface); }
.palette-dev__color input[type="text"] { width: 100%; padding: 8px; text-transform: uppercase; }
.palette-dev__hsl { display: grid; gap: 8px; margin: 14px 0; padding: 10px; border: 1px solid var(--color-primary); }
.palette-dev__hsl label { display: grid; grid-template-columns: 44px 1fr 48px; align-items: center; gap: 8px; }
.palette-dev__hsl label:first-of-type { grid-template-columns: 72px 1fr; }
.palette-dev__hsl select { padding: 6px; }
.palette-dev__hsl input[type="range"] { width: 100%; }
.palette-dev__hsl output { text-align: right; }
.palette-dev__contrast { display: grid; gap: 4px; margin: 12px 0; }
.palette-dev__contrast div { display: flex; justify-content: space-between; gap: 12px; }
.palette-dev__contrast [data-pass="true"] strong { color: #146b3a; }
.palette-dev__contrast [data-pass="false"] strong { color: #a12626; }
.palette-dev__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.palette-dev__status { min-height: 19px; margin: 8px 0 0; }

@media (max-width: 480px) {
  .palette-dev { right: 6px; bottom: 6px; width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
}
