/* Birchwood Archaeological Services
   Palette carried over from the original site: cream, oxblood, olive and mustard. */

:root {
  --paper: #f6efdf;
  --paper-2: #efe4ca;
  --paper-3: #e6d7b6;
  --card: #fbf7ee;
  --ink: #1e1915;
  --ink-2: #4a4038;
  --ink-3: #6d6157;
  --oxblood: #6b1009;
  --oxblood-2: #8a1d12;
  --olive: #4b5822;
  --olive-2: #6b7a33;
  --mustard: #c8962e;
  --mustard-2: #e3b65a;
  --earth: #1f1712;
  --earth-2: #2b2019;
  --line: rgba(30, 25, 21, .14);
  --line-light: rgba(246, 239, 223, .16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(31, 23, 18, .06), 0 12px 32px -12px rgba(31, 23, 18, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--oxblood-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 350; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 350; letter-spacing: -.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
em, i { font-style: italic; }
address { font-style: normal; }
::selection { background: var(--mustard-2); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--paper); }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.bg-2 { background: var(--paper-2); }
.dark { background: var(--earth); color: #e9dfca; }
.dark h1, .dark h2, .dark h3 { color: #fbf4e4; }
.dark a { color: var(--mustard-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 500 .75rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--oxblood); margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow, .study-hero .eyebrow { color: var(--mustard-2); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.dark .lede, .hero .lede, .page-head .lede, .strata-section .lede { color: #d8ccb4; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px; border: 1px solid currentColor;
  font: 600 .9375rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  color: var(--ink); background: transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--oxblood); border-color: var(--oxblood); color: #fbf4e4; }
.btn-solid:hover { background: var(--oxblood-2); border-color: var(--oxblood-2); color: #fff; }
.btn-light { color: #fbf4e4; border-color: rgba(251, 244, 228, .45); }
.btn-light:hover { background: #fbf4e4; color: var(--earth); border-color: #fbf4e4; }
.btn-gold { background: var(--mustard); border-color: var(--mustard); color: var(--earth); }
.btn-gold:hover { background: var(--mustard-2); border-color: var(--mustard-2); color: var(--earth); }
.btn-sm { padding: .7em 1.2em; font-size: .875rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 223, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: auto; color: var(--oxblood); flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 1.6rem/1 var(--serif); letter-spacing: -.01em; }
.brand-sub { font: 500 .625rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.brand-light { color: #fbf4e4; }
.brand-light:hover { color: #fbf4e4; }
.brand-light .brand-mark { color: var(--mustard); }
.brand-light .brand-sub { color: #b9ab92; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; position: relative; padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oxblood);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--oxblood); }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border: 0; padding-top: 18px; }
  .site-nav a:not(.btn) { display: block; padding: 16px 0; font: 400 1.4rem/1.2 var(--serif); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) { .brand-sub { letter-spacing: .1em; } .brand-name { font-size: 1.4rem; } }

/* Hero (home) */
.hero {
  position: relative; background: var(--earth); color: #e9dfca; overflow: hidden;
  min-height: min(880px, calc(100svh - 76px)); display: flex; align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(96px, 12vw, 150px);
}
.topo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topo-fallback {
  position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(200, 150, 46, .16), transparent 60%),
    repeating-radial-gradient(circle at 72% 46%, transparent 0 22px, rgba(233, 223, 202, .07) 22px 23px);
}
.has-webgl .topo-fallback { display: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(31, 23, 18, .92) 0%, rgba(31, 23, 18, .65) 45%, rgba(31, 23, 18, .1) 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { color: #fbf4e4; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--mustard-2); font-weight: 300; }
.hero .lede { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; aspect-ratio: 4 / 5; }
.hero-photo {
  position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  border: 6px solid #f3ead6;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-a { inset: 0 14% 22% 0; transform: rotate(-2deg); }
.hero-photo-b { width: 54%; aspect-ratio: 4 / 3; right: 0; bottom: 0; transform: rotate(3deg); }
.tag {
  position: absolute; z-index: 3; left: -18px; bottom: 30%;
  background: #f3ead6; color: var(--ink); padding: 10px 14px 10px 26px; border-radius: 2px;
  font: 500 .6875rem/1.45 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); transform: rotate(-4deg);
}
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--paper-2); }
.tag b { display: block; color: var(--oxblood); font-weight: 500; }
.hero-stats {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line-light);
  background: rgba(31, 23, 18, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-stats ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats li { padding: 18px 0 18px 20px; border-left: 1px solid var(--line-light); display: flex; align-items: baseline; gap: 10px; }
.hero-stats li:first-child { border-left: 0; padding-left: 0; }
.hero-stats strong { font: 350 1.9rem/1 var(--serif); color: #fbf4e4; }
.hero-stats span { font: 500 .6875rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #b9ab92; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(31, 23, 18, .82), rgba(31, 23, 18, .55)); }
  .hero-media { max-width: 440px; width: 100%; margin: 8px auto 0; }
  .tag { left: 0; }
  .hero-stats { position: relative; margin-top: 56px; }
  .hero { flex-direction: column; padding-bottom: 0; }
  .hero-stats ul { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}

/* Interior page header */
.page-head { position: relative; background: var(--earth); color: #e9dfca; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 23, 18, .95) 0%, rgba(31, 23, 18, .7) 55%, rgba(31, 23, 18, .25)); pointer-events: none; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fbf4e4; max-width: 16ch; }
.page-head .lede { margin: 0; }
.crumbs { font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px; color: #b9ab92; }
.crumbs a { color: #b9ab92; text-decoration: none; }
.crumbs a:hover { color: var(--mustard-2); }
.crumbs span { margin: 0 .6em; opacity: .6; }

/* Generic layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-wide { grid-template-columns: 1.2fr .8fr; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { max-width: 46ch; margin: 0; color: var(--ink-2); }

.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 3 / 2; }
.photo-cap { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }

/* Firm intro */
.intro-lead { font: 350 clamp(1.35rem, 2.3vw, 1.75rem)/1.45 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.photo-stack { position: relative; }
.photo-stack .photo-sm { position: absolute; width: 46%; right: -6%; bottom: -10%; border: 6px solid var(--paper); box-shadow: var(--shadow); }
@media (max-width: 860px) { .photo-stack .photo-sm { right: 0; } }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card .photo { aspect-ratio: 16 / 9; border-radius: 0; }
.svc-card .photo img { transition: transform 1.2s var(--ease); }
.svc-card:hover .photo img { transform: scale(1.04); }
.svc-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.svc-num { font: 500 .75rem/1 var(--mono); color: var(--oxblood); letter-spacing: .12em; margin-bottom: 14px; }
.svc-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 1px; background: var(--oxblood); }
.svc-body .link-arrow { margin-top: auto; }

/* Strata (phases) */
.strata-section { background: var(--earth); color: #e9dfca; overflow: hidden; }
.phases { list-style: none; padding: 0; display: grid; gap: 0; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line-light); }
.phase { display: grid; grid-template-columns: 140px 1fr 1.2fr; gap: clamp(16px, 4vw, 56px); padding: clamp(24px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line-light); position: relative; align-items: baseline; }
.phase::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--mustard); transition: width 1.2s var(--ease); }
.phase.is-in::before { width: 100%; }
.phase-depth { font: 500 .75rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard-2); }
.phase h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: #fbf4e4; }
.phase p { margin: 0; color: #cfc3aa; }
.phase:nth-child(1) { background: linear-gradient(90deg, rgba(200, 150, 46, .05), transparent 70%); }
.phase:nth-child(2) { background: linear-gradient(90deg, rgba(138, 29, 18, .1), transparent 70%); }
.phase:nth-child(3) { background: linear-gradient(90deg, rgba(107, 122, 51, .1), transparent 70%); }
.phase:nth-child(4) { background: linear-gradient(90deg, rgba(233, 223, 202, .05), transparent 70%); }
@media (max-width: 760px) { .phase { grid-template-columns: 1fr; gap: 8px; } }

/* Study cards */
.study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 760px) { .study-grid { grid-template-columns: 1fr; } }
.study-card { position: relative; display: block; text-decoration: none; color: #fbf4e4; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--earth); isolation: isolate; }
.study-card:hover { color: #fbf4e4; }
.study-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; z-index: -2; filter: saturate(.9); }
.study-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 10, 0) 30%, rgba(20, 14, 10, .88) 100%); }
.study-card:hover img { transform: scale(1.05); filter: saturate(1.05); }
.study-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 32px); }
.study-card .yr { position: absolute; top: 18px; right: 20px; font: 300 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); color: rgba(251, 244, 228, .9); text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.study-card .meta { font: 500 .6875rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mustard-2); margin-bottom: 8px; }
.study-card h3 { margin: 0 0 .3em; color: #fbf4e4; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.study-card p { margin: 0; color: #d8ccb4; font-size: .9375rem; max-width: 48ch; }
.study-card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .875rem; border-bottom: 1px solid var(--mustard); padding-bottom: 2px; }

/* Archive list */
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .archive-grid { grid-template-columns: 1fr; } }
.doc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.doc-card:hover { color: var(--ink); }
.doc-thumb { aspect-ratio: 8.5 / 11; background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; box-shadow: 0 1px 0 var(--paper-3), 0 2px 0 var(--card), 0 3px 0 var(--paper-3), 0 14px 26px -16px rgba(0, 0, 0, .45); transition: transform .35s var(--ease); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-card:hover .doc-thumb { transform: translateY(-4px) rotate(-.6deg); }
.doc-card h3 { font-size: 1.15rem; margin: 18px 0 4px; }
.doc-card .mono { color: var(--ink-3); }

/* Quote */
.pull { font: 300 italic clamp(1.5rem, 3vw, 2.4rem)/1.35 var(--serif); letter-spacing: -.01em; margin: 0; max-width: 30ch; }
.pull-cite { display: block; margin-top: 1.4rem; font: 500 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--oxblood); }
.dark .pull-cite { color: var(--mustard-2); }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--oxblood); color: #f6ead3; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .14; background: repeating-radial-gradient(circle at 85% 120%, transparent 0 26px, #f6ead3 26px 27px); }
.cta .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff7e6; margin: 0 0 .3em; max-width: 20ch; }
.cta p { margin: 0; color: #f0d9c4; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--earth); color: #cfc3aa; position: relative; }
.strata { display: grid; grid-template-rows: 6px 4px 3px 2px; }
.strata span:nth-child(1) { background: var(--oxblood); }
.strata span:nth-child(2) { background: var(--mustard); }
.strata span:nth-child(3) { background: var(--olive-2); }
.strata span:nth-child(4) { background: #3a2b20; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand p { max-width: 42ch; margin-top: 20px; }
.coords { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: #8f8169; }
.footer-h { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard-2); margin: 6px 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #e9dfca; text-decoration: none; }
.site-footer a:hover { color: var(--mustard-2); text-decoration: underline; }
.footer-contact { margin-top: 16px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-light); padding-top: 22px; padding-bottom: 28px; font-size: .8125rem; color: #8f8169; }
.footer-base p { margin: 0; }

/* About */
.bio-photo { position: relative; }
.bio-photo .photo { aspect-ratio: 3 / 4; }
.bio-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--oxblood); border-radius: var(--radius); z-index: -1; }
.creds { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.creds li { background: var(--paper); padding: 18px 20px; }
.creds strong { display: block; font: 400 1.1rem/1.25 var(--serif); }
.creds span { font-size: .875rem; color: var(--ink-3); }
@media (max-width: 520px) { .creds { grid-template-columns: 1fr; } }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.monogram { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--earth); color: var(--mustard-2); font: 400 1.3rem/1 var(--serif); margin-bottom: 20px; }
.team-card h3 { margin-bottom: .2em; }
.team-card .role { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 14px; display: block; }
.team-card p { color: var(--ink-2); font-size: .9688rem; margin: 0; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 12px; }
.mosaic .photo { height: 100%; }
.mosaic .m1 { grid-column: span 3; grid-row: span 2; }
.mosaic .m2 { grid-column: span 3; }
.mosaic .m3 { grid-column: span 2; }
.mosaic .m4 { grid-column: span 1; }
@media (max-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic .m1, .mosaic .m2 { grid-column: span 2; } .mosaic .m3, .mosaic .m4 { grid-column: span 1; } }

/* Services page */
.svc-detail { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; } }
.svc-detail-aside { position: sticky; top: 110px; }
@media (max-width: 860px) { .svc-detail-aside { position: static; } }
.svc-list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.svc-list li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc-list li::before { content: counter(s, decimal-leading-zero); font: 500 .8125rem/1.8 var(--mono); color: var(--oxblood); grid-row: span 2; }
.svc-list h3 { margin: 0; font-size: 1.35rem; }
.svc-list p { margin: 0; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--card); }
.dark .chips li { border-color: var(--line-light); background: transparent; color: #e9dfca; }

/* Study detail */
.study-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #fbf4e4; background: var(--earth); overflow: hidden; }
.study-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.study-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, .35) 0%, rgba(20, 14, 10, .2) 40%, rgba(20, 14, 10, .92) 100%); }
.study-hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 72px); }
.study-hero h1 { color: #fff7e6; max-width: 18ch; margin-bottom: .25em; }
.study-hero .place { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mustard-2); margin: 0; }
.study-hero .crumbs { margin-bottom: 20px; }
.study-hero .yr-big { position: absolute; right: var(--gutter); bottom: clamp(36px, 6vw, 64px); font: 200 clamp(4rem, 12vw, 10rem)/.8 var(--serif); color: rgba(255, 247, 230, .14); letter-spacing: -.04em; }
@media (max-width: 700px) { .study-hero .yr-big { display: none; } }
.meta-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.meta-bar dl { margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.meta-bar dl > div { padding: 22px 24px 22px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.meta-bar dl > div:last-child { border-right: 0; }
.meta-bar dt { font: 500 .6875rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.meta-bar dd { margin: 0; font: 400 1.05rem/1.35 var(--serif); }
@media (max-width: 860px) { .meta-bar dl { grid-template-columns: 1fr 1fr; } .meta-bar dl > div:nth-child(2) { border-right: 0; } .meta-bar dl > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .meta-bar dl { grid-template-columns: 1fr; } .meta-bar dl > div { border-right: 0; margin-right: 0; } .meta-bar dl > div + div { border-top: 1px solid var(--line); } }

.study-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .study-body { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose > p:first-of-type::first-letter { float: left; font: 400 4.2em/.82 var(--serif); padding: .06em .12em 0 0; color: var(--oxblood); }
.facts { position: sticky; top: 104px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (max-width: 960px) { .facts { position: static; } }
.facts h2 { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); margin: 0 0 18px; }
.facts dl { margin: 0; }
.facts dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font: 500 .6875rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: .9688rem; }
.facts .btn { width: 100%; justify-content: center; margin-top: 20px; }
.facts .pdf-note { font-size: .8125rem; color: var(--ink-3); text-align: center; margin: 10px 0 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: var(--line-light); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 32px; padding: 0 0 30px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 88px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--earth); border: 1.5px solid var(--mustard); transition: background .4s; }
.timeline li.is-in::after { background: var(--mustard); }
.timeline .t-yr { font: 350 1.5rem/1.1 var(--serif); color: #fbf4e4; text-align: right; padding-right: 8px; }
.timeline p { margin: 0; color: #cfc3aa; max-width: 60ch; }
@media (max-width: 560px) {
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .timeline li::after { left: 0; }
  .timeline .t-yr { text-align: left; }
}

.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-3); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery button img { width: 100%; transition: transform .9s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .8125rem; line-height: 1.45; color: var(--ink-3); padding: 8px 2px 4px; }
.gallery .num { font-family: var(--mono); color: var(--oxblood); margin-right: 6px; }

.figure-wide { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2vw, 24px); margin: 0; }
.figure-wide figcaption { font-size: .875rem; color: var(--ink-3); margin-top: 12px; }

.next-study { display: grid; grid-template-columns: 1fr 1fr; }
.next-study a { position: relative; display: block; padding: clamp(40px, 6vw, 72px) var(--gutter); text-decoration: none; color: #fbf4e4; background: var(--earth); overflow: hidden; isolation: isolate; }
.next-study a + a { border-left: 1px solid var(--line-light); text-align: right; }
.next-study img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1; transition: opacity .5s, transform 1.2s var(--ease); }
.next-study a:hover img { opacity: .42; transform: scale(1.04); }
.next-study .mono { color: var(--mustard-2); text-transform: uppercase; letter-spacing: .12em; }
.next-study .t { display: block; font: 350 clamp(1.3rem, 2.6vw, 2rem)/1.15 var(--serif); margin-top: 8px; }
@media (max-width: 640px) { .next-study { grid-template-columns: 1fr; } .next-study a + a { border-left: 0; border-top: 1px solid var(--line-light); text-align: left; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(16, 11, 8, .96); color: #e9dfca; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(16, 11, 8, .9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1400px, 92vw); }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 16px; text-align: center; max-width: 70ch; font-size: .9375rem; color: #d8ccb4; padding: 0 56px; }
.lb-btn { position: fixed; background: rgba(251, 244, 228, .08); color: #fbf4e4; border: 1px solid rgba(251, 244, 228, .2); width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(251, 244, 228, .2); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; top: 30px; left: 24px; margin: 0; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: #b9ab92; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lightbox figcaption { padding: 0 8px; } .lightbox img { max-height: 70vh; } }

/* Research */
.pub-year { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.pub-year > h2 { font: 300 2.4rem/1 var(--serif); color: var(--oxblood); margin: 0; position: sticky; top: 104px; align-self: start; }
@media (max-width: 640px) { .pub-year { grid-template-columns: 1fr; gap: 12px; } .pub-year > h2 { position: static; } }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.pub { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.pub-thumb { aspect-ratio: 8.5 / 11; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5); }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pub h3 { font-size: 1.25rem; margin: 0 0 .35em; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--oxblood); text-decoration: underline; }
.pub .by { margin: 0 0 .3em; font-size: .9375rem; color: var(--ink-2); }
.pub .venue { margin: 0 0 .6em; font-size: .9375rem; color: var(--ink-3); font-style: italic; }
.pub-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .875rem; font-weight: 600; }
.pub-links a { text-decoration: none; }
.pub-links a:hover { text-decoration: underline; }
.badge { font: 500 .625rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 2px; background: var(--paper-2); color: var(--ink-2); vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.academia-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--oxblood); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.academia-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 .25em; }
.academia-card p { margin: 0; color: var(--ink-2); }
.academia-card .turtle { width: 44px; color: var(--oxblood); }
@media (max-width: 760px) { .academia-card { grid-template-columns: 1fr; } }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-list .k { font: 500 .6875rem/1.8 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact-list .v { font: 400 1.15rem/1.45 var(--serif); }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--oxblood); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.form h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: .875rem; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid rgba(30, 25, 21, .28); border-radius: var(--radius); padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--oxblood); box-shadow: 0 0 0 3px rgba(107, 16, 9, .15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.notice-ok { background: #e7ecd6; color: #2f3a12; border: 1px solid #b9c48e; }
.notice-err { background: #f6dcd6; color: #5c120a; border: 1px solid #e0a89c; }
.form-note { font-size: .8125rem; color: var(--ink-3); margin: 14px 0 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .turtle { width: 90px; margin: 0 auto 28px; color: var(--oxblood); }

/* Reveal: gated by .js so content is visible without JavaScript */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.mosaic button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mosaic button img { height: 100%; transition: transform .9s var(--ease); }
.mosaic button:hover img { transform: scale(1.04); }
.pub-thumb .turtle { width: 46%; color: var(--mustard); }
.hero-stats strong { white-space: nowrap; }
@media (max-width: 900px) { .hero-stats li { flex-direction: column; gap: 6px; } }
