/* pages.css — the three rooms. Shared chrome for /bio, /hardware and
   /software: a full-bleed stage, glass panels, and the same pill nav as
   home so the site still feels like one house. */

.room { margin: 0; min-height: 100vh; }
.stage { position: fixed; inset: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel {
  position: absolute; z-index: 2; border-radius: 16px; padding: 16px 18px;
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
}
.title { position: absolute; z-index: 2; left: 5vw; top: 96px; max-width: 420px; pointer-events: none; }
.title h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.02em; margin: 0 0 14px; }
.title p { margin: 0; font-size: 15.5px; text-wrap: pretty; }
.title .lbl { margin-bottom: 12px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; }
.seg button {
  font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 14px; border: 0; border-radius: 999px; background: none; color: inherit; opacity: 0.7; cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease, color 180ms ease;
}
.seg button:hover { opacity: 1; }
.seg button.on { opacity: 1; }
.lbl { font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.num { font-family: var(--display); font-weight: 750; font-variant-numeric: tabular-nums; }

/* ── bio ─────────────────────────────────────────── */
.bio-room { background: #16080f; color: #f5e6ec; transition: background 700ms ease, color 500ms ease; }
.bio-room.stained { background: #f4dde6; color: #3a1426; }
.bio-room.fluor { background: #020204; color: #e8ecff; }
.bio-room .title .k { color: var(--bio); }
.bio-room .panel { background: rgba(40, 12, 24, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 143, 181, 0.16); }
.bio-room.stained .panel { background: rgba(255, 245, 249, 0.72); box-shadow: inset 0 0 0 1px rgba(160, 60, 100, 0.2); }
.bio-room.fluor .panel { background: rgba(10, 12, 24, 0.62); box-shadow: inset 0 0 0 1px rgba(120, 150, 255, 0.18); }

.census { right: 24px; top: 88px; width: 250px; display: grid; gap: 12px; }
.census .row { display: flex; justify-content: space-between; align-items: baseline; }
.census .num { font-size: 26px; }
.cycle { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.cycle i { display: block; transition: flex-grow 400ms ease; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font: 500 10.5px var(--mono); letter-spacing: 0.04em; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend b { width: 8px; height: 8px; border-radius: 2px; }
.ph-g1 { background: #ff8fb5; } .ph-s { background: #ffd166; } .ph-g2 { background: #7ad3c0; } .ph-m { background: #a98bff; }

.inspect { right: 24px; top: 400px; width: 250px; display: grid; gap: 10px; opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity 300ms ease, transform 400ms var(--spring); }
.inspect.open { opacity: 1; transform: none; pointer-events: auto; }
.inspect h3 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 750; line-height: 1; }
.inspect .phase { font-size: 15px; }
.ring { height: 6px; border-radius: 3px; background: rgba(127, 127, 127, 0.25); overflow: hidden; }
.ring i { display: block; height: 100%; background: linear-gradient(90deg, #ff8fb5, #ffd166 34%, #7ad3c0 56%, #a98bff 68%); }
.inspect dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font: 400 12.5px var(--mono); }
.inspect dt { opacity: 0.6; } .inspect dd { margin: 0; text-align: right; }
.inspect button { justify-self: start; font: 500 11px var(--mono); background: none; border: 0; color: inherit; opacity: 0.7; cursor: pointer; padding: 0; }

.scope { left: 50%; bottom: 22px; transform: translateX(-50%); padding: 6px; display: flex; align-items: center; gap: 10px; border-radius: 999px; }
.scope .lbl { padding-left: 12px; }
.bio-room .seg button.on { background: var(--bio); color: #fff; }
.bio-room.fluor .seg button.on { background: #2f6bff; }
.hint2 { position: absolute; z-index: 2; left: 5vw; bottom: 30px; font: 500 11.5px var(--mono); letter-spacing: 0.04em; opacity: 0.6; max-width: 280px; }

@media (max-width: 860px) {
  .title { top: 84px; left: 18px; right: 18px; }
  .title p { display: none; }
  .census { top: auto; bottom: 80px; right: 12px; left: 12px; width: auto; grid-template-columns: 1fr 1fr; }
  .census .legend, .census .cycle { grid-column: 1 / -1; }
  .inspect { top: 160px; right: 12px; left: 12px; width: auto; }
  .hint2 { display: none; }
  .scope { bottom: 14px; }
}

/* ── hardware ────────────────────────────────────── */
.hw-room { background: var(--paper); color: var(--ink); }
.hw-room .stage { z-index: 0; }
.hw-track { height: 1200vh; }
.hw-room .title .k { color: var(--hw); }
.hw-room .title p { color: var(--ink-2); }
.hw-room .stage-card { position: absolute; z-index: 2; left: 5vw; top: calc(96px + 250px); width: 360px; margin: 0; }
.stage-card .kids { display: flex; gap: 5px; margin-top: 10px; }
.stage-card .kids i { flex: 1; height: 3px; border-radius: 2px; background: rgba(23, 23, 26, 0.1); transition: background 300ms ease; }
.stage-card .kids i.done { background: var(--teal); }
.stage-card .kids i.now { background: var(--hw); }
.hw-room .progress { position: absolute; z-index: 2; bottom: 88px; }
.hw-room .subnav { z-index: 3; }
#callouts { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.callout { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 280ms ease; }
.callout.on { opacity: 1; }
.callout i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--hw); box-shadow: 0 0 0 4px rgba(200, 80, 43, 0.22); }
.callout span { position: absolute; width: 56px; height: 1.5px; background: var(--ink); transform-origin: 0 0; transform: rotate(-38deg); }
.callout b {
  position: absolute; left: 44px; top: -52px; white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  font: 500 12px var(--mono); letter-spacing: 0.02em; background: var(--ink); color: var(--paper);
}
.callout.left span { transform: rotate(-142deg); }
.callout.left b { left: auto; right: 44px; }
.end {
  position: absolute; z-index: 3; right: 24px; top: 88px; width: 280px; display: grid; gap: 12px;
  background: rgba(255, 255, 255, 0.78); box-shadow: 0 0 0 1px rgba(23, 23, 26, 0.08), 0 14px 40px rgba(0, 0, 0, 0.08);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 300ms ease, transform 400ms var(--spring);
}
.end.on { opacity: 1; transform: none; pointer-events: auto; }
.end input[type=range] { width: 100%; accent-color: var(--teal); }
.end .go {
  font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 12px; border: 0; border-radius: 10px;
  background: var(--hw); color: #fff; cursor: pointer; transition: transform 160ms var(--spring), filter 160ms ease;
}
.end .go:hover { filter: brightness(1.08); } .end .go:active { transform: scale(0.97); }
.end a.go { display: block; text-align: center; text-decoration: none; }
.end .go.ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(23, 23, 26, 0.18); }
.keys { display: none; font: 500 11.5px var(--mono); line-height: 1.8; color: var(--ink-2); }
.keys kbd { display: inline-block; min-width: 22px; text-align: center; padding: 1px 5px; border-radius: 5px; background: var(--ink); color: var(--paper); font: inherit; }
body.driving .keys { display: block; }
body.driving .title, body.driving .stage-card, body.driving .progress, body.driving .subnav { opacity: 0; pointer-events: none; }
body.driving { overflow: hidden; }
@media (max-width: 860px) {
  .hw-room .stage-card { top: 150px; left: 14px; right: 14px; width: auto; }
  .hw-room .title h1 { font-size: 44px; }
  .end { top: auto; bottom: 150px; left: 14px; right: 14px; width: auto; }
  .callout b { font-size: 10.5px; }
}

/* ── software: samaOS ─────────────────────────────── */
.sw-room { background: radial-gradient(1200px 700px at 70% 20%, #16204a 0%, #07090f 60%) fixed; color: #e6e9f5; }
.sw-room .title { position: static; padding: 84px 5vw 0; max-width: none; pointer-events: auto; display: grid; grid-template-columns: auto 1fr; column-gap: 32px; align-items: end; }
.sw-room .title .lbl { grid-column: 1 / -1; }
.sw-room .title h1 { margin: 0; }
.sw-room .title .k { color: var(--sw); }
.sw-room .title p { color: rgba(230, 233, 245, 0.7); max-width: 60ch; }
.os {
  margin: 22px 5vw 0; height: calc(100vh - 250px); min-height: 460px; display: grid; grid-template-columns: 360px 1fr; gap: 14px;
}
.win { border-radius: 14px; overflow: hidden; background: rgba(14, 17, 28, 0.86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -30px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; min-height: 0; }
.bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255, 255, 255, 0.04); font: 500 11.5px var(--mono); color: #8a91b0; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3350; }
.bar i:nth-child(1) { background: #ff6b6b; } .bar i:nth-child(2) { background: #ffd166; } .bar i:nth-child(3) { background: #5fe0a8; }
.bar span { margin-left: 8px; }
.os-out { flex: 1; overflow-y: auto; padding: 12px 14px 4px; font: 400 12.5px/1.65 var(--mono); }
.os-out .ln { white-space: pre-wrap; word-break: break-word; }
.os-out .dim { color: #8a91b0; } .os-out .hot { color: #ff7a59; } .os-out .pr { color: var(--sw); }
.os-out a { color: #9db1ff; text-decoration: underline; text-underline-offset: 3px; }
.cmd { font: inherit; color: #9db1ff; background: rgba(109, 139, 255, 0.12); border: 0; border-radius: 4px; padding: 0 5px; cursor: pointer; }
.cmd:hover { background: rgba(109, 139, 255, 0.28); }
.prompt { display: flex; gap: 8px; align-items: center; padding: 10px 14px 14px; font: 400 12.5px var(--mono); }
.prompt span { color: var(--sw); white-space: nowrap; }
.prompt input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: inherit; font: inherit; caret-color: #ff7a59; }
.screen { position: relative; flex: 1; min-height: 0; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.os-stats { align-items: center; display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 14px; font: 400 11.5px var(--mono); background: rgba(255, 255, 255, 0.03); min-height: 38px; }
.os-stats span { display: flex; gap: 7px; } .os-stats em { font-style: normal; color: #8a91b0; } .os-stats b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.os-controls { margin-left: auto; display: flex; gap: 6px; }
.os-controls button, .dock button {
  font: 500 11px var(--mono); letter-spacing: 0.04em; color: #cfd6f5; background: rgba(255, 255, 255, 0.06); border: 0; border-radius: 7px;
  padding: 6px 10px; cursor: pointer; transition: background 150ms ease, transform 150ms var(--spring);
}
.os-controls button:hover, .dock button:hover { background: rgba(109, 139, 255, 0.3); }
.os-controls button:active, .dock button:active { transform: scale(0.96); }
.dock { display: flex; gap: 8px; justify-content: center; margin: 14px auto 18px; padding: 8px; width: max-content; max-width: calc(100vw - 24px); overflow-x: auto; border-radius: 16px; background: rgba(20, 24, 40, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dock button { display: grid; gap: 3px; justify-items: center; padding: 9px 14px; font-size: 11px; }
.dock button b { font: 400 18px var(--mono); color: #fff; }
.dock button.on { background: var(--sw); color: #fff; }
@media (max-width: 860px) {
  .sw-room { overflow: auto; }
  .os { grid-template-columns: 1fr; grid-template-rows: 240px 420px; height: auto; margin: 18px 12px 0; }
  .sw-room .title { padding: 88px 18px 0; }
  .os-controls { margin-left: 0; }
}
.os-foot { display: flex; align-items: center; gap: 10px; padding-right: 10px; background: rgba(255, 255, 255, 0.03); flex-wrap: wrap; }
.os-foot .os-stats { background: none; flex: 1; }
@media (max-width: 860px) { .sw-room .title { grid-template-columns: 1fr; } }
.sw-room .dock { position: fixed; z-index: 10; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sw-room .os { height: calc(100vh - 330px); margin-bottom: 110px; }
@media (max-width: 860px) { .sw-room .os { height: auto; } }

/* ── bio: the flow dashboard, in the dish's own glass ── */
.flow { right: 22px; top: 80px; width: 330px; display: grid; gap: 10px; padding: 14px 16px 12px; }
.fl-head { display: flex; justify-content: space-between; align-items: center; }
.fl-rec { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; opacity: 0.75; }
.fl-rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 8px #ff4d6d; animation: blink 1.2s steps(1) infinite; }
.fl-chain { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 10.5px; }
.fl-chain span { white-space: nowrap; }
.fl-chain em { font-style: normal; opacity: 0.55; margin-right: 4px; }
.fl-chain small { color: var(--bio); font-size: 10px; }
.fl-chain i { font-style: normal; opacity: 0.4; }
.bio-room.fluor .fl-chain small { color: #7fa6ff; }
.bio-room.stained .fl-chain small { color: #8a1f4f; }
.flow canvas { display: block; width: 100%; border-radius: 8px; }
.fl-hist { height: 120px; }
.fl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fl-pair canvas { height: 96px; }
.fl-phases { display: grid; gap: 6px; font-size: 11.5px; }
.fl-phases div { display: grid; grid-template-columns: 1fr auto; row-gap: 3px; }
.fl-phases em { font-style: normal; opacity: 0.5; font-size: 10.5px; margin-left: 4px; }
.fl-phases b { font-weight: 500; font-variant-numeric: tabular-nums; }
.fl-phases i { grid-column: 1 / -1; display: block; height: 4px; width: 0; border-radius: 2px; transition: width 400ms ease; }
.fl-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; opacity: 0.7; }
.fl-foot.dim2 { opacity: 0.5; }
.fl-foot b { font-weight: 500; }
.bio-room .inspect { top: auto; bottom: 86px; left: 5vw; right: auto; }
@media (max-width: 860px) { .flow { top: auto; bottom: 70px; left: 12px; right: 12px; width: auto; max-height: 52vh; overflow-y: auto; } }
.stage .flow canvas { position: static; inset: auto; }
.bio-room .stage::before { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 620px 380px at 0% 16%, rgba(22, 8, 15, 0.82), rgba(22, 8, 15, 0) 72%); }
.bio-room.stained .stage::before { background: radial-gradient(ellipse 620px 380px at 0% 16%, rgba(244, 221, 230, 0.85), rgba(244, 221, 230, 0) 72%); }
.bio-room.fluor .stage::before { background: radial-gradient(ellipse 620px 380px at 0% 16%, rgba(2, 2, 4, 0.85), rgba(2, 2, 4, 0) 72%); }

/* ── resume: a sheet that rises over each room's simulation ─────── */
.record { position: relative; z-index: 20; margin-top: 100vh; padding: 0 16px 12vh; --rk: var(--hw); --rbg: #fbfaf6; --rfg: var(--ink); --rdim: #5f5d57; --rrule: rgba(23, 23, 26, 0.12); }
.bio-room .record { --rk: var(--bio); --rbg: #1f0c16; --rfg: #f6e8ee; --rdim: #b99aa8; --rrule: rgba(255, 143, 181, 0.16); }
.hw-room .record { margin-top: 0; }
.rec-in { max-width: 980px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 64px) 48px; border-radius: 28px; background: var(--rbg); color: var(--rfg);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--rrule); }
.rec-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--rrule); }
.rec-k { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.08em; color: var(--rk); }
.rec-head h2 { margin: 0 0 12px; font: 800 clamp(40px, 6vw, 72px)/0.95 var(--display, "Anybody", sans-serif); font-stretch: 120%; letter-spacing: -0.03em; }
.rec-lede { margin: 0 0 18px; max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--rdim); }
.rec-pdf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 13px; text-decoration: none; background: var(--rk); color: #fff; transition: transform 160ms cubic-bezier(0.32, 0.72, 0, 1); }
.rec-pdf:active { transform: scale(0.97); }
.job { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rrule); }
.job:last-of-type { border-bottom: 0; }
.job .when { margin: 3px 0 0; font: 500 12.5px var(--mono); color: var(--rdim); font-variant-numeric: tabular-nums; }
.job h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.job .org { margin: 0 0 12px; font-size: 14px; color: var(--rdim); }
.job ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.job li { font-size: 15.5px; line-height: 1.55; }
.job li::marker { color: var(--rk); }
.jlinks { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.jlinks a { font: 500 13px var(--mono); color: var(--rk); text-decoration: none; }
.jlinks a:hover { text-decoration: underline; }
.rec-foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rrule); font-size: 13px; color: var(--rdim); }
.nav-rec { font-weight: 600; }
@media (max-width: 700px) {
  .job { grid-template-columns: 1fr; gap: 6px; }
  .rec-in { border-radius: 22px; padding-top: 40px; }
}

/* the resume fills the screen once you reach it */
.record { padding: 0; }
.rec-in { max-width: none; min-height: 100vh; border-radius: 28px 28px 0 0; padding: 96px max(24px, calc((100vw - 980px) / 2)) 14vh; box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.35); }
@media (max-width: 700px) { .rec-in { border-radius: 22px 22px 0 0; padding: 84px 20px 12vh; } }
.job li b { font-weight: 650; }

/* the resume cue under the nav */
.rec-cue { position: fixed; z-index: 15; top: 76px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 13px; text-decoration: none; white-space: nowrap; color: #fff; background: var(--hw); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  transition: opacity 300ms ease, transform 400ms cubic-bezier(0.32, 0.72, 0, 1); animation: cueIn 700ms 900ms cubic-bezier(0.32, 0.72, 0, 1) both; }
.bio-room .rec-cue { background: var(--bio); }
.rec-cue i { font-style: normal; display: inline-block; animation: cueBob 1.4s ease-in-out infinite; }
.rec-cue:hover { filter: brightness(1.08); }
.rec-cue:active { transform: translateX(-50%) scale(0.97); }
.rec-cue.gone { opacity: 0; pointer-events: none; transform: translate(-50%, -10px); }
body.driving .rec-cue, .dive.open ~ .rec-cue { opacity: 0; pointer-events: none; }
@keyframes cueIn { from { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes cueBob { 50% { transform: translateY(3px); } }
@media (max-width: 700px) { .rec-cue { top: 64px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .rec-cue, .rec-cue i { animation: none; } }

/* publications & conferences, first thing in the bio resume */
.pubs { padding: 26px 0 30px; border-bottom: 1px solid var(--rrule); }
.pubs-h { margin: 0 0 16px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pubs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pubs-list li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; font-size: 15.5px; line-height: 1.55; }
.pubs-list .pk { font-size: 12px; color: var(--rk); padding-top: 3px; }
.pubs-list a { font: 500 12.5px var(--mono); color: var(--rk); text-decoration: none; margin-left: 8px; white-space: nowrap; }
.pubs-list a:hover { text-decoration: underline; }
@media (max-width: 700px) { .pubs-list li { grid-template-columns: 1fr; gap: 2px; } }

/* publications & conferences: the headline of the bio resume */
.pubs { padding: 40px 0 44px; }
.pubs-h { margin: 0 0 28px; font: 800 clamp(34px, 4.4vw, 54px)/1 var(--display); font-stretch: 115%; letter-spacing: -0.02em; }
.pubs-list { gap: 26px; }
.pubs-list li { grid-template-columns: 230px 1fr; gap: 28px; font-size: 17.5px; line-height: 1.55; align-items: baseline; }
.pubs-list .pk { font: 800 clamp(22px, 2.3vw, 30px)/1.05 var(--display); font-stretch: 110%; letter-spacing: -0.01em; padding-top: 0; color: var(--rk); }
.pubs-list li > div { font-weight: 500; }
.pubs-list a { font-size: 13.5px; font-weight: 600; }
@media (max-width: 700px) { .pubs-list li { grid-template-columns: 1fr; gap: 6px; } .pubs-list .pk { font-size: 24px; } }

/* a notch smaller */
.pubs-h { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 24px; }
.pubs-list { gap: 20px; }
.pubs-list li { grid-template-columns: 200px 1fr; font-size: 16.5px; }
.pubs-list .pk { font-size: clamp(19px, 1.9vw, 24px); }
.awards .pubs-list li > div { font-weight: 400; }
.awards .pubs-list li b { font-weight: 700; }

/* ════════ keycaps in the rooms ════════ */
.bio-room .scope { border-radius: 14px; padding: 6px 6px 9px; }
.seg { border-radius: 12px; gap: 6px; padding: 0; }
.seg button { border-radius: var(--key-r, 7px); min-height: 40px; letter-spacing: 0.02em; text-transform: none; font-size: 12px; opacity: 1;
  background: rgba(127, 127, 127, 0.14); box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.22), 0 3px 0 rgba(0, 0, 0, 0.35);
  transition: transform 120ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 120ms ease, background 150ms ease; }
.seg button:hover { background: rgba(127, 127, 127, 0.22); }
.seg button:active, .seg button.on { transform: translateY(2px); }
.bio-room .seg button.on { background: var(--bio); color: #fff; box-shadow: 0 0 0 1px #b23a66, 0 1px 0 #b23a66; }
.bio-room.fluor .seg button.on { background: #2f6bff; box-shadow: 0 0 0 1px #1d48b8, 0 1px 0 #1d48b8; }

.rec-pdf { border-radius: var(--key-r, 7px); background: var(--rk); color: #fff; box-shadow: 0 3px 0 var(--rk-edge, rgba(0, 0, 0, 0.4)); transition: transform 120ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 120ms ease, filter 150ms ease; }
.rec-pdf:hover { filter: brightness(1.06); }
.rec-pdf:active { transform: translateY(3px); box-shadow: 0 0 0 var(--rk-edge, rgba(0, 0, 0, 0.4)); }
.record { --rk-edge: #8f3518; }
.bio-room .record { --rk-edge: #b23a66; }

.rec-cue { border-radius: var(--key-r, 7px); min-height: 44px; box-shadow: 0 3px 0 #8f3518, 0 12px 28px -12px rgba(0, 0, 0, 0.45); transition: opacity 300ms ease, transform 120ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 120ms ease; }
.bio-room .rec-cue { box-shadow: 0 3px 0 #b23a66, 0 12px 28px -12px rgba(0, 0, 0, 0.45); }
.rec-cue:active { transform: translate(-50%, 3px); box-shadow: 0 0 0 transparent; }

.end .go { border-radius: var(--key-r, 7px); min-height: 44px; box-shadow: 0 3px 0 #8f3518; transition: transform 120ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 120ms ease, filter 150ms ease; }
.end .go:active { transform: translateY(3px); box-shadow: 0 0 0 #8f3518; }
.end .go.ghost { background: #fbfaf6; color: var(--ink); box-shadow: 0 0 0 1px rgba(23, 23, 26, 0.18), 0 3px 0 #d4d0c4; }
.end .go.ghost:active { box-shadow: 0 0 0 1px rgba(23, 23, 26, 0.18), 0 0 0 #d4d0c4; }
@media (prefers-reduced-motion: reduce) { .seg button:active, .seg button.on, .rec-pdf:active, .end .go:active { transform: none; } .rec-cue:active { transform: translateX(-50%); } }
.end .go { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* side projects heading in the hardware resume */
.side-h { margin: 34px 0 0; padding-top: 30px; border-top: 1px solid var(--rrule); font: 800 clamp(26px, 3vw, 36px)/1 var(--display); font-stretch: 115%; letter-spacing: -0.02em; }
.job-bare h3 { margin: 0; }
.side-h { border-top: 0; padding-top: 0; margin-top: 40px; }
