/* =========================================================================
   KEITA TURNER DESIGN — site.css
   Editorial design system (adapted from the studio's black-and-white
   reference build) rendered in Keita Turner's sharpened brand palette:
   deep slate-charcoal ink, terracotta accent, warm ivory canvas.
   Typography: Instrument Serif (display) + Instrument Sans (body);
   Jost geometric sans for the wordmark.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --canvas:      #FAF7F2;   /* warm ivory page */
  --canvas-2:    #F1EADF;   /* deeper warm sand — alternating bands */
  --ink:         #21252B;   /* deep slate-charcoal — dark sections */
  --ink-2:       #171A1F;   /* deepest slate */
  --text:        #2B2F36;   /* body text on light */
  --muted:       #6A6358;   /* warm taupe-grey secondary text (AA on sand + ivory) */
  --terracotta:  #BE5A2C;   /* signature rust accent (large text, rules, decoration) */
  --terracotta-2:#A2481F;   /* deeper accent (hover) */
  --rust-text:   #A2481F;   /* accessible rust for SMALL text on light (5.6:1 ivory) */
  --rust-on-dark:#E4906A;   /* accessible rust for small text on dark ink */
  --brass:       #A6864F;   /* fine metallic detail */
  --line:        rgba(33,37,43,0.16);
  --line-soft:   rgba(33,37,43,0.10);
  --line-dark:   rgba(250,247,242,0.18);
  --ivory:       #FAF7F2;

  --font-display: "Instrument Serif", "Georgia", serif;
  --font-body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mark:    "Jost", "Futura", "Century Gothic", sans-serif;

  --wrap: 1440px;
  --wrap-wide: 1760px;
  --header-h: 82px;
  --tracking-label: 0.22em;
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px){ body { font-size: 1rem; } }
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--terracotta); color: #fff; }

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

/* ---------- layout ---------- */
.wrap    { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.35rem; }
.wrap-wide { max-width: var(--wrap-wide); margin-inline: auto; padding-inline: 1.35rem; }
@media (min-width: 768px){ .wrap, .wrap-wide { padding-inline: 2.5rem; } }
.section  { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.on-dark { background: var(--ink); color: var(--ivory); }
.on-sand { background: var(--canvas-2); }
.center { text-align: center; }

/* ---------- typography ---------- */
.font-display { font-family: var(--font-display); font-weight: 400; }

.display-xl {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 7.4vw, 6.8rem);
  line-height: 0.98; letter-spacing: 0.005em; text-transform: uppercase;
  overflow-wrap: break-word;
}
.display-lg {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.02; letter-spacing: 0.006em; text-transform: uppercase;
}
.display-md {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.08; letter-spacing: 0.008em; text-transform: uppercase;
}
.statement {
  font-family: var(--font-display); font-weight: 400; text-transform: none;
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  line-height: 1.15; letter-spacing: 0; text-wrap: balance;
}
.statement-sm {
  font-family: var(--font-display); font-weight: 400; text-transform: none;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.22; text-wrap: balance;
}
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.eyebrow {
  font-family: var(--font-body); font-size: 0.7rem;
  letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 600;
}
.eyebrow-accent { color: var(--rust-text); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; }
.body-lg { font-size: 1.11rem; line-height: 1.72; }
.muted { color: var(--muted); }
.accent { color: var(--rust-text); }
.on-dark .accent, .on-dark .eyebrow-accent, .on-dark .card-cat { color: var(--rust-on-dark); }

.prose p { margin-bottom: 1.15em; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--rust-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(162,72,31,0.5); transition: color .2s, text-decoration-color .2s; }
.prose a:hover { color: var(--terracotta-2); text-decoration-color: var(--terracotta-2); }
.measure   { max-width: 62ch; }
.measure-sm{ max-width: 48ch; }

