/* ============================================================
   MAGOP GROUP — Design System (B2B Operations)
   Premium, sober, operational. Bone paper · ink · three division
   accents (forest, clay, slate) · gold as fine detail only.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Surfaces */
  --paper:   #F5F1E8;
  --paper-2: #EDE6D4;
  --paper-3: #E2D9C2;

  /* Ink */
  --ink:     #0E1014;
  --ink-2:   #1A1D24;
  --ink-3:   #2C2F37;
  --muted:   #5C5B55;
  --quiet:   #8A857A;

  /* Rules */
  --rule:        rgba(14,16,20,0.14);
  --rule-strong: rgba(14,16,20,0.35);
  --rule-light:  rgba(245,241,232,0.20);

  /* Brand accent — second color of the system, used with intent */
  --terra:        #B8501C;   /* dark terracotta — the brand orange */
  --terra-deep:   #8E3D14;
  --terra-soft:   #D67742;

  /* Legacy fine-detail accent — kept for occasional ticks/dots */
  --gold:      #A88B5C;
  --gold-soft: #C7AC7E;

  /* Division accents (subtle, tone-on-tone with the brand) */
  --forest:   #1F3A2E;   /* Procurement */
  --clay:     #B8501C;   /* Construction — matches brand terra */
  --slate:    #2A3947;   /* Maintenance */

  /* Type */
  --serif: "Cormorant Garamond", Didot, "Times New Roman", serif;
  --sans:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --t-mono: 11px;
  --t-label: 12px;
  --t-body: 17px;
  --t-lead: 21px;
  --t-h3: clamp(26px, 2.6vw, 36px);
  --t-h2: clamp(40px, 4.8vw, 72px);
  --t-h1: clamp(56px, 7.2vw, 116px);

  /* Spacing */
  --gx: clamp(24px, 4vw, 72px);
  --section-y: clamp(80px, 9vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  position: relative;
}
/* Paper-grain noise overlay — gives the entire page the texture of premium print */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- Typography ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .gold { color: var(--gold); }
.eyebrow .terra { color: var(--terra); }
.gold { color: var(--gold); }
.terra { color: var(--terra); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 0.95; }
h2 { font-size: var(--t-h2); line-height: 1.02; }
h3 { font-size: var(--t-h3); line-height: 1.12; }
.italic-em { font-style: italic; color: var(--ink); }
.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 60ch;
}
p { margin: 0 0 1em; text-wrap: pretty; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gx);
}
.section { padding-block: var(--section-y); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(245,241,232,0.86);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gx);
  max-width: 1480px; margin: 0 auto;
}
.nav-links { gap: 0; }
.nav-divider {
  display: inline-block;
  width: 1px; height: 18px;
  background: var(--rule-strong);
  margin: 0 14px;
  opacity: 0.6;
}
.nav-link--div {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.nav-link--div .d {
  width: 6px; height: 6px;
  background: var(--accent, var(--ink));
  display: inline-block;
  transform: rotate(45deg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s;
}
.nav-link--div[data-div="procurement"]  { --accent: var(--forest); }
.nav-link--div[data-div="construction"] { --accent: var(--terra); }
.nav-link--div[data-div="maintenance"]  { --accent: var(--slate); }
.nav-link--div:hover { color: var(--accent); }
.nav-link--div:hover .d { transform: rotate(45deg) scale(1.4); }
.nav-brand {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.02em;
}
.nav-brand .dot { color: var(--terra); }
.nav-brand .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
.nav-links {
  display: flex; gap: 0;
  align-items: center;
}
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--terra); }
.nav-link.is-active { color: var(--ink); border-bottom: 1px solid var(--terra); }
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 12px 18px;
  margin-left: 12px;
  transition: background .2s;
  display: inline-flex; gap: 10px; align-items: baseline;
}
.nav-cta:hover { background: var(--terra); border-color: var(--terra); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--ink); padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; cursor: pointer;
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gx) 24px;
    gap: 4px;
  }
  .nav.is-open .nav-links .nav-link {
    width: 100%; padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open .nav-cta {
    display: inline-flex;
    margin: 16px var(--gx) 24px;
    width: max-content;
  }
}

/* ---- Inline CTA (within paragraph text) ---- */
.inline-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
  margin-left: 6px;
  white-space: nowrap;
  transition: color .2s;
}
.inline-cta:hover { color: var(--terra); }
.inline-cta .arrow { display: inline-block; transition: transform .35s; }
.inline-cta:hover .arrow { transform: translateY(3px); }

/* ---- Hero ---- */
.hero {
  padding-block: clamp(80px, 10vw, 160px) clamp(60px, 7vw, 120px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Architect's blueprint grid behind the brandmark */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14,16,20,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,16,20,0.04) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 45%, rgba(0,0,0,0.7), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 45%, rgba(0,0,0,0.7), transparent 70%);
  z-index: -1;
}
/* Small architect-style "drawn by" plate inside the hero */
.hero-plate {
  position: absolute;
  top: clamp(160px, 18vw, 240px);
  right: var(--gx);
  width: 200px;
  border: 1px solid var(--rule-strong);
  background: rgba(245,241,232,0.6);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
  display: none;
}
.hero-plate b { color: var(--ink); font-weight: 500; letter-spacing: 0.18em; }
.hero-plate hr { border: 0; border-top: 1px solid var(--rule); margin: 8px 0; }
@media (min-width: 1180px) { .hero-plate { display: block; } }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-video[src], .hero-video:has(source[src]) { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,241,232,0.96) 0%, rgba(245,241,232,0.88) 60%, rgba(245,241,232,0.96) 100%);
  z-index: -1;
}

