/* everything he wanted — era landing (v2.0) */
:root {
  --ehw-yellow: #E8CA36;
  --ehw-teal: #356365;
  --ehw-ink: #1a2e2f;
  --top-h: 52px;
  --font-druk: "Druk", "Geist", Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-helvetica: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

/* Druk Text Wide Bold — Jy 2026-11-02 (licensed). Tracking -40 → -0.04em. */
@font-face {
  font-family: "Druk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Druk-Bold.woff2") format("woff2");
}
/* Map 900 so existing Geist-Black-weight brand rules still resolve to Druk Bold. */
@font-face {
  font-family: "Druk";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/Druk-Bold.woff2") format("woff2");
}

* { box-sizing: border-box; }

html, body.ehw-page {
  margin: 0;
  min-height: 100%;
  background: var(--ehw-yellow);
  color: var(--ehw-ink);
  font-family: var(--font-helvetica);
  -webkit-font-smoothing: antialiased;
}

body.ehw-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Era topbar on yellow — frosted mustard, teal ink */
body.ehw-page .topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--top-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  background: rgba(232, 202, 54, 0.72);
  border-bottom: 1px solid rgba(53, 99, 101, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ehw-teal);
}

body.ehw-page .topbar .brand,
body.ehw-page .topbar .brand.site-name {
  justify-self: start;
  color: var(--ehw-teal);
  text-decoration: none;
  font-family: var(--font-druk);
  font-size: 12.6px; /* desktop: match About Geist brand width ~87px */
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 14px;
}

body.ehw-page .topbar .project-title,
body.ehw-page .topbar .site-page-tip {
  justify-self: center;
  font-family: var(--font-helvetica);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.78;
  line-height: 1;
  color: var(--ehw-teal);
}

body.ehw-page .top-right {
  justify-self: end;
  min-width: 4em;
}

/* Teal hamburger on yellow topbar — specificity beats chrome body:not(.on-dark) */
body.ehw-page:not(.on-dark) .topbar .nav-toggle,
body.ehw-page:not(.on-dark) .topbar .nav-burger,
body.ehw-page .topbar .nav-toggle,
body.ehw-page .topbar .nav-burger {
  color: var(--ehw-teal);
}
body.ehw-page:not(.on-dark) .topbar .nav-burger span,
body.ehw-page .topbar .nav-burger span {
  background: var(--ehw-teal) !important; /* beats chrome #111 !important on light topbars */
}
body.ehw-page .topbar .site-nav.is-open .nav-toggle,
body.ehw-page .topbar .site-nav.is-open .nav-burger,
body.ehw-page:not(.on-dark) .topbar .site-nav.is-open .nav-toggle,
body.ehw-page:not(.on-dark) .topbar .site-nav.is-open .nav-burger {
  color: #eee;
}
body.ehw-page .topbar .site-nav.is-open .nav-burger span,
body.ehw-page:not(.on-dark) .topbar .site-nav.is-open .nav-burger span {
  background: #eee !important;
}

@media (max-width: 800px) {
  body.ehw-page .topbar .brand,
  body.ehw-page .topbar .brand.site-name,
  body.ehw-page .topbar .project-title,
  body.ehw-page .topbar .site-page-tip {
    display: flex;
    align-items: center;
    align-self: center;
    height: 14px;
    line-height: 1;
    margin: 0;
    padding: 0;
  }
  /* v16: phone and desktop use the same Druk painted-width ratio to About. */
  body.ehw-page .topbar .brand,
  body.ehw-page .topbar .brand.site-name {
    font-size: 12.6px;
  }
}

/* Phone ≤412: shrink center tip only so logo→tip and tip→burger ≥12px.
   Druk brand slot / pad 20 / top-h 52 / burger inset unchanged (Jy 2026-11-04 via Dex). */
@media (max-width: 412px) {
  body.ehw-page .topbar .project-title,
  body.ehw-page .topbar .site-page-tip {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }
}

/* Landing stage */
.ehw-main {
  /* flex-grow off: short landing must not stretch a yellow void above the footer
     (other pages are tall enough that sticky-footer stretch never shows). */
  position: relative; /* pill cue anchors into header↔stage gap */
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 72px stage↔header and stage↔footer — equals 03↔partition (Jy 2026-11-04). Not footer pad. */
  padding: calc(var(--top-h) + 72px) 12px 72px;
}