/* ---------- links & buttons ---------- */
.link { transition: color .22s, opacity .22s; }
.link:hover { color: var(--terracotta); }
.link-arrow::after { content: "→"; display: inline-block; margin-left: .5em; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-underline { position: relative; }
.link-underline::after { content:""; position:absolute; left:0; right:0; bottom:-3px; height:1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.link-underline:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 1px solid var(--ink); padding: 1rem 2.2rem;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  transition: background-color .32s, color .32s, border-color .32s;
}
.btn-ink   { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-accent { background: var(--terracotta); color:#fff; border-color: var(--terracotta); }
.btn-accent:hover { background: var(--terracotta-2); border-color: var(--terracotta-2); }
.btn-ivory { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-ivory:hover { background: var(--ivory); color: var(--ink); }

:where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid var(--terracotta); outline-offset: 3px;
}
.on-dark :where(a,button):focus-visible { outline-color: var(--ivory); }

/* ---------- imagery ---------- */
.img-frame { overflow: hidden; display: block; background: var(--canvas-2); position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.19,1,.22,1); }
.ratio-hero  { aspect-ratio: 16 / 9; }
.ratio-4x5   { aspect-ratio: 4 / 5; }
.ratio-4x3   { aspect-ratio: 4 / 3; }
.ratio-3x2   { aspect-ratio: 3 / 2; }
.ratio-1x1   { aspect-ratio: 1 / 1; }
.ratio-banner{ aspect-ratio: 21 / 10; }
a:hover .img-frame img, .card:hover .img-frame img { transform: scale(1.04); }

/* image fade-in on load */
.fade-img { opacity: 0; transition: opacity .8s ease; }
.fade-img.is-loaded { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
/* transparent, light-on-dark only while sitting over the hero at the very top */
.site-header.on-hero.at-top {
  background: transparent; border-color: transparent; color: var(--ivory);
  backdrop-filter: none;
}
.site-header.on-hero.at-top .wordmark-1 { color: var(--ivory); }
.site-header.on-hero.at-top .burger span { background: var(--ivory); }
.site-header.on-hero.at-top .btn-ghost { border-color: rgba(250,247,242,.5); color: var(--ivory); }
.site-header.on-hero.at-top .btn-ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
@media (max-width:768px){ :root { --header-h: 68px; } }

.wordmark { font-family: var(--font-mark); font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: 0.16em; white-space: nowrap; line-height: 1; display: inline-flex; gap: 0.42em; }
.wordmark-1 { color: var(--ink); transition: color .3s; }
.wordmark-2 { color: var(--terracotta); }

/* real brand logo (image) */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo .logo-mark { height: 27px; width: auto; display: block; }
@media (max-width: 900px){ .brand-logo .logo-mark { height: 22px; } }
@media (max-width: 420px){ .brand-logo .logo-mark { height: 18px; } }
.brand-logo .logo-light { display: none; }
.site-header.on-hero.at-top .brand-logo .logo-dark { display: none; }
.site-header.on-hero.at-top .brand-logo .logo-light { display: block; }

.nav { display: none; align-items: center; gap: 2.1rem; }
@media (min-width: 1024px){ .nav { display: flex; } }
.nav > .nav-item { position: relative; }
.nav-link { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; padding: .5rem 0; display: inline-flex; align-items: center; gap: .35rem; transition: color .2s; }
.nav-link:hover, .nav-item:hover .nav-link { color: var(--terracotta); }
.nav-caret { width: 7px; height: 7px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 232px; background: var(--canvas); border: 1px solid var(--line);
  padding: .55rem; opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s;
  box-shadow: 0 24px 60px -30px rgba(20,22,26,.45);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: .62rem .85rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text); transition: background .18s, color .18s; }
.dropdown a:hover { background: var(--canvas-2); color: var(--terracotta); }

.header-cta { display: none; }
@media (min-width: 1024px){ .header-cta { display: inline-flex; } }
.btn-sm { padding: .72rem 1.5rem; font-size: 0.64rem; }

/* burger */
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 30px; padding: 6px 0; }
@media (min-width: 1024px){ .burger { display: none; } }
.burger span { height: 1.6px; width: 100%; background: currentColor; transition: transform .3s, opacity .3s; }
.site-header.on-hero.at-top .burger span { background: var(--ivory); }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--canvas); transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); overflow-y: auto; visibility: hidden; }
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu-inner { padding: 1.4rem 1.5rem 4rem; }
.mobile-top { display:flex; align-items:center; justify-content: space-between; height: 68px; }
.mobile-close { font-size: 1.6rem; line-height: 1; }
.mobile-nav { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.mobile-nav .m-group { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.mobile-nav .m-head { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; color: var(--ink); }
.mobile-nav button.m-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; line-height: 1.1; }
.mobile-nav button.m-head::after { content: "+"; font-family: var(--font-body); font-size: 1.4rem; color: var(--muted); transition: transform .25s ease; }
.mobile-nav button.m-head[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--terracotta); }
a.m-head { display: block; }
.mobile-nav .m-sub { margin-top: .6rem; display: grid; gap: .1rem; }
.mobile-nav .m-sub a { font-size: 0.82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: .35rem 0; }
.mobile-nav .m-sub a:hover { color: var(--terracotta); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); }
.site-footer a { color: rgba(250,247,242,.72); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 3rem; padding-block: clamp(3.5rem,6vw,5.5rem); }
@media (min-width: 900px){ .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-h { font-size: 0.68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(250,247,242,.5); margin-bottom: 1.1rem; }
.footer-list { display: grid; gap: .6rem; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: 0.74rem; letter-spacing: .04em; color: rgba(250,247,242,.55); }
.footer-social { display: flex; gap: 1.1rem; }
.footer-social a { display: inline-flex; }
.footer-social svg { width: 18px; height: 18px; fill: rgba(250,247,242,.7); transition: fill .2s; }
.footer-social a:hover svg { fill: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--ivory); overflow: hidden; margin-top: calc(-1 * var(--header-h)); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,13,15,.72) 0%, rgba(12,13,15,.22) 42%, rgba(12,13,15,.12) 100%); }
.hero-inner { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(3rem,6vw,4.5rem); padding-top: 8rem; }
.hero-inner .text-shadow { text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-page { min-height: 62vh; }
.hero-page .hero-inner { min-height: 62vh; justify-content: flex-end; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { display: grid; gap: clamp(2rem,4vw,3.5rem); }
@media (min-width: 900px){ .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2.tilt { align-items: center; }
@media (min-width: 900px){ .grid-2.tilt { grid-template-columns: 1fr 1.12fr; } }

.cards { display: grid; gap: clamp(1.6rem,3vw,2.6rem) 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px){ .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .cards-3 { grid-template-columns: repeat(3,1fr); } }
.cards-2up { max-width: 940px; margin-inline: auto; }

.card { display: block; }
.card-body { display: block; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.card-cat { display: block; font-family: var(--font-body); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--rust-text); }
.card-title { display: block; margin-top: 0.6rem; font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; line-height: 1.12; letter-spacing: 0.015em; color: var(--ink); transition: color .25s; text-wrap: balance; }
.card:hover .card-title { color: var(--terracotta); }
.card-loc { display: block; margin-top: 0.7rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-tag { display: block; margin-top: 0.7rem; font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.3; color: var(--muted); }
.card-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 0.9rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--muted); transition: color .25s, gap .25s; }
.card:hover .card-more { color: var(--ink); gap: .7rem; }
/* on dark sections */
.on-dark .card-body { border-top-color: var(--line-dark); }
.on-dark .card-title { color: var(--ivory); }
.on-dark .card:hover .card-title { color: var(--terracotta); }

/* index rows (dark service list) */
.index-list { border-top: 1px solid var(--line-dark); }
.index-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem .25rem; border-bottom: 1px solid var(--line-dark); transition: padding .3s, color .3s; }
.index-row .index-label { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.35rem,2.2vw,1.75rem); transition: opacity .2s; }
.index-row .index-arrow { opacity: .5; transition: transform .3s; }
.index-row:hover { padding-left: 1rem; padding-right: 1rem; }
.index-row:hover .index-label { color: var(--terracotta); }
.index-row:hover .index-arrow { transform: translateX(6px); opacity: 1; }