/* Brandmark hero — the group's "naming on a higher level" */
.hero--brand .hero-meta { margin-bottom: 64px; }
.brandmark {
  display: flex; flex-direction: column; gap: 28px;
  margin-bottom: 8px;
}
.brandmark-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(96px, 16vw, 260px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brandmark-name .brandmark-dot {
  color: var(--terra);
  font-style: italic;
  display: inline-block;
  animation: dotPulse 4.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(-0.04em); opacity: 0.78; }
}
@media (prefers-reduced-motion: reduce) {
  .brandmark-name .brandmark-dot { animation: none; }
}
.brandmark-rule {
  height: 1px;
  background: var(--rule-strong);
  width: 100%;
  max-width: 1200px;
}
.brandmark-slogan {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.brandmark-slogan .italic-em {
  font-style: italic;
  color: var(--terra);
}
.hero--brand .hero-sub { margin-top: 56px; }

.cta-band--quiet { background: var(--ink-2); }
.hero-meta {
  display: flex; gap: 32px; align-items: baseline;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-meta-rule { flex: 1; height: 1px; background: var(--rule); min-width: 60px; }
.hero h1 { max-width: 16ch; }
.hero h1 .italic-em { font-style: italic; }
.hero-sub {
  margin-top: 40px;
  max-width: 64ch;
}
.hero-ctas {
  margin-top: 56px;
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--terra); border-color: var(--terra); }
.btn .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(6px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover { background: var(--terra); border-color: var(--terra); color: var(--paper); }

/* ---- Section header pattern ---- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lhs { display: flex; flex-direction: column; gap: 16px; }
.section-head h2 { max-width: 18ch; }
.section-head .rhs { color: var(--muted); padding-bottom: 8px; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Group section / Division cards ---- */
.group-intro {
  max-width: 70ch;
  font-size: var(--t-lead);
  color: var(--ink-2);
}
.divisions {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.division-card {
  background: var(--paper);
  padding: 40px 36px 44px;
  display: flex; flex-direction: column; gap: 18px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: background .5s ease, color .5s ease;
  min-height: 360px;
}
.division-card .accent-bar {
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--accent, var(--ink));
  transform-origin: left;
  transform: scaleX(0.18);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.division-card:hover .accent-bar { transform: scaleX(1); }
.division-card[data-div="procurement"]  { --accent: var(--forest); }
.division-card[data-div="construction"] { --accent: var(--clay); }
.division-card[data-div="maintenance"]  { --accent: var(--slate); }
.division-card:hover { background: var(--accent); color: var(--paper); }
.division-card:hover .division-meta { color: rgba(245,241,232,0.7); }
.division-card:hover .division-cta { color: var(--paper); }

.division-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  transition: color .4s;
}
.division-roman { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0.04em; }
.division-name {
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.division-name .light { font-style: italic; color: var(--gold); }
.division-card:hover .division-name .light { color: var(--gold-soft); }
.division-desc {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 8px;
  max-width: 32ch;
  opacity: 0.92;
}
.division-cta {
  margin-top: auto;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-flex; gap: 12px; align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  width: max-content;
}
.division-card:hover .division-cta .arrow { transform: translateX(6px); }
.division-cta .arrow { display: inline-block; transition: transform .35s; }

@media (max-width: 900px) {
  .divisions { grid-template-columns: 1fr; }
}

/* ---- Lifecycle band ---- */
.lifecycle {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.lifecycle .step { display: inline-flex; gap: 10px; align-items: baseline; }
.lifecycle .step b { color: var(--ink); font-weight: 500; }
.lifecycle .arrow { color: var(--terra); }

/* ---- Why MAGOP pillars ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  background: var(--paper);
  padding: 40px 32px 44px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}
.pillar-n {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--terra);
}
.pillar-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.pillar-body {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pillars { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
}
.cta-band-inner {
  padding: clamp(60px, 8vw, 120px) var(--gx);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: 1480px; margin: 0 auto;
}
.cta-band h2 { max-width: 18ch; }
.cta-band .rhs {
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
}
.cta-band .lead { color: rgba(245,241,232,0.78); max-width: 42ch; }
.cta-band .eyebrow { color: rgba(245,241,232,0.55); }
.cta-band .eyebrow .gold { color: var(--gold-soft); }
@media (max-width: 900px) { .cta-band-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Footer ---- */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding-block: 64px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 36ch; }
.footer-brand .wordmark {
  font-family: var(--serif); font-size: 28px; letter-spacing: 0.02em;
}
.footer-brand .wordmark .dot { color: var(--terra); }
.footer-brand p { color: var(--muted); }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  text-decoration: none; color: var(--ink-2);
  font-size: 15px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--terra); }
.footer-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 28px;
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Reveal — "build" motion: content settles in with an architectural
   wipe + lift. Hidden ONLY when JS confirms it's running (html.js), so the
   page can never end up blank. Easing is slow and deliberate. ---- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity .9s cubic-bezier(.16,1,.3,1),
    transform 1.15s cubic-bezier(.16,1,.3,1),
    clip-path 1.15s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform, clip-path;
}
html.js [data-reveal].in {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0% 0);
}

/* Rules draw themselves in (a draughtsman's line) */
html.js .brandmark-rule { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.16,1,.3,1) .35s; }
html.js [data-reveal].in .brandmark-rule,
html.js .brandmark.in .brandmark-rule { transform: scaleX(1); }

