/* Iuliia Iakovleva · site styles */

:root {
  /* Colour (OKLCH). Restrained page, one drenched moss section. */
  --bg: oklch(0.985 0.004 150);
  --surface: oklch(0.955 0.008 150);
  --ink: oklch(0.22 0.025 155);
  --muted: oklch(0.47 0.02 155);
  --rule: oklch(0.87 0.01 150);
  --moss: oklch(0.40 0.106 150);
  --moss-bg: oklch(0.36 0.09 150);
  --on-moss: oklch(0.97 0.012 150);
  --on-moss-muted: oklch(0.86 0.035 150);
  --on-moss-rule: oklch(0.97 0.012 150 / 0.28);
  --spark: oklch(0.64 0.19 35);

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-name: clamp(3.4rem, 11vw, 6rem);
  --fs-big: clamp(2.5rem, 6.4vw, 5rem);
  --fs-statement: clamp(1.85rem, 4.1vw, 3.4rem);
  --fs-row: clamp(1.4rem, 2.9vw, 2.4rem);
  --fs-h3: clamp(1.45rem, 2.3vw, 1.95rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.875rem;

  /* Space */
  --gutter: clamp(1rem, 5vw, 6rem);
  --section: clamp(9rem, 24vh, 17rem);
  --bar-h: 4.5rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Layers */
  --z-field: 0;
  --z-content: 1;
  --z-bar: 10;
  --z-menu: 20;
  --z-skip: 30;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

/* Programmatic focus targets (sections reached from links) need no ring. */
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: fixed;
  left: var(--gutter);
  top: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.muted { color: var(--muted); }

.arrow {
  width: 2.5rem;
  height: 0.75rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}

/* ---------- Bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-bar);
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-inline: var(--gutter);
  color: var(--ink);
  background: transparent;
  transition: transform 0.6s var(--ease-out), background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.bar[data-scrolled] {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--rule);
}
.bar[data-hidden] { transform: translateY(-100%); }
.bar[data-on-moss] {
  background: var(--moss-bg);
  color: var(--on-moss);
  box-shadow: 0 1px 0 var(--on-moss-rule);
}

.mark {
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.005em;
  margin-right: auto;
}

.nav { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); font-size: 0.9375rem; }
.nav a { position: relative; padding-block: 0.4rem; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.book {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--moss);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.book:hover { background: var(--moss); border-color: var(--moss); color: var(--on-moss); }
.bar[data-on-moss] .book { color: var(--on-moss); }
.bar[data-on-moss] .book:hover { background: var(--on-moss); border-color: var(--on-moss); color: var(--moss-bg); }
.bar[data-on-moss] :focus-visible { outline-color: var(--on-moss); }

.menu-btn { display: none; min-height: 2.75rem; padding-inline: 0.25rem; font-size: 0.9375rem; }

/* Mobile menu */
.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--bar-h) var(--gutter) 2.5rem;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.menu[open] { display: flex; flex-direction: column; animation: menu-in 0.5s var(--ease-out); }
.menu::backdrop { background: transparent; }
.menu-close {
  position: absolute;
  top: 0;
  right: var(--gutter);
  height: var(--bar-h);
  font-size: 0.9375rem;
}
.menu nav { display: flex; flex-direction: column; margin-top: 3rem; }
.menu nav a {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  line-height: 1.25;
  padding-block: 0.35rem;
}
.book--lg { margin-top: auto; align-self: flex-start; min-height: 3rem; padding-inline: 1.5rem; font-size: 1rem; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.75rem); } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: calc(var(--bar-h) + 2rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  isolation: isolate;
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-field);
  display: block;
  touch-action: pan-y;
}

.hero-copy {
  position: relative;
  z-index: var(--z-content);
  grid-column: 1 / -1;
  align-self: center;
  pointer-events: none;
}
.hero-copy a { pointer-events: auto; }

.name, .roles, .lede { width: fit-content; }

