/* ============================================================
   AXV v4 — "Less is more"
   Site chrome, homepage (core statement / sectors), team, footer.
   Portfolio surface + detail panel live in portfolio-v4.css.
   Depends on assets/colors_and_type.css for tokens & fonts.
   ============================================================ */

:root {
  --nav-h: 68px;
  --wrap: 1240px;
  --wrap-pad: clamp(22px, 5vw, 72px);
  /* Palette accents driven by Tweaks (data-accent on <html>) */
  --hair: var(--border);
}

html { scroll-behavior: auto; }
body { margin: 0; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }

/* Page-switch cross-fade (the only page-level motion). Initial load is visible. */
main { transition: opacity .28s var(--ease); }
main[data-switching="true"] { opacity: 0; transition: opacity .16s ease; }
@media (prefers-reduced-motion: reduce) {
  main, main[data-switching="true"] { opacity: 1; transition: none; }
}

/* Reveal — opacity only, no motion. Content stays visible if JS/observer misses. */
.reveal { opacity: 0; transition: opacity .7s var(--ease); }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transition: none; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--wrap-pad); padding-right: var(--wrap-pad); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--wrap-pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav[data-scrolled="true"] { border-bottom-color: var(--border); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); }
.brand-logo { display: block; height: 30px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 24px; } }
.brand-mark {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: 0.02em;
}
.brand-full {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-widest);
  text-transform: uppercase; color: var(--fg-3);
}
@media (max-width: 640px) { .brand-full { display: none; } }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 34px); }
.nav-links button {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--fg-muted);
  transition: color .2s var(--ease);
}
.nav-links button:hover { color: var(--fg); }
.nav-links button[data-active="true"] { color: var(--fg); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider);
  text-transform: uppercase; color: var(--fg-3);
}
.nav-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}
@media (max-width: 900px) { .nav-status { display: none; } }

