:root {
  --paper: #fcfcfb;
  --ink: #101010;
  --muted: #636363;
  --line: #dededb;
  --red: #e20808;
  --keen-red: #c93832;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --header-content-height: 83px;
  --header-height: calc(var(--header-content-height) + var(--safe-area-top));
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-shell { --available-module-height: calc(100dvh - var(--header-height)); --module-viewport: var(--available-module-height); width: 100%; height: 100dvh; margin: 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; scroll-padding-top: var(--header-height); overscroll-behavior-y: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; background: var(--paper); }
.section { position: relative; padding-inline: clamp(30px, 4.45vw, 68px); }
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.site-header { height: var(--header-height); flex: 0 0 var(--header-height); display: flex; align-items: center; position: sticky; top: 0; z-index: 50; padding-top: var(--safe-area-top); padding-inline: clamp(30px, 4.45vw, 68px); background: rgba(252,252,251,.94); border-bottom: 1px solid rgba(16,16,16,.08); backdrop-filter: blur(10px); }
.keen-logo { --keen-logo-size: 28px; --keen-tagline-size: 7px; display: inline-grid; grid-template-rows: auto auto; justify-items: start; width: max-content; color: var(--ink); text-decoration: none; white-space: nowrap; }
.keen-logo__main { display: flex; align-items: baseline; width: max-content; color: var(--ink); font-family: Rockwell, "Roboto Slab", "Courier New", serif; font-size: var(--keen-logo-size); font-weight: 700; letter-spacing: -.055em; line-height: .86; }
.keen-logo__keen { display: inline-flex; align-items: center; background: var(--keen-red); color: #fff; line-height: .86; padding: .21em .13em .07em .11em; }
.keen-logo__tiling { color: currentColor; margin-left: -.015em; }
.keen-logo__tagline { display: block; justify-self: center; margin-top: .34em; color: #383838; font-family: Rockwell, "Roboto Slab", "Courier New", serif; font-size: var(--keen-tagline-size); font-weight: 700; letter-spacing: .13em; line-height: 1.05; text-align: center; }
.keen-logo--header { --keen-logo-size: 28px; --keen-tagline-size: 7px; flex: 0 0 auto; }
.main-nav { margin-left: auto; display: flex; gap: 35px; font-size: 14px; }
.main-nav a, .header-quote { transition: color .2s ease; }
.main-nav a:hover { color: var(--red); }
.quote-link { color: var(--red); font-weight: 700; font-size: 14px; }
.header-quote { margin-left: 72px; }
.header-quote span { font-size: 22px; margin-left: 8px; vertical-align: -1px; }
.menu-toggle { display: none; }

h1, h2, h3 { font-weight: 500; text-transform: uppercase; }
.hero { min-block-size: var(--module-viewport); display: flex; flex-direction: column; }
.hero-content { width: min(100%, 600px); margin: auto; text-align: center; padding: clamp(40px, 7dvh, 86px) 0 clamp(88px, 12dvh, 145px); }
.keen-logo--hero { --keen-logo-size: clamp(62px, 6.5vw, 96px); --keen-tagline-size: clamp(13px, 1.35vw, 19px); margin: 0 auto clamp(28px, 4dvh, 45px); }
h1 { font-size: clamp(18px, 1.6vw, 25px); letter-spacing: .37em; line-height: 1.3; margin: 0 0 24px; padding-left: .37em; }
.hero-copy { max-width: 490px; margin: 0 auto; font-size: 16px; line-height: 1.48; color: #333; }
.brand-phrase { margin: 0; text-transform: uppercase; font-size: 9px; font-weight: 700; line-height: 1.6; letter-spacing: .25em; }
.hero > .brand-phrase { position: absolute; bottom: clamp(32px, 4dvh, 48px); left: clamp(30px, 4.45vw, 68px); }
.scroll-cue { position: absolute; bottom: clamp(27px, 3.4dvh, 40px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; text-transform: uppercase; letter-spacing: .26em; font-size: 8px; font-weight: 700; align-items: center; }
.scroll-cue span { width: 1px; height: 31px; background: #767676; }

.section-kicker { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.section-kicker i { display: block; width: 38px; height: 2px; background: var(--red); }
.project-label { position: relative; z-index: 3; }
.project-label h2, .proof h2, .contact h2 { font-size: clamp(30px, 3vw, 43px); letter-spacing: .23em; line-height: 1.12; margin: 20px 0 0; padding-left: .23em; }

/* The archive is an ordered spatial stack, not a conventional carousel. */
.projects { min-block-size: var(--module-viewport); background: #f5f5f3; padding-top: clamp(38px, 5dvh, 62px); padding-bottom: clamp(32px, 4dvh, 48px); }
.project-layout { display: grid; grid-template-columns: minmax(190px, 255px) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 54px); align-items: center; margin-top: clamp(10px, 2dvh, 24px); }
.project-details { position: relative; z-index: 5; padding-left: clamp(0px, 3vw, 43px); }
.project-number { margin: 0 0 17px; color: #333; font-size: 11px; letter-spacing: .15em; font-weight: 700; }
.project-details h3 { margin: 0 0 22px; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.28; letter-spacing: .18em; }
.project-details h3 span, .overlay-summary h2 span { display: block; }
dl { margin: 0; font-size: 13px; color: var(--muted); }
dl div { display: grid; grid-template-columns: 100px 1fr; margin-bottom: 7px; }
dt, dd { margin: 0; }
.project-link { display: inline-flex; flex-direction: column; align-items: flex-start; border: 0; padding: 0; background: transparent; cursor: pointer; gap: 10px; margin-top: 29px; color: var(--red); text-transform: uppercase; font-size: 11px; letter-spacing: .22em; font-weight: 700; }
.project-link span { width: 32px; height: 2px; background: var(--red); }
.project-link b { margin-left: 13px; font-size: 19px; line-height: 9px; }

.archive-stage { block-size: clamp(28rem, 61dvh, 42rem); min-width: 0; position: relative; overflow: hidden; isolation: isolate; perspective: 1500px; touch-action: pan-y; user-select: none; cursor: grab; }
.archive-stage:active { cursor: grabbing; }
.archive-card { --panel-transform: perspective(1500px) rotateY(-10deg) rotateZ(-.6deg); appearance: none; display: block; position: absolute; overflow: hidden; margin: 0; border: 1px solid rgba(16,16,16,.15); border-radius: 1px; background: #e8e7e2; padding: 0; cursor: pointer; transform: var(--panel-transform); transform-origin: left bottom; box-shadow: 9px 12px 18px rgba(17,17,17,.10); transition: left 650ms cubic-bezier(.22,.75,.28,1), bottom 650ms cubic-bezier(.22,.75,.28,1), width 650ms cubic-bezier(.22,.75,.28,1), height 650ms cubic-bezier(.22,.75,.28,1), opacity 400ms ease, filter 500ms ease, transform 650ms cubic-bezier(.22,.75,.28,1); }
.archive-card img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; transition: transform 650ms cubic-bezier(.22,.75,.28,1); }
.archive-card:hover img, .archive-card:focus-visible img { transform: scale(1.025); }
.archive-card:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.archive-card[aria-current="true"] { border-color: rgba(16,16,16,.28); }
.archive-card[data-position="0"] { left: .5%; bottom: 3%; width: 46%; height: 91%; z-index: 10; opacity: 1; filter: none; }
.archive-card[data-position="1"] { left: 37%; bottom: 17%; width: 32%; height: 67%; z-index: 8; opacity: .98; filter: brightness(.98) saturate(.92); }
.archive-card[data-position="2"] { left: 62%; bottom: 32%; width: 23%; height: 47%; z-index: 6; opacity: .94; filter: brightness(.96) saturate(.83); }
.archive-card[data-position="3"] { left: 80%; bottom: 47%; width: 16%; height: 33%; z-index: 4; opacity: .88; filter: brightness(.94) saturate(.73); }
.archive-card[data-position="4"] { left: 92%; bottom: 60%; width: 10%; height: 22%; z-index: 2; opacity: .77; filter: brightness(.92) saturate(.62); }
.archive-card.is-entering { opacity: 0; transform: translate3d(2.8rem, .8rem, 0) var(--panel-transform); }
.archive-card.is-exiting { left: 104%; bottom: 66%; width: 7%; height: 17%; z-index: 1; opacity: 0; pointer-events: none; filter: brightness(.9) saturate(.55); }
.archive-card-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.project-phrase { position: absolute; bottom: clamp(32px, 4dvh, 48px); left: clamp(30px, 4.45vw, 68px); }

.proof { min-block-size: var(--module-viewport); padding-top: clamp(58px, 8dvh, 98px); padding-bottom: clamp(58px, 8dvh, 98px); display: grid; grid-template-columns: minmax(200px, 250px) 1fr; column-gap: clamp(44px, 5vw, 72px); align-content: center; }
.proof-heading h2 { font-size: clamp(27px, 2.25vw, 35px); letter-spacing: .16em; padding: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); align-self: start; }
.metrics div { min-height: 75px; padding-left: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.metrics strong { color: var(--red); font-size: clamp(23px, 2.15vw, 33px); letter-spacing: -.03em; }
.metrics span { font-size: 11px; color: var(--muted); }
.process-block { grid-column: 1 / -1; margin-top: clamp(54px, 8dvh, 90px); }
.eyebrow { margin: 0 0 21px; text-transform: uppercase; font-size: 9px; letter-spacing: .19em; font-weight: 700; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; padding: 0; margin: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center; color: #555; }
.process-icon { grid-row: span 2; font-size: 19px; color: var(--ink); }
.process-list b { font-size: 10px; color: var(--ink); }
.process-list p { font-size: 11px; margin: 2px 0 0; }
.partners { grid-column: 1 / -1; display: grid; grid-template-columns: 126px 1fr; row-gap: clamp(28px, 4dvh, 42px); align-items: center; margin-top: clamp(52px, 7dvh, 78px); }
.partners .eyebrow { margin: 0; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #171717; }
.logo-row span { white-space: nowrap; font-size: 18px; font-weight: 700; letter-spacing: -.06em; }
.logo-row span:nth-child(2) { font-family: Georgia, serif; font-weight: 500; }
.logo-row span:nth-child(3) { font-size: 22px; }
.material-logos span { font-size: 13px; font-family: Georgia, serif; font-weight: 600; }
.material-logos span:nth-child(3) { font-family: Arial, sans-serif; font-size: 18px; font-style: italic; }
.material-logos span:nth-child(4) { font-family: Arial, sans-serif; }

.contact { min-block-size: var(--module-viewport); display: grid; grid-template-columns: minmax(180px,220px) minmax(360px,1fr) minmax(190px,220px); gap: clamp(32px, 3.5vw, 52px); align-content: center; padding-top: clamp(24px, 4dvh, 52px); padding-bottom: clamp(24px, 4dvh, 52px); background: #f4f4f2; }
/* The ending frame uses one fixed, header-aware canvas: contact above, footer below. */
.contact-module { --final-footer-height: clamp(152px, 28%, 230px); block-size: var(--available-module-height); min-block-size: var(--available-module-height); max-block-size: var(--available-module-height); display: grid; grid-template-rows: minmax(0, 1fr) var(--final-footer-height); overflow: clip; }
.contact-module > .contact { min-block-size: 0; block-size: 100%; }
.contact-module > .site-footer { min-block-size: 0; block-size: 100%; }
.contact h2 { font-size: 29px; padding-left: 0; letter-spacing: .16em; }
.contact-intro > p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 21px; }
.contact-form { display: grid; gap: 9px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.contact-form label { font-size: 10px; color: #666; display: grid; gap: 5px; }
input, textarea { width: 100%; border: 1px solid #c9c9c6; border-radius: 0; background: transparent; color: var(--ink); padding: 9px 10px; outline: none; font-size: 13px; }
textarea { resize: vertical; min-height: 85px; }
input:focus, textarea:focus { border-color: var(--red); }
.submit-button { justify-self: start; border: 0; border-radius: 0; background: var(--red); color: white; padding: 12px 21px; min-width: 160px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; cursor: pointer; }
.submit-button span { font-size: 17px; margin-left: 12px; vertical-align: -1px; }
.form-status { min-height: 14px; margin: 0; color: var(--red); font-size: 11px; }
.direct-contact { border-left: 1px solid var(--line); padding-left: 28px; font-size: 12px; display: grid; gap: 13px; color: #333; }
.direct-contact p { margin: 0 0 2px; color: var(--muted); }
.direct-contact a:hover { color: var(--red); }
.direct-contact address { font-style: normal; }

.site-footer { min-block-size: clamp(160px, 23dvh, 230px); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(165px, 1fr) auto auto; grid-template-rows: 1fr auto; gap: 0 24px; padding: clamp(16px, 2.5dvh, 28px) clamp(30px, 4.45vw, 68px) clamp(14px, 2dvh, 22px); padding-bottom: calc(clamp(14px, 2dvh, 22px) + var(--safe-area-bottom)); align-items: start; }
.keen-logo--footer { --keen-logo-size: 25px; --keen-tagline-size: 6px; grid-column: 1; grid-row: 1; }
.keen-logo--footer .keen-logo__tiling, .keen-logo--footer .keen-logo__tagline { color: var(--paper); }
.site-footer nav { grid-column: 2; grid-row: 1; display: flex; gap: 28px; font-size: 12px; }
.site-footer nav a:hover, .social-links a:hover, .legal-links a:hover { color: var(--red); }
.social-links { grid-column: 3; grid-row: 1; display: flex; gap: 17px; }
.social-links a { text-transform: uppercase; font-weight: 700; font-size: 13px; }
.copyright { grid-column: 1; grid-row: 2; margin: 0; color: #aaa; font-size: 11px; align-self: end; }
.legal-links { grid-column: 3; grid-row: 2; display: flex; gap: 27px; margin: 0; font-size: 11px; align-self: end; }

.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-shell.is-detail-open { overflow-y: hidden; }
.site-shell.is-detail-open .projects { opacity: .68; pointer-events: none; transition: opacity 280ms ease; }
.project-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(245,245,243,.88); opacity: 0; pointer-events: none; transition: opacity 320ms ease; }
.project-overlay[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.overlay-canvas { width: min(1160px,100%); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--line); padding: 28px clamp(28px,4.5vw,66px) clamp(42px,5vw,70px); transform: translateY(16px) scale(.985); transition: transform 500ms cubic-bezier(.22,.75,.28,1); }
.project-overlay[aria-hidden="false"] .overlay-canvas { transform: translateY(0) scale(1); }
.overlay-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.overlay-header p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.overlay-close { border: 0; padding: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.overlay-close span { margin-left: 7px; font-size: 23px; font-weight: 400; vertical-align: -3px; }
.overlay-close:hover, .overlay-close:focus-visible { color: var(--red); }
.overlay-content { display: grid; grid-template-columns: minmax(210px,.68fr) 1.32fr; gap: clamp(36px,6vw,100px); padding-top: clamp(35px,5vw,67px); }
.overlay-summary { position: sticky; top: 0; align-self: start; }
.overlay-summary h2 { margin: 0 0 33px; font-size: clamp(30px,3.4vw,50px); font-weight: 500; letter-spacing: .16em; line-height: 1.16; text-transform: uppercase; }
.overlay-summary dl { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.overlay-summary p { margin: 25px 0 0; color: #3e3e3e; font-size: 14px; line-height: 1.55; }
.overlay-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: start; }
.detail-image { margin: 0; overflow: hidden; background: #e9e8e5; }
.detail-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-image-1 { grid-column: 1 / -1; aspect-ratio: 1 / 1.13; }
.detail-image-2, .detail-image-3 { aspect-ratio: .78 / 1; }
.detail-image-4 { grid-column: 1 / -1; aspect-ratio: 1.4 / 1; }

@media (max-width: 920px) {
  .project-layout { grid-template-columns: 210px minmax(0,1fr); gap: 24px; }
  .contact { grid-template-columns: 180px minmax(300px,1fr) 185px; gap: 26px; }
}

@media (max-width: 780px) {
  :root { --header-content-height: 84px; }
  .section { padding-inline: 28px; }
  .site-header { padding-inline: 28px; }
  .keen-logo--header { --keen-logo-size: 22px; --keen-tagline-size: 5.7px; }
  .main-nav { position: absolute; left: 0; right: 0; top: var(--header-height); z-index: 1; padding: 19px 28px 22px; display: none; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 18px; flex-direction: column; }
  .main-nav.is-open { display: flex; }
  .header-quote { margin-left: auto; margin-right: 24px; font-size: 12px; }
  .header-quote span { display: none; }
  .menu-toggle { display: flex; flex-direction: column; padding: 8px 0 8px 8px; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 22px; height: 2px; background: var(--ink); }

  .hero-content { padding: 26px 8px 96px; }
  .keen-logo--hero { --keen-logo-size: clamp(39px, 11vw, 52px); --keen-tagline-size: clamp(8px, 2.1vw, 10px); margin-bottom: 26px; }
  h1 { font-size: 16px; letter-spacing: .28em; padding-left: .28em; max-width: 290px; margin-inline: auto; }
  .hero-copy { font-size: 14px; line-height: 1.43; max-width: 305px; }
  .hero > .brand-phrase { display: none; }
  .scroll-cue { bottom: 24px; }

  .projects { padding-top: 30px; padding-bottom: 31px; }
  .project-label h2 { margin-top: 15px; font-size: 25px; }
  .project-layout { display: flex; flex-direction: column; gap: 0; align-items: stretch; margin-top: 14px; }
  .archive-stage { order: -1; width: calc(100% + 28px); margin-right: -28px; block-size: clamp(20rem, 48dvh, 29rem); }
  .archive-card { --panel-transform: perspective(1100px) rotateY(-8deg) rotateZ(-.5deg); }
  .archive-card[data-position="0"] { left: 0; bottom: 3%; width: 64%; height: 91%; }
  .archive-card[data-position="1"] { left: 48%; bottom: 16%; width: 43%; height: 66%; }
  .archive-card[data-position="2"] { left: 79%; bottom: 31%; width: 29%; height: 46%; }
  .archive-card[data-position="3"] { left: 99%; bottom: 46%; width: 19%; height: 31%; }
  .archive-card[data-position="4"] { left: 112%; bottom: 59%; width: 12%; height: 20%; }
  .archive-card.is-exiting { left: 124%; bottom: 62%; width: 8%; height: 16%; }
  .project-details { padding-left: 0; margin-top: clamp(20px, 3dvh, 30px); }
  .project-number { font-size: 9px; margin-bottom: 9px; }
  .project-details h3 { font-size: 16px; line-height: 1.35; letter-spacing: .17em; margin-bottom: 17px; }
  dl { font-size: 12px; }
  dl div { grid-template-columns: 96px 1fr; margin-bottom: 6px; }
  .project-link { margin-top: 17px; gap: 8px; }
  .project-phrase { display: none; }

  .proof { display: block; padding-top: 52px; padding-bottom: 54px; }
  .proof-heading h2 { font-size: 24px; margin-top: 18px; }
  .metrics { margin-top: 42px; grid-template-columns: 1fr; gap: 0; }
  .metrics div { padding: 17px 0; min-height: 0; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 128px 1fr; align-items: baseline; }
  .metrics div:last-child { border-bottom: 1px solid var(--line); }
  .metrics strong { font-size: 28px; }
  .process-block { margin-top: 46px; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 28px 9px; }
  .process-list li { grid-template-columns: 25px 1fr; }
  .partners { display: block; margin-top: 54px; }
  .partners .eyebrow { margin-top: 28px; margin-bottom: 15px; }
  .logo-row { flex-wrap: wrap; justify-content: flex-start; gap: 20px 31px; }
  .logo-row span { font-size: 16px; }
  .logo-row span:nth-child(3) { font-size: 19px; }

  .contact { display: grid; grid-template-columns: 1fr; align-content: start; gap: 7px; padding: clamp(12px, 2.2dvh, 20px) 28px clamp(11px, 2dvh, 18px); }
  .contact h2 { font-size: 23px; line-height: 1.08; margin-top: 6px; }
  .contact-intro > p { margin: 6px 0 0; font-size: 11px; line-height: 1.35; }
  .contact-form { gap: 6px; }
  .input-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .contact-form label { gap: 3px; font-size: 9px; }
  .contact-form input, .contact-form textarea { padding: 6px 8px; font-size: 12px; }
  .contact-form input { min-block-size: 34px; }
  .contact-form textarea { block-size: 46px; min-block-size: 46px; }
  .submit-button { min-block-size: 34px; min-width: 132px; padding: 8px 13px; font-size: 9px; }
  .submit-button span { font-size: 14px; margin-left: 8px; }
  .form-status { min-height: 0; font-size: 10px; }
  .form-status:empty { display: none; }
  .direct-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; margin: 0; padding: 7px 0 0; border-left: 0; border-top: 1px solid var(--line); font-size: 11px; }
  .direct-contact p { flex-basis: 100%; margin: 0; font-size: 10px; }
  .site-footer { min-block-size: 0; display: grid; grid-template-columns: minmax(128px, 1fr) auto; grid-template-rows: auto auto 1fr; gap: 0 9px; padding: 14px 28px 13px; padding-bottom: calc(13px + var(--safe-area-bottom)); }
  .keen-logo--footer { --keen-logo-size: 21px; --keen-tagline-size: 5.7px; grid-column: 1; grid-row: 1; }
  .site-footer nav { grid-column: 1 / -1; grid-row: 2; gap: 19px; margin-top: 10px; font-size: 11px; }
  .social-links { grid-column: 2; grid-row: 1; gap: 12px; }
  .social-links a { font-size: 11px; }
  .copyright { grid-column: 1; grid-row: 3; font-size: 10px; }
  .legal-links { grid-column: 2; grid-row: 3; gap: 13px; font-size: 10px; }

  .project-overlay { padding: 0; place-items: stretch; }
  .overlay-canvas { width: 100%; max-height: 100dvh; border: 0; padding: 22px 28px calc(42px + var(--safe-area-bottom)); }
  .overlay-header { padding-bottom: 19px; }
  .overlay-content { display: block; padding-top: 37px; }
  .overlay-summary { position: static; }
  .overlay-summary h2 { font-size: 28px; margin-bottom: 28px; }
  .overlay-summary p { font-size: 13px; margin-bottom: 37px; }
  .overlay-gallery { gap: 10px; }
}

@media (max-height: 720px) {
  .hero-content { padding-top: 30px; padding-bottom: 76px; }
  .projects { padding-top: 30px; padding-bottom: 28px; }
  .proof { padding-top: 48px; padding-bottom: 48px; }
  .process-block { margin-top: 48px; }
  .partners { margin-top: 46px; }
  .contact { padding-top: 46px; padding-bottom: 46px; }
}

@media (max-width: 780px) and (max-height: 720px) {
  .hero-content { padding-top: 20px; padding-bottom: 72px; }
  .projects { padding-top: 24px; padding-bottom: 24px; }
  .project-layout { margin-top: 10px; }
  .archive-stage { block-size: clamp(18rem, 46dvh, 24rem); }
  .project-details { margin-top: 18px; }
  .proof { padding-top: 40px; padding-bottom: 44px; }
  .metrics { margin-top: 34px; }
  .process-block { margin-top: 38px; }
  .partners { margin-top: 42px; }
  .contact { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .contact h2 { font-size: 22px; }
  .contact-intro > p { margin-top: 5px; }
  .contact-form { gap: 5px; }
  .direct-contact { gap: 4px 11px; padding-top: 6px; }
  .site-footer { padding-top: 12px; padding-bottom: 11px; padding-bottom: calc(11px + var(--safe-area-bottom)); }
  .site-footer nav { margin-top: 8px; }
}

@media (max-width: 780px) and (max-height: 640px) {
  .hero-content { padding-top: 18px; padding-bottom: 64px; }
  .archive-stage { block-size: clamp(17rem, 44dvh, 21rem); }
  .proof { padding-top: 34px; padding-bottom: 38px; }
  .metrics { margin-top: 28px; }
  .process-block { margin-top: 32px; }
  .partners { margin-top: 36px; }
  .partners .eyebrow { margin-top: 22px; }
  .contact { gap: 5px; padding-top: 8px; padding-bottom: 8px; }
  .contact h2 { font-size: 21px; }
  .contact-intro > p { font-size: 10px; line-height: 1.3; }
  .contact-form { gap: 4px; }
  .contact-form input { min-block-size: 36px; }
  .contact-form textarea { block-size: 48px; min-block-size: 48px; }
  .submit-button { min-block-size: 36px; }
  .direct-contact { gap: 3px 10px; padding-top: 5px; font-size: 10px; }
  .direct-contact p { display: none; }
  .site-footer { padding-top: 10px; padding-bottom: 10px; padding-bottom: calc(10px + var(--safe-area-bottom)); }
  .site-footer nav { margin-top: 7px; }
}

/* Only very short phones fall back to a contained Contact scroll region. */
@media (max-width: 780px) and (max-height: 560px) {
  .contact-module { --final-footer-height: 148px; }
  .contact-module > .contact { overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 390px) {
  .section { padding-inline: 24px; }
  .site-header { padding-inline: 24px; }
  .archive-stage { width: calc(100% + 24px); margin-right: -24px; }
  .site-footer { padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
