/* ==========================================================================
   ARCH — archunites.com
   One-page site. Palette + type taken from the approved design mock-up.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted webfonts (Cormorant Garamond + DM Sans, SIL Open Font License)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/dm-sans-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}

:root {
  --stone:      #F1EEE9;   /* warm cream section */
  --paper:      #FBFBF9;   /* off-white section */
  --ink:        #1F1F1F;   /* headings */
  --ink-soft:   #4A4741;   /* body copy */
  --muted:      #8A8175;   /* eyebrows, meta */
  --line:       #DDD8D0;   /* hairlines */
  --dark:       #2B2B2B;   /* dark sections + footer */
  --dark-line:  rgba(255, 255, 255, .16);
  --on-dark:    #F4F2EE;
  --on-dark-mut:#A9A49B;

  --wrap:  1240px;
  --gutter: 32px;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad-y: clamp(72px, 9vw, 132px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the fixed header */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow-light { color: rgba(255, 255, 255, .8); }
.eyebrow-dark  { color: var(--on-dark-mut); }

.body-sm {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46ch;
}
.body-sm:last-child { margin-bottom: 0; }
.body-sm.centered { margin-inline: auto; text-align: center; max-width: 52ch; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.16;
  letter-spacing: .002em;
  color: var(--ink);
  margin: 0 0 18px;
}
.display-left {
  font-size: clamp(28px, 3.2vw, 39px);
  max-width: 400px;
  text-wrap: balance;
}
.display-light { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn-ghost-light { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-ghost-dark { border-color: var(--dark-line); color: var(--on-dark); margin-top: 26px; }
.btn-ghost-dark:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

.btn-solid { border-color: var(--ink); color: var(--ink); margin-top: 30px; }
.btn-solid:hover { background: var(--ink); color: var(--paper); }

.btn-light { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-light[disabled] { opacity: .55; cursor: progress; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 251, 249, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* The logo ships in two colourways: the light one reads over the hero photo,
   the dark one over the pale background once the header condenses. Both are
   stacked so the swap is a cross-fade with no layout shift or reload. */
.brand {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(112px, 11vw, 138px);
  aspect-ratio: 513 / 232;
  text-decoration: none;
  line-height: 0;
}
.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .35s var(--ease);
}
.brand-logo-dark { opacity: 0; }
.site-header.is-scrolled .brand-logo-light,
.site-header.is-open .brand-logo-light { opacity: 0; }
.site-header.is-scrolled .brand-logo-dark,
.site-header.is-open .brand-logo-dark { opacity: 1; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.site-nav a {
  position: relative;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .35s var(--ease), opacity .3s var(--ease);
}
.site-header.is-scrolled .site-nav a { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { opacity: 1; }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .25s var(--ease), background-color .35s var(--ease);
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-open .nav-toggle span { background: var(--ink); }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(600px, 92vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(22, 24, 26, .74) 0%, rgba(22, 24, 26, .5) 46%, rgba(22, 24, 26, .24) 100%),
    linear-gradient(to bottom, rgba(22, 24, 26, .42) 0%, rgba(22, 24, 26, .12) 34%, rgba(22, 24, 26, .3) 100%);
}
.hero-inner { padding-top: 96px; padding-bottom: 40px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 1.06;
  color: #fff;
  margin: 0 0 30px;
  text-wrap: balance;
}
.hero-lede {
  max-width: 54ch;
  margin: 0 0 40px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.78;
  color: rgba(255, 255, 255, .9);
}

/* --------------------------------------------------------------------------
   Section shells
   -------------------------------------------------------------------------- */

.section { padding-block: var(--pad-y); }
.section-stone { background: var(--stone); }
.section-paper { background: var(--paper); }
.section-dark  { background: var(--dark); color: var(--on-dark); }

.grid-split {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.section-head-center { text-align: center; margin-bottom: clamp(46px, 6vw, 76px); }
.arch-divider {
  width: 148px;
  height: auto;
  margin: 4px auto 20px;
}

/* What we believe -------------------------------------------------------- */

.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.9vw, 46px);
  line-height: 1.26;
  color: var(--ink);
  margin: 0 0 14px;
}
.statement:last-child { margin-bottom: 0; }
.statement-accent {
  font-style: italic;
  color: var(--muted);
  margin-top: 22px;
}

/* Framework -------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 46px 40px 10px;
  border-right: 1px solid var(--line);
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child  { border-right: 0; padding-right: 0; }
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px;
}

/* Upstream band ---------------------------------------------------------- */

.band {
  position: relative;
  min-height: clamp(260px, 34vw, 420px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  z-index: -2;
}
.band-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(20, 22, 24, .48) 0%, rgba(20, 22, 24, .2) 55%, rgba(20, 22, 24, .06) 100%);
}
.band-inner { padding-block: 40px; }
.band-quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.2;
  color: #fff;
  max-width: 14ch;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .32);
}

/* What we do ------------------------------------------------------------- */

.ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.way {
  padding: 34px 40px 34px 0;
  border-bottom: 1px solid var(--line);
}
.way:nth-child(odd) { border-right: 1px solid var(--line); }
.way:nth-child(even) { padding-left: 40px; padding-right: 0; }
.way-num {
  display: block;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 12px;
}
.way h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 12px;
}
.way .body-sm { max-width: 42ch; }

