/* =====================================================================
   JOBLOGIC · AGENTIC OPERATING SYSTEM
   Microsite global stylesheet
   v1.1 · Chunk 1 (foundation) — type rework + architectural grid
   ---------------------------------------------------------------------
   Editorial calm. Architectural confidence.
   Brand: JL Blue dominant, JL Teal accent, JL Yellow as Operational lens.
   Type: Fraunces (display, variable serif) + Geist (body, geometric sans).
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. RESET & BASE
   --------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  font-weight: 400;
  color: var(--jl-blue);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

ul, ol { padding-left: 1.25rem; }

::selection {
  background: var(--jl-teal);
  color: var(--jl-white);
}


/* ---------------------------------------------------------------------
   2. DESIGN TOKENS  (CSS custom properties)
   --------------------------------------------------------------------- */

:root {
  /* — Core brand — */
  --jl-blue: #0d3443;
  --jl-teal: #0eb6bd;
  --jl-red: #f5544b;
  --jl-yellow: #ffc000;
  --jl-white: #ffffff;
  --jl-black: #000000;

  /* — Extended palette — */
  --jl-pastel-blue: #3a5967;
  --jl-pastel-teal: #71c1c7;
  --jl-pastel-yellow: #ffcb31;
  --jl-pastel-red: #f7766d;
  --jl-blue-grey: #475055;
  --jl-dark-grey: #5f5f5e;
  --jl-light-grey: #a2a29d;
  --jl-muddy-teal: #76c3c6;
  --jl-muted-yellow: #fed991;
  --jl-blush-red: #f5b6b4;

  /* — Semantic surfaces — */
  --bg-canvas: #ffffff;
  --bg-soft: #f7f8f9;          /* very faint grey — section alternates */
  --bg-warm: #fbfaf6;          /* very faint warm — for editorial pages */
  --bg-dark: var(--jl-blue);
  --bg-dark-deeper: #07242f;   /* a touch darker for layered dark sections */

  --border-soft: rgba(13, 52, 67, 0.08);
  --border-medium: rgba(13, 52, 67, 0.16);
  --border-on-dark: rgba(255, 255, 255, 0.14);

  --text-primary: var(--jl-blue);
  --text-secondary: var(--jl-blue-grey);
  --text-muted: var(--jl-light-grey);
  --text-on-dark: var(--jl-white);
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);

  /* — Lens accents (used on buyer-lens & persona pages) — */
  --lens-operational: var(--jl-yellow);
  --lens-commercial: var(--jl-teal);

  /* — Type families — */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-mono: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;

  /* — Type scale — fluid (clamp: min, preferred-vw, max) — */
  --t-xs: 0.8125rem;                                    /* 13px */
  --t-sm: 0.9375rem;                                    /* 15px */
  --t-base: 1.0625rem;                                  /* 17px */
  --t-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);    /* 18 → 20 */
  --t-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);       /* 20 → 24 */
  --t-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);         /* 24 → 32 */
  --t-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);     /* 30 → 42 */
  --t-4xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);      /* 36 → 56 */
  --t-5xl: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);        /* 44 → 72 */
  --t-6xl: clamp(3.25rem, 2rem + 5.4vw, 5.75rem);       /* 52 → 92 (article display) */

  /* — Spacing — 8pt baseline — */
  --s-1: 0.25rem;     /* 4 */
  --s-2: 0.5rem;      /* 8 */
  --s-3: 0.75rem;     /* 12 */
  --s-4: 1rem;        /* 16 */
  --s-5: 1.5rem;      /* 24 */
  --s-6: 2rem;        /* 32 */
  --s-7: 3rem;        /* 48 */
  --s-8: 4rem;        /* 64 */
  --s-9: 6rem;        /* 96 */
  --s-10: 8rem;       /* 128 */
  --s-11: 10rem;      /* 160 */

  /* — Layout — */
  --container-max: 1240px;
  --reading-max: 680px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* — Section rhythm (vertical padding for content sections) — */
  --section-y: clamp(4rem, 8vw, 7rem);
  --section-y-tight: clamp(2.5rem, 5vw, 4rem);
  --section-y-loose: clamp(5rem, 10vw, 9rem);

  /* — Radii — */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* — Shadows (used sparingly — brand is flat-leaning) — */
  --shadow-sm: 0 1px 2px rgba(13, 52, 67, 0.06);
  --shadow-md: 0 6px 18px -8px rgba(13, 52, 67, 0.18);
  --shadow-lg: 0 22px 50px -20px rgba(13, 52, 67, 0.25);

  /* — Motion — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 700ms;

  /* — Z-index — */
  --z-nav: 50;
  --z-drawer: 60;
  --z-modal: 70;
}


