/* Anastasia Rychkova, portfolio
   Concept: clinical precision, human warmth.
   Signature: a collection-tube rack in CLSI order of draw. */

:root {
  /* Surfaces */
  --paper: oklch(97.6% 0.006 80);
  --paper-hi: oklch(99.2% 0.004 80);
  --clinic: oklch(94.2% 0.013 238);
  /* Text */
  --ink: oklch(23% 0.035 258);
  --ink-2: oklch(38% 0.03 256);
  --muted: oklch(47% 0.025 250);
  /* Lines */
  --rule: oklch(87% 0.012 250);
  --rule-strong: oklch(23% 0.035 258);
  /* Accent: the red of her scrubs, deepened for text contrast */
  --crimson: oklch(46% 0.165 22);
  --crimson-deep: oklch(39% 0.15 22);
  /* Order of draw, cap colours */
  --t-culture: oklch(86% 0.15 96);
  --t-citrate: oklch(77% 0.085 235);
  --t-serum: oklch(53% 0.19 27);
  --t-sst: oklch(71% 0.135 76);
  --t-heparin: oklch(53% 0.11 155);
  --t-edta: oklch(67% 0.1 300);
  --t-fluoride: oklch(69% 0.01 250);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--crimson-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--crimson); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

[id] { scroll-margin-top: calc(var(--header-h) + 28px); }

/* Utility voice: Instrument Sans at condensed width, used for labels and field names. */
.eyebrow, .rack-tag, .label-issuer, .fields dt, .stat dt, .group-title,
.job-when, .role-dates, .edu-kind, .verify, .legend, .legend-title, .hero-meta {
  font-stretch: 78%;
  letter-spacing: 0.06em;
}

/* ---------- Tube drawing (styles reach into the <use> clones) ---------- */
.tube { display: block; overflow: visible; }
.tube-glass { fill: oklch(99.3% 0.004 80 / 0.92); stroke: oklch(74% 0.018 250); stroke-width: 1.1; }
.tube-label { fill: var(--paper-hi); stroke: oklch(84% 0.012 250); stroke-width: 0.8; }
.tube-label-lines { stroke: oklch(78% 0.014 250); stroke-width: 1; stroke-linecap: round; fill: none; }
.tube-ribs { stroke: oklch(22% 0.03 258 / 0.2); stroke-width: 1.3; stroke-linecap: round; fill: none; }
.tube-shade { fill: oklch(22% 0.03 258 / 0.16); }
.tube-shine { fill: oklch(100% 0 0 / 0.38); }

[data-tube="culture"] { color: var(--t-culture); }
[data-tube="citrate"] { color: var(--t-citrate); }
[data-tube="serum"] { color: var(--t-serum); }
[data-tube="sst"] { color: var(--t-sst); }
[data-tube="heparin"] { color: var(--t-heparin); }
[data-tube="edta"] { color: var(--t-edta); }
[data-tube="fluoride"] { color: var(--t-fluoride); }

.rack { display: flex; align-items: flex-end; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-size: 0.95rem; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 24;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-variation-settings: "opsz" 24; }

.nav-inline ul { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-inline a {
  color: var(--ink-2); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 8px 0; position: relative;
}
.nav-inline a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--crimson); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-inline a:hover { color: var(--ink); }
.nav-inline a:hover::after { transform: scaleX(1); }

.nav-menu { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px;
  font-weight: 500; font-size: 0.95rem; color: var(--ink);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after {
  content: ""; width: 18px; height: 8px;
  border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
}
.nav-menu[open] summary::after { height: 0; border-bottom: 0; transform: translateY(1px); }
.nav-menu nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 4px var(--gutter) 16px;
}
.nav-menu nav a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--ink); text-decoration: none; font-size: 1.05rem;
  border-top: 1px solid var(--rule);
}

/* Scroll progress: the order of draw, filling left to right. */
.progress {
  display: flex; height: 3px;
  transform-origin: left center;
  transform: scaleX(var(--p, 1));
}
.progress span { flex: 1; background: currentColor; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(40px, 7vw, 112px);
  align-items: end;
  padding-top: clamp(48px, 7vw, 96px);
}
.eyebrow {
  color: var(--crimson);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
}
.hero-name {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(3.3rem, 1.6rem + 6vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 72;
}
.hero-name span { display: block; }
.hero-name span + span { padding-left: 0.62em; }
.hero-title {
  margin-top: 24px;
  font-size: 1.15rem; font-weight: 500; color: var(--ink);
}
.hero-statement {
  margin-top: 36px; max-width: 26ch;
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.22; color: var(--ink);
  font-variation-settings: "opsz" 36;
}
.hero-statement::before {
  content: ""; display: block; width: 44px; height: 2px; margin-bottom: 20px;
  background: var(--crimson);
}
.hero-sub { margin-top: 18px; max-width: 50ch; color: var(--ink-2); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 4px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--crimson); color: var(--paper-hi); }
.btn-primary:hover { background: var(--crimson-deep); color: var(--paper-hi); }
.btn-quiet { border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper-hi); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px;
  font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2);
}
.status { display: inline-flex; align-items: center; gap: 9px; }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--crimson); box-shadow: 0 0 0 3px oklch(46% 0.165 22 / 0.16);
}

