/* ==========================================================================
   SynergyPro Outsourcing — main.css
   Design system: burgundy / gold editorial identity derived from the brand
   presentation. Display: Fraunces. Body/UI: Manrope.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --burgundy: #6a1a22;
  --burgundy-deep: #411015;
  --burgundy-ink: #2c0a0e;
  --red: #93242f;
  --gold: #dbc078;
  --gold-deep: #d0ad50;
  --gold-light: #e6d3a0;
  --gold-dark: #7a5a1e;        /* accessible gold-tone text on light bg */
  --grad-a: #b98947;
  --grad-b: #faf0a1;

  --ivory: #f4efe3;
  --paper: #fbf9f2;
  --ink: #241419;
  --ink-soft: #61494f;
  --line: rgba(36, 20, 25, 0.16);
  --line-strong: rgba(36, 20, 25, 0.34);
  --line-gold: rgba(219, 192, 120, 0.4);

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --w-max: 1280px;
  --w-text: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sect: clamp(4.5rem, 10vw, 8.5rem);
  --sect-sm: clamp(3rem, 7vw, 5.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.15, 1);
  --focus-color: var(--red);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
address { font-style: normal; }
::selection { background: var(--burgundy); color: var(--gold-light); }

:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark, .on-dark * { --focus-color: var(--gold); }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--burgundy); color: var(--gold-light);
  padding: 0.7rem 1.2rem; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 420;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: currentColor;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.18; }
h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }
p { max-width: var(--w-text); }
.lede {
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 56ch;
}
.on-dark .lede { color: rgba(244, 239, 227, 0.82); }
em { font-family: var(--font-display); font-style: italic; letter-spacing: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ""; width: 2.4rem; height: 1px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.on-dark .eyebrow { color: var(--gold); }

.big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 380; line-height: 1.32; letter-spacing: -0.008em;
  max-width: 30ch;
}
.big-quote strong { font-weight: 560; color: var(--red); }
.on-dark .big-quote strong { color: var(--gold); }

/* ---------- Layout ---------- */
.container { width: min(var(--w-max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--sect); position: relative; }
.section--sm { padding-block: var(--sect-sm); }
.section--flush-top { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; }
.section-head--split {
  max-width: none;
  display: grid; gap: 1.5rem 4rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
}
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; align-items: start; } }

.on-dark { background: var(--burgundy-deep); color: var(--ivory); }
.on-burgundy { background: var(--burgundy); color: var(--ivory); }
.on-paper { background: var(--paper); }
.on-dark, .on-burgundy { position: relative; }
.on-dark::after, .on-burgundy::after {  /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.on-dark > *, .on-burgundy > * { position: relative; z-index: 1; }

.hairline { border: 0; border-top: 1px solid var(--line); }
.on-dark .hairline { border-top-color: rgba(219, 192, 120, 0.25); }

/* ---------- Ridge motif (brand-derived linework) ---------- */
.ridge { width: 100%; height: auto; overflow: visible; }
.ridge path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.ridge .r1 { stroke: url(#spo-grad); }
.ridge .r2 { stroke: var(--gold-deep); opacity: 0.75; }
.ridge .r3 { stroke: var(--gold); opacity: 0.5; }
.js .ridge[data-draw] path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.7s var(--ease-luxe);
}
.js .ridge[data-draw] .r2 { transition-delay: 0.18s; }
.js .ridge[data-draw] .r3 { transition-delay: 0.36s; }
.js .ridge[data-draw].is-drawn path { stroke-dashoffset: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.02rem 1.9rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn--primary { background: var(--burgundy); color: var(--gold-light); }
.btn--primary:hover { background: var(--burgundy-deep); color: var(--gold); }
.on-dark .btn--primary, .on-burgundy .btn--primary { background: var(--gold); color: var(--burgundy-deep); }
.on-dark .btn--primary:hover, .on-burgundy .btn--primary:hover { background: var(--gold-light); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--burgundy); color: var(--burgundy); }
.on-dark .btn--ghost, .on-burgundy .btn--ghost { border-color: rgba(244, 239, 227, 0.5); color: var(--ivory); }
.on-dark .btn--ghost:hover, .on-burgundy .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arr { transition: transform 0.3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--red); text-decoration: none; padding-bottom: 0.3rem;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b)) no-repeat left bottom / 0 1px;
  transition: background-size 0.4s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .arr { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(4px); }
