/* ═══════════════════════════════════════════════════════════════════════════
   MAIN.CSS — Site foundation  ·  Every page loads this file only.
   Page-specific rules live in their own CSS file.

   Load order:
     All pages   →  main.css → [page].css → responsive.css
     Case study  →  main.css → case-study.css → case-study-nav.css
                              → [page].css → responsive.css

   ── Naming system (clean unified) ──────────────────────────────────────
   .page-root        Root wrapper + token container
   .section          Universal section wrapper
   .section-inner    Universal container (max-width + 80px padding)
   .btn              Button base + colour modifiers
   .site-nav         Navigation
   .page-hdr         Page header (case studies, endorsements, how-i-lead)
   .sec-hdr          Section header system (all pages)
   .sticky-ghost     Ghost sticky section header (js-driven)
   .browser          Browser frame mockup
   .desktop          Desktop app frame mockup (label + window controls)
   .normal-image-frame  Plain image frame mockup (no chrome bar)
   .lead-signal      Leadership signal <details> block
   .lead-band        Leadership dark band section
   .stats            Stats hero + row section
   .cs-row           Case study card row (home + case-studies pages)
   .contact          Contact section (component)
   .footer           Footer (component)
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   1 · RESET
   ═══════════════════════════════════════════════════════════════════════════ */

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

html, body {
  margin: 0;
  padding: 0;
  background: #FBFCFD;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html { scroll-behavior: smooth; }

button {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Global lazy-load fade-in for all images */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s ease; }
img.loaded          { opacity: 1; }


/* ═══════════════════════════════════════════════════════════════════════════
   2 · TOKENS
   All CSS custom properties live here — nowhere else.
   ═══════════════════════════════════════════════════════════════════════════ */

.page-root {

  /* ── Colours ── */
  --bg:               #FBFCFD;
  --surface:          #F2F6FA;
  --surface-2:        #E6EDF4;
  --white:            #ffffff;

  --ink:              #0C1A27;
  --ink-2:            #3D5060;
  --ink-3:            #60788C;

  --accent:           #235B96;
  --accent-strong:    #1A4672;
  --accent-soft:      rgba(35, 91, 150, 0.08);
  --accent-soft-solid:#eaeff5;
  --accent-line:      rgba(35, 91, 150, 0.22);

  --highlight:        #F4C645;
  --highlight-soft:   rgba(244, 198, 69, 0.22);
  --highlight-strong: #ffa700;
  --highlight-gold:   #c8964a;
  --highlight-dark:   #9d6715;

  --dark:             #0C1A27;
  --dark-2:           #152233;
  --dark-text:        #E4EDF5;
  --dark-text-2:      rgba(228, 237, 245, 0.58);
  --dark-accent:      #82c7f9;

  --hairline:         #C8D5E2;
  --hairline-strong:  #96ABBE;
  --hairline-dark:    rgba(228, 237, 245, 0.13);

  /* ── Type families ── */
  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* ── Type scale ──
     Naming convention:
     · Micro cluster (--text-9 → --text-xs): pixel-value names for optical label
       sizes where sub-pixel differences are intentional design choices.
     · Everything above uses semantic role names (body, prose, heading, etc.)
     ─────────────────────────────────────────────────────────────────────────── */

  /* Micro: dense UI labels, optical small sizes */
  --text-9:          9.5px;   /* case-study side-nav number pills */
  --text-10:         10px;    /* sticky ghost header eyebrow, phase micro labels */
  --text-xs:         10.5px;  /* tags, card metadata, relation labels */
  --text-mono-sm:    11px;    /* mono uppercase UI labels (summaries, eyebrows) */
  --text-mono:       11.5px;  /* utility .mono class, footer text */

  /* Label: small but readable */
  --text-label:      12px;    /* case-study number, stat label eyebrow */
  --text-meta:       13px;    /* contact CTA, signal arrow, small inline meta */
  --text-sm:         13.5px;  /* supporting detail, stat row sub-text */
  --text-14:         14px;    /* sec-hdr eyebrow, page-hdr eyebrow, nav, btn--sm */
  --text-body-sm:    14.5px;  /* lead-band detail text */

  /* Body: primary reading sizes */
  --text-link:       15px;    /* buttons, nav links */
  --text-base:       15.5px;  /* page default, AI card body */
  --text-body:       16px;    /* paragraph default, lead-signal text */
  --text-md:         17px;    /* section intro, contact cell value */

  /* Prose: long-form reading */
  --text-prose:      18px;    /* page header desc, hero subtitle */
  --text-prose-lg:   19px;    /* callout secondary paragraphs */

  /* Subheading: UI subheads, callout text */
  --text-subhead-sm: 20px;    /* callout gold body text */
  --text-lg:         21px;    /* lead-band item text */
  --text-subhead:    22px;    /* callout titles, endorsement names, tab buttons */
  --text-subhead-lg: 24px;    /* callout-corner body, about subtitle */

  /* Heading: section headings */
  --text-heading-xs:   26px;  /* about availability text */
  --text-28:           28px;  /* how-i-lead principle titles */
  --text-heading-sm:   30px;  /* stat row secondary number, cs-metric value */
  --text-heading:      32px;  /* site-nav name, endorsement quote */

  /* Display: large section and page titles */
  --text-2xl:          38px;  /* case study row title */
  --text-display-sm:   45px;  /* case study phase headline */
  --text-3xl:          52px;  /* large case study section headings */
  --text-sec-hdr:      60px;  /* universal section header (.sec-hdr--md) */
  --text-page-hdr:     80px;  /* inner page banner title */
  --text-display:      96px;  /* hero title */

  /* Stat: single-number hero display */
  --text-stat:        168px;  /* ₹35L+ and similar hero stat numbers */

  /* ── Spacing ── */
  --gutter:          80px;
  --section-pad:     80px;
  --section-pad-lg:  96px;   /* large section padding — hero, bio, testimonials */

  /* ── Layout gaps ── */
  --col-two-gap-sm: 30px;   /* two-column layout gap - small */
  --col-two-gap-md: 60px;   /* two-column layout gap - medium */
  --col-two-gap: 	100px;   /* two-column layout gap where right col is a callout */
  --col-two-gap-lg:	150px;   /* two-column layout gap large */

  /* ── Containers ── */
  --container-max: 1600px;

  /* ── Sticky offset ── */
  --sticky-top: 110px;    /* top offset for sticky columns (nav + ghost header height) */

  /* ── Motion ── */
  --ease-spring: cubic-bezier(0.22, 0.61, 0.36, 1);    /* snappy spring — interactive triggers, buttons */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* smooth glide — reveals, browser hover */

  /* ── Shape ── */
  --radius: 4px;   /* primary card / element corner radius */

  /* ── Root element defaults ── */
  width: 100%;
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.55;
  letter-spacing: -0.005em;
  position: relative;
}

.page-root a { text-decoration: none; cursor: pointer; }

/* ── Universal paragraph base ──
   Lowest specificity (plain tag) — any class selector overrides.
   Sets a consistent default for all p elements across all pages.
   Specific components (callouts, bio prose, principle text) override
   via their class selectors which have higher specificity.           */
p {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}
p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════════════════════════════════
   3 · UNIVERSAL SECTION WRAPPER + CONTAINER
   Every content section uses <section class="section"> with
   <div class="section-inner"> inside. Background modifiers are applied
   on the section when needed; default is the page background.
   ═══════════════════════════════════════════════════════════════════════════ */

.section          { position: relative; }
.section--surface { background: var(--surface); }

/* The universal 80px padding container */
.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}