/* ---------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4) 0;
  line-height: 1.08;
  color: var(--text-primary);
  text-wrap: balance;
}

/* H1, H2, H3 use Fraunces — editorial display. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

/* H4, H5, H6 use Geist — small UI-oriented headings */
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--t-5xl); letter-spacing: -0.028em; line-height: 1.04; }
h2 { font-size: var(--t-4xl); letter-spacing: -0.024em; line-height: 1.06; }
h3 { font-size: var(--t-2xl); letter-spacing: -0.018em; line-height: 1.12; }
h4 { font-size: var(--t-xl); line-height: 1.2; }
h5 { font-size: var(--t-lg); line-height: 1.25; }
h6 { font-size: var(--t-base); letter-spacing: 0; line-height: 1.3; }

/* Display class — hero & article titles. Fraunces 900, optical sizing tuned for huge sizes. */
.display {
  font-family: var(--font-display);
  font-size: var(--t-6xl);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.034em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

/* Display italic — for pull quotes and special editorial moments. */
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

p {
  margin: 0 0 var(--s-4) 0;
  text-wrap: pretty;
}

/* Body emphasis — italic lifts to Fraunces for editorial feel */
em, i {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

p.lead {
  font-family: var(--font-body);
  font-size: var(--t-xl);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 38ch;
  letter-spacing: -0.005em;
}

strong, b { font-weight: 600; }       /* Geist 600 reads as bold without going heavy */

/* — Eyebrow: small caps-like label above headings — */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jl-teal);
  margin: 0 0 var(--s-4) 0;
  position: relative;
  padding-left: 1.75rem;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 2px;
  background: var(--jl-teal);
  border-radius: 2px;
}
.eyebrow.is-on-dark { color: var(--jl-teal); }
.eyebrow.is-yellow { color: var(--jl-yellow); }
.eyebrow.is-yellow::before { background: var(--jl-yellow); }

/* — Spine line: the brand mantra treatment "Operations in flow / Growth in motion" — */
.spine {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.024em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.spine span {
  display: block;
}
.spine .spine-2 {
  color: var(--jl-teal);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.is-on-dark .spine .spine-2 { color: var(--jl-teal); }


/* ---------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   --------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading {
  width: 100%;
  max-width: var(--reading-max);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section.tight { padding-block: var(--section-y-tight); }
.section.loose { padding-block: var(--section-y-loose); }

.section.is-soft { background: var(--bg-soft); }
.section.is-warm { background: var(--bg-warm); }
.section.is-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section.is-dark h1,
.section.is-dark h2,
.section.is-dark h3,
.section.is-dark h4,
.section.is-dark h5,
.section.is-dark h6 { color: var(--jl-white); }
.section.is-dark p.lead { color: var(--text-on-dark-muted); }

.stack > * + * { margin-top: var(--stack, var(--s-5)); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }


/* ---------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--jl-teal);
  outline-offset: 3px;
}

.btn .arrow {
  transition: transform var(--dur-base) var(--ease-out);
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Primary — JL Blue solid */
.btn-primary {
  background: var(--jl-blue);
  color: var(--jl-white);
  border-color: var(--jl-blue);
}
.btn-primary:hover {
  background: var(--bg-dark-deeper);
  border-color: var(--bg-dark-deeper);
}

/* On dark backgrounds — primary becomes white */
.is-dark .btn-primary,
.btn-primary.on-dark {
  background: var(--jl-white);
  color: var(--jl-blue);
  border-color: var(--jl-white);
}
.is-dark .btn-primary:hover,
.btn-primary.on-dark:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

/* Secondary — outline */
.btn-secondary {
  background: transparent;
  color: var(--jl-blue);
  border-color: var(--border-medium);
}
.btn-secondary:hover {
  background: var(--jl-blue);
  color: var(--jl-white);
  border-color: var(--jl-blue);
}
.is-dark .btn-secondary,
.btn-secondary.on-dark {
  color: var(--jl-white);
  border-color: var(--border-on-dark);
}
.is-dark .btn-secondary:hover,
.btn-secondary.on-dark:hover {
  background: var(--jl-white);
  color: var(--jl-blue);
  border-color: var(--jl-white);
}

/* Tertiary — text link with arrow */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  color: var(--jl-blue);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.btn-text:hover {
  border-bottom-color: var(--jl-teal);
}
.btn-text .arrow {
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-text:hover .arrow { transform: translateX(3px); }
.is-dark .btn-text { color: var(--jl-white); }
.is-dark .btn-text:hover { border-bottom-color: var(--jl-teal); }


/* ---------------------------------------------------------------------
   6. NAVIGATION (header)
   --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.site-header.is-dark {
  background: rgba(13, 52, 67, 0.92);
  border-bottom-color: var(--border-on-dark);
  color: var(--text-on-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 72px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--jl-blue);
}
.site-header.is-dark .site-header__logo { color: var(--jl-white); }
.site-header__logo svg {
  height: 28px;
  width: auto;
}

.primary-nav {
  display: none;
}
.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s-6);
}
.primary-nav__link {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.primary-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--jl-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.primary-nav__link:hover::after,
.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-header.is-dark .primary-nav__link { color: var(--jl-white); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* Hamburger button — mobile only */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-soft);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              top var(--dur-base) var(--ease-out),
              bottom var(--dur-base) var(--ease-out);
}
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; bottom: -6px; left: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 0; transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--jl-white);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
  padding: var(--s-6) var(--gutter) var(--s-8);
  border-top: 1px solid var(--border-soft);
}
.mobile-drawer[data-open="true"] {
  transform: translateX(0);
}
.mobile-drawer__list {
  list-style: none;
  margin: 0 0 var(--s-6) 0;
  padding: 0;
}
.mobile-drawer__list li + li {
  border-top: 1px solid var(--border-soft);
}
.mobile-drawer__link {
  display: block;
  padding: var(--s-4) 0;
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--jl-blue);
  letter-spacing: -0.01em;
}
.mobile-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
}
.mobile-drawer__actions .btn { width: 100%; }

