/* ============================================================
   Dolf Consulting — site styles
   Built on the Dolf brand design system:
   Fraunces (display) + Archivo (sans), navy / crème / gold.
   ============================================================ */

:root {
  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Brand palette */
  --deep-navy: #0f1a2c;
  --midnight: #1d2e4c;
  --dusty: #51677e;
  --creme: #fff7e4;
  --gold: #d8c195;
  --gold-text: #9a7b2e;

  /* Surfaces — light mode on pure white, warmed with subtle neutrals */
  --paper: #ffffff;
  --ink: #0f1a2c;
  --surface: #f7f6f2;
  --panel: #efeee8;
  --rule: rgba(15, 26, 44, 0.14);
  --rule-strong: rgba(15, 26, 44, 0.26);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type scale */
  --display: 64px;
  --h1: 48px;
  --h2: 34px;
  --h3: 24px;
  --lead: 19px;
  --body: 16px;
  --label: 14px;
  --small: 13px;
  --micro: 12px;

  --w-reg: 400;
  --w-med: 500;
  --w-semi: 600;
  --w-bold: 700;
  --w-display: 400;

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: var(--w-reg);
  font-size: var(--body);
  line-height: 1.65;
}

.fr {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: inherit; }

.eyebrow {
  font-weight: var(--w-semi);
  font-size: var(--micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 14px;
}

/* ----------------------------------------------------------
   Top nav
   ---------------------------------------------------------- */
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--midnight), var(--gold));
  z-index: 100;
  transition: width 0.08s linear;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(15, 26, 44, 0.06); }
.nav-logo svg, .nav-logo img { transition: opacity 0.2s var(--ease); }
.nav-logo:hover { opacity: 0.78; }
.nav .wrap {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
}
.nav-logo { width: 176px; display: block; }
.nav-logo svg, .nav-logo img { display: block; width: 100%; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a:not(.nav-cta) {
  position: relative;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: var(--w-med);
  letter-spacing: 0.01em;
  color: var(--midnight);
  transition: color 0.18s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1.5px;
  width: 100%;
  background: var(--gold-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--midnight); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--small);
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--creme) !important;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.nav-cta .arrow { display: inline-block; transition: transform 0.28s var(--ease-out); }
.nav-cta:hover {
  background: transparent;
  color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 26, 44, 0.12);
}
.nav-cta:hover .arrow { transform: translate(3px, -3px); }
.nav-cta:active { transform: translateY(0); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 24px; height: 14px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav.open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  /* Links collapse into a dropdown panel anchored under the bar */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 44px rgba(15, 26, 44, 0.10);
    padding: 6px var(--gutter) 26px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease-out),
      visibility 0.26s var(--ease);
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a:not(.nav-cta) {
    display: block;
    padding: 17px 2px;
    font-size: 17px;
    color: var(--midnight);
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    margin-top: 22px;
    text-align: center;
    padding: 15px 20px;
    font-size: var(--small);
  }
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-strong);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  opacity: 0.6;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding: 104px var(--gutter) 92px;
}
.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: clamp(40px, 7vw, var(--display));
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--midnight);
  margin: 26px 0 22px;
  max-width: 17ch;
}
.lede {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--dusty);
  max-width: 56ch;
  margin: 0 0 34px;
}
.lede strong { color: var(--deep-navy); font-weight: var(--w-semi); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--small);
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--creme);
  border-radius: 999px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.28s var(--ease-out);
}
.btn:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 26, 44, 0.14);
}
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--creme); }

/* ----------------------------------------------------------
   Tiers
   ---------------------------------------------------------- */
