/* ═══════════════════════════════════════════════════════
   results-case-study-child.css
   Shared styles for all Results / Case Study pages:
   CashYourGold · Gold Secure · Aarvines Jewells
   ───────────────────────────────────────────────────────
   Requires: common.css  (header + footer)
   Load order: common.css → results-case-study-child.css
   ═══════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --n950: #040D18;
  --n900: #0A1929;
  --n800: #0D2340;
  --n700: #122D52;
  --n600: #1B3A5C;
  --n500: #234A75;
  --n400: #2E6DA4;
  --n100: #D6E8F7;
  --n50:  #EEF6FD;

  --g700: #8F5C00;
  --g600: #B07800;
  --g500: #C9940A;
  --g400: #D4A82A;
  --g300: #E2C060;
  --g200: #EDD48A;
  --g100: #F5E8BF;
  --g50:  #FBF6E8;

  --wh:   #FFFFFF;
  --ow:   #FAFAF8;
  --cr:   #F7F4EE;
  --w200: #E4DFDA;
  --w100: #F0EDE6;
  --i800: #1A1A1A;
  --i700: #2E2E2E;
  --i600: #444444;
  --i500: #666666;
  --i400: #888888;

  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'Outfit', system-ui, sans-serif;
  --fm: 'DM Mono', 'Courier New', monospace;

  --mw:   1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --sh-sm: 0 1px 4px rgba(10, 25, 41, .08);
  --sh-md: 0 4px 20px rgba(10, 25, 41, .11);
  --sh-lg: 0 12px 44px rgba(10, 25, 41, .14);
  --sh-xl: 0 24px 72px rgba(10, 25, 41, .20);
}


/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  {
  font-family: var(--fb);
  background: var(--ow);
  color: var(--i800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }


/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }


/* ─────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--g400);
  margin-bottom: 16px;
}
.eyebrow::before   { content: ''; width: 24px; height: 1px; background: currentColor; flex-shrink: 0; }
.eyebrow-c         { justify-content: center; }
.eyebrow-light     { color: var(--g300); }


/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms;
  white-space: nowrap;
  min-height: 44px;
  border-radius: 3px;
}
.btn-lg { font-size: 15px; padding: 14px 30px; }
.btn-md { font-size: 13px; padding: 11px 22px; }
.btn-sm { font-size: 12px; padding: 8px 16px; }

.btn-gold  { background: var(--g400); color: var(--n900); box-shadow: 0 2px 8px rgba(212,168,42,.3); }
.btn-gold:hover  { background: var(--g300); box-shadow: 0 6px 20px rgba(212,168,42,.4); transform: translateY(-1px); }
.btn-gold .arr   { background: rgba(10,25,41,.14); }

.btn-ghost { background: transparent; color: var(--wh); border: 1.5px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.btn-ghost .arr  { background: rgba(255,255,255,.14); }

.btn-outline { background: transparent; color: var(--n700); border: 1.5px solid var(--n700); }
.btn-outline:hover { background: var(--n700); color: var(--wh); }

.arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.1);
  font-size: 10px;
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}
.btn:hover .arr { transform: translateX(3px); }


/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.bc       { background: var(--wh); border-bottom: 1px solid var(--w200); padding: 12px 0; }
.bc-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bc a       { font-family: var(--fm); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--i400); transition: color 150ms; }
.bc a:hover { color: var(--n600); }
.bc-sep     { font-size: 10px; color: var(--i400); }
.bc-cur     { font-family: var(--fm); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--n600); }


/* ─────────────────────────────────────────
   CASE STUDY HERO
   Dark navy · grid: headline left + scorecard right
───────────────────────────────────────── */
.cs-hero {
  background: var(--n900);
  padding: clamp(60px, 8vw, 96px) 0 0;
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 75% 25%, rgba(212,168,42,.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 55% at 10% 85%, rgba(18,45,82,.5)    0%, transparent 50%);
}
.cs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Inner 2-col grid */
.csh-inner {
  position: relative;
  z-index: 1;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 6vw, 72px);
  align-items: end;
}

/* Index / counter line */
.csh-idx {
  font-family: var(--fm);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}

/* Segment tag chip */
.csh-seg {
  display: inline-flex;
  font-family: var(--fm);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(212,168,42,.25);
  background: rgba(212,168,42,.1);
  color: var(--g400);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
/* Warmer gold variant (Aarvines page) */
.csh-seg-warm {
  border-color: rgba(212,168,42,.3);
  background: rgba(212,168,42,.12);
  color: var(--g300);
}

/* Headline */
.csh-h1 {
  font-family: var(--fd);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--wh);
  margin-bottom: 16px;
}
.csh-h1 em     { font-style: italic; color: var(--g200); }
.csh-h1 strong { font-weight: 700; }

