/* ==========================================================================
   Wren & Hale — Architecture
   Single stylesheet. No build step, no dependencies.

   Contents
   01  Tokens
   02  Reset & base
   03  Typography
   04  Layout primitives
   05  Header & navigation
   06  Footer
   07  Buttons & links
   08  Hero
   09  Project index & cards
   10  Project pages
   11  Studio, services, journal
   12  Contact & forms
   13  Motion & reveal
   14  Print
   ========================================================================== */

/* 01 — Tokens ============================================================= */
:root {
  /* Colour. Warm neutrals with a single clay accent. */
  --bone:        #F7F5F1;
  --bone-deep:   #EFEBE4;
  --ink:         #16181B;
  --ink-soft:    #2B2E33;
  --grey:        #6B6660;
  --grey-light:  #726C65;   /* on bone: 4.76:1 AA */
  --muted-dark:  #9B958D;   /* on ink:  5.99:1 AA */
  --rule:        #DDD7CD;
  --clay:        #9A5B3E;
  --clay-deep:   #7C4730;

  --bg:          var(--bone);
  --fg:          var(--ink);
  --muted:       var(--grey);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 1rem;
  --t-md:   clamp(1.0625rem, 0.30vw + 1rem, 1.1875rem);
  --t-lg:   clamp(1.25rem,  0.60vw + 1.1rem, 1.5rem);
  --t-xl:   clamp(1.5rem,   1.20vw + 1.2rem, 2.125rem);
  --t-2xl:  clamp(2rem,     2.60vw + 1.3rem, 3.25rem);
  --t-3xl:  clamp(2.5rem,   4.80vw + 1.2rem, 5.25rem);

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;
  --section: clamp(4rem, 9vw, 8.5rem);

  /* Measure & gutters */
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 84rem;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 560ms;
}

/* 01b — Fonts ============================================================
   Self-hosted. These were three round trips to two third-party origins
   (fonts.googleapis.com for the CSS, then fonts.gstatic.com for the files),
   and the stylesheet among them was render-blocking — nothing on the page
   could paint until it came back. Served from our own origin they ride the
   connection that is already open.

   Inter is the variable font covering 400-600 in one file; it replaced three
   static weights of the same size each. Only the latin and latin-ext subsets
   are kept — the cyrillic, greek and vietnamese ones were never going to be
   used by this site.

   Both families are SIL Open Font License 1.1; see assets/fonts/OFL.txt.
   ======================================================================== */

/* fraunces italic — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* fraunces italic — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* fraunces normal — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* fraunces normal — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* inter normal — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* inter normal — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 02 — Reset & base ======================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--bone-deep); }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }

::selection { background: var(--clay); color: #fff; }

/* Announced, never seen. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Skip link */
.skip {
  position: absolute; left: var(--s-4); top: var(--s-4); z-index: 200;
  transform: translateY(-250%);
  background: var(--ink); color: var(--bone);
  padding: var(--s-3) var(--s-5);
  font-size: var(--t-sm); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: transform 200ms var(--ease);
}
.skip:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

/* Focused only because the skip link sent us here — no ring. */
[tabindex="-1"]:focus { outline: none; }

/* 03 — Typography ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { margin: 0 0 var(--s-5); max-width: var(--measure); text-wrap: pretty; }

.lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

.eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-5);
  font-weight: 500;
  max-width: none;
}

.serif-em { font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40; }

blockquote {
  margin: var(--s-8) 0;
  padding-left: var(--s-6);
  border-left: 2px solid var(--clay);
  font-family: var(--serif);
  font-size: var(--t-xl);
  line-height: 1.3;
  color: var(--ink);
}
blockquote p { max-width: 34ch; margin-bottom: var(--s-3); }
blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 04 — Layout primitives ================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 54rem; }

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.stack > * + * { margin-top: var(--s-5); }

/* Two-column editorial split: label left, content right */
.split {
  display: grid;
  gap: var(--s-6) var(--s-8);
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 14rem 1fr; gap: var(--s-8) var(--s-9); }
  .split > .split-label { padding-top: 0.55rem; }
}
.split-label {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--ink);
  padding-top: var(--s-3);
  font-weight: 500;
}

.rule-top { border-top: 1px solid var(--rule); padding-top: var(--s-6); }

