/* ============================================================
   21M Developments · rev 3 · warm paper ground
   Palette: paper #FAF8F4 · ink #181613 · muted #6F6758
   hairline #E6E0D6 · charcoal #131110 · orange #F7931A
   Orange is reserved for: logo, one italic word per screen,
   the primary CTA, and focus states. Nothing else.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300; font-display: swap; src: url('../assets/fonts/fraunces-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300; font-display: swap; src: url('../assets/fonts/fraunces-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/fraunces-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --paper: #FAF8F4;
  --ink: #181613;
  --muted: #6F6758;
  --hairline: #E6E0D6;
  --charcoal: #131110;
  --charcoal-2: #0E0D0B;
  --ch-hairline: #2B2824;
  --ch-body: #C7C1B6;
  --ch-muted: #A39B8D;
  --orange: #F7931A;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --max: 1240px;
  --pad: clamp(20px, 5vw, 32px);
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--orange); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 8.5vw, 80px); line-height: 1.04; letter-spacing: -1px; }
h2 { font-size: clamp(30px, 6vw, 46px); line-height: 1.12; letter-spacing: -0.5px; }
h3 { font-weight: 400; font-size: clamp(22px, 4vw, 26px); line-height: 1.25; letter-spacing: -0.2px; }
h1 em, h2 em { font-style: italic; color: var(--orange); }
p { margin: 0; text-wrap: pretty; }
.lede { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 3.2vw, 24px); line-height: 1.55; color: var(--muted); }
.body-col p + p { margin-top: 22px; }
.body-col { font-size: 17px; line-height: 1.75; color: #3E3A33; }

/* One label system: every eyebrow, meta and stat label uses this. */
.label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 15px 30px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--orange); color: var(--charcoal); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.nav-inner { height: clamp(64px, 12vw, 84px); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: clamp(26px, 6vw, 32px); }
.brand-rule { width: 1px; height: 22px; background: var(--hairline); }
.brand-word { font-size: clamp(12px, 2.6vw, 14px); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links a { color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--muted); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-links .nav-cta { border: 1px solid var(--ink); padding: 11px 22px; }
.nav-links .nav-cta:hover { border-color: var(--orange); color: var(--ink); }
.menu-btn { display: none; background: none; border: none; padding: 8px; margin: -8px; cursor: pointer; color: var(--ink); font-size: 26px; line-height: 1; }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--hairline); padding: 8px var(--pad) 24px; flex-direction: column; box-shadow: 0 24px 44px rgba(24, 22, 19, 0.12); }
.mobile-menu a { padding: 17px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.mobile-menu .btn-primary { margin-top: 18px; text-align: center; border-bottom: none; }
.menu-open .mobile-menu { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: clamp(52px, 10vw, 100px) 0 0; }
.hero .lede { margin-top: 34px; max-width: 760px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero-figure { position: relative; margin: clamp(40px, 8vw, 72px) 0 0; }
.hero-figure img { width: 100%; height: clamp(300px, 55vw, 620px); object-fit: cover; }
.hero-figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 17, 16, 0.55), rgba(19, 17, 16, 0) 42%); pointer-events: none; }
.hero-caption { position: absolute; left: clamp(18px, 4vw, 36px); bottom: clamp(16px, 3vw, 28px); z-index: 2; color: #FAF8F4; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 11vw, 110px) 0; }
.section-rule { border-top: 1px solid var(--hairline); }
.eyebrow { margin-bottom: 26px; }
.grid-asym { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 44px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 44px); }

/* Editorial column: hairline + air instead of boxes */
.col-item { border-top: 1px solid var(--hairline); padding-top: 26px; }
.col-item h3 { margin-top: 14px; }
.col-item p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: #3E3A33; }
.col-num { font-family: var(--serif); font-weight: 300; font-size: 38px; line-height: 1; color: var(--ink); }

/* ---------- Dark feature band (the one charcoal moment) ---------- */
.band-dark { background: var(--charcoal); color: var(--paper); }
.band-dark .label { color: var(--ch-muted); }
.band-dark .body-col { color: var(--ch-body); }
.band-dark h2 { color: var(--paper); }