.tiers { border-bottom: 1px solid var(--rule); }
.tiers .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.tier { padding: 44px 0; }
.tier:first-child { padding-right: 48px; border-right: 1px solid var(--rule); }
.tier:last-child { padding-left: 48px; }
.tier h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: var(--h3);
  margin: 8px 0 10px;
  letter-spacing: -0.01em;
  color: var(--midnight);
  transition: color 0.3s var(--ease);
}
.tier:hover h3 { color: var(--gold-text); }
.tier p { margin: 0; color: var(--dusty); font-size: 15.5px; }
@media (max-width: 720px) {
  .tiers .wrap { grid-template-columns: 1fr; }
  .tier:first-child {
    padding-right: 0; border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .tier:last-child { padding-left: 0; }
}

/* ----------------------------------------------------------
   Section heading
   ---------------------------------------------------------- */
.sec-head { padding-top: 76px; padding-bottom: 4px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: var(--h2);
  letter-spacing: -0.01em;
  color: var(--midnight);
  margin: 0;
}

/* ----------------------------------------------------------
   Ledger of services
   ---------------------------------------------------------- */
.ledger { padding-bottom: 28px; padding-top: 8px; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr 1.15fr;
  gap: 32px;
  padding: 38px 24px;
  margin: 0 -24px;
  border-top: 1px solid var(--rule);
  align-items: start;
  border-radius: 14px;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.row:last-child { border-bottom: 1px solid var(--rule); }
/* gold edge that wipes in on hover — sits in the left bleed, clear of the text */
.row::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 38px;
  bottom: 38px;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.row:hover {
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(15, 26, 44, 0.05);
}
.row:hover::before { transform: scaleY(1); }
.row .code {
  font-family: var(--font-mono);
  font-size: var(--small);
  color: var(--midnight);
  font-weight: var(--w-med);
  padding-top: 6px;
  padding-left: 14px;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.row:hover .code { color: var(--gold-text); }
.row .code small {
  display: block;
  color: var(--gold-text);
  font-weight: var(--w-reg);
  margin-top: 6px;
  font-size: 11px;
}
.row h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  color: var(--midnight);
}
.row .desc { color: var(--dusty); font-size: 15.5px; margin: 0; }
.row ul { margin: 2px 0 0; padding: 0; list-style: none; }
.row ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--deep-navy);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.row ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--w-bold);
  color: var(--gold-text);
  transition: transform 0.3s var(--ease-out);
}
.row ul li:hover { transform: translateX(4px); color: var(--midnight); }
.row ul li:hover::before { transform: rotate(90deg); }
@media (max-width: 760px) {
  /* Drop the desktop hover-bleed: at small gutters the negative margin
     pushed content off the screen edge. */
  /* Indent the content so the gold edge has room on the left. */
  .row { grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 30px 0 30px 22px; }
  /* No hover on touch: wipe the edge in as the row scrolls into view. */
  .row::before {
    display: block;
    left: 6px;
    top: 30px;
    bottom: 30px;
    transform: scaleY(0);
    transition: transform 0.6s var(--ease-out);
  }
  .row.in::before { transform: scaleY(1); }
  .row .code { padding-top: 0; padding-left: 0; }
}

/* ----------------------------------------------------------
   Featured AI band (navy)
   ---------------------------------------------------------- */
.feature {
  background: var(--deep-navy);
  color: var(--creme);
  margin-top: 24px;
}
.feature .wrap {
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 32px;
  align-items: start;
}
.feature .code {
  font-family: var(--font-mono);
  font-size: var(--small);
  color: var(--creme);
  font-weight: var(--w-med);
  letter-spacing: 0.04em;
}
.feature .code small {
  display: block;
  color: var(--gold);
  font-weight: var(--w-reg);
  margin-top: 6px;
  font-size: 11px;
}
.feature .tag {
  font-family: var(--font-mono);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.feature h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0 0 14px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.feature > .wrap > div > p {
  margin: 0;
  color: #c9d3e0;
  max-width: 60ch;
  font-size: 16px;
}
.feature .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 247, 228, 0.18);
}
.feature .half { padding: 28px 32px 6px 0; }
.feature .half:last-child {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 247, 228, 0.18);
}
.feature .half .k {
  font-family: var(--font-mono);
  font-size: var(--micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--creme);
  margin-bottom: 10px;
}
.feature .half p { font-size: 14.5px; color: #aeb9c8; margin: 0; }
@media (max-width: 760px) {
  .feature .wrap { grid-template-columns: 1fr; gap: 16px; }
  .feature .split { grid-template-columns: 1fr; }
  .feature .half:last-child {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 247, 228, 0.18);
    padding-top: 24px;
  }
}