/* Capability lists assemble line by line */
html.js .co-skills li {
  opacity: 0; transform: translateX(-10px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
html.js [data-reveal].in .co-skills li { opacity: 1; transform: none; }
html.js [data-reveal].in .co-skills li:nth-child(1) { transition-delay: .15s; }
html.js [data-reveal].in .co-skills li:nth-child(2) { transition-delay: .27s; }
html.js [data-reveal].in .co-skills li:nth-child(3) { transition-delay: .39s; }
html.js [data-reveal].in .co-skills li:nth-child(4) { transition-delay: .51s; }
html.js [data-reveal].in .co-skills li:nth-child(5) { transition-delay: .63s; }
html.js [data-reveal].in .co-skills li:nth-child(6) { transition-delay: .75s; }

/* The big company numeral rises as its block settles */
html.js .co-mark .numeral { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
html.js [data-reveal].in .numeral,
html.js .co-mark.in .numeral { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none; }
  html.js .brandmark-rule,
  html.js .co-skills li,
  html.js .co-mark .numeral { opacity: 1; transform: none; transition: none; }
}

/* ---- Division page accents ---- */
.page-hero {
  padding-block: clamp(80px, 8vw, 140px) clamp(48px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-hero .rule-top {
  position: absolute; top: 0; left: 0; height: 3px;
  background: var(--accent, var(--ink));
  width: 18%;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 32px; }
.page-hero .breadcrumb {
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.page-hero .breadcrumb .accent { color: var(--accent); }
.page--procurement  { --accent: var(--forest); }
.page--real-estate  { --accent: var(--forest); }
.page--construction { --accent: var(--clay); }
.page--maintenance  { --accent: var(--slate); }

/* Group operational-model statement (homepage About) */
.group-model {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  padding-left: 18px;
  border-left: 2px solid var(--terra);
}

/* Operating track record band (homepage) */
.trackrecord {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trackrecord .tr-col {
  background: var(--paper);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.trackrecord .tr-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.trackrecord .tr-v {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
@media (max-width: 860px) { .trackrecord { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trackrecord { grid-template-columns: 1fr; } }

/* ---- Selected Activity / references ---- */
.refs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 1000px) { .refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .refs { grid-template-columns: 1fr; } }
.proj-card--ref {
  background: var(--paper);
  padding: 32px 30px 36px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: default;
  transition: background .4s;
}
.proj-card--ref:hover { background: var(--paper-2); }
.proj-card--ref .ref-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 12px;
  border-left: 2px solid var(--accent, var(--ink));
  width: max-content;
}
.proj-card--ref[data-div="real-estate"]  { --accent: var(--forest); }
.proj-card--ref[data-div="construction"] { --accent: var(--clay); }
.proj-card--ref[data-div="maintenance"]  { --accent: var(--slate); }
.proj-card--ref .ref-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
  text-wrap: balance;
}
.proj-card--ref .ref-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline;
}
.proj-card--ref .ref-meta .terra { color: var(--terra); }
.proj-card--ref .ref-scope {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 6px 0 0;
}
.proj-card[data-hidden="true"] { display: none; }
.refs-note {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--quiet);
  max-width: 60ch;
  line-height: 1.7;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-primary { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--terra);
  padding-bottom: 6px;
  transition: color .25s;
  word-break: break-word;
}
.contact-email:hover { color: var(--terra); }
.contact-note { color: var(--muted); font-size: 15px; max-width: 40ch; margin: 4px 0 0; }
.contact-meta { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.cmeta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.cmeta-k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.cmeta-v { font-size: 16px; color: var(--ink); text-align: right; }
.cmeta-v a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--terra); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Legal pages (privacy / cookies) ---- */
.legal-body { max-width: 70ch; }
.legal-body h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px);
  margin: 40px 0 12px; letter-spacing: -0.015em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-note {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--quiet); margin-top: 48px; padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* Legal footer line + policy links (v6 launch) */
.footer-legal-line {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  line-height: 1.7;
}
.footer-legal-line a { color: var(--quiet); text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer-legal-line a:hover { color: var(--terra); }
.footer-policies { display: inline-flex; gap: 8px; }
.footer-policies a { color: var(--muted); text-decoration: none; }
.footer-policies a:hover { color: var(--terra); }

/* ---- Two-col split (page sections) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Capability list ---- */
.cap-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cap-list li {
  background: var(--paper);
  padding: 22px 24px;
  display: flex; gap: 16px;
  font-size: 16px;
  align-items: baseline;
}
.cap-list li .n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent, var(--gold));
  min-width: 36px;
}
@media (max-width: 700px) { .cap-list { grid-template-columns: 1fr; } }

/* ---- Needs list (typical client needs) ---- */
.needs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.need {
  background: var(--paper);
  padding: 36px 28px 40px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.need .r {
  font-family: var(--serif); font-style: italic;
  color: var(--accent, var(--gold)); font-size: 18px;
}
.need h3 { font-size: 22px; line-height: 1.18; }
.need p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .needs { grid-template-columns: 1fr; } }

/* ---- Form ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- Founder page ---- */
.founder-name { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.founder-name-mark {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
.founder-name-mark .terra { color: var(--terra); }

.founder-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}
.founder-portrait { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.portrait-frame {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.portrait-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(14,16,20,0.05) 14px 15px);
}
.ph-mark { font-family: var(--serif); font-size: 88px; color: var(--terra); opacity: 0.85; }
.ph-cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.founder-meta { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
.meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.meta-row span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.meta-row b { font-weight: 500; }
.founder-bio h3 {
  font-size: 28px;
  margin: 40px 0 12px;
}
.founder-bio p { color: var(--ink-2); max-width: 64ch; }
.pull-quote {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  position: relative;
}
.pull-quote .qmark {
  color: var(--terra);
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 6px;
}
.pull-quote .qmark.right { margin: 0 0 0 6px; }
.pull-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono); font-style: normal;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-portrait { position: static; }
}

/* ============================================================
   Editorial flourishes — graphical depth
   ============================================================ */

/* Marquee strip — running phrases between sections */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper);
  padding: 18px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marqueeRun 48s linear infinite;
  width: max-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 14px;
}
.marquee-track .sep { color: var(--terra); }
@keyframes marqueeRun {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Stats band — small editorial figures */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  background: var(--paper);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-v {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-v .terra { color: var(--terra); font-style: italic; }
.stat-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 800px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* Roman-numeral section divider */
.section-rule {
  display: flex; align-items: center; gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.section-rule .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--terra);
  min-width: 40px;
}
.section-rule .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-rule .grow { flex: 1; height: 1px; background: var(--rule); }
.section-rule .end {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Drop cap for editorial lead paragraphs */
.has-dropcap::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 4.2em;
  line-height: 0.86;
  float: left;
  margin: 6px 14px 0 0;
  color: var(--terra);
}

/* Home pull-quote band (founder voice) */
.home-quote {
  background: var(--paper-2);
  padding-block: clamp(80px, 8vw, 120px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.home-quote .qmark-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(140px, 18vw, 240px);
  line-height: 0.6;
  color: var(--terra);
  opacity: 0.18;
  position: absolute;
  top: 24px;
  left: var(--gx);
  pointer-events: none;
}
.home-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  position: relative;
}
.home-quote-text .em { color: var(--terra); }
.home-quote-cite {
  margin-top: 36px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-quote-cite .line { width: 36px; height: 1px; background: var(--rule-strong); }
.home-quote-cite a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--terra); padding-bottom: 2px; }

