/* AVIDA — Consulting & Remodeling
   Layout concept: an architect's drawing set. Stone ground, ink linework,
   generous margins, sheet-style labels in mono, one patina-green accent. */

:root {
  --stone:   #EFEBE1;   /* page ground, honed limestone */
  --paper:   #FDFBF5;   /* raised surfaces */
  --ink:     #343620;   /* text, linework */
  --graphite:#53553B;   /* secondary text */
  --muted:   #7A7760;   /* captions */
  --line:    #C9C3B0;   /* hairlines */
  --patina:  #67603B;   /* single accent, oxidized bronze */
  --patina-2:#4F4A2B;

  --f-display: "Gambetta", "Newsreader", Georgia, "Times New Roman", serif;
  --f-roman:   "Gambetta", "Newsreader", Georgia, serif;
  --f-body:    "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "Geist", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3:  clamp(2.2rem, 1.6rem + 2.8vw, 3.75rem);
  --step-4:  clamp(3rem, 1.8rem + 6vw, 7rem);

  --wrap: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--patina); color: var(--paper); }
:focus-visible { outline: 2px solid var(--patina); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.035em; }
h3 { letter-spacing: -.02em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--graphite); max-width: 40ch; }
.label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.roman { font-family: var(--f-roman); letter-spacing: .32em; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--stone) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--stone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; gap: 6px; }
.brand-mark { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .18em; margin-right: -.18em; }
.brand-sub { font-family: var(--f-body); font-weight: 500; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--graphite); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--stone); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .nav[hidden] { display: none !important; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a.btn { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--ink); }
  .nav a:not(.btn)::after { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--f-body); font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  padding: 14px 24px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { background: var(--patina); border-color: var(--patina); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- photo frames ----------
   Drop photos into /images with the filenames in each --img. If a file
   is missing, the drawn stone tone shows instead. */
.frame {
  position: relative; overflow: hidden; margin: 0; max-width: 100%;
  background-color: #C4BEAB;
  background-image: var(--img, none), linear-gradient(160deg, #CEC9B6 0%, #B3AE9B 55%, #999583 100%);
  background-size: cover; background-position: center;
}
.frame::after { /* faint drawing grid so empty frames read as intentional */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(52,54,32,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(52,54,32,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: var(--grid, 1);
}
.frame.has-photo::after { --grid: 0; }
.frame figcaption {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-family: var(--f-body); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.35); z-index: 1;
}
.r-hero { aspect-ratio: 16 / 8; }
.r-wide { aspect-ratio: 3 / 2; }
.r-tall { aspect-ratio: 4 / 5; }
.r-sq   { aspect-ratio: 1; }
@media (max-width: 720px) { .r-hero { aspect-ratio: 4 / 5; } }

/* ---------- sections ---------- */
section { padding-block: clamp(72px, 9vw, 140px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid var(--ink); }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.hero-top { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(32px, 4vw, 56px); }
.hero h1 em { font-style: italic; color: var(--patina); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: end; }
.hero-meta .lede { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .3s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
  .reveal-img { animation: reveal 1.4s cubic-bezier(.2,.7,.2,1) .2s both; }
  @keyframes reveal { from { clip-path: inset(0 0 12% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* intro statement */
.statement { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.statement h2 { font-size: var(--step-2); line-height: 1.22; max-width: 28ch; }
@media (min-width: 900px) { .statement { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.statement-body { display: grid; gap: 28px; }

/* figures */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); }
.figure { padding: 28px 24px 8px 0; display: grid; gap: 8px; align-content: start; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .figure + .figure { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.figure .num { font-family: var(--f-display); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.figure .num sup { font-size: .45em; vertical-align: top; margin-left: 2px; color: var(--patina); }

/* disciplines */
.disciplines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 900px) { .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.discipline { display: grid; gap: 24px; align-content: start; }
.discipline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.discipline h3 { font-size: var(--step-2); }
.discipline ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.discipline li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .discipline li { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; } }
.discipline li strong { font-weight: 500; }
.discipline li span { color: var(--graphite); }

/* process — real sequence, so numbered */
.process { background: var(--ink); color: var(--paper); }
.process .label { color: #A39F8D; }
.process h2 { max-width: 18ch; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid #4D4F34; }
.steps li { padding: 28px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.steps li + li { padding-left: 24px; border-left: 1px solid #4D4F34; }
@media (max-width: 560px) { .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid #4D4F34; } }
.steps .n { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; color: #C2BA8E; }
.steps h3 { font-size: var(--step-1); }
.steps p { color: #C0BAA7; font-size: .96rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.gallery .g1 { grid-column: span 7; } .gallery .g2 { grid-column: span 5; }
.gallery .g3 { grid-column: span 4; } .gallery .g4 { grid-column: span 8; }
@media (max-width: 720px) { .gallery > * { grid-column: span 12 !important; } }

/* quote */
.quote { display: grid; gap: 28px; justify-items: start; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: var(--step-3); line-height: 1.12; max-width: 20ch; text-wrap: balance; }
.quote blockquote::before { content: "\201C"; color: var(--patina); }
.quote blockquote::after { content: "\201D"; color: var(--patina); }

/* CTA band */
.cta { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta .wrap { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.cta-side { display: grid; gap: 20px; justify-items: start; }

/* two-column text */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.prose { display: grid; gap: 20px; color: var(--graphite); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--ink); margin-top: 40px; }
.principle { padding: 28px 24px 0 0; display: grid; gap: 12px; align-content: start; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 600px) { .principle + .principle { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; } }
.principle p { color: var(--graphite); }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.person { display: grid; gap: 14px; }
.person h3 { font-size: var(--step-1); }
.person p { color: var(--graphite); font-size: .96rem; }

/* areas */
.areas { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.areas li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: var(--step-1); }
.areas li span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); align-self: center; text-transform: uppercase; }

/* ---------- form ---------- */
.intake { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 960px) { .intake { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 80px; } }
.intake-aside { display: grid; gap: 28px; align-content: start; }
@media (min-width: 960px) { .intake-aside { position: sticky; top: 112px; } }
.contact-lines { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.contact-lines div { display: grid; gap: 2px; }
.contact-lines a, .contact-lines span.v { text-decoration: none; font-size: 1.05rem; }

form.inquiry { display: grid; gap: 48px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; min-width: 0; }
legend { padding: 0 0 16px; width: 100%; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-display); font-size: var(--step-1); }
legend .label { align-self: center; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .group-label { font-size: .86rem; font-weight: 500; color: var(--graphite); }
.field .opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 14px; transition: border-color .2s ease, background .2s ease;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 150px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; transition: all .2s ease; cursor: pointer; }
.chip-opt input:hover + span { border-color: var(--muted); }
.chip-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--patina); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.form-foot p { font-size: .86rem; color: var(--muted); max-width: 44ch; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #8a2e1f; font-size: .9rem; }
.form-done { display: grid; gap: 16px; padding: 40px 0; border-top: 1px solid var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C7C1AE; padding-block: 72px 32px; }
.site-footer a { text-decoration: none; color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.foot-mark { font-family: var(--f-display); color: var(--paper); font-size: clamp(3rem, 14vw, 11rem); letter-spacing: .12em; line-height: 1; margin: 64px 0 32px; white-space: nowrap; overflow: hidden; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .label { color: #8C8874; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #484B30; padding-top: 24px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8C8874; }

/* =========================================================
   v2 — studio layout (homepage)
   ========================================================= */

/* header utilities: phone + email beside nav */
.head-meta { display: flex; gap: 20px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
.head-meta a { text-decoration: none; }
.head-meta a:hover { color: var(--ink); }
@media (max-width: 1100px) { .head-meta { display: none; } }

/* giant wordmark hero */
.mast { padding-block: clamp(24px, 4vw, 48px) 0; overflow: hidden; }
.mast-word {
  font-family: var(--f-display); font-weight: 400; line-height: .8;
  font-size: clamp(5.5rem, 28vw, 26rem); letter-spacing: -.02em;
  display: flex; justify-content: space-between; margin: 0 -.02em;
  color: var(--ink);
}
.mast-word span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .mast-word span { animation: letter 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .mast-word span:nth-child(2) { animation-delay: .06s; } .mast-word span:nth-child(3) { animation-delay: .12s; }
  .mast-word span:nth-child(4) { animation-delay: .18s; } .mast-word span:nth-child(5) { animation-delay: .24s; }
  @keyframes letter { from { transform: translateY(18%); } to { transform: none; } }
}
.mast-sub { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--ink); margin-top: clamp(12px, 2vw, 24px); padding-top: 14px; }
.mast-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .mast-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.mast-col { display: grid; gap: 14px; align-content: start; }
.mast-col p { color: var(--graphite); max-width: 36ch; }
.mast-cta { display: flex; align-items: end; justify-content: flex-start; }
@media (min-width: 900px) { .mast-cta { justify-content: flex-end; } }
.mast-photo { aspect-ratio: 2 / 1; }
@media (max-width: 720px) { .mast-photo { aspect-ratio: 4 / 5; } }

/* introduction with est. mark */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 900px) { .intro { grid-template-columns: 200px minmax(0, 1fr) 160px; gap: 56px; } }
.intro h2 { font-size: var(--step-3); line-height: 1.08; max-width: 20ch; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.est { display: grid; gap: 6px; justify-items: start; }
@media (min-width: 900px) { .est { justify-items: end; text-align: right; } }
.est .big { font-family: var(--f-display); font-size: var(--step-3); line-height: 1; }

/* project slider */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; margin: 0; }
.slide .frame { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .slide .frame { aspect-ratio: 4 / 5; } }
.slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; flex-wrap: wrap; }
.slider-title { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.slider-title h3 { font-size: var(--step-2); }
.slider-count { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider-ctrl { display: flex; gap: 8px; }
.slider-ctrl button { width: 48px; height: 48px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: background .25s, color .25s; }
.slider-ctrl button:hover { background: var(--ink); color: var(--paper); }
.slider-ctrl button:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }

/* capabilities: two columns, each a titled list */
.caps-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) { .caps-head { grid-template-columns: 200px minmax(0, 1fr) auto; gap: 56px; align-items: end; } }
.caps-head p { font-size: var(--step-1); line-height: 1.45; color: var(--graphite); max-width: 44ch; }
.caps-head .tag { font-family: var(--f-display); font-size: var(--step-1); font-style: italic; color: var(--patina); }
.caps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 900px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.cap-group h3 { font-size: var(--step-2); padding-bottom: 16px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cap-group h3 .label { font-size: .72rem; }
.cap-list { list-style: none; margin: 0; padding: 0; }
.cap-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cap-list .k { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); padding-top: 5px; grid-row: span 2; }
.cap-list strong { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); line-height: 1.2; }
.cap-list span:last-child { color: var(--graphite); font-size: .96rem; }

/* on-site process: statement + two tall images with captions */
.onsite h2 { font-size: var(--step-2); line-height: 1.22; max-width: 34ch; }
.onsite-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .onsite-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); gap: 32px; } .onsite-grid .second { margin-top: 120px; } }
.onsite-text { display: grid; gap: 20px; align-content: start; }
.onsite-text h3 { font-size: var(--step-2); }
.onsite-text p { color: var(--graphite); }
.onsite-fig { display: grid; gap: 12px; margin: 0; }
.onsite-fig .frame { aspect-ratio: 4 / 5; }
.onsite-fig p { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.25; }

/* statistics */
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; }
@media (min-width: 900px) { .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 40px; } }
.stat { display: grid; gap: 10px; border-top: 1px solid var(--ink); padding-top: 20px; }
.stat .num { font-family: var(--f-display); font-size: clamp(4.5rem, 3rem + 8vw, 11rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .num sup { font-size: .32em; vertical-align: top; color: var(--patina); letter-spacing: 0; margin-left: 6px; }
.stat p { color: var(--graphite); max-width: 30ch; }
.stats .frame { aspect-ratio: 5 / 6; }

/* photo marquee + text ticker */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; }
.marquee-track .frame { height: clamp(220px, 30vw, 380px); flex: none; }
.marquee-track .frame.w { aspect-ratio: 3 / 2; } .marquee-track .frame.t { aspect-ratio: 4 / 5; }
.ticker { overflow: hidden; border-block: 1px solid var(--ink); padding-block: 22px; }
.ticker-track { display: flex; gap: 56px; width: max-content; font-family: var(--f-display); font-size: var(--step-2); white-space: nowrap; }
.ticker-track span::after { content: "\2726"; color: var(--patina); font-size: .5em; margin-left: 56px; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 70s linear infinite; }
  .ticker-track { animation: slide 45s linear infinite; }
  .marquee:hover .marquee-track, .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee, .ticker { overflow-x: auto; } }

/* footer clock */
.clock { font-variant-numeric: tabular-nums; }

/* project showcase — full-bleed, centered serif title */
.showcase { padding-block: 0; }
.show-stage { position: relative; height: clamp(520px, 86vh, 920px); overflow: hidden; background: var(--ink); color: #fff; touch-action: pan-y; outline: none; }
.show-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.show-slide .frame { position: absolute; inset: 0; height: 100%; transform: scale(1.06); transition: transform 7s ease-out; }
.show-slide .frame::after { display: none; }
.show-slide.is-active { opacity: 1; }
.show-slide.is-active .frame { transform: scale(1); }
.show-overlay { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr auto 1fr; align-items: center;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 28px;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.05) 35%, rgba(0,0,0,.05) 65%, rgba(0,0,0,.35)); }
.show-line { grid-column: 1 / -1; grid-row: 2; height: 1px; background: rgba(255,255,255,.55); }
.show-count, .show-title, .show-link { grid-row: 2; position: relative; z-index: 1; }
.show-count { grid-column: 1; justify-self: start; font-family: var(--f-body); font-weight: 500; font-size: .85rem; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--paper); padding: 6px 10px; }
.show-title { grid-column: 2; text-align: center; display: grid; gap: 10px; justify-items: center; }
.show-title h2 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 6rem); line-height: .95; letter-spacing: -.045em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); padding-inline: 18px; background: none; }
.show-meta { font-family: var(--f-body); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.show-link { grid-column: 3; justify-self: end; color: #fff; text-decoration: none; font-weight: 500; font-size: .9rem; background: var(--ink); padding: 6px 12px; }
.show-link:hover { background: var(--patina); }
.show-ctrl { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; display: flex; gap: 8px; }
.show-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.15); color: #fff; font-size: 1rem; cursor: pointer; backdrop-filter: blur(6px); transition: background .25s, color .25s; }
.show-ctrl button:hover { background: #fff; color: var(--ink); }
.show-progress { grid-column: 1 / 3; grid-row: 3; align-self: end; height: 2px; background: rgba(255,255,255,.25); max-width: 240px; margin-bottom: 21px; }
.show-progress span { display: block; height: 100%; width: 0; background: #fff; }
.show-title.swap h2, .show-title.swap .show-meta { animation: titleIn .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes titleIn { from { opacity: .0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .show-stage { height: clamp(460px, 78vh, 700px); }
  .show-overlay { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr; row-gap: 14px; }
  .show-title { grid-column: 1 / -1; grid-row: 2; }
  .show-line { grid-row: 3; }
  .show-count { grid-column: 1; grid-row: 3; } .show-link { grid-column: 2; grid-row: 3; }
  .show-ctrl { grid-column: 2; grid-row: 4; } .show-progress { grid-column: 1; grid-row: 4; }
}
@media (prefers-reduced-motion: reduce) { .show-slide, .show-slide .frame { transition: none; } .show-title.swap h2, .show-title.swap .show-meta { animation: none; } }

/* home intro — photo window flips through work, then opens to the page */
.intro { display: none; }
html.is-loading { overflow: hidden; }
html.is-loading .intro, .intro.is-leaving {
  display: block; position: fixed; inset: 0; z-index: 100; background: var(--stone);
}
.intro-window { position: absolute; inset: 0; clip-path: inset(34% 37% 34% 37%); transition: clip-path 1.15s cubic-bezier(.76,0,.24,1); }
@media (max-width: 720px) { .intro-window { clip-path: inset(36% 16% 36% 16%); } }
.intro-window img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
.intro-window img.on { opacity: 1; }
.intro.is-open .intro-window { clip-path: inset(0 0 0 0); }
.intro-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 16px;
  padding: 0 max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); transition: opacity .4s ease; }
.intro-count { font-family: var(--f-display); font-size: clamp(4rem, 2rem + 8vw, 10rem); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.intro-tag { font-family: var(--f-body); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.intro.is-open .intro-foot { opacity: 0; }
.intro.is-leaving { opacity: 0; transition: opacity .8s ease; pointer-events: none; }

/* hold the page's entrance animations until the intro finishes */
html.is-loading .mast-word span, html.is-loading .rise, html.is-loading .reveal-img { animation-play-state: paused; }