/* Generic responsive grid */
.grid { display: grid; gap: var(--s-6); }
@media (min-width: 40rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 44rem) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Full-bleed inside a wrapped container */
.bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  max-width: 100vw;
}

/* 05 — Header & navigation =============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--bone) 96%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .amp { font-style: italic; color: var(--clay); font-variation-settings: "SOFT" 40, "WONK" 1; }
.brand small {
  display: none;
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: var(--s-3);
}
@media (min-width: 64rem) { .brand small { display: inline; } }

.menu {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
  gap: var(--s-6);
}
.menu a {
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: var(--s-2);
  position: relative;
}
.menu a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 340ms var(--ease);
}
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--ink); }
.menu a[aria-current="page"]::after { transform: scaleX(1); background: var(--clay); }

@media (min-width: 62rem) {
  .menu { display: flex; }
}

.burger {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.6rem;
  background: none; border: 0; padding: 0;
  color: var(--ink); cursor: pointer;
}
.burger span {
  display: block; position: relative;
  width: 22px; height: 1px; background: currentColor;
  transition: background 200ms var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 1px; background: currentColor;
  transition: transform 300ms var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 62rem) { .burger { display: none; } }

/* Mobile drawer */
.menu-mobile {
  display: block;
  position: fixed;
  inset: 4.75rem 0 auto 0;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-4) var(--gutter) var(--s-7);
  list-style: none;
  margin: 0;
  transform: translateY(-110%);
  visibility: hidden;
  /* visibility is stepped, not eased: hold it until the panel has slid away on
     close, but flip it the instant it opens so the links are focusable at once
     rather than part-way through the transition. */
  transition: transform 420ms var(--ease), visibility 0s linear 420ms;
  max-height: calc(100dvh - 4.75rem);
  overflow-y: auto;
}
.menu-mobile[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
  transition: transform 420ms var(--ease), visibility 0s linear 0s;
}
.menu-mobile li { border-bottom: 1px solid var(--rule); }
.menu-mobile li:last-child { border-bottom: 0; }
.menu-mobile a {
  display: block;
  padding: var(--s-4) 0;
  min-height: 44px;
  font-family: var(--serif);
  font-size: var(--t-lg);
  color: var(--ink);
  text-decoration: none;
}
.menu-mobile a[aria-current="page"] { color: var(--clay); }
@media (min-width: 62rem) { .menu-mobile { display: none; } }

/* 06 — Footer ============================================================= */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: var(--s-9) var(--s-6);
  margin-top: var(--section);
}
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-8); } }

.footer-head {
  font-family: var(--serif);
  font-size: var(--t-xl);
  margin-bottom: var(--s-4);
  color: #fff;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--s-3); }
.footer-label {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer-bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  justify-content: space-between;
  font-size: var(--t-sm);
  color: var(--muted-dark);
}
.footer-bottom p { margin: 0; max-width: none; }

/* 07 — Buttons & links ==================================================== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.6ch;
  min-height: 44px;
  padding: 0.75rem 1.6rem;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.btn-light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-light:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }

/* Arrow link */
.arrow {
  display: inline-flex; align-items: center; gap: 0.7ch;
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--s-2);
  transition: border-color 260ms var(--ease), color 260ms var(--ease);
}
.arrow::after { content: "→"; transition: transform 300ms var(--ease); }
.arrow:hover { color: var(--clay); border-bottom-color: var(--clay); }
.arrow:hover::after { transform: translateX(5px); }

a { color: var(--clay); text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }

/* 08 — Hero =============================================================== */
.hero { position: relative; }
.hero-media {
  position: relative;
  width: 100%;          /* definite inline size: the ratio must not set width */
  aspect-ratio: 16 / 9;
  min-height: 62vh;
  max-height: 88vh;
  overflow: hidden;
  background: var(--bone-deep);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,0.34) 0%, rgba(10,11,13,0.10) 38%, rgba(10,11,13,0.62) 100%);
}
.hero-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
}
.hero-copy h1 { color: #fff; max-width: 18ch; margin-bottom: var(--s-4); }
.hero-copy .eyebrow { color: rgba(255,255,255,0.82); }
.hero-copy p { color: rgba(255,255,255,0.90); max-width: 42ch; font-size: var(--t-md); }

/* Page header for interior pages */
.page-head { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2rem, 4vw, 3.5rem); }
.page-head h1 { max-width: 20ch; }