.on-dark .link-arrow, .on-burgundy .link-arrow { color: var(--gold); }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin-top: 2.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(244, 239, 227, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(36, 20, 25, 0.35); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 5.25rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 3rem; width: auto; }
@media (max-width: 480px) { .brand img { height: 2.55rem; } }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.1rem); }
.nav__link {
  position: relative;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 0.55rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 0.4rem; padding: 0.78rem 1.35rem; }

/* Services dropdown */
.nav__group { position: relative; display: flex; align-items: center; gap: 0.2rem; }
.nav__caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; color: var(--ink-soft);
}
.nav__caret svg { width: 0.7rem; height: 0.7rem; transition: transform 0.3s var(--ease-out); }
.nav__group.is-open .nav__caret svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 1.1rem); left: 50%;
  width: min(38rem, 86vw);
  transform: translate(-50%, 10px);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(36, 20, 25, 0.4);
  padding: 1.6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
}
.nav__group.is-open .dropdown, .nav__group:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
}
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1.6rem; }
.dropdown a {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.58rem 0.4rem; text-decoration: none;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}
.dropdown a:hover { background: var(--ivory); color: var(--burgundy); }
.dropdown a .n { font-family: var(--font-display); font-size: 0.72rem; color: var(--gold-dark); min-width: 1.2rem; }
.dropdown__all {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}

/* Mobile toggle + overlay */
.menu-toggle {
  display: none; position: relative; z-index: 220;
  width: 2.9rem; height: 2.9rem;
  align-items: center; justify-content: center; flex-direction: column; gap: 7px;
}
.menu-toggle span {
  display: block; width: 1.7rem; height: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease-luxe), opacity 0.25s, background-color 0.3s;
}
.menu-toggle[aria-expanded="true"] span { background: var(--gold-light); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--burgundy-deep); color: var(--ivory);
  display: flex; flex-direction: column;
  padding: 6.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-luxe), visibility 0s 0.6s;
}
.overlay.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path 0.6s var(--ease-luxe), visibility 0s; }
.overlay__brand { position: absolute; top: 1.35rem; left: var(--gutter); }
.overlay__brand img { height: 2.6rem; width: auto; }
.overlay__primary a {
  display: block; text-decoration: none; color: var(--ivory);
  font-family: var(--font-display); font-size: clamp(1.9rem, 7vw, 2.7rem);
  font-weight: 400; line-height: 1.28; padding: 0.32rem 0;
}
.overlay__primary a:hover, .overlay__primary a[aria-current="page"] { color: var(--gold); }
.overlay__label {
  margin: 2.2rem 0 0.9rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.overlay__divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1.6rem; }
