@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}

:root {
  --paper: #f5f0e7;
  --paper-2: #ebe3d4;
  --card: #fbf8f2;
  --ink: #16221d;
  --ink-2: #47544e;
  --line: #d9cfbe;
  --forest: #1c3a2e;
  --forest-2: #24493a;
  --forest-line: #3d6152;
  --on-forest: #f2ede3;
  --on-forest-2: #b9c8bf;
  --accent: #d4532a;
  --accent-ink: #a53c17;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent-ink); }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 0; border-top: 2px dotted var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 0.98rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--forest); color: var(--paper); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: #b8441c; color: #fff; }
.btn--accent:hover { background: #9f3a17; color: #fff; }
.btn--ghost-light { border-color: var(--on-forest-2); color: var(--on-forest); }
.btn--ghost-light:hover { background: var(--on-forest); color: var(--forest); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } .btn:hover { transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 400 1.5rem/0.95 var(--serif); letter-spacing: -0.005em; }
.brand-name small { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--accent-ink); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 0 18px; font-size: 0.92rem; }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.95rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary .bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(78vw, 260px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(22, 34, 29, .35); padding: 8px;
}
.menu-panel a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--paper-2); color: var(--ink); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
}

.nav a[aria-current="page"]:not(.btn) { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menu-panel a[aria-current="page"] { background: var(--paper-2); }
.nav .btn--solid[aria-current="page"] { background: var(--forest); }
.btn--light { background: #fbf8f2; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--forest); }

/* ---------- Splash (home) ---------- */
.is-splash {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; background: #14221c; color: var(--on-forest);
}
.splash-bg, .splash-shade { position: absolute; inset: 0; }
.splash-bg img { width: 100%; height: 100%; object-fit: cover; }
.splash-shade {
  background:
    linear-gradient(90deg, rgba(14, 26, 21, .84) 0%, rgba(14, 26, 21, .6) 42%, rgba(14, 26, 21, .22) 100%),
    linear-gradient(180deg, rgba(14, 26, 21, .6) 0%, rgba(14, 26, 21, 0) 24%, rgba(14, 26, 21, 0) 52%, rgba(14, 26, 21, .88) 100%);
}
.is-splash .site-header, .splash-copy, .splash-footer { position: relative; z-index: 1; }
.splash-main { flex: 1; display: flex; align-items: flex-end; }
.splash-copy { padding: clamp(56px, 10vh, 120px) 0 clamp(40px, 7vh, 84px); }
.splash-copy h1 {
  font-size: clamp(3.1rem, min(1.4rem + 6.4vw, 13vh), 7.6rem); line-height: .98;
  max-width: 16ch; text-wrap: balance; color: #fbf8f2;
}
.splash-copy .lede { margin-top: 26px; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: #e2e8e4; max-width: 33em; }
.splash-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.kicker--light { color: #e6ece8; }
.kicker--light::before { border-top-color: #f08b63; }
.splash-footer { border-top: 1px solid rgba(242, 237, 227, .2); font-size: .8rem; line-height: 1.5; color: #cdd6d0; }
.splash-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 16px 0 18px; }

.site-header--over { position: relative; background: transparent; border-bottom: 1px solid rgba(242, 237, 227, .18); }
.site-header--over .wrap { min-height: 80px; }
.site-header--over .brand, .site-header--over .brand:hover { color: #fbf8f2; }
.site-header--over .brand-name small { color: #c4d0c9; }
.site-header--over .nav a:not(.btn) { color: #f2ede3; }
.site-header--over .nav a:not(.btn):hover { color: #fff; text-decoration: underline; }
.site-header--over .menu summary { border-color: rgba(242, 237, 227, .75); color: #f2ede3; }
.site-header--over .menu[open] summary { background: #f2ede3; color: var(--ink); }
.site-header--over .menu-panel { color: var(--ink); }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(36px, 6vw, 88px); align-items: end; }
.page-head h1 { font-size: clamp(3.2rem, 1.6rem + 6vw, 6.8rem); line-height: .96; }
.page-head .intro { color: var(--ink-2); font-size: clamp(1.08rem, 1rem + .4vw, 1.26rem); max-width: 32em; }
.page-head h1 + .intro { margin-top: 22px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.7rem); max-width: 15ch; }
.section-head p { color: var(--ink-2); max-width: 34em; }

/* Projects */
.proj-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proj-index li { border-bottom: 1px solid var(--line); }
.proj-index a {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding: 12px 0; text-decoration: none; font: 400 1.35rem/1.2 var(--serif);
}
.proj-index a:hover { color: var(--accent-ink); }
.proj-index .n { font: italic 400 1rem/1 var(--serif); color: var(--accent-ink); }
.proj-index .where { font: 500 0.74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

.proj-list { display: grid; gap: clamp(72px, 10vw, 136px); }
.proj {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 80px);
  align-items: center; scroll-margin-top: 96px;
}
.proj:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.proj:nth-child(even) .proj-media { order: 2; }
.proj-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--forest); }
.proj-media img, .proj-media svg { width: 100%; height: 100%; object-fit: cover; }
.proj-body { display: flex; flex-direction: column; gap: 14px; }
.proj .meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.proj .meta .n { font: italic 400 1.35rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--accent-ink); }
.proj h2 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.8rem); }
.proj-body > p:not([class]) { color: var(--ink-2); max-width: 32em; }
.proj .more { font-weight: 600; font-size: 0.95rem; padding-top: 4px; }
.proj .more a { text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.status {
  position: absolute; left: 14px; top: 14px; background: #b8441c; color: #fff; z-index: 1;
  font-size: 0.74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
}
.roles { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { font-size: 0.8rem; font-weight: 500; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 34px 40px 38px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; }
.service:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.service .num { font: italic 400 2rem/1 var(--serif); color: var(--accent-ink); grid-row: span 3; padding-top: 4px; }
.service h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.service p { color: var(--ink-2); margin-top: 8px; }

.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.aud-card {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--forest);
  border-radius: var(--radius); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 12px;
}
.aud-card h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.aud-card p { color: var(--ink-2); }
.aud-card .fine { font-size: 0.8rem; }
.aud-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.95rem; }
.aud-card .more a { text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; color: var(--ink); }
.aud-card .more a:hover { color: var(--accent-ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n { display: block; font: italic 400 2.2rem/1 var(--serif); color: var(--accent-ink); margin-bottom: 10px; }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--ink-2); margin-top: 6px; }

/* About */
.band { margin: clamp(40px, 5vw, 64px) 0 0; }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.band figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--ink-2); }
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(36px, 6vw, 88px); align-items: start; }
.story p:first-child { font: 400 clamp(1.55rem, 1.15rem + 1.5vw, 2.2rem)/1.25 var(--serif); }
.story p + p { margin-top: 1em; color: var(--ink-2); font-size: 1.1rem; max-width: 36em; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 6px 0 0; }

/* Contact */
.email-link {
  display: inline-block; margin-top: 26px; font: 400 clamp(1.45rem, 0.9rem + 2.4vw, 2.6rem)/1.15 var(--serif);
  text-decoration: none; border-bottom: 2px solid var(--accent); overflow-wrap: anywhere;
}

/* Call to action band */
.cta { background: var(--forest); color: var(--on-forest); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding: clamp(64px, 8vw, 104px) 0; }
.cta h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.9rem); max-width: 17ch; }
.cta p { margin-top: 16px; color: var(--on-forest-2); }
.cta p a { color: var(--on-forest); overflow-wrap: anywhere; }
.cta p a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2cc; font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px 40px; padding: clamp(52px, 6vw, 76px) 0 40px; }
.footer-brand p { margin-top: 16px; max-width: 24em; color: #9fb0a7; }
.site-footer .brand, .site-footer .brand:hover { color: var(--paper); }
.site-footer .brand-name small { color: #9fb0a7; }
.footer-h { font-size: 0.72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9fb0a7; margin-bottom: 14px; }
.footer-top nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer a { color: #e7ece8; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2b3a33; padding: 22px 0 32px; display: grid; gap: 10px; font-size: 0.8rem; line-height: 1.55; color: #9fb0a7; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section-head, .about, .page-head .wrap { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .proj, .proj:nth-child(even) { grid-template-columns: 1fr; }
  .proj:nth-child(even) .proj-media { order: 0; }
}
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 28px 0 30px; border-left: 0; grid-template-columns: 48px minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .band img { aspect-ratio: 16 / 10; }
  .splash-footer .wrap { flex-direction: column; }
  .splash-shade { background: linear-gradient(180deg, rgba(14, 26, 21, .66) 0%, rgba(14, 26, 21, .64) 30%, rgba(14, 26, 21, .82) 58%, rgba(14, 26, 21, .93) 100%); }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .proj-index a { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .splash-copy .actions .btn { flex: 1 1 100%; }
  .brand-name b { font-size: 1.32rem; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.notfound-title { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.4rem); max-width: 14ch; }
.notfound-lede { margin-top: 22px; color: var(--ink-2); font-size: 1.15rem; max-width: 34em; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