/* ----------------------------------------------------------
   Proof
   ---------------------------------------------------------- */
.proof .wrap { padding-top: 76px; padding-bottom: 8px; }
.proof-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.proof-head h2 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--h2);
  letter-spacing: -0.01em;
  color: var(--midnight);
  margin: 6px 0 0;
}
.proof-head-cta { flex: none; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 26px;
}
.pf {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out);
}
.pf:first-child { padding-left: 0; }
.pf:last-child { border-right: none; padding-right: 0; }
.pf .pk {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
  transition: letter-spacing 0.3s var(--ease);
}
.pf:hover { transform: translateY(-3px); }
.pf:hover .pk { letter-spacing: 0.16em; }
.pf p { margin: 0; font-size: 16px; color: var(--deep-navy); line-height: 1.45; }
.pf p b { font-family: var(--font-display); font-weight: var(--w-display); }
.pf-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-text);
  margin-top: 18px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.pf:hover .pf-link { opacity: 1; transform: none; }
.proof-note { font-size: 12.5px; color: var(--dusty); margin-top: 24px; font-style: italic; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr; }
  .pf { border-right: none; border-bottom: 1px solid var(--rule); padding: 28px 0; }
  .pf:last-child { border-bottom: none; }
  .pf-link { opacity: 1; transform: none; }  /* always visible on touch */
}

/* ----------------------------------------------------------
   How we work
   ---------------------------------------------------------- */
.how { border-top: 1px solid var(--rule); margin-top: 28px; }
.how .wrap { padding-top: 76px; padding-bottom: 72px; }
.how h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: var(--h2);
  letter-spacing: -0.01em;
  color: var(--midnight);
  margin: 14px 0 38px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-bottom: 56px;
}
/* Symmetric inner padding keeps text off the dividers; outer edges stay flush. */
.step { padding: 32px 30px; border-right: 1px solid var(--rule); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; padding-right: 0; }
.step .si { font-family: var(--font-mono); font-size: var(--micro); color: var(--gold-text); margin-bottom: 16px; }
.step h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--midnight);
}
.step p { margin: 0; font-size: 14px; color: var(--dusty); }
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 900px; }
.em {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.em:hover {
  transform: translateY(-4px);
  background: var(--paper);
  border-color: var(--rule-strong);
  box-shadow: 0 16px 34px rgba(15, 26, 44, 0.08);
}
.em .et {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.em h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--midnight);
}
.em p { margin: 0; font-size: 13.5px; color: var(--dusty); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding: 28px 26px; border-right: none; border-bottom: 1px solid var(--rule); }
  .step:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
  .step:nth-child(even) { padding-right: 0; }
  .models { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------
   Credentials
   ---------------------------------------------------------- */
.creds .wrap { padding-top: 68px; padding-bottom: 68px; }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 14px;
}
.cred { padding: 28px 28px; border-right: 1px solid var(--rule); }
.cred:first-child { padding-left: 0; }
.cred:last-child { border-right: none; padding-right: 0; }
.cred .n {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--midnight);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease-out);
  transform-origin: left;
}
.cred:hover .n { color: var(--gold-text); transform: scale(1.04); }
.cred-logo {
  display: block;
  width: 158px;
  max-width: 100%;
  height: auto;
  margin: 3px 0 14px;
  color: var(--midnight);
  transform-origin: left;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.cred:hover .cred-logo { color: var(--gold-text); transform: scale(1.04); }
.cred .l { font-size: 13px; color: var(--dusty); }
@media (max-width: 760px) {
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred { padding: 26px 24px; border-right: none; border-bottom: 1px solid var(--rule); }
  .cred:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
  .cred:nth-child(even) { padding-right: 0; }
  /* lone last item on its own row — no dangling divider or bottom rule */
  .cred:last-child:nth-child(odd) { border-right: none; border-bottom: none; }
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
footer { background: var(--deep-navy); color: var(--creme); }
footer .wrap { padding: 88px var(--gutter) 36px; }

/* Top: statement + columns */
.foot-top {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr;
  gap: 56px;
  padding-bottom: 64px;
}

/* Left — display statement + CTA */
.foot-headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--w-display);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--creme);
  margin: 0 0 34px;
}
.foot-headline em { font-style: italic; font-weight: 400; color: var(--gold); }
.foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--small);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--deep-navy);
  border: 1px solid var(--creme);
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    transform 0.22s var(--ease);
}
.foot-cta .arrow { display: inline-block; transition: transform 0.28s var(--ease-out); }
.foot-cta:hover { background: transparent; color: var(--creme); transform: translateY(-2px); }
.foot-cta:hover .arrow { transform: translate(3px, -3px); }
.foot-cta:active { transform: translateY(0); }