/* ---------- Audience links (clickable editorial items) ---------- */
.aud-item { display: block; border-top: 1px solid var(--hairline); padding: 26px 0 34px; }
.aud-item h3 { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.aud-item .arrow { font-family: var(--sans); font-size: 17px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.aud-item:hover .arrow { transform: translateX(6px); color: var(--ink); }
.aud-item:hover h3 { font-style: normal; }
.aud-item p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: #3E3A33; max-width: 460px; }

/* ---------- Project cards ---------- */
.proj-card { display: block; }
.img-frame { overflow: hidden; }
.img-frame img { width: 100%; height: 290px; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj-card:hover .img-frame img, .proj-feature:hover .img-frame img { transform: scale(1.03); }
.proj-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.proj-card-head .name { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.2px; }
.proj-card p { font-size: 14px; line-height: 1.65; color: #3E3A33; margin-top: 12px; }
.meta { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Projects page features ---------- */
.group-head { display: flex; align-items: center; gap: 16px; }
.group-head .rule { flex: 1; height: 1px; background: var(--hairline); }
.proj-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.proj-feature.flip .img-frame { order: 2; }
.proj-feature .img-frame img { height: clamp(240px, 42vw, 440px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.stats .label { margin-bottom: 7px; font-size: 12px; }
.stats .value { font-size: 14px; font-weight: 500; }

/* ---------- Insights ---------- */
.insight { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); padding: 26px 0 30px; }
.insight h3 { margin-top: 14px; }
.insight p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: #3E3A33; }
.insight .open { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.insight:hover .open { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-detail { display: grid; gap: 26px; margin-top: 42px; }
.contact-detail .value a, .contact-detail .value { font-size: 19px; font-weight: 500; color: var(--ink); }
.contact-detail .value a:hover { color: var(--muted); }
.form { border: 1px solid var(--hairline); background: #FFFFFF; padding: clamp(24px, 5vw, 44px); display: grid; gap: 22px; }
.form label.label { display: block; margin-bottom: 10px; color: var(--muted); }
.form input, .form textarea { width: 100%; background: var(--paper); border: 1px solid var(--hairline); color: var(--ink); padding: 13px 14px; font-family: inherit; font-size: 15px; line-height: 1.6; transition: border-color 0.25s var(--ease); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { resize: vertical; }
.roles { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.role-btn { flex: 1 1 auto; padding: 12px 14px; border: 1px solid var(--hairline); background: var(--paper); color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; text-align: center; white-space: nowrap; transition: all 0.25s var(--ease); }
.role-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.form-note { font-size: 13px; line-height: 1.6; color: var(--muted); }
.form-status { font-size: 14px; line-height: 1.6; display: none; }
.form-status.ok { display: block; color: #2E6B3F; }
.form-status.err { display: block; color: #9B3B26; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: var(--paper); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px 56px; padding: clamp(48px, 9vw, 80px) 0 clamp(36px, 7vw, 56px); border-bottom: 1px solid var(--ch-hairline); }
.footer h2 { color: var(--paper); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact a { color: var(--paper); font-size: 19px; font-weight: 500; }
.footer-contact a:hover { color: var(--ch-muted); }
.footer-contact .sub { color: var(--ch-muted); font-size: 15px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 30px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 32px; }
.footer-brand .brand-rule { background: var(--ch-hairline); }
.footer-brand .brand-word { color: var(--paper); }
.footer-legal { font-size: 12px; line-height: 1.9; color: var(--ch-muted); text-align: right; }
.footer-legal a { color: var(--ch-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--paper); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .img-frame img { transition: none; }
}

/* ---------- Privacy page ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 4vw, 28px); margin-top: 44px; }
.prose p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: #3E3A33; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .grid-asym, .grid-3, .grid-2, .proj-feature { grid-template-columns: 1fr; }
  .proj-feature.flip .img-frame { order: 0; }
  .grid-asym > div:last-child { margin-top: 4px; }
  .footer-legal { text-align: left; }
}
