@font-face {
  font-family: "Onest Variable";
  src: url("./public/fonts/onest-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --teal: #6f6258;
}

html {
  overflow-x: clip;
}

body {
  font-family: "Onest Variable", Onest, Arial, sans-serif;
  overflow-x: hidden;
}

.site-nav {
  font-size: .92rem;
  letter-spacing: -.015em;
}

.direction-switch {
  position: absolute;
  z-index: 3;
  top: clamp(5.75rem, 12vh, 8.5rem);
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.25vw, 2.5rem);
}

.direction-switch button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: .15rem 0 .4rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: clamp(.76rem, 1vw, .94rem);
  line-height: 1;
  letter-spacing: -.015em;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.direction-switch button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

.direction-switch button:hover,
.direction-switch button:focus-visible {
  color: var(--ink);
  transform: translateY(-.12rem);
}

.hero h1,
.hero-bottom p,
.system-axis,
.hero-mark,
.manifesto h2,
.manifesto p,
.cap-heading h2,
.cap-row span,
.cap-row p,
.process h2,
.process li span,
.process li p {
  transition: opacity 420ms var(--ease), transform 520ms var(--ease), filter 320ms var(--ease);
}

.direction-phase-exit.direction-to-right .hero h1,
.direction-phase-exit.direction-to-right .hero-bottom p,
.direction-phase-exit.direction-to-right .system-axis,
.direction-phase-exit.direction-to-right .manifesto h2,
.direction-phase-exit.direction-to-right .manifesto p,
.direction-phase-exit.direction-to-right .cap-heading h2,
.direction-phase-exit.direction-to-right .cap-row span,
.direction-phase-exit.direction-to-right .cap-row p,
.direction-phase-exit.direction-to-right .process h2,
.direction-phase-exit.direction-to-right .process li span,
.direction-phase-exit.direction-to-right .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(16vw);
}

.direction-phase-exit.direction-to-left .hero h1,
.direction-phase-exit.direction-to-left .hero-bottom p,
.direction-phase-exit.direction-to-left .system-axis,
.direction-phase-exit.direction-to-left .manifesto h2,
.direction-phase-exit.direction-to-left .manifesto p,
.direction-phase-exit.direction-to-left .cap-heading h2,
.direction-phase-exit.direction-to-left .cap-row span,
.direction-phase-exit.direction-to-left .cap-row p,
.direction-phase-exit.direction-to-left .process h2,
.direction-phase-exit.direction-to-left .process li span,
.direction-phase-exit.direction-to-left .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(-16vw);
}

.direction-phase-exit [data-hero-mark] {
  transition: transform 760ms linear;
}

.direction-phase-exit.direction-to-right [data-hero-mark] { transform: translateX(150vw); }
.direction-phase-exit.direction-to-left [data-hero-mark] { transform: translateX(-150vw); }

.direction-phase-incoming.direction-to-right .hero h1,
.direction-phase-incoming.direction-to-right .hero-bottom p,
.direction-phase-incoming.direction-to-right .system-axis,
.direction-phase-incoming.direction-to-right .manifesto h2,
.direction-phase-incoming.direction-to-right .manifesto p,
.direction-phase-incoming.direction-to-right .cap-heading h2,
.direction-phase-incoming.direction-to-right .cap-row span,
.direction-phase-incoming.direction-to-right .cap-row p,
.direction-phase-incoming.direction-to-right .process h2,
.direction-phase-incoming.direction-to-right .process li span,
.direction-phase-incoming.direction-to-right .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(-16vw);
  transition: none;
}

.direction-phase-incoming.direction-to-left .hero h1,
.direction-phase-incoming.direction-to-left .hero-bottom p,
.direction-phase-incoming.direction-to-left .system-axis,
.direction-phase-incoming.direction-to-left .manifesto h2,
.direction-phase-incoming.direction-to-left .manifesto p,
.direction-phase-incoming.direction-to-left .cap-heading h2,
.direction-phase-incoming.direction-to-left .cap-row span,
.direction-phase-incoming.direction-to-left .cap-row p,
.direction-phase-incoming.direction-to-left .process h2,
.direction-phase-incoming.direction-to-left .process li span,
.direction-phase-incoming.direction-to-left .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(16vw);
  transition: none;
}

