/* Self in Motion: "The Anatomy of Movement"
   All colours, fonts and spacing live here so the look can be restyled in one place. */

:root {
  /* Colour */
  --plate: #0d3b20;      /* anatomy-plate green, hero background */
  --forest: #0b1710;     /* page background */
  --moss: #172a1e;       /* panels and picture holders */
  --gold: #c6a15b;       /* the thread, joint circles, small accents */
  --bone: #e9dfc8;       /* text and engraving tone */
  --sand: #b8916a;       /* secondary text, categories */
  --bone-soft: rgb(233 223 200 / .72);
  --rule: rgb(233 223 200 / .16);

  /* Type */
  --serif: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.8rem, 1.6rem + 4.8vw, 5.6rem);

  /* Space */
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --max: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--forest);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--forest); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.12; }

p { margin: 0; max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  background: var(--bone);
  color: var(--forest);
  padding: 8px 14px;
}
.skip:focus { top: 12px; }

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

/* Links and buttons */

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  transition: color .2s;
}
.text-link:hover { color: var(--gold); }

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(233 223 200 / .55);
  border-radius: 999px;
  padding: .55em 1.25em;
  font: 500 var(--step--1) / 1 var(--sans);
  color: var(--bone);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill--solid { background: var(--bone); color: var(--forest); border-color: var(--bone); }
.pill--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); }

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: var(--step--1);
  color: var(--bone-soft);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover { color: var(--bone); }

/* The gold thread */

.page { position: relative; display: block; }
.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.thread__path { fill: none; stroke: var(--gold); stroke-width: 1.25; }
.thread__nodes circle {
  fill: var(--forest);
  stroke: var(--gold);
  stroke-width: 1.25;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.4);
  transition: opacity .4s, transform .4s;
}
.thread__nodes circle.is-on { opacity: 1; transform: scale(1); }

/* Picture holders */

.holder {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ratio, 4 / 3);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgb(233 223 200 / .05) 0 1px, transparent 1px 10px),
    var(--moss);
  border: 1px solid var(--rule);
}
.holder figcaption { display: grid; gap: 4px; max-width: 34ch; }
.holder__kind { font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--sand); }
.holder__what { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.3; color: var(--bone-soft); }

/* Hero */

.hero {
  background: var(--plate);
  padding: 120px 0 72px;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
}
.hero__text { display: grid; gap: 28px; align-content: center; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--bone-soft); max-width: 34ch; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }

.plate {
  position: relative;
  margin: 0;
  aspect-ratio: 1228 / 1253;
  width: 100%;
  max-height: 82svh;
  justify-self: center;
}
.plate__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* soften the image edge so its background melts into the plate green */
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 70%, transparent 100%);
}
.plate__missing { display: none; position: absolute; inset: 0; aspect-ratio: auto; background-color: rgb(0 0 0 / .12); }
.plate.is-missing .plate__img,
.plate.is-missing .plate__lines { display: none; }
.plate.is-missing .plate__missing { display: flex; }

