/* ============================================================
   corporate.css — shared chrome for the KPIcons Corporate site.

   Loaded by every page in /KPIcons Corporate/. Carries the tokens,
   typography utilities, masthead, footer, theme toggle, button system,
   section-header pattern, pullquote + CTA bands, and responsive rules.

   Page-specific layout (loop steps on index, pricing tiers on pricing,
   role grids on about, etc.) lives in each page's own <style> block
   so this file stays small and cacheable.

   Theme:
     - Default: warm paper (cream + deep-ink + gold accent, editorial)
     - [data-theme="dark"]: ink newsprint (deep navy + cream text)
   ============================================================ */

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

/* ================================================================
   Tokens — Light (Akamai light theme)
   Variable names retained for back-compat with all consuming pages;
   values repointed at the Akamai palette (deep navy ink, Akamai
   cyan accent, orange duet). Geist sans replaces Fraunces sitewide.
   ================================================================ */
:root {
    --paper:     #EFF3F8;                    /* Akamai light page bg */
    --paper-2:   #F3F7FC;                    /* Akamai light card bg */
    --paper-3:   #E8F0FA;                    /* Akamai light hover bg */
    --ink:       #0A1628;                    /* Akamai deep navy ink */
    --ink-2:     #4B5563;                    /* Body copy (slate) */
    --ink-3:     #6B7280;                    /* Meta / captions */
    --rule:      rgba(0, 156, 222, 0.15);    /* Blue-tinted hairline */
    --rule-2:    rgba(0, 156, 222, 0.10);    /* Thinner hairline */
    --gold:      #009CDE;                    /* Akamai cyan — primary accent */
    --gold-ink:  #0088C4;                    /* Accent hover */
    --data-blue: #06B6D4;                    /* Secondary cyan for charts */
    --red:       #EF4444;                    /* Status red */

    --serif:    'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sans:     'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:     'Geist Mono', 'JetBrains Mono', 'SFMono-Regular', monospace;
    --gutter:   clamp(16px, 3vw, 32px);
    --grid-max: 1280px;
}

/* ================================================================
   Tokens — Dark (Akamai dark, default for the Akamai look)
   ================================================================ */
[data-theme="dark"] {
    --paper:     #050C18;                    /* Akamai dark page bg */
    --paper-2:   #0D1F3C;                    /* Akamai sidebar navy */
    --paper-3:   #132D5E;                    /* Akamai card navy */
    --ink:       #FFFFFF;                    /* Primary text on dark */
    --ink-2:     #94A3B8;                    /* Slate-400 secondary */
    --ink-3:     #64748B;                    /* Slate-500 tertiary */
    --rule:      rgba(255, 255, 255, 0.08);  /* Hairline on dark */
    --rule-2:    rgba(0, 156, 222, 0.20);    /* Blue-tinted card border */
    --gold:      #009CDE;                    /* Akamai cyan stays */
    --gold-ink:  #0088C4;
    --data-blue: #FF9933;                    /* Akamai orange — 2-tone duet */
    --red:       #F87171;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "ss02";
    transition: background 0.3s ease, color 0.3s ease;
}

/* ================================================================
   Typography utilities
   ================================================================ */
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }

/* Kicker — uppercase small-caps labels (kept at 18px per the
   "bigger, bigger" sizing decision made on the home page). */
.kicker {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
}
.kicker.ink { color: var(--ink-3); }

/* ================================================================
   Layout primitives
   ================================================================ */