.ehw-stage {
  position: relative;
  width: min(92vw, calc((100dvh - 210px) * 4 / 5), 720px);
  width: min(92vw, calc((100vh - 210px) * 4 / 5), 720px);
  aspect-ratio: 4 / 5;
  max-height: calc(100dvh - 210px);
  max-height: calc(100vh - 210px);
}

.ehw-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Yellow veils over baked-in cover portraits (numbers/title/oval stay on cover art).
   HQ layers float in on top — oval lives in cover art only (no landing oval chrome). */
.ehw-portrait-veil {
  position: absolute;
  z-index: 1;
  background: var(--ehw-yellow);
  pointer-events: none;
}
/* Photo content bounds (inside hotspot hit areas so (01)/(02)/(03) stay visible). */
.ehw-veil-dang,
.ehw-pl-dang { left: 53.6%; top: 4.7%; width: 30.4%; height: 36.6%; }
.ehw-veil-mas,
.ehw-pl-mas  { left: 10.2%; top: 30.3%; width: 33.6%; height: 40.2%; }
/* 03: re-detected photo+bracket interior (Jy 2026-11-04) — fill frame, clear of title */
.ehw-veil-ehw,
.ehw-pl-ehw  { left: 57.5%; top: 53.2%; width: 35.4%; height: 42.5%; }