.plate__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plate__lines .ln {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) var(--d, 0s) forwards;
}
.plate__lines .ln--dash { stroke-dasharray: .006 .008; stroke-dashoffset: 0; opacity: 0; animation: appear 1.6s ease var(--d, 0s) forwards; }
.plate__lines .ln--dot { fill: var(--gold); }
.plate__lines .labels { opacity: 0; animation: appear 1s ease 2.6s forwards; }
.plate__lines .labels line { stroke: rgb(198 161 91 / .6); stroke-width: 1.5; }
.plate__lines .labels text { fill: var(--bone); font: 30px var(--sans); }
.plate__lines .labels .latin { font-family: var(--serif); font-style: italic; font-size: 34px; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .plate__lines .ln, .plate__lines .labels { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* Sections */

.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.section-head--row p { max-width: 40ch; color: var(--bone-soft); }
.section-head > p { color: var(--bone-soft); }

.instrument__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.instrument__text { display: grid; gap: 0; }
.instrument__text h2 { margin-bottom: 28px; }
.instrument__text p { color: var(--bone-soft); }

/* Jump sequence: a real sequence, so the frames are an ordered list */

.jump { background: linear-gradient(var(--forest), var(--moss) 50%, var(--forest)); }
/* Pinned stage: the section holds still while scrolling draws the thread and the figures.
   --pin is how much scrolling the drawing takes. Without JS or with reduced motion it is a normal section. */
.jump__pin { position: relative; padding: var(--section) 0 0; }
.jump__stage { position: relative; }
.jump__stage > .wrap { z-index: 2; }
.jump__thread { display: none; }
.jump__entry, .jump__exit { display: block; height: 1px; }
.jump.is-pinned .jump__pin { --pin: 260svh; height: calc(100svh + var(--pin)); padding: 0; }
.jump.is-pinned .jump__stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.jump.is-pinned .jump__stage > .wrap { width: 100%; }
.jump.is-pinned .jump__entry { position: absolute; top: 0; }
.jump.is-pinned .jump__exit-wrap { position: absolute; left: 0; right: 0; bottom: 0; }
.jump.is-pinned .jump__thread {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 3; pointer-events: none; overflow: visible;
}
.jump__notes { padding-bottom: var(--section); }
.strip {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 20px);
}
.strip li { display: grid; }
.strip .holder { padding: 10px; }
.strip__label { font-family: var(--serif); font-style: italic; font-size: var(--step-1); }

/* Each phase is a button: a gold line figure (stand-in for the burst photo) that opens its note */
.phase {
  display: grid; gap: 12px; padding: 0; text-align: left;
  font: inherit; color: var(--bone); background: none; border: 0; cursor: pointer;
}
.phase:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
.phase__frame { display: block; width: 100%; transition: border-color .3s, background-color .3s; }
.phase__num {
  position: absolute; top: 10px; left: 12px;
  font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--sand);
}
.figure { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Fine gold anatomy lines, the same gold as the thread that draws them */
.figure .fig__line {
  fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
/* One-line figures. While pinned, the stage's gold line draws them (main.js copies these paths into it);
   otherwise (reduced motion) the figures show their own line. */
.figure .fig__src { fill: none; stroke: none; }
.jump:not(.is-pinned) .figure .fig__src { stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jump__thread .thread__path { stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* Body contours are filled with the frame colour so nearer limbs hide what is behind them */
.figure .fig__body { fill: var(--fig-fill, var(--moss)); transition: fill-opacity .25s; }
.phase[aria-expanded="true"] { --fig-fill: #1d3324; }
.figure .fig__bone { opacity: .4; stroke-width: 1.1; }
.figure .fig__detail { stroke-width: 1.3; }
.figure .fig__far { opacity: .45; }
.figure .fig__ground { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.figure .fig__joint { fill: var(--moss); stroke: var(--gold); stroke-width: 1.2; }
.figure .fig__hip { fill: none; stroke: var(--gold); stroke-width: 1.5; }
/* Motion cues: dashed swing paths in bone, force arrows in gold */
.figure .fig__cue {
  fill: none; stroke: var(--bone); stroke-width: 1.2; stroke-dasharray: 3 5; stroke-linecap: round;
  opacity: .55; transition: opacity .4s;
}
.figure .fig__cue--head { stroke-dasharray: none; }
.figure .fig__cue--force { stroke: var(--gold); stroke-width: 2; stroke-dasharray: none; opacity: .9; }
.phase .strip__label { transition: color .3s; }
.phase:hover .phase__frame, .phase[aria-expanded="true"] .phase__frame { border-color: rgb(198 161 91 / .6); }
.phase[aria-expanded="true"] .phase__frame { background-color: #1d3324; }
.phase[aria-expanded="true"] .strip__label, .phase:hover .strip__label { color: var(--gold); }

/* While pinned, main.js scrubs each stroke (stroke-dashoffset) and fades joints in as the figure completes */
.figure .fig__line { stroke-dasharray: var(--len, none); }
.figure .fig__joint, .figure .fig__hip { transition: opacity .3s; }

/* The note under the strip */
.phase-note {
  margin-top: 0; padding-top: 28px; border-top: 1px solid var(--rule);
  max-width: 760px; min-height: 3em;
}
.phase-note__hint { color: var(--sand); font-style: italic; font-family: var(--serif); font-size: var(--step-1); }
.phase-note__item { display: grid; gap: 12px; animation: note-in .45s ease-out; }
.phase-note [hidden] { display: none; }
.phase-note__num { font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--sand); text-transform: uppercase; }
.phase-note__item h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--step-2, 1.75rem); }
.phase-note__what { color: var(--bone); }
.phase-note__item p:not([class]) { color: var(--bone-soft); }
.phase-note__facts { display: grid; gap: 8px; margin: 8px 0 0; }
.phase-note__facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.phase-note__facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: .3em; }
.phase-note__facts dd { margin: 0; }
.phase-note__facts .latin { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
@keyframes note-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .figure * { transition: none !important; }
  .phase-note__item { animation: none; }
}
.note { font-size: var(--step--1); color: var(--sand); }

/* Journal */

.journal__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px);
}
.entry { display: grid; gap: 12px; align-content: start; }
.entry .holder { margin-bottom: 8px; }
.entry--feature { grid-row: span 2; }
.entry--feature h3 { font-size: var(--step-3); }
.entry p:not(.entry__cat) { color: var(--bone-soft); }
.entry__cat { font-size: var(--step--1); color: var(--sand); }
.entry .text-link { justify-self: start; margin-top: 4px; }

/* Lab: tools listed like instruments on a shelf, not as cards */

.tools { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.tool {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.tool h3 { margin-bottom: 8px; }
.tool p { color: var(--bone-soft); }
.tool__icon { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 1.5; }

/* About */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about__text { display: grid; gap: 0; }
.about__text h2 { margin-bottom: 28px; }
.about__text > p { color: var(--bone-soft); }
.facts { margin: 36px 0 32px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--sand); font-size: var(--step--1); padding-top: .2em; }
.facts dd { margin: 0; font-family: var(--serif); font-size: var(--step-1); }
.about__text .text-link { justify-self: start; }

/* Work with me */

.work__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
}
.work p { color: var(--bone-soft); font-size: var(--step-1); font-weight: 300; }

/* Newsletter */

.letter { background: var(--plate); }
.letter__inner { display: grid; gap: 20px; justify-items: start; }
.letter__inner > p { color: var(--bone-soft); }
.letter__form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; width: min(100%, 520px); }
.letter__form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: .8em 1.2em;
  border-radius: 999px;
  border: 1px solid rgb(233 223 200 / .45);
  background: rgb(0 0 0 / .15);
  color: var(--bone);
  font: inherit;
}
.letter__form input::placeholder { color: rgb(233 223 200 / .5); }
.letter__form .pill { padding: .8em 1.6em; font-size: var(--step-0); }
.letter__status { min-height: 1.6em; font-size: var(--step--1); color: var(--sand); }