.wrap {
    width: 100%;
    max-width: var(--grid-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.band {
    padding: clamp(60px, 9vw, 120px) 0;
    position: relative;
}
.band.ink {
    background: var(--ink);
    color: var(--paper);
}
[data-theme="dark"] .band.ink {
    background: var(--paper-3);
    color: var(--ink);
}
.band.alt { background: var(--paper-2); }
.band.tight { padding: clamp(40px, 6vw, 72px) 0; }

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(16px, 2vw, 28px);
}

/* ================================================================
   MASTHEAD — big KPIcons-only logo + nav + theme toggle.
   IMPORTANT: every page must include this markup verbatim so the
   theme + navigation feel identical across the site.
   ================================================================ */
.masthead {
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(6px);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.masthead-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 24px;
}
.masthead-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
/* KPIcons logo — locked XL per user direction. 200px. */
.masthead-brand img {
    height: 200px !important;
    width: auto !important;
    max-height: 200px !important;
}
.masthead-brand .logo-for-light { display: inline; }
.masthead-brand .logo-for-dark  { display: none; }
[data-theme="dark"] .masthead-brand .logo-for-light { display: none; }
[data-theme="dark"] .masthead-brand .logo-for-dark  { display: inline; }

.masthead-nav {
    display: flex;
    gap: clamp(12px, 2.5vw, 28px);
    align-items: center;
}
.masthead-nav a.nav-link {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.masthead-nav a.nav-link:hover { color: var(--gold); }
.masthead-nav a.nav-link.active { color: var(--gold); }
.masthead-nav a.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.2s ease;
}
.masthead-nav a.nav-link:hover::after { width: 100%; }
.masthead-nav a.nav-link.active::after { width: 100%; }

/* Theme toggle — editorial icon button. Sun shows in light mode,
   moon in dark; JS just flips the attribute + localStorage. */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.theme-toggle-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: block; }

/* ================================================================
   Button system
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.btn.gold:hover { background: var(--gold-ink); border-color: var(--gold-ink); }

.band.ink .btn,
.pull-band .btn,
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band.ink .btn:hover,
.pull-band .btn:hover,
.cta-band .btn:hover { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.band.ink .btn.ghost,
.pull-band .btn.ghost,
.cta-band .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.band.ink .btn.ghost:hover,
.pull-band .btn.ghost:hover,
.cta-band .btn.ghost:hover { background: var(--paper); color: var(--ink); }
.btn-arrow { font-size: 14px; line-height: 1; margin-left: 2px; }

/* ================================================================
   Section-header pattern — reusable on any content page.
   Left sticky rail with label · Right big serif H2 + optional desc.
   ================================================================ */
.section-hd {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(32px, 5vw, 64px);
    margin-bottom: clamp(40px, 6vw, 72px);
    align-items: start;
}
.section-hd .meta {
    position: sticky;
    top: 140px;
}
.section-hd .meta .label {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-3);
}
.section-hd h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
}
.section-hd h2 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.section-hd .desc {
    grid-column: 2;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 60ch;
}
.section-hd .desc em { font-style: italic; color: var(--gold); }

/* ================================================================
   Pullquote band (reusable — "/ink" variant)
   ================================================================ */
.pull-band {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}
[data-theme="dark"] .pull-band { background: var(--paper-3); color: var(--ink); }
.pull-band::before {
    content: '“';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--serif);
    font-size: 200px;
    line-height: 1;
    color: var(--gold);
    opacity: 0.35;
    font-weight: 500;
    pointer-events: none;
}
.pull-quote {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 3.2vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: center;
    max-width: 26ch;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}
.pull-quote em {
    font-style: italic;
    color: var(--gold);
}
.pull-attr {
    text-align: center;
    position: relative;
    z-index: 1;
}
.pull-attr .name {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--paper);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
[data-theme="dark"] .pull-attr .name { color: var(--ink); }
.pull-attr .title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
}

/* ================================================================
   CTA band — used at the bottom of nearly every page.
   ================================================================ */
.cta-band {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(60px, 8vw, 100px) 0;
    border-top: 3px solid var(--gold);
}
[data-theme="dark"] .cta-band { background: var(--paper-3); color: var(--ink); }
.cta-band .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
}
.cta-band h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 22ch;
}
.cta-band h3 em {
    font-style: italic;
    color: var(--gold);
}
.cta-band .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ================================================================
   FOOTER — big KPIcons logo + 5 columns + legal bottom
   ================================================================ */
footer {
    background: var(--ink);
    color: var(--paper);
    padding: 72px 0 36px;
    border-top: 1px solid var(--rule);
}
[data-theme="dark"] footer { background: var(--paper-3); color: var(--ink); }
.foot-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
[data-theme="dark"] .foot-grid { border-bottom-color: var(--rule); }