.section-inner-full-width{
	position:relative;
	z-index:1;
	padding:50px 0px;
}
.section-inner-full-width::before{
    content:"";
    position:absolute;
    inset:0;
    left:50%;
    right:50%;
    margin-left:-50vw;
    margin-right:-50vw;
    z-index:-1;
	background: var(--surface);
}


/* ═══════════════════════════════════════════════════════════════════════════
   4 · SHARED PATTERNS
   Base rules shared across multiple components or pages.
   Active: eyebrow labels, em highlights, .domain-tag, .icon-btn, .mono, .btn,
           .card (about + endorsements testimonials)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Eyebrow label: shared base ── */
.sec-hdr-eyebrow,
.sec-subhdr-eyebrow,
.page-hdr-eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}
.sec-hdr-eyebrow {
  font-size: var(--text-14);
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 7px;
  gap: 16px;
}
.sec-subhdr-eyebrow{
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 7px;
  gap: 16px;
}

.sec-hdr-eyebrow::after,
.sec-subhdr-eyebrow::after,
.page-hdr-eyebrow::after {
  content: '';
  width: 52px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.sec-subhdr-eyebrow::after{
	width: 30px;
}

/* ── Italic highlight on em inside title elements (light bg) ── */
.sec-hdr-title em,
.sec-subhdr-title em,
.page-hdr-title em {
  font-style: italic;
  color: var(--highlight);
}

/* ── Card: surface base with top accent bar ── */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 60px;   /* default accent bar; override per card variant (about-test: 56px) */
  height: 4px;
  background: var(--accent);
}

/* ── Circular icon button (LinkedIn etc.) ── */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  border-radius: 50%;
  transition:
    background  0.22s var(--ease-spring),
    color       0.22s var(--ease-spring),
    border-color 0.22s var(--ease-spring),
    transform   0.22s var(--ease-spring);
}
.icon-btn:hover {
  background:   var(--accent);
  color:        var(--white);
  border-color: var(--accent) !important;
  transform:    scale(1.1);
}

/* ── Domain tag with trailing slash — used on index.html + about.html heroes ── */
.domain-tag {
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  /* Transition supports both the hover colour change and the stagger entrance */
  transition: color 0.15s ease, opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}
.domain-tag:hover { color: var(--ink); }
.domain-tag::after { content: '/'; position: absolute; right: -12px; opacity: 0.35; }
.domain-tag:last-child::after { display: none; }