@media (max-width: 560px) { .overlay__divisions { grid-template-columns: 1fr; } }
.overlay__divisions a {
  display: flex; gap: 0.7rem; align-items: baseline;
  padding: 0.42rem 0; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; color: rgba(244, 239, 227, 0.88);
}
.overlay__divisions a:hover { color: var(--gold); }
.overlay__divisions .n { font-family: var(--font-display); font-size: 0.72rem; color: var(--gold-deep); min-width: 1.2rem; }
.overlay__foot {
  margin-top: auto; padding-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: rgba(244, 239, 227, 0.7);
}
.overlay__foot a { color: var(--gold-light); text-decoration: none; }
.js .overlay__stagger { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js .overlay.is-open .overlay__stagger { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1021px) { .overlay { display: none; } }

body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-deep); color: var(--ivory); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer .ridge { opacity: 0.5; margin-bottom: -1px; }
.footer-grid {
  display: grid; gap: 3rem 2.5rem;
  grid-template-columns: minmax(16rem, 1.4fr) repeat(3, minmax(0, 1fr));
  padding: clamp(3.2rem, 6vw, 5rem) 0 3rem;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 3rem; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { font-size: 0.95rem; color: rgba(244, 239, 227, 0.72); max-width: 30ch; }
.footer-brand .phone {
  display: inline-block; margin-top: 1.3rem;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-light);
  text-decoration: none;
}
.footer-brand .phone:hover { color: var(--gold); }
.footer-col h2 {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a {
  font-size: 0.93rem; color: rgba(244, 239, 227, 0.84); text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(219, 192, 120, 0.22);
  padding: 1.6rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(244, 239, 227, 0.6);
}
.footer-bottom a { color: rgba(244, 239, 227, 0.78); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vh, 6.5rem) 0 0; }
.hero__grid {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
}
.hero__copy { padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.hero__copy .eyebrow { margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(2.9rem, 6.8vw, 6rem); max-width: 12.5ch; }
.hero h1 em { color: var(--red); }
.hero .lede { margin-top: 1.8rem; }
.hero__panel {
  position: relative; background: var(--burgundy); color: var(--ivory);
  min-height: 24rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.4rem;
  overflow: hidden;
}
.hero__panel::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__panel .ridge { position: absolute; left: -6%; right: -6%; top: 22%; width: 112%; }
.hero__panel-meta {
  position: relative; z-index: 1;
  display: grid; gap: 0.35rem;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light);
}
.hero__panel-meta strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.02em; text-transform: none; font-weight: 420; color: var(--gold); }
.hero__vertical {
  position: absolute; top: 2.2rem; right: 2rem; z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(230, 211, 160, 0.7);
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { min-height: 15rem; }
}

/* Masked headline reveal */
.mask-lines .line { display: block; overflow: hidden; }
.mask-lines .line > span { display: inline-block; }
.js .mask-lines .line > span {
  transform: translateY(112%);
  transition: transform 0.95s var(--ease-luxe);
}
.js .mask-lines.is-in .line:nth-child(1) > span { transition-delay: 0.08s; }
.js .mask-lines.is-in .line:nth-child(2) > span { transition-delay: 0.2s; }
.js .mask-lines.is-in .line:nth-child(3) > span { transition-delay: 0.32s; }
.js .mask-lines.is-in .line > span { transform: translateY(0); }

/* Pillars marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.1rem 0;
  background: var(--paper);
}
.marquee__track { display: flex; width: max-content; gap: 3.5rem; align-items: baseline; }
.js .marquee__track { animation: marquee 34s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 400; white-space: nowrap; color: var(--ink);
}
.marquee .dot { color: var(--gold-deep); font-size: 1em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Pillar statements */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar {
  display: grid; gap: 1rem 3rem;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: baseline;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
}
.pillar h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.pillar h3 .n { font-size: 0.55em; color: var(--gold-dark); vertical-align: 0.55em; margin-right: 0.5rem; font-style: italic; font-weight: 400; }
.pillar p { color: var(--ink-soft); }
@media (max-width: 760px) { .pillar { grid-template-columns: 1fr; gap: 0.6rem; } }

/* Divisions ledger */
.ledger { border-top: 1px solid var(--line-strong); }
.ledger__row {
  position: relative; display: grid; align-items: baseline;
  grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr) 3rem;
  gap: 1rem 2rem;
  padding: 1.55rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.ledger__row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-luxe);
}
.ledger__row:hover::after, .ledger__row:focus-visible::after { transform: scaleX(1); }
.ledger__num { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--gold-dark); }
.ledger__name {
  font-family: var(--font-display); font-weight: 440;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.15;
  transition: color 0.3s;
}
.ledger__row:hover .ledger__name { color: var(--burgundy); }
.ledger__desc { font-size: 0.95rem; color: var(--ink-soft); }
.ledger__arr { justify-self: end; color: var(--gold-dark); transition: transform 0.4s var(--ease-out), color 0.3s; }
.ledger__row:hover .ledger__arr { transform: translateX(6px); color: var(--red); }
@media (max-width: 860px) {
  .ledger__row { grid-template-columns: 3rem minmax(0, 1fr) 2rem; }
  .ledger__desc { grid-column: 2; }
}