/* Director / client attribution */
.csh-director {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
  font-family: var(--fm);
  letter-spacing: .5px;
}

/* Hero CTA row */
.csh-btns { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: clamp(36px, 5vw, 56px); }

/* Right column — scorecard */
.csh-right    { padding-bottom: 0; }
.csh-scorecard {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.cshsc-head   { background: rgba(10,25,41,.5); padding: 14px 20px; font-family: var(--fm); font-size: 9px; text-transform: uppercase; letter-spacing: 2.5px; color: rgba(255,255,255,.6); }
.cshsc-metrics { display: flex; flex-direction: column; gap: 0; }
.cshscm-row   { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
.cshscm-row:last-child { border-bottom: none; }
.cshscm-label { font-family: var(--fm); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.6); }
.cshscm-val   { font-family: var(--fd); font-size: 17px; font-weight: 700; color: var(--g200); }


/* ─────────────────────────────────────────
   ARTICLE LAYOUT
   Left: main prose | Right: sticky sidebar
───────────────────────────────────────── */
.article-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
.article-main    { min-width: 0; }
.article-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }


/* ─────────────────────────────────────────
   ARTICLE PROSE
───────────────────────────────────────── */

/* Running section label with rule */
.section-label {
  font-family: var(--fm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--g700);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--w200); }

.art-h2     { font-family: var(--fd); font-size: clamp(24px, 3vw, 38px); font-weight: 600; color: var(--n700); line-height: 1.1; letter-spacing: -.5px; margin-bottom: 18px; }
.art-h2 em  { font-style: italic; font-weight: 300; }

.art-p            { font-size: 14.5px; color: var(--i600); line-height: 1.9; margin-bottom: 18px; }
.art-p strong     { color: var(--i800); font-weight: 600; }
.art-p em         { font-style: italic; color: var(--n600); }
.art-p:last-child { margin-bottom: 0; }

/* Arrow bullet list */
.art-list        { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.art-list li     { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--i600); line-height: 1.6; }
.art-list li::before { content: '\2192'; color: var(--g500); font-size: 12px; flex-shrink: 0; margin-top: 3px; }

/* Horizontal rule divider */
.art-divider { height: 1px; background: var(--w200); margin: clamp(28px, 4vw, 40px) 0; }

/* Stat pull-out — dark panel with large number */
.stat-pull  {
  background: var(--n800);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
  margin: clamp(24px, 4vw, 36px) 0;
}
.stp-val          { font-family: var(--fd); font-size: clamp(40px, 5vw, 64px); font-weight: 700; color: var(--g300); line-height: 1; letter-spacing: -3px; margin-bottom: 8px; }
.stp-val sup      { font-size: .4em; vertical-align: super; color: var(--g400); letter-spacing: 0; }
.stp-label        { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.5; }

/* Scope of work grid */
.scope-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.scope-item       { background: var(--cr); border: 1px solid var(--w200); border-radius: 7px; padding: 14px 16px; }
.scope-item-head  { font-family: var(--fm); font-size: 8px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--g600); margin-bottom: 6px; }
.scope-item-list  { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.scope-item-list li { font-size: 12.5px; color: var(--i600); display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.scope-item-list li::before { content: '•'; color: var(--n400); font-size: 10px; flex-shrink: 0; margin-top: 1px; }

/* Client quote block */
.quote-block {
  background: var(--cr);
  border-left: 4px solid var(--g400);
  border-radius: 0 8px 8px 0;
  padding: clamp(20px, 3vw, 32px);
  margin: clamp(24px, 4vw, 36px) 0;
}
.qb-text { font-family: var(--fd); font-style: italic; font-size: clamp(16px, 2vw, 22px); color: var(--n700); line-height: 1.6; margin-bottom: 16px; }
.qb-auth { display: flex; align-items: center; gap: 12px; }
.qb-av   { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--n600), var(--n500)); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 16px; font-weight: 700; color: var(--wh); }
.qb-name { font-size: 13.5px; font-weight: 600; color: var(--n700); }
.qb-role { font-size: 11px; color: var(--i400); margin-top: 3px; font-family: var(--fm); }


/* ─────────────────────────────────────────
   SIDEBAR CARDS
───────────────────────────────────────── */

/* Dark CTA card */
.sidebar-cta {
  background: var(--n700);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.scta-h    { font-family: var(--fd); font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--wh); line-height: 1.2; margin-bottom: 10px; }