/* Wax-seal-style medallion */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  position: relative;
  font-family: var(--serif);
  color: var(--ink);
  flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4), transparent 45%),
    var(--paper);
}
.seal::before {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 1px dashed var(--rule-strong);
}
.seal-text {
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--terra);
}
.seal-orbit {
  position: absolute;
  inset: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.seal-orbit svg { width: 100%; height: 100%; overflow: visible; }
.seal-orbit text { fill: currentColor; }

/* Hero bottom row — seal + meta */
.hero-foot {
  display: flex; align-items: center; gap: 28px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hero-foot-text {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
.hero-foot-text b { color: var(--ink); font-weight: 500; }

/* Lifecycle — tick marks */
.lifecycle-v {
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.lifecycle-v::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background:
    repeating-linear-gradient(to right, var(--rule-strong) 0 6px, transparent 6px 14px);
  z-index: 0;
}
.lc-step {
  background: var(--paper-2);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  z-index: 1;
  border-right: 1px solid var(--rule);
}
.lc-step:last-child { border-right: 0; }
.lc-step .lc-r {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--terra);
}
.lc-step .lc-h {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lc-step .lc-d {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 800px) {
  .lifecycle-v { grid-template-columns: 1fr; }
  .lc-step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .lc-step:last-child { border-bottom: 0; }
  .lifecycle-v::after { display: none; }
}

/* ---- Empty state ---- */
.empty {
  padding: 80px 40px;
  text-align: center;
  border: 1px dashed var(--rule-strong);
  color: var(--muted);
}
.empty .icon { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 28px; margin-bottom: 12px; }


/* ============================================================
   v4 — Launch refinements
   Centered hero · architectural background animations · division
   pills · "Trusted by" strip · projects grid + filters · tweaks
   ============================================================ */

/* Orange-accent intensity is driven by --terra-mix on :root (0..1). */
:root { --terra-mix: 1; }

/* Hero — centered brandmark variant */
.hero--centered {
  min-height: clamp(640px, 92vh, 1040px);
  display: grid;
  place-items: center;
  padding-block: clamp(64px, 7vw, 96px) clamp(56px, 6vw, 88px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero--centered::before { display: none; } /* the original off-center grid is replaced */
.hero--centered .container {
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  position: relative; z-index: 2;
  max-width: 1280px;
}
.hero--centered .hero-meta {
  justify-content: center;
  margin: 0;
  gap: 22px;
}
.hero--centered .hero-meta-rule { display: none; }
.hero--centered .hero-meta .dot {
  width: 4px; height: 4px; background: var(--terra);
  display: inline-block; transform: rotate(45deg); margin: 0 4px;
  opacity: var(--terra-mix);
}
.hero--centered .brandmark {
  align-items: center;
  gap: 28px;
  margin: 0;
}
.hero--centered .brandmark-name {
  font-size: clamp(120px, 22vw, 360px);
  letter-spacing: -0.045em;
  line-height: 0.82;
  font-weight: 500;
}
.hero--centered .brandmark-name .brandmark-dot {
  color: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), var(--ink));
}
.hero--centered .brandmark-rule {
  width: clamp(120px, 14vw, 220px);
  background: var(--rule-strong);
  margin: 4px 0;
}
.hero--centered .brandmark-slogan {
  font-size: clamp(24px, 3.1vw, 44px);
  max-width: 22ch;
  text-wrap: balance;
}
.hero--centered .brandmark-slogan .italic-em {
  color: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), var(--ink-2));
}
.hero--centered .hero-sub { display: none; }
.hero--centered .hero-foot { display: none; }
.hero--centered .hero-plate { display: none !important; }

/* Down-cue */
.hero-cue {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  text-decoration: none;
  transition: color .25s;
}
.hero-cue:hover { color: var(--ink); }
.hero-cue .stem {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--rule-strong), transparent);
  display: inline-block;
  position: relative;
}
.hero-cue .stem::after {
  content: ""; position: absolute; left: -2px; top: 0;
  width: 5px; height: 5px;
  background: var(--terra);
  opacity: var(--terra-mix);
  animation: cueDrop 2.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0%, 100% { transform: translateY(-3px); opacity: 0; }
  35%      { opacity: calc(var(--terra-mix) * 1); }
  85%      { transform: translateY(26px); opacity: 0; }
}

/* Division pills under the slogan */
.hero-divs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 920px);
  margin-top: 8px;
}
.hero-divs .label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 auto 6px;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero-divs .label::before,
.hero-divs .label::after {
  content: ""; width: 36px; height: 1px;
  background: var(--rule-strong);
  display: inline-block;
}
.div-pill {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 6px;
  padding: 18px 22px 18px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(245,241,232,0.7);
  border: 1px solid var(--rule-strong);
  position: relative;
  overflow: hidden;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .5s cubic-bezier(.2,.7,.2,1);
  text-align: left;
  isolation: isolate;
}
.div-pill::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent, var(--ink));
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.div-pill:hover::before { transform: scaleX(1); }
.div-pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.div-pill[data-div="real-estate"] { --accent: var(--forest); }
.div-pill[data-div="construction"] { --accent: var(--clay); }
.div-pill[data-div="maintenance"]  { --accent: var(--slate); }
.div-pill .roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), var(--muted));
  letter-spacing: 0.02em;
}
.div-pill:hover .roman { color: var(--terra-soft); }
.div-pill .pname {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.div-pill .pdesc {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; gap: 10px; align-items: baseline;
  margin-top: 2px;
}
.div-pill:hover .pdesc { color: rgba(245,241,232,0.7); }
.div-pill .pdesc .arr { transition: transform .35s; }
.div-pill:hover .pdesc .arr { transform: translateX(6px); }
@media (max-width: 760px) {
  .hero-divs { grid-template-columns: 1fr; gap: 8px; }
  .div-pill { padding: 16px 18px; }
}

/* ---- Hero architectural backgrounds (animation layers) ---- */
.hero-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 100% 88% at 50% 56%, rgba(0,0,0,0.95) 58%, transparent 96%);
  -webkit-mask-image: radial-gradient(ellipse 100% 88% at 50% 56%, rgba(0,0,0,0.95) 58%, transparent 96%);
}
.hero-canvas .scene {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-canvas .scene.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-canvas .scene svg * { animation: none !important; }
}

