
/* Layout: a shared editorial grid. Dark brand bands (hero, closing) bracket light reading sections;
   archival photographs sit as framed prints; type is Baskerville throughout with a quiet sans for controls. */
:root {
  --ink: #101622; --ink-2: #1b2436; --paper: #ffffff; --band: #f5f3ee; --band-2: #ebe7de;
  --accent: #8fa1b6; --muted: #4c5668; --line: rgba(16,22,34,.14); --on-ink-muted: #a9b4c4;
  --sister-ink: #3e2820; --sister-paper: #f7f0e5; --sister-muted: #d6c6b4;
  --serif: "Baskervville", "Libre Baskerville", Baskerville, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --step--1: .75rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.35rem + 2.2vw, 2.85rem); --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);
  --gutter: clamp(20px, 5vw, 64px); --section: clamp(72px, 9vw, 136px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: var(--step-0); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.eyebrow { font-family: var(--serif); font-size: .8125rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dots { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--muted); margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.55; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; } .skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .75em; font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn:hover { background: var(--ink-2); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.link { font-weight: 500; text-decoration: none; display: inline-flex; gap: .6em; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; width: fit-content; }
.link::after, .btn::after { content: ""; width: 18px; height: 9px; background: currentColor; -webkit-mask: var(--arrow) center/contain no-repeat; mask: var(--arrow) center/contain no-repeat; transition: transform .2s; }
.link:hover::after, .btn:hover::after { transform: translateX(4px); }
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 4h16.2L12.8.7l.7-.7L18 4.5 13.5 9l-.7-.7 3.4-3.3H0z'/%3E%3C/svg%3E"); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); 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: 24px; min-height: 84px; }
.brand { display: block; color: var(--ink); line-height: 0; }
.logo-h { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-size: .9375rem; text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.nav .btn { padding: 11px 20px; border-bottom: 1px solid var(--ink); }
.nav .btn::after { display: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: 500 .875rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav.open a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav.open .btn { margin-top: 16px; justify-content: center; border-bottom: 1px solid var(--ink); }
  .logo-h { height: 42px; }
}

/* Dark brand band */
.ink { background: var(--ink); color: var(--paper); }
.ink .eyebrow { color: var(--on-ink-muted); }
.ink .muted { color: var(--on-ink-muted); }
.ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ink .btn:hover { background: transparent; color: var(--paper); }

/* Home hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.hero h1 { max-width: 20ch; font-size: clamp(2.4rem, 1.7rem + 3vw, 3.75rem); }
.hero .lede { color: var(--on-ink-muted); max-width: 46ch; }
.hero-mark { width: 100%; max-width: 360px; height: auto; justify-self: center; color: var(--paper); opacity: .92; }
.hero-foot { border-top: 1px solid rgba(255,255,255,.14); }
.hero-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; font-size: var(--step--1); letter-spacing: .22em; text-transform: uppercase; color: var(--on-ink-muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; max-width: 240px; }
}

/* Two-column statement */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Pillars */
.band { background: var(--band); }
.pillars-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.pillar { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.pillar h3 { font-size: var(--step-2); }
.pillar p { color: var(--muted); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Audience list */
.audiences { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audiences li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: var(--step-1); }
.audiences li span { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted); }

/* Heritage */
.heritage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.heritage > * { min-width: 0; }
.photo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photo img { width: 100%; height: auto; object-fit: cover; }
.photo figcaption { font-size: .875rem; font-style: italic; color: var(--muted); }
.ink .photo figcaption { color: var(--on-ink-muted); }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 3 / 2; }
.heritage blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: var(--step-2); line-height: 1.3; }
@media (max-width: 860px) { .heritage { grid-template-columns: 1fr; } }

/* Landscape band */
.landscape { margin: 0; position: relative; background: var(--ink); }
.landscape img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.landscape figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding-block: 64px 22px; background: linear-gradient(to top, rgba(0,0,0,.5), transparent); color: #fff; font-size: .9375rem; font-style: italic; }
.landscape figcaption .wrap { display: block; }
@media (max-width: 760px) { .landscape img { aspect-ratio: 4 / 3; } }
.heritage--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.heritage--flip .audiences { margin-block: .5rem; }
@media (max-width: 860px) { .heritage--flip { grid-template-columns: 1fr; } }

/* Archival print: a framed photograph on the band colour */
.print { margin: 0 auto; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.print img { width: 100%; height: auto; border: 1px solid var(--line); padding: clamp(8px, 1.2vw, 16px); background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(0,0,0,.35); }
.print figcaption { font-style: italic; font-size: .9375rem; color: var(--muted); text-align: center; max-width: 60ch; }
.print--wide { max-width: 1040px; }
.print--tall { max-width: 520px; }

/* Scroll reveal (progressive: only applied by script, only below the fold) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
.rv.in { opacity: 1; transform: none; }
.hero h1 .w { display: inline-block; animation: wordIn .9s cubic-bezier(.2,.6,.2,1) backwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* Closing invitation */
.closing { position: relative; overflow: hidden; text-align: left; }
.closing::before { content: ""; position: absolute; right: -4%; bottom: -12%; width: min(620px, 70%); aspect-ratio: 1528 / 1194; background: var(--paper); opacity: .06;
  -webkit-mask: url(assets/horse-simple.png) center / contain no-repeat; mask: url(assets/horse-simple.png) center / contain no-repeat; }
.closing .wrap { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 32px 64px; flex-wrap: wrap; padding-block: clamp(80px, 10vw, 152px); }
.closing h2 { max-width: 19ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }

/* Interior page header */
.page-head { background: var(--band); position: relative; overflow: hidden; }
.page-head { border-bottom: 1px solid var(--line); }
.page-head::after { content: ""; position: absolute; right: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); bottom: clamp(48px, 7vw, 104px); width: clamp(120px, 16vw, 210px); aspect-ratio: 1528 / 1194; background: var(--ink); opacity: .12;
  -webkit-mask: url(assets/horse-simple.png) center / contain no-repeat; mask: url(assets/horse-simple.png) center / contain no-repeat; }
.page-head .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 120px); display: flex; flex-direction: column; gap: 1.5rem; }
.page-head h1 { max-width: 16ch; }
.page-head .lede { max-width: 54ch; }
@media (max-width: 860px) { .page-head::after { display: none; } }