.name {
  font-family: var(--serif);
  font-size: var(--fs-name);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.name .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.name .line > span { display: inline-block; animation: rise 1.25s var(--ease-out) both; }
.name .line--indent { padding-left: 0.9em; }
.name .line--indent > span { animation-delay: 0.12s; }

@keyframes rise { from { transform: translateY(108%); } }

.roles {
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-left: clamp(1.75rem, 11vw, 9.5rem);
  display: grid;
  gap: 0.35rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
}
.roles li {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fade 0.9s var(--ease-out) both;
  animation-delay: 0.55s;
}
.roles li + li { animation-delay: 0.65s; }
.roles li::before {
  content: "";
  width: clamp(2.5rem, 5vw, 4.5rem);
  height: 1px;
  background: var(--moss);
  transform-origin: left;
  animation: draw 1s var(--ease-out) both;
  animation-delay: inherit;
}

.lede {
  margin-top: clamp(1.5rem, 3vh, 2rem);
  padding-left: clamp(1.75rem, 11vw, 9.5rem);
  color: var(--muted);
  font-size: var(--fs-body);
  animation: fade 1s var(--ease-out) 0.85s both;
}

@keyframes fade { from { opacity: 0; transform: translateY(0.5rem); } }
@keyframes draw { from { transform: scaleX(0); } }

.fork {
  position: relative;
  z-index: var(--z-content);
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(2rem, 5vw, 4.5rem);
  animation: fade 1s var(--ease-out) 1.05s both;
}
.fork-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  font-size: var(--fs-body);
  color: var(--ink);
}
.fork-link span {
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 0.15rem;
  transition: background-size 0.6s var(--ease-out);
}
.fork-link .arrow { color: var(--moss); }
.fork-link:hover span { background-size: 0% 1px; background-position: right bottom; }
.fork-link:hover .arrow { transform: translateX(0.4rem); }

.scroll-cue {
  position: relative;
  z-index: var(--z-content);
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  font-size: var(--fs-small);
  color: var(--muted);
  animation: fade 1s var(--ease-out) 1.3s both;
}
.scroll-cue svg {
  width: 0.875rem;
  height: 5.5rem;
  fill: none;
  stroke: var(--moss);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 110;
  animation: cue 3.2s var(--ease-quart) 1.6s infinite both;
}
@keyframes cue {
  0% { stroke-dashoffset: 110; opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 110; opacity: 0; }
}

/* ---------- Shared section ---------- */

main > section:not(.hero) {
  padding: var(--section) var(--gutter);
}

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

.h-about {
  font-family: var(--serif);
  font-size: var(--fs-statement);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(4rem, 10vh, 6.5rem);
}

.h-big {
  font-family: var(--serif);
  font-size: var(--fs-big);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

/* ---------- Record ---------- */

.record { max-width: 82rem; margin-inline: auto; }

.sheet { border-bottom: 1px solid var(--rule); }
.sheet .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.25rem 2rem;
  padding-block: clamp(1rem, 2.2vh, 1.4rem);
  border-top: 1px solid var(--rule);
}
.sheet dt {
  font-family: var(--serif);
  font-size: var(--fs-row);
  line-height: 1.15;
}
.sheet dd {
  color: var(--muted);
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}
.sheet .row--clinic { margin-top: 0; }
.sheet .row--clinic dt { color: var(--moss); }
.sheet .row:not(.row--clinic) + .row--clinic { margin-top: clamp(3rem, 7vh, 4.5rem); }

/* ---------- Statement ---------- */

.statement {
  display: grid;
  place-items: center;
  min-height: 90svh;
}
.statement p {
  max-width: 21ch;
  font-family: var(--serif);
  font-size: var(--fs-statement);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.statement .w { transition: color 0.35s linear; }

/* ---------- Services ---------- */

.services { max-width: 88rem; margin-inline: auto; }

.tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(4rem, 9vw, 9rem);
  align-items: start;
}
.track:nth-child(2) { margin-top: clamp(0rem, 14vh, 10rem); }

.track-name {
  font-family: var(--serif);
  font-size: var(--fs-big);
  line-height: 1;
  color: var(--moss);
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.offers { border-bottom: 1px solid var(--rule); }
.offers li { border-top: 1px solid var(--rule); }
.offers a {
  display: grid;
  gap: 0.35rem;
  padding-block: clamp(1.35rem, 3vh, 1.85rem);
}
.offer-title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.15;
  transition: transform 0.6s var(--ease-out), color 0.3s ease;
}
.offer-line { color: var(--muted); max-width: 40ch; }
.offers a:hover .offer-title { transform: translateX(0.5rem); color: var(--moss); }

/* ---------- Workshops: pinned horizontal band ---------- */

main > section.hband { padding: 0; }