/* Scene A — blueprint grid + slow tick marks */
.scene-grid {
  background-image:
    linear-gradient(to right, rgba(14,16,20,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,16,20,0.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(14,16,20,0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,16,20,0.09) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 240px 240px, 240px 240px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  animation: gridDrift 90s linear infinite;
}
.scene-grid::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 60%), transparent) 1.5px, transparent 2px);
  background-size: 240px 240px;
  background-position: 0 0;
  opacity: 0.55;
  animation: gridTicks 14s ease-in-out infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 240px 0, 0 240px, 240px 240px, 0 240px; }
}
@keyframes gridTicks {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.6; }
}

/* Scene B — slow plumb-lines, vertical strokes */
.scene-plumb {
  --plumb-color: rgba(14,16,20,0.08);
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, var(--plumb-color) 119px 120px);
}
.scene-plumb .plumb-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.scene-plumb .plumb-svg line {
  stroke: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), transparent 35%);
  stroke-width: 1;
  stroke-dasharray: 6 12;
  animation: plumbScan 9s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes plumbScan {
  0%, 100% { stroke-dashoffset: 0; opacity: 0; }
  20%, 80% { opacity: 0.7; }
  100%     { stroke-dashoffset: -240; }
}

/* Scene C — drifting horizon (architectural elevation lines) */
.scene-horizon {
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(14,16,20,0.06) 79px 80px);
}
.scene-horizon::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(14,16,20,0.025) 39px 40px);
  animation: horizonDrift 30s linear infinite;
}
.scene-horizon .horizon-svg {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 35%;
  width: 100%;
}
.scene-horizon .horizon-svg path {
  fill: none;
  stroke: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 90%), transparent 30%);
  stroke-width: 1;
  stroke-dasharray: 0 6 6 240;
  animation: horizonLine 18s linear infinite;
  opacity: 0.5;
}
@keyframes horizonDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(40px); }
}
@keyframes horizonLine {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -252; }
}

/* Scene E — architectural skyline (line-art city that draws itself) */
.scene-skyline { display: block; }
.scene-skyline .skyline-svg {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 72%;
}
.scene-skyline .b-out {
  fill: none;
  stroke: rgba(14,16,20,0.28);
  stroke-width: 1.2;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: skylineDraw 3.4s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--bi) * 0.18s);
}
.scene-skyline .b-win {
  stroke: rgba(14,16,20,0.13);
  stroke-width: 1;
  opacity: 0;
  animation: skylineWin 1.2s ease forwards;
  animation-delay: 1.6s;
}
.scene-skyline .b-ground {
  stroke: rgba(14,16,20,0.34);
  stroke-width: 1;
}
.scene-skyline .b-lit {
  fill: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), transparent 10%);
  opacity: 0;
  animation: skylineGlow 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes skylineDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes skylineWin {
  to { opacity: 1; }
}
@keyframes skylineGlow {
  0%, 100% { opacity: 0; }
  45%, 70% { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-skyline .b-out { animation: none; stroke-dashoffset: 0; }
  .scene-skyline .b-win { animation: none; opacity: 1; }
  .scene-skyline .b-lit { animation: none; opacity: 0.5; }
  .scene-skyline .ac { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .scene-skyline .ac-dot { animation: none; opacity: 1; }
}
/* Accent elements that narrate the three companies */
.scene-skyline .ac {
  fill: none;
  stroke-width: 1.2;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: skylineDraw 2.8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 2.2s;
}
.scene-skyline rect.ac { fill: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: skylineWin 1s ease forwards; animation-delay: 3.4s; }
.scene-skyline .ac-forest { stroke: color-mix(in oklab, var(--forest) 70%, transparent); }
.scene-skyline .ac-clay   { stroke: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 90%), transparent 15%); }
.scene-skyline .ac-slate  { stroke: color-mix(in oklab, var(--slate) 75%, transparent); }
.scene-skyline .ac.dash   { stroke-dasharray: 7 7; stroke-dashoffset: 0; opacity: 0; animation: skylineWin 1s ease forwards; animation-delay: 2.4s; }
.scene-skyline .ac-dot {
  fill: color-mix(in oklab, var(--forest) 70%, transparent);
  opacity: 0;
  animation: skylineWin 1s ease forwards;
  animation-delay: 3.2s;
}
/* lit windows tinted per company */
.scene-skyline .b-lit.forest { fill: color-mix(in oklab, var(--forest) 80%, transparent 10%); }
.scene-skyline .b-lit.clay   { fill: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), transparent 6%); }
.scene-skyline .b-lit.slate  { fill: color-mix(in oklab, var(--slate) 80%, transparent 8%); }
/* architectural-project building reads lighter (blueprint) */
.scene-skyline .plan-grid line { stroke: color-mix(in oklab, var(--forest) 45%, transparent); }

/* Scene D — geometric trace (drawn floor-plan outline) */
.scene-trace {
  background-color: transparent;
}
.scene-trace .trace-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.scene-trace .trace-svg .ink-stroke {
  fill: none;
  stroke: rgba(14,16,20,0.13);
  stroke-width: 1;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: traceDraw 14s ease-in-out infinite;
}
.scene-trace .trace-svg .ink-stroke.alt {
  stroke: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), transparent 25%);
  animation-delay: 2s;
  animation-duration: 18s;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}
