:root {
  color-scheme: light;
  --page: #f7f8fa;
  --paper: #ffffff;
  --ink: #142338;
  --muted: #4c5c6e;
  --stroke: #d9e0e8;
  --accent: #1d4ed8;
  --accent-dark: #173eaf;
  --content: 76rem;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.6; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(var(--content), calc(100% - clamp(2rem, 7vw, 7.5rem))); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip { position: absolute; z-index: 10; left: 1rem; top: 1rem; background: var(--paper); padding: .6rem 1rem; }
.site-header { border-bottom: 1px solid var(--stroke); background: var(--page); }
.header-inner, .footer-inner { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; font-weight: 730; font-size: 1.05rem; text-decoration: none; }
.monogram {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: .25rem;
  font-size: .81rem;
  letter-spacing: .04em;
}
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.site-header nav a, .site-footer a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .94rem; }
.site-header nav a:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 4.6rem);
  padding-block: clamp(2.5rem, 6vw, 5.6rem);
}
.label { font-size: .875rem; font-weight: 760; text-transform: uppercase; letter-spacing: .1em; line-height: 1.4; color: var(--accent-dark); }
.hero h1, .story h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5.05vw, 4.95rem);
  font-weight: 720;
  letter-spacing: -.07em;
  line-height: 1.02;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.29rem); line-height: 1.55; color: var(--muted); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 4.1rem); }