/* ── Mono utility ── */
.mono {
  font-family: var(--mono);
  font-size: var(--text-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* ═══════════════════════════════════════════════════════════════════════════
   5 · BUTTON SYSTEM
   All buttons share the same base. Colour and context differ via modifiers.
   SVG arrows inside any button nudge right on hover — universal rule.
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--text-link);
  font-weight: 500;
  border-radius: 100px;
  padding: 12px 22px;
  transition: opacity 0.15s;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }

/* Dark bg / light text — primary actions, case study links */
.btn--ink {
  background: var(--ink);
  color: var(--bg);
}

/* Accent bg / dark text — used on dark sections (leadership CTA) */
.btn--on-dark {
  background: var(--dark-accent);
  color: var(--dark);
}

/* Small variant — nav CTA */
.btn--sm {
  font-size: var(--text-14);
  padding: 11px 22px;
}

/* SVG arrow nudge right on hover — applies to every button universally */
.btn svg {
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-spring);
}
.btn:hover svg { transform: translateX(4px); }

/* Open-in-new variant — arrow nudges up-right instead */
.btn--external:hover svg { transform: translate(3px, -3px); }

/* Outline variant — transparent with ink border; fills on hover */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--bg); opacity: 1; }

/* Hero / page title — large serif display heading.
   Used on: index.html hero + about.html hero */
.hero-title {
  font-family: var(--serif);
  font-size: var(--text-display);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin: 0;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--highlight);
  display: inline-block;
}


/* ═══════════════════════════════════════════════════════════════════════════
   6 · NAVIGATION
   Every page — rendered by components/nav.js
   ═══════════════════════════════════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(251, 252, 253, 0.90);
  transition: box-shadow 0.2s ease;
}
.site-nav.scrolled { box-shadow: 0 1px 12px rgba(12, 26, 39, 0.08); }

.site-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 76px;
  transition: height 0.22s ease;
}

/* Compact nav — fires when a sticky-ghost section header becomes visible */
.nav-compact .site-nav-inner { height: 52px; }