@keyframes traceDraw {
  0%   { stroke-dashoffset: 2400; opacity: 0; }
  20%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  90%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Full-bleed hero photograph (realistic mode) */
.hero--centered .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  object-fit: cover;
  /* slow, single settle-in on load — the image "arrives", then stays fixed */
  transform: scale(1.06);
  opacity: 0;
  animation: heroPhotoIn 2.4s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes heroPhotoIn {
  0%   { opacity: 0; transform: scale(1.10); }
  100% { opacity: 1; transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--centered .hero-photo { animation: none; opacity: 1; transform: scale(1.02); }
}
.hero--centered .hero-photo::part(img) { object-fit: cover; }
.hero--centered img.hero-photo { object-fit: cover; }

/* Veil — reinforced so the black wordmark + slogan always read over the photo */
.hero--centered .hero-veil {
  background:
    radial-gradient(ellipse 64% 50% at 50% 48%, rgba(245,241,232,0.72), rgba(245,241,232,0.34) 70%, rgba(245,241,232,0.12) 100%),
    linear-gradient(180deg, rgba(245,241,232,0.58) 0%, rgba(245,241,232,0.40) 38%, rgba(245,241,232,0.56) 74%, rgba(245,241,232,0.88) 100%);
  z-index: 1;
}

/* ---- Trusted by — client logo strip ---- */
.trust {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0 40px;
  position: relative;
  overflow: hidden;
}
.trust .label {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.trust .label::before,
.trust .label::after {
  content: ""; width: 44px; height: 1px; background: var(--rule-strong);
  display: inline-block;
}
.trust-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex;
  gap: 64px;
  align-items: center;
  width: max-content;
  animation: trustRun 60s linear infinite;
}
.trust:hover .trust-track { animation-play-state: paused; }
@keyframes trustRun {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}
.logo-slot {
  flex: 0 0 auto;
  width: 168px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--rule-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(14,16,20,0.025) 9px 10px);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.logo-slot:hover { color: var(--ink); border-color: var(--ink); }
.logo-slot.is-filled {
  border-style: solid;
  background: transparent;
  padding: 4px 8px;
}
.logo-slot img { max-height: 40px; max-width: 100%; object-fit: contain; opacity: 0.75; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logo-slot:hover img { opacity: 1; filter: grayscale(0); }

/* ---- Projects page ---- */
.projects-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.projects-filters {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
}
.proj-filter {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.proj-filter:hover { color: var(--ink); }
.proj-filter.is-active {
  color: var(--ink);
  border-color: var(--ink);
}
.proj-filter[data-filter="real-estate"].is-active { border-color: var(--forest); color: var(--forest); }
.proj-filter[data-filter="construction"].is-active { border-color: var(--clay); color: var(--clay); }
.proj-filter[data-filter="maintenance"].is-active { border-color: var(--slate); color: var(--slate); }
.proj-count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-count b { color: var(--ink); font-weight: 500; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .projects-grid { grid-template-columns: 1fr; } }
.proj-card {
  background: var(--paper);
  padding: 0;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: background .4s, transform .5s cubic-bezier(.2,.7,.2,1);
  position: relative;
  cursor: pointer;
}
.proj-card:hover { background: var(--paper-2); }
.proj-img {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.proj-img .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(14,16,20,0.05) 14px 15px);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.proj-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s;
  filter: saturate(0.92);
}
.proj-card:hover .proj-img img { transform: scale(1.04); filter: saturate(1); }
.proj-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  color: var(--ink);
  border-left: 2px solid var(--accent, var(--ink));
}
.proj-card[data-div="real-estate"]   .proj-tag { border-left-color: var(--forest); }
.proj-card[data-div="construction"]  .proj-tag { border-left-color: var(--clay); }
.proj-card[data-div="maintenance"]   .proj-tag { border-left-color: var(--slate); }
.proj-body {
  padding: 26px 26px 30px;
  display: flex; flex-direction: column; gap: 8px;
}
.proj-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.proj-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.proj-meta .terra { color: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), var(--muted)); }
.proj-card[data-hidden="true"] { display: none; }

/* ---- Tweaks panel (built-in, minimal) ---- */
.tweaks {
  position: fixed; bottom: 24px; right: 24px;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 18px 60px -20px rgba(14,16,20,0.35);
  z-index: 90;
  font-family: var(--mono);
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink);
}
.tweaks-head b { font-weight: 500; }
.tweaks-close {
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  padding: 0 4px;
}
.tweaks-section {
  padding: 14px 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.tweaks-section:last-child { border-bottom: 0; }
.tweaks-section h4 {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 500;
}
.tweaks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.tweaks-row button {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 6px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tweaks-row button:hover { border-color: var(--ink); }
.tweaks-row button.is-active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.tweaks-helper {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-top: 10px;
}

/* Mobile-specific hero tightening */
@media (max-width: 640px) {
  .hero--centered { min-height: 88vh; padding-top: 40px; padding-bottom: 56px; }
  .hero--centered .container { gap: 26px; }
  .hero--centered .brandmark { gap: 18px; }
  .hero--centered .brandmark-name { font-size: clamp(96px, 36vw, 200px); }
  .hero--centered .brandmark-rule { width: 80px; }
  .hero-divs .label { font-size: 9.5px; letter-spacing: 0.28em; }
  .div-pill .pname { font-size: 22px; }
  .trust .label::before, .trust .label::after { width: 28px; }
  .logo-slot { width: 132px; height: 48px; }
}

/* ============================================================
   v5 — Editorial redesign
   Real logo. No more boxes. Each company gets its own block.
   ============================================================ */

/* Use the actual wordmark — native <img>, no CSS mask (safer for previews) */
img.wmark, .wmark {
  display: inline-block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
/* Nav variant */
.nav-brand--logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  line-height: 1;
}
.nav-brand--logo .wmark {
  width: 102px;
}
.nav-brand--logo .sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--rule);
}

/* Footer variant */
.footer-brand .wmark { width: 160px; }
.cta-band--quiet .wmark { width: 200px; filter: invert(1) brightness(1.2); }

/* Hero — replace the typed brandmark with the real logo, refined */
.hero--centered .brandmark-name .wmark { display: block; width: min(82vw, 980px); }
.hero--centered .brandmark { gap: 22px; }
.hero--centered .brandmark-rule { width: clamp(80px, 10vw, 140px); background: var(--ink); opacity: 0.4; }
.hero--centered .brandmark-slogan {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.005em;
  color: var(--ink-2);
  font-weight: 400;
}
.hero--centered .brandmark-slogan .italic-em {
  font-style: italic;
  color: var(--terra);
}

