/* The biography follows the same header / printed sheet structure as the projects. */
main .bio-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 90px;
  min-height: 0;
  padding: 14px 3.2vw;
}
main .bio-heading h2 {
  font-size: clamp(40px, 4.4vw, 64px);
  max-width: none;
  line-height: 1;
}
.bio-heading > span { font: 400 11px/1.4 Manrope, sans-serif; }
.paper-stack .sheet-bio .about {
  background: var(--sage) var(--paper-grain);
  background-size: 180px;
  background-blend-mode: overlay;
  color: var(--paper);
  min-height: 0;
  padding-block: 30px;
  gap: 4vw;
  align-items: center;
}
.sheet-bio .about-title { min-width: 0; }
.bio-blob { position: relative; z-index: 2; width: 100%; max-width: 530px; margin-inline: auto; }
.blob-play { display: block; position: relative; padding: 0; width: 100%; aspect-ratio: 640 / 300; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 16px; }
.blob-play canvas, .blob-still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bio-blob:not([data-ready="true"]) canvas { opacity: 0; }
.bio-blob[data-ready="true"] .blob-still { visibility: hidden; }
.blob-play:focus-visible { outline: 2px dashed var(--paper); outline-offset: 3px; }
.sheet-bio .bio-object { position: relative; z-index: 1; margin-top: -58px; height: 160px; width: 88%; }
.sheet-bio .bio-details { margin-top: 20px; }
@media(min-width:900px) {
  .sheet-bio .bio-blob { width: 94%; margin-left: 6%; margin-right: 0; }
  .sheet-bio .bio-object { width: 74%; max-width: none; height: clamp(150px, 13vw, 195px); margin-left: 2%; }
  .sheet-bio .bio-details { width: 100%; max-width: none; margin-top: 26px; }
  .sheet-bio .bio-details .accent-spread { gap: clamp(12px, 1.3vw, 24px); }
  .sheet-bio .bio-details .accent { height: clamp(115px, 11vw, 160px); }
  .sheet-bio .bio-details .accent-expression { transform: translateY(7px) rotate(-4deg); }
  .sheet-bio .bio-details .accent-fabric { transform: translateY(-6px) rotate(3deg); }
  .sheet-bio .bio-details .accent-profile { transform: translateY(10px) rotate(-2deg); }
}
@media(max-width:1050px) and (min-width:681px) {
  .sheet-bio .bio-object { width: 85%; }
}
@media(max-width:760px) {
  main .bio-heading { height: auto; min-height: 100px; padding: 23px 6%; }
  main .bio-heading h2 { font-size: clamp(40px, 6vw, 46px); }
  .bio-heading > span { display: none; }
}
@media(max-width:680px) {
  .paper-stack .sheet-bio .about { padding-block: 24px 36px; }
  .bio-blob { max-width: 420px; }
  .sheet-bio .bio-object { margin-top: -35px; height: 150px; max-width: none; width: 100%; }
  .sheet-bio .bio-details { max-width: none; }
}
@media(forced-colors:active) { .blob-play:focus-visible { outline-color: Highlight; } }

