/* Vinit Rami Photographs. Built from the design prototype; see photography/README.md. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/anton-400.woff2) format('woff2'); }
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/michroma-400.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/geist-300.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/geist-400.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/geist-500.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/geist-600.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/geist-700.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/geist-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/geist-mono-500.woff2) format('woff2'); }

/* Layout: a magazine cover on a Swiss grid. One huge masthead behind a live, turnable 3D camera on a grey studio sweep,
   microtext on the margins, a photo data sheet beside the camera, an Echo Face About spread and a darkroom desk. One light look on purpose. */
:root {
  --studio: #E5E5E3; --studio-hi: #EFEFED; --studio-lo: #D6D6D4;
  --ink: #111111; --ink-2: #1C1C1C; --mute: #5C5F66; --chip: #E9E9E7; --white: #FFFFFF; --body-black: #0B0B0C; --rec: #D7261E;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --body: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --tech: Michroma, 'Arial Black', sans-serif;
  --ease: cubic-bezier(.32,.72,0,1); --spring: cubic-bezier(.16,1,.3,1); --expo: cubic-bezier(.19,1,.22,1);
  --sweep: radial-gradient(ellipse 78% 72% at 50% 60%, var(--studio-hi) 0%, var(--studio) 58%, var(--studio-lo) 100%);
  color-scheme: light;
}
html, body { background: var(--studio); color: var(--ink); }
body { font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Swiss line reveal: each line slides up out of its own mask */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.swap .ln > span { animation: lineUp .7s var(--expo) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; margin-top: calc(-1 * env(safe-area-inset-top, 0px)); background: var(--sweep); }
.mast { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + clamp(30px, 5.2vh, 48px)); margin: 0; display: flex; justify-content: center;
  font-family: var(--display); font-weight: 400; font-size: calc(min(100vw, 1600px) * 0.2555); line-height: .88; letter-spacing: -.02em; color: var(--ink); white-space: nowrap;
  transition: opacity .6s var(--ease); pointer-events: none; }
.mast > span { display: inline-block; overflow: hidden; }
.mast > span > span { display: inline-block; }
.mast .gap { width: .2em; }
.ready .mast > span > span { animation: up .9s var(--expo) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes up { from { transform: translateY(104%); } to { transform: none; } }

.ed { position: absolute; margin: 0; font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); transition: opacity .6s var(--ease); z-index: 2; }
.ed b { display: block; font-weight: 600; font-size: 14px; letter-spacing: .3em; line-height: 1.45; margin-bottom: 12px; color: var(--ink); }
.ed .ico { display: block; margin-top: 12px; }
.ed .ico svg { width: 18px; height: 18px; display: block; }
.ed.lr .ico svg { width: 26px; height: 26px; }
.ed.tl { left: max(28px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 14px); }
.ed.tr { right: max(28px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); display: flex; gap: 18px; align-items: center; }
.ed.ml { left: max(28px, env(safe-area-inset-left, 0px)); top: 49%; }
.ed.mr { right: max(28px, env(safe-area-inset-right, 0px)); top: 49%; text-align: right; }
.ed.mr b { letter-spacing: .16em; }
.ed.lr { right: max(28px, env(safe-area-inset-right, 0px)); top: 69%; text-align: right; }
.ed.lr .num { display: block; font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: 0; margin-bottom: 8px; }
.ed.lr .ico { margin: 16px 0 0 auto; width: 26px; }
.ed.bar { right: max(28px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); width: 96px; height: 32px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.ed.bl { left: max(28px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); }
.ed.bl .bars { display: flex; gap: 4px; margin-bottom: 16px; }
.ed.bl .bars i { height: 5px; width: 18px; background: var(--ink); }
.ed.bl .bars i:last-child { width: 56px; }
.ed.bl small { font-size: 9.5px; letter-spacing: .1em; }
.navlink, .sound { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative; }
.navlink svg, .sound svg { width: 16px; height: 16px; }
.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--expo); }
.navlink:hover::after { transform: scaleX(1); transform-origin: left; }