.direction-phase-incoming.direction-to-right [data-hero-mark] { transform: translateX(-150vw); transition: none; }
.direction-phase-incoming.direction-to-left [data-hero-mark] { transform: translateX(150vw); transition: none; }

.direction-phase-settle .hero h1,
.direction-phase-settle .hero-bottom p,
.direction-phase-settle .system-axis,
.direction-phase-settle .manifesto h2,
.direction-phase-settle .manifesto p,
.direction-phase-settle .cap-heading h2,
.direction-phase-settle .cap-row span,
.direction-phase-settle .cap-row p,
.direction-phase-settle .process h2,
.direction-phase-settle .process li span,
.direction-phase-settle .process li p {
  opacity: 1;
  filter: none;
  transform: none;
}

.direction-phase-settle [data-hero-mark] {
  transform: none;
  transition: transform 760ms linear;
}

.direction-phase-settle .hero h1,
.direction-phase-settle .hero-bottom p,
.direction-phase-settle .system-axis {
  transition-delay: 300ms;
}

::selection {
  background: var(--teal);
  color: var(--paper);
}

.hero h1 span {
  display: block;
}

.hero-mark-incoming {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-170vw);
  transition: none;
}

.hero-mark-incoming.hero-mark-entering {
  visibility: visible;
  opacity: .48;
  transition: none;
}

.hero-mark-incoming.hero-mark-entering.from-right { transform: translateX(-150vw); }
.hero-mark-incoming.hero-mark-entering.from-left { transform: translateX(150vw); }

.hero-mark-incoming.hero-mark-entering.hero-mark-moving {
  transform: none;
  transition: transform 760ms linear;
}

.direction-content-incoming.direction-to-right .hero h1,
.direction-content-incoming.direction-to-right .hero-bottom p,
.direction-content-incoming.direction-to-right .system-axis,
.direction-content-incoming.direction-to-right .manifesto h2,
.direction-content-incoming.direction-to-right .manifesto p,
.direction-content-incoming.direction-to-right .cap-heading h2,
.direction-content-incoming.direction-to-right .cap-row span,
.direction-content-incoming.direction-to-right .cap-row p,
.direction-content-incoming.direction-to-right .process h2,
.direction-content-incoming.direction-to-right .process li span,
.direction-content-incoming.direction-to-right .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(-16vw);
  transition: none;
}

.direction-content-incoming.direction-to-left .hero h1,
.direction-content-incoming.direction-to-left .hero-bottom p,
.direction-content-incoming.direction-to-left .system-axis,
.direction-content-incoming.direction-to-left .manifesto h2,
.direction-content-incoming.direction-to-left .manifesto p,
.direction-content-incoming.direction-to-left .cap-heading h2,
.direction-content-incoming.direction-to-left .cap-row span,
.direction-content-incoming.direction-to-left .cap-row p,
.direction-content-incoming.direction-to-left .process h2,
.direction-content-incoming.direction-to-left .process li span,
.direction-content-incoming.direction-to-left .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(16vw);
  transition: none;
}

.direction-content-settle .hero h1,
.direction-content-settle .hero-bottom p,
.direction-content-settle .system-axis,
.direction-content-settle .manifesto h2,
.direction-content-settle .manifesto p,
.direction-content-settle .cap-heading h2,
.direction-content-settle .cap-row span,
.direction-content-settle .cap-row p,
.direction-content-settle .process h2,
.direction-content-settle .process li span,
.direction-content-settle .process li p {
  opacity: 1;
  filter: none;
  transform: none;
}

.direction-content-settle .hero h1,
.direction-content-settle .hero-bottom p,
.direction-content-settle .system-axis {
  transition-delay: 300ms;
}

