, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #f7f4ef;
  --paper:    #fdfcf9;
  --warm:     #ede9e1;
  --rule:     #d8d2c8;
  --navy:     #1b2a4a;
  --navy2:    #243659;
  --steel:    #4a6080;
  --ink:      #2c2c2c;
  --mid:      #666057;
  --light:    #9b9388;
  --gold:     #b8933e;
  --gold2:    #d4a84a;
  --red:      #9b3a2e;
  --sans:     'Overpass Mono', monospace;
  --serif:    'Source Serif 4', Georgia, serif;
  --display:  'Playfair Display', Georgia, serif;
}


body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
}

/* ─── TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.6;
}

/* ─── STICKY SIDE RULE ─── */
.side-rule {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--gold) 50%, transparent 100%);
  z-index: 10;
}

/* ─── SCROLL PROGRESS ─── */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: transparent;
  z-index: 100;
}
.scroll-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── WRAPPER ─── */
.page {
  position: relative; z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px 0 72px;
}

/* ─── MASTHEAD ─── */
.masthead {
    border-bottom: 2px solid var(--navy);
    padding: 4px 0 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
}
.masthead-label {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 12px;
  opacity: 0; animation: appear 0.6s 0.1s ease forwards;
}
.masthead-title {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.02em;
  opacity: 0; animation: appear 0.7s 0.25s ease forwards;
}
.masthead-title span { font-style: italic; color: var(--gold); }
.masthead-meta {
  text-align: right;
  opacity: 0; animation: appear 0.7s 0.4s ease forwards;
}
.masthead-date {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--light);
  text-transform: uppercase;
  line-height: 0.6;
}

/* ─── DECK ─── */
.deck {
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.deck-text {
  font-family: var(--display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  font-weight: 400;
  color: var(--navy2);
  line-height: 1.55;
  max-width: 680px;
  opacity: 0; animation: appear 0.8s 0.5s ease forwards;
}

/* ─── STATS STRIP ─── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  opacity: 0; animation: appear 0.8s 0.65s ease forwards;
}
.stat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-cell:hover::before { transform: scaleX(1); }
.stat-n {
  font-family: var(--display);
  font-size: 42px; font-weight: 700;
  color: var(--navy); line-height: 1;
  margin-bottom: 6px;
}
.stat-n sup { font-size: 20px; vertical-align: super; }
.stat-l {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--light);
}

/* ─── ARTICLE BODY ─── */
.article {
  padding: 72px 0;
}

/* ─── SECTION ─── */
.section {
  margin-bottom: 80px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.visible { opacity: 1; transform: translateY(0); }

.section-kicker {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.section-kicker::after {
  content: ''; flex: 1; height: 1px; background: var(--rule); max-width: 120px;
}

.section-heading {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}
.section-heading em { font-style: italic; color: var(--gold); }

.body-text {
  color: var(--ink);
  line-height: 1.85;
  font-size: 16.5px;
}
.body-text p { margin-bottom: 20px; }
.body-text p:last-child { margin-bottom: 0; }

/* ─── PULL QUOTE ─── */
.pull-quote {
  margin: 48px 0;
  padding: 32px 40px;
  border-left: 4px solid var(--navy);
  background: var(--paper);
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  font-family: var(--display);
  font-size: 100px; line-height: 0.7;
  color: var(--rule);
  position: absolute; top: 20px; left: 12px;
  pointer-events: none;
}
.pull-quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
  color: var(--navy2);
  position: relative;
}

/* ─── SERVICE CARDS (AJAX-loaded) ─── */
.service-loader-zone { min-height: 320px; }

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.svc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.25s, border-top-color 0.25s;
  cursor: default;
}
.svc:hover {
  box-shadow: 0 8px 28px rgba(27,42,74,0.08);
  transform: translateY(-3px);
  border-top-color: var(--gold);
}
.svc-icon {
  font-size: 62px; margin-bottom: 12px; display: block;
}
.svc-name {
  font-family: var(--display);
  font-size: 24px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}
.svc-body {
  font-size: 14px; color: var(--mid); line-height: 1.7;
}

/* ─── LOADER ─── */
.ajax-loader {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 0;
}
.skel {
  background: linear-gradient(90deg, var(--warm) 25%, var(--rule) 50%, var(--warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 3px;
}
.skel-h { height: 20px; width: 60%; }
.skel-p { height: 14px; width: 100%; }
.skel-p2 { height: 14px; width: 80%; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ─── PILLAR NUMBERS ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.pillar {
  padding: 36px 24px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: none; }
.pillar-n {
  font-family: var(--display);
  font-size: 72px; font-weight: 700;
  color: var(--rule);
  line-height: 1; margin-bottom: 8px;
}
.pillar-name {
font-family: var(--sans);
    font-size: 20px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
}
.pillar-text { font-size: 15px; color: var(--mid); line-height: 1.7; }

/* ─── TIMELINE ─── */
.timeline { margin-top: 8px; }
.tl-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  position: relative;
}
.tl-row + .tl-row { border-top: 1px solid var(--rule); }
.tl-year-col {
  padding: 28px 24px 28px 0;
  font-family: var(--sans);
  font-size: 14px; letter-spacing: 0.1em;
  color: var(--light);
  line-height: 1.4;
  border-right: 1px solid var(--rule);
  position: relative;
}
.tl-year-col::after {
  content: ''; position: absolute;
  right: -5px; top: 36px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--navy);
}
.tl-body {
  padding: 28px 0 28px 32px;
}
.tl-title {
  font-family: var(--display);
  font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}
.tl-desc { font-size: 14px; color: var(--mid); line-height: 1.7; }

/* ─── CLOSING ─── */
.closing {
  background: var(--navy);
  margin: 0 -72px 0 -48px;
  padding: 64px 72px 64px 72px;
  color: #fff;
}
.closing-head {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400; font-style: italic;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 20px;
}
.closing-head strong { font-weight: 700; font-style: normal; color: var(--gold2); }
.closing-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-family: var(--sans);
  letter-spacing: 0.1em;
}



/* ─── KEYFRAMES ─── */
@keyframes appear {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RWD ─── */
@media (max-width: 760px) {
  .page { padding: 0 24px 0 36px; }
  .masthead { grid-template-columns: 1fr; }
  .masthead-meta { text-align: left; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip .stat-cell:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--rule); border-right: none; }
  .services-list { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }
  .closing { margin: 0 -36px; padding: 48px 36px; }
  .tl-row { grid-template-columns: 72px 1fr; }
}
@media (max-width: 480px) {
  .page { padding: 0 20px 0 28px; }
  .tl-year-col { padding: 20px 16px 20px 0; }
  .tl-body { padding: 20px 0 20px 20px; }
  .closing { margin: 0 -28px; padding: 40px 28px; }
}