:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #22231f;
  --muted: #55564f;
  --line: #d9d8d0;
  --panel: #efeee8;
  --slot: #e9e8e0;
  --accent: #ff8a36;
  --accent-hover: #ff9f59;
  --accent-ink: #a24008;
  --dark: #22231f;
  --dark-text: #e0ded5;
  --gutter: clamp(1.125rem, 5vw, 4rem);
  --section-padding: clamp(3.5rem, 7vw, 6.5rem);
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body { margin: 0; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.container {
  width: min(100%, 86rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  background: var(--paper);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: .75rem;
  align-items: center;
  padding-block: .5rem 0;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-size: 1.375rem;
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-accent { color: var(--accent-ink); }

.site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(.625rem, 3vw, 1.75rem);
}

.site-nav a, .header-cta, .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-block-size: 2.75rem;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a { color: var(--muted); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-underline-offset: .4em;
}

.site-nav a:hover, .header-cta:hover, .back-to-top:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.header-cta {
  border-bottom: 2px solid var(--accent);
  justify-self: end;
}

.hero {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.hero-chapter { background: var(--paper); }

.hero-chapter .hero {
  --hero-gap: clamp(.8rem, 2.5vw, 2rem);
  --hero-pad-top: clamp(1.65rem, 3.3vw, 3rem);
  --hero-pad-bottom: clamp(1.15rem, 2.5vw, 2.3rem);
  row-gap: var(--hero-gap);
  padding-block: var(--hero-pad-top) var(--hero-pad-bottom);
}

.print-chamber {
  width: 100%;
  min-width: 0;
  max-inline-size: 35rem;
  justify-self: center;
}

.scene-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}

.chamber-media {
  aspect-ratio: 16 / 9;
  max-block-size: min(43svh, 25rem);
  overflow: visible;
  /* The canvas reaches into the hero's empty padding, 8px short of its neighbours; the layout box
     and the block height stay the same. print-scenes.js fits the scene into that room. */
  --bleed-top: max(0px, var(--hero-gap) - .5rem);
  --bleed-bottom: max(0px, var(--hero-pad-bottom) - .5rem);
}

.scene-media > :is(img, canvas) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.scene-media > img { object-fit: contain; }
/* A canvas is a replaced element: its height must be explicit, or it follows the bitmap's ratio. */
.chamber-media > canvas {
  top: calc(-1 * var(--bleed-top));
  height: calc(100% + var(--bleed-top) + var(--bleed-bottom));
  pointer-events: none;
}
.scene-media > canvas { visibility: hidden; }
.scene-media[data-ready] > canvas { visibility: visible; }
.scene-media[data-ready] > img { visibility: hidden; }

.design-story { border-block-start: 1px solid var(--line); }
.design-story-layout, .print-finish-layout { display: grid; align-items: center; gap: 1.75rem; }
.design-story-copy > p:not(.eyebrow) { max-width: 36ch; margin-top: 1rem; color: var(--muted); }
.design-story-figure { min-width: 0; }
.design-story-figure .scene-media { inline-size: 100%; max-block-size: 24rem; }

.scene-stages { display: grid; gap: .5rem; margin-top: 1.25rem; list-style: none; }
.scene-stages li { padding: .5rem .7rem; border-inline-start: 2px solid var(--line); font-weight: 650; }
.scene-stages li[aria-current="step"] { border-color: var(--accent); background: var(--panel); }
.scene-stages li span { margin-inline-end: .45rem; color: var(--accent-ink); font: 700 .75rem ui-monospace, monospace; }

.print-finish { background: var(--panel); border-block-start: 1px solid var(--line); }
.print-finish-layout { --finish-pad: clamp(2.75rem, 6vw, 5rem); padding-block: var(--finish-pad); }
.print-finish-layout h2 { max-width: 13ch; }
.finish-media {
  max-block-size: 17rem;
  overflow: visible;
  /* The canvas grows upwards only (the caption sits below): into the gap under the heading on
     phones, into the section padding next to the text on wider screens. */
  --bleed-top: 1.25rem;
}
.finish-media > canvas {
  top: calc(-1 * var(--bleed-top));
  height: calc(100% + var(--bleed-top));
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.accent-marker {
  flex: 0 0 .55rem;
  block-size: .55rem;
  background: var(--accent);
}

h1, h2 {
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -.055em;
}

h1 {
  margin-top: 1.125rem;
  font-size: clamp(2.5rem, 5.45vw, 5rem);
  text-wrap: balance;
}

.hero-description {
  margin-block: 1.4rem 1.65rem;
  max-width: 32ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .875rem;
  min-block-size: 3.125rem;
  padding: .65rem 1.15rem;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.button:hover { background: var(--accent-hover); }

.concept-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--slot);
}

.concept-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  margin-top: .55rem;
  color: var(--muted);
  font-size: .8125rem;
}

.section {
  padding-block: var(--section-padding);
}

#services {
  border-top: 1px solid var(--line);
  padding-block-start: clamp(2.25rem, 4vw, 3.5rem);
}