/* Anchor sub-navigation */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px 32px; overflow-x: auto; scrollbar-width: none; padding-block: 16px; }
.subnav a { white-space: nowrap; font-size: .9375rem; text-decoration: none; color: var(--muted); }
.subnav a:hover { color: var(--ink); }
@media (max-width: 960px) { .subnav { top: calc(env(safe-area-inset-top, 0px) + 84px); } }

/* Topic rows */
.topics { display: flex; flex-direction: column; }
.topic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 160px; }
.topic:first-child { border-top: 0; }
.topic > * { min-width: 0; }
.topic .stack { gap: 1rem; }
.topic .stack p { color: var(--muted); }
.topic .stack p:first-child { color: var(--ink); }
@media (max-width: 860px) { .topic { grid-template-columns: 1fr; } }

/* Process steps (a true sequence) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid currentColor; padding-top: 22px; }
.steps li::before { counter-increment: step; content: counter(step, upper-roman) "."; font-family: var(--serif); font-size: var(--step-1); color: var(--on-ink-muted); }
.steps h3 { font-size: var(--step-2); }
.steps p { color: var(--on-ink-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Cards for audiences */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 > article { background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.grid-2 > article img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-txt { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.grid-2 p { color: var(--muted); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.person { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.portrait { aspect-ratio: 4 / 5; background: var(--band-2); position: relative; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; }

.portrait span { position: relative; font-family: var(--serif); font-size: 3rem; letter-spacing: .08em; color: var(--muted); }
.person h3 { font-size: var(--step-1); font-family: var(--serif); }
.person .role { font-style: italic; color: var(--muted); }
.person p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* Story band on Firm page */
.story { position: relative; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-grid > * { min-width: 0; }
.story-art { aspect-ratio: 1528 / 1194; width: 100%; max-width: 260px; justify-self: center; background: var(--paper); opacity: .55;
  -webkit-mask: url(assets/horse-simple.png) center / contain no-repeat; mask: url(assets/horse-simple.png) center / contain no-repeat; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 88px); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-cap { grid-column: 1 / -1; font-size: .875rem; font-style: italic; color: var(--on-ink-muted); margin-top: 4px; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-art { max-width: 420px; } .gallery { grid-template-columns: 1fr 1fr; } .gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact > * { min-width: 0; }
.details { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 1rem; }
.details div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.details dt { font-style: italic; color: var(--muted); }
.details dd { margin: 0; }
form { background: var(--band); padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label small { font-weight: 400; letter-spacing: .04em; text-transform: none; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .875rem; color: var(--muted); }
.form-error { font-size: .875rem; color: #9b2c1f; }
.confirm { background: var(--band); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--ink); }
.confirm h3 { font-size: var(--step-2); }
.alt-path { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); font-size: .9375rem; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .wrap { padding-block: clamp(56px, 7vw, 96px) 40px; display: flex; flex-direction: column; gap: 48px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-top > * { min-width: 0; }
.foot-top .logo-stacked { width: 180px; height: auto; color: var(--paper); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { margin: 0 0 6px; font-size: .75rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--on-ink-muted); }
.foot-col a { text-decoration: none; width: fit-content; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-tag { font-style: italic; font-size: var(--step-1); color: var(--on-ink-muted); margin-top: 18px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; display: flex; flex-direction: column; gap: 12px; font-size: .8125rem; color: var(--on-ink-muted); }
.foot-legal p { max-width: 110ch; }
.foot-legal .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-legal .row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-legal a { text-decoration: none; } .foot-legal a:hover { text-decoration: underline; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* Placeholder text awaiting approval */
.ph { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 .25em; }
p.ph { width: fit-content; max-width: 100%; }
.ink .ph, .site-footer .ph { background: rgba(255,255,255,.08); }
