/* ------------------------------------------------------------
   Ram Thokane — portfolio
   Engineering paper, ink and one red. The page moves through
   three grounds: grid paper for the intro and about, an ink
   band for the work, and a red band to close. Glass is used
   where something sits on top of an image or a coloured light.
   ------------------------------------------------------------ */

:root {
  --paper: #f2efe7;
  --ink: #171613;
  --muted: #6c685f;
  --rule: #171613;
  --hair: rgba(23, 22, 19, 0.14);
  --grid: rgba(23, 22, 19, 0.055);
  --bar: rgba(242, 239, 231, 0.74);
  --red: #d8391c;
  --red-ink: #fff4ee;

  --band: #151412;          /* the dark work band */
  --band-ink: #efebe2;
  --band-muted: #9b968b;
  --band-hair: rgba(239, 235, 226, 0.13);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(1rem, 4.5vw, 3.5rem);
  --max: 1220px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110f;
    --ink: #ece8de;
    --muted: #999488;
    --rule: #ece8de;
    --hair: rgba(236, 232, 222, 0.14);
    --grid: rgba(236, 232, 222, 0.04);
    --bar: rgba(18, 17, 15, 0.74);
    --red: #e4431f;
    --band: #1c1b18;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #12110f;
  --ink: #ece8de;
  --muted: #999488;
  --rule: #ece8de;
  --hair: rgba(236, 232, 222, 0.14);
  --grid: rgba(236, 232, 222, 0.04);
  --bar: rgba(18, 17, 15, 0.74);
  --red: #e4431f;
  --band: #1c1b18;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* engineering paper */
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--red-ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); color: var(--red-ink); }
.btn-line { border-color: var(--rule); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--band-ink); color: var(--band); }
.btn-paper:hover { background: var(--red); color: var(--red-ink); }
.btn-glass {
  color: var(--band-ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Top bar + ruler ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bar);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem var(--gutter) 0.55rem;
}
.bar-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}
.bar nav { display: flex; align-items: center; gap: 1.6rem; }
.bar nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.bar nav a:hover, .bar nav a.is-current { color: var(--ink); }

.theme {
  width: 1.9rem; height: 1.9rem;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
}
.theme span {
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  transition: transform 0.4s ease;
}
.theme:hover span { transform: rotate(180deg); }

.ruler {
  position: relative;
  height: 9px;
  margin: 0 var(--gutter);
  /* tall tick every 80px, small tick every 8px */
  background:
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 80px) bottom left / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 8px) bottom left / 100% 5px no-repeat;
  border-bottom: 1px solid var(--hair);
}
.ruler span {
  position: absolute;
  left: 0; bottom: -1px;
  height: 3px;
  width: 0;
  background: var(--red);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "copy prints" "facts facts";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-name {
  margin: 1.1rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 8.6vw, 7.8rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.hero-name em { color: var(--red); padding-left: 0.4em; }
.hero-lede {
  max-width: 27rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  line-height: 1.4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

/* screenshots laid on the desk like prints */
.prints {
  grid-area: prints;
  position: relative;
  aspect-ratio: 1 / 0.82;
  --px: 0;
  --py: 0;
}
.print {
  position: absolute;
  display: block;
  padding: 0.55rem 0.55rem 2.6rem;
  background: #fbfaf6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 22px 50px -18px rgba(30, 20, 5, 0.45);
  text-decoration: none;
  transition: transform 0.6s var(--ease), box-shadow 0.4s ease;
  translate: calc(var(--px) * var(--depth) * 1px) calc(var(--py) * var(--depth) * 1px);
}
.print img { display: block; width: 100%; height: auto; }
.print-a { width: 80%; top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.print-b { width: 74%; right: 0; bottom: 4%; transform: rotate(3.5deg); z-index: 2; }
.print:hover { transform: rotate(0deg) scale(1.03); z-index: 3; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 34px 70px -20px rgba(30, 20, 5, 0.5); }

.print-tag {
  position: absolute;
  left: 0.9rem; bottom: 0.65rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #1a1916;
}
.print-tag small { font-family: var(--mono); font-size: 0.7rem; color: #7a756b; margin-left: 0.4rem; }

.stamp {
  position: absolute;
  z-index: 4;
  left: 6%;
  bottom: 2%;
  display: grid;
  place-items: center;
  width: 6.2rem; height: 6.2rem;
  border-radius: 50%;
  border: 2px solid var(--red);
  outline: 1px dashed var(--red);
  outline-offset: -8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: rotate(-14deg);
  pointer-events: none;
}

.hero-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 1rem 0 clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}
.hero-facts dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.hero-facts dd { font-size: 0.95rem; }
.hero-facts time { font-variant-numeric: tabular-nums; }

/* ---------- Work band ---------- */
.work {
  position: relative;
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  overflow: clip; /* not hidden: that would break the sticky case text */
}

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: end;
  gap: 1.5rem 3rem;
  padding-bottom: 1.6rem;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--band-hair);
}
.band-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.band-title em { color: var(--red); }
.band-note { color: var(--band-muted); font-size: 0.95rem; }

.case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.case + .case { margin-top: clamp(5rem, 12vw, 9rem); }
.case--flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); }
.case--flip .case-text { order: 2; }

