@font-face {
  font-family: Montserrat;
  src: url("montserrat-r.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("montserrat-m.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("montserrat-s-b.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1d2226;
  --muted: #555d63;
  --accent: #245974;
  --line: #d9dfe0;
  --paper: #fff;
  --surface: #f3f5f5;
  --gutter: clamp(20px, 5vw, 88px);
  --gap: clamp(24px, 4vw, 72px);
  --section: clamp(58px, 9vw, 148px);
  --header: 76px;
  --display: clamp(2.35rem, 5.1vw, 6.1rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Montserrat, Arial, sans-serif;
}
body.menu-open, body.gallery-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
figure, dl, dd, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: .85em; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; overflow-wrap: anywhere; }
h1 { font-size: var(--display); letter-spacing: -.065em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 3.7rem); letter-spacing: -.05em; }
h3 { font-size: clamp(1.2rem, 2vw, 2rem); letter-spacing: -.035em; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; padding: 12px; z-index: 20; background: white; }
.wrap { max-width: 1760px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  color: var(--accent);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}
.lead { font-size: clamp(1.12rem, 1.45vw, 1.32rem); line-height: 1.65; }
.source, .source-status, .gallery-hint { color: var(--muted); font-size: .86rem; }
.source-details { margin-top: 1rem; font-size: .86rem; color: var(--muted); }
.source-details summary { cursor: pointer; }
.text-link, .button, .document-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.text-link { min-height: 44px; border-bottom: 1px solid var(--line); }
.button { min-height: 48px; padding: .72rem 1.12rem; background: var(--accent); color: white; border: 1px solid var(--accent); }
.button:hover { background: #1b465b; }
.text-link:hover, .document-card:hover { color: var(--accent); border-color: var(--accent); }
.text-button { border: 0; background: none; padding: .65rem 0; text-decoration: underline; text-underline-offset: .2em; }

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 38px);
  padding: 0 var(--gutter);
  min-height: var(--header);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logo { position: relative; display: block; width: 194px; height: 42px; overflow: hidden; flex: 0 0 auto; }
.logo img { position: absolute; width: 212px; max-width: none; left: -9px; top: 50%; transform: translateY(-50%); }
.header nav { display: flex; align-items: center; gap: clamp(12px, 1.45vw, 28px); margin-left: auto; }
.header nav a, .header-phone, .language-switcher a { text-decoration: none; font-size: 1rem; font-weight: 600; }
.header nav a { padding-block: .9rem; }
.header nav a:hover, .header nav a[aria-current], .language-switcher a[aria-current] { color: var(--accent); text-decoration: underline; }
.header-phone { padding-left: 1rem; border-left: 1px solid var(--line); }
.language-switcher { display: flex; align-items: center; gap: .52rem; }
.language-switcher a { display: grid; place-items: center; min-width: 24px; min-height: 40px; font-size: .73rem; }
.menu-toggle { display: none; border: 0; padding: 13px 10px; background: transparent; }
.menu-toggle span { display: block; width: 23px; height: 1px; margin: 5px 0; background: var(--ink); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.25fr);
  gap: var(--gap);
  align-items: center;
  padding-block: clamp(24px, 4vw, 72px) 0;
}
.hero-copy h1 { margin: 1.05rem 0 1.25rem; font-size: clamp(2.75rem, 5.15vw, 6.1rem); }
.hero-copy p:not(.eyebrow) { color: var(--muted); margin-bottom: 1.3rem; max-width: 31ch; font-size: 1.2rem; }
.hero-photo { display: block; overflow: hidden; background: var(--surface); }
.hero-photo img { aspect-ratio: 1.44; max-height: max(320px, calc(100svh - 170px)); object-fit: cover; object-position: center 54%; }
.hero-feature figcaption, .about-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: .9em; border-bottom: 1px solid var(--line); padding-block: .85rem; }
.hero-feature figcaption a { font-weight: 600; text-decoration: none; font-size: .98rem; }
.hero-feature figcaption a span { color: var(--accent); }
.intro, .project-info, .approach, .company-hero, .approach-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--gap);
}
.intro { padding-block: var(--section); }
.intro h2, .approach h2 { margin-top: .65rem; }
.intro .text-link { margin-top: .65rem; }
.intro p:not(.eyebrow), .approach p:not(.eyebrow) { color: var(--muted); }
.selected, .expertise, .approach, .company-stats, .document-section, .directions, .gallery-section { margin-bottom: var(--section); }
.section-head, .heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px var(--gap);
  margin-bottom: clamp(22px, 4vw, 52px);
}
.section-head h2 { margin-top: .55rem; }
.section-head .text-link { justify-self: start; }
.heading-row { grid-template-columns: minmax(0, 1fr) minmax(0, 29ch); margin: .65rem 0 0; }
.heading-row p { color: var(--muted); }
.project-grid, .selected-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 58px) clamp(16px, 2vw, 32px); }
.project-card a { display: block; text-decoration: none; }
.card-image { background: var(--surface); overflow: hidden; }
.card-image img { aspect-ratio: 4/3; object-fit: cover; transition: transform .45s ease; }
.project-card a:hover img, .project-card a:focus-visible img { transform: scale(1.035); }
.card-category { color: var(--muted); font-size: .94rem; margin-top: .82rem; }
.card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: .6rem; border-bottom: 1px solid var(--line); padding-block: .2rem .8rem; }
.card-meta span { color: var(--muted); font-size: .94rem; white-space: nowrap; }
.card-meta .card-arrow { color: var(--accent); font-size: 1.05rem; }
.project-card a:hover h3 { color: var(--accent); }

