@layer reset, base, layout, components, utilities;

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --navy:            #0B3D91;
  --cyan:            #00C2D4;
  --ink:             #060E22;
  --ink-2:           #0B1628;
  --white:           #ffffff;
  --off-white:       #F0F6FF;
  --parchment:       #F5F3EE;
  --text:            #1A1F2E;
  --text-muted:      #5A6478;
  --text-light:      #9AA3B2;
  --surface:         #ffffff;
  --surface-elevated:#F8FBFF;
  --border:          rgba(11, 61, 145, 0.12);
  --border-dark:     rgba(0, 194, 212, 0.2);

  /* Spacing (8px base unit) */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-8:  64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* Typography Scale */
  --fs-sm:   clamp(0.8rem, 0.77rem + 0.13vw, 0.875rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-md:   clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
  --fs-lg:   clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-2xl:  clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --fs-3xl:  clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
  --fs-4xl:  clamp(3rem, 2.3rem + 3.5vw, 5rem);

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 9999px;

  /* Shadows (navy-tinted) */
  --shadow-sm: 0 1px 3px rgba(11,61,145,0.08), 0 1px 2px rgba(11,61,145,0.04);
  --shadow-md: 0 4px 16px rgba(11,61,145,0.1), 0 2px 6px rgba(11,61,145,0.06);
  --shadow-lg: 0 12px 40px rgba(11,61,145,0.14), 0 4px 12px rgba(11,61,145,0.08);
  --shadow-xl: 0 24px 80px rgba(11,61,145,0.2), 0 8px 24px rgba(11,61,145,0.1);
  --shadow-cyan: 0 8px 32px rgba(0,194,212,0.25);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-base: 280ms;
  --duration-slow: 420ms;
}

/* ============================================================
   RESET
   ============================================================ */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

  button, input, select, textarea {
    font: inherit;
  }

  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }

  ol, ul {
    list-style: none;
  }
}

/* ============================================================
   BASE
   ============================================================ */
@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Literata', Georgia, serif;
    font-optical-sizing: auto;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
  }

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

  button {
    cursor: pointer;
  }

  input, textarea {
    appearance: none;
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
@layer layout {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
  }

  .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
  }
}

/* ============================================================
   COMPONENTS
   ============================================================ */