.foot-brand img {
    height: 120px !important;
    width: auto !important;
    max-height: 120px !important;
    margin-bottom: 18px;
}
.foot-brand .logo-for-light { display: inline; }
.foot-brand .logo-for-dark  { display: none; }
[data-theme="dark"] .foot-brand .logo-for-light { display: none; }
[data-theme="dark"] .foot-brand .logo-for-dark  { display: inline; }

.foot-brand p {
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    max-width: 36ch;
    margin-bottom: 18px;
}
[data-theme="dark"] .foot-brand p { color: var(--ink-2); }
.foot-brand .social {
    display: flex;
    gap: 10px;
}
.foot-brand .social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.foot-brand .social a:hover {
    border-color: var(--gold);
    color: var(--gold);
}
[data-theme="dark"] .foot-brand .social a {
    border-color: var(--rule);
    color: var(--ink-2);
}

.foot-col .hdr {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 16px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--paper); }
[data-theme="dark"] .foot-col a { color: var(--ink-2); }
[data-theme="dark"] .foot-col a:hover { color: var(--ink); }

.foot-newsletter .desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 14px;
}
[data-theme="dark"] .foot-newsletter .desc { color: var(--ink-2); }
.foot-newsletter form {
    display: flex;
    gap: 0;
}
.foot-newsletter input {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-right: none;
    color: var(--paper);
    font-family: var(--sans);
    font-size: 13px;
    outline: none;
}
[data-theme="dark"] .foot-newsletter input { color: var(--ink); border-color: var(--rule); }
.foot-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .foot-newsletter input::placeholder { color: var(--ink-3); }
.foot-newsletter input:focus { border-color: var(--gold); }
.foot-newsletter button {
    padding: 10px 14px;
    background: var(--gold);
    color: var(--paper);
    border: 1px solid var(--gold);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.foot-newsletter button:hover { background: var(--gold-ink); border-color: var(--gold-ink); }

.foot-bot {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 11px;
    font-family: var(--mono);
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
    gap: 16px;
}
[data-theme="dark"] .foot-bot { color: var(--ink-3); }
.foot-bot .legal-links {
    display: flex;
    gap: 20px;
}
.foot-bot .legal-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.foot-bot .legal-links a:hover { color: var(--gold); }

/* ================================================================
   Generic content-page hero (reused on about / careers / pricing / etc.)
   Pages with bespoke heros (index) override this in their own <style>.
   ================================================================ */
.page-hero {
    padding: clamp(60px, 9vw, 120px) 0 clamp(48px, 7vw, 80px);
    border-bottom: 1px solid var(--rule);
}
.page-hero .kicker-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.page-hero .kicker-row .bar { width: 32px; height: 2px; background: var(--gold); }
.page-hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 24px;
    max-width: 22ch;
    font-variation-settings: "opsz" 144;
}
.page-hero h1 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.page-hero .lede {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 60ch;
}

/* ================================================================
   LEGAL PAGE pattern — shared by privacy / terms / security / gdpr.
   TOC sticky in left rail · content in right column · editorial
   section numbering. Callouts for info / good / warn variants.
   ================================================================ */
.legal-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(40px, 5vw, 80px);
    padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 9vw, 120px);
    max-width: var(--grid-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.legal-toc {
    position: sticky;
    top: 140px;
    align-self: start;
    font-size: 13px;
    line-height: 1.7;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}
.legal-toc .toc-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-3);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.legal-toc ol {
    list-style: none;
    counter-reset: toc;
}
.legal-toc li {
    counter-increment: toc;
    padding: 6px 0;
}
.legal-toc li a {
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.legal-toc li a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.04em;
    min-width: 20px;
}
.legal-toc li a:hover { color: var(--gold); }
.legal-content {
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2);
}
.legal-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--rule-2);
}
.legal-section:first-child { padding-top: 0; }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 16px;
    font-variation-settings: "opsz" 144;
}
.legal-section h2 .sec-num {
    font-family: var(--mono);
    font-weight: 400;
    color: var(--gold);
    font-size: 0.6em;
    margin-right: 8px;
    letter-spacing: 0.04em;
    font-style: normal;
}
.legal-section h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 19px;
    color: var(--ink);
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.legal-section p { margin-bottom: 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul,
.legal-section ol {
    margin: 12px 0 14px 0;
    padding-left: 0;
    list-style: none;
}
.legal-section ul li,
.legal-section ol li {
    padding: 4px 0 4px 24px;
    position: relative;
}
.legal-section ul li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--gold);
    font-size: 12px;
    top: 6px;
}
.legal-section ol { counter-reset: numlist; }
.legal-section ol li { counter-increment: numlist; }
.legal-section ol li::before {
    content: counter(numlist) '.';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    top: 6px;
}
.legal-section b,
.legal-section strong { color: var(--ink); font-weight: 700; }
.legal-section a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.legal-section a:hover { color: var(--gold-ink); }
.legal-section code {
    font-family: var(--mono);
    background: var(--paper-2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    border: 1px solid var(--rule-2);
}

/* Callout blocks inside legal sections */
.callout {
    margin: 18px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--gold);
    background: var(--paper-2);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
}
.callout b { color: var(--ink); }
.callout.info  { border-left-color: var(--data-blue); }
.callout.good  { border-left-color: #10B981; }
.callout.warn  { border-left-color: var(--red); }

.legal-meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
}