.ehw-portrait-layer {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.ehw-portrait-layer picture,
.ehw-portrait-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.ehw-portrait-layer.from-right { transform: translateX(32%); }
.ehw-portrait-layer.from-left  { transform: translateX(-32%); }

/* After load gate: quiet float-in to established positions */
.ehw-stage.is-entered .ehw-portrait-layer {
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease;
}
.ehw-stage.is-entered .ehw-pl-mas  { transition-delay: 0ms; }
.ehw-stage.is-entered .ehw-pl-dang { transition-delay: 90ms; }
.ehw-stage.is-entered .ehw-pl-ehw  { transition-delay: 160ms; }

/* Subtle constant breathe as interactivity cue (after float-in) */
.ehw-stage.is-breathing .ehw-portrait-layer img {
  animation: ehwBreathe 3.8s ease-in-out infinite;
}
.ehw-stage.is-breathing .ehw-pl-dang img { animation-delay: 0s; }
.ehw-stage.is-breathing .ehw-pl-mas img  { animation-delay: 0.45s; }
.ehw-stage.is-breathing .ehw-pl-ehw img  { animation-delay: 0.9s; }
@keyframes ehwBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Pill interact cue — in header↔stage yellow band (Jy 2026-11-04). Not mid-stage. */
.ehw-interact-cue {
  position: absolute;
  left: 50%;
  /* Vertically center inside the 72px gap below the topbar */
  top: calc(var(--top-h) + 36px);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  width: max-content;
  max-width: min(92%, 22em);
  padding: 0.55em 1.2em;
  border: 1.5px solid var(--ehw-teal);
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.94);
  color: var(--ehw-teal);
  font-family: var(--font-helvetica);
  font-size: clamp(8px, 1.55vw, 11px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.ehw-interact-cue.is-on {
  opacity: 1;
  visibility: visible;
}
.ehw-interact-cue .chars {
  display: block;
}
.ehw-interact-cue .word {
  display: inline-block;
  white-space: nowrap;
}
.ehw-interact-cue .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(0.45em);
}
.ehw-interact-cue.is-on .char {
  animation: ehwCueSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ehwCueSlide {
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ehw-portrait-layer,
  .ehw-portrait-layer.from-right,
  .ehw-portrait-layer.from-left {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
  .ehw-stage.is-entered .ehw-portrait-layer {
    transition: none;
  }
  .ehw-stage.is-breathing .ehw-portrait-layer img {
    animation: none;
  }
  .ehw-interact-cue {
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .ehw-interact-cue .char {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.ehw-hotspot {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
  color: inherit;
}
.ehw-hotspot:focus { outline: none; }
.ehw-hotspot:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.ehw-hotspot:focus-visible {
  outline: 2px solid var(--ehw-teal);
  outline-offset: 4px;
}
/* No wash / blue flash — brackets are the only hover cue */
.ehw-hotspot:hover,
.ehw-hotspot:active {
  background: transparent;
}

/* Corner brackets — slightly outside image + (01) number. Hover (fine pointer) only. */
.ehw-brackets {
  position: absolute;
  inset: -5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ehw-hotspot:hover .ehw-brackets,
.ehw-hotspot:focus-visible .ehw-brackets {
  opacity: 1;
}
@media (hover: none) {
  .ehw-hotspot:active .ehw-brackets { opacity: 1; }
}
.ehw-brackets .br {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ehw-teal);
  border-style: solid;
  border-width: 0;
}
.ehw-brackets .br.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.ehw-brackets .br.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.ehw-brackets .br.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.ehw-brackets .br.brc { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ehw-brackets { transition: none; }
}

/* Hit areas hug visual targets + (01)/(02)/(03) numbers; no mutual overlap.
   Title hugs type only (not photo 03). Photo 03 includes (03) at its top-left. */
.ehw-hs-dang { left: 49.8%; top: 4.5%; width: 34.2%; height: 36.5%; }
.ehw-hs-mas  { left: 6.4%; top: 29.9%; width: 37.2%; height: 40.5%; }
/* Title type only — equal bracket pad ~0.45% all sides; trim bottom (Jy 2026-11-04) */
.ehw-hs-oval { left: 12.7%; top: 13.2%; width: 26.7%; height: 5.3%; } /* JY YEÜNG oval → Credits (art px 143–420 × 185–243 of 1080×1350) */
.ehw-hs-title{ left: 56.4%; top: 43.5%; width: 27.8%; height: 7.4%; } /* bottom 50.9%; clear of 03 @52.8% */
/* Photo 03 + (03) label; fills outer bracket interior */
.ehw-hs-ehw  { left: 52.5%; top: 52.8%; width: 40.5%; height: 43.2%; }

@media (max-width: 520px) {
  .ehw-interact-cue {
    font-size: clamp(7.5px, 2.5vw, 10px);
    /* keep header↔stage band centering from base rule */
    padding: 0.5em 0.95em;
    max-width: 90%;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .ehw-main { padding: calc(var(--top-h) + 24px) 8px 24px; }
  .ehw-interact-cue { top: calc(var(--top-h) + 12px); }
  .ehw-stage {
    width: min(48vw, calc((100vh - 64px) * 4 / 5));
  }
}

/* EHW era footer — yellow ground; structure matches site chrome.
   Interactive bits teal; credit in dark ink for contrast on yellow. */
body.ehw-page .site-footer {
  background: var(--ehw-yellow);
  color: var(--footer-muted, #666);
  /* Full-width partition — match About/Work/Dysphoria (Jy 2026-11-04) */
  border-top: 1px solid rgba(53, 99, 101, 0.35);
  /* Internal pad stays shared chrome 56/24/72 — partition→Back home matches other pages */
}

/* Kill short teal hairline baked into cover bottom edge (1px row on 4×5 art) */
.ehw-cover-bottom-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.22%;
  min-height: 2px;
  background: var(--ehw-yellow);
  z-index: 1;
  pointer-events: none;
}

body.ehw-page .footer-home {
  color: var(--ehw-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
  body.ehw-page .footer-home:hover {
    color: var(--ehw-ink);
  }
}
body.ehw-page .footer-home:focus-visible {
  outline: 2px solid var(--ehw-teal);
  outline-offset: 3px;
}

body.ehw-page .footer-icon {
  color: var(--ehw-teal);
  border-color: rgba(53, 99, 101, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  body.ehw-page a.footer-icon:hover {
    color: var(--ehw-ink);
    border-color: rgba(53, 99, 101, 0.45);
    background: rgba(53, 99, 101, 0.1);
  }
}
body.ehw-page a.footer-icon:focus-visible {
  outline: 2px solid var(--ehw-teal);
  outline-offset: 2px;
}

/* Locked site language: credit + Privacy stay muted grey #666 on every page/era */
body.ehw-page .footer-credit,
body.ehw-page .site-footer .copy,
body.ehw-page .footer-links a {
  color: var(--footer-muted, #666);
}
body.ehw-page .footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
  body.ehw-page .footer-links a:hover {
    color: var(--ehw-ink);
  }
}
body.ehw-page .footer-links a:focus-visible {
  outline: 2px solid var(--ehw-teal);
  outline-offset: 3px;
}
body.ehw-page .footer-links a[aria-current="page"] {
  color: var(--ehw-ink);
}

/* ===== FIRST-OPEN LOAD GATE (Dysphoria pattern → EHW yellow/teal) ===== */
body.ehw-page .load-gate {
  position: fixed;
  inset: 0;
  z-index: 300; /* above era topbar (200); below modal backdrop (400) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ehw-yellow);
  color: var(--ehw-teal);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
}
body.ehw-page .load-gate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.ehw-page .load-gate-inner {
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase; /* match topbar project title */
  font-size: 11px;
  color: var(--ehw-teal);
  font-family: var(--font-helvetica);
}
body.ehw-page .load-gate-label {
  display: block;
}
body.ehw-page .load-gate-mark {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 18px;
  border: 1px solid rgba(53, 99, 101, 0.35);
  border-top-color: var(--ehw-teal);
  border-radius: 50%;
  animation: loadSpin 0.85s linear infinite;
}
@keyframes loadSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  body.ehw-page .load-gate {
    transition: opacity 0.15s ease, visibility 0.15s;
  }
  body.ehw-page .load-gate-mark {
    animation: none;
    border-color: var(--ehw-teal);
    opacity: 0.7;
  }
}



/* Approved Win2000 checkpoint (v12–v16): normal phone footer, desktop taskbar. */
@font-face{font-family:"VT323";src:url("../assets/fonts/VT323.woff2") format("woff2");}
:root{--w-face:#D4D0C8;--tb-h:30px;--footer-muted:#666}
body.ehw-page .load-gate-tip{display:block;margin:22px auto 0;max-width:240px;font-family:"VT323",monospace;font-size:17px;letter-spacing:.02em;text-transform:none;line-height:1.15;color:inherit}
.ehw-stage .ehw-portrait-layer{transform:none!important;opacity:1!important}
 .ehw-interact-cue.rect{border:1px solid #000;border-radius:0;background:#FFFFE1;color:#000;font-family:"VT323",monospace;font-size:18px;letter-spacing:.02em;text-transform:none;padding:4px 9px 5px;opacity:1;visibility:visible;box-shadow:2px 2px 0 rgba(0,0,0,.25);max-width:none}

body.ehw-w2k-pop  .ehw-interact-cue.rect{visibility:hidden}

@media (min-width:801px){body.ehw-page .site-footer{display:none!important}}

@media (min-width:1000px){
  /* r7 (Jy 2026-11-13 iPad): size to the visible viewport (100dvh), not the iOS large 100vh
     (toolbar-hidden height). When 100dvh==100vh (desktop / lab) this matches r6. */
  html,body.ehw-page{overflow:hidden!important;height:100%;max-height:100dvh}
  body.ehw-page{display:flex;flex-direction:column}
  body.ehw-page .ehw-main{
    flex:1 1 auto;min-height:0;
    justify-content:flex-start;align-items:center;
    padding:12px 24px calc(var(--tb-h) + 12px) 12px;
    overflow:hidden;
  }
  body.ehw-page .ehw-stage{
    width:auto!important;
    height:calc(100dvh - var(--top-h) - var(--tb-h) - 24px)!important;
    max-height:none!important;
    max-width:none!important;
    aspect-ratio:4/5;
  }
}

#wlayer{position:fixed;left:0;right:0;top:0;bottom:0;pointer-events:none;z-index:250}
body.ehw-w2k-desk #wlayer{bottom:var(--tb-h)}
#wlayer .dim{position:absolute;inset:0;background:rgba(0,0,0,.45);pointer-events:auto;touch-action:none;overscroll-behavior:contain}
#wlayer .content{overscroll-behavior:contain}
.win{position:absolute;pointer-events:auto;background:var(--w-face);border:2px solid;border-color:#fff #404040 #404040 #fff;box-shadow:1px 1px 0 #000;display:flex;flex-direction:column;padding:2px;font-family:"VT323",monospace;-webkit-font-smoothing:none}
.win.min{display:none}
.tb{flex:0 0 26px;display:flex;align-items:center;gap:6px;padding:0 3px 0 6px;color:#fff;cursor:default;user-select:none;touch-action:none}
.tb .t{flex:1;min-width:0;font-size:21px;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1}
/* r8 (Jy 2026-11-14): minimise / maximise / close are one identical button: 20x18 box, same 2px bevel,
   one 8x8 pixel glyph cell centred in the 16x14 face, 2px glyph strokes, 2px between all three. */
.tb .btns{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.wb{box-sizing:border-box;width:20px;height:18px;flex:0 0 20px;background:var(--w-face) no-repeat center/8px 8px;border:2px solid;border-color:#fff #404040 #404040 #fff;color:transparent;font-size:0;line-height:0;display:block;padding:0;margin:0;overflow:hidden}
.wb.mn{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='6' width='8' height='2' fill='%23000'/%3E%3C/svg%3E")}
.wb.mx{cursor:not-allowed;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h8v8H0z M2 2v4h4V2z' fill='%23808080' fill-rule='evenodd'/%3E%3C/svg%3E")}
.wb.x{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v1H0z M6 0h2v1H6z M1 1h2v1H1z M5 1h2v1H5z M2 2h4v1H2z M3 3h2v2H3z M2 5h4v1H2z M1 6h2v1H1z M5 6h2v1H5z M0 7h2v1H0z M6 7h2v1H6z' fill='%23000'/%3E%3C/svg%3E")}
.wb:focus{outline:none}
.wb:focus-visible{outline:1px dotted #000;outline-offset:-4px}
.dang .tb{background:#597C86}.mas .tb{background:#B9270E}.ehw .tb{background:#096C71}.about .tb,.credits .tb{background:#0A246A}
.win.inactive .tb{filter:saturate(.35) brightness(1.15);color:#E8E6E0}
.client{flex:1;min-height:0;display:flex;background:#fff;border:2px solid;border-color:#808080 #fff #fff #808080;margin-top:2px}

.content{
  flex:1;min-width:0;
  overflow-x:hidden;overflow-y:auto;
  padding:10px;display:flex;flex-direction:column;gap:10px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.content::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;background:transparent}
.content p{font-size:19px;line-height:1.2;color:#000;margin:0}
.content h3{font:400 22px "VT323",monospace;margin:0;border-bottom:1px dotted #000;color:#000}
.ph{color:#707070!important}

.dual{display:flex;flex-direction:row;gap:8px;width:100%;max-width:100%;align-items:stretch;overflow:hidden;flex:0 0 auto;height:175px}
.dual .cell{flex:1 1 0;min-width:0;height:100%;display:flex;align-items:center;justify-content:flex-start;background:transparent;border:0;overflow:hidden}
.dual .cell img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}
body.ehw-w2k-align-left .dual .cell{justify-content:flex-start}
body.ehw-w2k-align-left .dual .cell img{object-position:left center}
@media (min-width:1000px){
  .dual{height:175px}
}

.listen-row{display:flex;gap:10px;flex-wrap:wrap;align-items:baseline;font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#000;margin:0}
.listen-row .listen-lead{color:#000}
.listen-row .sep{color:#000;margin:0 2px}
.listen-row button.tog,.listen-row .soon{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:uppercase;cursor:pointer;color:#096C71;border-bottom:1px solid transparent}
.listen-row button.tog.is-on{border-bottom-color:#096C71;color:#000}
.listen-row button.tog:not(.is-on){color:#096C71;border-bottom-color:rgba(9,108,113,.35)}
.listen-row .soon{color:#888;cursor:default;border:0}

.embed-slot{flex:0 0 auto;width:100%;margin-top:6px}
.embed-slot iframe{display:none;width:100%;max-width:100%;border:0;outline:none;background:transparent}
.embed-slot iframe.is-on{display:block}
.embed-slot iframe.apple-frame.song{height:175px}
.embed-slot iframe.apple-frame.playlist{height:450px}
.embed-slot iframe.spot-frame{height:175px}
.ig-link{display:inline-flex;align-items:center;gap:8px;margin-top:4px;margin-bottom:26px;color:#096C71;text-decoration:none;font-size:15px;letter-spacing:.08em;text-transform:uppercase;line-height:1.2}
.ig-link svg{flex:none;width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.6}
.ig-link span{border-bottom:1px solid rgba(9,108,113,.45);padding-bottom:1px}

.car{flex:0 0 auto;width:100%;margin:6px 0 2px;user-select:none;-webkit-user-select:none}
.car-stage{position:relative;display:flex;align-items:center;gap:2px}
.car-viewport{flex:1 1 auto;min-width:0;width:100%;overflow:hidden;background:#111;border:0;overscroll-behavior-x:none;touch-action:pan-y}
.car.ratio-16-9 .car-viewport{aspect-ratio:16/9}
.car.ratio-4-5 .car-viewport{aspect-ratio:4/5}
.car-track{display:flex;height:100%;width:100%;gap:0;will-change:transform;transition:transform .22s steps(4,end)}
.car-slide{flex:0 0 100%;height:100%;display:flex;align-items:center;justify-content:center;background:#111;overflow:hidden;border:0;margin:0;padding:0}
.car-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none;-webkit-user-drag:none}
.car-nav{flex:0 0 22px;height:36px;appearance:none;-webkit-appearance:none;background:var(--w-face,#D4D0C8);border:2px solid;border-color:#fff #404040 #404040 #fff;font:22px/1 "VT323",monospace;color:#000;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
.car-nav:active{border-color:#404040 #fff #fff #404040}
.car-nav.is-disabled,.car-nav.is-disabled:active{color:#808080;text-shadow:1px 1px 0 #fff;cursor:default;border-color:#fff #404040 #404040 #fff}
.car-meta{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:6px;font:16px/1 "VT323",monospace;letter-spacing:.06em;color:#000}
.car-idx{color:#000;letter-spacing:.08em;flex:0 0 auto;text-align:center}

/* Credits window footer centred like the site footer on home/Work/About/Dysphoria/Privacy (Jy 2026-11-13) */
.cred-foot{margin-top:14px;padding-top:12px;border-top:1px solid rgba(0,0,0,.2);display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center}
.cred-foot .icons{display:flex;gap:10px;justify-content:center}
.content p.cred-line{overflow-wrap:break-word}
.content p.cred-line .cred-v{white-space:nowrap} /* keep a name/studio on one line when the row wraps */
.cred-foot .icons a{width:28px;height:28px;border:1px solid rgba(102,102,102,.55);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--footer-muted);text-decoration:none}
.cred-foot .icons svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.6}
.cred-foot .copy,.cred-foot .credit{margin:0;font-size:14px;letter-spacing:.04em;color:var(--footer-muted);text-transform:uppercase;line-height:1.3}
.cred-foot .privacy{font-size:14px;letter-spacing:.04em;color:var(--footer-muted);text-decoration:underline;text-underline-offset:3px}

.sb{
  flex:0 0 17px;display:flex;flex-direction:column;
  background-image:repeating-conic-gradient(#D4D0C8 0 25%,#fff 0 50%);
  background-size:2px 2px;
  user-select:none;-webkit-user-select:none;
  touch-action:none;
}
.sb .a,.sb .th{
  background:var(--w-face);
  border:2px solid;border-color:#fff #404040 #404040 #fff;
  box-shadow:inset -1px -1px #808080;
}
.sb .a{
  flex:0 0 17px;position:relative;cursor:default;
  padding:0;appearance:none;-webkit-appearance:none;
  width:17px;height:17px;box-sizing:border-box;
}
.sb .a:active{border-color:#404040 #fff #fff #404040;box-shadow:none}
.sb .a:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:4px solid transparent}
.sb .up:after{border-bottom-color:#000;margin-top:-2px}
.sb .dn:after{border-top-color:#000;margin-top:2px}
.sb .tr{flex:1;position:relative;min-height:0;cursor:default}
.sb .th{
  position:absolute;left:0;right:0;top:0;height:28px;
  cursor:default;box-sizing:border-box;min-height:18px;
}
.sb .th:active{background:#C0C0C0}

#taskbar{position:fixed;left:0;right:0;bottom:0;height:var(--tb-h);z-index:260;background:var(--w-face);border-top:2px solid #fff;display:flex;align-items:center;gap:4px;padding:2px 3px;font-family:"VT323",monospace}
.tbtn{height:22px;border:2px solid;border-color:#fff #404040 #404040 #fff;background:var(--w-face);font:18px/1 "VT323",monospace;color:#000;display:flex;align-items:center;gap:6px;padding:0 8px;white-space:nowrap;overflow:hidden;cursor:default}
.tbtn.power{padding:0 8px 0 5px}
.tbtn.power svg{width:14px;height:14px}
.sep{width:2px;height:22px;border-left:1px solid #808080;border-right:1px solid #fff;margin:0 2px}
.tabs{display:flex;gap:3px;flex:1;min-width:0}
.tab{flex:0 1 170px;min-width:0}
.tab i{flex:0 0 10px;height:10px;border:1px solid #000}
.tab span{overflow:hidden;text-overflow:ellipsis}
.tab.on{border-color:#404040 #fff #fff #404040;background-image:repeating-conic-gradient(#D4D0C8 0 25%,#fff 0 50%);background-size:2px 2px;padding-top:2px}
.clock{border:1px solid;border-color:#808080 #fff #fff #808080;height:22px;padding:0 8px;display:flex;align-items:center;font-size:16px;letter-spacing:.02em;flex:0 0 auto;white-space:nowrap}

#pwr-dlg{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;pointer-events:auto}
#pwr-dlg[hidden]{display:none}
#pwr-dlg .scrim{position:absolute;inset:0;background:rgba(0,0,0,.35)}
#pwr-dlg .box{position:relative;width:min(360px,92vw);background:var(--w-face);border:2px solid;border-color:#fff #404040 #404040 #fff;box-shadow:2px 2px 0 #000;font-family:"VT323",monospace;padding:2px}
#pwr-dlg .box .tb{cursor:default;background:#0A246A}
#pwr-dlg .body{padding:18px 16px 14px;display:flex;gap:14px;align-items:center;background:var(--w-face)}
#pwr-dlg .ico{flex:0 0 36px;width:36px;height:36px;border:2px solid #000;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;padding:0;line-height:0}
#pwr-dlg .ico svg{width:18px;height:18px;display:block}
#pwr-dlg .msg{font-size:20px;line-height:1.25;color:#000}
#pwr-dlg .acts{display:flex;justify-content:center;gap:12px;padding:4px 16px 14px;background:var(--w-face)}
#pwr-dlg .acts button{min-width:88px;height:28px;font:20px/1 "VT323",monospace;background:var(--w-face);border:2px solid;border-color:#fff #404040 #404040 #fff;box-shadow:inset -1px -1px #808080;color:#000;padding:0 12px}
#pwr-dlg .acts button:active{border-color:#404040 #fff #fff #404040}

@media (max-width: 800px) {
  body.ehw-page .topbar .brand,
  body.ehw-page .topbar .brand.site-name,
  body.ehw-page .topbar a.site-name.brand {
    font-size: 12.6px !important;
    height: 14px !important;
    line-height: 1 !important;
  }
}
@media (max-width: 412px) {
  body.ehw-page .topbar .project-title,
  body.ehw-page .topbar .site-page-tip {
    font-size: 9.5px !important;
    letter-spacing: 0.04em !important;
  }
}

.content h3.song-title {
  font: 700 22px/1.15 "VT323", monospace;
  margin: 0;
  border-bottom: 1px dotted #000; /* About window's partition line (.content h3), Jy 2026-11-09 */
  text-decoration: none;
  color: #000;
  letter-spacing: .02em;
}
.content p.song-quote {
  font-size: 19px;
  line-height: 1.25;
  color: #000;
  margin: 0;
}
.content p.song-quote .q-line {
  display: block;
}

.slideshow-label {
  flex: 0 0 auto;
  margin: 10px 0 0;
  font: 400 15px/1.1 "VT323", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #000;
}

@media (max-width:800px){
  .dual .cell{flex:0 0 auto;width:auto}
  .dual .cell img{width:auto;max-width:none;height:100%;object-fit:contain;object-position:left center}
}

@media (max-width:800px){
  body.ehw-page .topbar .brand,
  body.ehw-page .topbar .brand.site-name,
  body.ehw-page .topbar a.site-name.brand{
    font-size:12.6px!important;
    letter-spacing:-0.04em!important;
  }
}

/* Pass 2 (Jy 2026-11-09). */
/* Reduced motion: carousel slides jump; minimise/restore and open/close are already instant. */
@media (prefers-reduced-motion: reduce){
  .car-track{transition:none!important}
}

/* r5 (Jy 2026-11-12, balloon v8): Win2000 tray balloon at S3 70% size, centred under the whole collage,
   8.4px 12 o'clock tail; JS centres it between collage and footer divider / taskbar. No fade. */
.ehw-balloon{--bln-s:0.7;position:absolute;z-index:5;overflow:visible;width:max-content;max-width:calc(100vw - 24px);box-sizing:border-box;background:#FFFFE1;color:#000;border:1px solid #000;border-radius:calc(7px * var(--bln-s));padding:calc(4px * var(--bln-s)) calc(8px * var(--bln-s)) calc(5px * var(--bln-s));font-family:"VT323",monospace;white-space:nowrap;-webkit-font-smoothing:none;cursor:default;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.ehw-balloon[hidden]{display:none}
.ehw-balloon .stem{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.ehw-balloon .bln-h{display:flex;align-items:center;gap:calc(5px * var(--bln-s));font-weight:700;font-size:calc(18px * var(--bln-s));line-height:1;letter-spacing:.02em;margin-bottom:calc(3px * var(--bln-s))}
.ehw-balloon .bln-h .ico{flex:0 0 calc(14px * var(--bln-s));width:calc(14px * var(--bln-s));height:calc(14px * var(--bln-s))}
.ehw-balloon .bln-b{font-size:calc(18px * var(--bln-s));line-height:1.05;letter-spacing:.02em}
body.ehw-w2k-pop .ehw-balloon{visibility:hidden}


/* r6 (Jy 2026-11-12 11:39), small-phone title fix C: on ≤366px the Druk logo scales down linearly
   so the centred one-line tip (9.5px / 0.04em, ~128.5px) clears it by ≥12px. Same scale as the
   site-wide rule in chrome.css (About / Dysphoria / Work / Privacy 17px marks), so EHW ink stays
   matched to About at every width. 367px and up: unchanged 12.6px.
   Logo box ≈ 6.8865 × font-size; centred tip left = 50vw − 64.27; target gap 12.25
   → font-size = (50vw − 96.52px) / 6.8865 = 7.2606vw − 14.016px. */
@media (max-width: 366px) {
  body.ehw-page .topbar .brand,
  body.ehw-page .topbar .brand.site-name,
  body.ehw-page .topbar a.site-name.brand {
    font-size: min(12.6px, calc(7.2606vw - 14.016px)) !important;
  }
}

/* About persona trio: approved 9:16 R/L/R wrapping layout. Block flow avoids forced paragraph gaps. */
.win.about .content{display:block;container-type:inline-size}
.win.about .content p.about-p{margin:0 0 10px}
.win.about .content p.about-p:last-child{margin-bottom:0}
/* Approved persona trio: GIF-like silent loops, unchanged source edits. */
.about-gif{float:right;clear:both;box-sizing:border-box;width:96px;aspect-ratio:9/16;margin:3px 0 6px 12px;display:block;position:relative;overflow:hidden;background:#d4d0c8}
.about-gif.l{float:left;margin:3px 12px 6px 0}
.about-gif img,.about-gif video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.about-gif.is-still video{visibility:hidden}
/* Keep a >=160px text column. At current phone geometry these switch at 340 and 316 viewport px. */
@container (max-width:267px){.about-gif{width:72px}}
@container (max-width:243px){.about-gif,.about-gif.l{float:none;width:96px;margin:0 auto 10px}}
@media (prefers-reduced-motion:reduce){.about-gif video{visibility:hidden}}
