@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: 1650px;
  --content-width: 720px;
  --gutter: clamp(1.25rem, 4.2vw, 5rem);
  --background: #fff;
  --text: #253945;
  --muted: #52616a;
  --rule: #ccd4d9;
  --link: #253945;
  --link-hover: #111f28;
  --accent: #f48320;
  --surface: #e9eef1;
  --code-surface: #edf1f3;
  --font: "Chivo", Arial, Helvetica, sans-serif;
  --font-size: 17px;
  --leading: 1.55;
  --strong-weight: 600;
  --emphasis-style: italic;
  --space-xs: .5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 3rem;
  --space-xl: 4.5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
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); text-decoration-thickness: 3px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
::selection { background: var(--accent); color: #17262e; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
h1 { max-width: 20ch; font-size: clamp(2.5rem, 6.7vw, 6rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4.7vw, 4.2rem); line-height: 1.02; letter-spacing: -.055em; }
h3 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -.035em; }
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, .section-wrap { width: min(var(--page-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.site-header { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding-block: 1.3rem; }
.brand { color: var(--text); font-size: .95rem; font-weight: 600; text-decoration: none; }
.site-location { font-size: .8rem; }
.nav, .action-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.8rem; }
.nav a { color: var(--text); font-size: .8rem; padding-block: .4rem; }
.nav a[aria-current] { text-decoration-thickness: 3px; }
.action-links { margin-top: 1.6rem; padding: 0; list-style: none; font-size: .9rem; }
.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; }
.eyebrow { font-size: .8rem; font-weight: 400; color: var(--muted); }
.section { padding-block: var(--space-xl); }
.section-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem 4rem; margin-bottom: 3rem; align-items: start; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro h2 { max-width: 15ch; }
.section-intro > .copy { max-width: 42ch; }
.copy { min-width: 0; }
.copy p + p { margin-top: 1.1rem; }

/* Homepage: the name, the offer, then the evidence. */
.page-home main, .page-hosting main { width: 100%; }
.home-hero, .page-home .section:not(.services):not(.home-contact), .page-hosting .section:not(.home-contact) { width: min(var(--page-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.home-hero { --name-size: clamp(3.9rem, 15.25vw, 16rem); padding-block: 2.6rem 4.5rem; }
.nameplate { position: relative; }
.home-hero h1 { max-width: none; font-size: var(--name-size); line-height: .83; letter-spacing: -.065em; text-wrap: initial; }
.home-hero h1 span { display: block; }
.home-hero h1 span + span { margin-top: .06em; }
.home-hero__portrait { position: absolute; right: 1%; top: 0; width: min(15%, calc(var(--name-size) * .83)); max-width: 230px; }
.home-hero__portrait img { width: 100%; border-radius: 8px; }
.home-hero__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4.5rem; }
.home-hero__role { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.home-hero__lead p:first-child { font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.35; letter-spacing: -.025em; max-width: 29ch; }
.home-hero__lead p + p { margin-top: 1.3rem; max-width: 44ch; }
.hero-actions { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.services { background: var(--accent); color: #17262e; padding-block: 4rem 4.5rem; }
.services .section-intro { margin-bottom: 4rem; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.service-row { border-top: 2px solid currentColor; padding-top: 1.1rem; }
.service-row h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.04em; margin-bottom: 1.5rem; min-height: 2.2em; max-width: 17ch; }
.references .section-intro { display: block; margin-bottom: 2rem; }
.references .section-intro h2 { font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.reference-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; }
.reference-row { display: grid; grid-template-rows: subgrid; grid-row: span 4; margin-bottom: 2.5rem; }
.reference-context { font-size: .75rem; }
.reference-row h3 { font-size: clamp(1.4rem, 1.8vw, 1.8rem); line-height: 1.1; letter-spacing: -.04em; margin-block: .8rem 1rem; }
.reference-screenshot { width: 100%; height: auto; margin-bottom: 1rem; }
.reference-row .copy { max-width: 56ch; font-size: .94rem; }
.reference-row--text { grid-column: 1 / -1; grid-row: auto; grid-template: auto auto / 1fr 1fr; column-gap: 4rem; margin-bottom: 0; padding-top: 2rem; border-top: 1px solid var(--rule); }
.reference-row--text .reference-context { grid-column: 1; }
.reference-row--text h3 { grid-column: 1; margin-bottom: 0; }
.reference-row--text .copy { grid-column: 2; grid-row: 1 / span 2; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; border-top: 1px solid var(--rule); }
.about .section-intro { display: block; margin-bottom: 0; }
.about h2 { font-size: clamp(2.5rem, 5.8vw, 5rem); }
.about-columns h3 { margin-bottom: 1rem; }
.about-columns > div + div { margin-top: 2rem; }
.about-columns .copy { max-width: 45ch; }
.selected-work { position: relative; }
.selected-work > span[id] { position: absolute; top: 0; }
.selected-work .section-intro { margin-bottom: 1.5rem; }
.selected-work > p { color: var(--muted); max-width: 49rem; }
.project-list { margin-top: 2.5rem; }
.project-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 2rem 4rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.project-row__identity h3 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
.project-row__identity h3 a { color: var(--text); text-decoration: none; }
.project-row__identity h3 a:hover { text-decoration: underline; }
.project-row__identity h3 span { display: inline-block; font-size: .65em; }
.project-row__identity > p { margin-top: .5rem; color: var(--muted); font-size: .74rem; }
.project-row__body > p { color: var(--muted); }
.project-row .action-links { margin-top: 1rem; font-size: .82rem; }
.page-home .selected-work { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; border-top: 1px solid var(--rule); }
.page-home .selected-work .section-intro { display: block; margin: 0; }
.page-home .selected-work > p { grid-column: 1; max-width: 36ch; }
.page-home .selected-work .project-list { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.page-home .selected-work > .action-links { grid-column: 1; align-self: start; margin: 0; }
.page-home .project-row { grid-template-columns: 1fr; gap: .85rem; padding-block: 1.5rem; }
.page-home .project-row:first-child { padding-top: 0; border-top: 0; }
.page-home .project-row h3 { font-size: clamp(2rem, 3.2vw, 3rem); }
.home-contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
.home-contact h2 { font-size: clamp(2.5rem, 5.8vw, 5rem); max-width: 10ch; }
.home-contact .copy { max-width: 45ch; }
.home-contact .copy p:last-child { margin-top: 1.6rem; }
.home-contact a { font-weight: 600; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.8rem max(var(--gutter), calc((100% - var(--page-width)) / 2)); background: var(--surface); font-size: .8rem; color: var(--text); }
.site-footer p { margin: 0; }
.site-footer a { display: inline-block; padding-block: .4rem; }
/* Shared secondary pages keep the same type, rhythm and column system. */
.split-section, .case-study__section, .next-step, .profile-stack, .profile-lanes article { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); }
.home-split h2 { max-width: 17ch; }
.home-split__item, .profile-split__item { margin-top: 2rem; }
.home-split__item h3, .profile-split__item h3 { margin-bottom: .65rem; }
.home-split .copy { color: var(--muted); }
.index-hero .eyebrow { margin-bottom: 2rem; }
.index-hero h1 { max-width: 16ch; }
.index-hero .copy { margin-top: 2rem; color: var(--muted); max-width: 44rem; }
.page-projects .selected-work h2 { max-width: 21ch; }
.page-projects .selected-work { padding-block: 4rem; }
.case-study__hero { padding-top: 5rem; }
.case-study__hero--illustrated { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 4rem; }
.case-study__art img { width: 100%; mix-blend-mode: multiply; }
.case-study__hero h1 { font-size: clamp(3rem, 6vw, 5.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: .8rem; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; color: var(--muted); font-size: .78rem; }
.case-study__section { padding-block: 3rem; }
.case-study__section h2, .profile-history h2, .profile-stack h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); }
.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: 1rem 0 0; }
.case-study__details li { border-bottom: 1px solid var(--rule); padding: .85rem 0; }
.case-study__section code { overflow-wrap: anywhere; }
.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; }
.project-breadcrumb { margin-top: 2rem; font-size: .85rem; }
.profile-hero { max-width: 54rem; }
.profile-hero h1 { max-width: 16ch; }
.profile-hero__lead { margin-top: 2rem; font-size: 1.25rem; }
.profile-hero > p:not(.profile-hero__lead) { color: var(--muted); margin-top: 1rem; }
.profile-hero .profile-location { margin-bottom: 1.5rem; font-size: .8rem; color: var(--link); }
.profile-lanes { padding-block: 0; }
.profile-lanes article { padding-block: 2.5rem; border-bottom: 1px solid var(--rule); }
.profile-lanes article h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.profile-lanes article p { color: var(--muted); }
.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: .9rem; }
.profile-stack dd { margin: 0; color: var(--muted); font-size: .94rem; }
.history-list { display: grid; gap: 2.5rem; }
.profile-history h3 { margin-bottom: .5rem; }
.profile-history p { color: var(--muted); }
.profile-history .history-period { margin-top: .4rem; font-size: .8rem; color: var(--link); }
.profile-split a { overflow-wrap: anywhere; }
.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; }
.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; }
.page-legal h1, .page-legal h2 { hyphens: auto; overflow-wrap: anywhere; }
.page-legal a { overflow-wrap: anywhere; }
.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: .65rem 1rem; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--muted); cursor: pointer; }
.animation-player button:hover { color: var(--link); border-color: var(--link); }