.sheet-bio .about-title { align-self: center; }
.bio-dock { width: 100%; display: flex; justify-content: center; position: relative; z-index: 3; margin-top: -8px; }
.dock-tray { display: flex; align-items: end; justify-content: center; gap: clamp(10px, 1vw, 16px); padding: 16px 16px 12px; background: linear-gradient(#f3ecdfed, #cfc7b8e8); border: 1px solid #fff9e99c; border-radius: 24px; box-shadow: inset 0 1px 0 #fffaf0, 0 12px 22px #15282040; }
.dock-item { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: #292b27; text-decoration: none; cursor: pointer; font: 500 10px/1.2 Manrope, sans-serif; }
.dock-icon { display: block; width: clamp(48px, 4.8vw, 66px); aspect-ratio: 1; border-radius: 22%; overflow: hidden; box-shadow: 0 4px 6px #15282030, inset 0 1px 1px #ffffff75; transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms; transform-origin: center bottom; }
.dock-mail .dock-icon { background: linear-gradient(145deg,#98bfd0,#4f86a5); }
.dock-youtube .dock-icon { background: linear-gradient(145deg,#d76d60,#a53b3b); }
.dock-damage .dock-icon { background: #050505; }
.dock-reference .dock-icon { background: #233b31; }
.dock-loopfinch .dock-icon { background: #203d40; }
.dock-icon svg, .dock-icon img { display: block; width: 100%; height: 100%; }
.dock-label { white-space: nowrap; }
.dock-item:focus-visible { outline: 2px dashed #294438; outline-offset: 6px; border-radius: 8px; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  body:not(.motion-paused) .dock-item:hover .dock-icon { transform: translateY(-10px) scale(1.16); box-shadow: 0 13px 14px #15282040; }
  body:not(.motion-paused) .dock-tray:has(.dock-item:hover) .dock-item:not(:hover) .dock-icon { transform: translateY(-3px) scale(1.04); }
}
#contact-dialog { position: fixed; inset: 0; width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; color: var(--ink); background: var(--paper) var(--paper-grain); border: 1px solid #b9ad95; box-shadow: 0 30px 80px #0d191980; border-radius: 5px; }
#contact-dialog::backdrop { background: #142b2bc7; backdrop-filter: blur(4px); }
.contact-close { display: block; margin-left: auto; background: none; border: 0; border-bottom: 1px solid currentColor; color: inherit; padding: 0 0 2px; font: 500 11px Manrope,sans-serif; cursor: pointer; }
.contact-kicker { margin: 12px 0 8px; font: 500 11px Manrope,sans-serif; }
#contact-dialog h2 { margin: 0 0 25px; font: 500 clamp(40px,5vw,58px)/1 'Editorial Old',Newsreader,serif; letter-spacing: -.04em; }
#contact-form { display: grid; gap: 17px; }
#contact-form label { display: grid; gap: 7px; font: 500 12px/1.4 Manrope,sans-serif; }
#contact-form input, #contact-form textarea { display: block; width: 100%; padding: 12px; border: 1px solid #7c8172; border-radius: 4px; background: #fffaf080; color: var(--ink); font: 400 16px/1.5 Manrope,sans-serif; }
#contact-form textarea { resize: vertical; min-height: 120px; }
.contact-submit { padding: 14px 18px; min-height: 48px; border: 0; border-radius: 4px; background: #294438; color: var(--paper); font: 600 13px/1.2 Manrope,sans-serif; cursor: pointer; }
.contact-note { margin: 0; font: 400 11px/1.5 Manrope,sans-serif; color: #555a4d; }
@media(max-width:680px) {
  .bio-dock { margin-top: 0; }
  .dock-tray { gap: 8px; padding: 12px 10px 10px; border-radius: 20px; }
  .dock-icon { width: 46px; }
  .dock-label { font-size: 8px; }
  #contact-dialog { padding: 24px; }
}
@media(prefers-reduced-motion:reduce) { .dock-icon { transition: none; } }

/* The links live on the island. DOM anchors retain native focus and tap behavior. */
.sheet-bio .bio-blob { width: 100%; max-width: 680px; margin: 0 auto; isolation: isolate; }
.bio-blob .blob-play { aspect-ratio: 640 / 360; border-radius: 0; }
.bio-blob .bio-dock { position: absolute; inset: 0; width: 100%; margin: 0; z-index: 3; pointer-events: none; }
.bio-blob .dock-tray { position: absolute; inset: 0; display: block; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.bio-blob .dock-item { position: absolute; left: var(--cube-x); top: 78%; width: 16%; min-width: 44px; min-height: 44px; gap: 7px; color: #f4ecdc; pointer-events: auto; transform: translate(-50%, -50%) translate(var(--carry-x,0px),var(--carry-y,0px)); }
.bio-blob .dock-item:nth-child(1) { --cube-x: 14%; --cube-color: #6298af; }
.bio-blob .dock-item:nth-child(2) { --cube-x: 32%; --cube-color: #b84f47; }
.bio-blob .dock-item:nth-child(3) { --cube-x: 50%; --cube-color: #111713; }
.bio-blob .dock-item:nth-child(4) { --cube-x: 68%; --cube-color: #294638; }
.bio-blob .dock-item:nth-child(5) { --cube-x: 86%; --cube-color: #24464a; }
.bio-blob .dock-icon { position: relative; width: clamp(44px,5.4vw,64px); overflow: visible; border-radius: 5px; background: var(--cube-color); transform: rotate(-5deg); box-shadow: 3px 10px 10px #16291f55, inset 0 1px 1px #ffffff75; }
.bio-blob .dock-icon::before { content: ''; position: absolute; left: 0; right: 0; height: 9px; top: -9px; background: color-mix(in srgb,var(--cube-color),white 26%); transform: skewX(-40deg); transform-origin: bottom; border-radius: 3px 3px 0 0; }
.bio-blob .dock-icon::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8px; right: -8px; background: color-mix(in srgb,var(--cube-color),black 28%); transform: skewY(-50deg); transform-origin: left; border-radius: 0 3px 3px 0; }
.bio-blob .dock-icon > * { border-radius: 5px; overflow: hidden; }
.bio-blob .dock-label { position: relative; padding: 3px 5px; border-radius: 3px; background: #263e32; font-size: clamp(9px,.8vw,11px); }
.bio-blob .dock-item:focus-visible { outline-color: #f4ecdc; outline-offset: 8px; }
.bio-blob .dock-item[data-held="true"] { z-index: 4; }
.bio-blob .dock-item[data-held="true"] .dock-icon { box-shadow: 3px 12px 18px #142a2044, inset 0 1px 1px #ffffff75; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body:not(.motion-paused) .bio-blob .dock-item:hover .dock-icon { transform: translateY(-4px) rotate(0); }
 body:not(.motion-paused) .bio-blob .dock-tray:has(.dock-item:hover) .dock-item:not(:hover) .dock-icon { transform: rotate(-5deg); }
}
@media(max-width:680px) {
 .sheet-bio .about-title { width: 100%; }
 .bio-blob .blob-play { aspect-ratio: 640 / 400; }
 .bio-blob .blob-play canvas, .bio-blob .blob-still { top: 0; height: 90%; }
 .bio-blob .dock-item { top: 70.2%; }
 .bio-blob .dock-icon { width: 44px; }
 .bio-blob .dock-label { font-size: 8px; padding-inline: 3px; }
}

/* Cubes rest on the broad front of the island; names remain in accessible labels. */
.bio-blob .dock-label { display: none; }
.bio-blob .dock-item { top: 70%; gap: 0; }
.bio-blob .dock-icon { width: clamp(38px,4.6vw,56px); box-shadow: 2px 4px 5px #14271e65, inset 0 1px 1px #ffffff75; }
.bio-blob .dock-item::after { content: ''; position: absolute; z-index: -1; top: calc(50% + 17px); width: 78%; height: 9px; border-radius: 50%; background: #26342255; filter: blur(3px); pointer-events: none; }
.bio-blob .dock-item[data-held="true"]::after { opacity: 0; }
@media(max-width:680px) {
 .bio-blob .dock-item { top: 63%; }
 .bio-blob .dock-icon { width: 38px; }
}

.bio-blob .dock-icon { transform: rotate(var(--cube-roll,0deg)); }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body:not(.motion-paused) .bio-blob .dock-tray:has(.dock-item:hover) .dock-item:not(:hover) .dock-icon { transform: rotate(var(--cube-roll,0deg)); }
}

/* Six smaller cubes share a broad island and retain 44px keyboard/touch targets. */
.sheet-bio .bio-blob { max-width: 780px; }
.bio-blob .dock-item { left: 50%; width: max(44px, 8%); justify-content: center; }
.bio-blob .dock-item:nth-child(6) { --cube-color: #286d94; }
.bio-blob .dock-icon { width: clamp(30px, 4.2vw, 48px); transition: filter .18s ease; }
.bio-blob .dock-item[data-stacked="true"]::after { opacity: 0; }
body:not(.motion-paused) .bio-blob .dock-item:hover .dock-icon { transform: rotate(var(--cube-roll,0deg)); filter: brightness(1.14); }
@media(max-width:680px) { .bio-blob .dock-icon { width: clamp(30px,9.2vw,36px); } }

/* Watertight cube faces: all three planes meet at the same 8px/45° corner. */
.bio-blob .dock-icon,
.bio-blob .dock-icon > *,
.bio-blob .dock-icon::before,
.bio-blob .dock-icon::after { border-radius: 0; }
.bio-blob .dock-icon { background: var(--cube-color); isolation: isolate; }
.bio-blob .dock-icon > * { position: relative; z-index: 1; background: var(--cube-color); }
.bio-blob .dock-icon::before { height: 8px; top: -8px; transform: skewX(-45deg); }
.bio-blob .dock-icon::after { width: 8px; right: -8px; transform: skewY(-45deg); }

/* Extruded faces are drawn in scene coordinates, independently of the spinning art. */
.bio-blob .dock-icon[data-solid="true"],
body:not(.motion-paused) .bio-blob .dock-item:hover .dock-icon[data-solid="true"],
body:not(.motion-paused) .bio-blob .dock-tray:has(.dock-item:hover) .dock-item:not(:hover) .dock-icon[data-solid="true"] {
  transform: none; background: transparent; box-shadow: none;
  filter: drop-shadow(2px 4px 3px #14271e55);
}
.bio-blob .dock-icon[data-solid="true"]::before,
.bio-blob .dock-icon[data-solid="true"]::after { display: none; }
.bio-blob .dock-icon[data-solid="true"] > .cube-shell { position: absolute; inset: 0; z-index: 0; background: none; overflow: visible; pointer-events: none; }
.bio-blob .dock-icon[data-solid="true"] > .cube-front { position: relative; z-index: 1; transform: rotate(var(--cube-roll,0deg)); transform-origin: center; }
body:not(.motion-paused) .bio-blob .dock-item:hover .dock-icon[data-solid="true"] { filter: drop-shadow(2px 4px 3px #14271e55) brightness(1.14); }

/* Two strings suspend a quiet paper label beneath the island. */
.sheet-bio .about-title { padding-bottom: 42px; }
.island-sign { position: absolute; z-index: 2; left: 50%; top: var(--sign-y,95%); margin: 14px 0 0; padding: 5px 10px; white-space: nowrap; font: 500 10px/1.3 Manrope,sans-serif; color: #263e32; background: var(--paper) var(--paper-grain); border: 1px solid #b9b098; border-radius: 1px; box-shadow: 1px 3px 3px #14271e33; transform: translateX(-50%) rotate(var(--sign-sway,0deg)); transform-origin: 50% -14px; pointer-events: none; }
.island-sign::before, .island-sign::after { content: ''; position: absolute; top: -15px; width: 1px; height: 15px; background: #d6c8a6; }
.island-sign::before { left: 18px; }
.island-sign::after { right: 18px; }
@media(max-width:680px) { .island-sign { font-size: 9px; top: var(--sign-y,85.5%); } }