.scta-p    { font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 18px; }
.scta-btn  {
  display: block;
  background: var(--g400);
  color: var(--n900);
  border-radius: 6px;
  padding: 13px 16px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 10px rgba(212,168,42,.3);
  margin-bottom: 10px;
  text-decoration: none;
}
.scta-btn:hover { background: var(--g300); transform: translateY(-2px); }
.scta-note { font-family: var(--fm); font-size: 9px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }

/* Services used card */
.sidebar-services { background: var(--wh); border: 1px solid var(--w200); border-radius: 10px; padding: 20px; }
.ss-head { font-family: var(--fm); font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--i700); margin-bottom: 12px; }
.ss-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ss-list li {
  font-family: var(--fm);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--n500);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--n50);
  border-radius: 3px;
  border: 1px solid var(--n100);
}

/* Other case studies navigation card */
.sidebar-next { background: var(--cr); border: 1px solid var(--w200); border-radius: 10px; padding: 20px; }
.sn-head      { font-family: var(--fm); font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--i700); margin-bottom: 12px; }
.sn-card      { display: block; padding: 10px 12px; background: var(--wh); border: 1px solid var(--w200); border-radius: 6px; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.sn-card:last-child  { margin-bottom: 0; }
.sn-card:hover       { border-color: var(--n400); box-shadow: var(--sh-sm); }
.snc-client   { font-family: var(--fd); font-size: 14px; font-weight: 700; color: var(--n700); margin-bottom: 2px; }
.snc-sub      { font-size: 11px; color: var(--i700); font-family: var(--fm); }


/* ─────────────────────────────────────────
   CTA BAND
───────────────────────────────────────── */
.cta-band { background: var(--n900); position: relative; overflow: hidden; padding: clamp(60px, 8vw, 92px) 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(212,168,42,.06) 0%, transparent 65%); }
.cta-band::after  { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,168,42,.4), transparent); }
.cta-in   { position: relative; z-index: 1; text-align: center; max-width: 580px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.cta-h    { font-family: var(--fd); font-size: clamp(30px, 4.2vw, 54px); font-weight: 300; color: var(--wh); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 16px; }
.cta-h em { font-style: italic; color: var(--g300); }
.cta-sub  { font-size: clamp(14px, 1.6vw, 16px); color: rgba(255,255,255,.38); line-height: 1.75; margin-bottom: 34px; font-weight: 300; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.cta-ra   { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; }
.cr-item  { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,.28); font-family: var(--fm); }
.cr-item::before { content: '✓'; color: var(--g400); font-size: 10px; }


/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.reveal     { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* Count-up number wrapper */
.count-up { display: inline-block; }


/* ─────────────────────────────────────────
   PAGE-SPECIFIC COMPONENTS
   Present on one or two pages — included
   here so every page shares one file.
───────────────────────────────────────── */

/* ── Founder personal note block
      (Gold Secure + Aarvines pages) ── */
.founder-note {
  background: linear-gradient(135deg, var(--g50), var(--cr));
  border: 1px solid var(--g100);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
  margin: clamp(24px, 4vw, 36px) 0;
}
.fn-head { font-family: var(--fm); font-size: 8px; text-transform: uppercase; letter-spacing: 2px; color: var(--g600); margin-bottom: 10px; }
.fn-text { font-family: var(--fd); font-style: italic; font-size: clamp(15px, 1.8vw, 19px); color: var(--g700); line-height: 1.65; margin-bottom: 10px; }
.fn-attr { font-family: var(--fm); font-size: 10px; color: var(--g600); letter-spacing: .5px; }

/* ── Milestone flex row + cards
      (Aarvines page only) ── */
.milestone-row  { display: flex; gap: 12px; flex-wrap: wrap; margin: clamp(20px, 3vw, 32px) 0; }
.milestone-item {
  flex: 1;
  min-width: 110px;
  background: var(--g50);
  border: 1px solid var(--g100);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.msi-val   { font-family: var(--fd); font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--g700); line-height: 1; margin-bottom: 5px; }
.msi-label { font-family: var(--fm); font-size: 8px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--g600); }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 960px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Hero: scorecard hides, single column */
  .csh-inner       { grid-template-columns: 1fr; }
  .csh-right       { display: none; }

  /* Article: single column, sidebar unsticks */
  .article-wrap    { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 640px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .scope-grid      { grid-template-columns: 1fr; }
  .milestone-row   { gap: 8px; }
  .cta-btns        { flex-direction: column; align-items: stretch; }
  .cta-btns .btn   { justify-content: center; }
}


/* ═══════════════════════════════════════════════════════
   ACCESSIBILITY — reduced motion
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
