/* =====================================================================
   DeGraff
   Paper, ink and a little amber. Three typefaces:
   Schibsted Grotesk for names and titles, Newsreader for reading,
   IBM Plex Mono for the small print.
   ===================================================================== */

:root {
  --paper: #f2efea;
  --paper-2: #e8e3db;
  --ink: #161714;
  --ink-2: #57544d;
  --rule: #cfc8bc;
  --dirt: #563c23;
  --amber: #d98a2b;
  --led: #ff7a1a;
  --cover: #3a342d;

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

  --gutter: 16px;
  --bar: 48px;
  --measure: 34rem;
  --out: cubic-bezier(.16, .84, .24, 1);
  --soft: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (min-width: 768px)  { :root { --gutter: 28px; --bar: 56px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }


/* ---------- Base ---------- */

*, *::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: 400 17px/1.55 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[id] { scroll-margin-top: var(--bar); }


/* ---------- Small parts ---------- */

.label {
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
a.label:hover { color: var(--ink); }

.mono {
  font: 400 10.5px/1.4 var(--mono);
  letter-spacing: .02em;
  color: var(--ink-2);
}

.title {
  margin: 0;
  font: 600 clamp(30px, 4.4vw, 60px)/.98 var(--sans);
  letter-spacing: -.025em;
  text-wrap: balance;
}

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

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 30;
  padding: 8px 12px;
  background: var(--ink); color: var(--paper);
  font: 500 13px/1 var(--sans);
}
.skip:focus { top: 8px; }


/* ---------- Top bar ---------- */

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--bar);
  padding: 0 var(--gutter);
  background: var(--paper);
  font: 500 13px/1 var(--sans);
}

.bar__name {
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
/* On the home view the masthead carries the name; the bar picks it up once it scrolls away. */
.js .bar__name {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--soft), visibility 0s linear .3s;
}
.js .bar.is-named .bar__name {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.bar nav { display: flex; gap: 18px; }
.bar nav a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.bar nav a:hover,
.bar nav a.is-current,
.bar nav a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: var(--amber);
}

@media (min-width: 768px) { .bar nav { gap: 28px; } }
@media (max-width: 359px) {
  .bar { font-size: 12px; }
  .bar nav { gap: 12px; }
}


/* ---------- Hero + masthead ---------- */

.hero {
  display: flex; flex-direction: column;
  height: calc(100svh - var(--bar));
  min-height: 520px;
}

.hero__cover {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--cover);
}

.hero__f { position: absolute; inset: 0; visibility: hidden; }
.hero__f.is-on { visibility: visible; }

.hero__f > *,
.entry__img > *,
.about__print > :is(img, canvas) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-height: 520px) {
  .hero { height: auto; }
  .hero__cover { flex: none; height: 420px; }
}

.masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 0 16px;
  padding: 18px var(--gutter) 20px;
}

.masthead__name {
  font: 600 clamp(44px, 9vw, 96px)/.86 var(--sans);
  letter-spacing: -.04em;
}

.masthead__line {
  justify-self: end;
  max-width: 11em;
  margin: 0;
  padding-bottom: 3px;
  font: italic 400 17px/1.25 var(--serif);
  text-align: right;
  text-wrap: balance;
}

.masthead__frame {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--rule);
}

.masthead__story {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.masthead__story:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .masthead__line { max-width: none; font-size: 19px; }
  .masthead .stamp { font-size: 14px; }
}


/* ---------- Seven-segment date stamp ---------- */

.stamp {
  display: inline-flex; align-items: center;
  color: var(--led);
  font: italic 400 13px/1 var(--mono);
  letter-spacing: .1em;
  white-space: pre;
}
.stamp svg {
  overflow: visible;
  filter: drop-shadow(0 0 1.2px rgb(255 96 0 / .6));
}
.stamp path { fill: currentColor; }


/* ---------- Sections ---------- */

.section { padding: 72px var(--gutter) 0; }

.section__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

@media (min-width: 1024px) { .section { padding-top: 120px; } }


/* ---------- Work index ---------- */

.entries { list-style: none; margin: 0; padding: 0; }

.entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.entry__n {
  grid-column: 1; grid-row: 1;
  align-self: start;
  padding-top: 6px;
  font: 400 11px/1 var(--mono);
  color: var(--ink-2);
}

.entry__text { grid-column: 2; grid-row: 1; }

.entry__t {
  display: block;
  font: 600 20px/1.1 var(--sans);
  letter-spacing: -.015em;
  transition: color .5s var(--soft);
}