/* HERO — editorial compass replacing the boxy division pills */
.hero-compass {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  width: min(100%, 960px);
  margin-top: 46px;
  padding-top: 0;
  position: relative;
}
.hero-compass::before {
  content: "Group Divisions";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hero-compass a {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
  padding: 6px 10px 0;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  text-align: center;
  transition: color .25s ease;
}
.hero-compass a + a {
  border-left: 1px solid var(--rule);
}
.hero-compass .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: color-mix(in oklab, var(--terra) calc(var(--terra-mix) * 100%), var(--muted));
  letter-spacing: 0.02em;
}
.hero-compass .nm {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.hero-compass .verb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; justify-content: center; align-items: baseline; gap: 8px;
  margin-top: 6px;
  transition: color .25s, gap .35s;
}
.hero-compass .verb .arr { transition: transform .35s; }
.hero-compass a:hover { color: var(--accent, var(--ink)); }
.hero-compass a:hover .verb { color: var(--accent, var(--muted)); gap: 14px; }
.hero-compass a:hover .verb .arr { transform: translateX(4px); }
.hero-compass a[data-co="real-estate"]   { --accent: var(--forest); }
.hero-compass a[data-co="construction"]  { --accent: var(--clay); }
.hero-compass a[data-co="maintenance"]   { --accent: var(--slate); }
@media (max-width: 760px) {
  .hero-compass { grid-template-columns: 1fr; gap: 4px; }
  .hero-compass a + a { border-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 14px; }
}

/* Premium compass hover — accent fills up, item lifts, numeral grows */
.hero-compass a {
  padding: 16px 10px 18px;
  isolation: isolate;
  overflow: hidden;
  transition: color .3s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.hero-compass a::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--accent, var(--ink)) 16%, transparent), transparent);
  transition: height .5s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.hero-compass a:hover::before { height: 100%; }
.hero-compass a .num,
.hero-compass a .nm,
.hero-compass a .verb { position: relative; z-index: 1; }
.hero-compass a .num,
.hero-compass a .nm { display: inline-block; transition: transform .45s cubic-bezier(.2,.7,.2,1), color .3s ease; }
.hero-compass a:hover { transform: translateY(-4px); }
.hero-compass a:hover .nm { transform: scale(1.05); }
.hero-compass a:hover .num { transform: translateY(-3px) scale(1.18); color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .hero-compass a, .hero-compass a .nm, .hero-compass a .num { transition: none; }
  .hero-compass a:hover { transform: none; }
}

/* ============================================================
   "Three companies" — full-width editorial blocks
   Each company gets its own page-spread feel.
   ============================================================ */
.companies {
  border-top: 1px solid var(--rule);
}
.company {
  position: relative;
  padding-block: clamp(56px, 6vw, 96px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}
.company:nth-child(odd) { background: var(--paper); }
.company:nth-child(even) { background: var(--paper-2); }
.company-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gx);
  display: grid;
  grid-template-columns: minmax(110px, 158px) 1.6fr 0.92fr;
  gap: clamp(36px, 4vw, 72px);
  align-items: start;
  position: relative;
}
.company--flip .company-inner { grid-template-columns: 0.92fr 1.6fr minmax(110px, 158px); }
.company--flip .co-mark { order: 3; text-align: right; }
.company--flip .co-body { order: 2; }
.company--flip .co-side { order: 1; }

.co-mark {
  display: flex; flex-direction: column; gap: 28px;
  position: sticky;
  top: 100px;
}
.co-mark .numeral {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(88px, 9vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--accent, var(--ink));
  position: relative;
  display: inline-block;
}
.co-mark .numeral::after {
  content: ".";
  color: var(--terra);
  font-style: italic;
  opacity: var(--terra-mix);
}
.company--flip .co-mark .numeral::after { content: "."; }
.co-mark .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.co-mark .submark {
  display: flex; flex-direction: column; gap: 4px;
}
.co-mark .submark .group-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; gap: 8px; align-items: center;
}
.co-mark .submark .group-tag::before {
  content: ""; width: 18px; height: 1px; background: var(--accent, var(--rule-strong));
}
.co-mark .submark .co-name-sm {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.co-body {
  display: flex; flex-direction: column; gap: 22px;
}
.co-body .co-name {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}
.co-body .co-name .italic-em {
  font-style: italic;
  color: var(--accent, var(--terra));
}
.co-body .co-claim {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  color: var(--ink-2);
  max-width: 28ch;
  text-wrap: balance;
  margin: 0;
}
.co-body .co-prose {
  color: var(--ink-2);
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}
.co-body .co-cta {
  margin-top: 8px;
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent, var(--terra));
  width: max-content;
  transition: color .25s, gap .35s;
}
.co-body .co-cta:hover { color: var(--accent, var(--terra)); gap: 22px; }
.co-body .co-cta .arr { transition: transform .35s; }
.co-body .co-cta:hover .arr { transform: translateX(6px); }

/* Capability list — editorial spec grid (2×2), airy, no boxes */
.co-skills {
  list-style: none; padding: 0; margin: 24px 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 44px;
}
.co-skills li {
  display: grid; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
  position: relative;
}
.co-skills li::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 28px; height: 2px; background: var(--accent, var(--terra));
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.co-skills li:hover::before { transform: scaleX(1); }
.co-skills li .n {
  font-family: var(--serif); font-style: italic;
  font-size: 32px; line-height: 1;
  color: var(--accent, var(--terra));
  letter-spacing: 0;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.co-skills li:hover .n { transform: translateY(-2px); }
.co-skills li .sk {
  font-family: var(--serif);
  font-size: 21px; line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
}
@media (max-width: 480px) { .co-skills { grid-template-columns: 1fr; gap: 22px; } }

/* Side column — photograph slot, on-grid but tall */
.co-side {
  position: relative;
}
.co-side .photo-slot {
  aspect-ratio: 3 / 4;
  width: 100%;
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(14,16,20,0.045) 14px 15px),
    var(--paper);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}