.hband-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hband-track {
  display: flex;
  align-items: stretch;
  gap: clamp(3rem, 7vw, 7rem);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.hcell {
  flex: none;
  width: clamp(17rem, 28vw, 26rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hcell h3 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hcell p { color: var(--muted); max-width: 30ch; }
.hcell--intro {
  width: clamp(18rem, 40vw, 38rem);
  border-top-color: transparent;
  padding-top: 0;
  gap: 1.5rem;
}
.hcell--end {
  border-top-color: transparent;
  justify-content: center;
  width: clamp(14rem, 22vw, 20rem);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  color: var(--moss);
  font-size: 1.125rem;
}
.text-link:hover .arrow { transform: translateX(0.4rem); }

.hband-rule {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2.5rem, 8vh, 5rem);
  height: 1px;
  background: var(--rule);
}
.hband-rule span {
  display: block;
  height: 100%;
  background: var(--moss);
  transform-origin: left;
  transform: scaleX(0);
}

/* Static fallback (small screens, reduced motion, no JS) */
html:not(.h-mode) .hband:not([data-live]) { padding: var(--section) var(--gutter); }
html:not(.h-mode) .hband:not([data-live]) .hband-pin { position: static; height: auto; overflow: visible; }
html:not(.h-mode) .hband:not([data-live]) .hband-track {
  flex-direction: column;
  width: auto;
  padding-inline: 0;
  gap: 0;
  transform: none !important;
}
html:not(.h-mode) .hband:not([data-live]) .hcell { width: auto; padding-block: 1.75rem; }
html:not(.h-mode) .hband:not([data-live]) .hcell--intro { padding-top: 0; padding-bottom: 3rem; }
html:not(.h-mode) .hband:not([data-live]) .hcell--end { border-top: 1px solid var(--rule); }
html:not(.h-mode) .hband:not([data-live]) .hband-rule { display: none; }

/* ---------- About ---------- */

.about { max-width: 82rem; margin-inline: auto; }
.path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
}
.path li { border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.path h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.path p { color: var(--muted); max-width: 34ch; }

/* ---------- Contact (drenched) ---------- */

main > section.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--moss-bg);
  color: var(--on-moss);
}
.contact .h-big { position: relative; z-index: var(--z-content); max-width: 14ch; pointer-events: none; }
.contact :focus-visible { outline-color: var(--on-moss); }

.paths {
  position: relative;
  z-index: var(--z-content);
  margin-top: clamp(4rem, 10vh, 7rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 64rem;
}
.path-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.35rem 1.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--on-moss-rule);
  border-bottom: 1px solid var(--on-moss-rule);
}
.path-title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.15;
  grid-column: 1;
}
.path-line { color: var(--on-moss-muted); grid-column: 1; }
.path-link .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.path-link:hover .arrow { transform: translateX(0.5rem); }

/* ---------- Footer ---------- */

.foot {
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) 2.5rem;
  display: grid;
  gap: 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
}
.foot p { max-width: 70ch; }
.crisis { color: var(--ink); }
.crisis strong { font-weight: 500; }
.foot .small { margin-top: 1.5rem; }


/* ---------- Horizontal layout (wide screens, motion allowed) ---------- */

.mark-short, .cue-h, .hprogress { display: none; }

.h-mode {
  --rail: 4.75rem;
  --panel-pad: clamp(4rem, 7vw, 9rem);
  --panel-block: clamp(2.5rem, 8vh, 6rem);
}
.h-mode, .h-mode body { overflow-y: hidden; }
.h-mode { scrollbar-width: none; }
.h-mode::-webkit-scrollbar { display: none; }
.h-mode body {
  display: flex;
  width: max-content;
  height: 100svh;
}

/* Side rail */
.h-mode .bar {
  inset: 0 auto 0 0;
  width: var(--rail);
  height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 0 2rem;
  background: var(--bg);
  box-shadow: 1px 0 0 var(--rule);
  transform: none;
}
.h-mode .mark { margin: 0; font-size: 1.125rem; letter-spacing: 0.04em; }
.h-mode .mark-full { display: none; }
.h-mode .mark-short { display: inline; }
.h-mode .nav {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  flex-direction: row-reverse; /* keep About at the top after rotating */
  gap: clamp(1.5rem, 4.5vh, 2.75rem);
}
.h-mode .nav a { padding: 0 0.4rem; color: var(--muted); transition: color 0.3s ease; }
.h-mode .nav a:hover, .h-mode .nav a[aria-current] { color: var(--ink); }
.h-mode .nav a::after {
  left: auto;
  right: -0.35rem;
  top: 0;
  bottom: 0;
  width: 1px;
  height: auto;
  background: var(--moss);
  transform: scaleY(0);
  transform-origin: top;
}
.h-mode .nav a:hover::after, .h-mode .nav a[aria-current]::after { transform: scaleY(1); }
.h-mode .bar > .book {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 0;
  width: 2.5rem;
  padding: 1.1rem 0;
  justify-content: center;
}