/* Right — link columns */
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-col h3 {
  font-family: var(--font-sans);
  font-weight: var(--w-semi);
  font-size: var(--label);
  letter-spacing: 0.01em;
  color: var(--creme);
  margin: 0 0 22px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 14px; }
.foot-col a {
  text-decoration: none;
  font-size: 15px;
  color: var(--gold);
  transition: color 0.2s var(--ease);
}
.foot-col a:hover { color: var(--creme); }

/* Contact column with icons */
.foot-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 15px; }
.foot-contact .ic { flex: none; width: 18px; height: 18px; color: var(--gold); margin-top: 1px; }
.foot-contact .ic svg { width: 100%; height: 100%; display: block; }
.foot-contact a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
.foot-contact a:hover { color: var(--creme); }
.foot-contact .addr { color: #aab6c6; line-height: 1.45; }

/* Bottom bar — social icons + copyright */
.foot-bottom {
  border-top: 1px solid rgba(255, 247, 228, 0.16);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-social { display: flex; gap: 20px; }
.foot-social a {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--creme);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease-out);
}
.foot-social a:hover { color: var(--gold); transform: translateY(-2px); }
.foot-social svg { width: 100%; height: 100%; display: block; }
.foot-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #8194ad;
}

@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr; gap: 44px; padding-bottom: 52px; }
  footer .wrap { padding-top: 64px; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ----------------------------------------------------------
   Reveal on scroll
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .em, .pf, .row, .row::before, .cred .n, .nav-cta { transition: none !important; }
  .row.in::before { transform: scaleY(1); }
}

/* ----------------------------------------------------------
   Case studies page
   ---------------------------------------------------------- */
.cs-hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-navy);
  color: var(--creme);
}
/* faint crème grid on navy */
.cs-hero .hero-grid {
  background-image:
    linear-gradient(rgba(255, 247, 228, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 228, 0.06) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  opacity: 1;
}
/* warm gold glow, top-right */
.cs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 76% at 86% -8%, rgba(216, 193, 149, 0.22), transparent 60%);
  pointer-events: none;
}
/* interactive gold glow that follows the cursor — revealed on hover */
.cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px 240px at var(--mx, 50%) var(--my, 0%), rgba(216, 193, 149, 0.13), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.cs-hero:hover::before { opacity: 1; }
.cs-hero .wrap { position: relative; z-index: 1; padding: 112px var(--gutter) 92px; }
.cs-hero .eyebrow { color: var(--gold); }
.cs-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--creme);
  margin: 24px 0 0;
}
.cs-hero h1 em { font-style: italic; color: var(--gold); }
.cs-intro { font-size: var(--lead); line-height: 1.55; color: #c4cedd; max-width: 58ch; margin: 26px 0 0; }
.cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 247, 228, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #9fb0c4;
}
.cs-hero-meta b { color: var(--creme); font-weight: var(--w-med); }