/* stat / figures */
.stats { display: grid; gap: 2rem 1rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 768px){ .stats { grid-template-columns: repeat(4,1fr); } }
.stat .stat-num { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.4rem); line-height: 1; color: var(--terracotta); }
.stat .stat-label { margin-top: .6rem; font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.on-dark .stat .stat-label { color: rgba(250,247,242,.6); }

/* rule */
.rule { border: 0; border-top: 1px solid var(--line); }
.on-dark .rule { border-top-color: var(--line-dark); }

/* pill / tags */
.tag { display:inline-block; font-size:0.64rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color: var(--terracotta); border:1px solid var(--terracotta); padding:.4rem .8rem; }

/* ---------- project detail gallery ---------- */
.pgal { columns: 1; column-gap: 1.1rem; }
@media (min-width: 700px){ .pgal { columns: 2; } }
@media (min-width: 1200px){ .pgal { columns: 3; } }
.pgal .pgal-item { break-inside: avoid; margin-bottom: 1.1rem; cursor: zoom-in; }
.pgal .pgal-item img { width: 100%; height: auto; }

.pgal-2 { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 800px){ .pgal-2 { grid-template-columns: 1fr 1fr; } }
.pgal-2 .span-2 { grid-column: 1 / -1; }

/* ---------- credits block ---------- */
.credits { display: grid; gap: 1.1rem 2.5rem; }
@media (min-width: 640px){ .credits { grid-template-columns: repeat(2,auto); justify-content: start; } }
.credits dt { font-size: 0.66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.credits dd { font-family: var(--font-display); font-size: 1.15rem; margin-top: .2rem; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.3rem; }
.field label { display:block; margin-bottom:.5rem; font-size:0.68rem; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color: var(--muted); }
.field input, .field textarea, .field select {
  width:100%; border:1px solid var(--line); background: #fff; padding:.9rem 1rem;
  font: inherit; font-size:.95rem; color: var(--text); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terracotta); }
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- press list ---------- */
.press-list { border-top: 1px solid var(--line); }
.press-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: baseline; padding: 1.15rem .2rem; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }
.press-row:hover { padding-inline: .8rem; background: var(--canvas-2); }
.press-pub { font-family: var(--font-display); font-size: clamp(1.05rem,1.7vw,1.4rem); text-transform: uppercase; letter-spacing: .01em; }
.press-date { font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.press-note { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 640px){
  .press-row { grid-template-columns: 1fr; gap:.3rem; }
  .press-date { order: -1; }
}

/* ---------- press logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6rem 2.4rem; align-items: center; justify-items: center; max-width: 1060px; margin-inline: auto; }
@media (min-width: 620px){ .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px){ .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.logo-wall img {
  max-height: 40px; max-width: 158px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.72; mix-blend-mode: multiply;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.logo-wall img:hover { opacity: 1; filter: grayscale(0); }
@media (max-width: 480px){ .logo-wall img { max-height: 32px; max-width: 128px; } }

/* ---------- awards grid ---------- */
.awards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px){ .awards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .awards { grid-template-columns: 1fr 1fr 1fr; } }
.award { background: var(--canvas); padding: 1.8rem 1.6rem; }
.award .a-year { font-family: var(--font-display); color: var(--rust-text); font-size: 1.4rem; }
.award .a-year:empty { display: none; }
.award .a-title { margin-top: .5rem; font-size: 0.95rem; line-height: 1.5; }