/* Panels */
.h-mode main {
  display: flex;
  flex: none;
  height: 100svh;
  margin-left: var(--rail);
}
.h-mode main > section {
  flex: none;
  height: 100svh;
  min-height: 0;
}
.h-mode main > section:not(.hero) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--panel-block) var(--panel-pad);
  max-width: none;
  margin: 0;
}

.h-mode .hero {
  width: calc(100vw - var(--rail));
  padding: clamp(2rem, 6vh, 4rem) clamp(2.5rem, 5vw, 6rem) clamp(2rem, 5vh, 3.5rem);
}
.h-mode .scroll-cue { align-items: center; }
.h-mode .cue-v { display: none; }
.h-mode .scroll-cue .cue-h { display: block; width: 5.5rem; height: 0.875rem; }

.h-mode .record { width: clamp(46rem, 74vw, 70rem); }
.h-mode .sheet dt { font-size: min(var(--fs-row), 3.7vh); white-space: nowrap; }
.h-mode .sheet .row { padding-block: clamp(0.55rem, 1.45vh, 1rem); }
.h-mode .sheet .row:not(.row--clinic) + .row--clinic { margin-top: clamp(1.25rem, 4.5vh, 3rem); }

.h-mode .statement { width: clamp(34rem, 60vw, 58rem); align-items: center; }
.h-mode .statement p { font-size: min(var(--fs-statement), 6.4vh); }

.h-mode .services { width: clamp(56rem, 94vw, 90rem); }
.h-mode .track:nth-child(2) { margin-top: clamp(0rem, 10vh, 7rem); }
.h-mode .track-name { font-size: min(var(--fs-big), 8vh); }
.h-mode .offers a { padding-block: clamp(0.9rem, 2.4vh, 1.75rem); }

.h-mode main > section.hband { padding: 0; }
.h-mode .hband-pin { position: static; height: 100%; overflow: visible; }
.h-mode .hband-track { height: 100%; align-items: center; padding-inline: var(--panel-pad); transform: none; }
.h-mode .hcell { align-self: center; }
.h-mode .hband-rule { display: none; }

.h-mode .about { width: clamp(54rem, 88vw, 84rem); }
.h-mode .h-about { margin-bottom: clamp(2.5rem, 8vh, 5rem); }

.h-mode main > section.contact { width: calc(100vw - var(--rail)); min-height: 0; }

.h-mode .foot {
  flex: none;
  height: 100svh;
  width: clamp(22rem, 32vw, 30rem);
  align-content: end;
  padding: var(--panel-block) var(--panel-pad) var(--panel-block) clamp(2.5rem, 4vw, 4rem);
}

/* Page progress along the bottom, like a quiet scrollbar */
.h-mode .hprogress {
  display: block;
  position: fixed;
  left: calc(var(--rail) + clamp(2.5rem, 5vw, 6rem));
  right: clamp(2.5rem, 5vw, 6rem);
  bottom: 1.1rem;
  height: 1px;
  background: oklch(0.22 0.025 155 / 0.12);
  z-index: var(--z-bar);
  pointer-events: none;
}
.h-mode .hprogress span {
  display: block;
  height: 100%;
  background: oklch(0.22 0.025 155 / 0.55);
  transform-origin: left;
  transform: scaleX(0);
}

/* Short desktop windows */
@media (max-height: 640px) {
  .h-mode .nav { font-size: 0.875rem; gap: 1.25rem; }
  .h-mode .bar > .book { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav, .bar > .book { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }

  .hero { grid-template-columns: 1fr; }
  .roles, .lede { padding-left: 0.5em; }
  .roles li::before { width: 1.75rem; }
  .roles li { gap: 0.75rem; }
  .fork {
    grid-column: 1;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
  }
  .fork-link {
    justify-content: space-between;
    min-height: 3.75rem;
    border-bottom: 1px solid var(--rule);
    background: color-mix(in oklch, var(--bg) 82%, transparent);
  }
  .fork-link span { background: none; padding-bottom: 0; }
  .scroll-cue { display: none; }

  .tracks { grid-template-columns: 1fr; }
  .track:nth-child(2) { margin-top: 0; }

  .path { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; gap: 0; }
  .path-link + .path-link { border-top: 0; }
}

@media (max-width: 520px) {
  .sheet .row { grid-template-columns: 1fr; }
  .sheet dd { text-align: left; }
  .name .line--indent { padding-left: 0.5em; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-cue svg { stroke-dasharray: none; }
}