.co-side .photo-slot .ph-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.co-side .photo-slot .ph-label .roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--accent, var(--terra));
  opacity: 0.8;
  letter-spacing: 0;
}
.co-side .photo-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.co-side .photo-slot img.co-photo {
  position: absolute; inset: 0;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.company:hover .co-photo { transform: scale(1.04); }
.co-side .photo-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.co-side .photo-meta .terra { color: var(--accent, var(--terra)); }

/* Company-level accent variables */
.company[data-co="real-estate"]   { --accent: var(--forest); }
.company[data-co="construction"]  { --accent: var(--clay); }
.company[data-co="maintenance"]   { --accent: var(--slate); }

/* Ghosted M motif in the corner of each company block */
.company .co-glyph {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: clamp(220px, 26vw, 360px);
  height: clamp(220px, 26vw, 360px);
  background-image: url("assets/magop-M.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
.company--flip .co-glyph { right: auto; left: -40px; }

@media (max-width: 960px) {
  .company-inner { grid-template-columns: 1fr; gap: 32px; }
  .company--flip .company-inner { grid-template-columns: 1fr; }
  .company--flip .co-mark { order: 1; text-align: left; }
  .company--flip .co-body { order: 2; }
  .company--flip .co-side { order: 3; }
  .co-mark { position: static; flex-direction: row; align-items: end; gap: 20px; }
  .co-mark .numeral { font-size: 96px; }
  .co-mark .submark { padding-bottom: 6px; }
  .co-side .photo-slot { aspect-ratio: 16 / 10; }
}

/* ============================================================
   Editorial stats — replace the 4-col stats-band grid
   ============================================================ */
.stats-line {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 48px;
  flex-wrap: wrap;
}
.stats-line .stat-item {
  display: flex; align-items: baseline; gap: 12px;
}
.stats-line .stat-item .v {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stats-line .stat-item .v .terra { color: var(--terra); font-style: italic; opacity: var(--terra-mix); }
.stats-line .stat-item .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.5;
}
.stats-line .sep {
  width: 1px; height: 36px;
  background: var(--rule);
  align-self: center;
}
@media (max-width: 900px) {
  .stats-line { flex-direction: column; align-items: flex-start; }
  .stats-line .sep { display: none; }
}

/* ============================================================
   Editorial pillars — manifesto-style, no boxes
   ============================================================ */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 88px;
  margin-top: 16px;
}
.manifesto-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
  align-items: start;
}
.manifesto-item .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--terra);
  line-height: 1;
  letter-spacing: 0;
  opacity: var(--terra-mix);
}
.manifesto-item h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 12px;
  text-wrap: balance;
}
.manifesto-item p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 42ch;
}
@media (max-width: 800px) {
  .manifesto { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   Editorial lifecycle band — replaces .lifecycle-v grid
   ============================================================ */
.lifecycle-line {
  margin-top: 56px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.lifecycle-line::before {
  content: "";
  position: absolute;
  left: 5%; right: 5%;
  top: 50%;
  height: 1px;
  background:
    repeating-linear-gradient(to right, var(--rule-strong) 0 4px, transparent 4px 12px);
}
.lc-item {
  background: transparent;
  padding: 0 24px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  text-align: center;
  align-items: center;
}
.lc-item::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--paper);
  border: 1px solid var(--accent, var(--terra));
  transform: rotate(45deg);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.lc-item[data-co="real-estate"]   { --accent: var(--forest); }
.lc-item[data-co="construction"]  { --accent: var(--clay); }
.lc-item[data-co="maintenance"]   { --accent: var(--slate); }
.lc-item .lc-r {
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--accent, var(--terra));
}
.lc-item .lc-h {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lc-item .lc-d {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 800px) {
  .lifecycle-line { grid-template-columns: 1fr; gap: 28px; }
  .lifecycle-line::before { display: none; }
}

/* ============================================================
   Trust strip — refined slots (no dashed boxes)
   ============================================================ */
.trust { padding-block: 44px 48px; }
.trust .logo-slot {
  background: transparent;
  border: 0;
  width: 168px; height: 44px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--quiet);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7;
  transition: opacity .2s;
}
.trust .logo-slot::before {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--terra);
  opacity: 0;
  transition: opacity .2s;
}
.trust:hover .logo-slot { opacity: 0.4; }
.trust .logo-slot:hover { opacity: 1; }
.trust .logo-slot:hover::before { opacity: calc(var(--terra-mix) * 1); }

/* Hide legacy .div-pill grid if it appears (defensive) */
.hero-divs:has(.div-pill) ~ .hero-compass { display: none; }

/* ============================================================
   v7 — Mobile refinements (audit pass)
   ============================================================ */
/* Never allow a stray absolute element to cause sideways scroll */
html, body { overflow-x: hidden; }
.home-quote { overflow: hidden; }

@media (max-width: 560px) {
  /* Meta line: drop separator dots so it wraps cleanly, centered */
  .hero--centered .hero-meta { gap: 10px 18px; }
  .hero--centered .hero-meta .dot { display: none; }

  /* Hero breathing room + comfortable tap targets on the compass */
  .hero-compass { margin-top: 12px; padding-top: 30px; }
  .hero-compass a { padding: 18px 12px; min-height: 56px; }
  .hero-compass a + a { margin-top: 10px; padding-top: 22px; }
  .hero-compass .verb { margin-top: 8px; }

  /* Company blocks: tighten vertical rhythm, keep numeral from dominating */
  .company { padding-block: clamp(56px, 12vw, 80px); }
  .co-mark .numeral { font-size: 84px; }
  .co-body .co-name { font-size: clamp(34px, 9vw, 46px); }
  .co-body .co-claim { font-size: clamp(20px, 5.4vw, 24px); }

  /* Section headings never crowd the edge */
  .section-head h2 { font-size: clamp(32px, 9vw, 44px); }

  /* Trust strip + track record read calmly */
  .trackrecord .tr-v { font-size: 18px; }

  /* Footer: comfortable spacing when single column */
  .footer-meta { gap: 10px; }
}

/* Generous tap targets for nav + key links on touch devices */
@media (pointer: coarse) {
  .nav-toggle { padding: 12px 16px; }
  .nav.is-open .nav-links .nav-link { padding: 16px 0; }
  .co-body .co-cta, .inline-cta, .hero-cue { padding-top: 8px; padding-bottom: 8px; }
}