/* ================================================================
   BLOG ARTICLE pattern — shared by all 3 blog sub-posts.
   Long-form editorial article with Fraunces body leads, pullquotes,
   code blocks, and a closing author bio + prev/next nav strip.
   ================================================================ */
.article-hero {
    padding: clamp(48px, 6vw, 96px) 0 clamp(32px, 4vw, 56px);
    border-bottom: 1px solid var(--rule);
    max-width: 820px;
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.article-hero .kicker-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.article-hero .kicker-row .tag { color: var(--gold); font-weight: 700; }
.article-hero .kicker-row .meta { color: var(--ink-3); }
.article-hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 24px;
    font-variation-settings: "opsz" 144;
}
.article-hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.article-hero .subtitle {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    line-height: 1.4;
    color: var(--ink-2);
    font-weight: 400;
    max-width: 56ch;
}
.article-hero .byline {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
}
.article-hero .byline b { color: var(--ink); font-weight: 700; font-family: var(--serif); font-size: 14px; letter-spacing: -0.01em; }

.article-body {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(48px, 6vw, 80px);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink-2);
}
/* First paragraph gets the lead-paragraph treatment */
.article-body > p:first-of-type {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 28px;
}
.article-body > p:first-of-type::first-letter {
    font-family: var(--serif);
    font-weight: 500;
    font-style: italic;
    font-size: 72px;
    line-height: 0.9;
    float: left;
    color: var(--gold);
    padding: 6px 10px 0 0;
    font-variation-settings: "opsz" 144;
}
.article-body p { margin-bottom: 22px; }
.article-body p em { font-style: italic; color: var(--ink); }
.article-body p b,
.article-body p strong { color: var(--ink); font-weight: 700; }
.article-body h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 18px;
    font-variation-settings: "opsz" 144;
}
.article-body h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    color: var(--ink);
    margin-top: 28px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.article-body ul,
.article-body ol {
    margin: 18px 0 24px 0;
    padding-left: 0;
    list-style: none;
}
.article-body ul li {
    padding: 6px 0 6px 26px;
    position: relative;
}
.article-body ul li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--gold);
    top: 8px;
    font-size: 13px;
}
.article-body ol { counter-reset: num; }
.article-body ol li {
    counter-increment: num;
    padding: 6px 0 6px 32px;
    position: relative;
}
.article-body ol li::before {
    content: counter(num) '.';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--gold);
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
}
.article-body li b { color: var(--ink); font-weight: 700; }
.article-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 8px 0 8px 28px;
    margin: 32px 0;
    font-family: var(--serif);
    font-size: 26px;
    font-style: italic;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144;
}
.article-body pre {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--gold);
    padding: 18px 22px;
    margin: 20px 0;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink);
    overflow-x: auto;
    white-space: pre;
}
.article-body code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--paper-2);
    padding: 2px 6px;
    border: 1px solid var(--rule-2);
    color: var(--ink);
}
.article-body pre code { background: none; border: none; padding: 0; }
.article-body hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 48px 0;
    position: relative;
    overflow: visible;
}
.article-body hr::after {
    content: '§';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    padding: 0 16px;
    font-family: var(--serif);
    font-size: 22px;
    color: var(--gold);
}
.article-body a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.article-body a:hover { color: var(--gold-ink); }
.article-body .closing-note {
    margin-top: 48px;
    padding: 24px 26px;
    border: 1px solid var(--rule);
    background: var(--paper-2);
    font-style: italic;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-2);
}

