:root {
  --canvas: #090909;
  --surface-cream: #e9e5dc;
  --surface-blue: #d6e2df;
  --surface-rose: #e4d9d6;
  --surface-stone: #dedcd6;
  --surface: var(--surface-cream);
  --ink: #0b0b0b;
  --muted: rgb(11 11 11 / 62%);
  --line: rgb(11 11 11 / 18%);
  --field-border: rgb(11 11 11 / 55%);
  --menu-ink: #ece8df;
  --menu-muted: rgb(236 232 223 / 64%);
  --shell-radius: 24px;
  --shell-gap: clamp(9px, 1.15vw, 18px);
  --header-height: 76px;
  --page-gutter: clamp(24px, 5.2vw, 84px);
  --section-space: clamp(96px, 10vw, 144px);
  --reading-measure: 64ch;
  --wide-measure: 1380px;
  --grid-gap: clamp(24px, 3vw, 52px);
  --menu-width: min(760px, 50vw);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-menu: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 180ms;
  --duration-menu: 360ms;
  --mono:
    ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html.menu-open {
  overflow: hidden;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 50%;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--surface-cream);
  color: #0b0b0b;
  font-size: 0.875rem;
  font-weight: 600;
  transform: translate(-50%, calc(-100% - 14px));
  transition: transform var(--duration-fast) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-shell {
  --surface: var(--surface-cream);
  position: relative;
  min-height: 100dvh;
  padding: var(--shell-gap);
  background: var(--canvas);
}

.site-shell[data-surface="blue"] {
  --surface: var(--surface-blue);
}

.site-shell[data-surface="rose"] {
  --surface: var(--surface-rose);
}

.site-shell[data-surface="stone"] {
  --surface: var(--surface-stone);
}

.page-surface {
  position: relative;
  display: flex;
  width: 100%;
  min-height: calc(100dvh - (var(--shell-gap) * 2));
  flex-direction: column;
  overflow: clip;
  border-radius: var(--shell-radius);
  background: var(--surface);
  transition:
    background-color var(--duration-fast) var(--ease),
    transform var(--duration-menu) var(--ease-menu);
}

.site-shell[data-menu-open="true"] .page-surface {
  transform: translateX(calc(-1 * (var(--menu-width) + var(--shell-gap))));
}

.site-header {
  position: relative;
  z-index: 6;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--page-gutter);
}

.brand {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu-toggle:disabled {
  cursor: default;
}

.menu-toggle[hidden] {
  display: none;
}

.menu-fallback {
  display: inline-block;
  padding-block: 14px;
  font-size: 0.9rem;
}

.menu-toggle-label {
  min-width: 5ch;
  text-align: right;
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(11 11 11 / 6%);
  transition:
    color var(--duration-menu) var(--ease-menu),
    background-color var(--duration-menu) var(--ease-menu),
    transform var(--duration-fast) var(--ease);
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--duration-menu) var(--ease-menu);
}

.menu-toggle-icon::before {
  width: 2px;
  height: 17px;
}

.menu-toggle-icon::after {
  width: 17px;
  height: 2px;
}

.site-shell[data-menu-open="true"] .menu-toggle-icon {
  background: var(--canvas);
  color: var(--menu-ink);
}

.site-shell[data-menu-open="true"] .menu-toggle-icon::before,
.site-shell[data-menu-open="true"] .menu-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

main {
  flex: 1 0 auto;
  padding: 0 var(--page-gutter);
}

.home-hero,
.page-hero,
.content-section,
.detail-page,
.contact-page,
.contact-success,
.not-found,
.home-directory,
.story-flow {
  width: 100%;
  max-width: var(--wide-measure);
  margin-inline: auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px var(--grid-gap);
  padding: clamp(56px, 7vw, 100px) 0 var(--section-space);
}

.home-hero > h1 {
  grid-column: 1;
  grid-row: 1;
}