/* Subpages use the same typography with more restrained reading widths. */
.profile-hero, .index-hero, .notes-hero { padding-top: 4rem; }
.profile-history, .profile-stack, .profile-split, .case-study__section, .next-step, .home-split { border-top: 1px solid var(--rule); }
.page-projects .selected-work + .selected-work { border-top: 1px solid var(--rule); }
.profile-hero h1, .index-hero h1 { max-width: none; }
.profile-hero .profile-location { color: var(--text); }
.profile-history .history-period { color: var(--muted); }

/* Hosting uses the existing subpage grid and shared contact section. */
.page-hosting .index-hero .copy > p:first-child { font-size: 1.25rem; color: var(--text); }
.hosting-section { border-top: 1px solid var(--rule); }
.hosting-section h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); }
.hosting-section .copy { max-width: var(--content-width); }
.hosting-section .copy > h3 { margin-block: 2rem .75rem; }
.hosting-section ul { margin-block: 1.5rem; padding-left: 1.2rem; }
.hosting-section li + li { margin-top: .4rem; }

@media (max-width: 1100px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .nav { column-gap: 1.2rem; }
  .section-intro, .service-list, .reference-row--text, .about, .home-hero__intro, .contact-grid { column-gap: 2.5rem; }
  .profile-stack dl div { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 800px) {
  :root { --space-xl: 3rem; }
  .site-header { flex-direction: column; align-items: start; gap: .6rem; }
  .nav { gap: .4rem 1.2rem; }
  .home-hero { --name-size: clamp(2.7rem, 15vw, 7.5rem); padding-top: 2rem; }
  .home-hero__portrait { width: min(20%, calc(var(--name-size) * .83 + .8rem)); top: -.8rem; right: 1%; }
  .home-hero__intro { margin-top: 2.5rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .home-hero__role { font-size: 1.7rem; }
  .home-hero__lead p:first-child { font-size: 1.5rem; }
  .section-intro, .service-list, .about, .contact-grid, .project-row, .split-section, .case-study__section, .next-step, .profile-stack, .profile-lanes article { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-intro h2 { max-width: 17ch; }
  .services { padding-block: 2.5rem; }
  .services .section-intro { margin-bottom: 2rem; }
  .service-list { gap: 2rem; }
  .service-row h3 { min-height: 0; max-width: none; margin-bottom: 1rem; }
  .reference-row--text { display: block; }
  .about { gap: 2rem; }
  .about-columns > div + div { margin-top: 1.75rem; }
  .page-home .selected-work { display: block; }
  .page-home .selected-work > p { margin-block: 1.5rem 2rem; max-width: var(--content-width); }
  .page-home .selected-work > .action-links { margin-top: 1.5rem; }
  .project-row { gap: .85rem; }
  .project-row__identity h3 { font-size: 1.9rem; }
  .contact-grid h2 { max-width: none; }
  .site-footer { flex-direction: column; gap: .4rem; }
  .case-study__hero { padding-top: 2.5rem; }
  .case-study__hero--illustrated { grid-template-columns: 1fr; gap: 2rem; }
  .case-study__art { width: min(100%, 34rem); margin-inline: auto; }
  .case-study__section { padding-block: 2rem; }
  .profile-lanes { padding-block: 0; }
  .notes-index { padding-top: 0; }
  .note-row { grid-template-columns: 1fr; gap: .5rem; }
  .article__body { margin-block: 2rem; }
  .home-split h2 { max-width: none; }
}
@media (max-width: 1100px) { .reference-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .reference-list { grid-template-columns: 1fr; gap: 2rem; }
  .reference-row { display: block; grid-row: auto; margin-bottom: 0; }
  .reference-row h3 { margin-block: .5rem 1rem; }
}
@media (max-width: 380px) { .nav { gap: .4rem 1rem; } .nav a { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