.article-footer {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(56px, 7vw, 96px);
}
.author-bio {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    align-items: center;
    padding: 28px 32px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 32px;
}
.author-bio .avatar {
    width: 64px; height: 64px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .author-bio .avatar { background: var(--gold); color: var(--paper-3); }
.author-bio .name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.author-bio .title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 2px 0 6px;
}
.author-bio .desc {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
}
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.article-nav a {
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}
.article-nav a:hover { color: var(--gold); }

/* ================================================================
   Responsive — chrome only
   ================================================================ */
@media (max-width: 1024px) {
    .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
    .foot-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .section-hd { grid-template-columns: 1fr; gap: 20px; }
    .section-hd .meta { position: static; }
    .section-hd .desc { grid-column: 1; }
    .cta-band .wrap { grid-template-columns: 1fr; }
    .cta-band .actions { justify-content: flex-start; }
    .foot-grid { grid-template-columns: 1fr; }
    .legal-container { grid-template-columns: 1fr; gap: 24px; }
    .legal-toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
    .masthead-nav { gap: 12px; }
    .masthead-nav a.nav-link { display: none; }
    .masthead-brand img { height: 100px !important; max-height: 100px !important; }
}

/* ============================================================
   DROPDOWN MENU
   Injected by corporate-menu.js. Each .nav-group is a dropdown
   trigger + panel pair. Hover, click, or focus-within opens the
   panel; Escape or outside-click closes. Animations are scoped
   so only opacity/transform carry stagger delays — hover/focus
   background transitions stay snappy.
   ============================================================ */
.nav-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-trigger {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color 0.2s ease;
}
.nav-trigger:hover,
.nav-trigger.active,
.nav-group.open .nav-trigger {
    color: var(--gold);
}
/* Gold underline mirrors the .nav-link pattern */
.nav-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.2s ease;
}
.nav-trigger:hover::after,
.nav-trigger.active::after,
.nav-group.open .nav-trigger::after {
    width: calc(100% - 14px); /* skip the caret */
}
.nav-trigger .nav-caret {
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: currentColor;
}
.nav-group.open .nav-trigger .nav-caret {
    transform: rotate(180deg);
}

/* Panel — cream card with a gold top rule, soft editorial shadow,
   and a slide-down fade-in. */
.nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: -24px;
    min-width: 300px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 2px solid var(--gold);
    box-shadow:
        0 24px 56px rgba(0, 156, 222, 0.14),
        0 2px 8px rgba(0, 156, 222, 0.06);
    padding: 10px 0;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        opacity 0.24s ease,
        transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 0.24s;
}
[data-theme="dark"] .nav-panel {
    background: var(--paper-2);
    border-color: var(--rule-2);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.25);
}
.nav-group.open .nav-panel,
.nav-group:focus-within .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.24s ease,
        transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 0s;
}

/* Dropdown items — serif label + small sub line. Each item
   fades + slides in with a small stagger driven by --i. */
.nav-panel-item {
    display: block;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--ink);
    border-left: 2px solid transparent;
    opacity: 0;
    transform: translateX(-6px);
    /* Two transition sets so hover doesn't inherit the open-stagger
       delay. Property 1 (opacity) + 2 (transform) carry the stagger;
       3 (background) + 4 (border-color) + 5 (padding) snap on hover. */
    transition-property: opacity, transform, background, border-color, padding-left;
    transition-duration: 0.28s, 0.28s, 0.2s, 0.2s, 0.2s;
    transition-timing-function: ease, cubic-bezier(0.2, 0.8, 0.2, 1), ease, ease, ease;
    transition-delay: 0s, 0s, 0s, 0s, 0s;
}
.nav-group.open .nav-panel-item {
    opacity: 1;
    transform: translateX(0);
    /* Apply stagger delay only on opacity + transform (first two) */
    transition-delay:
        calc(60ms + var(--i, 0) * 45ms),
        calc(60ms + var(--i, 0) * 45ms),
        0s, 0s, 0s;
}
.nav-panel-item:hover,
.nav-panel-item:focus-visible {
    background: var(--paper-2);
    border-left-color: var(--gold);
    padding-left: 28px;
    outline: none;
}
[data-theme="dark"] .nav-panel-item:hover,
[data-theme="dark"] .nav-panel-item:focus-visible {
    background: var(--paper-3);
}
.nav-panel-item.active {
    border-left-color: var(--gold);
}
.nav-panel-item.active .nav-panel-item-label {
    color: var(--gold);
}