/* Sticky story */
.story { display: grid; gap: 3rem 5rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.story__pin { position: sticky; top: 8rem; align-self: start; }
.story__pin .eyebrow { margin-bottom: 1.2rem; }
.story__items { display: grid; gap: clamp(3rem, 7vh, 5rem); }
.story__item { border-top: 1px solid rgba(219, 192, 120, 0.3); padding-top: 1.6rem; }
.story__item .k {
  font-family: var(--font-display); font-style: italic; font-size: 0.95rem;
  color: var(--gold-deep); display: block; margin-bottom: 0.7rem;
}
.story__item h3 { color: var(--gold-light); margin-bottom: 0.8rem; }
.story__item p { color: rgba(244, 239, 227, 0.82); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__pin { position: static; }
}

/* Sales spotlight */
.spotlight { display: grid; gap: 3rem 5rem; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
.roles { border-top: 1px solid var(--line-strong); counter-reset: role; }
.roles li {
  counter-increment: role;
  display: flex; align-items: baseline; gap: 1.3rem;
  padding: 1.05rem 0.2rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 420;
}
.roles li::before {
  content: counter(role, decimal-leading-zero);
  font-size: 0.72rem; font-family: var(--font-body); font-weight: 700;
  letter-spacing: 0.14em; color: var(--gold-dark);
}
.roles li span { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-soft); margin-left: auto; text-align: right; }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } }

/* Steps (operating model) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 0.55rem; left: 0; right: 0; height: 1px; background: rgba(219, 192, 120, 0.3); }
.step { counter-increment: step; padding-top: 2.1rem; position: relative; padding-bottom: 2.5rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--burgundy-deep); border: 1px solid var(--gold);
}
.step__k { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--gold-deep); display: block; margin-bottom: 0.5rem; }
.step h3 { font-size: 1.28rem; color: var(--gold-light); margin-bottom: 0.55rem; }
.step p { font-size: 0.95rem; color: rgba(244, 239, 227, 0.78); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 0; bottom: 0; left: 0.3rem; right: auto; width: 1px; height: auto; }
  .step { padding-left: 2rem; padding-top: 0; padding-bottom: 2rem; }
  .step::before { left: -4px; top: 0.35rem; }
}

/* Values */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; border-top: 1px solid var(--line-strong); }
.values div { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.values h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.values p { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Proof */
.proof { display: grid; gap: 0; border-top: 1px solid rgba(219, 192, 120, 0.3); }
.proof li {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.4rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid rgba(219, 192, 120, 0.2);
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 400;
  color: rgba(244, 239, 227, 0.55);
  transition: color 0.7s var(--ease-out);
}
.proof li::before { content: "—"; color: var(--gold-deep); font-size: 1rem; }
.js .proof li.is-in, html:not(.js) .proof li { color: var(--ivory); }

/* CTA band */
.cta-band { text-align: left; }
.cta-band h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 16ch; }
.cta-band h2 em { color: var(--gold); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { padding: clamp(3.2rem, 7vh, 5.5rem) 0 clamp(2.6rem, 5vh, 4rem); position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 1.4rem; }
.page-hero h1 { max-width: 15ch; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero .ridge { position: absolute; right: -4%; top: 14%; width: min(46rem, 58vw); opacity: 0.55; pointer-events: none; }
@media (max-width: 900px) { .page-hero .ridge { display: none; } }
.page-hero--dark { background: var(--burgundy-deep); color: var(--ivory); }
.page-hero--dark .ridge { opacity: 0.7; display: block; width: min(40rem, 70vw); top: auto; bottom: -6%; }

/* Division pages */
.division-hero { background: var(--burgundy-deep); color: var(--ivory); position: relative; overflow: hidden; }
.division-hero .container { padding: clamp(3.4rem, 8vh, 6rem) 0 clamp(3rem, 6vh, 4.5rem); position: relative; z-index: 1; }
.division-hero__num {
  font-family: var(--font-display); font-style: italic; font-weight: 340;
  font-size: clamp(4.5rem, 12vw, 9rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(219, 192, 120, 0.55);
  position: absolute; right: 0; top: clamp(1.5rem, 4vh, 3rem); z-index: 0;
  pointer-events: none; user-select: none;
}
.division-hero .eyebrow { margin-bottom: 1.3rem; }
.division-hero h1 { max-width: 14ch; }
.division-hero .lede { margin-top: 1.5rem; color: rgba(244, 239, 227, 0.84); }
.division-hero .ridge { position: absolute; left: -4%; right: -4%; bottom: -8%; width: 108%; opacity: 0.45; }

.tiers-note {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; align-items: center;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}
.tier {
  display: inline-block; padding: 0.28rem 0.7rem 0.24rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 2px; white-space: nowrap;
}
.tier--std { border: 1px solid var(--line-strong); color: var(--ink-soft); }
.tier--adv { background: var(--burgundy); color: var(--gold-light); }
.tier--req { border: 1px solid var(--gold-deep); color: var(--gold-dark); }

.svc-group { margin-top: clamp(2.8rem, 6vw, 4.5rem); }
.svc-group > h2 { margin-bottom: 1.6rem; max-width: 24ch; }
.svc { border-top: 1px solid var(--line-strong); }
.svc__item {
  display: grid; gap: 0.9rem 3rem;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding: clamp(1.6rem, 3vw, 2.2rem) 0.2rem;
  border-bottom: 1px solid var(--line);
}
.svc__head h3 { margin-bottom: 0.75rem; }
.svc__tiers { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.svc__body p { color: var(--ink-soft); font-size: 0.99rem; }
.svc__body p + p { margin-top: 0.75rem; }
.svc__body strong { color: var(--ink); font-weight: 700; }
.svc__tools { margin-top: 0.85rem; font-size: 0.84rem; letter-spacing: 0.02em; color: var(--gold-dark); }
.svc__tools b { font-weight: 700; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.16em; margin-right: 0.5rem; color: var(--ink-soft); }
@media (max-width: 820px) { .svc__item { grid-template-columns: 1fr; } }

.division-aside {
  display: grid; gap: 3rem 5rem; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: start;
}
@media (max-width: 900px) { .division-aside { grid-template-columns: 1fr; } }
.fit-list { display: grid; gap: 0.8rem; }
.fit-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.9rem; align-items: baseline; color: var(--ink-soft); }
.fit-list li::before { content: ""; height: 1px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); align-self: center; }
.on-dark .fit-list li, .on-burgundy .fit-list li { color: rgba(244, 239, 227, 0.85); }

/* Engagement model cards (rectangular, restrained) */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(219, 192, 120, 0.28); border: 1px solid rgba(219, 192, 120, 0.28); }
.model { background: var(--burgundy-deep); padding: 2rem 1.8rem; }
.model .k { font-family: var(--font-display); font-style: italic; color: var(--gold-deep); font-size: 0.9rem; display: block; margin-bottom: 0.6rem; }
.model h3 { font-size: 1.3rem; color: var(--gold-light); margin-bottom: 0.6rem; }
.model p { font-size: 0.93rem; color: rgba(244, 239, 227, 0.8); }
@media (max-width: 860px) { .models { grid-template-columns: 1fr; } }
.on-paper .models, .section:not(.on-dark):not(.on-burgundy) .models { background: var(--line); border-color: var(--line); }
.section:not(.on-dark):not(.on-burgundy) .model { background: var(--paper); }
.section:not(.on-dark):not(.on-burgundy) .model h3 { color: var(--burgundy); }
.section:not(.on-dark):not(.on-burgundy) .model p { color: var(--ink-soft); }
.section:not(.on-dark):not(.on-burgundy) .model .k { color: var(--gold-dark); }

/* Prose (About / Privacy / process copy) */
.prose { max-width: var(--w-text); }
.prose p + p { margin-top: 1.1rem; }
.prose h2 { margin: 2.6rem 0 0.9rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin: 1.9rem 0 0.6rem; font-size: 1.2rem; }
.prose ul { padding-left: 1.15rem; margin-top: 0.8rem; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--gold-deep); }
.prose a { color: var(--red); text-underline-offset: 3px; text-decoration-color: var(--gold-deep); }
.prose a:hover { color: var(--burgundy); }

.two-col { display: grid; gap: 2.5rem 5rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: 8rem; align-self: start; }
@media (max-width: 900px) { .sticky-col { position: static; } }

/* Locations */
.country {
  display: grid; gap: 1.5rem 4rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding: clamp(2.6rem, 6vw, 4.2rem) 0; border-top: 1px solid var(--line-strong);
}
.country:last-of-type { border-bottom: 1px solid var(--line-strong); }
.country h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.country .tz { display: block; margin-top: 0.8rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); }
.country p + p { margin-top: 0.9rem; }
.country p { color: var(--ink-soft); }
@media (max-width: 860px) { .country { grid-template-columns: 1fr; } }