#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: pan-y; cursor: grab; outline: none; }
#gl.dragging { cursor: grabbing; }
#gl.point { cursor: pointer; }
.fallback { position: absolute; left: 50%; top: 58%; width: min(40vw, 560px); transform: translate(-50%, -50%) rotate(-8deg); z-index: 1; transition: opacity .5s var(--ease); }
.gl-ready .fallback { opacity: 0; pointer-events: none; }
.dim { position: absolute; inset: 0; z-index: 0; background: var(--body-black); opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.hero[data-state="full"] .dim { opacity: 1; }
.blink { position: absolute; inset: 0; z-index: 4; background: var(--body-black); opacity: 0; pointer-events: none; }
.blink.go { animation: blink .32s var(--ease); }
@keyframes blink { 0% { opacity: 0; } 35% { opacity: .92; } 100% { opacity: 0; } }
.flashfx { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 40%), #fff 0%, rgba(255,255,255,.92) 35%, rgba(255,255,255,.6) 100%); }
.flashfx.go { animation: flash .5s cubic-bezier(.2,.8,.2,1); }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }

.hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); margin: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); z-index: 3; pointer-events: none; transition: opacity .4s var(--ease); }
.hero:not([data-state="front"]) .hint { opacity: 0; }
.tip { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(.9); transition: opacity .2s var(--ease), transform .25s var(--spring); }
.tip.on { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)) scale(1); }
.toast { position: absolute; left: 50%; top: 31%; z-index: 6; pointer-events: none; transform: translate(-50%, 10px); opacity: 0; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(17,17,17,.88); color: var(--white); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: opacity .3s var(--ease), transform .5s var(--expo); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); display: none; animation: pulse 1s steps(2) infinite; }
.toast.rec i { display: block; }
@keyframes pulse { 50% { opacity: 0; } }

/* docks */
.dock { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .45s var(--ease), transform .6s var(--spring), visibility 0s linear .45s; pointer-events: none; }
.hero[data-state="front"] #dock-front, .hero[data-state="dial"] #dock-dial, .hero[data-state="back"] #dock-back, .hero[data-state="full"] #dock-full {
  opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease) .15s, transform .6s var(--spring) .15s, visibility 0s; pointer-events: auto; }