.section-heading { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.section-index {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

h2 {
  margin-top: .7rem;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 730;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.service-grid, .work-grid, .process-grid { list-style: none; }

.service-grid h3 { margin-top: .85rem; }
.service-grid p { margin-top: .45rem; color: var(--muted); max-width: 48ch; }

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: 1.75rem;
}

.services-cta {
  border: 1px solid var(--accent-ink);
  background: transparent;
}

.services-cta:hover { background: var(--panel); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  color: var(--accent-ink);
  font-weight: 700;
  text-underline-offset: .23em;
}

.info-band { background: var(--panel); border-block: 1px solid var(--line); }
.info-layout { display: grid; gap: 1.75rem; }
.info-layout .section-heading { margin-bottom: 0; }
.info-copy { align-self: center; }
.info-copy > p, .section-intro { max-width: 56ch; color: var(--muted); }
.section-intro { margin-top: 1.25rem; }

.contact-details { align-self: center; }
.contact-details .section-heading { margin-bottom: clamp(1.25rem, 2vw, 2rem); }
.contact-details address { font-size: 1.125rem; font-weight: 730; font-style: normal; }
.contact-details > p { max-width: 54ch; margin-top: .75rem; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.contact-visit { border: 1px solid var(--accent-ink); background: transparent; }
.contact-visit:hover { background: var(--panel); }
.contact-map-link { display: inline-block; margin-top: .8rem; color: var(--accent-ink); text-underline-offset: .23em; }
.contact-map-panel { min-width: 0; align-self: center; }
.contact-map-panel > p { max-width: 52ch; color: var(--muted); }
.contact-map-panel .button { margin-block: .8rem; }
.contact-map-panel .button[hidden] { display: none; }
.contact-map {
  display: block;
  width: 100%;
  height: clamp(16rem, 37vw, 24rem);
  align-self: center;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--panel);
}

@media (max-width: 47.99rem), (pointer: coarse) {
  .contact-map { pointer-events: none; }
}

.plain-list {
  display: grid;
  gap: .6rem;
  margin-top: 1.15rem;
  padding-inline-start: 1.2rem;
}

.plain-list li::marker, .business-steps li::marker { color: var(--accent-ink); }

.cost-list, .cost-list dd { margin: 0; }
.cost-list > div {
  padding-block: .85rem;
  border-block-end: 1px solid var(--line);
}
.cost-list > div:first-child { border-block-start: 1px solid var(--line); }
.cost-list dt { font-weight: 730; }
.cost-list dd { color: var(--muted); }

.faq-list { border-block-start: 1px solid var(--line); }
.faq-list details { border-block-end: 1px solid var(--line); }
.faq-list summary { padding: .85rem .2rem; font-weight: 730; cursor: pointer; }
.faq-list summary::marker { color: var(--accent-ink); }
.faq-list details > p { max-width: 61ch; padding: 0 .2rem .9rem; color: var(--muted); }

.business-hero .hero-description { max-width: 44ch; }
.business-figure { min-width: 0; }
.business-figure img { border-radius: .35rem; }

.business-offerings { display: grid; gap: 1rem; list-style: none; }
.business-offerings > li {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: clamp(1.1rem, 2.2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: var(--paper);
}
.business-offerings > li > span {
  color: var(--accent-ink);
  font: 700 .8125rem/1.7 ui-monospace, monospace;
}
.business-offerings p { max-width: 50ch; color: var(--muted); }

.business-steps { list-style: decimal-leading-zero; padding-inline-start: 2.2rem; }
.business-steps li { padding: .75rem 0 .75rem .35rem; border-block-end: 1px solid var(--line); }
.business-steps p { margin-top: .25rem; color: var(--muted); }
.business-form-fields .form-field { margin-block-start: 0; }
.optional-label { font-size: .75rem; font-weight: 500; color: var(--muted); }

.works-section {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.concept-disclosure {
  max-width: 68ch;
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--paper);
  font-weight: 650;
}

.service-grid, .work-grid, .process-grid {
  display: grid;
  gap: 1.5rem;
}

.work-grid { row-gap: 2rem; }
.work-card figcaption { margin-top: .75rem; }

.process-grid li { border-top: 1px solid var(--line); padding-top: 1.125rem; }

.step-index {
  display: inline-grid;
  place-items: center;
  min-width: 2.375rem;
  min-height: 2.375rem;
  margin-bottom: .75rem;
  border: 1px solid var(--line);
  color: var(--accent-ink);
  font-size: .8125rem;
  font-weight: 800;
}

.process-grid p { margin-top: .5rem; color: var(--muted); max-width: 34ch; }

.request-section { color: var(--paper); background: var(--dark); }
.request-section .eyebrow { color: var(--dark-text); }
.request-section .section-index { color: var(--accent); }

.request-intro { margin-top: 1rem; max-width: 37ch; color: var(--dark-text); }

.request-form {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
}

.demo-note {
  padding: .8rem .9rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--panel);
  font-size: .9375rem;
}

.no-script { margin-top: 1rem; color: var(--muted); }

fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
fieldset:disabled .button { cursor: default; background: var(--slot); }

.form-field { margin-block: 1.125rem; }

.form-field label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
}

.form-field input, .form-field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: .65rem .75rem;
  border: 1px solid #828278;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
}