.service-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.service-rows a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; gap: .55rem; align-items: start; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.service-letter { grid-column: 1/-1; color: var(--accent); font-size: 2.2rem; line-height: 1; }
.service-name { grid-column: 1/-1; font-size: clamp(1.12rem, 1.6vw, 1.6rem); font-weight: 500; }
.service-name small { display: block; font-size: 1rem; color: var(--muted); }
.service-rows p { color: var(--muted); font-size: 1.125rem; }
.service-rows .arrow { color: var(--accent); }
.service-rows a:hover { border-color: var(--accent); }
.approach { align-items: center; }
.approach img { aspect-ratio: 1.4; object-fit: cover; }
.approach p:not(.eyebrow) { margin-block: .9rem; }

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--gap);
  align-items: end;
  background: var(--surface);
  padding-block: clamp(32px, 6vw, 84px);
  margin-top: var(--section);
}
.contact-band h2 { margin: .45rem 0 .7rem; }
.contact-actions { display: grid; justify-items: start; gap: .75rem; font-size: 1rem; }
.footer { padding-block: 38px 18px; }
.footer-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px var(--gap); }
.footer-top p, .footer-bottom { color: var(--muted); font-size: .98rem; }
.footer-top > a:last-child { font-weight: 600; text-decoration: none; }
.footer-links, .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.footer-nav, .footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.footer-nav a, .footer-socials a, .footer-bottom a { text-decoration: none; font-size: .98rem; }
.footer-socials .text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: .45rem; white-space: nowrap; transition: color .25s ease; }
.footer-socials .social-icon { display: block; flex: 0 0 17px; width: 17px; height: 17px; fill: currentColor; }
.footer .text-link { border: 0; min-height: 36px; }
.footer a:hover { color: var(--accent); }