.portrait { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.rack-wrap {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 10px 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}
.rack-tag {
  font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); padding-bottom: 2px;
}
.rack-hero { gap: 9px; }
.rack-hero .tube { width: 24px; height: 63px; }
.portrait-frame {
  padding: 10px;
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -40px oklch(23% 0.035 258 / 0.45);
}
.portrait-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Snapshot ---------- */
.snapshot { margin-top: clamp(64px, 8vw, 112px); }
.snapshot-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.stat { padding: 22px 24px 26px; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat:first-child { padding-left: 0; }
.stat dt {
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.stat dd { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.figure {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 1.8rem + 2.2vw, 3.6rem); line-height: 1;
  color: var(--crimson); font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 60; letter-spacing: -0.02em;
}
.stat-note { font-size: 0.92rem; color: var(--ink-2); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { margin-top: clamp(88px, 10vw, 140px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .tech-lead h2, .contact h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem);
  line-height: 1.02; letter-spacing: -0.018em;
  font-variation-settings: "opsz" 60;
}

/* Tick used for list items: a short crimson rule. */
.ledger li, .duties li, .tech-points li { position: relative; padding-left: 20px; }
.ledger li::before, .duties li::before {
  content: ""; position: absolute; left: 0; top: 0.8em;
  width: 9px; height: 2px; background: var(--crimson);
}

/* Clinical skills: a ruled ledger, group on the left, items on the right. */
.ledger { border-top: 1px solid var(--rule-strong); }
.ledger-row {
  display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: 12px 40px; padding: 26px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.ledger h3 {
  font-family: var(--serif); font-weight: 450; font-size: 1.4rem; line-height: 1.2;
  font-variation-settings: "opsz" 30;
}
.ledger ul { columns: 2; column-gap: 40px; }
.ledger li { break-inside: avoid; padding-block: 4px; color: var(--ink); }

/* Experience timeline */
.timeline { border-top: 1px solid var(--rule-strong); }
.job {
  display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: 12px 40px; padding: 34px 0 38px;
  border-bottom: 1px solid var(--rule);
}
.job-when {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; padding-top: 6px;
}
.job-body { position: relative; padding-left: 32px; border-left: 1px solid var(--rule); }
.job-body::before {
  content: ""; position: absolute; left: -6px; top: 12px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--crimson);
}
.job h3 {
  font-family: var(--serif); font-weight: 450; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.15; font-variation-settings: "opsz" 40;
}
.job-where { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.roles { margin-top: 16px; display: grid; gap: 4px; }
.roles li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.role { font-weight: 600; }
.role-dates { font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.duties { margin-top: 16px; display: grid; gap: 8px; max-width: 68ch; color: var(--ink-2); }

/* Divider: a small rack on a shelf line. */
.divider {
  display: flex; align-items: flex-end; gap: 16px;
  padding-top: clamp(88px, 10vw, 140px);
}
.divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.rack-small { gap: 6px; }
.rack-small .tube { width: 13px; height: 34px; }

/* Credentials: specimen labels */
#credentials { margin-top: clamp(40px, 5vw, 64px); }
.group-title {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 16px;
}
.labels + .group-title { margin-top: 48px; }
.labels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.label {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 24px 18px;
}
.label-wide { grid-column: span 4; }
.labels-tech .label { grid-column: span 3; }
.label-issuer {
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-2);
}
.issuer-place { display: block; text-transform: none; letter-spacing: 0.04em; font-weight: 500; color: var(--muted); }
.label h4 {
  margin: 10px 0 18px;
  font-family: var(--serif); font-weight: 450; font-size: 1.38rem; line-height: 1.18;
  font-variation-settings: "opsz" 30;
}
.label-wide h4 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); font-weight: 400; font-variation-settings: "opsz" 60; }
.fields { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.fields dt {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.fields dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.fields .code { font-weight: 600; letter-spacing: 0.06em; }
.label-wide .fields .code { color: var(--crimson); font-size: 1.25rem; line-height: 1.3; }
.label-note { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
/* The verify line sits on the bottom edge of every label, behind a tear line. */
.verify {
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-size: 0.82rem; color: var(--muted);
}
.label > :nth-last-child(2) { margin-bottom: 18px; }
.verify a { font-weight: 600; letter-spacing: 0.04em; }
/* 44px tap area without moving the line: padding grows the hit box, the negative margin cancels it in layout. */
.verify a { display: inline-block; padding-block: 12px; margin-block: -12px; }

/* Technology band */
.band {
  margin-top: clamp(88px, 10vw, 140px);
  background: var(--clinic);
  padding-block: clamp(72px, 9vw, 120px);
  scroll-margin-top: var(--header-h);
}
.tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 112px); }
.lead {
  margin-top: 24px; max-width: 30ch;
  font-family: var(--serif); font-weight: 340; font-size: clamp(1.35rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.3; font-variation-settings: "opsz" 36;
}
.tech-points { border-top: 1px solid var(--rule-strong); align-self: end; }
.tech-points li { padding: 14px 0 14px 20px; border-bottom: 1px solid oklch(84% 0.015 245); }
.tech-points li::before {
  content: ""; position: absolute; left: 0; top: calc(14px + 0.8em);
  width: 9px; height: 2px; background: var(--crimson);
}
.tech-points .aside-point { color: var(--muted); font-size: 0.92rem; border-bottom: 0; }
.tech-points .aside-point::before { background: var(--muted); }

/* How I work */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.value { border-top: 1px solid var(--rule-strong); padding: 24px 0 36px; }
.value h3 {
  font-family: var(--serif); font-style: italic; font-weight: 380;
  font-size: clamp(1.6rem, 1.25rem + 1vw, 2.1rem); line-height: 1.1;
  font-variation-settings: "opsz" 48;
}
.value p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }

/* Education & languages */
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); }
.edu-item { border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.edu-kind {
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.edu-item h3 {
  margin-top: 10px; font-family: var(--serif); font-weight: 450; font-size: 1.45rem; line-height: 1.2;
  font-variation-settings: "opsz" 30;
}
.edu-item p:last-child { margin-top: 6px; color: var(--ink-2); }
.edu-year { margin-left: 10px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Contact */
.contact { margin-top: clamp(96px, 11vw, 160px); }
.contact-inner { border-top: 2px solid var(--ink); padding-top: 28px; }
.contact-mail {
  margin-top: 20px;
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(1.9rem, 0.9rem + 4.2vw, 4.4rem); line-height: 1.05;
  letter-spacing: -0.02em; font-variation-settings: "opsz" 72;
  overflow-wrap: anywhere;
}
.contact-mail a { display: inline-block; padding-block: 8px; margin-block: -8px; }
.contact-mail a { color: var(--ink); text-decoration-color: var(--crimson); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.contact-mail a:hover { color: var(--crimson); }
.contact-meta { margin: 18px 0 28px; color: var(--ink-2); }

/* Footer */
.site-footer { margin-top: clamp(96px, 11vw, 160px); border-top: 1px solid var(--rule); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; padding-block: 32px 40px;
}
.legend-title {
  font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 12px;
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 0.86rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: flex-end; gap: 7px; line-height: 1; }
.legend li span { color: var(--ink-2); }
.legend .tube { width: 9px; height: 24px; }
.colophon { font-size: 0.88rem; color: var(--muted); }

/* ---------- Motion (only with JS, only when the reader allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .rack-hero .tube { animation: seat 0.7s var(--ease) both; }
  .js .rack-hero .tube:nth-child(1) { animation-delay: 0.25s; }
  .js .rack-hero .tube:nth-child(2) { animation-delay: 0.33s; }
  .js .rack-hero .tube:nth-child(3) { animation-delay: 0.41s; }
  .js .rack-hero .tube:nth-child(4) { animation-delay: 0.49s; }
  .js .rack-hero .tube:nth-child(5) { animation-delay: 0.57s; }
  .js .rack-hero .tube:nth-child(6) { animation-delay: 0.65s; }
  .js .rack-hero .tube:nth-child(7) { animation-delay: 0.73s; }
}
@keyframes seat {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-inline { display: none; }
  .nav-menu { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .portrait { justify-self: start; max-width: 400px; }
  .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .label, .label-wide, .labels-tech .label { grid-column: span 1; }
  .label-wide { grid-column: 1 / -1; }
  .tech { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 56px; }
  body { font-size: 1rem; }
  .brand-name { font-size: 1.05rem; }
  .snapshot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px 22px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .stat dt { font-size: 0.7rem; letter-spacing: 0.07em; white-space: nowrap; }
  .ledger-row, .job { grid-template-columns: minmax(0, 1fr); }
  .ledger ul { columns: 1; }
  .job-when { padding-top: 0; color: var(--crimson); }
  .job-body { padding-left: 20px; }
  .labels { grid-template-columns: minmax(0, 1fr); }
  .values, .edu { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Narrow phones: "A · B" lines cannot fit on one line, so stack the two halves
   and drop the dot instead of leaving it dangling at a line end. */
@media (max-width: 440px) {
  .hero-title > .nowrap, .contact-meta > .nowrap, .colophon > .nowrap { display: block; }
  .hero-title > .nowrap > [aria-hidden="true"],
  .contact-meta > .nowrap > [aria-hidden="true"],
  .colophon > .nowrap > [aria-hidden="true"] { display: none; }
}

/* Small phones: slimmer hero tubes so the "Order of draw" tag stays on one line. */
@media (max-width: 380px) {
  .rack-hero { gap: 6px; }
  .rack-hero .tube { width: 21px; height: 55px; }
}

@media print {
  .site-header, .divider, .rack-wrap { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