.form-field textarea { resize: vertical; }

.form-field [aria-invalid="true"] { border: 2px solid var(--accent-ink); }

.field-hint, .field-error {
  margin-top: .4rem;
  font-size: .875rem;
}

.field-hint { color: var(--muted); }
.field-error { color: var(--accent-ink); font-weight: 680; }

.consent-field { margin-block: 1.125rem; }
.consent-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
}
.consent-choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: .15rem 0 0;
  accent-color: var(--accent-ink);
}
.consent-choice input[aria-invalid="true"] { outline: 2px solid var(--accent-ink); }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  color: var(--muted);
  font-size: .875rem;
}
.legal-links a, .consent-choice a, .legal-document a { text-underline-offset: .2em; }
.form-legal-links { margin-top: .6rem; }
.footer-legal-links { grid-column: 1 / -1; margin-top: .8rem; }

.legal-document { max-width: 59rem; overflow-wrap: anywhere; }
.legal-document h1 { font-size: clamp(2.15rem, 6vw, 4rem); }
.legal-document h2 { margin-block: 1.55rem .5rem; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.legal-document p + p { margin-top: .7rem; }
.legal-document .demo-note { margin-block: 1rem 1.5rem; }
.legal-document ul { padding-inline-start: 1.4em; margin-block: .55rem; }
.legal-document li + li { margin-top: .35rem; }

.form-status { font-weight: 680; }
.form-status:not(:empty) { margin-top: 1rem; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .25rem 1rem;
  padding-block: 1.25rem;
}

.footer-contact { grid-row: 2; display: grid; }
.footer-contact span { color: var(--muted); font-size: .875rem; }
.back-to-top { justify-self: end; }

@media (min-width: 40rem) {
  .hero-description { max-width: 38ch; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr auto; }
  .footer-contact { grid-row: auto; }
  .cost-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .75rem; }
  .business-form-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; }
  .business-offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-offerings > li:last-child { grid-column: span 2; }
}

