:root {
  --header-h: clamp(64px, 7vw, 88px);
  --ink: #050409;
  --paper: #FFFFFF;
  --grege: #ECEAE4;
  --stone: #D8D4CB;
  --rule: rgba(5, 4, 9, 0.14);
  --field-line: rgba(5, 4, 9, 0.5);
  --field-line-on-ink: rgba(239, 237, 232, 0.5);
  --muted: #5B5852;
  --olive: #4E5440;
  --on-ink: #EFEDE8;
  --on-ink-muted: #A6A39C;

  --sans: "Red Hat Text", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: var(--sans);
  --display: "Red Hat Display", "Red Hat Text", system-ui, sans-serif;

  --track: 0.3em;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 80px);
  --gap: clamp(16px, 2.2vw, 36px);
  --section: clamp(6rem, 14vw, 12.5rem);

  --fs-label: 0.875rem;
  --fs-body: clamp(0.9375rem, 0.875rem + 0.25vw, 1rem);
  --fs-lead: clamp(1rem, 0.9rem + 0.405vw, 1.1875rem);
  --fs-h3: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-h2: clamp(1.25rem, 1.02rem + 1.275vw, 2rem);
  --fs-display: clamp(1.75rem, 1.105rem + 2.38vw, 3.25rem);
}

.studio { padding-block: var(--section); background: var(--grege); box-shadow: 0 0 0 100vmax var(--grege); clip-path: inset(0 -100vmax); }

.p-intro { padding-block: clamp(5rem, 9vw, 8rem) var(--section); background: var(--grege); box-shadow: 0 0 0 100vmax var(--grege); clip-path: inset(0 -100vmax); }

.project-grid figure { margin: 0; }

.project.is-drawing .media { background: #fff; }
.project.is-drawing .media img { object-fit: contain; padding: clamp(0.5rem, 1.5vw, 1.5rem); }
@media (max-width: 700px) {

  .project.is-drawing .media { aspect-ratio: auto; height: auto; }
  .project.is-drawing .media-inner { position: static; }
  .project.is-drawing .media img { height: auto; }
}
#form-ok { padding: 32px 0; border-top: 1px solid var(--rule); }

.ab-head { padding-bottom: clamp(5rem, 9vw, 8rem); }
.ab-head > .over { color: var(--muted); display: block; margin-bottom: clamp(12px, 1.5vw, 20px); }
.ab-row {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: var(--gap);
  margin-top: clamp(20px, 2.5vw, 36px); padding-top: clamp(18px, 2vw, 28px); border-top: 1px solid var(--ink);
}
.ab-row strong { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); }
.ab-row span { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.ab-row blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.0625rem, 0.9rem + 0.72vw, 1.5rem); line-height: 1.25; }
.ab-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.ab-strip a { display: block; }
.ab-strip .media { --ratio: 4 / 3; }
.ab-strip .media.drawing { background: #fff; }
.ab-strip .media.drawing img { object-fit: contain; padding: 6%; }
.ab-strip .media img { transition: transform 1.4s var(--ease); }
.ab-strip a:hover .media img, .ab-strip a:focus-visible .media img { transform: scale(1.04); }
.ab-strip span { display: block; margin-top: 12px; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.ab-strip b { font-weight: 500; color: var(--olive); margin-right: 8px; }
@media (max-width: 899px) {
  .ab-row { grid-template-columns: 1fr 1fr; }
  .ab-row blockquote { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ab-name { white-space: normal; font-size: clamp(1.75rem, 9.35vw, 3rem); }
  .ab-row { grid-template-columns: 1fr; }
  .ab-strip { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .ab-strip span { font-size: 0.8125rem; }
  .ab-strip b { display: block; margin: 0; }
}

.ab-bio { padding-block: var(--section); }
.ab-portrait { grid-column: 1 / 6; margin: 0; position: sticky; top: 110px; align-self: start; }
.ab-portrait .placeholder { aspect-ratio: 4 / 5; }
.ab-bio-text { grid-column: 7 / 13; display: grid; gap: 1.1em; align-content: start; }
.ab-bio-text .lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.1875rem, 0.892rem + 1.105vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; }
.ab-bio-text p:not(.lead) { color: #3a3840; max-width: 58ch; }
.ab-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--rule); }
.ab-figures strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 1.7rem + 2.55vw, 4.25rem); line-height: 1; }
.ab-figures span { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--muted); max-width: 18ch; }
@media (max-width: 899px) { .ab-portrait, .ab-bio-text { grid-column: 1 / -1; } .ab-portrait { position: static; max-width: 460px; margin-bottom: 40px; } }

.ab-story { padding-bottom: var(--section); }
.story-count { position: absolute; right: 16px; top: 14px; z-index: 3; font-family: var(--display); font-size: 0.875rem; background: var(--paper); padding: 6px 10px; }