/* the product's own colour, glowing behind the glass */
.case::before {
  content: "";
  position: absolute;
  width: 46rem; height: 34rem;
  right: -10rem; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tint) 32%, transparent), transparent 65%);
  pointer-events: none;
}
.case--flip::before { right: auto; left: -12rem; }

.case-text { position: sticky; top: 6.5rem; }
.case-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--red);
}
.case-name {
  margin: 0.4rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.case-lede {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.45;
}

.case-stats {
  display: flex;
  gap: 2.4rem;
  margin: 1.6rem 0 0.4rem;
}
.case-stats div { display: flex; align-items: baseline; gap: 0.45rem; }
.case-stats b {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}
.case-stats span { font-family: var(--mono); font-size: 0.76rem; color: var(--band-muted); }

.case-list { margin: 1.4rem 0; border-top: 1px solid var(--band-hair); }
.case-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--band-hair);
  font-size: 0.92rem;
  color: var(--band-muted);
}
.case-stack { font-family: var(--mono); font-size: 0.74rem; color: var(--band-muted); }
.case-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

/* browser frame, made of glass */
.case-visual { position: relative; }
.frame {
  position: relative;
  padding: 0.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transition: transform 0.6s var(--ease);
}
.case-visual:hover .frame { transform: translateY(-4px); }
.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.6rem;
}
.frame-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.frame-bar span {
  margin: 0 auto;
  padding: 0.15rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--band-muted);
}
.frame-shot { position: relative; border-radius: 10px; overflow: hidden; }
.frame-shot img { display: block; width: 100%; height: auto; }

