:root {
  color-scheme: light;
  --ink: #252525;
  --muted: #505050;
  --soft: #737373;
  --line: #e5e5e5;
  --surface: #f7f7f7;
  --white: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; padding-top: 5rem; background: var(--white); color: var(--ink); font-size: 1rem; line-height: 1.7; }
button, summary { font: inherit; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #707070; outline-offset: 3px; }

.page-width { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 30; padding: .5rem 1rem; background: var(--ink); color: var(--white); }
.skip-link:focus { top: .75rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { width: min(100% - 2.5rem, 1280px); min-height: 5rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 4.7rem; height: auto; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: .5rem; padding: .45rem 1rem; line-height: 1.5; font-size: .9rem; background: var(--white); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: #bcbcbc; background: #fafafa; }
.menu nav { position: absolute; right: 0; top: calc(100% + .65rem); width: min(21rem, calc(100vw - 2.5rem)); max-height: min(70vh, 34rem); overflow: auto; display: grid; padding: .55rem; background: var(--white); border: 1px solid var(--line); border-radius: .75rem; box-shadow: 0 14px 38px rgb(0 0 0 / 10%); }
.menu nav a { padding: .55rem .7rem; border-radius: .35rem; font-size: .9rem; line-height: 1.35; text-decoration: none; }
.menu nav a:hover, .menu nav a:focus-visible { background: var(--surface); }
.menu nav a:nth-child(3), .menu nav a:nth-last-child(2) { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .9rem; }

.hero { padding-block: clamp(3rem, 7vw, 7rem) clamp(4rem, 8vw, 7rem); }
.hero-copy { max-width: 850px; }
.eyebrow { margin: 0 0 .9rem; font-size: .76rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--soft); line-height: 1.5; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.045em; line-height: 1.12; font-weight: 600; }
h1 { max-width: 850px; margin-bottom: 1.8rem; font-size: clamp(2.3rem, 5vw, 4.55rem); }
.hero p:not(.eyebrow) { max-width: 780px; margin-bottom: 1.2rem; font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.72; color: var(--muted); }
.hero p.hero-lead { max-width: 790px; color: var(--ink); font-size: clamp(1.3rem, 2vw, 1.62rem); line-height: 1.52; }

.projects { padding-bottom: clamp(5rem, 9vw, 9rem); }
.section-heading { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.project-list { display: grid; gap: 1.5rem; padding-top: 1.6rem; }
.project-card { border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.4rem, 3.5vw, 2.7rem); box-shadow: 0 5px 20px rgb(0 0 0 / 2.5%); scroll-margin-top: 6.5rem; }
.project-card:nth-child(even) { background: var(--surface); }
.project-card.featured { border-color: #d7d7d7; background: var(--surface); }
.project-heading { display: grid; grid-template-columns: minmax(6rem, 12rem) 1fr; gap: 1rem; align-items: start; margin-bottom: 1.7rem; }
.project-year { display: inline-block; padding-top: .4rem; color: var(--soft); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.project-heading h3 { max-width: 770px; margin-bottom: 0; font-size: clamp(1.65rem, 3.1vw, 2.6rem); }
.project-copy, .video-block { width: min(760px, calc(100% - 13rem)); margin-left: 13rem; }
.project-copy { color: var(--muted); }
.project-copy > :last-child { margin-bottom: 0; }
.project-copy p, .project-copy li { font-size: 1rem; line-height: 1.75; }
.project-copy p { margin-bottom: 1.15rem; }
.project-copy h4 { margin: 2.2rem 0 .7rem; color: var(--ink); font-size: 1.27rem; line-height: 1.3; letter-spacing: -.03em; }
.project-copy h4:first-child { margin-top: 0; }
.project-copy ul, .project-copy ol { padding-left: 1.5rem; margin: .3rem 0 1.25rem; }
.project-copy li { padding-left: .1rem; margin-bottom: .4rem; }
.project-copy li p { margin-bottom: .4rem; }
.project-copy a { text-decoration-color: #a9a9a9; text-underline-offset: .22em; }
.source-image { width: 85%; margin: 1.7rem auto; }
.source-image img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.source-image + .source-image { margin-top: -1rem; }

.video-block { margin-bottom: 2rem; }
.video-shell { width: 85%; margin-inline: auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .75rem; background: #1d1d1d; }
.video-launch { position: relative; width: 100%; height: 100%; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem; text-decoration: none; }
.video-launch::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 28%); }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-launch:hover::after { background: rgb(0 0 0 / 38%); }
.play-icon { position: relative; z-index: 1; width: 4.4rem; height: 4.4rem; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 80%); border-radius: 50%; background: rgb(0 0 0 / 45%); }
.play-icon::before { content: ""; display: block; margin-left: .24rem; border-top: .7rem solid transparent; border-bottom: .7rem solid transparent; border-left: 1.08rem solid #fff; }
.video-label { position: relative; z-index: 1; font-size: .92rem; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 3px #000; }
.video-shell iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-meta { width: 85%; margin: .45rem auto 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: right; }
.video-meta a { text-underline-offset: .18em; }

.site-footer { border-top: 1px solid var(--line); background: #fafafa; }
.footer-grid { display: grid; grid-template-columns: 1fr .8fr 1.4fr; gap: 3rem; padding-block: 3.3rem 2.5rem; }
.footer-grid h2 { margin: 0 0 .85rem; font-size: 1.2rem; }
.footer-grid p, .footer-grid address { margin-bottom: 1rem; color: var(--muted); font-size: .9rem; line-height: 1.7; font-style: normal; }
.footer-grid a { text-underline-offset: .2em; }
.legal-copy h2:not(:first-child) { margin-top: 1.7rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem 2rem; border-top: 1px solid var(--line); color: var(--soft); font-size: .82rem; }
.footer-bottom a { color: var(--muted); }

.text-page { padding-block: clamp(3rem, 7vw, 6rem) 6rem; }
.text-page .intro { max-width: 770px; margin-bottom: 3rem; }
.text-page h1 { margin-bottom: 1rem; }
.text-page h2 { margin: 2.8rem 0 .8rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.text-page p, .text-page li { max-width: 780px; color: var(--muted); }
.text-page ul { padding-left: 1.5rem; }
.text-page li { margin-bottom: .35rem; }

@media (max-width: 780px) {
  .project-heading { grid-template-columns: 1fr; gap: .2rem; margin-bottom: 1.3rem; }
  .project-year { padding-top: 0; }
  .project-copy, .video-block { width: 100%; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .legal-copy { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .page-width, .header-inner { width: min(100% - 2rem, 1080px); }
  .header-inner { min-height: 4.5rem; }
  body { padding-top: 4.5rem; }
  .brand img { width: 4.2rem; }
  .hero { padding-top: 3.2rem; }
  .hero p:not(.eyebrow) { font-size: 1rem; }
  .hero p.hero-lead { font-size: 1.2rem; }
  .project-card { padding: 1.35rem; }
  .project-heading h3 { font-size: 1.7rem; overflow-wrap: anywhere; }
  .project-copy p, .project-copy li { font-size: .98rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
  .legal-copy { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