.ab-path { padding-bottom: var(--section); }
.path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); position: relative; padding-top: 36px; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink); opacity: 0.35; }
.path li { position: relative; display: grid; gap: 6px; align-content: start; }
.path li::before { content: ""; position: absolute; top: -34px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.path li:last-child::before { background: var(--ink); }
.path .yr { font-family: var(--display); font-weight: 500; font-size: 0.9375rem; color: var(--olive); }
.path h3 { font-size: 1.125rem; }
.path p { color: var(--muted); font-size: 0.9375rem; }
.todo { color: #9a958c; font-style: italic; }
@media (max-width: 899px) {
  .path { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 28px; }
  .path::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .path li::before { top: 5px; left: -28px; }
}

.ab-end { padding-block: 0 var(--section); text-align: center; }
.ab-end blockquote { margin: 0 auto; max-width: 26ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 0.935rem + 1.7vw, 2.5rem); line-height: 1.18; letter-spacing: -0.01em; }
.ab-end cite { display: block; margin-top: 20px; font-style: normal; color: var(--muted); font-size: 0.9375rem; }

.pj-cta a { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 220px; aspect-ratio: 4 / 3;
  padding: clamp(20px, 2.4vw, 36px); background: var(--grege); color: var(--ink); transition: background-color 0.5s var(--ease); }
.pj-cta a:hover, .pj-cta a:focus-visible { background: var(--paper); }
.ct-main { padding: calc(env(safe-area-inset-top, 0px) + clamp(8rem, 14vw, 12rem)) var(--gutter) var(--section); background: var(--grege); }

.project-grid .g-fig { display: flex; flex-direction: column; height: 100%; }
.project.sm .g-fig .media { flex: 1 1 auto; height: auto; min-height: 12rem; }
.g-cap { padding: 0.75rem clamp(0.75rem, 1.6vw, 1.5rem) 1.5rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 700px) { .project.sm .g-fig .media { flex: none; min-height: 0; } }

.p-plans { background: var(--grege); padding-block: var(--head) var(--section); }
.p-plans .section-head { padding-bottom: var(--head); }
.p-plans .section-head:has(+ .plans-intro) { padding-bottom: clamp(48px, 6vw, 88px); }
.plans-intro { max-width: 40rem; margin: 0 auto 3rem; text-align: center; color: var(--muted); }
@media (max-width: 700px) { .plans-intro { text-align: left; margin-inline: 0; } }
.p-plans .plans-intro { margin-bottom: var(--head); }
.plans-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.plans-grid > li { grid-column: span 2; }
.plans-grid > .lg { grid-column: span 4; grid-row: span 2; }
.plans-grid > .half { grid-column: span 3; }
.plans-grid > .wide { grid-column: 1 / -1; }
.sheet { margin: 0; display: flex; flex-direction: column; height: 100%; }
.sheet a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; background: #fff; padding: clamp(0.75rem, 1.6vw, 1.5rem); box-shadow: 0 0 0 1px var(--rule); cursor: zoom-in; transition: box-shadow 0.4s var(--ease); }
.sheet a:hover, .sheet a:focus-visible { box-shadow: 0 0 0 1px var(--ink); }
.sheet a:focus-visible { outline: 2px solid var(--ink); outline-offset: 0.25rem; }
.sheet img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.plans-grid > .wide img { max-height: 44vh; }
.sheet figcaption { display: flex; gap: 0.75rem; align-items: baseline; padding-top: 0.75rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; }
.sheet figcaption b, .site-grid figcaption b { flex: none; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.sheet figcaption span { color: var(--muted); }
@media (max-width: 900px) { .plans-grid > li, .plans-grid > .lg, .plans-grid > .half { grid-column: 1 / -1; grid-row: auto; } }

.p-site { background: var(--paper); padding-block: var(--head) var(--section); }
.p-site .section-head { padding-bottom: var(--head); }
.site-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; }
.site-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-grid figure { margin: 0; }
.site-grid .media { --ratio: 5 / 4; }
.site-grid figcaption { padding: 0.75rem 0 1.5rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.site-grid figcaption b { margin-right: 0.75rem; }
@media (max-width: 700px) { .site-grid, .site-grid.n3 { grid-template-columns: 1fr; } }

.zoom { border: 0; padding: 0; max-width: 96vw; max-height: 94vh; background: #fff; color: var(--ink); }
.zoom::backdrop { background: rgba(5, 4, 9, 0.88); }
.zoom img { display: block; width: auto; height: auto; max-width: 96vw; max-height: calc(94vh - 3rem); object-fit: contain; }
.zoom p { margin: 0; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; }
.zoom button { appearance: none; background: none; border: 0; padding: 0; min-height: 3rem; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.zoom button:focus-visible { outline: 2px solid var(--ink); outline-offset: 0.25rem; }
html.zoom-open { overflow: hidden; }