/* Mobile menu */
.nav-burger { display: none; width: 44px; height: 44px; position: relative; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg);
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger[data-open="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[data-open="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[data-open="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

.nav-sheet {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 55;
  height: calc(100dvh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h));
  background: var(--bg);
  padding: 32px var(--wrap-pad) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s;
}
.nav-sheet[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.nav-sheet-links { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.nav-sheet-links button {
  display: flex; align-items: baseline; gap: 16px; text-align: left;
  min-height: 56px; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--fg);
}
.nav-sheet-links button .n {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .1em;
}
.nav-sheet-links button .l { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; }
.nav-sheet-foot {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: var(--tr-wide); text-transform: uppercase;
}

/* CTA (ghost link) */
.cta-link {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--fg);
  padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: var(--r-full);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.cta-link:hover { border-color: var(--fg); }
.cta-link .arr { transition: transform .25s var(--ease); }
.cta-link:hover .arr { transform: translateX(3px); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.sec-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: var(--tr-widest); text-transform: uppercase; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 12px;
}
.sec-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5;
}

/* ============================================================
   HOME · 01 — CORE STATEMENT
   ============================================================ */
.core {
  max-width: var(--wrap); margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(40px, 9vh, 104px)) var(--wrap-pad) clamp(40px, 7vh, 84px);
  display: flex; flex-direction: column;
  position: relative;
}
.core-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.core-index {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-wider);
  text-transform: uppercase; color: var(--fg-3);
}
.core-headline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 1.02; letter-spacing: -0.035em; color: var(--fg);
  max-width: 17ch; text-wrap: balance;
  margin: auto 0;
  padding-bottom: clamp(16px, 5vh, 56px);
}
.core-headline .soft { color: var(--fg-2); }
.core-foot {
  margin-top: clamp(36px, 7vh, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.core-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.core-meta b { color: var(--fg); font-weight: 500; }
.core-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* Accent = signal turns a few marks amber */
html[data-accent="signal"] .nav-status .dot { background: var(--signal-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal-500) 22%, transparent); }

/* ============================================================
   HOME · 02 — SECTORS
   ============================================================ */
.sectors { padding: clamp(56px, 9vh, 118px) 0 clamp(40px, 6vh, 84px); }
.sectors-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(34px, 5vh, 58px); flex-wrap: wrap;
}
.sectors-hd h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em;
  max-width: 20ch;
}
.sectors-count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-wider);
  text-transform: uppercase; color: var(--fg-3);
}
.sectors-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.sector {
  grid-column: span 2;
  display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(22px, 2.6vw, 32px);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease);
}
.sector:hover { background: var(--bg-subtle); }
.sector:nth-child(4), .sector:nth-child(5) { grid-column: span 3; }
.sector-fig {
  flex: 0 0 auto; width: 74px; height: 74px; overflow: hidden;
  background: var(--ink-900); position: relative;
}
.sector-fig img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.02) brightness(.92);
  mix-blend-mode: luminosity; opacity: .92;
}
.sector-fig::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink-800) 32%, transparent);
}
.sector-body { min-width: 0; padding-top: 2px; }
.sector-k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider);
  color: var(--fg-muted);
}
.sector-t {
  font-family: var(--font-display); font-weight: 500; font-size: 1.12rem;
  letter-spacing: -.01em; margin: 7px 0 8px; color: var(--fg);
}
.sector-d {
  font-family: var(--font-body); font-size: .84rem; line-height: 1.5; color: var(--fg-3);
  max-width: 34ch;
}
/* --- Sectors layout variants (tweak: data-sectors) --- */
/* Rows — one full-width band per sector, wide image strip */
html[data-sectors="rows"] .sectors-grid { grid-template-columns: 1fr; border-left: 0; }
html[data-sectors="rows"] .sector, html[data-sectors="rows"] .sector:nth-child(4), html[data-sectors="rows"] .sector:nth-child(5) { grid-column: 1 / -1; }
html[data-sectors="rows"] .sector { align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.2vw, 26px) 0; border-right: 0; }
html[data-sectors="rows"] .sector-fig { width: clamp(96px, 12vw, 148px); height: clamp(64px, 7vw, 88px); }
html[data-sectors="rows"] .sector-body { flex: 1; display: grid; grid-template-columns: 4ch minmax(0, 15ch) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 40px); align-items: center; padding-top: 0; }
html[data-sectors="rows"] .sector-t { margin: 0; }
html[data-sectors="rows"] .sector-d { max-width: 52ch; }
/* Cards — five equal columns, image above the text */
html[data-sectors="cards"] .sectors-grid { grid-template-columns: repeat(5, 1fr); }
html[data-sectors="cards"] .sector, html[data-sectors="cards"] .sector:nth-child(4), html[data-sectors="cards"] .sector:nth-child(5) { grid-column: span 1; }
html[data-sectors="cards"] .sector { flex-direction: column; gap: clamp(18px, 2vw, 26px); }
html[data-sectors="cards"] .sector-fig { width: 100%; height: clamp(110px, 11vw, 150px); }
html[data-sectors="cards"] .sector-d { max-width: none; }
/* Ledger — typographic list, no imagery, large titles */
html[data-sectors="ledger"] .sectors-grid { grid-template-columns: 1fr; border-left: 0; }
html[data-sectors="ledger"] .sector, html[data-sectors="ledger"] .sector:nth-child(4), html[data-sectors="ledger"] .sector:nth-child(5) { grid-column: 1 / -1; }
html[data-sectors="ledger"] .sector { padding: clamp(20px, 2.6vw, 30px) 0; border-right: 0; }
html[data-sectors="ledger"] .sector-fig { display: none; }
html[data-sectors="ledger"] .sector-body { flex: 1; display: grid; grid-template-columns: 4ch minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: baseline; padding-top: 0; }
html[data-sectors="ledger"] .sector-t { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.025em; }
html[data-sectors="ledger"] .sector-d { max-width: 46ch; }

@media (max-width: 900px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } .sector, .sector:nth-child(4), .sector:nth-child(5) { grid-column: span 1; } html[data-sectors="cards"] .sectors-grid { grid-template-columns: repeat(2, 1fr); } html[data-sectors="rows"] .sector-body, html[data-sectors="ledger"] .sector-body { grid-template-columns: 4ch minmax(0, 1fr); } }
@media (max-width: 560px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-d { max-width: none; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team { padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 clamp(48px, 8vh, 96px); }
.team-hd { max-width: 62ch; margin-bottom: clamp(40px, 6vh, 72px); }
.team-hd .sec-eyebrow { margin-bottom: 22px; }
.team-hd h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.025em;
}
.team-hd p {
  margin-top: 20px; font-size: 1.02rem; line-height: 1.55; color: var(--fg-2); max-width: 54ch;
}

.team-group { margin-top: clamp(40px, 6vh, 72px); }
.team-group-hd {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 18px; margin-bottom: 34px; border-bottom: 1px solid var(--border);
}
.team-group-hd .lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-widest);
  text-transform: uppercase; color: var(--fg);
}
.team-group-hd .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--fg-muted);
}