.site-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav-name {
  font-family: var(--serif);
  font-size: var(--text-heading);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.site-nav-link {
  font-size: var(--text-link);
  font-weight: 450;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s;
}
.site-nav-link:hover { color: var(--ink); }
.site-nav-link.is-active { color: var(--ink); font-weight: 500; }

/* Active underline */
.site-nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Hover underline slide-in */
.site-nav-link::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.site-nav-link:hover::before  { width: 100%; }
.site-nav-link.is-active::before { display: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   7 · PAGE HEADER
   Used on: all four case study pages, endorsements.html, how-i-lead.html.
   Large display-size block with eyebrow + title + descriptor.
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hdr {
  position: relative;
  background: var(--surface);   /* default: case-studies, endorsements, how-i-lead */
}
.page-hdr--white {
  background: var(--white);     /* case study detail pages (all 4) */
}

.page-hdr-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}

.page-hdr-eyebrow {
  font-size: var(--text-14);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  margin-bottom: 20px;
  gap: 16px;
}

.page-hdr-title {
  font-family: var(--serif);
  font-size: var(--text-page-hdr);   /* 80px — all inner page banners */
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 18px;
}
.page-hdr-title em { font-style: italic; color: var(--highlight); }

.page-hdr-desc {
  font-size: var(--text-prose);
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  max-width: 1100px;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   8 · SECTION HEADER
   Used on every page. The HTML structure repeats for every section:
   <header class="sec-hdr sec-hdr--md">
     <div class="sec-hdr-titleblock">
       <div class="sec-hdr-eyebrow">…</div>
       <h2 class="sec-hdr-title">…</h2>
     </div>
   </header>
   Modifiers: --md (standard), --dark, --soft, --surface, --inline.
   ═══════════════════════════════════════════════════════════════════════════ */

.sec-hdr {
  padding-bottom: 10px;
  margin-bottom: 50px;
  border-bottom: 2px solid var(--hairline-strong);
}
.sec-subhdr {
	margin-bottom: 20px;
}
.sec-hdr-titleblock { /* structural wrapper — no visual override */ }
.sec-subhdr-titleblock { /* structural wrapper — no visual override */ }

.sec-hdr-title {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--ink);
  line-height: 1.0;
}
.sec-subhdr-title {
  font-family: var(--serif);
  font-size: var(--text-heading);
  font-weight: 300;
  margin: 0;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: -0.028em;
}
.sec-hdr--md .sec-hdr-title { font-size: var(--text-3xl); }
.sec-hdr-title em { font-style: italic; color: var(--highlight); }

/* ── Section intro paragraph ──
   Single class for the brief explanatory text placed directly after a
   section header across all pages. Light bg default; dark context overrides
   color for lead-band and dark philosophy/AI sections.
   Used on: index.html, how-i-lead.html */
.sec-intro {
  font-family: var(--sans);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
  padding: 0;
}
.lead-band .sec-intro,
.hil-section--dark .sec-intro {
  color: var(--dark-text-2);
}

/* ── Dark modifier ── */
.sec-hdr--dark                       { border-bottom-color: var(--ink-2); }
.sec-hdr--dark .sec-hdr-eyebrow      { color: var(--dark-accent); }
.sec-hdr--dark .sec-hdr-eyebrow::after { background: var(--dark-accent); }
.sec-hdr--dark .sec-hdr-title        { color: var(--dark-text); }
.sec-hdr--dark .sec-hdr-title em     { color: var(--dark-accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   9 · GHOST STICKY HEADER
   Companion to script/sticky-headers.js. Compact copy of the section header
   that fades in below the nav as the user scrolls past the original.
   ═══════════════════════════════════════════════════════════════════════════ */

.sticky-ghost {
  position: fixed;
  top: 77px;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 6px 18px -6px rgba(12, 26, 39, 0.22);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, top 0.22s ease;
}
.sticky-ghost.is-visible      { opacity: 1; transform: translateY(0); }
.sticky-ghost.sec-hdr--dark   { background: var(--dark);
                                 box-shadow: 0 6px 22px -6px rgba(112,112,112,0.55); }
.sticky-ghost.sec-hdr--soft   { background: var(--accent-soft-solid); }
.sticky-ghost.sec-hdr--surface{ background: var(--surface); }

/* Ghost slides up when nav compresses */
.nav-compact .sticky-ghost { top: 53px; }

.sticky-ghost-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px var(--gutter);
}
/* Compact sizes only — colour/font/weight inherit from copied class names */
.sticky-ghost .sec-hdr-title   { font-size: 22px; }
.sticky-ghost .sec-hdr-eyebrow { display: none; }
.sticky-ghost .sec-hdr-eyebrow::after { display: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   10 · BROWSER FRAME MOCKUP
   Used on: index.html, case-studies.html + 3 of 4 case study detail pages
   (Dashboard, MonitoringHub, TouchConfig — not used in Varanasi).
   ═══════════════════════════════════════════════════════════════════════════ */

.browser {
  width: 100%;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 1px 0 var(--hairline-strong), 8px 8px 2px rgba(35, 91, 150, 0.18);
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}
.browser-bar {
  height: 40px;
  background: var(--surface-2);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid var(--hairline);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(12, 26, 39, 0.18);
}
.browser-dot:first-child { background: var(--accent); opacity: 0.85; }
.browser-url {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 6px 16px;
  background: var(--bg);
  border-radius: 100px;
  max-width: 460px;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-meta {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-body {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.browser-body img {
  display: block;    /* removes inline baseline descender gap */
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* lazy-load handled by global img rule in reset */
}
/* Zoom icon (injected by JS) */
.browser-zoom-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12, 26, 39, 0.60);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 4;
  pointer-events: none;
}
.browser-body:hover .browser-zoom-icon { opacity: 1; transform: scale(1.05); }

/* Browser lift when parent row is hovered */
.cs-row:hover .browser { transform: translateY(-4px); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 26, 39, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(228, 237, 245, 0.12);
  border: 1px solid rgba(228, 237, 245, 0.20);
  color: rgba(228, 237, 245, 0.85);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 10000;
}
.lightbox-close:hover { background: rgba(228, 237, 245, 0.22); color: #fff; }
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(228, 237, 245, 0.45);
}


/* ═══════════════════════════════════════════════════════════════════════════
   11 · NORMAL IMAGE FRAME MOCKUP
   Currently used on: case-study-monitoringhub.html (1) and case-study-varanasi.html
   (5, its primary frame type). Available for other pages as needed.
   ═══════════════════════════════════════════════════════════════════════════ */
.normal-image-frame {
  width: 100%;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  /* box-shadow: 0 1px 0 var(--hairline-strong), 8px 8px 2px rgba(35, 91, 150, 0.18); */
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}
.normal-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.normal-image-frame:hover .browser-zoom-icon {
  opacity: 1;
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   11B · DESKTOP FRAME MOCKUP
   Companion to .browser, for native desktop/kiosk application screenshots.
   Title bar shows an app label + minimal window controls instead of a URL,
   so it reads as a desktop window rather than a browser tab (deliberately
   no traffic-light dots — keeps the two frame types visually distinct).
   ═══════════════════════════════════════════════════════════════════════════ */
.desktop {
  width: 100%;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 1px 0 var(--hairline-strong), 8px 8px 2px rgba(35, 91, 150, 0.18);
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}
.desktop-bar {
  height: 40px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--hairline);
}
.desktop-title {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.desktop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.desktop-controls svg { display: block; }
.desktop-body {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.desktop-body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.desktop-body:hover .browser-zoom-icon { opacity: 1; transform: scale(1.05); }

/* Desktop frame lift when parent row is hovered */
.cs-row:hover .desktop { transform: translateY(-4px); }

/* ═══════════════════════════════════════════════════════════════════════════
   12 · LEAD SIGNAL
   Collapsible <details> block. Used on:
   index.html + all four case-study-*.html pages.
   ═══════════════════════════════════════════════════════════════════════════ */

.lead-signal {
  margin-bottom: 36px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  overflow: hidden;
  interpolate-size: allow-keywords;
}
.lead-signal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
}
.lead-signal-label::-webkit-details-marker { display: none; }
.lead-signal-label::after {
  content: '+';
  margin-left: auto;
  font-size: var(--text-prose);
  line-height: 1;
  font-weight: 300;
  color: var(--accent);
  display: inline-block;
  transform-origin: center;
  transition: transform 0.28s var(--ease-spring);
}
.lead-signal[open] .lead-signal-label::after { transform: rotate(45deg); }
.lead-signal-text {
  font-family: var(--serif);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  margin: 0;
  padding: 20px 18px;
  border-top: 1px solid var(--accent-line);
}
.lead-signal-text em { font-style: italic; color: var(--highlight-strong); }

/* Smooth expand — Chrome 131+, Safari 18.2+, Firefox 134+; instant fallback */
.lead-signal::details-content {
  overflow: clip;
  block-size: 0;
  opacity: 0;
  transition:
    block-size 0.32s var(--ease-spring),
    opacity 0.25s ease,
    content-visibility 0.32s allow-discrete;
}
.lead-signal[open]::details-content { block-size: auto; opacity: 1; }


/* ═══════════════════════════════════════════════════════════════════════════
   13 · LEAD BAND
   Dark full-bleed section with 3-col grid.
   Used on: index.html + all four case-study-*.html pages.
   Theme, layout, and UI are identical on every page — content only differs.
   ═══════════════════════════════════════════════════════════════════════════ */

.lead-band {
  background: var(--dark);
  color: var(--dark-text);
  position: relative;
}
.lead-band-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
  position: relative;
}

.lead-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 15px 0px 50px 0px;
}
.lead-band-item {
  padding: 25px 30px;
  position: relative;
  transition: background 0.2s ease;
}

.lead-band-item:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px; /* half of gap */
  width: 1px;
  height: 100%;
  background: var(--hairline-dark);
}
.lead-band-item:hover       { background: rgba(228, 237, 245, 0.04); }

.lead-band-text {
  font-family: var(--serif);
  font-size: var(--text-lg);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--dark-text);
  margin: 0 0 20px;
}
.lead-band-text em {
  font-style: italic;
  color: var(--dark-accent);     /* dark bg — use light accent, not highlight */
}
.lead-band-detail {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--dark-text-2);
}

