body {
  position: relative;
  background:
    radial-gradient(ellipse at 18% 8%, #f5f1e9 0%, transparent 42%), #eeeae2;
}
main {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}
.story-ribbon,
.paper-ribbon {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.paper-ribbon {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: hidden;
}
.scene {
  --entry: 0;
  --drift: 0;
}
.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.26em;
}
.logo-icon {
  width: 1em;
  height: 1em;
}
.site-header {
  align-items: center;
  height: clamp(64px, 7.5svh, 96px);
}
.hero {
  height: 100svh;
  min-height: 420px;
  max-height: 78vw;
}
.hero h1 .fit-line {
  left: 3.1%;
  width: max-content;
  max-width: 94%;
  overflow: clip;
  padding: 0.09em 0.03em 0.1em 0;
  line-height: 0.85;
}
.hero h1 [data-fit] {
  transform: none;
}
.hero-first {
  top: 15%;
  font-size: min(18.2vw, 27svh);
}
.hero-second {
  top: 49%;
  font-size: min(15.7vw, 22svh);
}
.hero-intro {
  top: auto;
  bottom: 14%;
  font-size: clamp(20px, min(2.42vw, 4.5svh), 46px);
}
.hero-cta {
  top: auto;
  bottom: 14%;
  height: auto;
  min-height: 44px;
  font-size: clamp(20px, 2vw, 38px);
}
.hero-foot {
  align-items: center;
}
.hero-foot button {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  padding: 0.6em 0.3em;
  cursor: pointer;
}
.hero-foot button::before {
  content: "Ⅱ";
  margin-right: 0.6em;
}
.hero-foot button[aria-pressed="true"]::before {
  content: "▷";
}
.hero-foot button:hover {
  text-decoration: underline;
}
.project-screen {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #e6e2d9;
  border: 1px solid #221b1524;
  border-radius: 3px;
  box-shadow: 0 0.8vw 2vw -0.9vw #28201866;
}
.project-screen img {
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 100%;
  transition: scale 0.25s var(--ease);
}
.project-frame {
  isolation: isolate;
}
.project-frame:focus-visible,
.project-caption:focus-within {
  z-index: 4;
}
.work-more,
.team-directory {
  pointer-events: none;
}
.work-more > *,
.team-directory > * {
  pointer-events: auto;
}
.disclosure-trigger {
  display: inline-flex !important;
  gap: 0.8em;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}
.work-more > summary {
  font-size: clamp(11px, 1vw, 17px);
  line-height: 1.25;
}
.trigger-icon {
  display: grid;
  place-items: center;
  width: 1.5em;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-family: Instrument;
  line-height: 1;
  transition: transform 0.22s var(--ease);
}
details[open] > .disclosure-trigger .trigger-icon {
  transform: rotate(45deg);
}
.when-open,
details[open] > .disclosure-trigger .when-closed {
  display: none;
}
details[open] > .disclosure-trigger .when-open {
  display: inline;
}
.directory-content,
.extended-projects {
  background: var(--paper);
}
.headshot {
  width: clamp(44px, 4.6vw, 76px);
  height: clamp(51px, 5.3vw, 88px);
  flex: none;
  object-fit: cover;
  object-position: 50% 32%;
  filter: saturate(0.8);
}
.person-label {
  padding-right: 22px;
}
.person summary {
  min-height: 82px;
}
.glass-figure {
  position: absolute;
  left: 3.4%;
  top: 23%;
  width: 31%;
  height: 56%;
  pointer-events: none;
}
.glass-figure svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.plate {
  --space: 46px;
  transform: translateY(calc(var(--i) * var(--space) - 25px));
  transition: transform 0.48s var(--ease);
}
.plate .etch {
  stroke: #433c33;
  stroke-width: 1.2;
  opacity: 0.35;
  transition: opacity 0.22s;
}
.plate.is-lit {
  transform: translate(10px, calc(var(--i) * var(--space) - 39px));
}
.plate.is-lit .etch {
  stroke: #1d4ed8;
  opacity: 1;
  stroke-width: 2.1;
}
.capability summary .plus {
  transition: transform 0.22s var(--ease);
}
.capability[open] summary .plus {
  transform: rotate(45deg);
}
.capability-body p {
  max-width: 42ch;
}
.capability:nth-child(4) .capability-body {
  margin-top: -0.4vw;
}
.process-track {
  position: relative;
}
.process .section-label {
  z-index: 1;
}
.process-panel {
  left: 48.5%;
  top: 54%;
  width: 36%;
}
.delivery-print {
  width: 84%;
  background: linear-gradient(115deg, #efebe3ed, #f9f6efdc);
  border: 1px solid #48443d;
  border-radius: 3px;
  box-shadow: 3px 4px 0 #5c51441b;
}
.print-label {
  display: flex;
  justify-content: space-between;
  padding: 0.45em 0.75em;
  border-bottom: 1px solid #6e665d;
  font: clamp(9px, 0.8vw, 13px)/1.4 Plex;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.delivery-print svg {
  display: block;
  width: 100%;
  height: auto;
}
.diagram {
  stroke: #34332e;
  stroke-width: 1.7;
  opacity: 0;
  transition: opacity 0.2s;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.diagram text {
  font: 10px Plex;
  letter-spacing: 1.2px;
  fill: #44413b;
  stroke: none;
}
.diagram circle {
  fill: #f2ede4;
}
.diagram .stamp {
  fill: #2563eb;
  stroke: #2563eb;
}
.diagram .signal {
  stroke: #1e40af;
  stroke-width: 3;
}
.process-panel[data-stage="discover"] .diagram-discover,
.process-panel[data-stage="design"] .diagram-design,
.process-panel[data-stage="build"] .diagram-build,
.process-panel[data-stage="evolve"] .diagram-evolve {
  opacity: 1;
}
.process-caption {
  font-size: clamp(28px, min(3.25vw, 6svh), 64px);
  margin-top: 0.34em;
}
.process-description {
  font-family: Instrument;
  font-size: clamp(15px, 1.13vw, 21px);
  max-width: 42ch;
  line-height: 1.35;
  margin-top: 0.65em;
}
.process-track.tracks {
  height: 247svh;
}
.tracks > .process {
  position: sticky;
  top: 0;
  height: 100svh;
}
.tracks .process-first {
  font-size: min(7vw, 12svh);
}
.tracks .process-second {
  font-size: min(6.7vw, 11.5svh);
}
.tracks .delivery-print {
  max-width: 41svh;
}
.process-stop {
  min-height: 44px;
}
.process-path path {
  stroke-width: 1.4;
}
.studio-photo-mobile {
  display: block;
  position: absolute;
  left: 55.6%;
  top: 11.9%;
  width: 44.4%;
  height: 81.2%;
  overflow: hidden;
  margin: 0;
}
.studio-photo-mobile img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-title,
.team-preview {
  z-index: 1;
}
.team-directory > summary {
  font-size: clamp(15px, 1.45vw, 25px);
}
.contact-copy p {
  white-space: normal;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  transition: border-color 0.18s;
}
.contact-form :is(input, textarea, select):focus {
  border-color: var(--red);
}
@media (hover: hover) and (pointer: fine) {
  .project-frame:hover img {
    scale: 1.025;
  }
  .disclosure-trigger:hover {
    color: var(--red);
  }
  .person:hover .headshot {
    filter: none;
  }
}
@media (max-width: 1024px) {
  .hero {
    height: 100svh;
    min-height: 440px;
    max-height: 1000px;
  }
  .hero-first {
    top: 20%;
    font-size: 18vw;
  }
  .hero-second {
    top: 43%;
    font-size: 14.6vw;
  }
  .hero h1 .fit-line {
    left: 5%;
    max-width: 92%;
  }
  .hero-intro {
    bottom: 24%;
    font-size: clamp(19px, 4.8vw, 30px);
  }
  .hero-cta {
    bottom: 11.6%;
    height: clamp(44px, 7svh, 60px);
    font-size: 21px;
  }
  .hero-foot {
    bottom: 2.4%;
    gap: 6px;
  }
  .hero-foot > span {
    max-width: 32%;
  }
  .hero-foot button {
    min-height: 38px;
  }
  .project-frame {
    aspect-ratio: 14/9;
  }
  .project-secondary .project-frame {
    aspect-ratio: 14/9;
  }
  .glass-figure {
    left: 8%;
    top: 41px;
    width: 80%;
    height: 54vw;
  }
  .glass-figure svg {
    width: 100%;
    height: 100%;
  }
  .process-panel {
    position: relative;
    left: auto;
    top: auto;
    width: 84%;
    margin: clamp(16px, 4svh, 32px) 0 0 auto;
  }
  .delivery-print {
    width: 100%;
    max-width: 395px;
  }
  .process-caption {
    font-size: clamp(26px, 7.7vw, 45px);
  }
  .process-description {
    font-size: 15px;
  }
  .tracks > .process {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 16px;
  }
  .tracks .process-title {
    margin-top: 18px;
  }
  .tracks .process-first,
  .tracks .process-second {
    font-size: 7.8vw;
  }
  .tracks .process-stops {
    margin-top: 5svh;
  }
  .tracks .delivery-print {
    max-width: 370px;
  }
  .studio-photo-mobile {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1.13;
    margin-top: 30px;
  }
  .person summary {
    gap: 10px;
  }
  .team-directory > summary {
    font-size: 18px;
  }
  .capability:nth-child(4) .capability-body {
    margin-top: 12px;
  }
  .site-footer {
    background: var(--paper);
  }
  .contact-form {
    background: linear-gradient(
      90deg,
      transparent,
      #eeeae2a8 4% 96%,
      transparent
    );
  }
}
@media (min-width: 1025px) and (max-height: 570px) {
  .hero {
    min-height: 340px;
  }
  .hero h1 .hero-first {
    top: 20%;
  }
  .hero-intro,
  .hero-cta {
    bottom: 12%;
  }
  .process:not(.tracks > .process) {
    min-height: 54vw;
  }
}
@media (max-width: 1024px) and (max-height: 520px) {
  .hero {
    min-height: 340px;
  }
  .hero-first {
    font-size: min(16vw, 21svh);
    top: 22%;
  }
  .hero-second {
    font-size: min(14vw, 19svh);
    top: 46%;
  }
  .hero-intro {
    bottom: 13%;
    font-size: 15px;
  }
  .hero-cta {
    left: auto;
    bottom: 13%;
    right: 5%;
    font-size: 16px;
    padding-inline: 14px;
  }
  .hero-foot {
    bottom: 0;
  }
}
@keyframes typeset {
  from {
    transform: translateY(0.94em) skewY(2deg);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes seat {
  from {
    opacity: 0.3;
    translate: 0 7px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes impress {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.first-impression:not(.motion-off) .hero h1 [data-fit] {
    animation: typeset 0.86s var(--ease) both;
  }
  html.first-impression:not(.motion-off) .hero-second [data-fit] {
    animation-delay: 0.12s;
  }
  html.first-impression:not(.motion-off) :is(.hero-intro, .hero-cta) {
    animation: seat 0.55s 0.26s var(--ease) both;
  }
  html:not(.motion-off) .work-scene .project-screen {
    translate: 0 calc(var(--entry) * 34px);
    transform: perspective(1100px) rotateX(calc(var(--entry) * 7deg));
    transform-origin: 50% 90%;
  }
  html:not(.motion-off) .project-secondary .project-screen {
    translate: calc(var(--entry) * -22px) calc(var(--entry) * 45px);
  }
  html:not(.motion-off) .glass-figure {
    transform: translateY(calc(var(--entry) * 22px))
      rotate(calc(var(--drift) * 2deg));
  }
  html:not(.motion-off) .plate {
    --space: calc(46px - var(--entry) * 20px);
  }
  html:not(.motion-off) .capability h3 {
    translate: calc(var(--entry) * var(--shift, 22px)) 0;
  }
  html:not(.motion-off) .capability:nth-child(even) {
    --shift: -22px;
  }
  html:not(.motion-off) .capability[open] .capability-body p,
  html:not(.motion-off) .person[open] .person-detail {
    animation: seat 0.25s var(--ease);
  }
  html:not(.motion-off) .studio-photo-mobile img {
    transform: scale(1.05) translateY(calc(var(--drift) * 1.7%));
  }
  html:not(.motion-off) .team-preview > div {
    translate: 0 calc(var(--entry) * 18px);
  }
  html:not(.motion-off) .studio-title > .fit-line:first-child,
  html:not(.motion-off) .process-first,
  html:not(.motion-off) .contact-title .fit-line:first-child {
    translate: calc(var(--entry) * -18px) 0;
  }
  html:not(.motion-off) .process-second,
  html:not(.motion-off) .contact-title .fit-line:last-child {
    translate: calc(var(--entry) * 18px) 0;
  }
  html:not(.motion-off) .contact .form-field,
  html:not(.motion-off) .contact-copy {
    translate: 0 calc(var(--entry) * 12px);
  }
  html:not(.motion-off) .site-footer {
    border-image: linear-gradient(
        to right,
        var(--ink) calc(var(--foot, 1) * 100%),
        transparent 0
      )
      1;
  }
  html:not(.motion-off) .disclosure-trigger:active,
  html:not(.motion-off) .button:active {
    scale: 0.98;
  }
}
.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation: none !important;
  transition: none !important;
}
.motion-off {
  scroll-behavior: auto;
}

.hero h1,
.display,
.capability h3,
.project-caption h3 {
  letter-spacing: -0.049em;
}
.fit-line [data-fit] {
  word-spacing: 0.022em;
}
.hero h1 .fit-line {
  max-width: 96%;
}
.hero-foot button {
  margin-left: auto;
  margin-right: 2em;
}
.studio-title,
.work-title,
.process-title,
.contact-title {
  letter-spacing: -0.053em;
}
.project-caption p,
.project-caption .text-link,
.team-preview p,
.hero-foot button {
  background: var(--paper);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.project-caption p,
.team-preview p {
  width: fit-content;
}
.disclosure-trigger {
  background: var(--paper);
}
@media (max-width: 1024px) {
  .hero-first {
    font-size: 16.8vw;
  }
  .hero-intro {
    max-width: 90%;
  }
  .hero-foot button {
    margin-right: 0;
  }
  .hero h1 .fit-line {
    max-width: 92%;
  }
}

.story-ribbon {
  opacity: 0.99;
}
.plate .etch {
  opacity: 0.24;
  stroke-width: 1.9;
}
.plate.is-lit .etch {
  opacity: 1;
  stroke-width: 2.6;
}
.glass-caption {
  position: absolute;
  bottom: -0.6em;
  left: 15%;
  font:
    clamp(9px, 0.7vw, 12px)/1.3 Plex,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 0.2em 0.45em;
}
.glass-figure[data-service="mobile"] .plate.is-lit {
  transform: translate(-12px, calc(var(--i) * var(--space) - 42px));
}
.glass-figure[data-service="ai"] .plate.is-lit {
  transform: translate(18px, calc(var(--i) * var(--space) - 37px));
}
.hero h1,
.capability h3,
.process-title,
.studio-title,
.contact-title,
.work-title,
.process-caption,
.project-caption h3 {
  word-spacing: 0.045em;
}
.hero-foot button {
  background: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) .work-scene .project-screen {
    translate: 0 calc(var(--piece, 0) * 32px);
    transform: perspective(1100px) rotateX(calc(var(--piece, 0) * 7deg));
  }
  html:not(.motion-off) .project-secondary .project-screen {
    translate: calc(var(--piece, 0) * -22px) calc(var(--piece, 0) * 38px);
  }
  html:not(.motion-off) .team-preview > div,
  html:not(.motion-off) .contact-copy,
  html:not(.motion-off) .contact .form-field {
    translate: none;
  }
  html:not(.motion-off) .team-preview > div > * {
    translate: 0 calc(var(--piece, 0) * 13px);
  }
  html:not(.motion-off) .contact-copy > *,
  html:not(.motion-off) .contact .form-field label {
    translate: calc(var(--piece, 0) * 9px) 0;
  }
  html:not(.motion-off) .site-footer > a,
  html:not(.motion-off) .site-footer > span,
  html:not(.motion-off) .team-directory > summary .trigger-icon {
    translate: 0 calc(var(--piece, 0) * 7px);
  }
  html:not(.motion-off) .contact-form .button .submit-label {
    translate: calc(var(--piece, 0) * 12px) 0;
  }
}

/* The scroll position sets the resting pose as well as the entrance pose.
   Decorations move inside the targets; controls keep their hit areas. */
.stage-trace {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) .hero-first {
    translate: 0 calc(var(--depart, 0) * -5vh);
  }
  html:not(.motion-off) .hero-second {
    translate: calc(var(--depart, 0) * 2.5vw) calc(var(--depart, 0) * -1.5vh);
  }
  html:not(.motion-off) .project-frame:not(:focus-visible) .project-screen img {
    transform: scale(calc(1 + var(--piece, 0) * 0.075));
    transform-origin: 50% 15%;
  }
  html:not(.motion-off) .project-frame:not(:focus-visible) .project-screen {
    clip-path: inset(
      calc(var(--piece, 0) * 6%) calc(var(--piece, 0) * 4%) 0 0 round 3px
    );
  }
  html:not(.motion-off)
    .project-secondary
    .project-frame:not(:focus-visible)
    .project-screen {
    clip-path: inset(
      0 0 calc(var(--piece, 0) * 5%) calc(var(--piece, 0) * 6%) round 3px
    );
  }
  html:not(.motion-off) .capability h3 {
    translate: calc(var(--piece, 0) * var(--shift, 22px)) 0;
  }
  html:not(.motion-off) .capability .capability-number {
    opacity: calc(1 - var(--piece, 0) * 0.38);
  }
  html:not(.motion-off) .glass-figure svg {
    transform: perspective(900px) rotateY(calc(var(--drift, 0) * 9deg));
  }
  html:not(.motion-off) .process-path > path {
    stroke: #b4a79a;
  }
  html:not(.motion-off) .stage-trace {
    display: block;
    stroke: var(--red);
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--stage, 0.13));
    transition: stroke-dashoffset 0.25s var(--ease);
  }
  html:not(.motion-off) .studio-photo-mobile {
    clip-path: inset(0 calc(var(--piece, 0) * 6%) calc(var(--piece, 0) * 4%) 0);
  }
  html:not(.motion-off) .studio-photo-mobile img {
    transform: scale(calc(1.045 + var(--piece, 0) * 0.055))
      translateY(calc(var(--drift, 0) * 1.7%));
  }
  html:not(.motion-off) .contact .form-field::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--red);
    pointer-events: none;
    transform-origin: left;
    transform: scaleX(calc(1 - var(--piece, 0)));
    opacity: calc(var(--piece, 0) * 0.85);
  }
  html:not(.motion-off) .form-field:focus-within::after {
    display: none;
  }
}
@media (max-width: 1024px) {
  html {
    scroll-padding-top: 12px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .site-header {
    gap: clamp(8px, 3vw, 22px);
    padding-inline: max(16px, env(safe-area-inset-left))
      max(16px, env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    padding-bottom: 0;
    height: calc(64px + env(safe-area-inset-top));
  }
  .mobile-nav:not([hidden]) {
    top: 100%;
    max-height: calc(100svh - 64px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    flex: none;
  }
  .header-contact,
  .project-caption .text-link,
  .hero-foot a,
  .hero-foot button,
  .site-footer .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .header-contact,
  .project-caption .text-link {
    border: 0;
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
  .hero-foot {
    bottom: max(1%, env(safe-area-inset-bottom));
  }
  .site-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .project-links > a {
    min-height: 48px;
  }
  .person-label,
  .team-preview > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .process-stops::before {
    border-color: #b4a79a;
  }
  .process-stops::after {
    content: "";
    position: absolute;
    pointer-events: none;
    left: 7%;
    right: 7%;
    top: 7px;
    height: 2px;
    background: var(--red);
    transform-origin: left;
    transform: scaleX(var(--step-fraction, 0));
  }
  .process:has(.stop-design.is-active) {
    --step-fraction: 0.33;
  }
  .process:has(.stop-build.is-active) {
    --step-fraction: 0.67;
  }
  .process:has(.stop-evolve.is-active) {
    --step-fraction: 1;
  }
  .tracks .process-stops::after {
    transition: transform 0.24s var(--ease);
  }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .work-scene {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 22px 4%;
    align-items: start;
  }
  .work-scene > .section-label,
  .work-title {
    grid-column: 1/-1;
  }
  .work-title {
    margin: 0 0 12px;
    font-size: 8.9vw;
  }
  .project-secondary {
    margin: 55px 0 0;
  }
  .capability-list {
    padding: 24px 0 0 35%;
  }
  .capability:nth-child(n) h3 {
    font-size: clamp(31px, 5vw, 50px);
  }
  .glass-figure {
    left: 1%;
    width: 34%;
    top: 27%;
    height: 44%;
  }
  .studio-scene {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 20px 4%;
    align-items: start;
  }
  .studio .section-label {
    grid-column: 1/-1;
  }
  .studio-title {
    font-size: 6.2vw;
    margin: 0;
  }
  .studio-photo-mobile {
    grid-column: 2;
    grid-row: 2/4;
    margin: 0;
    aspect-ratio: 4/5;
  }
  .team-preview {
    grid-column: 1;
    margin: 0;
  }
  .hero-first {
    font-size: min(16vw, 22svh);
  }
  .hero-second {
    font-size: min(14vw, 19svh);
  }
}
@media (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 320px;
  }
  .hero h1 .hero-first {
    top: 20%;
    font-size: 20svh;
  }
  .hero h1 .hero-second {
    top: 43%;
    font-size: 18svh;
  }
  .hero-intro,
  .hero-cta {
    bottom: 16%;
  }
  .hero-foot {
    bottom: 0;
    left: max(6%, env(safe-area-inset-left));
    right: max(6%, env(safe-area-inset-right));
  }
  .hero-intro {
    max-width: 52%;
  }
  .site-header {
    height: 50px;
  }
  .hero-cta {
    right: max(6%, env(safe-area-inset-right));
  }
  .mobile-nav:not([hidden]) {
    max-height: calc(100svh - 50px);
    padding-block: 12px;
  }
}

.hero-foot button[hidden] { display: none; }

/* ------------------------------------------------------------------
   Phone polish (≤600px): one gutter, one vertical rhythm, no desktop
   zig-zag offsets, calmer display tracking, no paper "knockout" boxes.
   ------------------------------------------------------------------ */
@media (max-width: 600px) {
  :root {
    --m-gutter: 24px;
    --m-section: 72px;
  }

  /* Display type: the desktop -0.06/-0.07em makes letters collide at
     phone sizes. */
  .display,
  .hero h1,
  .work-title,
  .studio-title,
  .process-title,
  .contact-title,
  .process-caption,
  .project-caption h3,
  .capability h3,
  .capability:nth-child(n) h3 {
    letter-spacing: -0.045em;
    word-spacing: 0.08em;
  }

  /* Hero: normal flow instead of absolute % positions, so the two
     headline lines sit together and everything shares the gutter. */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding: calc(88px + env(safe-area-inset-top)) var(--m-gutter)
      max(20px, env(safe-area-inset-bottom));
  }
  .hero h1,
  .hero h1 .fit-line,
  .hero-intro,
  .hero-cta,
  .hero-foot {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    max-width: none;
  }
  .hero h1 {
    margin-top: auto;
    line-height: 0.95;
  }
  .hero h1 .fit-line {
    display: block;
    white-space: nowrap;
  }
  .hero h1 .hero-first {
    font-size: 15.5vw;
  }
  .hero h1 .hero-second {
    font-size: 14vw;
    margin-top: 0.12em;
  }
  .hero-intro {
    margin-top: 28px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }
  .hero-cta {
    margin-top: 32px;
    height: 56px;
    font-size: 19px;
  }
  .hero-foot {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #cfc9bd;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 16px;
    font-size: 10px;
  }
  .hero-foot > span {
    flex: 1 0 100%;
    max-width: none;
  }
  .hero-foot button,
  .hero-foot a {
    min-height: 40px;
    margin: 0;
    white-space: nowrap;
  }

  /* Section rhythm + gutters */
  .work-scene,
  .capabilities,
  .process,
  .studio-scene,
  .contact {
    padding-left: var(--m-gutter);
    padding-right: var(--m-gutter);
    padding-top: var(--m-section);
  }
  .work-more,
  .team-directory {
    padding-left: var(--m-gutter);
    padding-right: var(--m-gutter);
  }
  .section-label,
  .capabilities .section-label,
  .studio .section-label,
  .process .section-label {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .studio .section-label > span {
    margin-right: 0;
  }

  /* Work: stack projects on one edge, consistent caption spacing */
  .work-title {
    margin: 20px 0 32px;
    line-height: 1.02;
  }
  .project {
    margin-bottom: 48px;
  }
  .project-secondary {
    margin-left: 0;
  }
  .project-caption,
  .project-main .project-caption,
  .project-secondary .project-caption {
    margin-top: 18px;
  }
  .project-caption h3,
  .project-secondary h3 {
    font-size: 34px;
    line-height: 1;
  }
  .project-caption p,
  .project-secondary .project-caption p {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
  }
  .project-caption .text-link,
  .project-secondary .project-caption .text-link {
    font-size: 13px;
    margin-top: 4px;
  }
  .work-more {
    padding-bottom: 0;
  }

  /* Remove the paper-coloured highlight boxes behind small text; on a
     phone they read as rendering glitches rather than a design detail. */
  .project-caption p,
  .project-caption .text-link,
  .team-preview p {
    background: transparent;
  }
  /* A flat page ground on phones, so paper-coloured knockouts (captions,
     disclosure triggers, glass caption) are invisible against it. */
  body {
    background-image: none;
  }
  /* ...and instead give whole text blocks a paper ground, so the ribbon
     passes cleanly behind them rather than through the words. */
  .project-caption,
  .project-main .project-caption,
  .project-secondary .project-caption,
  .team-preview,
  .contact-copy {
    background: var(--paper);
    box-shadow: 0 0 0 10px var(--paper);
  }

  /* Ribbon: keep the signature, but let it sit back behind content. */
  .story-ribbon {
    opacity: 0.8;
  }

  /* Capabilities */
  .glass-figure {
    top: calc(var(--m-section) + 36px);
  }
  .capability-list {
    padding-top: calc(54vw + 56px);
  }
  .glass-caption {
    left: 0;
  }
  .capability-body,
  .capability:nth-child(n) .capability-body {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Process: drop the staggered indents */
  .process-title {
    margin-top: 20px;
    line-height: 1.04;
  }
  .process-title > .process-second {
    margin-top: 4px;
    text-align: left;
  }
  .process-panel {
    width: 100%;
    margin: 32px 0 0;
  }
  .process-caption {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.02;
    margin-top: 20px;
  }
  .process-description {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 12px;
  }

  /* Studio */
  .studio-title {
    margin-top: 20px;
    line-height: 1;
  }
  .team-preview {
    margin-top: 32px;
    gap: 24px 16px;
  }
  .team-preview p {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 6px;
  }
  .studio-photo-mobile {
    margin-top: 32px;
  }
  .team-directory {
    padding-top: 24px;
    padding-bottom: 8px;
  }

  /* Contact */
  .contact-title {
    line-height: 0.98;
  }
  .contact-copy {
    margin-top: 28px;
  }
  .contact-copy p {
    font-size: 14px;
    line-height: 1.6;
    max-width: none;
  }
  .contact-form {
    margin-top: 40px;
  }
  .site-footer {
    margin-top: 64px;
  }
}

/* ------------------------------------------------------------------
   Rotating selected work (assets/work-rotator.js)
   ------------------------------------------------------------------ */
.project-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 6px 10px;
  font: 400 11px/1 Plex, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(16, 19, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.project-screen img,
.project-badge,
.project-caption > * {
  transition:
    opacity 0.32s var(--ease),
    translate 0.32s var(--ease),
    scale 0.25s var(--ease);
}
.project-screen img.is-incoming {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.48s var(--ease);
}
.project-screen img.is-incoming.is-in {
  opacity: 1;
}
.project.is-swapping .project-badge {
  opacity: 0;
}
.project.is-swapping .project-caption > * {
  opacity: 0;
  translate: 0 6px;
}
@media (prefers-reduced-motion: reduce) {
  .project-screen img,
  .project-badge,
  .project-caption > * {
    transition: none;
  }
}
@media (max-width: 1024px) {
  .project-links > a {
    grid-template-columns: 24px 1fr 20px;
    grid-template-rows: auto auto;
    row-gap: 2px;
    padding: 12px 0;
  }
  .project-links > a > span:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .project-links > a > .project-category {
    display: block;
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    color: var(--muted);
  }
  .project-links > a > span:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .project-links > a > .eyebrow {
    grid-row: 1 / 3;
  }
  .project-badge {
    left: 8px;
    bottom: 8px;
    font-size: 9px;
    padding: 5px 8px;
  }
}

/* ------------------------------------------------------------------
   Studio section without the desk photo: headline on the left, the
   team listed on the right like a credits column.
   ------------------------------------------------------------------ */
@media (min-width: 1025px) {
  .team-preview {
    left: 60%;
    top: 26%;
    width: 36.4%;
    display: block;
  }
  .team-preview > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5vw;
    padding: 1.45vw 0;
    border-top: 1px solid var(--line, #bcb8ae);
  }
  .team-preview > div:last-child {
    border-bottom: 1px solid var(--line, #bcb8ae);
  }
  .team-preview h3 {
    font-size: 1.95vw;
  }
  .team-preview p {
    margin-top: 0;
    font-size: 1vw;
    text-align: right;
    color: var(--muted);
  }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .team-preview {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
  }
}