/* Footer */

.site-footer { padding: 48px 0 112px; border-top: 1px solid var(--rule); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__inner .wordmark { margin-right: auto; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--bone-soft); text-decoration: none; font-size: var(--step--1); }
.footer__links a:hover { color: var(--gold); }
.site-footer small { color: var(--sand); font-size: var(--step--1); }

/* Edit text (mockup stage) */

.editbar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: rgb(11 23 16 / .92);
  border: 1px solid var(--rule);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.editbar__hint, .editbar__reset { display: none; }
.editbar__hint { font-size: var(--step--1); color: var(--bone-soft); max-width: none; }
.editbar__reset {
  background: none;
  border: 0;
  color: var(--sand);
  font: inherit;
  font-size: var(--step--1);
  text-decoration: underline;
  cursor: pointer;
}
.editbar .pill { background: var(--moss); }
.is-editing .editbar { border-color: var(--gold); }
.is-editing .editbar__hint, .is-editing .editbar__reset { display: block; }
.is-editing .editbar__toggle { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.is-editing [data-edit] { outline: 1px dashed rgb(198 161 91 / .7); outline-offset: 4px; cursor: text; }
.is-editing [data-edit]:focus { outline-style: solid; }

/* Phones and small tablets */

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 14px 16px; padding-top: 18px; }
  .nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .hero { padding-top: 132px; min-height: 0; }
  .hero__grid, .instrument__grid, .about__grid, .work__grid { grid-template-columns: minmax(0, 1fr); }
  .plate { order: -1; max-height: none; }
  .hero__text { padding-left: 16px; }
  .wrap { padding-left: 32px; padding-right: 16px; }
  .section-head--row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .strip { margin-top: 56px; gap: 6px; }
  .strip .holder { padding: 4px; }
  .strip .holder__kind { display: none; }
  .strip__label { font-size: .8rem; }
  .strip { margin-top: 32px; }
  /* Phones: big frames in one row; the stage pans to the figure being drawn */
  .jump.is-pinned .jump__stage { overflow-x: clip; }
  .jump.is-pinned .strip {
    grid-template-columns: repeat(5, min(56vw, 34svh)); gap: 14px;
    width: max-content; will-change: transform;
  }
  .jump.is-pinned .strip .holder { padding: 8px; }
  .jump.is-pinned .strip__label { font-size: var(--step-1); }
  .jump.is-pinned .section-head .note { display: none; }
  .journal__grid { grid-template-columns: minmax(0, 1fr); }
  .entry--feature { grid-row: auto; }
  .tool { grid-template-columns: 48px minmax(0, 1fr); padding: 24px 0; }
  .tool__icon { width: 44px; height: 44px; }
  .tool .text-link { grid-column: 2; justify-self: start; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .editbar { padding: 6px; }
  .is-editing .editbar { left: 16px; justify-content: flex-end; flex-wrap: wrap; border-radius: 20px; padding: 10px 10px 10px 16px; }
  .is-editing .editbar__hint { width: 100%; }
}

/* Live site: hide the editing tools and the picture-holder notes (the frames stay) */
.is-live .editbar { display: none; }
.is-live .holder figcaption, .is-live .plate__missing figcaption { visibility: hidden; }
.text-link.is-soon { opacity: .55; cursor: default; }
.text-link.is-soon::after { display: none; }