.leads { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.lead-photo {
  aspect-ratio: 4/5; overflow: hidden; background: var(--bg-sunken); position: relative;
}
.lead-photo::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 40%; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,.26), rgba(0,0,0,0)); pointer-events: none; }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); }
.lead-photo .ix {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider);
  color: var(--platinum-50);
}
.lead-name { font-family: var(--font-display); font-weight: 500; font-size: 1.24rem; letter-spacing: -.01em; margin-top: 18px; }
.lead-role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-3); margin-top: 8px; }
.lead-bio { font-size: .9rem; line-height: 1.56; color: var(--fg-2); margin-top: 14px; }
.lead-tags { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--fg-muted); margin-top: 14px; }
@media (max-width: 860px) { .leads { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .leads { grid-template-columns: 1fr; } }

.ops { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 28px); }
.op {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border: 1px solid var(--border); background: var(--surface);
}
.op-photo { flex: 0 0 auto; width: 84px; height: 104px; overflow: hidden; background: var(--bg-sunken); }
.op-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); }
.op-name { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; letter-spacing: -.01em; }
.op-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--fg-3); margin: 7px 0 12px; }
.op-bio { font-size: .86rem; line-height: 1.52; color: var(--fg-2); }
@media (max-width: 640px) { .ops { grid-template-columns: 1fr; } }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.adv {
  border: 1px solid var(--border); background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column;
}
.adv-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-sunken); position: relative; display: grid; place-items: center; }
.adv-photo::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 42%; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,0)); pointer-events: none; }
.adv-photo[data-fallback]::after { content: attr(data-fallback); font-family: var(--font-mono); font-size: clamp(22px, 3vw, 34px); letter-spacing: .08em; color: var(--fg-muted); }
.adv-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); }
.adv-ix {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-wider);
  color: var(--platinum-50);
}
.adv-body { padding: 16px 17px 20px; }
.adv-name { font-family: var(--font-display); font-weight: 500; font-size: .96rem; letter-spacing: -.01em; }
.adv-title { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); margin: 6px 0 10px; line-height: 1.4; }
.adv-cred { font-size: .79rem; line-height: 1.5; color: var(--fg-2); }
@media (max-width: 820px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 660px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adv-grid { grid-template-columns: 1fr; } }

