@font-face {
  font-family: "Chivo";
  src: url("/assets/fonts/chivo-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chivo";
  src: url("/assets/fonts/chivo-semibold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-width: 1120px;
  --content-width: 720px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --background: #f8f7f4;
  --text: #30312f;
  --muted: #5e615c;
  --rule: #cbc9c3;
  --link: #2f617c;
  --link-hover: #1e4c66;
  --accent-soft: #e7dfcf;
  --code-surface: #f0eee8;
  --font: "Chivo", Arial, Helvetica, sans-serif;
  --font-size: 17px;
  --leading: 1.65;
  --strong-weight: 600;
  --emphasis-style: italic;
  --space-xs: .5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 3rem;
  --space-xl: 5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: var(--font-size)/var(--leading) var(--font);
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
::selection { background: var(--accent-soft); color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
h1 { max-width: 23ch; font-size: clamp(2.5rem, 4.1vw, 3.65rem); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.35; }
h4 { font-size: 1.2rem; line-height: 1.4; }
p { max-width: var(--content-width); }
p + p { margin-top: 1rem; }
strong { font-weight: var(--strong-weight); }
em { font-style: var(--emphasis-style); }
code { font-family: "DejaVu Sans Mono", monospace; font-size: .88em; }
.site-header, main, .site-footer {
  width: min(var(--page-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.brand { color: var(--text); font-size: .94rem; font-weight: 600; text-decoration: none; }
.nav, .action-links { display: flex; flex-wrap: wrap; gap: .65rem 1.75rem; }
.nav a { font-size: .88rem; padding-block: .35rem; }
.action-links { margin-top: 1.5rem; font-size: .94rem; }
.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.section { padding-block: 4.5rem; }
.section + .section { border-top: 1px solid var(--rule); }
.section-intro, .split-section, .case-study__section, .next-step, .profile-stack, .contact {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.section-intro { margin-bottom: 2.75rem; align-items: start; }
.section-intro > p, .section-intro > .copy { color: var(--muted); }
.copy p + p { margin-top: 1.1rem; }

.home-opening {
  margin-inline: 0;
}
.home-hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  width: 100%;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}
.home-hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  transform: scale(1);
  transform-origin: center center;
  transition: transform 800ms cubic-bezier(.22, .72, .22, 1);
}
.home-hero h1 { max-width: 9ch; font-size: clamp(4rem, 8.5vw, 8rem); line-height: .94; letter-spacing: -.06em; }
.home-hero__tagline { margin-top: 1.5rem; font-size: clamp(1rem, 1.65vw, 1.35rem); letter-spacing: .015em; }
.home-hero__art { margin: 0; }
.home-hero__art img { width: 100%; }
.home-hero__intro {
  align-self: end;
  opacity: 0;
  transform: translateY(1.5rem);
  pointer-events: none;
  transition: opacity 420ms ease 430ms, transform 520ms ease 380ms;
}
.page-home.hero-ready .site-header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 50%;
  background: color-mix(in srgb, var(--background) 94%, transparent);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -110%);
  opacity: 0;
}
.page-home.hero-motion-ready .site-header {
  transition: transform 560ms ease 180ms, opacity 360ms ease 180ms;
}
.page-home.hero-settled .site-header { transform: translate(-50%, 0); opacity: 1; }
.page-home.hero-settled .home-hero__stage { transform: scale(.72); }
.page-home.hero-settled .home-hero__intro { opacity: 1; transform: none; pointer-events: auto; }
.home-hero__lead {
  color: var(--muted);
  max-width: 48ch;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5;
}
.selected-work { border-top: 1px solid var(--rule); }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
}
.project-row:last-child { padding-bottom: 0; }
.project-row__identity h3 { font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -.025em; }
.project-row__identity > p { margin-top: .7rem; color: var(--muted); font-size: .8rem; }
.project-row__body > p { margin-top: .85rem; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; }
.project-row .action-links { margin-top: 1.1rem; }
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.practice-grid article { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.practice-grid h3 { margin-bottom: .9rem; }
.practice-grid p { color: var(--muted); }
.home-split h2 { max-width: 17ch; }
.home-split__item { margin-top: 2rem; }
.home-split__item h3 { margin-bottom: .65rem; }
.home-split__item p { color: var(--muted); }
.home-split__item ul { margin-block: .75rem 0; padding-left: 1.2rem; }
.note-invitation { color: var(--muted); font-size: .88rem; padding-top: 1.25rem; }
.contact h2 { max-width: 17ch; }
.contact__mail { display: inline-block; margin-top: 1.25rem; font-size: clamp(1rem, 1.7vw, 1.3rem); overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; border-top: 1px solid var(--rule); padding-block: 1.5rem 2rem; font-size: .8rem; color: var(--muted); }
.site-footer p { margin: 0; }

/* Project pages */
.case-study__hero { padding-top: 4.5rem; }
.case-study__hero--illustrated { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.case-study__art { margin: 0; }
.case-study__art img { width: 100%; mix-blend-mode: multiply; }
.case-study__hero h1 { font-size: clamp(3rem, 6vw, 5rem); }
.case-study__claim { margin-top: 1.25rem; font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.case-study__summary { margin-top: 1rem; color: var(--muted); }
.case-study__status { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.case-study__hero .tag-list { margin-bottom: 1.5rem; }
.case-study__section { padding-block: 2.75rem; }
.case-study__section .copy > p { color: var(--muted); }
.case-study__section .copy > h3 { margin: 2rem 0 .75rem; }
.case-study__details { list-style: none; padding: 0; margin: 0; }
.case-study__details li { border-bottom: 1px solid var(--rule); padding: .85rem 0; }
.case-study__details li:first-child { padding-top: 0; }
.case-study__section code { overflow-wrap: anywhere; }
.case-study__section .copy { min-width: 0; }
.case-study__code { margin: 1.5rem 0 0; padding: 1.25rem; overflow-x: auto; background: var(--code-surface); line-height: 1.6; tab-size: 2; }
.case-study__code code { overflow-wrap: normal; }
.next-step .action-links { margin-top: 0; }

/* Profile */
.profile-hero { padding-top: 4.5rem; }
.profile-hero__lead { margin-top: 1.5rem; font-size: 1.1rem; }
.profile-hero > p:not(.profile-hero__lead) { color: var(--muted); margin-top: 1rem; }
.profile-location { font-size: .88rem; }
.profile-lanes { padding-block: 0; }
.profile-lanes article { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); padding-block: 2rem; border-bottom: 1px solid var(--rule); }
.profile-lanes article h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
.profile-lanes article p { color: var(--muted); }
.profile-lanes article p + p { margin-top: 1rem; }
.profile-stack dl { margin: 0; }
.profile-stack dl div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; border-bottom: 1px solid var(--rule); padding-block: 1rem; }
.profile-stack dl div:first-child { padding-top: 0; }
.profile-stack dt { font-weight: 600; font-size: .94rem; }
.profile-stack dd { margin: 0; color: var(--muted); font-size: .94rem; }
.profile-history .history-list { display: grid; gap: 2rem; }
.profile-history h3 { margin-bottom: .5rem; }
.profile-history p { color: var(--muted); }
.profile-history .history-period { margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.profile-history h3 { margin-top: .35rem; }
.contact > p { margin: 0; }
.contact > .contact__mail { grid-column: 2; margin-top: -3rem; }

/* Notes, article and utility pages */
.notes-hero > p { margin-top: 1.25rem; color: var(--muted); }
.notes-index { padding-top: 0; }
.note-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 4rem; gap: 2rem; border-bottom: 1px solid var(--rule); padding-block: 1.5rem; text-decoration: none; }
.note-row strong, .note-row > span > span { display: block; }
.note-row strong { margin-block: .3rem; font-size: 1.1rem; text-decoration: underline; text-underline-offset: .2em; }
.note-row time, .note-row small { color: var(--muted); font-size: .8rem; }
.note-row > span > span { color: var(--muted); font-size: .94rem; }
.note-row > span:last-child { font-size: .85rem; }
.article__header { padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.article__dek { margin-top: 1.5rem; color: var(--muted); }
.article__meta { margin-top: 1rem; color: var(--muted); font-size: .85rem; }
.article__body { max-width: var(--content-width); margin: 3rem auto; }
.page-legal h1, .page-legal h2 { hyphens: auto; overflow-wrap: anywhere; }
.page-legal .article__body a { overflow-wrap: anywhere; }
.article__body h2 { margin: 2.5rem 0 1rem; }
.article__body h3 { margin: 2rem 0 .75rem; }
.article__body p, .article__body li { line-height: 1.75; }
.article__body p + p { margin-top: 1rem; }
.article__body pre { overflow-x: auto; background: var(--code-surface); padding: 1.25rem; margin-block: 1.75rem; font-size: .88rem; }
.article__footer { display: flex; gap: 1rem 2rem; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.not-found { min-height: 65vh; display: grid; align-content: center; gap: 1.5rem; }
.legal-copy { max-width: var(--content-width); }
.legal-copy h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-copy > p:first-of-type { margin-top: 1.5rem; }
.legal-copy a { overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .home-hero__stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1rem; }
  .home-hero h1 { font-size: clamp(3.4rem, 9vw, 5rem); }
  .section-intro, .split-section, .project-row, .case-study__section, .next-step, .profile-stack, .contact, .profile-lanes article { column-gap: 2rem; }
  .profile-stack dl div { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 600px) {
  :root { --font-size: 16px; }
  .site-header { align-items: start; gap: 1rem; }
  .brand { max-width: 8rem; line-height: 1.35; }
  .nav { justify-content: end; gap: .2rem 1rem; max-width: 12rem; }
  .nav a { font-size: .8rem; }
  .home-opening { height: auto; margin-inline: 0; }
  .home-hero { position: relative; min-height: auto; width: 100%; padding-block: 3rem; overflow: visible; }
  .home-hero__stage { grid-template-columns: 1fr; gap: 1.5rem; transform: none; }
  .home-hero h1 { font-size: clamp(3.3rem, 16vw, 5rem); max-width: 9ch; }
  .home-hero__tagline { margin-top: 1rem; }
  .home-hero__art { width: min(100%, 28rem); margin-left: auto; }
  .home-hero__intro { margin-top: 2.5rem; opacity: 1; transform: none; pointer-events: auto; }
  .page-home.hero-ready .site-header {
    position: static;
    transform: none;
    opacity: 1;
    background: transparent;
    backdrop-filter: none;
  }
  .home-hero__lead { max-width: none; }
  .section { padding-block: 3rem; }
  .section-intro, .split-section, .project-row, .case-study__section, .next-step, .profile-stack, .contact, .profile-lanes article { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-intro { margin-bottom: 2rem; }
  .project-row { padding-block: 2rem; }
  .project-row__identity h3 { font-size: 2rem; }
  .project-row__identity > p { margin-top: .3rem; }
  .practice-grid { grid-template-columns: 1fr; gap: 2rem; }
  .case-study__section { padding-block: 2rem; }
  .case-study__hero--illustrated { grid-template-columns: 1fr; gap: 2rem; }
  .case-study__art { width: min(100%, 34rem); margin-inline: auto; }
  .profile-lanes { padding-block: 0; }
  .notes-index { padding-top: 0; }
  .note-row { grid-template-columns: 1fr; gap: .5rem; }
  .contact > .contact__mail { grid-column: 1; margin-top: 0; }
  .home-split h2 { max-width: none; }
  .site-footer { flex-direction: column; gap: .6rem; }
  .article__body { margin-block: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-opening { height: auto; margin-inline: 0; }
  .home-hero { position: relative; min-height: auto; width: 100%; padding-block: 4.5rem; overflow: visible; }
  .home-hero__stage { transform: none; }
  .home-hero__intro { margin-top: 3rem; opacity: 1; transform: none; pointer-events: auto; }
  .page-home.hero-ready .site-header { position: static; transform: none; opacity: 1; background: transparent; backdrop-filter: none; }
}

/* Archived SVG scenes start only on request; each runs in its own frame. */
.animation-player { grid-column: 1 / -1; margin-top: var(--space-m); }
.animation-player__stage { height: clamp(240px, 48vw, 580px); overflow: hidden; }
.animation-player__stage img,
.animation-player__stage iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.animation-player button { margin-top: var(--space-s); padding: .5rem 1rem; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; }
.animation-player button:hover { border-color: var(--link); color: var(--link); }
