html.contact-open:has(#bio-screen[open]){scrollbar-gutter:auto}
#bio-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e8eff9;
  color: #253247;
  color-scheme: light;
}

#bio-screen::backdrop { background: #211c24; }
#bio-screen [hidden] { display: none !important; }

.bio-room-architecture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 60%, #fffdf5 0 14%, transparent 56%),
    linear-gradient(164deg,#a8c1df 0%,#c7d7e9 25%,#edf2fb 47%,#f7e7e5 73%,#dfe6f4 100%);
}

.bio-room-architecture i { position: absolute; inset: 0; }
.bio-room-architecture i:nth-child(1) {
  inset:-12% -10% 12%;
  background:
    radial-gradient(ellipse at 20% 42%,#fffdfbeb 0 9%,transparent 35%),
    radial-gradient(ellipse at 46% 49%,#fffdfbbf 0 9%,transparent 36%),
    radial-gradient(ellipse at 87% 61%,#fffbf3de 0 7%,transparent 33%);
  filter:blur(19px);
}
.bio-room-architecture i:nth-child(2) {
  inset:10% -7% -12%;
  background:
    radial-gradient(ellipse at 7% 77%,#fffafcf5 0 8%,transparent 31%),
    radial-gradient(ellipse at 64% 85%,#fffcf7 0 7%,transparent 33%),
    radial-gradient(ellipse at 100% 68%,#fffcf6e0 0 6%,transparent 26%);
  filter:blur(25px);
}
.bio-room-architecture i:nth-child(3) {
  background:linear-gradient(114deg,transparent 27%,#fff9ed31 38%,transparent 57%,#fff9ed3d 58%,transparent 65%);
}
.bio-room-architecture i:nth-child(4) {
  inset:0;
  opacity:.47;
  background:radial-gradient(circle at 29% 22%,#fff 0 1px,transparent 2px),
             radial-gradient(circle at 76% 16%,#fff 0 1px,transparent 2px),
             radial-gradient(circle at 91% 36%,#fff 0 1px,transparent 2px),
             radial-gradient(circle at 10% 64%,#fff 0 1px,transparent 2px);
}
.bio-vault{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 pointer-events:none;
 opacity:.54;
 mask-image:linear-gradient(#000 10%,#000b 55%,transparent 98%);
}
@media(max-width:680px){
 .bio-vault{
  height:55%;
  opacity:.5;
  mask-image:linear-gradient(#000 6%,#000b 50%,transparent 97%);
 }
}
.bio-room-space{
 position:absolute;
 inset:0;
 overflow:hidden;
 pointer-events:none;
}
.bio-room-space canvas{display:block;width:100%;height:100%}
.bio-room-space::after{
 content:'';
 position:absolute;
 inset:0;
 background:radial-gradient(ellipse at 49% 32%,transparent 56%,#6552441f 100%);
}
#bio-screen.has-arrived .bio-room-architecture i:nth-child(-n+2){
 animation:bio-cloud-drift 28s ease-in-out infinite alternate;
}
@keyframes bio-cloud-drift{to{transform:translate3d(5%,-3%,0) scale(1.09)}}

.bio-room-code {
  position: absolute;
  top: clamp(90px,14vh,124px);
  left: clamp(20px, 4.5vw, 80px);
  max-width: calc(100% - 40px);
  margin: 0;
  color: #3f5869;
  opacity: .83;
  pointer-events: none;
  text-align: left;
  text-shadow: 0 1px 3px #e5f3f6, 0 0 10px #cafffc;
  white-space: pre;
  font: 500 clamp(10px, 1.02vw, 15px)/1.53 ui-monospace, monospace;
}
html[dir=rtl] .bio-room-code { left: auto; right: clamp(20px, 4.5vw, 80px); }
.bio-room-code code { font: inherit; }
.bio-room-code.is-typing code::after {
  content: "▎";
  color: #427578;
}
.bio-room-code[data-glitch="upper"] { --code-clip: inset(22% 0 19%); --code-shift: 5px; }
.bio-room-code[data-glitch="lower"] { --code-clip: inset(52% 0 14%); --code-shift: -7px; }
.bio-room-code[data-glitch="split"] { --code-clip: inset(31% 0 37%); --code-shift: 9px; }
.bio-room-code::before,
.bio-room-code::after {
  content: attr(data-echo);
  position: absolute;
  inset: 0;
  clip-path: var(--code-clip);
}
.bio-room-code::before {
  color: #178398;
  transform: translateX(var(--code-shift));
}
.bio-room-code::after {
  color: #aa4965;
  transform: translateX(calc(var(--code-shift) * -.75));
}

.bio-room-scroll {
  position: relative;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.bio-room-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px max(24px, 5vw);
  background: #f6f9ffcc;
  border-bottom: 1px solid #6683a12b;
  backdrop-filter:blur(11px);
  font: 12px/1.4 system-ui, sans-serif;
}

.bio-room-bar > span { font-size: 16px; letter-spacing: .11em; }
.bio-room-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.bio-room-actions button {
  min-height: 42px;
  padding: 8px 14px;
  color: #312c32;
  background: #fff;
  border: 1px solid #74657350;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}
.bio-room-actions button:hover { background: #ede9ed; }
.bio-room-actions button:focus-visible { outline: 2px solid #66516b; outline-offset: 3px; }

.bio-room-view {
  position: relative;
  height: clamp(320px, 55svh, 660px);
}
.bio-room-look {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
}
@media (hover:hover) and (pointer:fine) {
  .bio-room-look { cursor: ew-resize; }
}
.bio-room-look.is-dragging { cursor: grabbing; }
.bio-room-look:focus-visible { outline: 2px solid #775330; outline-offset: -5px; }
.bio-room-view-controls {
  position: absolute;
  bottom: 14px;
  inset-inline-start: max(24px, 7vw);
  max-width: calc(100% - 48px);
  padding: 8px 10px 10px;
  background: #fbf7efed;
  color: #302d2a;
  border: 1px solid #a9916f;
  box-shadow: 0 5px 18px #372c2425;
  font: 12px/1.4 system-ui, sans-serif;
}
.bio-room-view-meta, .bio-room-view-stops { display:flex; flex-wrap:wrap; gap:5px; }
.bio-room-view-meta { align-items:baseline; justify-content:space-between; gap:4px 16px; margin-block-end:6px; }
.bio-room-view-meta p { margin:0; }
.bio-room-view-meta a { color:inherit; text-decoration:underline; text-underline-offset:.16em; }
.bio-room-view-stops button {
  min-height:34px;
  padding:5px 9px;
  border:1px solid #a69580;
  background:#fbf8f1;
  color:#302d2a;
  font:inherit;
  cursor:pointer;
}
.bio-room-view-stops button[aria-current] { background:#493a30; color:#fff6e7; border-color:#493a30; }
.bio-room-view-stops button:is(:hover,:focus-visible) { outline:1px solid #775330; outline-offset:1px; }

.bio-room-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(44px, 8vw, 145px);
  width: min(1400px, 100%);
  margin-inline: auto;
  padding: clamp(32px, 6vh, 76px) max(24px, 7vw) 48px;
}

.bio-room-copy {
 position:relative;
 isolation:isolate;
 min-width:0;
 padding-block-start:clamp(12px,3vh,44px);
}
.bio-room-space:not([hidden]) ~ .bio-room-scroll .bio-room-layout {
 padding-block-start:0;
}
.bio-room-space:not([hidden]) ~ .bio-room-scroll .bio-room-copy {
 grid-column:2;
 padding:clamp(22px,3vw,40px);
 background:linear-gradient(155deg,#faf7f0f7,#f2ece2f2);
 border:1px solid #b3976e6b;
 border-block-start:3px solid #a5885d;
 box-shadow:0 18px 54px #31271d44;
}
.bio-room-space:not([hidden]) ~ .bio-room-scroll .bio-room-photo-first {
 display:none;
}
#bio-screen-title {
  margin: 0 0 24px;
  color: #243149;
  font: 400 clamp(2.5rem, 4vw, 4.4rem)/1.02 "Baskerville", "Palatino Linotype", Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.bio-room-writing {
  color: #2d394e;
  font: clamp(1.06rem, 1.43vw, 1.25rem)/1.65 "Baskerville", "Palatino Linotype", Georgia, serif;
}
.bio-room-writing p { position: relative; margin: 0 0 1em; }
.bio-room-writing p:first-child { font-size: 1.19em; line-height: 1.45; }
.bio-room-writing p:last-child { margin-bottom: 0; }
.bio-room-writing .bio-room-reserve { visibility: hidden; }
.bio-room-writing .is-writing::after {
  content: '';
  position: absolute;
  width: 1px;
  height: .9em;
  margin-inline-start: 2px;
  transform: translateY(.22em);
  background: #7e637d;
}

.bio-profile {
  margin: clamp(20px, 4vh, 34px) 0;
  border-block: 1px solid #4b5c7552;
}
.bio-profile > div {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
  column-gap: clamp(12px, 2vw, 28px);
  align-items: baseline;
  padding-block: 10px;
}
.bio-profile > div + div { border-block-start: 1px solid #4b5c7529; }
.bio-profile dt { color: #233249; font-size: 1.12em; font-style: italic; line-height: 1.2; }
.bio-profile dd { margin: 0; line-height: 1.42; }
.bio-profile ul{margin:0;padding-inline-start:1.05em}
.bio-profile li+li{margin-block-start:.28em}
.bio-profile li::marker{color:#845d40;font-size:.78em}
.bio-profile strong{
 color:#27384b;
 font-weight:600;
 text-decoration:underline;
 text-decoration-color:#a3764b;
 text-decoration-thickness:1.6px;
 text-underline-offset:.2em;
}

.bio-room-photo { margin: 0; }
.bio-room-photo-first {
  position: sticky;
  top: clamp(96px, 14vh, 150px);
  justify-self: center;
  width: min(100%, 510px, max(275px, calc((100svh - 155px) * .76)));
  filter: drop-shadow(0 19px 12px #4c3e392a);
}
.bio-room-portrait {
  background: radial-gradient(ellipse at center,#fff3eb95 28%,transparent 72%);
}
.bio-room-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: .78;
  height: auto;
  object-fit: cover;
  object-position: 35% 42%;
  filter: blur(2.2px) saturate(.92);
  opacity: .86;
  mask-image:radial-gradient(ellipse at 46% 47%,#000 41%,#000d 53%,transparent 75%),
             linear-gradient(90deg,transparent,#000 9% 91%,transparent),
             linear-gradient(transparent,#000 10% 90%,transparent);
  mask-composite:intersect;
}
.bio-room-photo-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .53fr);
  align-items: end;
  gap: clamp(16px, 2vw, 28px);
  width: min(100%, 400px);
  margin: clamp(30px, 6vh, 65px) auto 0;
}
.bio-room-photo-pair img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
  box-shadow: 0 11px 32px #3740582b;
  filter: blur(1.15px);
}
.bio-room-photo-small {
  align-self: center;
}
.bio-room-photo-small img {
  aspect-ratio: .83;
  object-fit: cover;
  object-position: 50% 38%;
}
.bio-portal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at center,#d6e3ff 0,#4c7295 28%,#192e49 48%,#101621 80%);
  animation: bio-crossing 1.35s both;
}
.bio-portal-depth {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 480px;
}
.bio-portal-depth i {
  position: absolute;
  width: 58vmin;
  height: 58vmin;
  border: 1px solid #b9e1fbba;
  border-radius:50%;
  box-shadow: 0 0 40px #b1dcf6a0, inset 0 0 28px #abdbff75;
  animation: bio-portal-depth 1.25s cubic-bezier(.36,.1,.72,1) both;
}
.bio-portal-depth i:nth-child(2) { animation-delay: .09s; }
.bio-portal-depth i:nth-child(3) { animation-delay: .18s; }
.bio-portal-mark {
  position: relative;
  width: clamp(140px, 31vmin, 330px);
  aspect-ratio: 1;
  animation: bio-mark-arrive 1.35s both;
}
.bio-portal-mark img { position: absolute; width: 100%; height: 100%; filter: brightness(0) invert(1); }
.bio-portal-mark img:nth-child(2) {
  filter: brightness(0) invert(.82) sepia(.18) saturate(2) hue-rotate(220deg);
  animation: bio-mark-slice 1.1s steps(1, end) both;
}
.bio-portal-mark img:nth-child(3) {
  filter: brightness(0) invert(.83) sepia(.35) saturate(1.6) hue-rotate(116deg);
  animation: bio-mark-slice 1.04s .12s steps(1, end) reverse both;
}
#bio-screen.is-crossing .bio-room-scroll { opacity: 0; }
#bio-screen.has-arrived .bio-room-scroll { animation: bio-room-arrive .55s ease-out both; }
#bio-screen.has-arrived .bio-room-portrait { animation: bio-portrait-arrive .85s cubic-bezier(.18,.62,.32,1) both; }

@keyframes bio-crossing {
  0%, 58% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes bio-portal-depth {
  from { transform: translateZ(-870px); opacity: .18; }
  67% { opacity: .9; }
  to { transform: translateZ(360px); opacity: 0; }
}
@keyframes bio-mark-arrive {
  0% { opacity: 0; transform: scale(.64); }
  18% { opacity: 1; }
  63% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.4); }
}
@keyframes bio-mark-slice {
  0%, 16%, 31%, 57%, 72%, 100% { opacity: 0; }
  9% { opacity: .8; clip-path: inset(14% 0 64%); transform: translateX(-8%); }
  24% { opacity: .85; clip-path: inset(53% 0 25%); transform: translateX(9%); }
  45% { opacity: .75; clip-path: inset(32% 0 48%); transform: translateX(-6%); }
  65% { opacity: .78; clip-path: inset(70% 0 13%); transform: translateX(5%); }
}
@keyframes bio-room-arrive {
  from { opacity: .15; }
  to { opacity: 1; }
}
@keyframes bio-portrait-arrive {
  from { opacity: 0; transform: scale(.92) translateY(13px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .bio-room-code {
    top: 75px;
    color: #d9f4f7;
    font-size: clamp(10px, 2.8vw, 14px);
    line-height: 1.32;
    text-shadow: 0 1px 2px #263246, 0 0 8px #79b3bc;
  }
  .bio-room-code.is-typing code::after { color: #b1e8e9; }
  .bio-room-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 640px;
    padding-top: 29px;
  }
  .bio-room-photo-first { position: static; width: min(62%, 290px); }
  .bio-room-space[hidden] ~ .bio-room-scroll .bio-room-layout { padding-block-start: 92px; }
  .bio-room-copy { padding-block-start: 0; }
  .bio-room-space:not([hidden]) ~ .bio-room-scroll .bio-room-copy{
    grid-column:1;
    padding:20px 16px;
  }
  #bio-screen-title { margin-bottom: 18px; }
  .bio-room-view { height:clamp(315px,53svh,560px); }
  .bio-room-view-controls { inset-inline:18px; max-width:none; bottom:10px; }
  .bio-room-view-stops button { min-height:36px; }
}
@media (max-width: 420px) {
  .bio-room-bar { padding-inline: 16px; }
  .bio-room-actions button { padding-inline: 9px; }
  .bio-room-layout { padding-inline: 18px; }
  .bio-profile > div { grid-template-columns: 1fr; row-gap: 4px; }
}
@media (prefers-reduced-motion:reduce){
 #bio-screen.has-arrived .bio-room-architecture i{animation:none}
}