/* ---------- reveal motion (opt-in via html.js so no-JS users and
   crawlers always see full content) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ html.js .reveal { opacity:1; transform:none; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(16,17,19,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.4rem; padding: 1rem 1.4rem; opacity: .7; transition: opacity .2s; }
.lb-btn:hover { opacity: 1; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-close { position: absolute; top: 1.2rem; right: 1.6rem; color:#fff; font-size: 2rem; opacity:.8; }
.lb-count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- misc ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--ivory); padding: .6rem 1rem; }
.divider-cta { background: var(--canvas-2); }
.overline-accent { display:inline-block; width: 46px; height: 2px; background: var(--terracotta); margin-bottom: 1.4rem; }
.two-col-text { columns: 1; }
@media (min-width: 820px){ .two-col-text { columns: 2; column-gap: 3rem; } }
.two-col-text p { break-inside: avoid; }

/* page header (non-hero pages) */
.page-head { padding-top: clamp(3rem, 6vw, 5.25rem); padding-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.page-head .display-lg { line-height: 1.02; }

/* testimonial columns */
.testi-cols > figure { margin-bottom: 2.4rem; }
@media (min-width: 820px){ .testi-cols { columns: 2; column-gap: 3.5rem; } }

/* project detail hero sizing */
.hero-page { min-height: 60vh; }
.hero-page .hero-inner { min-height: 60vh; padding-top: 7rem; }
@media (max-width: 640px){ .hero-page, .hero-page .hero-inner { min-height: 68vh; } }