.lead-band-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.lead-band-cta .mono { color: var(--dark-text-2); }


/* ═══════════════════════════════════════════════════════════════════════════
   14 · STATS SECTION
   Used on: index.html (hero stats) + about.html.
   Large hero number on the left, secondary stat rows on the right.
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}
.stats-body { padding: 0 5px; }
.stats-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--section-pad-lg);
  align-items: center;
}

.stat-hero { position: relative; }
.stat-hero-num {
  font-family: var(--serif);
  font-size: var(--text-stat);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.stat-hero-num small {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--highlight);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-style: italic;
  margin-left: 2px;
}
.stat-hero-label {
  font-family: var(--mono);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-hero-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.stat-hero-sub {
  font-size: var(--text-label);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 650px;
  letter-spacing: 1px;
  font-style: italic;
  margin: 0;
}
/* stat-hero-num — position relative for potential decorative use */
.stat-hero-num { position: relative; }

.stats-secondary { display: flex; flex-direction: column; }
.stat-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 26px 0;
  align-items: center;
}
.stat-row:not(:first-child) { border-top: 1px solid var(--hairline); }
.stat-row-num, .static-row-num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.static-row-num > span {
    margin: 0px 8px 6px 14px;
    display: flex;
    align-self: center;
}

.stat-row-num small {
  font-family: var(--serif);
  font-size: var(--text-heading-sm);
  color: var(--highlight);
  font-weight: 500;
  font-style: italic;
  margin-left: 5px;
}
.stat-row-body     { padding-top: 6px; }
.stat-row-label {
  font-family: var(--mono);
  font-size: var(--text-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.stat-row-sub {
  margin-top: 6px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 400px;
}
/* Animation: stat counters use will-change for smooth JS counting */
.stat-hero-num[data-count],
.stat-row-num[data-count] { will-change: opacity; }


/* ═══════════════════════════════════════════════════════════════════════════
   15 · CASE STUDY CARD ROWS
   Used on: index.html + case-studies.html.
   Alternating left/right layout. Cards repeat with identical structure;
   only title, description, metrics, and image differ.
   ═══════════════════════════════════════════════════════════════════════════ */

.cs-list { padding: 0; }

.cs-row {
  border-bottom: 1px solid var(--hairline);
  padding: 80px 0;
  transition: background 0.2s ease;
}
.cs-row:first-of-type { padding-top: 30px; }
.cs-row:last-child    { border-bottom: 0; padding-bottom: 0; }

.cs-row-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5px;
  display: grid;
  grid-template-columns: 1fr 720px;
  gap: 70px;
  align-items: start;
}
/* Even rows flip the layout: image left, info right */
.cs-row:nth-of-type(even) .cs-row-inner { grid-template-columns: 720px 1fr; }
.cs-row:nth-of-type(even) .cs-info      { order: 2; }
.cs-row:nth-of-type(even) .browser      { order: 1; }

.cs-info { padding-top: 12px; }

.cs-num {
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-num::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent);
}