.page-heading, .project-heading { padding-block: clamp(38px, 6vw, 96px) clamp(28px, 5vw, 68px); }
.page-heading h1, .project-heading h1 { margin-top: .7rem; }
.page-heading .lead { max-width: 53ch; color: var(--muted); margin-top: 1rem; }
.company-hero, .approach-hero { align-items: center; }
.company-hero h1, .approach-hero h1, .contact-heading h1 { font-size: clamp(2.25rem, 4.3vw, 5.1rem); }
.about-photo img, .approach-hero img { aspect-ratio: 1.48; object-fit: cover; }
.about-photo figcaption { font-size: .92rem; color: var(--muted); }
.company-hero + .intro { padding-top: 1.5rem; }
.stats, .team-table, .document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.stats > div { border-top: 1px solid var(--line); padding: 16px 0; }
.stats strong { font-size: clamp(2rem, 5vw, 4.8rem); font-weight: 500; letter-spacing: -.06em; }
.stats p { color: var(--muted); max-width: 27ch; }
.team-table { margin-top: 2rem; }
.team-table > div, .document-card { border-top: 1px solid var(--line); padding: .95rem 0; }
.team-table > div { display: flex; justify-content: space-between; gap: 1rem; min-width: 0; }
.team-table > div span { min-width: 0; overflow-wrap: anywhere; }
.team-table > div strong { flex-shrink: 0; }
.document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.portfolio-tools { border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.2rem; padding-block: .5rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .45rem; }
.filters button { min-height: 44px; background: none; border: 0; border-bottom: 2px solid transparent; padding: .3rem .52rem; font-size: .98rem; }
.filters button[aria-pressed="true"] { border-bottom-color: var(--accent); font-weight: 600; color: var(--accent); }
.search { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 100%; }
.search input { width: min(12rem, 100%); min-height: 44px; border: 0; background: transparent; }
.result-line { margin-block: .8rem 1.25rem; color: var(--muted); font-size: .94rem; }
.empty { padding-block: 3rem; }
.empty p { margin-block: .8rem 1.1rem; }
.project-heading .back { display: inline-block; margin-bottom: 1.1rem; font-size: .98rem; }
.project-subtitle { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; margin-top: .9rem; color: var(--muted); }
.project-cover img { max-height: 78svh; min-height: 210px; object-fit: cover; }
.project-info { padding-block: var(--section); }
.project-info h2 { margin-bottom: 1rem; }
.project-info .source { margin-top: 1rem; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; border-top: 1px solid var(--line); padding-block: .8rem; font-size: 1rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; }
.facts dt, .facts dd { min-width: 0; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 50px) clamp(14px, 2vw, 32px); margin-top: 1.2rem; }
.gallery figure a { display: block; }
.gallery img { aspect-ratio: 4/3; object-fit: contain; background: #f1f2f3; }
.gallery-group { margin-top: clamp(2rem, 4vw, 3.5rem); }
.gallery-group h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0; }
.gallery figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding-top: .55rem; color: var(--muted); font-size: .92rem; }
.gallery-section h2 sup { font-size: .35em; color: var(--accent); }
.gallery-section .section-head { margin-bottom: .65rem; }
.next-project { margin-inline: auto; }
.next-project a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .5rem; text-decoration: none; }
.next-project a > span { color: var(--accent); font-size: 1.6rem; }

.service-details { margin-bottom: var(--section); }
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--gap); padding-block: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.service-detail h2 { margin-top: .45rem; }
.service-detail ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.service-detail li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.direction-grid, .process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.direction-grid > div, .process-list article { border-top: 1px solid var(--line); padding-block: 1rem; }
.direction-grid p, .process-list p { margin-top: .65rem; color: var(--muted); font-size: 1.125rem; }
.process-list article:last-child { grid-column: 1 / -1; }
.process-list article > span { color: var(--accent); font-size: .94rem; }
.process-list h2 { font-size: clamp(1.18rem, 2vw, 1.85rem); margin-top: .6rem; }
.process-link { background: var(--surface); margin-top: var(--section); padding-block: clamp(24px, 4vw, 64px); }
.process-link p { margin-top: .65rem; }
.schedule-list details { border-top: 1px solid var(--line); }
.schedule-list summary { cursor: pointer; display: grid; grid-template-columns: minmax(0, 7rem) 1fr auto; gap: .75rem; padding: 1rem 0; }
.schedule-list summary span { color: var(--accent); }
.schedule-list details p { padding: 0 0 1.1rem; color: var(--muted); }
.schedule-original { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 1rem; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  grid-template-areas: "details brief" "map brief";
  align-items: start;
  gap: 2rem var(--gap);
  padding-bottom: var(--section);
}
.contact-details { grid-area: details; }
.contact-phone { display: block; font-size: clamp(1.5rem, 3vw, 2.9rem); letter-spacing: -.045em; margin: .35rem 0; }
.contact-email, .contact-phone { text-decoration: none; }
.contact-email { color: var(--accent); overflow-wrap: anywhere; }
.contact-address { margin-top: 1.3rem; }
.contact-address > span { font-size: .94rem; color: var(--muted); }
.social-links, .map-actions { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .6rem; }
.office-map { grid-area: map; border-top: 1px solid var(--line); padding-top: .85rem; }
.office-map-heading { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .96rem; }
.office-plan { display: block; width: min(100%, 500px); aspect-ratio: 500 / 442; background: var(--surface); }
.office-plan iframe { display: block; width: 100%; height: 100%; border: 0; }
body:has(#office-map) .header { position: relative; }
.office-map-caption { font-size: .94rem; color: var(--muted); margin-top: .6rem; }
.brief { grid-area: brief; padding: clamp(18px, 3.5vw, 48px); background: var(--surface); min-width: 0; }
.brief h2 { margin: .42rem 0 .8rem; }
.brief > p:not(.eyebrow) { color: var(--muted); }
.brief form { display: grid; gap: .85rem; margin-top: 1.15rem; }
.brief label { min-width: 0; display: block; font-size: .98rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.brief input:not([type="checkbox"]), .brief select, .brief textarea {
  display: block; width: 100%; min-height: 44px; margin-top: .3rem; padding: .6rem .65rem;
  border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 1rem; font-weight: 400;
}
.brief textarea { resize: vertical; }
.brief .form-note, .brief .consent { font-size: .96rem; font-weight: 400; }
.brief .consent { display: flex; gap: .5rem; align-items: flex-start; }
.brief .consent label { font-size: inherit; font-weight: 400; }
#consent-links { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .4rem; }
.brief :is(input, select, textarea) { scroll-margin-top: 12px; }
.brief .consent input { accent-color: var(--accent); width: 17px; height: 17px; flex: 0 0 auto; }
.brief a { color: var(--accent); }
.brief button { justify-self: start; }
#form-status:empty { display: none; }

.legal-layout { display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, 1.4fr); gap: var(--gap); padding-bottom: var(--section); }
.legal-index { align-self: start; position: sticky; top: calc(var(--header) + 20px); border-top: 1px solid var(--line); max-height: calc(100svh - var(--header) - 40px); overflow: auto; }
.legal-index a { display: block; padding: .52rem 0; font-size: .96rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.legal-index a:hover { color: var(--accent); text-decoration: underline; }
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.3rem, 2.15vw, 2rem); margin: 2.1rem 0 .8rem; }
.prose p, .prose li { color: var(--muted); overflow-wrap: anywhere; }
.prose a { color: var(--accent); }
.prose ul { padding-left: 1.3rem; }

