:root {
  --ink: #17283e;
  --muted: #52647b;
  --blue: #435b82;
  --navy: #243957;
  --wash: #eaf0f7;
  --line: #d4deea;
  --paper: #fbfcfe;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.02; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.75rem, 8vw, 7.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2.7rem, 5.5vw, 4.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.3rem; }
.wrap { width: min(1170px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3.4rem, 7vw, 6rem); }
.skip { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .7rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-wrap, .footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.4rem; }
.wordmark { font: 400 1.8rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: clamp(.65rem, 2vw, 1.6rem); align-items: center; }
nav a { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .925rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.menu { display: none; min-height: 44px; padding-inline: .9rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: .35rem; cursor: pointer; }

.hero { background: linear-gradient(114deg, #354a6e, #536d94); color: white; }
.hero-layout { display: grid; grid-template-columns: 1.3fr .85fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(2.75rem, 5vw, 4.8rem); }
.kicker { margin-bottom: .9rem; color: var(--blue); text-transform: uppercase; font-weight: 700; font-size: .875rem; letter-spacing: .12em; }
.hero .kicker { color: #e3ebf7; }
.hero h1 { line-height: .89; }
.intro { margin-top: 1.4rem; max-width: 36rem; color: #f0f4fa; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .35rem; font-weight: 700; text-decoration: none; text-align: center; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.primary { background: white; color: var(--navy); }
.primary:hover { background: #e4edfa; }
.outline { color: white; border-color: #c9d6e9; }
.outline:hover { background: #243957; }
.dark { color: white; background: var(--navy); }
.quiet { color: var(--navy); border-color: #acbbce; }
.quiet:hover { background: white; }
.portrait { max-width: 400px; margin-inline: auto; width: 100%; padding: .5rem; border: 1px solid #c2d1e5; border-radius: .25rem; }
.portrait img { aspect-ratio: 1 / 1.11; object-fit: cover; object-position: center 28%; border-radius: .12rem; }
.credentials { background: var(--wash); }
.credentials ul { list-style: none; padding: .9rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 600; color: #374d6c; }
.credentials li + li { border-left: 1px solid #b9c8dc; padding-left: clamp(1rem, 3vw, 2.5rem); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.65rem; }
.section-heading p, .lede, .interior p, .contact p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.85rem, 2.2vw, 1.55rem); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; background: white; text-decoration: none; transition: box-shadow .22s, transform .22s, border-color .22s; }
.card:hover { transform: translateY(-4px); border-color: #839ab8; box-shadow: 0 .8rem 2rem #223b5d15; }
.card-art { display: grid; place-items: center; aspect-ratio: 1.9; background: #edf1f7; overflow: hidden; }
.card-art img { width: 50%; height: 70%; object-fit: contain; mix-blend-mode: multiply; }
.card-art img.wide { width: 72%; }
.card-art.photo { background: linear-gradient(135deg, #dde7f5, #b6c9df); color: #243957; font: 2.2rem var(--serif); }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; gap: .65rem; }
.card-body p { color: var(--muted); }
.card-body .kicker { margin: 0; font-size: .76rem; }
.card-body .text-link { margin-top: auto; padding-top: .35rem; }
.text-link { color: #2e4d76; font-weight: 700; text-decoration: underline; }
.editorial { background: var(--wash); }
.editorial-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; }
.editorial-layout h2 { max-width: 14ch; }
.editorial-layout p:not(.kicker) { color: var(--muted); margin: 1.15rem 0; max-width: 47ch; }
.editorial-index { background: #f8fafd; border: 1px solid #bccbe0; padding: clamp(1.3rem, 4vw, 2.5rem); border-radius: .5rem; }
.editorial-index h3 { font: 2rem var(--serif); }
.editorial-index ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.editorial-index li { border-top: 1px solid var(--line); padding: .7rem 0; color: var(--muted); }
.contact { text-align: center; background: #e4edf8; }
[data-page="home"]:not([hidden]) ~ .contact { background: var(--paper); }
.contact p { max-width: 57ch; margin: .8rem auto 0; }
.contact .actions { justify-content: center; }
.footer { border-top: 1px solid var(--line); color: var(--muted); background: var(--wash); }
.footer span { font-size: .875rem; }

.interior h1 { font-size: clamp(3.4rem, 7vw, 6.7rem); }
.lede { font-size: 1.17rem; max-width: 65ch; margin: .9rem 0 2rem; }
.subhead { margin: 2.2rem 0 .9rem; }
.writing-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.writing-list article, .sample { padding: 1.3rem; border: 1px solid var(--line); background: white; border-radius: .5rem; }
.writing-list h2 { font-size: 2.4rem; }
.writing-list p:not(.kicker), .sample p { margin: .7rem 0; }
.about-layout { margin-top: 1.6rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 6vw, 4rem); align-items: start; }
.about-layout p + p { margin-top: 1rem; }
.about-layout img { aspect-ratio: 1.2; object-fit: cover; object-position: 67% center; border-radius: .5rem; }
.case-heading { margin-block: 1.6rem; }
.case-heading .lede { margin-bottom: 0; }
.case-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin-block: 1.5rem; }
.case-detail { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.case-detail p { margin-top: .5rem; }
.sample-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sample img { aspect-ratio: 1.8; object-fit: contain; background: var(--wash); margin-bottom: 1rem; border-radius: .25rem; }
.sample img.still { object-fit: cover; }
.sample:has(.sample-link) { padding: 0; overflow: hidden; }
.sample-link { display: block; padding: 1.25rem; height: 100%; text-decoration: none; }
.sample-link:hover { background: var(--wash); }
.sample-link p { color: var(--muted); }
.sample-link .text-link { display: inline-block; }
.page-enter { animation: enter .38s ease-out both; }
.hero-copy { animation: enter .48s ease-out both; }
.portrait { animation: enter .48s .07s ease-out both; }
@keyframes enter { from { opacity: .35; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  .credentials ul { gap: .5rem; }
  .credentials li + li { padding-left: 1rem; }
  .card-body { padding: 1rem; }
  .writing-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .menu { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; grid-template-columns: 1fr 1fr; }
  .menu[aria-expanded="true"] + nav { display: grid; }
  .hero-layout, .editorial-layout, .about-layout, .cards, .case-details, .sample-grid { grid-template-columns: 1fr; }
  .hero-layout { gap: 1.7rem; }
  .hero h1 { font-size: clamp(3.9rem, 13vw, 6rem); }
  .portrait { max-width: min(100%, 330px); margin-inline: 0; }
  .credentials ul { display: grid; gap: .35rem; }
  .credentials li + li { border: 0; padding: 0; }
  .editorial-index { order: 1; }
  .card-art { aspect-ratio: 2.3; }
  .footer .wrap { min-height: 0; padding-block: 1.15rem; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:hover, .card:hover { transform: none; }
}