/* pins pointing at real features */
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translate(-0.8rem, -50%);
}
.pin b {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  box-shadow: 0 0 0 4px rgba(216, 57, 28, 0.28);
}
.pin > span {
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(20, 20, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.pin--left { flex-direction: row-reverse; transform: translate(calc(-100% + 0.8rem), -50%); }
.pin--left > span { transform: translateX(6px); }
.case.is-in .pin > span { opacity: 1; transform: none; }
.case.is-in .pin:nth-of-type(2) > span { transition-delay: 0.15s; }
.case.is-in .pin:nth-of-type(3) > span { transition-delay: 0.3s; }

.legend { display: none; }

/* ---------- Smaller builds ---------- */
.more { margin-top: clamp(5rem, 12vw, 8rem); }
.more-title {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--band-muted);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--band-ink);
}
.more-list li { border-bottom: 1px solid var(--band-hair); }
.more-list a {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 1fr) 2.4fr minmax(8rem, 1fr);
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.15rem 0;
  text-decoration: none;
  overflow: hidden;
  transition: padding 0.45s var(--ease), color 0.3s ease;
}
.more-list a::before {
  /* red fill wipes in from the left on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.more-list a > * { position: relative; z-index: 1; }
.more-list a:hover { padding-left: 1rem; padding-right: 1rem; }
.more-list a:hover::before { transform: scaleX(1); }
.m-num { font-family: var(--mono); font-size: 0.74rem; color: var(--band-muted); }
.m-name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.m-desc { font-size: 0.93rem; color: var(--band-muted); }
.m-stack { font-family: var(--mono); font-size: 0.74rem; color: var(--band-muted); text-align: right; }
.more-list a:hover .m-num,
.more-list a:hover .m-desc,
.more-list a:hover .m-stack { color: rgba(255, 255, 255, 0.85); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  padding-top: clamp(5rem, 11vw, 8.5rem);
  padding-bottom: clamp(5rem, 11vw, 8.5rem);
}
.about-big {
  margin: 1rem 0 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.about-big em { color: var(--red); }
.about-copy p:not(.eyebrow):not(.about-big) { color: var(--muted); max-width: 34rem; }
.about-copy p + p:not(.about-big) { margin-top: 0.9rem; }

/* toolkit card: glass over the grid paper, taped down */
.toolkit {
  position: relative;
  padding: 1.6rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  border: 1px solid var(--hair);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 24px 50px -30px rgba(30, 20, 5, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: rotate(1deg);
}
.toolkit::before {
  content: "";
  position: absolute;
  top: -0.7rem; left: 50%;
  width: 5.5rem; height: 1.4rem;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--red) 22%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.toolkit-head {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.tk-group { padding: 0.9rem 0; border-top: 1px dashed var(--hair); }
.tk-group h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.tk-group ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tk-group li {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tk-group li:hover { background: var(--ink); color: var(--paper); }

/* ---------- Contact band ---------- */
.contact {
  background: var(--red);
  color: var(--red-ink);
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 1.5rem;
}
.contact ::selection { background: var(--red-ink); color: var(--red); }
.contact .eyebrow { color: rgba(255, 244, 238, 0.75); }
.contact-h {
  margin: 1rem 0 2.5rem;
  max-width: 14em;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.contact-h em { opacity: 0.8; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.mail {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4.2vw, 2.8rem);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration-thickness: 3px; }
.copy {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  color: var(--red-ink);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.copy:hover { background: var(--red-ink); color: var(--red); }

.contact-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 244, 238, 0.35);
  font-family: var(--mono);
  font-size: 0.76rem;
}
.contact-foot span:last-child { display: flex; gap: 1.4rem; }
.contact-foot a { text-decoration: none; opacity: 0.85; }
.contact-foot a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Entrance ---------- */
.fade { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.fade.is-in { opacity: 1; transform: none; }

.hero-copy > *, .prints { animation: up 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.prints { animation-delay: 0.2s; }
@keyframes up { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "prints" "facts"; }
  .prints { margin-top: 3rem; max-width: 40rem; width: 100%; justify-self: center; }

  .band-head { grid-template-columns: 1fr; }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case-text { order: 0; }
  .case-text { position: static; }
  .case-visual { order: -1; }

  .more-list a { grid-template-columns: 2.5rem minmax(8rem, 1fr) 2fr; }
  .m-stack { display: none; }

  .about { grid-template-columns: 1fr; }
  .toolkit { max-width: 32rem; }
}

@media (max-width: 640px) {
  .bar nav { gap: 1rem; }
  .bar-name { font-size: 1.1rem; }

  .hero-name { font-size: clamp(3.6rem, 19vw, 5.5rem); }
  .hero-name em { padding-left: 0.3em; }
  .prints { aspect-ratio: 1 / 0.95; }
  .print { padding: 0.35rem 0.35rem 2rem; }
  .print-a { width: 88%; }
  .print-b { width: 82%; bottom: 6%; }
  .print-tag { font-size: 0.95rem; left: 0.6rem; bottom: 0.45rem; }
  .print-tag small { display: none; }
  .stamp { width: 4.6rem; height: 4.6rem; font-size: 0.64rem; left: auto; right: 0; bottom: auto; top: -0.8rem; }

  .hero-facts { grid-template-columns: 1fr; gap: 1rem; }

  /* pins become numbers, labels move into a legend */
  .pin > span { display: none; }
  .pin, .pin--left { transform: translate(-50%, -50%); }
  .pin b { width: 1.35rem; height: 1.35rem; font-size: 0.66rem; }
  .legend { display: grid; gap: 0.3rem; margin-top: 0.9rem; counter-reset: pin; }
  .legend li {
    counter-increment: pin;
    font-size: 0.84rem;
    color: var(--band-muted);
  }
  .legend li::before {
    content: counter(pin);
    display: inline-grid;
    place-items: center;
    width: 1.2rem; height: 1.2rem;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.64rem;
  }

  .case-stats b { font-size: 2.3rem; }

  .more-list a {
    grid-template-columns: 2rem 1fr;
    grid-template-areas: "num name" ". desc";
    row-gap: 0.25rem;
  }
  .m-num { grid-area: num; }
  .m-name { grid-area: name; font-size: 1.35rem; }
  .m-desc { grid-area: desc; font-size: 0.88rem; }
  .more-list a:hover { padding-left: 0.6rem; padding-right: 0.6rem; }

  .toolkit { transform: none; }
  .contact-foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .fade { opacity: 1; transform: none; }
  .pin > span { opacity: 1; transform: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar { background: var(--paper); }
  .pin > span { background: rgba(20, 20, 24, 0.85); }
  .toolkit { background: var(--paper); }
}