.home-hero h1,
.page-hero h1,
.detail-header h1,
.contact-page h1,
.contact-success h1,
.not-found h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.home-hero h1 {
  max-width: 7ch;
  font-size: clamp(4rem, 7.6vw, 7rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.home-portrait {
  width: clamp(152px, 14vw, 218px);
  height: auto;
  aspect-ratio: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 50%;
  object-fit: cover;
}

.home-introduction {
  grid-column: 1;
  grid-row: 2;
  max-width: 54ch;
}

.home-introduction p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.home-directory {
  margin-bottom: var(--section-space);
}

.home-directory ul,
.collection-index,
.menu-navigation ul,
.scope-list,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-directory ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px var(--grid-gap);
}

.home-directory li:nth-child(odd) {
  grid-column: 1;
}

.home-directory li:nth-child(even) {
  grid-column: 2;
}

.home-directory a {
  display: grid;
  gap: 12px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.index-title {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.index-description {
  grid-column: 1;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 1.52;
}

.collection-action {
  grid-column: 2;
  justify-self: end;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-hero {
  padding: clamp(56px, 7vw, 96px) 0 var(--section-space);
}

.menu-heading {
  margin: 0 0 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

.page-hero h1,
.detail-header h1,
.contact-page h1,
.contact-success h1,
.not-found h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.page-intro,
.contact-intro > p:last-child,
.contact-success > p,
.not-found > p {
  max-width: 54ch;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  line-height: 1.5;
}

.compact-hero {
  padding-bottom: clamp(64px, 7vw, 96px);
}

.prose {
  max-width: var(--reading-measure);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}

.prose-large {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

.prose h2 {
  margin: 0 0 0.8em;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.prose h2:not(:first-child) {
  margin-top: 72px;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 1.3em;
}

.prose a {
  font-weight: 650;
}

.story-flow {
  max-width: var(--wide-measure);
  margin-bottom: var(--section-space);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.story-flow section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: var(--grid-gap);
  row-gap: 1.3em;
  scroll-margin-top: 40px;
}

.story-flow h2 {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}

.story-flow p {
  grid-column: 2;
  max-width: var(--reading-measure);
}

.story-flow p + p {
  margin-top: 0;
}

.story-flow section + section {
  margin-top: 88px;
}

.content-section {
  margin-bottom: var(--section-space);
}

/* Services share the site's reading measure and two-column content rhythm. */
.services-hero {
  padding-bottom: clamp(40px, 4vw, 56px);
}

.services-introduction {
  margin-top: 24px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px var(--grid-gap);
  padding-block: clamp(32px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.service-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.service-price,
.care-prices dd {
  margin: 12px 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.care-prices {
  margin: 24px 0 0;
}

.care-prices > div + div {
  margin-top: 20px;
}

.care-prices dt {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.care-prices dd {
  margin-top: 4px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.52;
}

.collection-index li {
  border-top: 1px solid var(--line);
}

.collection-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px var(--grid-gap);
  padding: 28px 0;
  text-decoration: none;
}

.collection-main {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  gap: 12px;
  min-width: 0;
}

.collection-main strong {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.collection-main > span {
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.52;
}

.collection-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: right;
}

.empty-state {
  padding: 32px 0;
  color: var(--muted);
}

.archive-scope {
  padding-top: 0;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px var(--grid-gap);
}

.scope-list h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.scope-list p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.detail-page {
  margin-inline: auto;
}

.detail-header {
  padding: clamp(56px, 7vw, 96px) 0 72px;
}

.detail-header > div {
  max-width: 960px;
}

.detail-header > div > h1,
.detail-header > div > .page-intro {
  min-width: 0;
}

.detail-header h1 {
  max-width: 18ch;
  overflow-wrap: anywhere;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px var(--grid-gap);
  margin: 40px 0 0;
  font-size: 0.875rem;
}

.project-facts > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-facts dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 500;
}

.project-facts dd {
  margin: 0;
  line-height: 1.5;
}

.detail-body {
  max-width: var(--reading-measure);
  margin: 0;
  padding: 56px 0 80px;
  border-top: 1px solid var(--line);
}

.detail-body > * {
  width: 100%;
  max-width: var(--reading-measure);
}

.detail-body > :first-child {
  margin-top: 0;
}

.context-note {
  max-width: var(--reading-measure);
  margin: 0 0 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.6;
}

.context-note p {
  margin: 0;
}

.back-link {
  padding: 24px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer a,
.back-link a,
.text-link,
.brand {
  display: inline-block;
  padding-block: 6px;
}

.back-link a,
.site-footer a,
.menu-navigation a {
  text-decoration-color: transparent;
  transition: text-decoration-color var(--duration-fast) var(--ease);
}

/* Work keeps the site's typography, with previews secondary to project names. */
.work-hero {
  padding-bottom: clamp(48px, 6vw, 80px);
}

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

.work-list > li + li {
  border-top: 1px solid var(--line);
}

.work-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: var(--grid-gap);
  padding-block: 32px;
  text-decoration: none;
}

.work-list > li:first-child .work-entry {
  padding-top: 0;
}

.work-image {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
}

.work-caption {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.work-caption h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.work-summary {
  max-width: 48ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.work-entry:hover h2,
.work-entry:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.project-page {
  max-width: 1040px;
}

.project-header {
  padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 64px);
}

.project-back {
  display: inline-block;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-block: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-header h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.project-introduction {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 20px;
}

.project-summary {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
}

.project-visit {
  flex-shrink: 0;
  padding-block: 10px;
  font-size: 0.95rem;
}

.project-gallery {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.project-preview {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  margin-block: 0;
}

.project-preview-secondary {
  max-width: 640px;
}

@media (min-width: 768px) {
  .project-gallery-paired {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery-paired > .project-preview:first-child {
    grid-column: 1 / -1;
  }
}

.project-preview img,
.project-preview video {
  display: block;
  width: 100%;
  height: auto;
}

.project-photo {
  margin: 32px 0 0;
}

.project-animation-actions {
  display: flex;
  justify-content: flex-end;
  min-height: 44px;
  margin-top: 8px;
}

.project-animation-control {
  min-height: 44px;
  padding: 8px 0 8px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-animation-control:hover {
  color: var(--ink);
}

.project-photo img {
  width: 100%;
  height: auto;
}

.project-overview {
  max-width: 60ch;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 80px);
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 48px var(--grid-gap);
  padding: clamp(56px, 7vw, 96px) 0 var(--section-space);
}

.contact-intro {
  grid-column: 1;
}

.contact-form {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
}

.form-field {
  min-width: 0;
}

.form-field-message,
.form-submit,
.form-instructions,
.form-status {
  grid-column: 1 / -1;
}

.form-instructions,
.form-status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-instructions {
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.form-field textarea {
  min-height: 11rem;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.form-field input:user-invalid,
.form-field textarea:user-invalid {
  box-shadow: inset 0 -1px 0 currentColor;
}

.form-submit {
  justify-self: start;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-success,
.not-found {
  display: grid;
  min-height: 72dvh;
  align-content: center;
  justify-items: start;
  padding: clamp(80px, 9vw, 140px) 0;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 var(--page-gutter);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(18px, 2.4vw, 34px);
}

.site-footer a[aria-current="page"],
.menu-navigation a[aria-current="page"],
.site-footer a[aria-current="location"],
.menu-navigation a[aria-current="location"] {
  text-decoration: underline;
}

.site-footer a {
  min-height: 44px;
  padding-block: 14px;
}

.footer-meta {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

.site-menu {
  position: fixed;
  z-index: 5;
  inset: var(--shell-gap) var(--shell-gap) var(--shell-gap) auto;
  width: var(--menu-width);
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  visibility: hidden;
  background: var(--canvas);
  color: var(--menu-ink);
  pointer-events: none;
  transform: translateX(calc(100% + var(--shell-gap)));
  transition:
    transform var(--duration-menu) var(--ease-menu),
    visibility 0s linear var(--duration-menu);
}

.site-shell[data-menu-open="true"] .site-menu {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.site-menu-inner {
  display: flex;
  width: min(100%, calc(var(--wide-measure) + (var(--page-gutter) * 2)));
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 90px;
  margin-inline: auto;
  padding: clamp(56px, 7vw, 104px) var(--page-gutter) clamp(46px, 6vw, 88px);
  transform: translateX(18px);
  transition: transform var(--duration-menu) var(--ease-menu);
}

.site-shell[data-menu-open="true"] .site-menu-inner {
  transform: translateX(0);
}

.menu-heading {
  color: var(--menu-muted);
}

.menu-navigation ul {
  display: grid;
  grid-template-columns: 1fr;
}

.menu-navigation li {
  padding: 12px 0;
}

.menu-navigation a {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.menu-contact p {
  margin: 0;
  color: var(--menu-muted);
}

@media (hover: hover) {
  .home-directory a:hover .index-title,
  .collection-index a:hover .collection-main strong,
  .site-footer a:hover,
  .menu-navigation a:hover,
  .back-link a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .form-submit:hover {
    background: transparent;
    color: var(--ink);
  }
}

@media (max-width: 1024px) {
  :root {
    --shell-radius: 18px;
    --shell-gap: 12px;
    --section-space: 112px;
  }

  .site-shell[data-menu-open="true"] .page-surface {
    transform: none;
  }

  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-menu {
    inset: calc(var(--shell-gap) + var(--header-height)) var(--shell-gap) 0;
    width: auto;
    border-radius: 0;
    transform: translateY(100%);
  }

  .site-shell[data-menu-open="true"] .site-menu {
    transform: translateY(0);
  }

  .site-menu-inner {
    min-height: 100%;
    padding-bottom: calc(
      clamp(46px, 6vw, 88px) + env(safe-area-inset-bottom, 0px)
    );
    transform: translateY(18px);
  }

  .site-shell[data-menu-open="true"] .site-menu-inner {
    transform: translateY(0);
  }

}

@media (max-width: 760px) {
  :root {
    --page-gutter: clamp(22px, 6.5vw, 36px);
    --section-space: 88px;
    --grid-gap: 24px;
    --header-height: 70px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 var(--section-space);
  }

  .work-entry {
    grid-template-columns: minmax(0, 1fr) 140px;
    padding-block: 28px;
  }

  .work-hero {
    padding-top: 40px;
  }

  .project-introduction {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
  }

  .home-portrait {
    width: 112px;
    grid-column: 1;
    grid-row: 1;
  }

  .home-hero > h1 {
    grid-row: 2;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .home-introduction {
    grid-row: 3;
  }

  .home-directory ul,
  .scope-list,
  .story-flow section,
  .service-row,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .home-directory li:nth-child(n),
  .story-flow h2,
  .story-flow p,
  .contact-intro,
  .contact-form {
    grid-column: 1;
    grid-row: auto;
  }

  .story-flow section {
    row-gap: 20px;
  }

  .story-flow section + section {
    margin-top: 64px;
  }

  .collection-index a {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .collection-main,
  .collection-meta,
  .collection-action {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }

  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer ul {
    gap: 8px 20px;
  }

  .site-menu-inner {
    padding-top: 36px;
  }
}

@media (max-width: 480px) {
  .work-entry {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 16px;
  }

  .work-summary {
    font-size: 0.9375rem;
  }
}

@media (max-width: 420px) {
  .project-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-cream: #1d1d1b;
    --surface-blue: #182220;
    --surface-rose: #241d1d;
    --surface-stone: #20201d;
    --ink: #ece8df;
    --muted: rgb(236 232 223 / 66%);
    --line: rgb(236 232 223 / 22%);
    --field-border: rgb(236 232 223 / 50%);
  }

  .menu-toggle-icon {
    background: rgb(236 232 223 / 8%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .menu-toggle-icon,
  .home-directory a,
  .collection-index li,
  .scope-list li,
  .site-footer,
  .project-facts > div {
    border: 1px solid ButtonText;
  }
}