/* 09 — Project index & cards ============================================= */
.project-list { display: grid; gap: clamp(3rem, 7vw, 6rem); }

/* The grid lives on the <a>, not on the <article>. An anchor set to
   `display: contents` generates no box, so it can take no focus ring, and
   several screen readers drop its link semantics entirely. */
.project-card {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  align-items: start;
  color: inherit;
  text-decoration: none;
}
.project-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 6px; }
@media (min-width: 60rem) {
  .project-card { grid-template-columns: repeat(12, 1fr); gap: var(--s-7); align-items: center; }
  /* Varied rhythm: wide, then offset-narrow, alternating */
  .project--wide   .project-media { grid-column: 1 / span 12; }
  .project--wide   .project-body  { grid-column: 1 / span 12; }
  .project--left   .project-media { grid-column: 1 / span 7; }
  .project--left   .project-body  { grid-column: 9 / span 4; }
  .project--right  .project-media { grid-column: 6 / span 7; order: 2; }
  .project--right  .project-body  { grid-column: 1 / span 4; order: 1; }
}

.project-media {
  overflow: hidden;
  background: var(--bone-deep);
  border-radius: var(--radius);
}
.project--wide .project-media { aspect-ratio: 16 / 9; }
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease), filter 600ms var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.035); }

.project-body .project-title {
  font-family: var(--serif);
  font-size: var(--t-xl);
  line-height: 1.1;
  margin: 0 0 var(--s-2);
  color: var(--ink);
}
.project-meta {
  font-size: var(--t-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0 0 var(--s-4);
}
.project-body p { font-size: var(--t-base); color: var(--ink-soft); }

/* Index number */
.project-index {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  color: var(--grey-light);
  display: block;
  margin-bottom: var(--s-3);
}

/* Filter bar */
.filter {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-4);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.filter button {
  background: none; border: 1px solid transparent; cursor: pointer;
  font: inherit;
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  border-radius: var(--radius);
  transition: color 220ms var(--ease), background 220ms var(--ease);
}
.filter button:hover { color: var(--ink); }
.filter button[aria-pressed="true"] { color: var(--bone); background: var(--ink); }

.is-hidden { display: none !important; }

/* 10 — Project pages ===================================================== */
.facts {
  border-top: 1px solid var(--ink);
  margin-top: var(--s-6);
  container-type: inline-size;
}
.facts dl { margin: 0; }
.facts .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
/* Keyed to the container, not the viewport: on project pages this list sits in
   a narrow sidebar that stays narrow even on a wide screen, so it must stack
   there and only go two-column when it genuinely has the room. */
@container (min-width: 22rem) {
  .facts .row { grid-template-columns: 8rem 1fr; gap: var(--s-5); align-items: baseline; }
}
.facts dt {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.facts dd { margin: 0; color: var(--ink); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption {
  font-size: var(--t-sm);
  color: var(--muted);
  margin-top: var(--s-3);
  max-width: 52ch;
}

.image-seq { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 52rem) { .image-seq-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Next project */
.next-project {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-7);
  margin-top: var(--section);
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: baseline; justify-content: space-between;
}
.next-project .next-title {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  margin: 0;
  line-height: 1.05;
}
.next-project a { text-decoration: none; color: var(--ink); }
.next-project a:hover .next-title { color: var(--clay); }

/* 11 — Studio, services, journal ========================================= */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.team li {
  display: grid; gap: var(--s-1);
  grid-template-columns: 1fr;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 44rem) {
  .team li { grid-template-columns: 1fr 1fr 8rem; gap: var(--s-5); align-items: baseline; }
}
.team .name { font-family: var(--serif); font-size: var(--t-lg); color: var(--ink); }
.team .role { color: var(--muted); font-size: var(--t-base); }
.team .cred { color: var(--grey-light); font-size: var(--t-sm); letter-spacing: 0.08em; text-transform: uppercase; }

.service {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-5);
}
.service h3 { margin-bottom: var(--s-3); }
.service p { font-size: var(--t-base); color: var(--ink-soft); }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: var(--t-sm); }
.service li { margin-bottom: var(--s-2); }

.phase { counter-reset: phase; display: grid; gap: 0; }
.phase-item {
  display: grid; gap: var(--s-2);
  grid-template-columns: 1fr;
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48rem) {
  .phase-item { grid-template-columns: 4rem 12rem 1fr; gap: var(--s-6); align-items: baseline; }
}
.phase-num {
  font-family: var(--serif);
  font-size: var(--t-lg);
  color: var(--clay);
}
.phase-item h3 { font-size: var(--t-lg); margin: 0; }
.phase-item p { margin: 0; font-size: var(--t-base); color: var(--ink-soft); }

.journal-list { list-style: none; margin: 0; padding: 0; }
.journal-item { border-bottom: 1px solid var(--rule); }
.journal-entry {
  display: grid; gap: var(--s-2);
  grid-template-columns: 1fr;
  padding-block: var(--s-6);
  color: var(--ink);
}
@media (min-width: 48rem) {
  .journal-entry { grid-template-columns: 8rem 1fr 10rem; gap: var(--s-6); align-items: baseline; }
}
.journal-date { font-size: var(--t-sm); color: var(--grey-light); letter-spacing: 0.06em; }
.journal-title {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.15;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}
.journal-teaser { margin: 0; color: var(--ink-soft); font-size: var(--t-base); max-width: 52ch; }
.journal-cat { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Stat / recognition rows */
.stats { display: grid; gap: var(--s-6); }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat .figure-num {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  line-height: 1;
  display: block;
  margin-bottom: var(--s-2);
}
.stat p { font-size: var(--t-sm); color: var(--muted); margin: 0; }

/* Dark band */
.band {
  background: var(--ink);
  color: var(--bone);
  padding-block: var(--section);
}
.band h2 { color: #fff; }
.band p { color: rgba(247,245,241,0.78); }
.band .eyebrow { color: var(--muted-dark); }
.band .split-label { color: var(--muted-dark); border-top-color: rgba(255,255,255,0.3); }

/* 12 — Contact & forms =================================================== */
.form { display: grid; gap: var(--s-5); max-width: 40rem; }
.field { display: grid; gap: var(--s-2); }
.field label {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: var(--t-base);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--s-3) 0;
  min-height: 44px;
  width: 100%;
  transition: border-color 240ms var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--clay);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 3px;
}
.field .hint { font-size: var(--t-sm); color: var(--grey-light); }
.field .error {
  font-size: var(--t-sm); color: var(--clay-deep); display: none;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea,
.field[data-invalid="true"] select { border-bottom-color: var(--clay-deep); }
.field[data-invalid="true"] .error { display: block; }

/* Submit feedback. Empty means nothing to say, so it takes no space — but it
   stays in the accessibility tree so role="status" announces when filled. */
.form-status {
  font-size: var(--t-sm);
  color: var(--clay-deep);
  border-left: 2px solid var(--clay);
  padding-left: var(--s-4);
  max-width: 44ch;
  margin: 0;
}
.form-status:empty { display: none; }

.form-note {
  font-size: var(--t-sm);
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: var(--s-4);
  max-width: 44ch;
}

.contact-detail { list-style: none; margin: 0; padding: 0; }
.contact-detail li { padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.contact-detail .label {
  display: block;
  font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s-1);
}
.contact-detail a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-detail a:hover { color: var(--clay); border-bottom-color: var(--clay); }

/* 13 — Motion & reveal =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.reveal[data-visible="true"] { opacity: 1; transform: none; will-change: auto; }

/* No-JS: never leave content hidden */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .project-card:hover .project-media img { transform: none; }
}

/* 14 — Print ============================================================= */
@media print {
  .site-header, .site-footer, .burger, .menu-mobile, .filter, .cta-row { display: none !important; }
  body { background: #fff; color: #000; }
  .hero-media { min-height: auto; aspect-ratio: 21/9; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .reveal { opacity: 1 !important; transform: none !important; }

  /* The hero caption is white over a gradient that browsers do not print by
     default. Lift it out of the image and set it in black instead. */
  .hero-media::after { display: none; }
  .hero-copy {
    position: static;
    padding-block: var(--s-5) 0;
    color: #000;
  }
  .hero-copy h1 { color: #000; }
  .hero-copy p, .hero-copy .eyebrow { color: #333; }
}