.pill, .round, .ghost { position: relative; overflow: hidden; isolation: isolate; translate: var(--mx, 0) var(--my, 0);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .2s, translate .5s var(--spring); }
.pill { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; padding: 6px 6px 6px 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 500; }
.pill .pin { width: 36px; height: 36px; border-radius: 50%; background: var(--chip); color: var(--ink); display: grid; place-items: center; transition: transform .45s var(--spring); }
.pill:hover .pin { transform: translate(2px, -2px) scale(1.08) rotate(-8deg); }
.pill:hover, .round:hover, .ghost:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(17,17,17,.55); }
.pill:active, .round:active, .ghost:active { transform: translateY(0) scale(.95, .92); transition-duration: .08s; box-shadow: none; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(233,233,231,.92); display: grid; place-items: center; flex: none; }
.round:hover { background: var(--white); }
.ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: rgba(233,233,231,.92); font-size: 15px; text-decoration: none; color: var(--ink); }
.round svg, .ghost svg, .pin svg { width: 18px; height: 18px; }
.rip { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .28; transform: scale(0); animation: rip .65s var(--expo) forwards; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.readout { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; width: 300px; max-width: 100%; text-align: center; padding: 6px 14px; border-radius: 22px; background: rgba(233,233,231,.92); }
.readout b { font-weight: 600; font-size: 17px; line-height: 1.35; }
.readout span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.readout.swap b, .readout.swap span { animation: lineUp .55s var(--expo) both; }
#dock-full { color: var(--white); justify-content: space-between; max-width: 1180px; margin: 0 auto; }
#dock-full .round { border-color: var(--white); color: var(--white); background: rgba(11,11,12,.55); }
#dock-full .round:hover { background: rgba(255,255,255,.14); }
#dock-full .cap b { display: block; font-weight: 600; font-size: 18px; }
#dock-full .cap span { font-family: var(--mono); font-size: 12px; color: #B8B8B8; }
#dock-full .acts { display: flex; gap: 8px; }
.pill.light { background: var(--white); color: var(--ink); }
.pill.light .pin { background: var(--ink); color: var(--white); }
#toRoom[hidden], #infoBtn[hidden] { display: none; }
.hero[data-state="back"] .mast { opacity: .1; }
.hero[data-state="full"] .mast, .hero[data-state="full"] .ed, .hero[data-state="dial"] .ed.lr, .hero[data-state="dial"] .ed.mr,
.hero[data-state="back"] .ed.lr, .hero[data-state="back"] .ed.mr { opacity: 0; pointer-events: none; }
.hero[data-state="full"] .ed.tr { opacity: 1; pointer-events: auto; color: var(--white); }
.hero[data-state="full"] .ed.tr .navlink, .hero[data-state="full"] .ed.tr .sound { color: var(--white); }

/* photo data sheet */
.details { position: absolute; z-index: 3; right: max(28px, env(safe-area-inset-right, 0px)); top: 50%; width: 288px; transform: translate(24px, -50%); opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), transform .7s var(--expo), visibility 0s linear .5s; color: var(--ink); }
.hero[data-state="back"] .details, .hero[data-state="full"] .details { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .5s var(--ease) .25s, transform .8s var(--expo) .25s, visibility 0s; }
.hero[data-state="full"] .details { color: var(--white); padding: 18px 18px 14px; border-radius: 18px; background: rgba(11,11,12,.86); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }
.d-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid currentColor; }
.hero[data-state="full"] .d-top, .hero[data-state="full"] .d-k, .hero[data-state="full"] .d-file { color: #A9ABB0; }
.d-num { font-weight: 300; font-size: 76px; line-height: .9; letter-spacing: -.04em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.d-title { margin: 0 0 12px; font-size: 24px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.d-row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; }
.d-row svg { width: 16px; height: 16px; flex: none; }
.d-row[hidden] { display: none; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 16px 0 0; border-top: 1px solid currentColor; }
.d-grid div { padding: 10px 0 10px; border-bottom: 1px solid rgba(17,17,17,.18); }
.hero[data-state="full"] .d-grid div { border-bottom-color: rgba(255,255,255,.2); }
.d-grid div:nth-child(odd) { padding-right: 10px; border-right: 1px solid rgba(17,17,17,.18); }
.hero[data-state="full"] .d-grid div:nth-child(odd) { border-right-color: rgba(255,255,255,.2); }
.d-grid div:nth-child(even) { padding-left: 12px; }
.d-grid dt { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.hero[data-state="full"] .d-grid dt { color: #A9ABB0; }
.d-grid dt svg { width: 14px; height: 14px; }
.d-grid dd { margin: 4px 0 0; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.d-grid dd.na { font-size: 13px; font-weight: 400; color: var(--mute); padding-top: 5px; }
.d-hist { margin-top: 14px; }
.d-hist canvas { display: block; width: 100%; height: 64px; }
.d-k { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }
.d-pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.d-pal span { display: block; }
.d-pal i { display: block; height: 26px; border-radius: 3px; }
.d-pal b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .02em; }
.swap .d-pal span { animation: pop .6s var(--spring) both; animation-delay: calc(var(--d) * 50ms + 200ms); }
.swap .d-grid dd { animation: lineUp .6s var(--expo) both; animation-delay: calc(var(--d) * 50ms + 120ms); }
@keyframes pop { from { transform: scale(.6) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero .details.hide-full { opacity: 0; visibility: hidden; }
.d-file { margin: 12px 0 0; font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* through the lens */
.lensview { position: absolute; inset: 0; z-index: 7; background: var(--body-black); color: var(--white); }
.lv-img { position: absolute; inset: 0; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 28px) 72px calc(env(safe-area-inset-bottom, 0px) + 140px); box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 45%, #1d1d20 0%, var(--body-black) 70%); clip-path: circle(0 at var(--lx, 50%) var(--ly, 50%)); transform: scale(1.25); touch-action: pan-y; }
.lv-page { display: block; max-width: min(100%, 900px); max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 190px); width: auto; height: auto; border-radius: 2px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.06);
  transition: opacity .3s var(--ease), transform .55s var(--expo); }
.lv-page.turn { opacity: 0; transform: translateX(var(--tdir, -40px)) scale(.97); transition-duration: .16s; }
.lv-nav { position: absolute; top: calc(50% - 24px); z-index: 2; border-color: var(--white); color: var(--white); background: rgba(11,11,12,.55); }
.lv-nav:hover { background: rgba(255,255,255,.14); }
.lv-prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.lv-next { right: max(16px, env(safe-area-inset-right, 0px)); }
.lensview.open .lv-img { clip-path: circle(150% at var(--lx, 50%) var(--ly, 50%)); transform: none; transition: clip-path 1.1s var(--expo), transform 1.6s var(--expo); }
.lv-hud { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease) .6s; }
.lensview.open .lv-hud { opacity: 1; }
.lv-hud svg { position: absolute; left: 50%; top: 50%; width: min(92vw, 1100px); height: auto; transform: translate(-50%, -54%); }
.lv-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 28px; padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 84px); font-family: var(--mono); font-size: 14px; letter-spacing: .08em; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.lv-close { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); z-index: 2; }
.lv-close:hover { transform: translateX(-50%) translateY(-2px); }

/* ---------- about: echo face ---------- */
/* One accent lives only in this spread: signal blue for the scan, the labels and the mail link. */
.about { --sig: #2E46FF; background: var(--sweep); color: var(--ink); container-type: inline-size; position: relative; overflow: hidden; }
.about-in { --u: calc(min(100cqw, 1440px) / 1440); position: relative; width: min(100cqw, 1440px); height: calc(var(--u) * 900); margin: 0 auto; }
.about-in > * { position: absolute; margin: 0; }
.e-grid { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.e-grid line { stroke: rgba(17,17,17,.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.e-grid .soft { stroke: rgba(17,17,17,.06); }
.e-sig { font-size: 11px; color: var(--sig); }
.e-sig i { display: block; width: 7px; height: 7px; margin-top: 12px; background: var(--sig); }
.e-tl { left: calc(var(--u) * 56); top: calc(var(--u) * 30); }
.e-tr { right: calc(var(--u) * 56); top: calc(var(--u) * 30); text-align: right; }
.e-tr i { width: 12px; height: 1px; margin: 14px 0 0 auto; }
.e-photo { left: calc(var(--u) * 467); top: 0; width: calc(var(--u) * 506); height: 100%; overflow: hidden; }
/* the portrait is a transparent cut (colour-to-alpha), so it sits on the sweep with no blend mode */
.e-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.e-bar { position: absolute; inset: 0; pointer-events: none; opacity: 0; transform: translateY(-100%);
  background: linear-gradient(to top, var(--sig) 0 3px, rgba(46,70,255,.22) 3px, rgba(46,70,255,0) 42px); }
.e-bracket { left: calc(var(--u) * 912); top: calc(var(--u) * 404); width: calc(var(--u) * 40); height: calc(var(--u) * 40); color: var(--sig); }
.e-name { left: calc(var(--u) * 56); top: calc(var(--u) * 352); }
.e-name h2 { margin: 0; font-family: var(--tech); font-weight: 400; font-size: calc(var(--u) * 52); line-height: 1.04; letter-spacing: .02em; }
.e-name > i { display: block; width: 14px; height: 1.5px; margin: calc(var(--u) * 26) 0 calc(var(--u) * 14); background: var(--sig); }
.e-name p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.e-quote { left: calc(var(--u) * 56); bottom: calc(var(--u) * 56); width: calc(var(--u) * 330); font-size: max(13px, calc(var(--u) * 14)); line-height: 1.55; color: var(--ink-2); }
.e-quote p { margin: 0; text-wrap: pretty; }
.e-mail { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--sig); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size .5s var(--expo); }
.e-mail:hover { background-size: 100% 1px; }
.e-copy { left: calc(var(--u) * 1012); top: calc(var(--u) * 60); width: calc(var(--u) * 372); }
.e-k { margin: 0 0 calc(var(--u) * 18); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--sig); }
.e-who { margin: 0; font-size: max(20px, calc(var(--u) * 27)); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
.e-role { margin: 6px 0 calc(var(--u) * 22); font-size: max(12px, calc(var(--u) * 13)); color: var(--mute); }
.e-copy .b { margin: 0 0 14px; font-size: max(13px, calc(var(--u) * 14.5)); line-height: 1.62; color: var(--ink-2); text-wrap: pretty; }
.e-copy dl { margin: calc(var(--u) * 22) 0 0; font-size: max(11.5px, calc(var(--u) * 12)); line-height: 1.5; }
.e-copy dl div { display: grid; grid-template-columns: max(70px, calc(var(--u) * 92)) 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(17,17,17,.16); }
.e-copy dl div:first-child { border-top-color: var(--ink); }
.e-copy dl div:last-child { border-bottom: 1px solid var(--ink); }
.e-copy dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--sig); }
.e-copy dd { margin: 0; }
.e-handle { margin: 16px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.e-cta { margin-top: calc(var(--u) * 22); }
/* scan readout: an ink chip, legible over light or dark parts of the photo */
.e-foot { left: calc(var(--u) * 487); bottom: calc(var(--u) * 22); padding: 5px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: #F5F5F4; background: var(--ink); pointer-events: none; }
/* the spread waits off-screen (only when JS can reveal it), then scans in once */
.about.arm:not(.in) .ln > span { transform: translateY(105%); }
.about.arm:not(.in) .e-photo img { clip-path: inset(0 0 100% 0); }
.about.arm:not(.in) .e-up { opacity: 0; transform: translateY(18px); }
.about.in .ln > span { animation: lineUp .8s var(--expo) both; animation-delay: calc(200ms + var(--d, 0) * 70ms); }
.about.in .e-photo img { animation: scanIn 1.7s cubic-bezier(.65,0,.35,1) both; }
.about.in .e-bar { animation: scanBar 1.7s cubic-bezier(.65,0,.35,1) both; }
.about.in .e-up { animation: fadeUp .9s var(--expo) both; animation-delay: calc(500ms + var(--d, 0) * 90ms); }
.about.in .drift { animation: drift 6s steps(1) 2.4s infinite; }
@keyframes scanIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scanBar { 0% { transform: translateY(-100%); opacity: 1; } 94% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 90% { text-shadow: none; transform: none; } 91% { text-shadow: -3px 0 rgba(255,40,60,.75), 3px 0 rgba(40,80,255,.75); transform: translateX(2px); } 93% { text-shadow: 2px 0 rgba(255,40,60,.6), -2px 0 rgba(40,80,255,.6); transform: translateX(-1px); } 95%, 100% { text-shadow: none; transform: none; } }
@media (max-width: 1179px) {
  .about-in { --u: 1px; width: auto; height: auto; max-width: 640px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px;
    padding: 40px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
  .about-in > * { position: static; }
  .e-grid, .e-bracket, .e-foot { display: none; }
  .e-tr { grid-column: 2; }
  .e-name, .e-copy, .e-quote { grid-column: 1 / -1; }
  .e-name { margin-top: 28px; }
  .e-name h2 { font-size: clamp(34px, 10.5vw, 52px); }
  .about-in > .e-photo { grid-column: 1 / -1; position: relative; left: auto; top: auto; width: auto; height: auto; aspect-ratio: 4 / 5; margin-top: 28px; }
  .e-photo img { object-position: 50% 30%; }
  .e-copy, .e-quote { width: auto; margin-top: 32px; }
  .e-who { font-size: 26px; }
}
/* tablets and small laptops: photo pinned on the left while the words scroll past */
@media (min-width: 700px) and (max-width: 1179px) {
  .about-in { max-width: 1060px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(28px, 4vw, 56px); align-items: start;
    padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .e-tl { grid-area: 1 / 1; } .e-tr { grid-area: 1 / 2; }
  .about-in > .e-photo { grid-column: 1; grid-row: 2 / span 3; position: sticky; left: auto; top: 24px; aspect-ratio: 9 / 16; max-height: calc(100svh - 48px); }
  .e-photo img { object-position: 50% 0; }
  .e-name, .e-copy, .e-quote { grid-column: 2; }
  .e-name { grid-row: 2; } .e-copy { grid-row: 3; } .e-quote { grid-row: 4; }
  .e-name h2 { font-size: clamp(38px, 5vw, 52px); }
}

/* ---------- darkroom ---------- */
.darkroom { position: relative; min-height: 100svh; overflow: hidden; background: var(--sweep); }
.darkroom[hidden] { display: none; }
#dr { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; touch-action: pan-y; }
/* the giant word sits behind the WebGL canvas, the monitor stands in front of it */
.dr-mast { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + clamp(30px, 5.2vh, 48px)); z-index: 0; margin: 0; display: flex; justify-content: center;
  font-family: var(--display); font-weight: 400; font-size: calc(min(100vw, 1600px) * 0.232); line-height: .88; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; pointer-events: none; }
.dr-mast > span { display: inline-block; overflow: hidden; }
.dr-mast > span > span { display: inline-block; }
.darkroom.go .dr-mast > span > span { animation: up .9s var(--expo) both; animation-delay: calc(var(--i) * 55ms); }
.dr-dock { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.dr-range { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 48px; border-radius: 999px; background: rgba(233,233,231,.92); border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dr-range input { width: min(220px, 40vw); accent-color: var(--ink); }
.dr-note { display: block; margin-top: 14px; color: var(--mute); }
.dr-note[hidden] { display: none; }

@media (max-width: 1180px) { .ed.bl, .ed.bar { display: none; } .details { width: 250px; } .d-num { font-size: 60px; } }
@media (max-width: 860px) {
  .ed.ml, .ed.mr, .ed.lr { display: none; }
  .ed.tr { gap: 12px; }
  .ed.tr > span { display: none; }
  .hint { bottom: calc(env(safe-area-inset-bottom, 0px) + 138px); }
  .readout { width: 100%; order: -1; }
  #dock-full { flex-direction: column; align-items: stretch; }
  #dock-full .acts { justify-content: center; flex-wrap: wrap; }
  /* the data sheet becomes a bottom sheet behind the Info button */
  .details { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 72%; overflow: auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 18px) max(16px, env(safe-area-inset-left, 0px));
    background: var(--studio-hi); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: 0 -18px 40px -20px rgba(0,0,0,.4); transform: translateY(105%); z-index: 6; }
  .hero[data-state="back"] .details, .hero[data-state="full"] .details { opacity: 0; visibility: hidden; transform: translateY(105%); }
  .hero .details.open { opacity: 1; visibility: visible; transform: none; transition: transform .7s var(--expo), opacity .3s, visibility 0s; color: var(--ink); }
  .hero[data-state="full"] .details.open .d-top, .hero[data-state="full"] .details.open .d-k, .hero[data-state="full"] .details.open .d-grid dt { color: var(--mute); }
  .d-num { font-size: 54px; }
  .lv-hud svg { width: 92vw; }
  .dr-note { display: none; }
}
@media (min-width: 861px) { #infoBtn { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ready .mast > span > span, .about.in .ln > span, .about.in .e-photo img, .about.in .e-bar, .about.in .e-up, .about.in .drift, .swap .ln > span, .swap .d-pal span, .swap .d-grid dd, .readout.swap b, .readout.swap span, .darkroom.go .dr-mast > span > span { animation: none; }
  .blink.go, .flashfx.go, .rip { animation: none; }
  .lensview.open .lv-img, .lv-page { transition: none; }
}

/* custom properties that the markup used to set inline */
[data-d="0"] { --d: 0; }
[data-d="1"] { --d: 1; }
[data-d="2"] { --d: 2; }
[data-d="3"] { --d: 3; }
[data-d="4"] { --d: 4; }
[data-d="5"] { --d: 5; }
[data-i="0"] { --i: 0; }
[data-i="1"] { --i: 1; }
[data-i="2"] { --i: 2; }
[data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; }
[data-i="5"] { --i: 5; }
[data-i="6"] { --i: 6; }
[data-i="7"] { --i: 7; }
[data-i="8"] { --i: 8; }
[data-i="9"] { --i: 9; }