.cs-list .wrap { padding-top: 60px; padding-bottom: 84px; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cs-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 26, 44, 0.10); border-color: var(--rule-strong); }
.cs-thumb {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(130% 120% at 82% 8%, rgba(216, 193, 149, 0.38), transparent 56%),
    var(--deep-navy);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px;
}
.cs-thumb .code { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--creme); }
.cs-thumb .yr { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }
.cs-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.cs-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.cs-card h3 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--midnight);
  margin: 0 0 10px;
}
.cs-card p { margin: 0; font-size: 15px; color: var(--dusty); }
.cs-readmore {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-text);
  margin-top: auto;
  padding-top: 18px;
}
.cs-readmore .arrow { display: inline-block; transition: transform 0.28s var(--ease-out); }
.cs-card:hover .cs-readmore .arrow { transform: translateX(4px); }
@media (max-width: 860px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cs-grid { grid-template-columns: 1fr; } }


/* Anchor offset so the sticky nav does not cover the target */
#training { scroll-margin-top: 96px; }

/* ============================================================
   Case study article (e.g. /case-studies/retail-reopening)
   ============================================================ */
.cstudy-hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-navy);
  color: var(--creme);
}
.cstudy-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 90% -12%, rgba(216, 193, 149, 0.16), transparent 60%);
  pointer-events: none;
}
.cstudy-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(240px 240px at var(--mx, 50%) var(--my, 0%), rgba(216, 193, 149, 0.12), transparent 68%);
  opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none;
}
.cstudy-hero:hover::before { opacity: 1; }
.cstudy-hero .wrap { position: relative; z-index: 1; padding: 52px var(--gutter) 60px; }
.cstudy-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: #9fb0c4; text-decoration: none; margin-bottom: 36px;
  transition: color 0.2s var(--ease);
}
.cstudy-back:hover { color: var(--gold); }
.cstudy-back .arrow { display: inline-block; transition: transform 0.28s var(--ease-out); }
.cstudy-back:hover .arrow { transform: translateX(-4px); }
.cstudy-hero .eyebrow { color: var(--gold); }
.cstudy-hero h1 {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.03; letter-spacing: -0.02em;
  color: var(--creme); max-width: 16ch; margin: 16px 0 0;
}
.cstudy-lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: #c4cedd; max-width: 50ch; margin: 22px 0 0; }
.cstudy-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: #9fb0c4;
}
.cstudy-meta span { position: relative; }
.cstudy-meta span:not(:last-child)::after {
  content: ""; position: absolute; right: -15px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateY(-50%);
}