/* Team get-in-touch */
.touch {
  margin-top: clamp(56px, 9vh, 104px); padding: clamp(34px, 5vw, 60px);
  border: 1px solid var(--border); background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.touch-l .sec-eyebrow { margin-bottom: 16px; }
.touch h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.02em; max-width: 22ch; }
.touch a.mailto {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; color: var(--fg);
  padding: 14px 22px; border: 1px solid var(--fg); border-radius: var(--r-full);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.touch a.mailto:hover { background: var(--fg); color: var(--bg); }
.touch a.mailto .arr { transition: transform .2s var(--ease); }
.touch a.mailto:hover .arr { transform: translateX(3px); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact4 { padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 clamp(56px, 9vh, 110px); }
.contact4-hd { max-width: 62ch; margin-bottom: clamp(40px, 6vh, 72px); }
.contact4-hd .sec-eyebrow { margin-bottom: 22px; }
.contact4-hd h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.025em; }
.contact4-hd p { margin-top: 20px; font-size: 1.02rem; line-height: 1.55; color: var(--fg-2); max-width: 52ch; }
.contact4-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); border-top: 1px solid var(--border); padding-top: clamp(28px, 4vh, 44px); }
.contact4-routes { display: flex; flex-direction: column; }
.c4route { display: flex; gap: clamp(16px, 2.4vw, 32px); padding: clamp(24px, 3.4vh, 38px) 0; border-bottom: 1px solid var(--border); }
.c4route:first-child { padding-top: 0; }
.c4route-ix { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-widest); color: var(--fg-3); padding-top: .5em; }
.c4route-k { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: var(--tr-widest); text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.c4route-e { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 2.1rem); letter-spacing: -.025em; color: var(--fg); text-decoration: none; }
.c4route-e .arr { font-size: .5em; transition: transform .2s var(--ease); }
.c4route-e:hover { color: var(--accent, var(--fg)); }
.c4route-e:hover .arr { transform: translateX(4px); }
.c4route-s { margin-top: 12px; font-size: .95rem; line-height: 1.6; color: var(--fg-2); max-width: 46ch; text-wrap: pretty; }
.contact4-side { display: flex; flex-direction: column; gap: clamp(26px, 4vh, 40px); }
.c4block h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: var(--tr-widest); text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.c4route--solo { padding: 0 0 clamp(20px, 3vh, 30px); border-bottom: 0; }
.c4route--solo .c4route-e { font-size: clamp(1.8rem, 4.4vw, 3.4rem); }
.c4route--solo .c4route-s { margin-top: 18px; font-size: 1rem; max-width: 42ch; }
.c4office { padding: 12px 0; border-top: 1px solid var(--border); }
.c4office-c { font-size: 1rem; font-weight: 500; }
.c4office-n { margin-top: 3px; font-size: .86rem; color: var(--fg-3); line-height: 1.5; }
.c4list { list-style: none; display: flex; flex-direction: column; }
.c4list li { padding: 10px 0; border-top: 1px solid var(--border); font-size: .92rem; color: var(--fg-2); line-height: 1.5; }
.c4note { font-size: .92rem; color: var(--fg-2); line-height: 1.6; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .contact4-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink-950); color: var(--platinum-200); padding: clamp(48px, 7vh, 84px) 0 34px; }
.foot .wrap { display: flex; flex-direction: column; gap: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 30ch; }
.foot-mark { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .02em; color: var(--platinum-50); }
.foot-logo { display: block; height: 34px; width: auto; }
.foot-line { font-family: var(--font-body); font-size: .9rem; color: var(--ink-300); margin-top: 14px; line-height: 1.5; }
.foot-nav { display: flex; gap: clamp(40px, 7vw, 90px); flex-wrap: wrap; }
.foot-col h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-widest); text-transform: uppercase; color: var(--ink-400); margin: 0 0 16px; }
.foot-col button, .foot-col a {
  display: block; background: none; text-align: left; color: var(--platinum-300);
  font-family: var(--font-body); font-size: .92rem; padding: 6px 0; transition: color .2s var(--ease);
}
.foot-col button:hover, .foot-col a:hover { color: var(--platinum-50); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--ink-800);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--ink-400);
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tw-root { position: fixed; right: 20px; bottom: 20px; z-index: 90; font-family: var(--font-mono); }
.tw-panel {
  width: 300px; background: var(--ink-950); color: var(--platinum-100);
  border: 1px solid var(--ink-700); box-shadow: var(--shadow-lg);
}
.tw-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--ink-800); }
.tw-hd .t { font-size: 11px; letter-spacing: var(--tr-widest); text-transform: uppercase; color: var(--platinum-50); }
.tw-hd .x { color: var(--ink-300); font-size: 16px; line-height: 1; padding: 4px; }
.tw-hd .x:hover { color: var(--platinum-50); }
.tw-body { padding: 6px 16px 16px; max-height: 72vh; overflow-y: auto; }
.tw-sec { padding: 14px 0; border-bottom: 1px solid var(--ink-800); }
.tw-sec:last-child { border-bottom: 0; }
.tw-label { font-size: 10px; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--ink-300); margin-bottom: 10px; }
.tw-opts { display: flex; flex-direction: column; gap: 6px; }
.tw-opt {
  text-align: left; padding: 9px 11px; font-size: 11px; letter-spacing: .02em;
  color: var(--platinum-300); border: 1px solid var(--ink-700); background: transparent;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
  line-height: 1.35;
}
.tw-opt:hover { border-color: var(--ink-600); color: var(--platinum-100); }
.tw-opt[data-on="true"] { border-color: var(--platinum-400); color: var(--platinum-50); background: var(--ink-900); }
.tw-seg { display: flex; gap: 4px; }
.tw-seg .tw-opt { flex: 1; text-align: center; padding: 9px 6px; }
.tw-toggle-btn {
  background: var(--ink-950); color: var(--platinum-50); font-family: var(--font-mono);
  font-size: 10px; letter-spacing: var(--tr-widest); text-transform: uppercase;
  padding: 11px 15px; border: 1px solid var(--ink-700);
}
.tw-toggle-btn:hover { border-color: var(--ink-500); }

/* ============================================================
   TYPE / PALETTE tweak variants
   ============================================================ */
/* Airy display treatment (lighter weight, more negative tracking) */
html[data-type="airy"] .core-headline,
html[data-type="airy"] .sectors-hd h2,
html[data-type="airy"] .team-hd h1 { font-weight: 400; letter-spacing: -.04em; }
/* Stamped display treatment (uppercase, tight, technical) */
html[data-type="stamped"] .core-headline { text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: 1.02; }

/* Warm vs cool paper */
/* Cool paper — cooler surfaces, with text tokens deepened so secondary
   and muted copy keep strong contrast against the blue-grey ground. */
html[data-paper="cool"] {
  --bg: #F4F6F8; --bg-subtle: #EAEDF1; --bg-sunken: #E0E4EA; --surface: #FFFFFF;
  --border: #DBDFE6; --border-strong: #BEC4CE;
  --fg: #0E1524; --fg-2: #283047; --fg-3: #4E566E; --fg-muted: #69728A;
}

@media print {
  .nav, .tw-root, .nav-sheet { display: none !important; }
  .reveal { opacity: 1 !important; }
}
