:root {
  --paper: #F1F1EE;
  --ink: #1C1F22;
  --soft: #5D646B;
  --line: #D6D8D6;
  --slate: #34495E;
  --night: #1A1D20;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17191B; --ink: #E9EAE7; --soft: #A2A8AE; --line: #2E3236; --slate: #2C3E50; color-scheme: dark;
  }
}
:root[data-theme="dark"] { --paper: #17191B; --ink: #E9EAE7; --soft: #A2A8AE; --line: #2E3236; --slate: #2C3E50; color-scheme: dark; }

*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }

/* Nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(env(safe-area-inset-top, 0px) + 1.4rem) 0 0; color: #fff; }
.nav.on-paper { position: static; color: var(--ink); padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem 2rem; flex-wrap: wrap; }
.nav .home { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: 0.01em; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; margin: 0; padding: 0; font-size: 0.95rem; }
.nav ul a { text-decoration: none; opacity: 0.85; }
.nav ul a:hover, .nav ul a[aria-current="page"] { opacity: 1; text-decoration: underline; }

/* Full-bleed photo heads */
.cover { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.cover.short { min-height: 62vh; min-height: 62svh; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,14,.7) 0%, rgba(10,12,14,.1) 55%), linear-gradient(to right, rgba(10,12,14,.9) 0%, rgba(10,12,14,.7) 40%, rgba(10,12,14,0) 68%); }
.cover .wrap { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.cover h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -0.015em; margin: 0; max-width: 15ch; }
.cover.short h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.cover p { max-width: 34rem; margin: 1.4rem 0 0; font-size: 1.1rem; line-height: 1.5; }
.cover .go { display: inline-block; margin-top: 1.4rem; font-size: 0.98rem; }

/* Body sections */
main section { padding: clamp(4rem, 9vw, 7rem) 0 0; }
.lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.35; max-width: 30ch; margin: 0; }
.lead + p, .split p { color: var(--soft); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 1.75rem; letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
p { margin: 0 0 1rem; max-width: 40rem; }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem 5rem; align-items: start; }

/* Photo layouts */
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--soft); margin-top: 0.7rem; max-width: 36rem; }
.pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: end; }
.pair figure:last-child { margin-bottom: 4rem; }
.pair.flip { grid-template-columns: 1fr 1.6fr; align-items: start; }
.pair.flip figure:last-child { margin: 5rem 0 0; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Simple definition rows */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 9rem 1fr; gap: 0.25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rows .d { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 0.95rem; padding-top: 0.1rem; }
.rows .t { font-weight: 600; }
.rows .n { display: block; color: var(--soft); }

.help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.help h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: 0 0 0.6rem; }
.help p { color: var(--soft); margin: 0; }

.orgs { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.4; max-width: 46rem; }

.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pubs li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 4rem 1fr; gap: 0 1.5rem; }
.pubs .y { color: var(--soft); font-variant-numeric: tabular-nums; }
.pubs .t { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; display: block; }
.pubs .m { color: var(--soft); font-size: 0.93rem; display: block; margin-top: 0.3rem; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; }
details > div { padding: 0 0 1.25rem; }
details ul { margin: 0; padding-left: 1.1rem; }
details li { margin-bottom: 0.35rem; }
.yr { font-weight: 600; margin: 1rem 0 0.25rem; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.cols ul { margin: 0; padding-left: 1.1rem; }
.cols li { margin-bottom: 0.35rem; }

/* Contact band */
.band { background: var(--slate); color: #fff; margin-top: clamp(5rem, 10vw, 8rem); padding: clamp(4rem, 9vw, 7rem) 0; }
.band .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem 4rem; align-items: end; }
.band h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 15ch; margin: 0; }
.band ul { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }
.band li { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.band li:first-child { border-top: 1px solid rgba(255,255,255,.3); }

footer { padding: 2rem 0 calc(env(safe-area-inset-bottom, 0px) + 2.5rem); font-size: 0.9rem; color: var(--soft); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; }

/* Contact page */
.contact-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem 5rem; align-items: start; padding-top: clamp(3rem, 7vw, 5rem); }
.contact-page img { width: 100%; max-width: 26rem; }
.contact-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 0 0 1.5rem; }
.contact-page .big { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 2rem; }