/* OCF chart card */
.chart-card {
  position: relative; z-index: 1; margin-top: 44px;
  background: linear-gradient(180deg, rgba(29, 46, 76, 0.55), rgba(15, 26, 44, 0.35));
  border: 1px solid rgba(255, 247, 228, 0.14); border-radius: 16px; padding: 24px 26px 14px;
}
.chart-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chart-head .t { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb0c4; }
.chart-head .v { font-family: var(--font-mono); font-size: 11.5px; color: var(--gold); letter-spacing: 0.02em; }
.ocf-chart { width: 100%; height: auto; display: block; }
.ocf-chart .curve { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ocf-chart text { font-family: var(--font-mono); }

/* article sections */
.cstudy section { padding: 78px 0; }
.cstudy .sec-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text); font-weight: var(--w-semi); margin-bottom: 16px;
}
.cstudy .sec-title {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: clamp(26px, 3.3vw, 40px); line-height: 1.1; letter-spacing: -0.01em;
  max-width: 22ch; margin-bottom: 24px; color: var(--midnight);
}
.cstudy .body-col { max-width: 64ch; }
.cstudy .body-col p { color: #3d4452; font-size: 17px; margin: 0 0 1.1em; }

.cstudy .alt { background: var(--deep-navy); }
.cstudy .alt .sec-label, .cstudy .outcome .sec-label { color: var(--gold); }
.cstudy .alt .sec-title, .cstudy .outcome .sec-title { color: var(--creme); }
.cstudy .alt .body-col p, .cstudy .outcome .body-col p { color: #c4cedd; }

.cstudy .ap-split { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 50px; align-items: start; }
.cstudy .insight { background: var(--deep-navy); border: 1px solid rgba(255, 247, 228, 0.1); border-radius: 14px; padding: 28px 28px 12px; }
.cstudy .insight .ic-ey { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.cstudy .insight .big { font-family: var(--font-display); font-weight: var(--w-display); font-size: 40px; color: var(--creme); line-height: 1; margin-bottom: 8px; }
.cstudy .insight .sub { font-size: 14.5px; color: #aab4c9; margin-bottom: 22px; line-height: 1.5; }
.cstudy .insight hr { border: 0; border-top: 1px solid rgba(255, 247, 228, 0.14); margin: 0 0 20px; }

.cstudy .approach-note { margin-top: 30px; border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; max-width: 60ch; }
.cstudy .approach-note p { font-family: var(--font-display); font-size: 21px; line-height: 1.35; color: var(--midnight); margin: 0; }

.cstudy .outcome { background: var(--deep-navy); }
.cstudy .pull { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); color: var(--gold); line-height: 1.32; max-width: 28ch; margin: 0 0 30px; }
.cstudy .metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 247, 228, 0.14); border-radius: 14px; overflow: hidden; margin-top: 40px; }
.cstudy .metrics .m { padding: 26px 22px; border-right: 1px solid rgba(255, 247, 228, 0.14); background: rgba(29, 46, 76, 0.35); transition: background 0.3s var(--ease); }
.cstudy .metrics .m:last-child { border-right: 0; }
.cstudy .metrics .m:hover { background: rgba(29, 46, 76, 0.78); }
.cstudy .metrics .m .n { font-family: var(--font-display); font-weight: var(--w-display); font-size: 32px; color: var(--creme); line-height: 1; }
.cstudy .metrics .m .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb0c4; margin-top: 12px; }

.cstudy .ledger { margin-top: 30px; border-top: 1px solid var(--rule); }
.cstudy .lrow { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 20px 14px; margin: 0 -14px; border-bottom: 1px solid var(--rule); border-radius: 10px; transition: background 0.25s var(--ease); }
.cstudy .lrow:hover { background: var(--surface); }
.cstudy .lrow .k { font-weight: var(--w-semi); color: var(--midnight); font-size: 15px; }
.cstudy .lrow .val { color: #3d4452; font-size: 16px; }
.cstudy .lrow .val .num { font-family: var(--font-display); color: var(--midnight); }

.cstudy .footnote { margin-top: 44px; font-size: 13px; color: var(--dusty); border-top: 1px solid var(--rule); padding-top: 22px; }

/* chart + dots start hidden; JS draws them in and replays on each re-entry */
@media (prefers-reduced-motion: no-preference) {
  .ocf-chart .curve { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
  .ocf-chart .dot { opacity: 0; }
}

@media (max-width: 820px) {
  .cstudy .ap-split { grid-template-columns: 1fr; gap: 30px; }
  .cstudy .metrics { grid-template-columns: repeat(2, 1fr); }
  .cstudy .metrics .m:nth-child(2) { border-right: 0; }
  .cstudy .metrics .m:nth-child(1), .cstudy .metrics .m:nth-child(2) { border-bottom: 1px solid rgba(255, 247, 228, 0.14); }
  .cstudy .lrow { grid-template-columns: 1fr; gap: 4px; }
  .cstudy section { padding: 56px 0; }
}