.cs-title {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  line-height: 1.05;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 20px;
}

.cs-desc {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 32px;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-bottom: 32px;
  align-items: center;
}
.cs-tag {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
}
.cs-tag::after { content: '/'; position: absolute; right: -11px; opacity: 0.35; }
.cs-tag:last-child::after { display: none; }

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 32px;
  padding: 6px 0 24px;
}
.cs-metric {
  padding: 22px 24px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.55s var(--ease-spring),
              transform 0.55s var(--ease-spring);
}
.cs-metric:not(:first-child) { padding-left: 24px; border-left: 1px solid var(--hairline); }
.cs-metric-label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-metric-value {
  font-family: var(--serif);
  font-size: var(--text-heading-sm);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ── Metric / credential / domain-tag entrance (JS adds / removes .pre-reveal) ── */
.cs-metric.pre-reveal,
.about-credential.pre-reveal { opacity: 0; transform: translateY(14px); }
/* Domain tag stagger — index.html + about.html hero domains */
.domain-tag.pre-reveal { opacity: 0; transform: translateY(6px); }

/* ── Card-level signal components (Dashboard / MonitoringHub / TouchConfig) ── */

/* ── Phase progression — Dashboard ──────────────────────────────────────────
   ORIGINAL dot-diagram: commented out. Replaced by .cs-phase-text below.
   To restore: comment out .cs-phase-text block and uncomment this block.  */
/*
.cs-phase-prog {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 12px 0 16px;
}
.cs-phase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cs-phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline);
  border: 1.5px solid var(--hairline);
}
.cs-phase-step.active .cs-phase-dot { background: var(--accent); border-color: var(--accent); }
.cs-phase-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-phase-step.active .cs-phase-label { color: var(--accent); }
.cs-phase-line {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  min-width: 20px;
  max-width: 36px;
  margin-bottom: 14px;
}
*/

/* ── Phase text — Dashboard replacement (active) ─────────────────────────── */
.cs-phase-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-phase-text-count {
  color: var(--accent);
  font-weight: 600;
}
.cs-phase-text-sep {
  color: var(--hairline-strong);
}
.cs-phase-text-detail {
  color: var(--ink-3);
}
.cs-phase-text-years {
  color: var(--ink-3);
  font-weight: 600;
}

/* Model signal — MonitoringHub */
.cs-model-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cs-model-signal-from  { color: var(--ink-3); }
.cs-model-signal-arrow { color: var(--highlight); font-size: var(--text-meta); }
.cs-model-signal-to    { color: var(--accent); font-weight: 600; }

/* Durability signal — TouchConfig */
.cs-durability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 16px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-durability em { color: var(--accent); font-style: normal; font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════════════════
   16 · CONTACT
   Every page — rendered by components/contact.js.
   Eyebrow + title use sec-hdr classes for visual consistency with all
   other section headers. contact-sub sits below the sec-hdr.
   ═══════════════════════════════════════════════════════════════════════════ */

.contact {
  background: var(--surface);
  position: relative;
}
.contact::before { content: ''; background: var(--surface); }

.contact-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
  display: grid;
  grid-template-columns: 540px 1fr;
  gap: var(--section-pad-lg);
  align-items: start;
}

/* sec-hdr inside contact left column — tighter spacing, no separator line */
.contact-inner .sec-hdr { margin-bottom: 20px; border-bottom: 0; }

.contact-sub {
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 440px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.contact-cell {
  padding: 26px 32px 26px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-cell:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--hairline); }
.contact-cell:nth-child(even)            { padding-left: 32px; }

.contact-cell-label {
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-cell-value-wrap {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 50px;
  grid-auto-flow: column;
}
.contact-cell-value-location {
  display: flex;
  gap: 15px;
  align-items: center;
}
.contact-cell-value { font-size: var(--text-md); color: var(--ink); letter-spacing: -0.005em; }
.contact-cell-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-strong);
}