.lightbox { width: min(94vw, 1150px); max-height: 94svh; padding: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.lightbox::backdrop { background: #121619c9; }
.lightbox-toolbar, .lightbox-content { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lightbox button { border: 1px solid var(--line); background: white; padding: .45rem; min-width: 40px; min-height: 40px; }
.lightbox img { min-width: 0; object-fit: contain; max-height: 72svh; touch-action: pan-y; }
.lightbox #lightbox-caption { font-size: .96rem; padding-top: .5rem; }

@media (max-width: 1279px) {
  :root { --header: 64px; }
  .header { flex-wrap: wrap; gap: 0 14px; }
  .header .logo { margin-right: auto; }
  .header-phone { display: none; }
  .header nav { order: 4; flex-basis: 100%; flex-wrap: wrap; margin: 0; padding-bottom: 10px; }
  .header.menu-ready nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    padding: 12px var(--gutter) 20px; max-height: calc(100dvh - var(--header));
    overflow: auto; align-items: stretch; border-bottom: 1px solid var(--line);
  }
  .header.menu-ready nav.is-open { display: flex; flex-direction: column; flex-wrap: nowrap; }
  .header.menu-ready nav a { min-height: 50px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .header.menu-ready .menu-toggle { display: block; order: 3; }
}
@media (max-width: 880px) {
  .hero, .company-hero, .approach-hero, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 20px; }
  .hero-copy h1 { margin: .55rem 0 .62rem; }
  .hero-copy p:not(.eyebrow) { margin-bottom: .75rem; }
  .hero-photo img { aspect-ratio: 1.52; max-height: none; }
  .heading-row { grid-template-columns: 1fr; }
  .contact-layout { grid-template-areas: "details" "brief" "map"; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-index { position: static; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .direction-grid, .process-list, .team-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header { padding-inline: 15px; gap: 0 6px; }
  .header .logo { width: 160px; height: 37px; }
  .header .logo img { width: 174px; left: -8px; }
  .language-switcher { gap: 2px; }
  .menu-toggle { padding-inline: 7px; }
  .section-head, .intro, .approach, .project-info, .service-detail, .contact-band, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(2.2rem, 8.1vw, 3.25rem); }
  .hero-photo img { aspect-ratio: 1.26; }
  .project-grid, .selected-grid { grid-template-columns: minmax(0, 1fr); }
  .card-image img { aspect-ratio: 1.42; }
  .section-head { margin-bottom: 20px; }
  .service-rows, .direction-grid, .process-list, .document-grid, .form-row, .service-detail ul { grid-template-columns: minmax(0, 1fr); }
  .service-rows a { grid-template-columns: 1fr auto; grid-template-rows: auto; }
  .service-letter { font-size: 1.6rem; }
  .stats { gap: 8px; }
  .stats p { font-size: .7rem; }
  .stats strong { font-size: clamp(1.28rem, 6vw, 2.2rem); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figcaption { font-size: .9rem; }
  .legal-heading h1 { font-size: clamp(1.3rem, 6.6vw, 2.5rem); }
  .legal-index > .eyebrow { grid-column: 1 / -1; }
  .legal-index a { line-height: 1.45; }
  .schedule-list summary { grid-template-columns: minmax(0, 4.4rem) 1fr auto; font-size: .82rem; }
  .footer-top { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Interactive project showcase */
.showcase-stage { position: relative; overflow: hidden; aspect-ratio: 1.44; background: var(--surface); }
.showcase-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); text-decoration: none; }
.showcase-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; pointer-events: none; color: var(--ink); text-decoration: none; transition: opacity .55s ease, visibility .55s; }
.showcase-slide.is-exiting { opacity: 1; visibility: visible; z-index: 0; }
.showcase-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.showcase-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; transform: scale(1.025); transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.showcase-slide.is-active img { transform: scale(1); }
@media (hover: hover) { .showcase-slide.is-active:hover img { transform: scale(1.015); } }
.showcase-index { position: absolute; top: 20px; left: 20px; padding: .5rem .7rem; background: rgba(255,255,255,.94); font-size: .75rem; letter-spacing: .08em; }
.showcase-caption { position: absolute; left: 20px; bottom: 20px; display: grid; gap: .1rem; max-width: min(80%, 390px); padding: 1rem 1.25rem; background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: translateY(7px); transition: opacity .45s ease, transform .55s ease; }
.showcase-slide.is-active .showcase-caption { opacity: 1; transform: translateY(0); }
.showcase-caption strong { font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; }
.showcase-category, .showcase-location { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.showcase-category { color: var(--accent); }
.showcase-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-block: .65rem; min-height: 64px; }
.showcase-navigation { display: flex; align-items: center; gap: .65rem; }
.showcase-count { font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.showcase-progress { width: clamp(28px, 4vw, 56px); height: 2px; background: var(--line); overflow: hidden; }
.showcase-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.showcase-navigation button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; transition: color .25s, border-color .25s, background .25s; }
.showcase-navigation button:hover { color: white; background: var(--accent); border-color: var(--accent); }
.card-meta h3 { font-size: clamp(1.45rem, 2.3vw, 2.125rem); line-height: 1.2; font-weight: 400; letter-spacing: -.8px; }
.card-category, .card-meta span { font-size: .96rem; font-weight: 400; }
.eyebrow { font-size: clamp(.875rem, 1vw, 1rem); letter-spacing: .12em; }
.text-link, .button, .document-card, .header nav a, .card-meta h3, .card-arrow, .filters button { transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease; }
.text-link:hover span, .project-card a:hover .card-arrow { transform: translateX(4px); }
main > section:not(.hero), .project-grid .project-card { transition: opacity .4s ease, transform .4s ease; }
.reveal-pending { opacity: 0; transform: translateY(14px); }
@view-transition { navigation: auto; }
@media (max-width: 880px) { .showcase-stage { aspect-ratio: 1.52; } }
@media (max-width: 640px) {
  .showcase-stage { aspect-ratio: 1.26; }
  .showcase-index { top: 12px; left: 12px; }
  .showcase-caption { left: 12px; bottom: 12px; padding: .7rem .85rem; max-width: calc(100% - 24px); }
  .showcase-footer .eyebrow { font-size: .75rem; letter-spacing: .08em; }
  .showcase-navigation { gap: .35rem; }
  .showcase-progress { width: 24px; }
  .card-meta h3 { font-size: clamp(1.4rem, 6vw, 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-slide, main > section:not(.hero), .project-grid .project-card { transition: none !important; }
  .showcase-slide img, .showcase-slide.is-active:hover img, .showcase-caption { transform: none; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