@layer components {

  /* ----------------------------------------------------------
     SITE HEADER
     ---------------------------------------------------------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 14, 34, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    transition: box-shadow var(--duration-base) var(--ease-out);
  }

  .site-header.header--shadowed {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 clamp(1rem, 5vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
  }

  .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
  }

  .logo-img {
    height: 52px;
    width: auto;
  }

  .logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
  }

  .site-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-list a {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
    white-space: nowrap;
  }

  .nav-list a:hover {
    color: var(--cyan);
    background: rgba(0, 194, 212, 0.08);
  }

  .header-cta {
    margin-left: var(--space-2);
    flex-shrink: 0;
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--duration-base) var(--ease-out),
                opacity var(--duration-base) var(--ease-out);
  }

  /* ----------------------------------------------------------
     MOBILE NAV
     ---------------------------------------------------------- */
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 72px;
    z-index: 99;
    background: rgba(6, 14, 34, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-4);
    overflow-y: auto;
  }

  .mobile-nav[data-nav-menu] {
    display: none;
  }

  .mobile-nav[data-nav-menu].is-open {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav-list a {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
  }

  .mobile-nav-list a:hover {
    color: var(--cyan);
    background: rgba(0, 194, 212, 0.08);
  }

  .mobile-nav-cta {
    margin-top: auto;
  }

  .mobile-nav-cta .btn {
    width: 100%;
  }

  /* ----------------------------------------------------------
     BUTTONS
     ---------------------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
  }

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

  .btn:active {
    transform: scale(0.99) translateY(1px);
  }

  .btn--primary {
    background: var(--cyan);
    color: var(--ink);
    border-color: var(--cyan);
  }

  .btn--primary:hover {
    background: #00D9EC;
    border-color: #00D9EC;
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
  }

  .btn--secondary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
  }

  .btn--secondary:hover {
    background: #0e4db3;
    border-color: #0e4db3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
  }

  .btn--ghost:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
  }

  .btn--ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
  }

  .btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
  }

  /* ----------------------------------------------------------
     SECTIONS
     ---------------------------------------------------------- */
  .section {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }

  .section--dark {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  .section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      rgba(0, 194, 212, 0.015) 0px,
      transparent 1px,
      transparent 40px
    );
    pointer-events: none;
  }

  .section--parchment {
    background: var(--parchment);
  }

  .section-header {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
  }

  .section-header.centered {
    text-align: center;
  }

  .section-eyebrow {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: var(--space-2);
  }

  .section-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2);
  }

  .section--dark .section-title {
    color: var(--white);
  }

  .section-sub {
    font-size: var(--fs-md);
    color: var(--text-muted);
    max-width: 56ch;
    line-height: 1.6;
  }

  .section--dark .section-sub {
    color: rgba(255, 255, 255, 0.6);
  }

  .section-header.centered .section-sub {
    margin: 0 auto;
  }

  /* ----------------------------------------------------------
     PAGE HERO
     ---------------------------------------------------------- */
  .page-hero {
    background: var(--ink);
    padding: clamp(3rem, 8vw, 5rem) 0;
    position: relative;
    overflow: hidden;
  }

  .page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(11, 61, 145, 0.5) 0%, transparent 60%);
    pointer-events: none;
  }

  .page-hero-content {
    position: relative;
    z-index: 1;
  }

  .page-hero-title {
    font-size: var(--fs-3xl);
    color: var(--white);
    margin-bottom: var(--space-2);
  }

  .page-hero-sub {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.65);
    max-width: 52ch;
  }

  /* ----------------------------------------------------------
     BREADCRUMBS
     ---------------------------------------------------------- */
  .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-3);
    list-style: none;
    padding: 0;
  }

  .breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
  }

  .breadcrumb a:hover {
    color: var(--cyan);
  }

  .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
  }

  /* ----------------------------------------------------------
     ARTICLE GRID AND CARDS
     ---------------------------------------------------------- */
  .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--space-4);
  }

  .article-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
  }

  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  .article-card__img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
  }

  .article-card:hover .article-card__img {
    transform: scale(1.05);
  }

  .article-card__body {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .article-card__cat {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
  }

  .article-card__title {
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
  }

  .article-card__title a {
    text-decoration: none;
    color: inherit;
  }

  .article-card__title a:hover {
    color: var(--navy);
  }

  .article-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
    margin-top: auto;
  }

  .article-card__meta {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-light);
  }

  .article-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out),
                gap var(--duration-fast) var(--ease-out);
  }

  .article-card__read-more:hover {
    color: var(--cyan);
    gap: 8px;
  }

  .article-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }

  .article-card.featured .article-card__img-wrap {
    width: 45%;
    flex-shrink: 0;
    aspect-ratio: unset;
    min-height: 280px;
  }

  .article-card.featured .article-card__body {
    padding: var(--space-5);
    justify-content: center;
  }

  .article-card.featured .article-card__title {
    font-size: var(--fs-xl);
  }

  /* ----------------------------------------------------------
     LEAD MAGNET / EMAIL SIGNUP
     ---------------------------------------------------------- */
  .lead-magnet {
    background: var(--ink);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 6vw, 4rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  .lead-magnet::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 194, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  .lead-magnet__eyebrow {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: var(--space-2);
  }

  .lead-magnet__headline {
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-2);
  }

  .lead-magnet__sub {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
  }

  .lead-magnet__text {
    position: relative;
    z-index: 1;
  }

  .lead-magnet__form {
    position: relative;
    z-index: 1;
  }

  .lead-magnet__input-row {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .email-form {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .email-input {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: 'Literata', Georgia, serif;
    font-size: var(--fs-base);
    color: var(--white);
    transition: border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
  }

  .email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .email-input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 194, 212, 0.06);
  }

  .email-input.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.06);
  }

  .form-input {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: 'Literata', Georgia, serif;
    font-size: var(--fs-base);
    color: var(--white);
    transition: border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
  }

  .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .form-input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 194, 212, 0.06);
  }

  .form-input.error {
    border-color: #EF4444;
  }

  .form-legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-2);
    line-height: 1.5;
  }

  /* ----------------------------------------------------------
     GUIDE PAGE CLASSES
     ---------------------------------------------------------- */
  .guide-hero {
    background: var(--ink);
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
  }

  .guide-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at -10% 50%, rgba(11, 61, 145, 0.6) 0%, transparent 55%),
      radial-gradient(ellipse at 110% 50%, rgba(0, 194, 212, 0.15) 0%, transparent 55%);
    pointer-events: none;
  }

  .guide-hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--space-8);
    align-items: start;
    position: relative;
    z-index: 1;
  }

  .guide-hero__title {
    font-size: var(--fs-3xl);
    color: var(--white);
    margin-bottom: var(--space-3);
  }

  .guide-hero__sub {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    max-width: 50ch;
    margin-bottom: var(--space-4);
  }

  .guide-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .guide-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.8);
  }

  .guide-checklist li svg {
    flex-shrink: 0;
    margin-top: 3px;
  }

  .guide-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-xl);
  }

  .guide-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: var(--space-1);
    text-align: center;
  }

  .guide-card p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--space-3);
  }

  .guide-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .guide-form .form-input {
    background: var(--off-white);
    border: 1px solid var(--border);
    color: var(--text);
    width: 100%;
    flex: none;
    min-width: unset;
  }

  .guide-form .form-input::placeholder {
    color: var(--text-light);
  }

  .guide-form .form-input:focus {
    border-color: var(--cyan);
    background: var(--white);
  }

  .guide-form .btn {
    width: 100%;
  }

  .guide-form .form-legal {
    color: var(--text-muted);
    text-align: center;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-3);
  }

  .benefit {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
  }

  .benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(11, 61, 145, 0.08);
    border-radius: var(--radius-md);
    color: var(--navy);
  }

  .benefit__title {
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-base);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 4px;
  }

  .benefit__desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.55;
  }

  .toc-preview {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    max-width: 680px;
    margin: 0 auto;
  }

  .toc-preview ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .toc-preview ol li {
    counter-increment: toc-counter;
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: var(--fs-base);
    color: var(--text);
  }

  .toc-preview ol li::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    min-width: 28px;
    flex-shrink: 0;
  }

  .bottom-cta {
    background: var(--ink);
    padding: clamp(3rem, 8vw, 5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .bottom-cta::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 194, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  .bottom-cta h2 {
    color: var(--white);
    position: relative;
    z-index: 1;
  }

  .bottom-cta p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 48ch;
    margin: var(--space-2) auto var(--space-4);
    position: relative;
    z-index: 1;
  }

  .inline-form {
    display: flex;
    gap: var(--space-2);
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
  }

  .inline-form .form-input {
    flex: 1;
    min-width: 220px;
  }

  /* ----------------------------------------------------------
     PROSE LAYOUT (about, legal pages)
     ---------------------------------------------------------- */
  .prose-layout {
    display: grid;
    grid-template-columns: 1fr min(72ch, 100%) 1fr;
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem);
  }

  .prose-layout > * {
    grid-column: 2;
  }

  .prose {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--text);
  }

  .prose h2 {
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: clamp(2rem, 4vw, 3rem) 0 var(--space-3);
    padding-top: var(--space-3);
    border-top: 2px solid var(--border);
  }

  .prose h3 {
    font-family: 'Syne', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text);
    margin: var(--space-4) 0 var(--space-2);
  }

  .prose p {
    margin-bottom: var(--space-3);
  }

  .prose ul,
  .prose ol {
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
  }

  .prose ul {
    list-style: disc;
  }

  .prose ol {
    list-style: decimal;
  }

  .prose li {
    margin-bottom: var(--space-1);
  }

  .prose a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .prose a:hover {
    color: var(--cyan);
  }

  .prose-lead {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-5);
  }

  .prose-callout {
    background: var(--off-white);
    border-left: 4px solid var(--cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-3) var(--space-4);
    margin: var(--space-4) 0;
    font-size: var(--fs-base);
    color: var(--text);
  }

  /* ----------------------------------------------------------
     FOOTER
     ---------------------------------------------------------- */
  .site-footer {
    background: var(--ink-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
  }

  .footer-tagline {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
    margin-top: var(--space-2);
    max-width: 28ch;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
  }

  .footer-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-2);
  }

  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-links a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
  }

  .footer-links a:hover {
    color: var(--cyan);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-3) clamp(1rem, 5vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .footer-copyright {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.3);
  }

  .footer-legal {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
  }

  .footer-legal a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
  }

  .footer-legal a:hover {
    color: var(--cyan);
  }

  /* ----------------------------------------------------------
     SCROLL REVEAL ANIMATIONS
     ---------------------------------------------------------- */
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
  }

  [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-locked {
    overflow: hidden;
  }

  /* ----------------------------------------------------------
     INTERACTION STATE CLASSES
     ---------------------------------------------------------- */
  .header--shadowed {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }

  .is-open {
    display: flex;
    flex-direction: column;
  }

} /* end @layer components */

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

  .text-center {
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .lead-magnet {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .guide-hero__inner {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    flex-direction: column;
  }

  .article-card.featured .article-card__img-wrap {
    width: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead-magnet {
    padding: var(--space-5) var(--space-3);
  }

  .guide-card {
    padding: var(--space-4);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