@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-drawer { display: none; }
}


/* ---------------------------------------------------------------------
   7. HERO PATTERNS  +  ARCHITECTURAL VISUAL LANGUAGE
   --------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero.is-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.hero.is-dark h1, .hero.is-dark h2 { color: var(--jl-white); }
.hero.is-dark p { color: var(--text-on-dark-muted); }

.hero__inner {
  max-width: 980px;
  position: relative;
  z-index: 2;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--t-5xl);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: var(--s-5);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 var(--s-6) 0;
  letter-spacing: -0.005em;
}
.hero.is-dark .hero__subtitle { color: var(--text-on-dark-muted); }

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* — Architectural dot grid — used as hero / section background.
     Faint blueprint reference. Edge-masked so it fades to nothing. — */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--jl-blue) 1px, transparent 1.4px);
  background-size: 28px 28px;
  background-position: 0 0;
  opacity: 0.10;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 30%, transparent 75%);
}
.is-dark .bg-grid,
.hero.is-dark .bg-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,1) 1px, transparent 1.4px);
  opacity: 0.10;
}

/* — Architectural line grid (alternative pattern — slightly more technical) — */
.bg-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--jl-blue) 1px, transparent 1px),
    linear-gradient(to bottom, var(--jl-blue) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.05;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.is-dark .bg-grid-lines,
.hero.is-dark .bg-grid-lines {
  background-image:
    linear-gradient(to right, rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,1) 1px, transparent 1px);
  opacity: 0.06;
}

/* — Accent line — bold colored bar that draws in on scroll.
     Used as a section-transition marker and architectural moment. — */
.accent-line {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--jl-teal);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.accent-line.is-visible { transform: scaleX(1); }
.accent-line.is-yellow { background: var(--jl-yellow); }
.accent-line.is-blue { background: var(--jl-blue); }
.accent-line--short { max-width: 80px; height: 4px; }
.accent-line--medium { max-width: 220px; height: 4px; }
.accent-line--xl { height: 6px; }