.nav-panel-item-label {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.2;
    font-variation-settings: "opsz" 144;
}
.nav-panel-item-sub {
    margin-top: 4px;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.45;
}

/* Invisible bridge between trigger and panel so the 12px gap
   doesn't close the menu when the cursor crosses it. */
.nav-group::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    pointer-events: none;
}
.nav-group.open::after,
.nav-group:hover::after {
    pointer-events: auto;
}

/* Mobile — hide dropdown triggers the same way flat nav-links hide,
   so no orphan buttons on phone widths. The hamburger button +
   slide-down drawer (below) take over navigation at this width. */
@media (max-width: 640px) {
    .nav-group { display: none; }
}

/* ============================================================
   MOBILE HAMBURGER + DRAWER
   ------------------------------------------------------------
   The dropdown-style inline nav collapses at ≤640px. In its place,
   corporate-menu.js injects:
     • .masthead-hamburger  — the toggle button (lives inside the
                              nav, CSS-shown only on small screens)
     • .masthead-drawer     — a fixed full-viewport overlay that
                              slides down from the top and lists
                              every MENU entry as a big tappable row

   The drawer mirrors the MENU spec — flat links + grouped sections
   with sub-descriptions and a footer carrying the demo CTA so
   mobile visitors never lose access to a navigation surface.
   ============================================================ */

.masthead-hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 2px;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.masthead-hamburger:hover {
    color: var(--gold);
    border-color: var(--gold);
}
.masthead-hamburger svg {
    width: 20px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

/* Slide-down drawer — full-viewport overlay. Opens under the sticky
   masthead via visibility + opacity + translateY. */
.masthead-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    color: var(--ink);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
        opacity 0.26s ease,
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 0.26s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.masthead-drawer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.26s ease,
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 0s;
}

/* Body scroll lock while drawer is open */
body.drawer-open {
    overflow: hidden;
}

.drawer-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule);
    flex-shrink: 0;
}
.drawer-topbar .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.drawer-topbar .brand img {
    height: 80px;
    width: auto;
    max-height: 80px;
}
.drawer-topbar .brand .logo-for-light { display: inline; }
.drawer-topbar .brand .logo-for-dark { display: none; }
[data-theme="dark"] .drawer-topbar .brand .logo-for-light { display: none; }
[data-theme="dark"] .drawer-topbar .brand .logo-for-dark { display: inline; }

.drawer-close {
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 2px;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.drawer-close:hover { color: var(--gold); border-color: var(--gold); }
.drawer-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

.drawer-body {
    flex: 1;
    padding: 16px 24px 32px;
}

.drawer-link {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    font-family: var(--serif);
    font-variation-settings: "opsz" 144;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: color 0.2s ease;
}
.drawer-link:hover,
.drawer-link.active {
    color: var(--gold);
}

.drawer-group {
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
}
.drawer-group-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.drawer-sub {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    font-family: var(--serif);
    font-variation-settings: "opsz" 144;
    font-weight: 500;
    font-size: 19px;
    letter-spacing: -0.015em;
    color: var(--ink);
    transition: color 0.2s ease;
}
.drawer-sub:hover,
.drawer-sub.active {
    color: var(--gold);
}
.drawer-sub-desc {
    display: block;
    font-family: var(--sans);
    font-variation-settings: normal;
    font-weight: 400;
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 2px;
    letter-spacing: 0;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    background: var(--paper-2);
}
.drawer-footer .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Reveal the hamburger at ≤640px so mobile visitors have a way
   into the navigation. */
@media (max-width: 640px) {
    .masthead-hamburger {
        display: inline-flex;
    }
}