.contact-cell-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: var(--text-meta);
  font-weight: 500;
  color: var(--accent-strong);
  width: fit-content;
  cursor: pointer;
  transition: opacity 0.22s ease;
}
.contact-cell-cta:hover  { opacity: 0.75; }
.contact-cell-cta.copied { color: #4CAF50; }
.contact-cell-cta svg { transition: transform 0.22s var(--ease-spring); }
.contact-cell-cta:hover svg { transform: translateX(4px); }

.contact-cell-reveal {
  font-size: var(--text-md);
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.22s ease;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}
/* Fade transition for JS-revealed values */
.contact-cell-cta,
[actual-data-key] { transition: opacity 0.22s ease; }


/* ═══════════════════════════════════════════════════════════════════════════
   17 · FOOTER
   Every page — rendered by components/footer.js.
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--ink);
  color: var(--dark-text-2);
  position: relative;
}
.footer::before { content: ''; background: var(--ink); }

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  font-family: var(--mono);
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-name {
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-name .mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.footer-center { text-align: center; }
.footer-right  { text-align: right; }


/* ═══════════════════════════════════════════════════════════════════════════
   18 · UNIVERSAL CALLOUT COMPONENTS
   Two reusable editorial callout blocks used across how-i-lead and case study
   detail pages. Both live here because they appear on 2+ different page types.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Gold callout — warm highlight background + left accent border ──
   Use: hil-ai-note (how-i-lead), ceiling/insight blocks (case study details).
   HTML pattern:
     <div class="callout-gold">
       <h4 class="callout-gold-title">Label</h4>
       <div class="callout-gold-text">Body text. <em>Emphasis.</em>
         <p>Secondary paragraph.</p>
       </div>
     </div>                                                               */
.callout-gold {
  padding: 20px 24px;
  background: var(--highlight-soft);
  border-left: 5px solid var(--highlight);
}
.callout-gold-title {
  font-family: var(--serif);
  font-size: var(--text-subhead);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--highlight-dark);
  margin: 0 0 10px;
}
.callout-gold-text {
  font-family: var(--serif);
  font-size: var(--text-subhead-sm);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.callout-gold-text em {
  font-style: italic;
  color: var(--highlight-strong);
}
.callout-gold-text p {
  font-family: var(--serif);
  font-size: var(--text-prose-lg);
  line-height: 1.3;
  margin: 19px 0;
}

/* ── Corner callout — accent corner lines + translucent background ──
   Use: executive summary asides, editorial pullouts.
   HTML pattern:
     <div class="callout-corner">
       <div class="callout-corner-label">Label</div>
       <div class="callout-corner-text">Body. <em>Emphasis.</em>
         <p>Secondary paragraph.</p>
       </div>
     </div>                                                               */
.callout-corner {
  --corner-size:      50px;
  --corner-thickness: 4px;
  position: relative;
  padding: 25px 28px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
}
.callout-corner::before,
.callout-corner::after {
  content: '';
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
}
.callout-corner::before {                              /* top-left corner */
  top: 0; left: 0;
  border-top:  var(--corner-thickness) solid var(--accent);
  border-left: var(--corner-thickness) solid var(--accent);
}
.callout-corner::after {                               /* bottom-right corner */
  right: 0; bottom: 0;
  border-right:  var(--corner-thickness) solid var(--accent);
  border-bottom: var(--corner-thickness) solid var(--accent);
}
.callout-corner-label {
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 20px;
}
.callout-corner-text {
  font-family: var(--serif);
  font-size: var(--text-subhead-lg);
  line-height: 1.45;
}
.callout-corner-text em {
  font-style: italic;
  color: var(--highlight-strong);
}
.callout-corner-text p {
  font-family: var(--serif);
  font-size: var(--text-lg);
  line-height: 1.3;
  margin: 25px 0 19px;
}
.callout-corner-text p:last-of-type { margin-bottom: 10px; }


/* ═══════════════════════════════════════════════════════════════════════════
   19 · UTILITIES
   Apply directly on elements in HTML when needed.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sticky column anchors */
.sticky-top     { position: sticky; top: 110px; align-self: start; }
.sticky-top-nav { position: sticky; top: 70px;  align-self: start; }
.sticky-top-hdr { position: sticky !important; top: var(--sticky-top) !important; align-self: start !important; }

/* Default Spacing */
.mt-50  { margin-top: 50px !important; }
.mb-50  { margin-bottom: 50px !important; }

/* Spacing resets */
.m-0  { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.p-0  { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   20 · ANIMATIONS & INTERACTIONS
   All micro-interactions defined here so they apply globally and consistently.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Leadership band item entrance (JS stagger) ── */
.lead-band-item {
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s ease;
}
.lead-band-item.t-hidden { opacity: 0; transform: translateY(20px); }

/* ── Phase timeline entrance ── */
.cs-timeline-stop {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cs-timeline-stop.t-hidden { opacity: 0; transform: translateY(16px); }

/* ── Endorsement quote fade ── */
#endorse-quote,
#endorse-name,
#endorse-role   { transition: opacity 0.2s ease; }
.endorse-fading { opacity: 0 !important; }

/* ── Progress bar fill ── */
.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s var(--ease-smooth);
}

/* ── Back to Top ──
   Appended to <body> by JS — outside .page-root — so colours use explicit
   hex values, not CSS vars which wouldn't resolve outside the wrapper. */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(12, 26, 39, 0.12);
  background: #FBFCFD;
  color: #0C1A27;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(12, 26, 39, 0.14), 0 1px 3px rgba(12, 26, 39, 0.08);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #0C1A27;
  color: #FBFCFD;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(12, 26, 39, 0.22), 0 2px 6px rgba(12, 26, 39, 0.12);
}
.back-to-top svg { transition: transform 0.22s var(--ease-spring); }
.back-to-top:hover svg { transform: translateY(-2px); }


/* ═══════════════════════════════════════════════════════════════════════════
   21 · ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   NAV: CASE-STUDIES DROPDOWN + MOBILE HAMBURGER MENU  (added)
   ═══════════════════════════════════════════════════════════════════════════ */
.site-nav-item { position: relative; display: inline-flex; align-items: center; }
.site-nav-link { display: inline-flex; align-items: center; }
.site-nav-caret { margin-left: 5px; opacity: .65; transition: transform .2s ease; }
.site-nav-has-dd:hover .site-nav-caret,
.site-nav-has-dd:focus-within .site-nav-caret { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel (desktop) */
.site-nav-dd {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 480px; padding-top: 14px; z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.site-nav-has-dd:hover .site-nav-dd,
.site-nav-has-dd:focus-within .site-nav-dd {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-nav-dd-inner {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: 0 18px 50px rgba(12, 26, 39, .16);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
}
.site-nav-dd-link { display: flex; align-items: center; gap: 14px; padding: 9px; border-radius: 10px; transition: background .14s ease; }
.site-nav-dd-link:hover,
.site-nav-dd-link.is-current { background: var(--accent-soft); }

/* Thumbnail preview + numeral badge */
.site-nav-dd-thumb {
  position: relative; flex-shrink: 0;
  width: 84px; aspect-ratio: 16 / 10;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.site-nav-dd-thumb img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease-smooth);
}
.site-nav-dd-link:hover .site-nav-dd-thumb img,
.site-nav-dd-link:focus-visible .site-nav-dd-thumb img { transform: scale(1.08); }
.site-nav-dd-num {
  position: absolute; left: 5px; bottom: 5px;
  font-family: var(--mono); font-size: var(--text-9); font-weight: 600;
  letter-spacing: 0.06em; color: #fff; line-height: 1.4;
  background: rgba(12, 26, 39, 0.55);
  padding: 1px 5px; border-radius: 3px;
}

.site-nav-dd-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.site-nav-dd-title { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.15; }
.site-nav-dd-desc  { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.site-nav-dd-all {
  display: flex; align-items: center; gap: 7px; margin-top: 4px;
  padding: 12px 14px; border-top: 1px solid var(--hairline);
  font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: -.01em;
}
.site-nav-dd-all:hover { color: var(--accent-strong); }
.site-nav-dd-all svg { transition: transform .18s ease; }
.site-nav-dd-all:hover svg { transform: translateX(3px); }

/* Hamburger (hidden on desktop) */
.site-nav-burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: 6px; }
.site-nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.site-nav.is-open .site-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .site-nav-burger span:nth-child(2) { opacity: 0; }
.site-nav.is-open .site-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down menu (hidden on desktop; shown via .is-open in the mobile breakpoint) */
.site-nav-mobile { display: none; border-top: 1px solid var(--hairline); background: rgba(251,252,253,.985); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-height: calc(100vh - 64px); overflow-y: auto; }
.site-nav-mobile-inner { display: flex; flex-direction: column; padding: 10px var(--gutter) 28px; max-width: var(--container-max); margin: 0 auto; }
.site-nav-m-link { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 15px 2px; font-family: var(--serif); font-size: 19px; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.site-nav-m-link.is-active { color: var(--accent); }
.site-nav-m-group { display: flex; flex-direction: column; border-bottom: 1px solid var(--hairline); }
.site-nav-m-group .site-nav-m-link { border-bottom: none; }
.site-nav-m-group.is-open .site-nav-caret { transform: rotate(180deg); }
.site-nav-m-sub { display: none; flex-direction: column; padding: 0 2px 12px 14px; }
.site-nav-m-group.is-open .site-nav-m-sub { display: flex; }
.site-nav-m-sublink { padding: 12px 0; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--accent-soft); }
.site-nav-m-sublink:last-child { border-bottom: none; }
.site-nav-m-sublink.is-current { color: var(--accent); font-weight: 500; }
.site-nav-m-sublink--all {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding-top: 14px;
  border-top: 1px solid var(--hairline);
  color: var(--accent); font-weight: 500;
}
.site-nav-m-sublink--all svg { transition: transform .18s ease; }
.site-nav-m-sublink--all:hover svg,
.site-nav-m-sublink--all:active svg { transform: translateX(3px); }
.site-nav-m-resume { margin-top: 18px; justify-content: center; }

/* Nav breakpoint: collapse to hamburger */
@media (max-width: 900px) {
  .site-nav-links,
  .site-nav-resume { display: none; }
  .site-nav-burger { display: flex; }
  .site-nav.is-open .site-nav-mobile { display: block; }
  .site-nav-inner { height: 64px; }
}

/* ═══ ACCESSIBILITY: visible keyboard focus (added) ═══ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.site-nav-link:focus-visible,
.site-nav-dd-link:focus-visible,
.site-nav-m-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
