@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Franklin:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap");

:root {
  --paper: #f4f2ed;
  --paper-deep: #e8e5de;
  --ink: #17241f;
  --ink-soft: #53605a;
  --line: #c9cbc4;
  --blue: #315f70;
  --blue-light: #d9e5e8;
  --white: #fffefb;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Libre Franklin", Arial, sans-serif;
  --utility: "DM Sans", Arial, sans-serif;
  --container: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.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-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); background: var(--ink); color: white; padding: 10px 15px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.nav-shell { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.wordmark-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--utility); font-size: 10px; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 32px; font-family: var(--utility); font-size: 13px; }
.site-nav a { position: relative; padding: 29px 0; color: var(--ink-soft); }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 24px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 10px 0 10px 10px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 23px; height: 1px; margin: 6px 0; background: currentColor; transition: transform .2s ease; }

.hero { padding: clamp(76px, 10vw, 132px) 0 54px; }
.hero-kicker, .page-kicker, .section-label { margin: 0 0 28px; color: var(--blue); font-family: var(--utility); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(48px, 8vw, 130px); align-items: end; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .page-hero h1, .contact-hero h1 { margin-bottom: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 10.5vw, 152px); line-height: .83; letter-spacing: -.065em; }
.hero-intro { padding-bottom: 8px; }
.eyebrow { margin-bottom: 18px; font-family: var(--utility); font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.lede { margin-bottom: 34px; font-family: var(--serif); font-size: clamp(25px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
.button-row { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); font-family: var(--utility); font-size: 12px; font-weight: 500; cursor: pointer; }
.button-primary { background: var(--ink); color: white; transition: background .2s ease, border-color .2s ease; }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-outline { background: transparent; }
.button-outline:hover { background: var(--ink); color: white; }
.text-link { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-family: var(--utility); font-size: 12px; font-weight: 500; }
.text-link span, .work-card > a span, .media-row > a span { transition: transform .2s ease; }
.text-link:hover span, .work-card > a:hover span, .media-row > a:hover span { transform: translate(3px, -2px); }
.hero-rule { margin-top: 76px; height: 1px; background: var(--line); }
.hero-rule span { display: block; width: 24%; height: 2px; background: var(--blue); transform: translateY(-1px); }

.section { padding: clamp(88px, 11vw, 148px) 0; }
.section-grid { display: grid; grid-template-columns: 1fr 2.05fr; gap: 54px; }
.section h2, .contact-band h2 { max-width: 800px; margin-bottom: 35px; font-family: var(--serif); font-size: clamp(42px, 5.2vw, 70px); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.content-narrow { max-width: 790px; }
.body-large { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); line-height: 1.45; }
.muted { max-width: 690px; margin: 28px 0 32px; color: var(--ink-soft); }
.section-tinted { background: var(--paper-deep); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.section-heading-row h2 { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.work-card { min-height: 410px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 30px 28px 0; border-right: 1px solid var(--line); }
.work-card + .work-card { padding-left: 30px; }
.work-card:last-child { border-right: 0; padding-right: 0; }
.card-number { font-family: var(--utility); font-size: 11px; }
.work-card h3 { margin-bottom: 16px; font-family: var(--serif); font-size: 33px; font-weight: 400; line-height: 1.08; letter-spacing: -.03em; }
.work-card p:not(.eyebrow) { color: var(--ink-soft); font-size: 14px; }
.work-card > a, .media-row > a { font-family: var(--utility); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.mobile-link { display: none; }
.now-list { border-top: 1px solid var(--ink); }
.now-item { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.now-item span { color: var(--blue); font-family: var(--utility); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.now-item p { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.4; }
.updated { margin: 25px 0 0; color: var(--ink-soft); font-size: 11px; }

.contact-band { padding: 92px 0; background: var(--ink); color: var(--paper); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-band .section-label { color: #91b3bc; }
.contact-band h2 { margin: 0; }
.circle-link { flex: 0 0 auto; display: grid; place-items: center; width: 116px; height: 116px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 28px; transition: background .2s ease, color .2s ease; }
.circle-link:hover { background: var(--paper); color: var(--ink); }
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); font-family: var(--utility); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-grid p { margin: 0; }
.footer-links { display: flex; gap: 25px; }
.footer-links a:hover { text-decoration: underline; }
.footer-domain { text-align: right; }

.page-hero { padding: clamp(78px, 10vw, 130px) 0 clamp(70px, 9vw, 116px); border-bottom: 1px solid var(--ink); }
.page-title-row { display: flex; align-items: end; justify-content: space-between; gap: 70px; }
.page-hero h1 { font-size: clamp(64px, 8.5vw, 122px); }
.page-intro { max-width: 400px; margin: 0 0 8px; color: var(--ink-soft); font-family: var(--serif); font-size: 23px; line-height: 1.4; }

.cv-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(60px, 10vw, 150px); padding-top: 80px; padding-bottom: 130px; }
.cv-aside { font-size: 13px; }
.cv-aside > div { margin-bottom: 36px; }
.cv-aside .eyebrow { margin-bottom: 8px; color: var(--blue); }
.cv-aside p { margin-bottom: 0; }
.cv-aside a { display: block; margin-bottom: 4px; }
.cv-aside a:hover { text-decoration: underline; }
.cv-section { padding: 0 0 70px; margin-bottom: 70px; border-bottom: 1px solid var(--line); }
.cv-section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.cv-section > h2 { margin-bottom: 42px; color: var(--blue); font-family: var(--utility); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cv-entry { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.cv-entry h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
.cv-entry p { max-width: 620px; margin-bottom: 0; color: var(--ink-soft); }
.cv-entry .cv-org { margin-bottom: 15px; color: var(--ink); font-size: 13px; }
.cv-date { padding-top: 7px; font-family: var(--utility); font-size: 11px; }
.cv-entry.compact { padding-bottom: 22px; }
.publication-list { margin: 0; padding: 0; list-style: none; counter-reset: publications; border-top: 1px solid var(--line); }
.publication-list li { counter-increment: publications; position: relative; padding: 24px 0 24px 54px; border-bottom: 1px solid var(--line); }
.publication-list li::before { content: counter(publications, decimal-leading-zero); position: absolute; left: 0; top: 26px; color: var(--blue); font-family: var(--utility); font-size: 10px; }
.publication-list span { font-family: var(--serif); font-size: 21px; }
.simple-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.simple-list li { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.simple-list span { font-family: var(--utility); font-size: 11px; }

.project-list { padding-bottom: 130px; }
.project-row { display: grid; grid-template-columns: 190px 1fr 60px; gap: clamp(35px, 6vw, 90px); align-items: start; padding: 64px 0; border-bottom: 1px solid var(--line); }
.project-meta { display: flex; flex-direction: column; gap: 25px; color: var(--ink-soft); font-family: var(--utility); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.project-row h2 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(35px, 4vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.project-row p { max-width: 680px; color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-list span { padding: 4px 11px; border: 1px solid var(--line); border-radius: 30px; font-size: 10px; }
.project-arrow { display: grid; place-items: center; width: 52px; height: 52px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; transition: background .2s ease, color .2s ease; }
.project-arrow:hover { background: var(--ink); color: white; }

.media-section { padding-bottom: 140px; }
.filter-row { display: flex; gap: 10px; padding: 36px 0; border-bottom: 1px solid var(--ink); }
.filter-button { padding: 7px 15px; border: 1px solid var(--line); border-radius: 30px; background: transparent; font-family: var(--utility); font-size: 11px; cursor: pointer; }
.filter-button.active, .filter-button:hover { background: var(--ink); border-color: var(--ink); color: white; }
.media-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 50px; align-items: center; padding: 38px 0; border-bottom: 1px solid var(--line); transition: opacity .2s ease; }
.media-row[hidden] { display: none; }
.media-row > div:first-child { display: flex; flex-direction: column; }
.media-type { color: var(--blue); font-family: var(--utility); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.media-date { color: var(--ink-soft); font-size: 11px; }
.media-row h2 { margin-bottom: 4px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.2; }
.media-row p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.contact-page { background: var(--ink); color: var(--paper); }
.site-header-dark { border-color: rgba(255,255,255,.2); }
.site-header-dark .site-nav a { color: rgba(255,255,255,.65); }
.site-header-dark .site-nav a[aria-current="page"] { color: var(--paper); }
.contact-main { min-height: calc(100vh - 144px); }
.contact-hero { padding: clamp(76px, 10vw, 126px) 0 100px; }
.contact-hero .page-kicker { color: #91b3bc; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 9vw, 140px); align-items: end; }
.contact-hero h1 { font-size: clamp(68px, 9vw, 128px); }
.contact-copy > p:first-child { font-family: var(--serif); font-size: 26px; line-height: 1.35; }
.contact-email { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); font-size: clamp(15px, 1.6vw, 21px); }
.contact-email:hover { color: #a8c9d1; }
.contact-note { margin-top: 15px; color: rgba(255,255,255,.55); font-size: 10px; }
.inquiry-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.3); }
.inquiry-card { min-height: 290px; padding: 25px 34px 45px 0; border-right: 1px solid rgba(255,255,255,.2); }
.inquiry-card + .inquiry-card { padding-left: 34px; }
.inquiry-card:last-child { border-right: 0; }
.inquiry-card > span { color: #91b3bc; font-family: var(--utility); font-size: 10px; }
.inquiry-card h2 { margin: 72px 0 14px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.inquiry-card p { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; }
.social-row { display: flex; justify-content: space-between; padding-top: 48px; padding-bottom: 80px; border-top: 1px solid rgba(255,255,255,.25); font-family: var(--utility); font-size: 11px; text-transform: uppercase; }
.social-row div { display: flex; gap: 28px; }
.social-row a:hover { color: #a8c9d1; }
.site-footer-dark { border-color: rgba(255,255,255,.2); }

.reveal { animation: reveal .65s ease both; }
.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 820px) {
  :root { --container: min(100% - 32px, 680px); }
  .nav-shell { min-height: 70px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-header-dark .site-nav { background: var(--ink); border-color: rgba(255,255,255,.2); }
  .site-header-dark .site-nav a { border-color: rgba(255,255,255,.2); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding-top: 68px; }
  .hero-grid, .section-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .hero h1 { font-size: clamp(66px, 19vw, 104px); }
  .hero-rule { margin-top: 58px; }
  .section-grid { gap: 35px; }
  .section-label { margin-bottom: 8px; }
  .card-grid { grid-template-columns: 1fr; }
  .work-card, .work-card + .work-card, .work-card:last-child { min-height: 320px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-card:last-child { border-bottom: 0; }
  .desktop-link { display: none; }
  .mobile-link { display: inline-flex; margin-top: 36px; }
  .contact-band-inner { align-items: end; }
  .circle-link { width: 80px; height: 80px; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-domain { display: none; }
  .page-title-row { display: grid; gap: 45px; }
  .page-intro { max-width: 560px; }
  .cv-layout { grid-template-columns: 1fr; gap: 55px; }
  .cv-aside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-bottom: 1px solid var(--line); }
  .project-row { grid-template-columns: 120px 1fr 45px; gap: 25px; }
  .media-row { grid-template-columns: 125px 1fr; gap: 28px; }
  .media-row > a { grid-column: 2; }
  .contact-grid { gap: 55px; }
}

@media (max-width: 560px) {
  .wordmark > span:last-child { display: none; }
  .hero h1 { font-size: clamp(59px, 21vw, 84px); }
  .button-row { align-items: flex-start; flex-direction: column; gap: 22px; }
  .now-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-band h2 { font-size: 38px; }
  .contact-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { gap: 18px; }
  .page-hero h1, .contact-hero h1 { font-size: clamp(54px, 18vw, 82px); }
  .cv-aside { grid-template-columns: 1fr; }
  .cv-entry, .simple-list li { grid-template-columns: 1fr; gap: 7px; }
  .project-row { grid-template-columns: 1fr 45px; }
  .project-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .media-row { grid-template-columns: 1fr; gap: 14px; }
  .media-row > a { grid-column: 1; margin-top: 8px; }
  .media-row > div:first-child { flex-direction: row; justify-content: space-between; }
  .filter-row { overflow-x: auto; }
  .filter-button { white-space: nowrap; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .inquiry-card, .inquiry-card + .inquiry-card { min-height: 230px; padding: 26px 0 35px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .inquiry-card h2 { margin-top: 45px; }
  .social-row { flex-direction: column; gap: 30px; }
  .social-row div { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media print {
  @page { margin: 18mm; }
  body { background: white; color: black; font-size: 10pt; }
  .site-header, .site-footer, .print-button { display: none !important; }
  .page-hero { padding: 0 0 10mm; }
  .page-hero h1 { font-size: 42pt; }
  .cv-layout { display: block; padding: 10mm 0 0; }
  .cv-aside { display: flex; gap: 10mm; margin-bottom: 10mm; }
  .cv-aside > div { margin: 0; }
  .cv-section { break-inside: avoid; padding-bottom: 8mm; margin-bottom: 8mm; }
  .cv-entry { break-inside: avoid; }
  a { text-decoration: none; }
}