@media (min-width: 48rem) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 1rem; padding-block: .75rem; }
  .site-nav { grid-row: auto; grid-column: auto; justify-content: center; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 6rem); }
  .design-story-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .print-finish-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish-media { --bleed-top: max(0px, var(--finish-pad) - 1rem); }
}

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .print-chamber { max-inline-size: none; }
  .chamber-media { --bleed-top: max(0px, var(--hero-pad-top) - .5rem); }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .business-offerings { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .business-offerings > li { grid-column: span 2; }
  .business-offerings > li:nth-child(n+4) { grid-column: span 3; }

  .request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }
}

@media (min-width: 90rem) {
  .container { width: min(100%, clamp(86rem, calc(82vw + 15rem), 139rem)); }
  h1 { font-size: clamp(5rem, calc(3.75vw + 1.625rem), 7rem); }
  h2 { font-size: clamp(4.125rem, calc(1.833vw + 2.475rem), 5.5rem); }

  .request-form {
    width: min(100%, 47.5rem);
    justify-self: end;
  }

  .design-story-figure .scene-media { max-block-size: 29rem; }
}

@media (min-width: 60rem) and (min-height: 48rem) and (prefers-reduced-motion: no-preference) {
  .hero-chapter[data-pinned] .hero { position: sticky; top: 0; }
  .hero-chapter[data-pinned]::after { content: ""; display: block; block-size: min(22svh, 13rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-content :is(h1, .hero-description, .button) {
    animation: hero-enter 380ms cubic-bezier(.2, .65, .3, 1) both;
  }

  .motion-ready .hero-content .hero-description { animation-delay: 55ms; }
  .motion-ready .hero-content .button { animation-delay: 110ms; }
  .motion-ready .hero-content .button:focus-visible { animation: none; }

  @keyframes hero-enter {
    from { opacity: .88; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* One short, shared rhythm for interface reactions. */
  :root { --motion-fast: 150ms; --motion-ease: cubic-bezier(.2, .7, .3, 1); }

  .motion-ready .button {
    transition: background-color var(--motion-fast) ease, box-shadow var(--motion-fast) var(--motion-ease),
      transform var(--motion-fast) var(--motion-ease);
  }

  /* Pressing a link-button gives brief feedback; the form's submit button never moves. */
  .motion-ready a.button:active { transform: translateY(1px); box-shadow: none; }

  .motion-ready .faq-list summary { transition: color var(--motion-fast) ease; }
  .motion-ready .faq-list details[open] > p { animation: faq-reveal 220ms var(--motion-ease) both; }

  @keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @supports selector(::details-content) {
    .motion-ready .faq-list details { interpolate-size: allow-keywords; }
    .motion-ready .faq-list details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 220ms var(--motion-ease), content-visibility 220ms allow-discrete;
    }
    .motion-ready .faq-list details[open]::details-content { block-size: auto; }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .motion-ready a.button:not(.services-cta, .contact-visit):hover { box-shadow: 0 3px 0 var(--accent-ink); }
  .motion-ready :is(.services-cta, .contact-visit):hover { box-shadow: 0 2px 0 var(--accent-ink); }

  /* Arrows nudge in the direction they point. */
  .motion-ready :is(.button[href^="#"], .header-cta, .text-link) > span[aria-hidden] {
    display: inline-block;
    transition: transform var(--motion-fast) var(--motion-ease);
  }
  .motion-ready :is(.button[href^="#"], .header-cta):hover > span[aria-hidden] { transform: translateY(2px); }
  .motion-ready .text-link:hover > span[aria-hidden] { transform: translateX(3px); }

  /* Underlines fade in instead of appearing at once. */
  .motion-ready :is(.site-nav a:not([aria-current]), .header-cta, .back-to-top) {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-underline-offset: .4em;
    transition: text-decoration-color var(--motion-fast) ease, text-underline-offset var(--motion-fast) var(--motion-ease);
  }
  .motion-ready :is(.site-nav a:not([aria-current]), .header-cta, .back-to-top):hover {
    text-decoration-color: currentColor;
    text-underline-offset: .25em;
  }
  .motion-ready :is(.text-link, .contact-map-link, .legal-links a) {
    transition: text-decoration-color var(--motion-fast) ease, color var(--motion-fast) ease;
  }
  .motion-ready .faq-list summary:hover { color: var(--accent-ink); }

  .motion-ready :is(.service-grid, .work-grid) .concept-image {
    transition: transform 260ms var(--motion-ease), box-shadow 260ms var(--motion-ease);
  }
  .motion-ready :is(.service-grid figure, .work-card):hover .concept-image {
    transform: perspective(900px) rotateX(2deg) rotateY(-3deg) scale(1.018);
    box-shadow: 0 14px 26px -18px rgba(34, 35, 31, .45);
  }
}

@supports (animation-timeline: view(block)) and (animation-range: entry) {
  @media (prefers-reduced-motion: no-preference) {
    .motion-ready .info-enter {
      animation: info-enter linear both;
      animation-duration: auto;
      animation-timeline: view(block);
      animation-range: entry 0% entry 55%;
    }

    @keyframes info-enter {
      from { opacity: .94; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .motion-ready .hero-content {
      animation: hero-parallax linear both;
      animation-duration: auto;
      animation-timeline: scroll(root block);
      animation-range: 0px 380px;
    }

    .motion-ready .hero-content { --parallax-y: -20px; }

    @keyframes hero-parallax {
      to { transform: translateY(var(--parallax-y)); }
    }

    .motion-ready .service-grid figure {
      animation: card-enter linear both;
      animation-duration: auto;
      animation-timeline: view(block);
      animation-range: entry var(--card-delay, 0px) entry calc(70% + var(--card-delay, 0px));
    }

    @media (min-width: 48rem) {
      .service-grid > :nth-child(2) { --card-delay: 42px; }
      .service-grid > :nth-child(3) { --card-delay: 84px; }
    }

    .motion-ready .work-card {
      animation: card-reveal linear both;
      animation-duration: auto;
      animation-timeline: view(block);
      animation-range: entry 0% entry 65%;
    }

    @keyframes card-reveal {
      from { opacity: .35; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes card-enter {
      from { opacity: .9; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .motion-ready .process-grid {
      position: relative;
      view-timeline: --steps block;
    }

    .motion-ready .process-grid::before,
    .motion-ready .process-grid::after {
      content: "";
      position: absolute;
      inset: 0 auto 0 1.125rem;
      inline-size: 2px;
      background: var(--line);
    }

    .motion-ready .process-grid::after {
      background: var(--accent);
      transform-origin: top;
      animation: step-line-vertical linear both;
      animation-duration: auto;
      animation-timeline: --steps;
      animation-range: cover 12% cover 48%;
    }

    .motion-ready .process-grid li {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 2.375rem minmax(0, 1fr);
      align-items: start;
      column-gap: 1rem;
      padding-top: 0;
      border-top: 0;
    }

    .motion-ready .process-grid p { grid-column: 2; }

    .motion-ready .step-index {
      grid-row: span 2;
      margin-bottom: 0;
      background: var(--paper);
      animation: step-accent linear both;
      animation-duration: auto;
      animation-timeline: --steps;
      animation-range: cover var(--step-start) cover var(--step-end);
    }

    .motion-ready .process-grid li:nth-child(1) { --step-start: 13%; --step-end: 21%; }
    .motion-ready .process-grid li:nth-child(2) { --step-start: 24%; --step-end: 32%; }
    .motion-ready .process-grid li:nth-child(3) { --step-start: 36%; --step-end: 44%; }

    @media (min-width: 40rem) {
      .motion-ready .process-grid::before,
      .motion-ready .process-grid::after {
        inset: 0 0 auto;
        inline-size: auto;
        block-size: 2px;
      }

      .motion-ready .process-grid::after {
        animation-name: step-line-horizontal;
        transform-origin: left;
      }

      .motion-ready .process-grid li { display: block; padding-top: 1.125rem; }
      .motion-ready .step-index { margin-bottom: .75rem; }
    }

    @keyframes step-line-vertical { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    @keyframes step-line-horizontal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes step-accent { to { background: var(--accent); border-color: var(--accent); color: var(--ink); } }

    .motion-ready .request-form { position: relative; }

    .motion-ready .request-form::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      box-shadow: inset 0 0 0 1px var(--accent);
      pointer-events: none;
      opacity: .5;
      animation: form-outline linear both;
      animation-duration: auto;
      animation-timeline: view(block);
      animation-range: entry 5% entry 65%;
    }

    .motion-ready #request:target .request-form::after,
    .motion-ready .request-form:is(:focus-within, .is-engaged)::after { animation: none; }

    @keyframes form-outline { from { opacity: 0; } to { opacity: .5; } }
  }
}

@supports (view-timeline: --gallery block) and (view-timeline-inset: 1px 2px)
  and (animation-timeline: --gallery) and (animation-range: contain) and (overflow: clip) {
  @media (min-width: 1050px) and (prefers-reduced-motion: no-preference) {
    .works-section {
      /* Keep the fragment at the start of the timeline when centering adds a larger inset. */
      scroll-margin-block-start: max(0px, calc(var(--gallery-top, 0px) - var(--section-padding)));
    }

    .gallery-scene { --gallery-gap: 1.5rem; }

    .gallery-scene[data-gallery] .gallery-viewport { overflow: clip; }

    .gallery-scene[data-gallery] .work-grid {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: calc((100% - 2 * var(--gallery-gap)) / 3);
      column-gap: var(--gallery-gap);
    }

    .gallery-scene[data-gallery="sticky"] {
      block-size: calc(var(--gallery-height) + var(--gallery-distance));
      view-timeline: --gallery block;
      view-timeline-inset: var(--gallery-top);
    }

    .gallery-scene[data-gallery="sticky"] .gallery-sticky {
      position: sticky;
      top: var(--gallery-top);
    }

    .gallery-scene[data-gallery="sticky"] .work-grid {
      /* Ease in and out so the horizontal travel starts and stops gently at the pin edges. */
      animation: gallery-travel cubic-bezier(.37, 0, .63, 1) both;
      animation-duration: auto;
      animation-timeline: --gallery;
      animation-range: contain;
    }

    /* Cards that start off-screen fade and rise in as the row brings them into view. */
    .gallery-scene[data-gallery="sticky"] .work-grid > :nth-child(n+4) .work-card {
      animation: card-reveal linear both;
      animation-duration: auto;
      animation-timeline: --gallery;
      animation-range: contain var(--reveal-start) contain var(--reveal-end);
    }
    /* Ranges follow the eased travel: each card fades in while it is actually crossing the right edge. */
    .gallery-scene[data-gallery="sticky"] .work-grid > :nth-child(4) { --reveal-start: 12%; --reveal-end: 38%; }
    .gallery-scene[data-gallery="sticky"] .work-grid > :nth-child(5) { --reveal-start: 38%; --reveal-end: 60%; }
    .gallery-scene[data-gallery="sticky"] .work-grid > :nth-child(6) { --reveal-start: 60%; --reveal-end: 86%; }

    @keyframes gallery-travel {
      from { transform: translateX(0); }
      to { transform: translateX(calc(0px - var(--gallery-distance))); }
    }
  }
}