.entry__m {
  display: block;
  margin-top: 4px;
  font: italic 400 15px/1.3 var(--serif);
  color: var(--ink-2);
}

.entry__trace {
  grid-column: 2; grid-row: 2;
  display: grid; gap: 4px;
  min-width: 0;
}

.entry__img {
  grid-column: 3; grid-row: 1 / span 2;
  align-self: start;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.entry__img > * { transition: transform .9s var(--soft); }

.entry:hover .entry__t { color: var(--dirt); }
.entry:hover .entry__img > *,
.entry:focus-visible .entry__img > * { transform: scale(1.03); }

@media (min-width: 768px) {
  .entry {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 180px;
    gap: 0 24px;
    padding: 18px 0;
  }
  .entry__t { font-size: 30px; }
  .entry__m { margin-top: 6px; }
  .entry__trace { grid-column: 3; grid-row: 1; }
  .entry__img { grid-column: 4; grid-row: 1; align-self: center; aspect-ratio: 3 / 2; }
}


/* ---------- Traces (the little lines in the index) ---------- */

.tr { width: 100%; max-width: 300px; height: auto; overflow: visible; }

.tr-ghost,
.tr-ink {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tr-ghost { stroke-opacity: .2; stroke-width: 1; }
.tr-ink {
  stroke-width: 1.6;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.01;
  transition: stroke-dashoffset 1.1s cubic-bezier(.33, 0, .2, 1);
}
.tr-ticks { stroke: var(--ink-2); stroke-opacity: .45; stroke-width: 1; }
.tr-dot { fill: var(--amber); opacity: 0; transition: opacity .4s var(--soft) 1s; }

.entry__trace .mono { transition: opacity .6s var(--soft); }
.js .entry__trace[data-trace] .mono { opacity: .55; }
.entry__trace.is-on .tr-ink { stroke-dashoffset: 0; }
.entry__trace.is-on .tr-dot,
.entry__trace.is-on .mono { opacity: 1; }


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

.about { margin-top: 72px; }

.about__split { display: grid; grid-template-columns: minmax(0, 1fr); }

.about__print {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cover);
}

.about__stamp { position: absolute; right: 14px; bottom: 12px; font-size: 15px; }

.about__text {
  display: grid; align-content: end; gap: 18px;
  padding: 28px var(--gutter) 8px;
}

.about__bio {
  max-width: 26em;
  margin: 0;
  font: 400 clamp(19px, 1.7vw, 24px)/1.45 var(--serif);
  text-wrap: pretty;
}

.facts { max-width: 30rem; margin: 6px 0 0; border-top: 1px solid var(--ink); }
.facts > div {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.facts dd { margin: 0; font: 500 15px/1.35 var(--sans); }

.about__figures { padding: 72px var(--gutter) 0; }

.figures { display: grid; }
.figure {
  margin: 0;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.figure__n {
  display: block;
  font: 400 clamp(88px, 15vw, 200px)/.86 var(--serif);
  letter-spacing: -.035em;
  font-variant-numeric: lining-nums;
}
.figure__n sup {
  position: relative; top: .08em;
  margin-left: .02em;
  font-size: .42em;
  line-height: 0;
  vertical-align: top;
  letter-spacing: 0;
}
.figure__l {
  display: block;
  max-width: 16rem;
  margin-top: 10px;
  font: 500 13px/1.35 var(--sans);
}

@media (min-width: 1024px) {
  .about { margin-top: 120px; }
  .about__split {
    grid-template-columns: 7fr 5fr;
    height: calc(100svh - var(--bar));
    min-height: 620px;
    max-height: 1000px;
  }
  .about__print { aspect-ratio: auto; height: 100%; }
  .about__stamp { right: 22px; bottom: 18px; font-size: 17px; }
  .about__text { padding: 48px var(--gutter) 44px 44px; }
  .about__figures { padding-top: 120px; }

  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .figure { padding-right: 24px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .figure:last-child { border-right: 0; }
}


/* ---------- Experience ---------- */

.log { list-style: none; margin: 0; padding: 0; }

.log__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.log__when,
.log__where {
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .02em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.log__where { text-align: right; }

.log__what { grid-column: 1 / -1; }
.log__role { font: 600 20px/1.15 var(--sans); letter-spacing: -.015em; }
.log__org { margin: 2px 0 0; font: italic 400 16px/1.35 var(--serif); color: var(--ink-2); }
.log__note { grid-column: 1 / -1; max-width: 34rem; margin: 0; font-size: 16px; line-height: 1.5; }

@media (min-width: 1024px) {
  .log__row {
    grid-template-columns: 10rem minmax(0, 5fr) minmax(0, 6fr) 8rem;
    column-gap: 24px;
    align-items: baseline;
    padding: 22px 0;
  }
  .log__when  { grid-column: 1; grid-row: 1; }
  .log__what  { grid-column: 2; grid-row: 1; }
  .log__note  { grid-column: 3; grid-row: 1; }
  .log__where { grid-column: 4; grid-row: 1; }
  .log__role  { font-size: 24px; }
}

.big-link {
  display: inline-block;
  margin-top: 40px;
  font: 600 clamp(24px, 3.6vw, 36px)/1.1 var(--sans);
  letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.big-link span { display: inline-block; transition: transform .4s var(--out); }
.big-link:hover span { transform: translateX(5px); }


/* ---------- Contact + footer ---------- */

.contact {
  display: grid; justify-items: start; gap: 18px;
  padding: 96px var(--gutter) 72px;
}

.contact__email {
  font: 400 clamp(34px, 8vw, 92px)/1 var(--serif);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .14em;
  transition: text-decoration-color .3s var(--soft);
}
.contact__email:hover { text-decoration-color: var(--amber); }

.contact__line {
  max-width: var(--measure);
  margin: 0;
  font: italic 400 19px/1.45 var(--serif);
}
.contact__line::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  vertical-align: .12em;
  border-radius: 50%;
  background: var(--amber);
}

@media (min-width: 1024px) { .contact { padding-top: 160px; } }

.foot {
  display: grid; gap: 14px;
  margin: 0 var(--gutter);
  padding: 24px 0 36px;
  border-top: 1px solid var(--ink);
  font: 500 13px/1.4 var(--sans);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}
.foot__note { margin: 0; }

@media (min-width: 768px) {
  .foot { grid-template-columns: 1fr auto; align-items: end; }
}


/* ---------- Inner pages: the projects index and each write-up ---------- */

.page-head {
  display: grid; justify-items: start; gap: 14px;
  padding: 48px var(--gutter) 40px;
}
.page-head__crumb { margin-bottom: 18px; }
.page-head__title {
  font: 600 clamp(44px, 8.5vw, 112px)/.9 var(--sans);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.page-head__lede {
  max-width: 30em;
  margin: 8px 0 0;
  font: 400 clamp(19px, 1.9vw, 26px)/1.4 var(--serif);
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .page-head { padding-top: 88px; padding-bottom: 56px; }
}

/* The lead photo on a write-up. Swap the canvas for an <img>. */
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cover);
}
.shot > :is(img, canvas) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (min-width: 768px)  { .shot { aspect-ratio: 16 / 9; } }
@media (min-width: 1280px) { .shot { aspect-ratio: 21 / 9; } }

/* A write-up section: label on the left, content on the right. */
.psec {
  display: grid; gap: 18px;
  margin: 64px var(--gutter) 0;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}
.psec > .label { margin: 0; }

@media (min-width: 1024px) {
  .psec {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 24px;
    margin-top: 104px;
  }
  .psec--wide { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
}

.prose { max-width: 36em; }
.prose p {
  font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--serif);
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose + .facts { margin-top: 28px; }

.figures--sm .figure__n { font-size: clamp(64px, 10vw, 140px); }
.figure__n small {
  margin-left: .06em;
  font-size: .3em;
  letter-spacing: 0;
}

/* Numbered steps: a process, or the path a request takes. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step {
  display: grid; grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.step__n {
  grid-row: 1 / span 2;
  padding-top: 4px;
  font: 400 11px/1.4 var(--mono);
  color: var(--ink-2);
}
.step__t { margin: 0; font: 600 19px/1.2 var(--sans); letter-spacing: -.01em; }
.step__d { margin: 0; font-size: 16px; line-height: 1.45; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .step {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    padding: 0 20px 4px;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }
  .step:first-child { padding-left: 0; border-left: 0; }
  .step__n { grid-row: auto; padding-top: 0; }
  .step:not(:last-child) .step__n::after { content: "  →"; white-space: pre; color: var(--amber); }
}

/* Worked numbers and rule tables. */
.calc {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font: 400 13px/1.9 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose .note { margin: 12px 0 0; font: italic 400 15px/1.45 var(--serif); color: var(--ink-2); }

.rules { width: 100%; max-width: 36rem; border-collapse: collapse; font: 500 15px/1.35 var(--sans); }
.rules th {
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--ink);
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-2);
}
.rules td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }

/* Next project, at the foot of a write-up. */
.pnext {
  display: grid; justify-items: start; gap: 10px;
  margin: 96px var(--gutter) 72px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}
.pnext .big-link { margin-top: 6px; }
.pnext__all { margin-top: 18px; }

@media (min-width: 1024px) { .pnext { margin-top: 140px; } }

/* Projects index: one large card per project. */
.cases { list-style: none; margin: 0; padding: 0 var(--gutter); }
.cases > li { border-top: 1px solid var(--ink); }

.case { display: grid; gap: 18px; padding: 24px 0 36px; }
.case > span, .case__text > span { display: block; }

.case__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
}
.case__img > * {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--soft);
}
.case:hover .case__img > *,
.case:focus-visible .case__img > * { transform: scale(1.03); }

.case__t {
  margin: 8px 0 12px;
  font: 600 clamp(30px, 4.4vw, 56px)/1 var(--sans);
  letter-spacing: -.025em;
  transition: color .5s var(--soft);
}
.case:hover .case__t { color: var(--dirt); }

.case__d {
  max-width: 30em;
  margin-bottom: 16px;
  font: 400 clamp(18px, 1.5vw, 21px)/1.45 var(--serif);
  text-wrap: pretty;
}
.case__stat { margin-bottom: 14px; color: var(--ink); }

.case__text > .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tags > span {
  padding: 5px 7px 4px;
  border: 1px solid var(--rule);
  font: 400 10.5px/1 var(--mono);
  color: var(--ink-2);
}

.case__more {
  font: 600 16px/1 var(--sans);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.case__more span { display: inline-block; transition: transform .4s var(--out); }
.case:hover .case__more span { transform: translateX(4px); }

@media (min-width: 1024px) {
  .case {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
    padding: 32px 0 56px;
  }
}


/* ---------- Motion ---------- */

@keyframes settle {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* A print coming up in the tray: blown-out white, then warm grey, then the picture. */
@keyframes develop {
  0%   { filter: grayscale(1)   sepia(0)   brightness(7); }
  22%  { filter: grayscale(1)   sepia(.3)  brightness(2.6); }
  50%  { filter: grayscale(.6)  sepia(.25) brightness(1.4); }
  78%  { filter: grayscale(.2)  sepia(.1)  brightness(1.08); }
  100% { filter: grayscale(0)   sepia(0)   brightness(1); }
}
@keyframes unlatch { to { filter: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Scroll-linked reveal where the browser supports it; elsewhere content simply shows. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: settle var(--soft) both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }

  /* First-visit intro (the class is set in <head>). */
  .intro .bar { animation: fade .8s var(--out) 1s both; }
  .intro .masthead > * { animation: rise .9s var(--out) both; }
  .intro .masthead > :nth-child(1) { animation-delay: .45s; }
  .intro .masthead > :nth-child(2) { animation-delay: .55s; }
  .intro .masthead > :nth-child(3) { animation-delay: .65s; }

  .intro .hero__f:first-child > * {
    filter: grayscale(1) sepia(0) brightness(7);
    animation: unlatch 1ms 3s forwards; /* failsafe if the script never runs */
  }
  .intro .hero__f:first-child.is-developing > * {
    animation: develop 1.8s cubic-bezier(.3, .05, .3, 1) both;
  }

  /* The About portrait develops when it scrolls into view. */
  .about__print.is-latent > :is(img, canvas) { filter: grayscale(1) sepia(0) brightness(7); }
  .about__print.is-latent .about__stamp { opacity: 0; }
  .about__print.is-developing > :is(img, canvas) {
    animation: develop 1.8s cubic-bezier(.3, .05, .3, 1) both;
  }
  .about__print.is-developing .about__stamp { animation: fade .2s linear 1.6s both; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-ink, .tr-dot, .entry__trace .mono { transition: none; }
}


/* ---------- Print: the page doubles as a one-pager ---------- */

@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .bar, .skip, .hero__cover, .masthead__frame, .entry__img, .about__print, .tr,
  .shot, .case__img { display: none !important; }
  .reveal { animation: none !important; }
  .hero { height: auto; min-height: 0; }
  .about__split { display: block; height: auto; min-height: 0; }
  .section, .about, .about__figures, .contact { margin-top: 0; padding-top: 24px; }
  .figure__n { font-size: 48pt; }
  .entry, .log__row, .figure { break-inside: avoid; }
}
