/* Georgian Construction Management — microsite
   Tokens and measurements follow design_handoff/README.md. */

:root {
  --espresso: #2B2620;
  --bronze: #8A6F4D;
  --gold: #C2A577;
  --cream: #EFE9DF;
  --sand: #E4DCCD;
  --ink: #1A231D;
  --field: #C9BEA9;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--bronze); }
::selection { background: var(--gold); color: var(--espresso); }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ── Layout primitives ─────────────────────────────────────── */
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.pad { padding-block: clamp(72px, 9vw, 120px); }
.pad-112 { padding-block: clamp(72px, 9vw, 112px); }
.sand { background: var(--sand); }
.espresso { background: var(--espresso); color: var(--cream); }
.rule-top { border-top: 1px solid var(--bronze); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.stack-22 { display: flex; flex-direction: column; gap: 22px; }
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
#partnership, #how, #process, #contact { scroll-margin-top: 56px; }

/* ── Type ──────────────────────────────────────────────────── */
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.h2-lg { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
.h2-process { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; }
.h2-sm { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.01em; }
.eyebrow { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-rule { display: flex; align-items: center; gap: 14px; }
.eyebrow-rule::before { content: ''; width: 36px; height: 1px; background: var(--gold); flex-shrink: 0; }
.label { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.label-gold { letter-spacing: 0.3em; color: var(--gold); }
.caption { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(239,233,223,0.8); }
.caption-dark { color: var(--espresso); }
.caption-bronze { color: var(--bronze); }
.body-16 { font-size: 16px; line-height: 1.8; font-weight: 300; text-wrap: pretty; }
.ch-58 { max-width: 58ch; }
.ch-52 { max-width: 52ch; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-outline { border: 1px solid var(--ink); padding: 9px 16px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--espresso); padding: 17px 30px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; text-align: center; }
.btn-cream:hover { background: var(--gold); color: var(--espresso); }
.btn-espresso { appearance: none; border: 0; border-radius: 0; cursor: pointer; align-self: flex-start; text-align: center; background: var(--espresso); color: var(--cream); padding: 16px 28px; font-family: inherit; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.btn-espresso:hover { background: var(--ink); }
.btn-espresso[disabled] { opacity: 0.6; cursor: default; }

/* ── 01 Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--bronze); }
.header-inner { max-width: 1320px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; transition: padding 0.25s ease; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup-logo { height: 36px; width: auto; transition: height 0.25s ease; }
.site-header.scrolled .header-inner { padding-block: 10px; }
.site-header.scrolled .lockup-logo { height: 28px; }
.lockup-rule { width: 1px; height: 22px; background: var(--bronze); }
.lockup-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bronze); font-weight: 500; line-height: 1.4; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 12px; font-weight: 400; white-space: nowrap; }
.nav-link { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav-link:hover { border-bottom-color: var(--bronze); }
.nav .btn-outline { margin-left: 6px; }
.burger { appearance: none; background: none; border: 0; cursor: pointer; margin-left: auto; display: none; flex-direction: column; gap: 5px; padding: 10px 4px; }
.burger span { display: block; width: 24px; height: 1px; background: var(--ink); }
.burger span:nth-child(3) { width: 14px; transition: width 0.2s; }
.burger[aria-expanded="true"] span:nth-child(3) { width: 24px; }
.mobile-menu { border-top: 1px solid var(--bronze); background: var(--cream); display: flex; flex-direction: column; padding: 8px 20px 24px; }
.mobile-menu a:not(.btn-outline) { font-family: var(--serif); font-size: 24px; padding: 14px 0; border-bottom: 1px solid var(--sand); }
.mobile-menu a:nth-last-child(2) { border-bottom: 0; }
.mobile-menu .btn-outline { margin-top: 12px; align-self: flex-start; padding: 14px 22px; font-size: 11px; }

/* ── 02 Hero ───────────────────────────────────────────────── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--espresso); }
.hero-slides { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 1.2s ease; }
.hero-img.active { opacity: 1; }
.hero-img-center { object-position: 50% 50%; }
#hero-caption { transition: opacity 0.4s ease; }
.hero-scrim { position: absolute; inset: 0; }
.hero-scrim-x { background: linear-gradient(90deg, rgba(43,38,32,0.82) 0%, rgba(43,38,32,0.55) 45%, rgba(43,38,32,0.15) 100%); }
.hero-scrim-y { background: linear-gradient(180deg, rgba(43,38,32,0.25) 0%, rgba(43,38,32,0) 35%, rgba(43,38,32,0.75) 100%); }
.hero-inner { position: relative; max-width: 1320px; width: 100%; margin: 0 auto; padding: clamp(96px, 14vw, 140px) var(--gutter) clamp(32px, 5vw, 56px); color: var(--cream); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.hero-text { max-width: 820px; display: flex; flex-direction: column; gap: 26px; }
h1 { font-size: clamp(48px, 7.6vw, 104px); line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; }
.hero-body { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; font-weight: 300; max-width: 56ch; text-wrap: pretty; color: rgba(239,233,223,0.92); }
.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.hero-link { color: var(--cream); font-size: 14px; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.hero-link:hover { color: var(--gold); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(239,233,223,0.25); padding-top: 18px; }

/* ── 03 Credential strip ───────────────────────────────────── */
.strip { background: var(--espresso); border-top: 1px solid var(--bronze); }
.strip-inner { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.strip-cell { padding: 18px 14px; border-left: 1px solid rgba(138,111,77,0.6); border-bottom: 1px solid rgba(138,111,77,0.3); display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; flex-wrap: wrap; }
.strip-cell span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); font-weight: 500; }

/* ── 04 Partnership ────────────────────────────────────────── */
.pullquote { margin-top: 18px; border-top: 1px solid var(--bronze); padding-top: 22px; max-width: 46ch; }
.pullquote span { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--espresso); }
.partnership-figure { padding-top: clamp(0px, 6vw, 80px); display: flex; flex-direction: column; gap: 14px; }
.frame { border: 1px solid var(--bronze); padding: 12px; }
.frame img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.figure-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

/* ── 05 Pillars ────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: stretch; }
.pillars-main { display: flex; flex-direction: column; gap: 40px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.pillar { border-top: 1px solid var(--bronze); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--bronze); }
.pillar-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.pillar p { font-size: 14px; line-height: 1.75; font-weight: 300; text-wrap: pretty; }
.pillars-figure { display: flex; flex-direction: column; gap: 12px; }
.pillars-figure img { width: 100%; flex: 1; height: auto; min-height: 420px; max-height: 680px; object-fit: cover; }

/* ── 06 How we support ─────────────────────────────────────── */
.support { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.support-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--bronze); padding-bottom: 16px; }
.support-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.support-row-reverse { flex-wrap: wrap-reverse; }
.support-img { flex: 1 1 420px; min-width: 0; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.support-band { flex: 1 1 420px; min-width: 0; border-top: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); padding: 18px 0; }
.support-band img { width: 100%; height: auto; aspect-ratio: 2.4/1; object-fit: cover; }
.support-text { flex: 1 1 380px; position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
.bignum { position: absolute; top: -30px; left: -8px; font-family: var(--serif); font-size: clamp(110px, 12vw, 170px); line-height: 1; color: rgba(138,111,77,0.16); pointer-events: none; }
h3 { position: relative; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.support-text p { position: relative; font-size: 15px; line-height: 1.8; font-weight: 300; max-width: 52ch; text-wrap: pretty; }

/* ── 07 Process ────────────────────────────────────────────── */
.process { display: flex; flex-direction: column; gap: 56px; }
.process-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.process-intro p { font-size: 16px; line-height: 1.75; font-weight: 300; color: rgba(239,233,223,0.88); max-width: 46ch; }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.phase { display: flex; flex-direction: column; }
.phase-label { position: sticky; top: 72px; z-index: 2; background: var(--espresso); padding: 12px 0; border-bottom: 1px solid var(--bronze); display: flex; justify-content: space-between; align-items: baseline; }
.phase-label span:first-child { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.phase-label span:last-child { font-size: 11px; color: rgba(239,233,223,0.6); letter-spacing: 0.1em; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid rgba(138,111,77,0.45); }
.step-n { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--gold); }
.step > div { display: flex; flex-direction: column; gap: 6px; }
.step-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.step-body { font-size: 13px; line-height: 1.7; font-weight: 300; color: rgba(239,233,223,0.85); text-wrap: pretty; }

/* ── 08 By the numbers ─────────────────────────────────────── */
.numbers { position: relative; overflow: hidden; background: var(--espresso); }
.numbers-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.numbers-scrim { position: absolute; inset: 0; background: rgba(43,38,32,0.58); }
.numbers-inner { position: relative; padding-block: clamp(96px, 12vw, 180px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; color: var(--cream); }
.number { border-top: 1px solid var(--gold); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.number-value { font-family: var(--serif); font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em; }
.number-caption { font-size: 14px; line-height: 1.6; font-weight: 300; max-width: 26ch; }

/* ── 09 Toolkit ────────────────────────────────────────────── */
.toolkit { display: flex; flex-direction: column; gap: 36px; }
.toolkit-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: end; }
.toolkit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.tool { border-top: 1px solid var(--bronze); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tool-title { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.tool p { font-size: 14px; line-height: 1.7; font-weight: 300; }

/* ── 10 Selected work ──────────────────────────────────────── */
.work { display: flex; flex-direction: column; gap: 32px; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .span-2 { grid-column: span 2; grid-row: span 2; }

/* ── 11 FAQ ────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--bronze); }
.faq-item { border-bottom: 1px solid var(--bronze); }
.faq-q { appearance: none; background: none; border: 0; border-radius: 0; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ink); text-align: left; }
.faq-q:hover { color: var(--bronze); }
.faq-icon { font-family: var(--sans); font-size: 20px; font-weight: 300; color: var(--bronze); flex-shrink: 0; }
.faq-a { margin: 0 0 24px; font-size: 15px; line-height: 1.8; font-weight: 300; max-width: 64ch; text-wrap: pretty; }

/* ── 12 Contact ────────────────────────────────────────────── */
.details { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--bronze); }
.detail { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sand); font-size: 15px; }
.detail:last-child { border-bottom: 0; }
.form { background: var(--sand); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 0; background: var(--cream); color: var(--ink); outline-color: var(--bronze); width: 100%; }
.field textarea { resize: vertical; }
.form-error { font-size: 14px; line-height: 1.6; color: #8C4A2E; }
.form-success { background: var(--sand); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--bronze); }
.form-success-text { font-family: var(--serif); font-size: 30px; line-height: 1.2; }

/* ── 13 Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--espresso); color: var(--cream); }
.footer-inner { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer-logo { height: 40px; width: auto; }
.lockup-rule-footer { height: 26px; }
.lockup-label-gold { color: var(--gold); }
.footer-link { font-size: 13px; color: var(--cream); border-bottom: 1px solid var(--bronze); padding-bottom: 3px; }
.footer-link:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(138,111,77,0.6); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 1.7; font-weight: 300; color: rgba(239,233,223,0.78); }

/* ── Fade-up on entry (classes are applied by main.js) ─────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Narrow (<900px) ───────────────────────────────────────── */
@media (max-width: 899.98px) {
  .nav { display: none; }
  .burger { display: flex; }
  .pillars-figure img { min-height: 300px; }
  /* Handoff says 58px, but the compressed mobile header is 54px tall and step text showed through the gap. */
  .phase-label { top: 53px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .btn-espresso { align-self: stretch; }
}
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .header-inner, .lockup-logo, .burger span, .hero-img, #hero-caption { transition: none; }
}
