/* ============================================================
   The Interactive CV — Hannah Kwakye's résumé as a transit map
   Palette: near-white map, 5 line colours, ink labels,
   dark departure board with amber signage type.
   ============================================================ */

@font-face {
  font-family: 'Overpass';
  src: url('../fonts/overpass-var.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Overpass Mono';
  src: url('../fonts/overpass-mono-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #FAFBFC;
  --paper: #FFFFFF;
  --ink: #1B2530;
  --muted: #5A6673;
  --faint: #99A3AE;
  --hair: #E3E8ED;
  --career: #E4572E;
  --skills: #17BEBB;
  --writing: #FFC914;
  --education: #76B041;
  --ai: #6C5CE7;
  --board-bg: #0E1420;
  --board-edge: #232F42;
  --amber: #FFC914;
  --board-text: #C7D3E2;
  --board-dim: #7C8AA0;
  --sans: 'Overpass', system-ui, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
::selection { background: var(--writing); color: var(--ink); }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; border-radius: 2px; }

.visually-hidden, #sr-live {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  font-weight: 700; text-decoration: none; border-radius: 0 0 6px 6px;
  transition: top 120ms ease;
}
.skip:focus-visible { top: 0; }

button { font-family: inherit; cursor: pointer; }
kbd {
  font-family: var(--mono); font-size: .82em; border: 1px solid var(--hair);
  border-bottom-width: 2px; border-radius: 4px; padding: 0 .32em; background: #fff;
}

/* ============================================================
   HEADER — transit signage bar
   ============================================================ */
.top {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem clamp(.8rem, 2vw, 1.4rem);
  flex-wrap: wrap;
}
.top::after {
  /* the five-line stripe, like the strip on a station sign */
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px; z-index: 29;
  background: linear-gradient(90deg,
    var(--career) 0 20%, var(--skills) 20% 40%, var(--writing) 40% 60%,
    var(--education) 60% 80%, var(--ai) 80% 100%);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand svg { display: block; }
.brand h1 { font-size: 1.02rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.brand .tag {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: .62rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase;
}
.top nav { margin-left: auto; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.top .navlink {
  font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: .45rem .5rem; border-radius: 4px;
}
.top .navlink:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.tbtn {
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: .78rem; letter-spacing: .03em;
  padding: .42rem .7rem .32rem; border-radius: 6px;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background 130ms ease, color 130ms ease, transform 130ms ease;
}
.tbtn:hover { background: var(--ink); color: #fff; }
.tbtn:active { transform: translateY(1px); }
.tbtn kbd { border-color: currentColor; background: transparent; color: inherit; opacity: .75; }
.tbtn.accent { background: var(--ink); color: #fff; }
.tbtn.accent:hover { background: var(--career); border-color: var(--career); }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app { flex: 1; display: flex; min-height: 0; position: relative; }
#mapwrap {
  flex: 1; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, #E9EEF2 1.3px, transparent 1.4px) 0 0 / 34px 34px,
    var(--bg);
}
#map {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab; display: block;
}
#map:active { cursor: grabbing; }

/* ---- SVG map styling ---- */
.sea { fill: #E1EEF6; }
.coast { fill: none; stroke: #AFCEE0; stroke-width: 3; stroke-linecap: round; }
.sea-lbl {
  font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .35em;
  fill: #8FB2C8; font-style: italic; text-anchor: middle;
}
.cart-box { fill: #FFFFFF; stroke: var(--ink); stroke-width: 2; }
.cart-title { font-family: var(--sans); font-size: 17px; font-weight: 800; fill: var(--ink); letter-spacing: .02em; }
.cart-sub { font-family: var(--mono); font-size: 11.5px; font-weight: 500; fill: var(--muted); letter-spacing: .08em; }

.track { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms ease; }
.casing { fill: none; stroke: var(--bg); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.line-cap { transition: opacity 200ms ease; }

.st { cursor: pointer; transition: opacity 200ms ease; }
.st .hit { fill: transparent; }
.st .halo { fill: transparent; transition: fill 150ms ease; }
.st:hover .halo, .st.sel .halo { fill: rgba(27, 37, 48, .07); }
.st .dot { fill: #fff; stroke-width: 3.5; transition: stroke-width 150ms ease; }
.st .dot.ink { stroke: var(--ink); stroke-width: 4; }
.st .pupil { fill: var(--ink); }
.st .ring2 { fill: none; stroke: var(--ink); stroke-width: 3; }
.st:hover .dot, .st.sel .dot { stroke-width: 5.5; }
.st .focusring { fill: none; stroke: transparent; stroke-width: 2.5; }
.st:focus { outline: none; }
.st:focus-visible .focusring { stroke: var(--ink); stroke-dasharray: 5 4; }
.st.sel .focusring { stroke: var(--ink); stroke-dasharray: none; stroke-opacity: .28; }

.lbl {
  font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--ink);
  paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round;
  transition: opacity 200ms ease;
}
.st:hover .lbl, .st.sel .lbl { font-weight: 800; }
.st.inter .lbl { font-weight: 800; }
.yr {
  font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--muted);
  paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round;
  transition: opacity 200ms ease;
}
.zoomed-out .yr { opacity: 0; }

/* legend hover → spotlight one line */
#map.focus-career .track:not([data-line="career"]),
#map.focus-skills .track:not([data-line="skills"]),
#map.focus-writing .track:not([data-line="writing"]),
#map.focus-education .track:not([data-line="education"]),
#map.focus-ai .track:not([data-line="ai"]) { opacity: .14; }
#map.focus-career .st:not(.on-career),
#map.focus-skills .st:not(.on-skills),
#map.focus-writing .st:not(.on-writing),
#map.focus-education .st:not(.on-education),
#map.focus-ai .st:not(.on-ai) { opacity: .18; }

/* the train */
.train-body { stroke: #fff; stroke-width: 3; }
.train-light { fill: #fff; }
.train-glow { opacity: .28; animation: pulse 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .28; } 50% { transform: scale(1.5); opacity: .1; } }

/* ---- zoom controls ---- */
.zoomctl {
  position: absolute; left: 14px; bottom: 14px; z-index: 20;
  display: flex; flex-direction: column; gap: 6px;
}
.zoomctl button {
  width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 800 1.05rem var(--sans);
  display: grid; place-items: center; padding-top: 3px;
  transition: background 130ms ease, color 130ms ease;
}
.zoomctl button:hover { background: var(--ink); color: #fff; }
.zoomctl .fitb { font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .06em; }

/* ============================================================
   DEPARTURE BOARD (side panel)
   ============================================================ */
#board {
  width: min(400px, 34vw); flex: none; background: var(--board-bg); color: var(--board-text);
  display: flex; flex-direction: column; min-height: 0; z-index: 25;
  border-left: 2px solid var(--ink);
}
.board-top {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1.1rem .55rem; border-bottom: 1px solid var(--board-edge);
  background: #0A0F18;
}
.board-brand {
  font-family: var(--mono); font-weight: 700; font-size: .78rem;
  letter-spacing: .32em; color: var(--amber); text-transform: uppercase;
}
#board-clock {
  margin-left: auto; font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; color: var(--board-dim);
}
#board-close {
  display: none; border: 1px solid var(--board-edge); background: transparent; color: var(--board-text);
  width: 30px; height: 30px; border-radius: 6px; font-size: .9rem;
}
#board-content { padding: 1.15rem 1.2rem 1.4rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--board-edge) transparent; }
#board-content::-webkit-scrollbar { width: 8px; }
#board-content::-webkit-scrollbar-thumb { background: var(--board-edge); border-radius: 4px; }

.board-kicker {
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--board-dim); margin-bottom: .7rem;
}
.board-title { font-size: 1.55rem; font-weight: 800; line-height: 1.12; color: #fff; margin-bottom: .8rem; }
.board-name { font-size: 1.42rem; font-weight: 800; line-height: 1.15; color: var(--amber); margin: .55rem 0 .5rem; overflow-wrap: break-word; }
.flap { display: inline-block; animation: flap 460ms cubic-bezier(.2, .7, .3, 1) both; transform-origin: 50% 50%; backface-visibility: hidden; }
@keyframes flap {
  0% { transform: rotateX(95deg); opacity: 0; }
  55% { transform: rotateX(-24deg); opacity: 1; }
  100% { transform: rotateX(0); }
}
.board-meta { display: flex; gap: .7rem; align-items: baseline; margin-bottom: .45rem; flex-wrap: wrap; }
.board-year { font-family: var(--mono); font-weight: 700; font-size: .82rem; color: #fff; background: var(--board-edge); padding: .16rem .5rem .06rem; border-radius: 4px; }
.board-kind { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--board-dim); }
.board-sub { font-weight: 600; color: #E8EEF6; margin-bottom: .6rem; }
.board-copy { font-size: .92rem; line-height: 1.62; color: var(--board-text); margin-bottom: .9rem; }
.board-link a { color: var(--amber); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.board-link { margin-bottom: .9rem; }
.board-hint { font-size: .78rem; line-height: 1.6; color: var(--board-dim); margin-top: 1rem; }
.board-hint kbd { background: var(--board-edge); border-color: #34425C; color: var(--board-text); }
.dot-sep { display: inline-block; margin: 0 .42em; }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; background: var(--cd, #333);
  border-left: 10px solid var(--c, #999);
  padding: .28rem .55rem .16rem; border-radius: 4px; white-space: nowrap;
}

.dep-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.dep-table th {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--board-dim); text-align: left; padding: .3rem .4rem .3rem 0; font-weight: 600;
  border-bottom: 1px solid var(--board-edge);
}
.dep-row td { padding: .55rem .4rem .45rem 0; border-bottom: 1px dashed var(--board-edge); vertical-align: middle; }
.dep-time { font-family: var(--mono); font-weight: 700; color: #fff; }
.dep-dest { color: var(--board-text); }
.dep-ride {
  font-family: var(--mono); font-weight: 700; font-size: .7rem; letter-spacing: .06em;
  color: var(--amber); background: transparent; border: 1px solid var(--amber);
  border-radius: 4px; padding: .3rem .5rem .2rem; white-space: nowrap;
  transition: background 130ms ease, color 130ms ease;
}
.dep-ride:hover { background: var(--amber); color: var(--board-bg); }

.board-actions { margin: .2rem 0 1.1rem; }
.btn-board {
  font-weight: 700; font-size: .82rem; width: 100%;
  background: var(--amber); color: #141000; border: 0; border-radius: 6px;
  padding: .68rem .9rem .56rem; transition: filter 130ms ease, transform 130ms ease;
}
.btn-board:hover { filter: brightness(1.08); }
.btn-board:active { transform: translateY(1px); }
.btn-board:disabled { opacity: .35; cursor: not-allowed; }
.btn-board.sm { width: auto; padding: .5rem .7rem .4rem; font-size: .76rem; }
.btn-board.ghost { background: transparent; color: var(--board-text); border: 1px solid var(--board-edge); }
.ride-controls { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .4rem; }

.ride-progress { display: flex; gap: 6px; margin-bottom: .8rem; }
.ride-tick { width: 14px; height: 6px; border-radius: 3px; background: var(--board-edge); }
.ride-tick.done { background: color-mix(in srgb, var(--c) 45%, var(--board-edge)); }
.ride-tick.here { background: var(--c); box-shadow: 0 0 8px var(--c); }

.conn-head {
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--board-dim); margin: .4rem 0 .5rem;
}
.conn-list { list-style: none; }
.conn {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .6rem; align-items: center; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px dashed var(--board-edge);
  padding: .5rem .2rem .45rem; color: var(--board-text);
  transition: background 130ms ease;
}
.conn:hover { background: rgba(255, 255, 255, .05); }
.conn-dot { grid-row: 1 / 3; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--c); }
.conn-name { font-weight: 700; color: #EDF2F9; font-size: .88rem; }
.conn-meta { grid-column: 2; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--board-dim); }
.board-back {
  margin-top: 1rem; background: transparent; border: 0; color: var(--board-dim);
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  padding: .4rem 0;
}
.board-back:hover { color: var(--amber); }

/* ============================================================
   FOOTER — legend + credit
   ============================================================ */
.foot {
  border-top: 2px solid var(--ink); background: var(--paper); z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .45rem clamp(.8rem, 2vw, 1.4rem); flex-wrap: wrap;
}
.legend { display: flex; gap: .25rem; flex-wrap: wrap; }
.leg {
  display: inline-flex; align-items: center; gap: .42rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted);
  padding: .3rem .5rem .2rem; border-radius: 5px;
  transition: background 130ms ease, color 130ms ease;
}
.leg i { width: 20px; height: 7px; border-radius: 4px; background: var(--c); }
.leg:hover, .leg:focus-visible { background: var(--ink); color: #fff; }
.credit {
  margin-left: auto; font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; color: var(--muted);
}
.credit a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.credit a:hover { color: var(--career); }

/* ============================================================
   DIALOGS — palette + about
   ============================================================ */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(14, 20, 32, .55); backdrop-filter: blur(2px); }

#palette { margin: min(12vh, 120px) auto auto; width: min(600px, calc(100vw - 2rem)); }
.pal-box {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(14, 20, 32, .28); overflow: hidden;
}
.pal-head { display: flex; align-items: center; gap: .6rem; border-bottom: 2px solid var(--ink); padding: 0 1rem; }
.pal-head svg { flex: none; }
#pal-input {
  flex: 1; border: 0; outline: none; font: 600 1.02rem var(--sans); color: var(--ink);
  padding: .95rem 0 .8rem; background: transparent; min-width: 0;
}
#pal-input::placeholder { color: var(--muted); font-weight: 500; }
.pal-esc { font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
#pal-list { list-style: none; max-height: min(46vh, 420px); overflow-y: auto; padding: .4rem; }
#pal-list li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .65rem; align-items: center;
  padding: .5rem .6rem .42rem; border-radius: 8px; cursor: pointer;
}
#pal-list li.active { background: var(--ink); }
#pal-list li.active .pal-label { color: #fff; }
#pal-list li.active .pal-meta { color: #A9B6C6; }
.pal-dot { grid-row: 1 / 3; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3.5px solid var(--c); }
.pal-label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.pal-meta { grid-column: 2; font-family: var(--mono); font-size: .66rem; color: var(--muted); letter-spacing: .04em; }
.pal-empty { color: var(--muted); font-size: .88rem; cursor: default !important; }
.pal-foot {
  border-top: 1px solid var(--hair); padding: .5rem 1rem; display: flex; gap: 1rem;
  font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .04em;
}

#about { margin: auto; width: min(640px, calc(100vw - 2rem)); }
.about-box {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
  padding: clamp(1.2rem, 3vw, 2rem); max-height: 84vh; overflow-y: auto; position: relative;
  box-shadow: 0 24px 60px rgba(14, 20, 32, .28);
}
.about-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .9rem; padding-right: 2.5rem; }
.about-box h3 {
  font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin: 1.3rem 0 .5rem;
}
.about-box p, .about-box li { font-size: .93rem; line-height: 1.65; color: #37424E; }
.about-box p + p { margin-top: .6rem; }
.about-box ul { list-style: none; }
.about-box li { padding: .28rem 0; border-bottom: 1px dashed var(--hair); display: flex; gap: .8rem; justify-content: space-between; flex-wrap: wrap; }
.about-box li kbd { flex: none; }
.about-box a { color: var(--ink); font-weight: 700; }
.about-box a:hover { color: var(--career); }
.dlg-close {
  position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--paper);
  font-size: 1rem; font-weight: 700; line-height: 1;
}
.dlg-close:hover { background: var(--ink); color: #fff; }
.about-legend { display: grid; gap: .4rem; margin: .4rem 0; }
.about-legend .row { display: flex; align-items: center; gap: .7rem; border: 0; padding: .1rem 0; }
.about-legend i { width: 34px; height: 9px; border-radius: 5px; background: var(--c); flex: none; }
.about-legend b { font-size: .9rem; }
.about-legend span { font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* ============================================================
   CLASSIC CV — screen overlay + @media print
   ============================================================ */
#classic {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  background: rgba(14, 20, 32, .6); backdrop-filter: blur(3px);
  padding: 3.6rem 1rem 3rem;
}
.classic-tools {
  position: fixed; top: .8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 110;
}
.classic-tools .tbtn { box-shadow: 0 4px 14px rgba(14, 20, 32, .35); }
.cv-sheet {
  width: min(780px, 100%); margin: 0 auto; background: #fff; color: #1B2530;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.4rem, 4.5vw, 3.2rem);
  box-shadow: 0 30px 80px rgba(10, 15, 24, .45); border-radius: 4px;
}
.cv-stripes { display: flex; height: 8px; margin-bottom: 1.6rem; border-radius: 4px; overflow: hidden; }
.cv-stripes i { flex: 1; }
.cv-stripes i:nth-child(1) { background: var(--career); }
.cv-stripes i:nth-child(2) { background: var(--skills); }
.cv-stripes i:nth-child(3) { background: var(--writing); }
.cv-stripes i:nth-child(4) { background: var(--education); }
.cv-stripes i:nth-child(5) { background: var(--ai); }
.cv-sheet .sep { display: inline-block; margin: 0 .4em; color: var(--muted); }
.cv-name { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.02; }
.cv-role { font-weight: 600; color: #37424E; margin-top: .35rem; font-size: 1.02rem; }
.cv-contact { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; color: var(--muted); margin-top: .5rem; }
.cv-contact a { color: inherit; }
.cv-profile {
  margin: 1.3rem 0 1.5rem; padding: .9rem 1.1rem; border-left: 4px solid var(--career);
  background: #F6F8FA; font-size: .95rem; line-height: 1.65; color: #2B3540;
}
.cv-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.2rem; }
.cv-sheet h3 {
  font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid var(--ink); padding-bottom: .3rem; margin: 1.3rem 0 .8rem;
}
.cv-sheet h3:first-child { margin-top: 0; }
.cv-entry { margin-bottom: .95rem; }
.cv-entry h4 { font-size: .95rem; font-weight: 800; }
.cv-entry .where { font-size: .84rem; font-weight: 600; color: #37424E; }
.cv-entry .when { font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .05em; }
.cv-entry p { font-size: .85rem; line-height: 1.55; color: #414D5A; margin-top: .25rem; }
.cv-skills { list-style: none; }
.cv-skills li {
  font-size: .84rem; padding: .3rem 0 .24rem; border-bottom: 1px dashed var(--hair);
  display: flex; align-items: baseline; gap: .55rem; line-height: 1.4;
}
.cv-skills i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(1px); }
.cv-note { font-size: .76rem; line-height: 1.6; color: var(--muted); }
.cv-foot {
  margin-top: 1.8rem; padding-top: .8rem; border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .68rem; color: var(--muted); letter-spacing: .04em;
}
.cv-foot a { color: var(--ink); font-weight: 700; }

/* ============================================================
   NOSCRIPT
   ============================================================ */
.noscript-note {
  background: var(--writing); color: var(--ink); padding: .7rem 1.2rem;
  font-weight: 600; font-size: .9rem; text-align: center;
}

/* ============================================================
   RESPONSIVE — board becomes a bottom sheet
   ============================================================ */
@media (max-width: 900px) {
  #board {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; z-index: 40;
    max-height: min(62dvh, 520px); border-left: 0; border-top: 2px solid var(--ink);
    transform: translateY(calc(100% - 46px));
    transition: transform 260ms cubic-bezier(.3, .8, .3, 1);
    border-radius: 14px 14px 0 0; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .foot { margin-bottom: 46px; }
  #board.open { transform: translateY(0); }
  .board-top { cursor: pointer; border-radius: 14px 14px 0 0; padding-top: .8rem; position: relative; }
  .board-top::before {
    content: ''; position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
    width: 44px; height: 4px; border-radius: 2px; background: var(--board-edge);
  }
  #board-close { display: grid; place-items: center; }
  .foot { padding-bottom: .5rem; }
  .credit { margin-left: 0; width: 100%; }
  .zoomctl { bottom: 60px; }
  .top .navlink.hide-sm, .tbtn.hide-sm { display: none; }
  .brand h1 { font-size: .92rem; }
}
@media (max-width: 560px) {
  .tbtn span.lbl-txt, .tbtn .kbd-hint { display: none; }
  .tbtn { padding: .42rem .55rem .32rem; }
  .legend .leg { padding: .3rem .3rem .2rem; font-size: .6rem; }
  .legend .leg i { width: 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .flap { animation: none; }
  .train-glow { animation: none; }
  #board { transition: none; }
}

/* ============================================================
   PRINT — the classic one-page CV
   ============================================================ */
@media print {
  @page { size: A4; margin: 12mm; }
  body { height: auto; overflow: visible; background: #fff; display: block; }
  .top, .app, .foot, dialog, .skip, .zoomctl, .classic-tools, .noscript-note { display: none !important; }
  #classic {
    display: block !important; position: static; padding: 0; background: none; overflow: visible;
  }
  #classic[hidden] { display: block !important; }
  .cv-sheet { box-shadow: none; width: 100%; padding: 0; border-radius: 0; }
  .cv-sheet, .cv-entry, .cv-skills li { break-inside: avoid-page; }
  .cv-stripes, .cv-profile, .cv-skills i, .cv-sheet h3, .cv-foot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cv-name { font-size: 26pt; }
  .cv-entry p { color: #333; }
  a { text-decoration: none; color: inherit; }
}