/* Who we work with ------------------------------------------------------- */

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chips li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 22px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   ARCH in Action
   -------------------------------------------------------------------------- */

/* The pilot overview is a 16:9 landscape deck, so the preview column carries
   more width than the copy — a wide cover shown small reads as an afterthought. */
.grid-action {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.25fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.action-copy .display-left { max-width: 100%; margin-bottom: 8px; }
.action-partner {
  margin: 0 0 20px;
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--muted);
}
.action-copy .body-sm { max-width: 52ch; }

.action-doc { display: flex; justify-content: center; }

.doc-stack {
  position: relative;
  display: block;
  width: min(620px, 100%);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .45s var(--ease);
}
.doc-stack:hover { transform: translateY(-4px); }

/* The width/height attributes on this tag reserve its space before the lazy
   load resolves — without them the section grows mid-scroll and any smooth
   scroll already in flight lands short. `height: auto` keeps the attributes
   from being applied literally. */
.doc-cover {
  position: relative;
  z-index: 3;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -18px rgba(31, 31, 31, .34);
}
.doc-sheet {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--stone);
  border-radius: 1px;
}
.doc-sheet-2 { z-index: 2; inset: -10px -12px 10px 12px; box-shadow: 0 12px 30px -20px rgba(31, 31, 31, .3); }
.doc-sheet-3 { z-index: 1; inset: -19px -23px 19px 23px; opacity: .6; }

.doc-badge {
  position: absolute;
  z-index: 4;
  right: -12px;
  bottom: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 14px;
}

/* --------------------------------------------------------------------------
   Founder — the portrait stays deliberately small so the ideas lead
   -------------------------------------------------------------------------- */

.founder-portrait {
  width: clamp(120px, 12vw, 160px);
  /* height must be reset: the width/height attributes on the tag act as a
     presentational hint, which would otherwise beat aspect-ratio */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 6px;
}
.founder-copy .display-left { max-width: 100%; margin-bottom: 22px; }
.founder-copy .body-sm { max-width: 58ch; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-inner { text-align: center; max-width: 760px; }
.contact-mark {
  width: 148px;
  height: auto;
  margin: 0 auto 20px;
}
.contact-inner .display-light { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; }

.contact-lede {
  margin: 0 auto 40px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark-mut);
}

/* The form stays folded away until someone asks for it, so the section reads
   as an invitation rather than a task. */
.contact-open { margin-bottom: 40px; }
.contact-open[hidden] { display: none; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  text-align: left;
  margin-bottom: 34px;
}
.contact-form[hidden] { display: none; }
.contact-form.is-revealed { animation: unfold .5s var(--ease); }

@keyframes unfold {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.field { display: grid; gap: 9px; }
.field-full { grid-column: 1 / -1; }

.contact-form label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dark-line);
  padding: 10px 2px;
  border-radius: 0;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.contact-form input:hover,
.contact-form textarea:hover { border-bottom-color: rgba(255, 255, 255, .32); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--on-dark);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-bottom-color: #C9846B; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-status {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-dark-mut);
}
.form-status.is-error { color: #E0A48C; }
.form-status.is-ok { color: var(--on-dark); }

.contact-alt {
  margin: 0;
  font-size: 13.5px;
  color: var(--on-dark-mut);
}
.contact-alt a {
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--dark-line);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.contact-alt a:hover { border-bottom-color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-mut);
  padding-top: 76px;
  border-top: 1px solid var(--dark-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: 64px;
}
.footer-logo { width: 152px; height: auto; margin-bottom: 24px; }
.footer-blurb {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 34ch;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--on-dark);
  text-decoration: none;
  opacity: .85;
  transition: opacity .25s var(--ease);
}
.footer-col a:hover { opacity: 1; }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 26px 34px;
  font-size: 12.5px;
}
.footer-base {
  border-top: 1px solid var(--dark-line);
  justify-content: flex-end;   /* the copyright is the only thing left down here */
}
.footer-base p { margin: 0; }
.footer-copyright { opacity: .8; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}
.lightbox[hidden] { display: none; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 24, .88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade .3s var(--ease);
}