@media (max-width: 820px) {
  .split, .pair, .pair.flip, .help, .cols, .band .grid, .contact-page { grid-template-columns: 1fr; }
  .pair figure:last-child, .pair.flip figure:last-child { margin: 0; }
  .rows li, .pubs li { grid-template-columns: 1fr; }
  .wide img { aspect-ratio: 4 / 3; }
}

/* Services */
.svc-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; border-top: 1px solid var(--line); }
.svc-index li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.svc-index a { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; text-decoration: none; display: block; }
.svc-index a:hover { text-decoration: underline; }
.svc-index span { color: var(--soft); display: block; margin-top: 0.2rem; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem 4rem; padding: 2.75rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.svc h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.svc .who { color: var(--soft); }
@media (max-width: 820px) { .svc-index, .svc { grid-template-columns: 1fr; } }
.steps { margin: 0; padding: 0 0 0 1.4rem; max-width: 44rem; }
.steps li { padding: 0.6rem 0 0.6rem 0.4rem; }
.steps li::marker { font-family: var(--serif); font-size: 1.2rem; }
.steps b { font-weight: 600; }

/* ---------- v6 additions ---------- */
.pagehead { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.pagehead h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0; max-width: 14ch; }
.pagehead .lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--soft); max-width: 34ch; margin: 1.5rem 0 0; }

/* Service index on home and services page */
.group-label { font-size: 0.95rem; color: var(--soft); margin: 3rem 0 0.5rem; }
.group-label:first-of-type { margin-top: 0; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.25rem 3rem; align-items: baseline; padding: 1.15rem 0; text-decoration: none; }
.index .name { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.01em; transition: transform .25s ease; }
.index .say { color: var(--soft); max-width: 34rem; }
.index a:hover .name, .index a:focus-visible .name { transform: translateX(0.6rem); }
@media (prefers-reduced-motion: reduce) { .index .name { transition: none; } }

/* Where the work happened */
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.ledger h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0 0 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--ink); }
.ledger ul { list-style: none; margin: 0; padding: 0; color: var(--soft); }
.ledger li { padding: 0.15rem 0; }

/* Service pages: rail + content */
.svc-page { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem 5rem; align-items: start; }
.rail { position: sticky; top: 2rem; font-size: 0.95rem; }
.rail p { color: var(--soft); margin: 0 0 0.6rem; }
.rail ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.rail li { padding: 0.2rem 0; }
.rail a { text-decoration: none; color: var(--soft); }
.rail a:hover { color: var(--ink); text-decoration: underline; }
.rail a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.svc-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 3rem 0 1rem; }
.svc-body h2:first-child { margin-top: 0; }
.svc-body .rows { margin-top: 0.5rem; }
.start { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: baseline; }
.start b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }

.media { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.media li { display: grid; grid-template-columns: 9rem 1fr; gap: 0.25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.media .d { color: var(--soft); font-size: 0.95rem; }
.media .t { font-family: var(--serif); font-size: 1.2rem; display: block; }
.media .n { color: var(--soft); display: block; }

.bigmail { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.6rem); line-height: 1.1; word-break: break-word; }

@media (max-width: 820px) {
  .index a, .ledger, .svc-page, .media li { grid-template-columns: 1fr; }
  .rail { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

/* v7: credentials in name, right-aligned hero, deeper slate */
.nav .home .creds { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.02em; opacity: 0.75; margin-left: 0.15rem; }
.cover.right .wrap { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cover.right h1 { max-width: 11ch; font-size: clamp(2.4rem, 4.3vw, 4.2rem); }
.cover.right p { max-width: 23rem; font-size: 1.02rem; }
.cover.right::after { background: linear-gradient(to bottom, rgba(10,12,14,.8) 0%, rgba(10,12,14,0) 20%), linear-gradient(to top, rgba(10,12,14,.55) 0%, rgba(10,12,14,0) 45%), linear-gradient(to left, rgba(10,12,14,.85) 0%, rgba(10,12,14,.55) 30%, rgba(10,12,14,0) 55%); }
@media (max-width: 820px) {
  .cover.right .wrap { align-items: flex-start; text-align: left; }
  .cover.right::after { background: linear-gradient(to top, rgba(10,12,14,.85) 0%, rgba(10,12,14,.35) 55%, rgba(10,12,14,.1) 100%); }
  .nav .home .creds { display: block; margin: 0.15rem 0 0; }
}
@media (max-width: 820px) {
  .cover.right { display: block; min-height: 0; }
  .cover.right > img { position: relative; height: 60vh; height: 60svh; }
  .cover.right::after { inset: 0 0 auto; height: 60vh; height: 60svh; background: linear-gradient(to bottom, rgba(10,12,14,.8) 0%, rgba(10,12,14,0) 28%), linear-gradient(to top, rgba(10,12,14,1) 0%, rgba(10,12,14,0) 30%); }
  .cover.right .wrap { padding-top: 0.5rem; }
}

.nav .home .comma { font-family: var(--sans); font-size: 0.82rem; opacity: 0.75; }
@media (max-width: 820px) {
  .nav .home .comma { display: none; }
  .nav .home .creds { margin-left: 0; }
  .cover.right { background: #0A0C0E; }
  .cover.right::after { background: linear-gradient(to bottom, rgba(10,12,14,.9) 0%, rgba(10,12,14,.35) 32%, rgba(10,12,14,0) 45%), linear-gradient(to top, rgba(10,12,14,1) 0%, rgba(10,12,14,0) 30%); }
}
.nav .home { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.nav .home .mk { width: 1.5rem; height: 1.5rem; flex: none; }


.nav .home { flex-wrap: nowrap; }
.nav .home .nm { display: inline; }

/* ---------- Motion (v8) ---------- */
.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.motion .rv.in { opacity: 1; transform: none; }
.roll { display: inline-grid; overflow: hidden; vertical-align: bottom; line-height: 1.25; }
.roll > span { grid-area: 1 / 1; transition: transform .38s cubic-bezier(.6,0,.2,1); }
.roll > span + span { transform: translateY(105%); }
.nav ul a:hover .roll > span:first-child, .nav ul a:focus-visible .roll > span:first-child { transform: translateY(-105%); }
.nav ul a:hover .roll > span + span, .nav ul a:focus-visible .roll > span + span { transform: none; }
.nav ul a:hover { text-decoration: none; }
.reveal { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; z-index: 20; opacity: 0; clip-path: inset(50% 0 50% 0); transition: opacity .25s ease, clip-path .45s cubic-bezier(.6,0,.2,1); will-change: transform; }
.reveal.show { opacity: 1; clip-path: inset(0 0 0 0); }
.reveal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .hud { max-width: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 0 0 clamp(1.4rem, 3vw, 2rem); width: min(100% - 3rem, 76rem); margin-inline: auto; display: flex; gap: 1rem; font-size: 0.8rem; letter-spacing: 0.08em; color: rgba(241,241,238,.7); font-variant-numeric: tabular-nums; pointer-events: none; }
.cover.right .wrap { padding-bottom: clamp(4rem, 9vw, 6rem); }
@media (max-width: 820px) { .cover .hud { display: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { display: none; } }

.nav .wrap { align-items: center; }

/* Video reel */
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.reel video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--night); }
@media (max-width: 820px) {
  .reel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .reel figure { scroll-snap-align: start; }
}