html.motion-ready .site-header {
  animation: header-arrive 480ms 90ms both var(--ease);
}

html.motion-ready .hero h1 span {
  animation: hero-line-arrive 620ms both var(--ease);
}

html.motion-ready .hero h1 span:nth-child(1) { animation-delay: 40ms; }
html.motion-ready .hero h1 span:nth-child(2) { animation-delay: 125ms; }
html.motion-ready .hero h1 span:nth-child(3) { animation-delay: 210ms; }

html.motion-ready .hero-bottom,
html.motion-ready .system-axis {
  animation: hero-support-arrive 560ms 320ms both var(--ease);
}

html.motion-ready .hero-mark {
  animation: hero-mark-arrive 800ms 20ms both var(--ease);
}

html.motion-ready .hero-mark.hero-mark-ready {
  animation: none;
}

@keyframes header-arrive {
  from { opacity: 0; transform: translateY(-.5rem); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-line-arrive {
  from { opacity: 0; transform: translateY(.85em); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}

@keyframes hero-support-arrive {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-mark-arrive {
  from { opacity: 0; transform: translateX(2rem); }
  to { opacity: .48; transform: none; }
}

html.motion-ready .motion-pending {
  will-change: opacity, transform, clip-path;
}

html.motion-ready .motion-clip,
html.motion-ready .motion-project {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 560ms var(--ease), clip-path 760ms var(--ease);
}

html.motion-ready .motion-side {
  opacity: 0;
  transform: translateX(-1.25rem);
  transition: opacity 520ms var(--ease), transform 680ms var(--ease);
}

html.motion-ready .motion-quiet {
  opacity: 0;
  transform: translateY(.75rem);
  transition: opacity 520ms var(--ease), transform 680ms var(--ease);
  transition-delay: 140ms;
}

html.motion-ready .motion-step {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 460ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--motion-delay, 0ms);
}

html.motion-ready .motion-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
  will-change: auto;
}

html.motion-ready .motion-from-up.motion-clip:not(.motion-visible),
html.motion-ready .motion-from-up.motion-project:not(.motion-visible) {
  clip-path: inset(100% 0 0 0);
}

html.motion-ready .motion-from-up.motion-quiet:not(.motion-visible),
html.motion-ready .motion-from-up.motion-step:not(.motion-visible) {
  transform: translateY(-1rem);
}

html.motion-ready .motion-from-up.motion-side:not(.motion-visible) {
  transform: translateX(1.25rem);
}

.site-nav a,
.text-action,
.project-open,
.cap-row span,
.cap-row i,
.project-copy strong,
.project-dialog,
.case-header button,
.case-end button,
.faq summary::after {
  transition-timing-function: var(--ease);
}

.text-action span,
.project-open b,
.case-end button span {
  display: inline-block;
  transition: transform 220ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .text-action:hover span,
  .text-action:focus-visible span,
  .project-open:hover b,
  .project-trigger:focus-visible .project-open b,
  .case-end button:hover span,
  .case-end button:focus-visible span {
    transform: translate(.22rem, -.12rem);
  }

  .cap-row:hover span,
  .cap-row:focus-within span {
    transform: translateX(.25rem);
  }

  .case-header button:hover,
  .case-header button:focus-visible {
    transform: translateX(-.2rem);
  }
}

/* The project is a full-width editorial spread, not a bordered promo card. */
.project-trigger {
  min-height: clamp(27rem, 39vw, 37rem);
  grid-template-columns: minmax(11rem, .46fr) minmax(0, 1.54fr);
  gap: clamp(2rem, 6vw, 8rem);
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.project-index {
  display: flex;
  padding: clamp(1.35rem, 2.6vw, 2.7rem) 0;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.25vw, 2.55rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.project-copy {
  display: flex;
  flex-direction: column;
  align-self: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.project-copy strong {
  max-width: none;
  font-size: clamp(4.25rem, 10vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.04em;
}

.project-open {
  grid-column: auto;
  align-self: start;
  margin-top: 1.2rem;
}

.project-trigger:hover,
.project-trigger:focus-visible {
  background: var(--ink);
}

.project-trigger:hover .project-index,
.project-trigger:focus-visible .project-index {
  color: #e7e4e0;
}

.project-trigger:hover .project-copy strong,
.project-trigger:focus-visible .project-copy strong {
  transform: translateX(.35rem);
}

.project-trigger:hover .project-open b,
.project-trigger:focus-visible .project-open b {
  transform: translate(.22rem, -.12rem);
}

.project-dialog {
  opacity: 0;
  transform: translateY(.8rem) scale(.987);
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
}

.project-dialog::backdrop {
  background: rgb(16 17 18 / 0);
  transition: background 320ms var(--ease), backdrop-filter 320ms var(--ease);
}

.project-dialog[open].is-open {
  opacity: 1;
  transform: none;
}

.project-dialog[open].is-open::backdrop {
  background: rgb(16 17 18 / .45);
}

html.motion-ready .project-dialog .case-hero h2,
html.motion-ready .project-dialog .case-intro,
html.motion-ready .project-dialog .case-hero .text-action {
  opacity: 0;
  transform: translateY(.9rem);
  transition: opacity 520ms var(--ease), transform 680ms var(--ease);
}

html.motion-ready .project-dialog .case-hero h2 {
  clip-path: inset(0 0 100% 0);
  transform: none;
  transition: opacity 520ms var(--ease), clip-path 760ms var(--ease);
}

html.motion-ready .project-dialog.case-entered .case-hero h2,
html.motion-ready .project-dialog.case-entered .case-intro,
html.motion-ready .project-dialog.case-entered .case-hero .text-action {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
}

html.motion-ready .project-dialog.case-entered .case-intro { transition-delay: 120ms; }
html.motion-ready .project-dialog.case-entered .case-hero .text-action { transition-delay: 220ms; }

html.motion-ready .motion-case-pending {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 520ms var(--ease), transform 700ms var(--ease);
}

html.motion-ready .motion-case-visible {
  opacity: 1;
  transform: none;
}

html.motion-ready .motion-case-from-up.motion-case-pending:not(.motion-case-visible) {
  transform: translateY(-1.25rem);
}

.faq summary::after {
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.case-hero {
  position: relative;
  min-height: auto;
  padding-top: clamp(7rem, 13vw, 11rem);
  padding-bottom: clamp(7rem, 13vw, 11rem);
}

.case-hero h2 {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -.04em;
  line-height: .86;
}

.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  grid-column: 2;
  background: var(--line);
  align-self: end;
}

.price-table > div {
  display: grid;
  grid-template-rows: 2.3em auto minmax(2.5em, 1fr);
  align-content: start;
  gap: .65rem;
  background: var(--paper);
  padding: 1rem;
}

.price-table span,
.price-table small {
  color: var(--muted);
  font-size: .72rem;
}

.price-table strong {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-mark {
  left: 31%;
  top: 25%;
  color: transparent;
  font-size: min(43vw, 42rem);
  -webkit-text-stroke: 1px var(--ink);
  opacity: .48;
}

.hero {
  contain: paint;
}

.hero h1,
.manifesto h2,
.process h2,
.contact h2 {
  line-height: .91;
  letter-spacing: -.035em;
}

.manifesto h2,
.cap-heading h2,
.cap-row span,
.process span,
.case-panel h3,
.relay h3,
.mechanics h3,
.pricing h3,
.relay-role > span,
.mechanics p,
.formats ul,
.case-end h3,
.case-end p {
  letter-spacing: -.035em;
}

.manifesto h2,
.cap-heading h2,
.case-panel h3,
.relay h3,
.mechanics h3,
.pricing h3,
.case-end h3 {
  line-height: .93;
}

.cap-row span,
.process span,
.mechanics p,
.formats ul,
.case-end p {
  line-height: 1;
}

.system-axis {
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
}

.axis-track {
  position: relative;
  display: block;
  height: 1px;
  background: var(--ink);
}

.axis-track i {
  display: none;
}

.axis-track b {
  position: absolute;
  top: 50%;
  right: 0;
  width: .75rem;
  height: .75rem;
  margin: 0;
  transform: translate(50%, -50%);
  background: var(--teal);
}

.relay-role {
  min-height: clamp(15rem, 22vw, 21rem);
  padding-top: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.relay-role p {
  margin-top: clamp(2rem, 5vw, 5rem);
}

.visit ol {
  margin-bottom: 0;
}

.visit-sequence {
  width: min(100%, 62rem);
  margin: clamp(3rem, 7vw, 6rem) 0 0 auto;
}

.visit-sequence-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e4dfd4;
  box-shadow: 0 1.4rem 2.7rem rgb(16 17 18 / .16);
}

.visit-sequence-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 560ms ease, transform 800ms cubic-bezier(.16, 1, .3, 1);
}

.visit-sequence-stage img.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.visit-sequence-caption {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.visit-sequence-progress {
  display: flex;
  gap: .4rem;
  width: min(100%, 13rem);
  margin-top: 1rem;
}

.visit-sequence-progress i {
  display: block;
  flex: 1;
  height: 2px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  transition: background-color 360ms ease;
}

.visit-sequence-progress i.is-active {
  background: var(--teal);
}

@media (min-width: 801px) {
  .visit {
    display: grid;
    grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 7rem);
    min-height: calc(100dvh - 5rem);
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  }

  .visit ol {
    display: grid;
    gap: .95rem;
    margin-top: clamp(2rem, 4vw, 3.75rem);
    font-size: clamp(1.1rem, 1.65vw, 1.75rem);
    letter-spacing: -.04em;
  }

  .visit li:not(:last-child)::after {
    content: none;
  }

  .visit-sequence {
    width: min(100%, 45rem);
    margin: 0;
    justify-self: end;
  }
}

@media (min-width: 801px) and (max-height: 850px) {
  .visit {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Standalone featured-project page */
.case-page .case-header {
  position: sticky;
}

.case-page .case-header .wordmark {
  justify-self: start;
}

.case-back {
  justify-self: end;
  color: var(--teal);
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
}

.standalone-case {
  height: auto;
  overflow: visible;
}

.case-hero h1 {
  font-size: clamp(4rem, 13vw, 13rem);
  line-height: .78;
  letter-spacing: -.09em;
  margin: 2rem 0 4rem;
}

.case-panel h2,
.relay h2,
.mechanics h2,
.pricing h2,
.case-end h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: .87;
  letter-spacing: -.065em;
}

.relay-role ul {
  display: grid;
  gap: .4rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  color: var(--muted);
  font-size: .8rem;
}

.relay-art {
  --art-surface: #6f6258;
  position: relative;
  align-self: end;
  width: min(88%, 25rem);
  margin: clamp(2.75rem, 5vw, 5rem) clamp(.4rem, 1.2vw, 1rem) clamp(3.8rem, 6vw, 5rem) auto;
}

.relay-art::before,
.relay-art::after {
  position: absolute;
  z-index: 0;
  content: "";
}

.relay-art::before {
  right: 14%;
  bottom: clamp(-1.35rem, -2.2vw, -1.8rem);
  left: clamp(-1.4rem, -2.5vw, -2rem);
  height: clamp(.5rem, 1vw, .8rem);
  background: var(--art-surface);
}

.relay-art::after {
  right: clamp(-1.9rem, -3.3vw, -2.8rem);
  bottom: clamp(-2.55rem, -4.2vw, -3.5rem);
  left: 12%;
  height: clamp(.45rem, .9vw, .7rem);
  border-top: 1px solid var(--art-surface);
  border-bottom: 1px solid var(--art-surface);
}

.relay-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1.35rem 2.4rem rgb(16 17 18 / .2);
}

.relay-art-owner {
  --art-surface: #716257;
}

.relay-art-cashier {
  --art-surface: #111a1a;
}

.relay-art-client {
  --art-surface: #146e67;
}

.relay-role li::before {
  content: '— ';
  color: var(--teal);
}

.case-page .mechanics h2 {
  color: inherit;
}

.case-end .case-contact {
  width: max-content;
  margin-top: 4rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .35rem;
}

.case-end button {
  color: var(--ink);
}

@media (max-width: 800px) {
  .project-trigger,
  .project-trigger:hover,
  .project-trigger:focus-visible {
    color: var(--ink);
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .project-trigger .project-index,
  .project-trigger:hover .project-index,
  .project-trigger:focus-visible .project-index,
  .project-trigger .project-open {
    color: var(--ink);
  }

  .project-trigger:hover .project-copy strong,
  .project-trigger:focus-visible .project-copy strong {
    transform: none;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }

  .direction-switch {
    top: 4.8rem;
    right: var(--pad);
    left: var(--pad);
    justify-content: space-between;
    gap: .65rem;
  }

  .direction-switch button {
    font-size: .69rem;
    line-height: 1.1;
    text-align: left;
  }

  .project-trigger {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .project-index {
    grid-column: 1;
    grid-row: 1;
    padding: 1.2rem 0 0;
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .project-copy {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding: 1.7rem 0 2rem;
  }

  .hero-mark {
    left: 0;
    top: 25%;
    width: 100%;
    padding-left: 18%;
    overflow: hidden;
    white-space: nowrap;
    font-size: 61vw;
  }

  .price-table {
    grid-column: auto;
  }

  .relay-art {
    width: min(84%, 24rem);
    margin-top: 3rem;
    margin-bottom: 4rem;
  }

  .visit-sequence {
    width: 100%;
    margin-top: 3rem;
  }

  .case-page .case-header {
    grid-template-columns: 1fr auto;
  }

  .case-page .case-header > span {
    display: none;
  }

  .case-hero h1 {
    font-size: clamp(4rem, 19vw, 6.2rem);
  }

  html.motion-ready .hero-mark {
    animation-duration: 380ms;
    transform: none;
  }

  html.motion-ready .motion-side {
    transform: translateX(-.65rem);
  }
}

@media (max-width: 430px) {
  .project-copy strong {
    font-size: clamp(3.25rem, 15vw, 4.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .direction-switch button,
  .hero h1,
  .hero-bottom p,
  .hero-mark,
  .manifesto h2,
  .manifesto p,
  .cap-heading h2,
  .cap-row span,
  .cap-row p,
  .process h2,
  .process li span,
  .process li p {
    transition: none;
  }

  .project-dialog,
  .project-dialog::backdrop,
  .faq summary::after {
    transition: none;
  }
}

/* Direction switch: one clean incoming word, never a full-screen bounce. */
.direction-content-exit.direction-to-right .hero h1,
.direction-content-exit.direction-to-right .hero-bottom p,
.direction-content-exit.direction-to-right .system-axis,
.direction-content-exit.direction-to-right .manifesto h2,
.direction-content-exit.direction-to-right .manifesto p,
.direction-content-exit.direction-to-right .cap-heading h2,
.direction-content-exit.direction-to-right .cap-row span,
.direction-content-exit.direction-to-right .cap-row p,
.direction-content-exit.direction-to-right .process h2,
.direction-content-exit.direction-to-right .process li span,
.direction-content-exit.direction-to-right .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(12vw);
}

.direction-content-exit.direction-to-left .hero h1,
.direction-content-exit.direction-to-left .hero-bottom p,
.direction-content-exit.direction-to-left .system-axis,
.direction-content-exit.direction-to-left .manifesto h2,
.direction-content-exit.direction-to-left .manifesto p,
.direction-content-exit.direction-to-left .cap-heading h2,
.direction-content-exit.direction-to-left .cap-row span,
.direction-content-exit.direction-to-left .cap-row p,
.direction-content-exit.direction-to-left .process h2,
.direction-content-exit.direction-to-left .process li span,
.direction-content-exit.direction-to-left .process li p {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(-12vw);
}

.hero-mark-swap-exit {
  opacity: 0;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}

.hero-mark-swap-exit.hero-mark-to-right { transform: translateX(10vw); }
.hero-mark-swap-exit.hero-mark-to-left { transform: translateX(-10vw); }

.hero-mark-swap-prepared {
  opacity: .48;
  transition: none;
}

.hero-mark-swap-prepared.hero-mark-from-right { transform: translateX(-38vw); }
.hero-mark-swap-prepared.hero-mark-from-left { transform: translateX(38vw); }

.hero-mark-swap-prepared.hero-mark-swap-arrive {
  transform: none;
  transition: transform 600ms var(--ease);
}

/* Leave more air below the direction axis in every service state. */
.system-axis {
  margin-bottom: clamp(1.5rem, 4vh, 3.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark-swap-exit,
  .hero-mark-swap-prepared,
  .hero-mark-swap-prepared.hero-mark-swap-arrive {
    transition: none;
  }
}

/* Keep the mobile mark in the same visual language as the desktop composition. */
@media (max-width: 800px) {
  .system-axis {
    margin-bottom: clamp(1.25rem, 3vh, 2rem);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.75rem, 13.2vw, 4.3rem);
    letter-spacing: -.045em;
  }

  .hero-mark {
    left: 31%;
    width: auto;
    padding-left: 0;
    overflow: visible;
    white-space: normal;
    font-size: min(43vw, 42rem);
  }

  .hero-mark-swap-exit {
    transition-duration: 280ms;
  }

  .hero-mark-swap-prepared.hero-mark-from-right {
    transform: translateX(-54vw);
  }

  .hero-mark-swap-prepared.hero-mark-from-left {
    transform: translateX(54vw);
  }

  .hero-mark-swap-prepared.hero-mark-swap-arrive {
    transition-duration: 1100ms;
  }

  .direction-content-settle .hero h1,
  .direction-content-settle .hero-bottom p,
  .direction-content-settle .system-axis {
    transition-duration: 720ms;
    transition-delay: 360ms;
  }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  .hero-mark-swap-exit,
  .hero-mark-swap-prepared,
  .hero-mark-swap-prepared.hero-mark-swap-arrive {
    transition: none;
  }
}

/* Capability rows reveal concrete work from a layer tucked beneath the line. */
.cap-row {
  display: block;
  min-height: 0;
  padding: 0;
  position: relative;
  overflow: visible;
  background: var(--paper);
  transition: background 450ms var(--ease), color 450ms var(--ease);
}

.cap-row:focus-within {
  background: var(--paper);
  color: var(--ink);
}

.cap-row:hover,
.cap-row:has(.cap-row-trigger:focus-visible) {
  background: var(--ink);
  color: var(--paper);
}

.cap-row-trigger {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: clamp(7.5rem, 13vw, 12rem);
  display: grid;
  grid-template-columns: minmax(16rem, 1.2fr) minmax(15rem, .8fr) auto;
  gap: 2rem;
  align-items: center;
  border: 0;
  padding: 1.5rem var(--pad);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cap-row-title {
  font-size: clamp(1.65rem, 3.7vw, 4rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.065em;
}

span.cap-row-copy {
  max-width: 27rem;
  color: var(--muted);
  font-size: .96rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: normal;
  transition: color 450ms var(--ease);
}

span.cap-disclosure {
  width: 2.25rem;
  height: 2.25rem;
  position: relative;
  font-size: initial;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
}

.cap-row:focus-within .cap-row-copy { color: var(--muted); }
.cap-row:hover .cap-row-copy,
.cap-row:has(.cap-row-trigger:focus-visible) .cap-row-copy { color: #d4dcdb; }

.cap-disclosure::before,
.cap-disclosure::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 1px;
  background: var(--stone, var(--teal));
  transition: transform 280ms var(--ease);
}

.cap-disclosure::before { transform: translate(-50%, -50%); }
.cap-disclosure::after { transform: translate(-50%, -50%) rotate(90deg); }
.cap-row.is-expanded .cap-disclosure::after { transform: translate(-50%, -50%) rotate(0); }

.cap-examples {
  position: relative;
  z-index: 1;
  max-height: 0;
  margin: -1rem var(--pad) 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-1.25rem);
  background: transparent;
  color: inherit;
  transition: max-height 520ms var(--ease), opacity 260ms var(--ease), transform 520ms var(--ease);
}

.cap-row.is-expanded .cap-examples {
  max-height: 16rem;
  opacity: 1;
  transform: translateY(0);
}

.cap-row:hover .cap-examples-inner,
.cap-row:has(.cap-row-trigger:focus-visible) .cap-examples-inner {
  border-color: #676d6d;
}

.cap-row:hover .cap-examples p,
.cap-row:has(.cap-row-trigger:focus-visible) .cap-examples p {
  color: #d4dcdb;
}

.cap-examples-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 6rem);
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--line);
  transition: border-color 450ms var(--ease);
}

.cap-examples article {
  display: grid;
  gap: .5rem;
}

.cap-examples strong {
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.cap-examples p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  transition: color 450ms var(--ease);
}

.cap-row:focus-within:not(:hover) .cap-examples p { color: var(--muted); }

/* The AI assistant is a product insert, not another accordion row. */
.cap-ai-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  min-height: clamp(21rem, 31vw, 29rem);
  padding: clamp(2.5rem, 4vw, 4.5rem) var(--pad);
  overflow: hidden;
  background: var(--stone, var(--teal));
  color: var(--paper);
}

.cap-ai-feature[hidden] { display: none; }

.cap-ai-content,
.cap-ai-side {
  position: relative;
  z-index: 1;
}

.cap-ai-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.35rem, 2vw, 2.1rem);
}

.cap-ai-content h3 {
  margin: 0;
  font-size: clamp(2.85rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.cap-ai-content p {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.42;
}

.cap-ai-action {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  border: 0;
  padding: .8rem 1rem;
  background: var(--paper);
  color: var(--stone, var(--teal));
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease);
}

.cap-ai-action:hover,
.cap-ai-action:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-.12rem);
}

.cap-ai-action:focus-visible { outline-color: var(--paper); }

.cap-ai-side {
  display: flex;
  align-items: center;
}

.cap-ai-points {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .55);
  list-style: none;
}

.cap-ai-points li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  line-height: 1.25;
}

.cap-ai-points li::before {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--paper);
}

.cap-ai-echo {
  position: absolute;
  z-index: 0;
  right: clamp(-.5rem, 3vw, 3rem);
  bottom: clamp(-1.9rem, -.5vw, -.7rem);
  color: rgba(255, 255, 255, .1);
  font-size: clamp(10rem, 22vw, 22rem);
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.13em;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 600ms var(--ease);
}

.cap-ai-feature:hover .cap-ai-echo,
.cap-ai-feature:focus-within .cap-ai-echo { transform: translateX(-.045em); }

@media (max-width: 800px) {
  .cap-row-trigger {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .8rem 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .cap-row-copy {
    grid-column: 1 / -1;
  }

  .cap-examples {
    margin-top: -.7rem;
  }

  .cap-row.is-expanded .cap-examples {
    max-height: 34rem;
  }

  .cap-examples-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.7rem;
  }

  .cap-examples article + article {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
  }

  .cap-ai-feature {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    min-height: 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .cap-ai-content h3 {
    font-size: clamp(2.45rem, 10.5vw, 4.2rem);
    white-space: nowrap;
  }

  .cap-ai-content p { max-width: 28rem; }

  .cap-ai-side { max-width: 31rem; }

  .cap-ai-action {
    width: 100%;
    justify-content: center;
    min-height: 3.25rem;
    font-size: .9rem;
  }

  .cap-ai-echo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-ai-echo { transition: none; }
}