.lb-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: rise .38s var(--ease);
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--on-dark);
}
.lb-title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.lb-sep { opacity: .4; margin: 0 8px; }
.lb-count { color: var(--on-dark-mut); }

.lb-bar-actions { display: flex; align-items: center; gap: 18px; }
.lb-download {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 3px;
  transition: border-color .25s var(--ease);
}
.lb-download:hover { border-bottom-color: var(--on-dark); }

/* The pilot pages are landscape and text-heavy, so at phone width they fit but
   cannot be read. Zoom scales the page past the stage and lets it pan. */
.lb-zoom {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 3px;
  transition: border-color .25s var(--ease);
}
.lb-zoom:hover { border-bottom-color: var(--on-dark); }

.lightbox.is-zoomed .lb-stage {
  overflow: auto;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}
.lightbox.is-zoomed .lb-page {
  max-width: none;
  max-height: none;
  width: 260%;
  flex: none;
}
.lightbox.is-zoomed .lb-nav { display: none; }

.lb-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: none;
  color: var(--on-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lb-close:hover { background: var(--on-dark); color: var(--dark); }

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lb-page {
  max-width: 100%;
  max-height: min(74vh, 900px);
  width: auto;
  object-fit: contain;
  background: var(--stone);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(24, 24, 24, .5);
  color: var(--on-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.lb-nav:hover { background: var(--on-dark); color: var(--dark); }
.lb-nav[disabled] { opacity: .25; cursor: default; }
.lb-nav[disabled]:hover { background: rgba(24, 24, 24, .5); color: var(--on-dark); }
.lb-prev { left: clamp(-58px, -4vw, -8px); }
.lb-next { right: clamp(-58px, -4vw, -8px); }

.lb-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.lb-dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .26);
  cursor: pointer;
  transition: background-color .25s var(--ease);
}
.lb-dots button[aria-selected="true"] { background: var(--on-dark); }

body.lb-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Reveal on scroll — slow, small, and never more than a settle into place.
   The stagger delay is set per-element by main.js via --reveal-delay.
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1.05s var(--ease) var(--reveal-delay, 0ms),
    transform 1.05s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 10.5px; letter-spacing: .12em; }
}

@media (max-width: 940px) {
  html { scroll-padding-top: 78px; }

  .lb-zoom { display: inline-block; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    padding: 96px var(--gutter) 40px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%);
    transition: transform .42s var(--ease);
    box-shadow: 0 24px 50px -30px rgba(31, 31, 31, .4);
  }
  .site-header.is-open { background: rgba(251, 251, 249, .98); }
  .site-header.is-open .site-nav { transform: none; }
  .site-nav a {
    color: var(--ink);
    font-size: 13px;
    letter-spacing: .16em;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }

  .grid-split,
  .grid-action { grid-template-columns: 1fr; }

  .display-left { max-width: 18ch; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 34px 0; }
  .pillar:last-child { border-bottom: 0; }

  .action-doc { justify-content: flex-start; }
  /* leave room for the sheets peeking out to the right of the cover */
  .doc-stack { width: calc(100% - 24px); margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --gutter: 22px; }

  .hero { min-height: 88vh; }
  .hero-inner { padding-top: 110px; }

  .ways { grid-template-columns: 1fr; }
  .way,
  .way:nth-child(even) { padding: 28px 0; border-right: 0; }
  .way:nth-child(odd) { border-right: 0; }

  .chips { gap: 10px; }
  .chips li { font-size: 12.5px; padding: 12px 16px; }

  .contact-form { grid-template-columns: 1fr; gap: 22px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; }

  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-nav { width: 40px; height: 40px; font-size: 21px; }
  .lb-page { max-height: 62vh; }

  /* keep the viewer bar on one line — the document name is redundant here */
  .lb-bar { flex-wrap: nowrap; }
  .lb-doc, .lb-sep { display: none; }
  .lb-bar-actions { gap: 12px; }
  .lb-download,
  .lb-zoom { font-size: 10.5px; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .lightbox, .nav-toggle { display: none !important; }
  .hero-scrim, .band-scrim { display: none; }
  body { background: #fff; }
}