/* ---------- Cover: the coil figure (replaces the hero picture and the jump section) ----------
   The hero is tall; its pin (text + drawing) holds still (sticky) while scrolling draws the line, then the
   whole cover scrolls away as normal page content. The line is painted on a canvas inside the pin (main.js);
   .coil__over marks where the figure sits (right half on desktop, lower half on phones) and carries the glint. */
.hero.coil { display: block; min-height: 0; height: 210svh; padding: 0; position: relative; }
.coil__pin { position: sticky; top: 0; z-index: 2; height: 100svh; display: flex; align-items: center; padding: 120px 0 72px; }
.coil .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
/* the drawing is part of the cover: it sits inside the sticky pin, beside the text, and leaves with it */
.coil__fig { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.coil .hero__grid { position: relative; z-index: 1; }
.coil__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.coil__over { position: absolute; top: 0; right: 0; width: min(60vw, 980px); height: 100%; overflow: visible; }
/* a glint runs along the finished line now and then */
.coil__glint { fill: none; stroke: #fff4d2; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.coil__fig.is-done .coil__glint { animation: coil-glint 9s cubic-bezier(.45, 0, .25, 1) 1.2s infinite; }
@keyframes coil-glint {
  0% { stroke-dashoffset: 140; opacity: 0; }
  4% { opacity: .85; }
  42% { opacity: .85; }
  48%, 100% { stroke-dashoffset: calc(-1 * var(--len, 7000)); opacity: 0; }
}
/* everything after the cover scrolls over the figure */
.page > section:not(.coil), .site-footer { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .coil__pin { align-items: flex-start; padding-top: 112px; }
  .coil .hero__grid { grid-template-columns: 1fr; }
  .coil__over { width: 100%; height: 54%; top: auto; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .coil__fig.is-done .coil__glint { animation: none; }
  .hero.coil { height: auto; }
  .coil__pin { position: relative; }
}

/* A real photo in a frame (like the gallery plates), with a small credit underneath */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio, 4 / 5); object-fit: cover; padding: 8px; border: 1px solid rgb(198 161 91 / .45); background: var(--moss); }
.photo__credit { margin-top: 10px; font-size: .78rem; color: var(--sand); }
.photo__credit a { color: inherit; text-decoration-color: rgb(184 145 106 / .5); text-underline-offset: 3px; }
.photo__credit a:hover { color: var(--gold); }
.photo--missing .photo__credit { display: none; }

/* Free manual teaser (homepage) */
.manual-teaser__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.manual-teaser__cover { display: block; max-width: 340px; }
.manual-teaser__cover img { display: block; width: 100%; height: auto; border: 1px solid rgb(198 161 91 / .45); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); transform: rotate(-1.5deg); transition: transform .4s; }
.manual-teaser__cover:hover img { transform: rotate(0) translateY(-4px); }
.manual-teaser__kicker { margin: 0 0 12px; font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.manual-teaser__text h2 { margin-bottom: 20px; }
.manual-teaser__text p { color: var(--bone-soft); max-width: 46ch; }
.manual-teaser__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
@media (max-width: 760px) { .manual-teaser__grid { grid-template-columns: 1fr; } .manual-teaser__cover { max-width: 240px; } }

/* ---------- Articles on the homepage: intro boxes, no headings, whole box links ---------- */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.note { position: relative; display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--rule); color: inherit; text-decoration: none; transition: border-color .25s, background-color .25s; }
.note::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(198, 161, 91, .14); pointer-events: none; }
a.note:hover, a.note:focus-visible { border-color: var(--gold); background: rgba(198, 161, 91, .04); }
a.note:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.note__kind { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.note__intro { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.45; color: var(--bone); }
.note__go { font-size: var(--step--1); color: var(--sand); }
a.note:hover .note__go { color: var(--gold); }
.note--soon { opacity: .62; }
@media (max-width: 760px) { .notes { grid-template-columns: minmax(0, 1fr); } }

/* "The body is the instrument": a passage from the essay */
.instrument__quote { margin: 0 0 22px; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.08rem + .7vw, 1.65rem); line-height: 1.5; color: var(--bone); }
.instrument__text .text-link { display: inline-block; font-size: var(--step--1); }

/* Work with me: social links */
.work__socials { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.work__socials .pill span { margin-left: 6px; color: var(--sand); font-weight: 300; }

/* Footer: disclaimer line + privacy link (every page) */
.footer__legal { max-width: var(--max); margin: 18px auto 0; padding: 0 var(--gutter); font-size: var(--step--1); color: var(--sand); }
.footer__legal a { color: var(--bone-soft); }