/* — Section opener — a narrow accent line set above section eyebrow — */
.section__opener {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.section__opener .accent-line--short { flex-shrink: 0; }

/* — Hairline rule — thin colored top border for cards/blocks — */
.hairline-top {
  border-top: 2px solid var(--jl-teal);
  padding-top: var(--s-5);
}
.hairline-top.is-yellow { border-top-color: var(--jl-yellow); }
.hairline-top.is-blue { border-top-color: var(--jl-blue); }




/* ---------------------------------------------------------------------
   8. CARDS
   --------------------------------------------------------------------- */

.card {
  background: var(--jl-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  height: 100%;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 800;
  margin: 0 0 var(--s-2) 0;
  letter-spacing: -0.018em;
  line-height: 1.12;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.card__body {
  font-size: var(--t-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.card__cta {
  margin-top: auto;
  padding-top: var(--s-4);
}
.card__meta {
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Outcome card — hero stat on top, label below */
.card-outcome {
  background: var(--jl-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  height: 100%;
  transition: border-color var(--dur-base) var(--ease-out);
}
.card-outcome:hover { border-color: var(--jl-teal); }
.card-outcome__stat {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--jl-blue);
  margin: 0;
}
.card-outcome__stat .unit {
  font-size: 0.6em;
  color: var(--jl-teal);
  margin-left: 0.15em;
}
.card-outcome__label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--jl-blue);
  margin: var(--s-2) 0 0 0;
  line-height: 1.4;
}
.card-outcome__caption {
  font-size: var(--t-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: var(--s-2) 0 0 0;
}

/* Persona card — accent stripe on top, role below */
.card-persona {
  position: relative;
  background: var(--jl-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6) var(--s-7);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  height: 100%;
}
.card-persona::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--lens-color, var(--jl-teal));
}
.card-persona[data-lens="operational"]::before { background: var(--lens-operational); }
.card-persona[data-lens="commercial"]::before { background: var(--lens-commercial); }
.card-persona:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-persona__role {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0 0 var(--s-2) 0;
  line-height: 1.08;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.card-persona__shift {
  font-family: var(--font-display);
  font-size: var(--t-sm);
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 var(--s-3) 0;
  font-variation-settings: "opsz" 14, "SOFT" 50, "WONK" 1;
}
.card-persona__body {
  font-size: var(--t-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
.card-persona__cta {
  margin-top: auto;
  padding-top: var(--s-4);
}

/* Pillar card — three-up architectural primitives */
.card-pillar {
  padding: var(--s-6) 0;
  border-top: 1.5px solid var(--jl-blue);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.card-pillar__num {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--jl-teal);
  text-transform: uppercase;
}
.card-pillar__title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0;
  line-height: 1.12;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.card-pillar__body {
  font-size: var(--t-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* Article card — editorial */
.card-article {
  background: var(--jl-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  height: 100%;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.card-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-article__meta {
  display: flex;
  gap: var(--s-3);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.card-article__meta span + span::before {
  content: '·';
  margin-right: var(--s-3);
  color: var(--text-muted);
}
.card-article__title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.card-article__excerpt {
  font-size: var(--t-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.card-article__byline {
  font-size: var(--t-xs);
  color: var(--text-muted);
  margin: 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
}


/* ---------------------------------------------------------------------
   9. PULL QUOTE  (used in articles + occasional microsite pages)
   --------------------------------------------------------------------- */

.pullquote {
  position: relative;
  margin: var(--s-8) 0;
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  border-left: 4px solid var(--jl-teal);
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 700;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--jl-blue);
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.pullquote--xl {
  font-size: var(--t-4xl);
  line-height: 1.04;
  letter-spacing: -0.030em;
  padding-left: var(--s-7);
  border-left-width: 6px;
}
.pullquote cite {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ---------------------------------------------------------------------
   10. ACCORDION  (FAQ)
   --------------------------------------------------------------------- */

.accordion {
  border-top: 1px solid var(--border-soft);
}
.accordion__item {
  border-bottom: 1px solid var(--border-soft);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--jl-blue);
  letter-spacing: -0.018em;
  line-height: 1.25;
  transition: color var(--dur-fast) var(--ease-out);
  font-variation-settings: "opsz" 60, "SOFT" 30, "WONK" 0;
}
.accordion__trigger:hover { color: var(--jl-teal); }
.accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid currentColor;
  position: relative;
  margin-top: 4px;
  transition: transform var(--dur-base) var(--ease-out);
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  left: 50%;
  top: 50%;
}
.accordion__icon::before {
  width: 10px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.accordion__icon::after {
  width: 1.5px; height: 10px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}
.accordion__panel-inner {
  padding: 0 0 var(--s-6) 0;
  max-width: 64ch;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--text-secondary);
}
.accordion__panel-inner p { margin: 0 0 var(--s-3) 0; }
.accordion__panel-inner p:last-child { margin-bottom: 0; }


/* ---------------------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------------------- */

.site-footer {
  background: var(--jl-blue);
  color: var(--text-on-dark);
  padding: var(--s-9) 0 var(--s-6);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border-on-dark);
}
@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer__brand .site-header__logo { color: var(--jl-white); }
.site-footer__tagline {
  margin: var(--s-4) 0 0 0;
  font-size: var(--t-sm);
  color: var(--text-on-dark-muted);
  max-width: 36ch;
  line-height: 1.55;
}

.footer-col__title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jl-teal);
  margin: 0 0 var(--s-4) 0;
}
.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-col__list a {
  font-size: var(--t-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col__list a:hover { color: var(--jl-white); }

.site-footer__bottom {
  padding-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--t-xs);
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
}
@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.site-footer__legal {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
}


/* ---------------------------------------------------------------------
   12. UTILITY
   --------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -40px; left: var(--gutter);
  background: var(--jl-blue);
  color: var(--jl-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-weight: 700;
  z-index: 100;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.text-center { text-align: center; }
.measure { max-width: var(--reading-max); }

.divider {
  width: 60px;
  height: 3px;
  background: var(--jl-teal);
  border: 0;
  border-radius: 2px;
  margin: var(--s-6) 0;
}
.divider.is-yellow { background: var(--jl-yellow); }
.divider.center { margin-inline: auto; }


/* ---------------------------------------------------------------------
   13. MOTION  (reveal-on-scroll, applied via JS)
   --------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }


/* ---------------------------------------------------------------------
   14. PRINT
   --------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-drawer { display: none; }
  body { color: black; background: white; }
  .section { padding-block: 1rem; }
  a { text-decoration: underline; }
}


/* ---------------------------------------------------------------------
   15. STYLEGUIDE-ONLY  (review aid — remove for production)
   --------------------------------------------------------------------- */

.sg-block {
  border: 1px dashed var(--border-medium);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.sg-label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jl-light-grey);
  margin: 0 0 var(--s-4) 0;
}
.sg-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
}
.sg-swatch {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.sg-swatch__chip {
  height: 80px;
}
.sg-swatch__meta {
  padding: var(--s-3);
  font-size: var(--t-xs);
  background: var(--jl-white);
}
.sg-swatch__name { font-weight: 700; display: block; }
.sg-swatch__hex { color: var(--text-muted); font-family: 'SFMono-Regular', Consolas, monospace; }


/* ---------------------------------------------------------------------
   16. ARTICLE PAGES  (Chunk 8)
   Editorial pages — long-form, typography-led, no imagery.
   --------------------------------------------------------------------- */

.article-hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}
.article-hero__inner {
  max-width: 64ch;
}
.article-hero__title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--jl-blue);
  font-weight: 500;
  margin: var(--s-4) 0 var(--s-5);
  max-width: 22ch;
}
.article-hero__dek {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 var(--s-7);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--text-muted);
  border-top: 1px solid rgba(13, 52, 67, 0.10);
  border-bottom: 1px solid rgba(13, 52, 67, 0.10);
  padding: var(--s-4) 0;
}
.article-meta__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jl-teal);
}
.article-meta__value { color: var(--jl-blue); font-weight: 500; }

/* Article body — generous, long-form */
.article-body {
  max-width: 65ch;
  margin: 0;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.article-body p,
.article-body ul,
.article-body ol {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--s-5);
}
.article-body strong { color: var(--jl-blue); font-weight: 600; }
.article-body em { font-style: italic; color: var(--jl-blue); }
.article-body a {
  color: var(--jl-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(35, 184, 156, 0.4);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.article-body a:hover { text-decoration-color: var(--jl-teal); }

.article-body h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.18;
  font-weight: 500;
  color: var(--jl-blue);
  letter-spacing: -0.012em;
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 var(--s-5);
  max-width: 26ch;
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jl-teal);
  margin: var(--s-7) 0 var(--s-3);
}

/* Pull quote — the editorial flourish */
.pullquote {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: 0 0 0 var(--s-5);
  border-left: 4px solid var(--jl-yellow);
  position: relative;
}
.pullquote__text {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.25;
  color: var(--jl-blue);
  font-weight: 400;
  margin: 0;
  max-width: 28ch;
  letter-spacing: -0.005em;
}
.pullquote__text::before { content: "\201C"; }
.pullquote__text::after { content: "\201D"; }
.pullquote.is-teal { border-left-color: var(--jl-teal); }

/* Drop cap on first paragraph (optional refinement) */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  font-size: 4.25em;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 0.06em 0.08em 0 0;
  color: var(--jl-blue);
  letter-spacing: -0.02em;
}

/* Article footer / next reading */
.article-next {
  border-top: 1px solid rgba(13, 52, 67, 0.10);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.article-next h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 500;
  color: var(--jl-blue);
  margin: 0 0 var(--s-6);
  max-width: 30ch;
}
.next-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .next-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}

/* Reading-progress bar */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.read-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--jl-yellow);
  transition: width 80ms linear;
}