.hero .lead { max-width: 34ch; margin-top: 1.2rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  margin-top: 1.7rem;
  padding: .55rem 1.12rem;
  color: #fff;
  text-decoration: none;
  background: var(--accent-dark);
  border-radius: .26rem;
  font-weight: 660;
}
.button:hover { background: var(--ink); }
.hero-project {
  display: grid;
  text-decoration: none;
  align-content: end;
  min-width: 0;
  min-height: clamp(15rem, 32vw, 27rem);
  padding: clamp(.85rem, 2vw, 1.6rem);
  background:
    linear-gradient(90deg, #28436513 1px, transparent 1px),
    linear-gradient(#28436513 1px, transparent 1px),
    radial-gradient(ellipse at 62% 35%, #fff 2%, #eaf0f7 85%);
  background-size: 32px 32px, 32px 32px, cover;
  border: 1px solid #d5deea;
}
.hero-project img { width: 100%; align-self: center; mix-blend-mode: multiply; }
.hero-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding-top: .95rem; border-top: 1px solid #cbd6e5; }
.hero-caption strong { font-size: 1.02rem; }
.hero-caption span { color: var(--muted); font-size: .9rem; }
.hero-project:hover .hero-caption strong { text-decoration: underline; text-underline-offset: .25em; }
.catalog { padding-block: clamp(2.2rem, 5vw, 4.2rem); background: var(--paper); border-block: 1px solid var(--stroke); scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-bottom: 1.5rem; }
.section-head h2, .profile h2, .story-gallery h2 {
  line-height: 1.12;
  font-size: clamp(2rem, 3.65vw, 3.05rem);
  letter-spacing: -.055em;
}
.filters { display: flex; flex-wrap: wrap; gap: .48rem; }
.filters button {
  background: var(--paper);
  color: var(--muted);
  padding: .42rem .75rem;
  border: 1px solid var(--stroke);
  border-radius: .22rem;
  font-weight: 640;
  font-size: .9rem;
}
.filters button:hover { border-color: var(--accent); color: var(--accent-dark); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.featured-grid, .project-grid { display: grid; gap: 1.1rem; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.1rem; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { background: var(--paper); border: 1px solid var(--stroke); min-width: 0; transition: border-color .18s; }
.project-card:hover { border-color: #9cacbf; }
.project-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-image { background: #f0f3f7; aspect-ratio: 1.62; display: grid; place-items: center; overflow: hidden; }
.featured-card .card-image { aspect-ratio: 1.8; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.featured-card .card-image img { object-fit: cover; }
.featured-card .card-image img[src$="delta-cover.webp"] { object-fit: contain; mix-blend-mode: multiply; padding: .7rem; }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .48rem; padding: clamp(1rem, 2vw, 1.4rem); }
.card-copy h3 { font-size: clamp(1.28rem, 2vw, 1.65rem); line-height: 1.13; letter-spacing: -.035em; }
.featured-card .card-copy h3 { font-size: clamp(1.55rem, 2.5vw, 2.06rem); }
.card-copy > p:not(.label) { color: var(--muted); line-height: 1.5; }
.card-link { margin-top: auto; padding-top: .5rem; color: var(--accent-dark); font-weight: 690; }
.project-card a:hover .card-link { text-decoration: underline; text-underline-offset: .2em; }
.profile { display: grid; grid-template-columns: minmax(8rem, .32fr) minmax(0, 1fr); gap: 1.3rem; padding-block: clamp(2.8rem, 6vw, 5rem); }
.profile-name { font-size: 1.28rem; font-weight: 725; margin-bottom: .45rem; }
.profile div > p:not(.profile-name) { max-width: 65ch; color: var(--muted); }
.profile div > p + p:not(.profile-name) { margin-top: .8rem; }
.profile div > p strong { color: var(--ink); }
.site-footer { border-top: 1px solid var(--stroke); font-size: .94rem; }
.story { padding-block: 1.75rem 4rem; }
.breadcrumb { display: flex; gap: .65rem; align-items: center; color: var(--muted); font-size: .94rem; }
.breadcrumb a { color: var(--accent-dark); text-underline-offset: .23em; }
.story-head { padding-block: clamp(1.6rem, 4vw, 3rem); }
.story-head h1 { max-width: 23ch; font-size: clamp(2.35rem, 6vw, 4.7rem); }
.story-head .lead { margin-top: 1rem; }
.story-cover { min-height: 12rem; display: grid; place-items: center; border: 1px solid var(--stroke); background: #ecf2f7; }
.story-cover img { max-height: 34rem; width: 100%; object-fit: contain; }
.story-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); gap: clamp(1.6rem, 6vw, 5.3rem); padding-block: 3rem; }
.story-body h2 { font-size: 1.85rem; letter-spacing: -.035em; line-height: 1.2; margin-bottom: .65rem; }
.story-details { display: grid; gap: 1.35rem; }
.story-details h3 { font-size: 1.2rem; margin-bottom: .18rem; }
.story-body p { color: var(--muted); max-width: 70ch; }
.story-gallery { padding-top: 1.8rem; border-top: 1px solid var(--stroke); }
.story-gallery + .story-gallery { margin-top: 2.4rem; }
.story-video { display: block; width: min(100%, 58rem); height: auto; aspect-ratio: 16 / 9; margin-top: 1.4rem; border: 0; background: var(--ink); }
.video-link { margin-top: .7rem; }
.video-link a { color: var(--accent-dark); text-underline-offset: .2em; }
.prototype-gallery .figure-link { display: block; background: var(--page); }
.prototype-gallery .figure-link img { height: 100%; max-height: none; object-fit: contain; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.gallery-grid figure { border: 1px solid var(--stroke); background: var(--paper); }
.figure-link { display: grid; aspect-ratio: 1.48; align-items: center; overflow: hidden; cursor: zoom-in; }
.figure-link img { width: 100%; max-height: 28rem; object-fit: contain; }
.gallery-grid figcaption { padding: .78rem 1rem; font-weight: 630; border-top: 1px solid var(--stroke); }
.gallery-grid figcaption a { color: var(--accent-dark); font-size: .92rem; text-underline-offset: .2em; margin-left: .22em; }
.gallery-grid figcaption span { color: var(--muted); margin-left: .32em; }
.story-next { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: end; margin-top: 2.8rem; padding-top: 1.15rem; border-top: 1px solid var(--stroke); }
.story-next a { color: var(--accent-dark); text-underline-offset: .2em; }
.story-next a:last-child { display: grid; text-decoration: none; }
.story-next a:last-child span { color: var(--muted); font-size: .9rem; }
.story-next a:last-child:hover strong { text-decoration: underline; }
.lightbox { width: min(94vw, 78rem); max-height: 94dvh; padding: .85rem; border: 0; background: var(--paper); }
.lightbox::backdrop { background: #142338d9; }
.lightbox-top { display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.lightbox-top p { font-weight: 680; }
.lightbox button { color: var(--ink); background: var(--page); border: 1px solid var(--stroke); padding: .4rem .7rem; }
.lightbox img { width: 100%; object-fit: contain; max-height: calc(88dvh - 3rem); }
@media (max-width: 920px) {
  .hero { gap: 1.3rem; }
  .hero h1 { font-size: clamp(2rem, 4.55vw, 3.5rem); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-inner { min-height: 3.8rem; }
  .brand { font-size: .96rem; gap: .45rem; }
  .monogram { width: 1.95rem; height: 1.95rem; }
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .9rem; }
  .hero { padding-block: 2.1rem; grid-template-columns: 1fr; gap: 1.6rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3.5rem); }
  .hero-project { min-height: 0; }
  .hero-caption { padding-top: .55rem; }
  .featured-grid, .project-grid, .profile, .story-body, .gallery-grid { grid-template-columns: 1fr; }
  .story-body { padding-block: 2.3rem; }
  .story { padding-bottom: 2.5rem; }
  .footer-inner { align-items: start; justify-content: center; flex-direction: column; padding-block: .85rem; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