/* Brand block frame (official color-with-background logo) */
.brand-block { border: 1px solid var(--line); background: var(--paper); padding: clamp(1.2rem, 3vw, 2.2rem); }
.brand-block img { width: 100%; height: auto; }
.brand-block figcaption { margin-top: 0.9rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3.5rem 5rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side .phone { font-family: var(--font-display); font-size: 1.5rem; color: var(--burgundy); text-decoration: none; }
.contact-side .phone:hover { color: var(--red); }
.contact-side .next { margin-top: 2.4rem; border-top: 1px solid var(--line-strong); }
.contact-side .next li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2rem 1fr; gap: 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }
.contact-side .next .n { font-family: var(--font-display); font-style: italic; color: var(--gold-dark); }

.form { display: grid; gap: 1.6rem; grid-template-columns: 1fr 1fr; }
.form .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field label .req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 0.65rem 0.1rem; border-radius: 0;
  transition: border-color 0.25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a5a1e' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2rem center;
  padding-right: 1.6rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--burgundy); box-shadow: 0 1px 0 var(--burgundy); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: var(--red); }
.field .error { display: none; margin-top: 0.45rem; font-size: 0.8rem; color: var(--red); }
.field.is-invalid .error { display: block; }

.consent { display: grid; grid-template-columns: 1.35rem 1fr; gap: 0.85rem; align-items: start; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--burgundy); }
.consent label { font-size: 0.88rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 500; line-height: 1.5; }
.consent a { color: var(--red); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; margin-top: 0.4rem; padding: 1.1rem 1.3rem; font-size: 0.95rem; border-left: 3px solid; }
.form-status.is-visible { display: block; }
.form-status--ok { border-color: var(--gold-deep); background: rgba(219, 192, 120, 0.16); color: var(--ink); }
.form-status--err { border-color: var(--red); background: rgba(147, 36, 47, 0.08); color: var(--red); }
.form-success { border: 1px solid var(--line); background: var(--paper); padding: clamp(2rem, 4vw, 3rem); }
.form-success h2 { margin-bottom: 0.8rem; }
.form-success p { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.err-hero { min-height: 62vh; display: grid; align-content: center; }
.err-hero .code { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: clamp(5rem, 16vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-deep); }

/* ---------- Reveal system ---------- */
.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); transition-delay: var(--rv-d, 0s); will-change: opacity, transform; }
.js [data-rv="fade"] { transform: none; }
.js [data-rv].is-in { opacity: 1; transform: none; }

.js body { opacity: 0; animation: pageIn 0.55s var(--ease-out) 0.05s forwards; }
@keyframes pageIn { to { opacity: 1; } }
.js body.is-exiting { opacity: 1; animation: pageOut 0.24s var(--ease-out) forwards; }
@keyframes pageOut { to { opacity: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-rv], .js .mask-lines .line > span, .js .proof li { opacity: 1 !important; transform: none !important; color: inherit; }
  .js .ridge[data-draw] path { stroke-dashoffset: 0 !important; }
  .js .marquee__track { animation: none !important; }
  .js body { opacity: 1; animation: none; }
}

/* Fallback where text-stroke is unsupported: soft gold instead of invisible */
@supports not (-webkit-text-stroke: 1px black) {
  .division-hero__num, .err-hero .code { color: rgba(219, 192, 120, 0.3); -webkit-text-stroke: 0; }
}
