/* ─────────────────────────────────────────────────────────────────── */
  /* Tokens — copied from brand/brand-system.html (canonical source).    */
  /* Default values = DARK theme. Light theme overrides below.           */
  /* When tokens change in brand-system.html, update here too.           */
  /* ─────────────────────────────────────────────────────────────────── */
  :root {
    /* ── Page palette ── */
    --bg: #0a0b0e;
    --gunmetal: #0d0f12;
    --gunmetal-2: #121519;
    --platinum: #c4c9d4;
    --platinum-dim: #b3b9c4;
    --spectral: #b8c7d6;
    --brass: #d4c5a4;
    --brass-deep: #8a7355;
    --white: #f6f7f9;
    --hairline: rgba(196, 201, 212, 0.08);
    --hairline-strong: rgba(196, 201, 212, 0.16);

    /* ── Booking callout (always contrasts page — flips with theme) ── */
    --inverse-bg: #eef0f4;
    --inverse-fg: #0a0b0e;
    --inverse-fg-mid: #2e3238;
    --inverse-brass: #5c4220;
    --inverse-hairline: rgba(13, 15, 18, 0.1);
    --inverse-hairline-strong: rgba(13, 15, 18, 0.15);

    /* ── Atmospheric/gradient values (theme-dependent) ── */
    --bg-grid: rgba(196, 201, 212, 0.018);
    --bg-radial-cool: rgba(123, 143, 163, 0.06);
    --hero-glow-cool-1: rgba(184, 199, 214, 0.18);
    --hero-glow-cool-2: rgba(184, 199, 214, 0.06);
    --hero-glow-warm: rgba(212, 197, 164, 0.08);
    --page-bg: #000000;
    --top-chrome-bg: rgba(10, 11, 14, 0.85);
    --callout-warm: rgba(92, 66, 32, 0.16);
    --callout-cool: rgba(46, 50, 56, 0.13);
    --callout-grid: rgba(13, 15, 18, 0.022);

    /* ── Typography ── */
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* LIGHT THEME — auto via OS preference unless overridden to dark.     */
  /* ─────────────────────────────────────────────────────────────────── */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --bg: #eef0f4;
      --gunmetal: #f4f6f8;
      --gunmetal-2: #ffffff;
      --platinum: #0a0b0e;
      --platinum-dim: #2e3238;
      --spectral: #4a5a6a;
      --brass: #5c4220;
      --brass-deep: #3a2c18;
      --white: #0a0b0e;
      --hairline: rgba(13, 15, 18, 0.08);
      --hairline-strong: rgba(13, 15, 18, 0.15);

      /* Callout flips DARK when page is light */
      --inverse-bg: #0a0b0e;
      --inverse-fg: #c4c9d4;
      --inverse-fg-mid: #b3b9c4;
      --inverse-brass: #d4c5a4;
      --inverse-hairline: rgba(196, 201, 212, 0.08);
      --inverse-hairline-strong: rgba(196, 201, 212, 0.16);

      --bg-grid: rgba(13, 15, 18, 0.012);
      --bg-radial-cool: rgba(70, 90, 110, 0.04);
      --hero-glow-cool-1: rgba(248, 252, 255, 0.55);
      --hero-glow-cool-2: rgba(248, 252, 255, 0.22);
      --hero-glow-warm: rgba(212, 197, 164, 0.10);
      --page-bg: #f8fbff;
      --top-chrome-bg: rgba(238, 240, 244, 0.85);
      --callout-warm: rgba(212, 197, 164, 0.10);
      --callout-cool: rgba(184, 199, 214, 0.08);
      --callout-grid: rgba(196, 201, 212, 0.012);
    }
  }

  /* Forced LIGHT theme — applies regardless of OS preference */
  :root[data-theme="light"] {
    --bg: #eef0f4;
    --gunmetal: #f4f6f8;
    --gunmetal-2: #ffffff;
    --platinum: #0a0b0e;
    --platinum-dim: #2e3238;
    --spectral: #4a5a6a;
    --brass: #5c4220;
    --brass-deep: #3a2c18;
    --white: #0a0b0e;
    --hairline: rgba(13, 15, 18, 0.08);
    --hairline-strong: rgba(13, 15, 18, 0.15);

    --inverse-bg: #0a0b0e;
    --inverse-fg: #c4c9d4;
    --inverse-fg-mid: #b3b9c4;
    --inverse-brass: #d4c5a4;
    --inverse-hairline: rgba(196, 201, 212, 0.08);
    --inverse-hairline-strong: rgba(196, 201, 212, 0.16);

    --bg-grid: rgba(13, 15, 18, 0.012);
    --bg-radial-cool: rgba(70, 90, 110, 0.04);
    --hero-glow-cool-1: rgba(248, 252, 255, 0.55);
    --hero-glow-cool-2: rgba(248, 252, 255, 0.22);
    --hero-glow-warm: rgba(212, 197, 164, 0.10);
    --page-bg: #f8fbff;
    --top-chrome-bg: rgba(238, 240, 244, 0.85);
    --callout-warm: rgba(212, 197, 164, 0.10);
    --callout-cool: rgba(184, 199, 214, 0.08);
    --callout-grid: rgba(196, 201, 212, 0.012);
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Mark display swap — show the mark variant matching the active theme */
  /* ─────────────────────────────────────────────────────────────────── */
  .mark-light { display: none; }

  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .mark-dark { display: none; }
    :root:not([data-theme="dark"]) .mark-light { display: block; }
  }

  :root[data-theme="light"] .mark-dark { display: none; }
  :root[data-theme="light"] .mark-light { display: block; }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Reset + base                                                         */
  /* ─────────────────────────────────────────────────────────────────── */
  * { box-sizing: border-box; margin: 0; padding: 0; }

  html {
    background: var(--page-bg);
    scroll-behavior: smooth;
  }

  body {
    position: relative;
    min-height: 100vh;
    color: var(--platinum);
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 18, "wght" 300;
    line-height: 1.55;
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

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

  main {
    background: var(--page-bg);
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Layout primitives                                                    */
  /* ─────────────────────────────────────────────────────────────────── */
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    /* sides-only padding — vertical padding handled by parent <section> */
    padding-left: 32px;
    padding-right: 32px;
    position: relative;
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Sticky top chrome                                                    */
  /* ─────────────────────────────────────────────────────────────────── */
  .top-chrome {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--top-chrome-bg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
  }

  .top-chrome-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .top-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .top-lockup svg {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
  }

  .top-lockup .label {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--platinum);
  }

  .top-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--brass);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 6px;
    transition: background 0.25s ease;
  }

  .top-cta:hover {
    background: var(--white);
  }

  .top-cta .arrow {
    display: inline-block;
    transition: transform 0.25s ease;
  }

  .top-cta:hover .arrow {
    transform: translateX(3px);
  }

  /* Right-side actions (theme toggle + CTA) */
  .top-chrome-actions {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  /* Top-level page link (e.g. Work) */
  .top-link {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--platinum-dim);
    text-decoration: none;
    transition: color 0.25s ease;
  }
  .top-link:hover { color: var(--brass); }

  /* Theme toggle button — sun in dark mode, moon in light mode */
  .theme-toggle {
    background: transparent;
    border: 1px solid var(--hairline-strong);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--platinum);
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: border-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
  }

  .theme-toggle:hover {
    border-color: var(--brass);
    color: var(--brass);
  }

  .theme-toggle:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
  }

  /* Show sun in dark mode (click to go light), moon in light mode (click to go dark) */
  .theme-toggle .theme-icon-moon { display: none; }

  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .theme-icon-sun { display: none; }
    :root:not([data-theme="dark"]) .theme-toggle .theme-icon-moon { display: inline; }
  }

  :root[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
  :root[data-theme="light"] .theme-toggle .theme-icon-moon { display: inline; }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Section header pattern (eyebrow + rule + title)                      */
  /* ─────────────────────────────────────────────────────────────────── */
  .section-head {
    grid-column: 2 / span 10;
    margin-bottom: 64px;
  }

  .section-head .eye {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--brass);
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
  }

  .section-head .eye::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hairline-strong);
  }

  .section-head .title {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 52, "wght" 300;
    font-size: 52px;
    line-height: 1.1;
    color: var(--platinum);
    letter-spacing: -0.015em;
  }

  .section-head .lede {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 22, "wght" 300;
    font-size: 22px;
    line-height: 1.45;
    color: var(--platinum-dim);
    margin-top: 24px;
    max-width: 780px;
  }

  section {
    padding: 160px 0 120px;
    border-top: none;
  }

  section:first-of-type { border-top: none; padding-top: 120px; }

  #methodology {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  #what-we-do {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  #experience {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  #book-a-call {
    padding-top: 56px;
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Hero                                                                 */
  /* ─────────────────────────────────────────────────────────────────── */
  .hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 32px 140px;
    position: relative;
    border-top: none;
    background:
      radial-gradient(ellipse 75% 55% at 50% 42%, var(--hero-glow-cool-1), transparent 65%),
      radial-gradient(ellipse 60% 40% at 50% 50%, var(--hero-glow-warm), transparent 70%);
    overflow: hidden;
    isolation: isolate;
  }

  /* Hero background video — full-bleed, replaces the ambient ghost/dust animation */
  .hero .ambient-layer,
  .hero .hero-clouds { display: none; }

  .hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #0a0b0e url("media/hero-poster.webp") center 38% / cover no-repeat;
  }
  .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    display: block;
  }
  .hero-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, var(--bg) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 60%, var(--bg) 99%),
      linear-gradient(to right, var(--bg), rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, var(--bg));
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-video video { display: none; }
  }

  /* Whole hero is a click target to the film. Transparent anchor above the video
     (z-index 1) but below the lockup (z-index 2); the lockup is made click-through
     so clicks over the wordmark still reach the link. Nav lives in .lede, untouched. */
  .hero-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
    text-decoration: none;
    cursor: pointer;
  }
  .hero .lockup { pointer-events: none; }
  .hero-link-hint {
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--platinum-dim);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
  }
  .hero-link:hover .hero-link-hint,
  .hero-link:focus-visible .hero-link-hint {
    opacity: 0.9;
    transform: translateY(0);
  }

  /* Lede strip below the video hero: tagline + nav on solid ground for legibility.
     Reuses .hero descendant styles via the shared class, overriding the section chrome. */
  .lede {
    min-height: 0 !important;
    padding: 60px 32px 80px !important;
    background: var(--bg) !important;
    overflow: visible;
  }
  .lede .toc {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    margin-top: 8px;
  }

  /* From-the-blog callout, sits directly under the hero/lede */
  .post-callout {
    background: var(--bg);
    padding: 36px 32px 44px;
    display: flex;
    justify-content: center;
  }
  .post-callout-card {
    display: block;
    width: 100%;
    max-width: 880px;
    padding: 30px 36px;
    background: var(--gunmetal);
    border: 1px solid var(--hairline-strong);
    border-left: 3px solid var(--brass);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease;
  }
  .post-callout-card:hover { border-color: var(--brass); background: var(--gunmetal-2); }
  .post-callout-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
  .pc-eye {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 10px;
  }
  .pc-title {
    display: block;
    font-family: var(--sans);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--platinum);
  }
  .pc-dek {
    display: block;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.45;
    color: var(--platinum-dim);
    margin-top: 8px;
  }
  .pc-cta {
    display: inline-block;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--brass);
    margin-top: 16px;
  }
  @media (max-width: 900px) {
    .post-callout { padding: 28px 24px 32px; }
    .post-callout-card { padding: 24px 22px; }
    .pc-title { font-size: 21px; }
    .pc-dek { font-size: 16px; }
  }

  /* Drop the mark + wordmark down onto the table. Viewport-scaled so it works
     at every width (caps near the 300px that looked right on desktop). */
  .hero .lockup { transform: translateY(clamp(150px, 32vh, 300px)); }

  /* Light-mode hero: layered halo — broad brass aura on the outside,
     focused spectral glow in the center behind the wordmark. */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .hero {
      background:
        radial-gradient(ellipse 60% 45% at 50% 42%, var(--hero-glow-cool-1), transparent 72%),
        radial-gradient(ellipse 95% 75% at 50% 55%, var(--hero-glow-warm), transparent 65%);
    }
  }
  :root[data-theme="light"] .hero {
    background:
      radial-gradient(ellipse 60% 45% at 50% 42%, var(--hero-glow-cool-1), transparent 72%),
      radial-gradient(ellipse 95% 75% at 50% 55%, var(--hero-glow-warm), transparent 65%);
  }

  .hero-clouds {
    --collider-x: 50%;
    --collider-y: 42%;
    --collider-core: 124px;
    --collider-feather: 214px;
    --cloud-cool: var(--spectral);
    --cloud-warm: var(--brass);
    --cloud-mid: var(--platinum-dim);
    --cloud-shadow: var(--spectral);
    position: absolute;
    inset: -16% -10% 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: saturate(168%) contrast(118%);
    -webkit-mask-image:
      radial-gradient(
        circle at var(--collider-x) var(--collider-y),
        transparent 0 var(--collider-core),
        rgba(0, 0, 0, 0.28) calc(var(--collider-core) + 28px),
        #000 var(--collider-feather)
      );
    mask-image:
      radial-gradient(
        circle at var(--collider-x) var(--collider-y),
        transparent 0 var(--collider-core),
        rgba(0, 0, 0, 0.28) calc(var(--collider-core) + 28px),
        #000 var(--collider-feather)
      );
  }

  .hero-clouds::before,
  .hero-clouds::after {
    content: '';
    position: absolute;
    pointer-events: none;
  }

  .hero-clouds::before {
    inset: 8% 12% 28%;
    background:
      radial-gradient(ellipse 28% 20% at 30% 34%, color-mix(in srgb, var(--cloud-cool) 64%, transparent), transparent 68%),
      radial-gradient(ellipse 26% 18% at 68% 36%, color-mix(in srgb, var(--cloud-warm) 52%, transparent), transparent 70%),
      radial-gradient(ellipse 30% 20% at 48% 58%, color-mix(in srgb, var(--cloud-mid) 48%, transparent), transparent 72%),
      radial-gradient(ellipse 22% 16% at 62% 58%, color-mix(in srgb, var(--cloud-shadow) 36%, transparent), transparent 72%);
    filter: blur(12px);
    mix-blend-mode: screen;
    opacity: 0.12;
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
    animation: cloud-field-roil 36s linear infinite;
    will-change: transform, background-position;
  }

  .hero-clouds::after {
    inset: 6% 8% 10%;
    background:
      radial-gradient(ellipse 28% 22% at 50% 40%, rgba(10, 11, 14, 0.02), transparent 68%),
      radial-gradient(circle 190px at 50% 40%, rgba(10, 11, 14, 0.68), transparent 76%),
      linear-gradient(to bottom, transparent 0%, transparent 48%, rgba(10, 11, 14, 0.58) 68%, var(--bg) 100%),
      radial-gradient(ellipse 90% 68% at 50% 42%, transparent 50%, var(--bg) 98%);
  }

  .hero-cloud {
    --cloud-x: 50%;
    --cloud-y: 50%;
    --cloud-w: 240px;
    --cloud-h: 160px;
    --cloud-rotate: 0deg;
    --cloud-drift-x: 24px;
    --cloud-drift-y: -18px;
    --cloud-sweep-x: 48px;
    --cloud-sweep-y: 72px;
    --cloud-bump-x: 0px;
    --cloud-bump-y: 0px;
    position: absolute;
    left: var(--cloud-x);
    top: var(--cloud-y);
    width: min(calc(var(--cloud-w) * 1.32), 94vw);
    height: min(calc(var(--cloud-h) * 1.32), 68vw);
    border-radius: 52% 48% 58% 42% / 44% 54% 46% 56%;
    background:
      radial-gradient(ellipse 58% 52% at 34% 38%, color-mix(in srgb, var(--cloud-cool) 88%, transparent), transparent 68%),
      radial-gradient(ellipse 52% 48% at 68% 58%, color-mix(in srgb, var(--cloud-warm) 72%, transparent), transparent 70%),
      radial-gradient(ellipse 66% 58% at 48% 66%, color-mix(in srgb, var(--cloud-mid) 72%, transparent), transparent 74%);
    filter: blur(16px);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%) rotate(var(--cloud-rotate)) scale(1);
    opacity: 0.40;
    animation: cloud-roll 32s linear infinite;
    will-change: border-radius, transform;
  }

  .hero-cloud:nth-child(1) {
    --cloud-x: 28%;
    --cloud-y: 34%;
    --cloud-w: 310px;
    --cloud-h: 190px;
    --cloud-rotate: -8deg;
    --cloud-drift-x: 46px;
    --cloud-drift-y: -22px;
    --cloud-sweep-x: -120px;
    --cloud-sweep-y: 130px;
    --cloud-bump-x: -28px;
    --cloud-bump-y: 18px;
    opacity: 0.48;
  }

  .hero-cloud:nth-child(2) {
    --cloud-x: 72%;
    --cloud-y: 38%;
    --cloud-w: 290px;
    --cloud-h: 220px;
    --cloud-rotate: 12deg;
    --cloud-drift-x: -44px;
    --cloud-drift-y: 26px;
    --cloud-sweep-x: 118px;
    --cloud-sweep-y: -116px;
    --cloud-bump-x: 26px;
    --cloud-bump-y: 16px;
    opacity: 0.38;
    animation-duration: 28s;
    animation-delay: -6s;
  }

  .hero-cloud:nth-child(3) {
    --cloud-x: 50%;
    --cloud-y: 23%;
    --cloud-w: 260px;
    --cloud-h: 140px;
    --cloud-rotate: 4deg;
    --cloud-drift-x: 36px;
    --cloud-drift-y: -18px;
    --cloud-sweep-x: -52px;
    --cloud-sweep-y: 128px;
    --cloud-bump-x: 0px;
    --cloud-bump-y: -26px;
    opacity: 0.30;
    animation-duration: 32s;
    animation-delay: -12s;
  }

  .hero-cloud:nth-child(4) {
    --cloud-x: 60%;
    --cloud-y: 62%;
    --cloud-w: 330px;
    --cloud-h: 140px;
    --cloud-rotate: -2deg;
    --cloud-drift-x: -38px;
    --cloud-drift-y: 20px;
    --cloud-sweep-x: 76px;
    --cloud-sweep-y: -142px;
    --cloud-bump-x: 0px;
    --cloud-bump-y: 28px;
    opacity: 0.26;
    animation-duration: 34s;
    animation-delay: -17s;
  }

  .hero-cloud:nth-child(5) {
    --cloud-x: 38%;
    --cloud-y: 50%;
    --cloud-w: 220px;
    --cloud-h: 200px;
    --cloud-rotate: 18deg;
    --cloud-drift-x: 28px;
    --cloud-drift-y: 36px;
    --cloud-sweep-x: -102px;
    --cloud-sweep-y: -96px;
    --cloud-bump-x: -24px;
    --cloud-bump-y: 8px;
    opacity: 0.32;
    animation-duration: 22s;
    animation-delay: -4s;
  }

  .hero-cloud:nth-child(6) {
    --cloud-x: 62%;
    --cloud-y: 30%;
    --cloud-w: 210px;
    --cloud-h: 180px;
    --cloud-rotate: -18deg;
    --cloud-drift-x: -30px;
    --cloud-drift-y: -30px;
    --cloud-sweep-x: 96px;
    --cloud-sweep-y: 120px;
    --cloud-bump-x: 24px;
    --cloud-bump-y: -12px;
    opacity: 0.28;
    animation-duration: 26s;
    animation-delay: -10s;
  }

  .hero-cloud:nth-child(7) {
    --cloud-x: 45%;
    --cloud-y: 59%;
    --cloud-w: 270px;
    --cloud-h: 120px;
    --cloud-rotate: 8deg;
    --cloud-drift-x: 34px;
    --cloud-drift-y: 16px;
    --cloud-sweep-x: -76px;
    --cloud-sweep-y: -134px;
    --cloud-bump-x: -14px;
    --cloud-bump-y: 24px;
    opacity: 0.24;
    animation-duration: 30s;
    animation-delay: -14s;
  }

  .hero-cloud:nth-child(8) {
    --cloud-x: 54%;
    --cloud-y: 48%;
    --cloud-w: 210px;
    --cloud-h: 130px;
    --cloud-rotate: -10deg;
    --cloud-drift-x: -36px;
    --cloud-drift-y: 34px;
    --cloud-sweep-x: 84px;
    --cloud-sweep-y: -108px;
    --cloud-bump-x: 18px;
    --cloud-bump-y: 22px;
    opacity: 0.26;
    animation-duration: 27s;
    animation-delay: -8s;
  }

  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .hero-clouds {
      --cloud-cool: #d4c5a4;
      --cloud-warm: #8f82d8;
      --cloud-mid: color-mix(in srgb, #8f82d8 44%, #d4c5a4 56%);
      --cloud-shadow: color-mix(in srgb, #8f82d8 60%, #d4c5a4 40%);
      filter: saturate(132%) contrast(110%);
    }

    :root:not([data-theme="dark"]) .hero-cloud {
      mix-blend-mode: multiply;
      opacity: 0.32;
      filter: blur(16px) saturate(110%);
    }

    :root:not([data-theme="dark"]) .hero-clouds::before {
      mix-blend-mode: multiply;
      opacity: 0.10;
      filter: blur(16px) saturate(104%);
    }

    :root:not([data-theme="dark"]) .hero-clouds::after {
      background:
        radial-gradient(ellipse 28% 22% at 50% 40%, rgba(238, 240, 244, 0.02), transparent 68%),
        radial-gradient(circle 190px at 50% 40%, rgba(238, 240, 244, 0.64), transparent 76%),
        linear-gradient(to bottom, transparent 0%, transparent 48%, rgba(238, 240, 244, 0.58) 68%, var(--bg) 100%),
        radial-gradient(ellipse 90% 68% at 50% 42%, transparent 50%, var(--bg) 98%);
    }
  }

  :root[data-theme="light"] .hero-clouds {
    --cloud-cool: #d4c5a4;
    --cloud-warm: #8f82d8;
    --cloud-mid: color-mix(in srgb, #8f82d8 44%, #d4c5a4 56%);
    --cloud-shadow: color-mix(in srgb, #8f82d8 60%, #d4c5a4 40%);
    filter: saturate(132%) contrast(110%);
  }

  :root[data-theme="light"] .hero-cloud {
    mix-blend-mode: multiply;
    opacity: 0.32;
    filter: blur(16px) saturate(110%);
  }

  :root[data-theme="light"] .hero-clouds::before {
    mix-blend-mode: multiply;
    opacity: 0.10;
    filter: blur(16px) saturate(104%);
  }

  :root[data-theme="light"] .hero-clouds::after {
    background:
      radial-gradient(ellipse 28% 22% at 50% 40%, rgba(238, 240, 244, 0.02), transparent 68%),
      radial-gradient(circle 190px at 50% 40%, rgba(238, 240, 244, 0.64), transparent 76%),
      linear-gradient(to bottom, transparent 0%, transparent 48%, rgba(238, 240, 244, 0.58) 68%, var(--bg) 100%),
      radial-gradient(ellipse 90% 68% at 50% 42%, transparent 50%, var(--bg) 98%);
  }

  .hero .lockup,
  .hero .tagline,
  .hero .rule,
  .hero .toc {
    position: relative;
    z-index: 2;
  }

  .hero .lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 56px;
  }

  .hero .lockup::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bg) 0 38%, color-mix(in srgb, var(--bg) 82%, transparent) 54%, transparent 74%);
    transform: translateX(-50%);
    z-index: -1;
    opacity: 0.54;
    pointer-events: none;
  }

  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .hero .lockup::before {
      opacity: 0;
    }
  }

  :root[data-theme="light"] .hero .lockup::before {
    opacity: 0;
  }

  .hero .lockup svg {
    width: 200px;
    height: 200px;
    transform-origin: center;
    animation: hero-float 5.8s ease-in-out infinite;
    will-change: transform;
  }

  .hero .lockup .wordmark {
    text-align: center;
    line-height: 1;
  }

  .hero .lockup .wordmark .primary {
    display: block;
    font-family: var(--mono);
    font-size: 56px;
    font-weight: 500;
    letter-spacing: 0.22em;
    word-spacing: -0.35em;
    text-transform: uppercase;
    color: var(--platinum);
    margin-bottom: 10px;
  }

  .hero .lockup .wordmark .secondary {
    display: block;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.40em;
    text-transform: uppercase;
    color: var(--platinum-dim);
  }

  .hero .tagline {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 32, "wght" 300;
    font-size: 32px;
    line-height: 1.35;
    color: var(--platinum);
    text-align: center;
    margin-bottom: 32px;
    max-width: 720px;
  }

  .hero .rule {
    display: none;
  }

  /* Hero-bottom mini-nav (table of contents) — entry-point picker */
  .hero .toc {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero .toc .chev {
    font-size: 18px;
    color: var(--brass);
    line-height: 1;
    animation: scroll-pulse 2.4s ease-in-out infinite;
  }

  .hero .toc .toc-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero .toc a {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--brass);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
  }

  .hero .toc a:hover {
    color: var(--white);
    border-bottom-color: var(--brass);
  }

  .hero .toc .sep {
    color: var(--brass-deep);
    opacity: 0.5;
    font-family: var(--mono);
    font-size: 12px;
  }

  @keyframes hero-float {
    0%   { transform: translateY(0) rotate(-0.6deg); }
    25%  { transform: translateY(-7px) rotate(0.4deg); }
    50%  { transform: translateY(-12px) rotate(0.8deg); }
    75%  { transform: translateY(-6px) rotate(-0.3deg); }
    100% { transform: translateY(0) rotate(-0.6deg); }
  }

  @keyframes cloud-roll {
    0% {
      border-radius: 52% 48% 58% 42% / 44% 54% 46% 56%;
      transform: translate(
        calc(-50% + var(--cloud-drift-x)),
        calc(-50% + var(--cloud-bump-y))
      ) rotate(var(--cloud-rotate)) scale(1);
    }
    12.5% {
      border-radius: 46% 54% 52% 48% / 56% 42% 58% 44%;
      transform: translate(
        calc(-50% + var(--cloud-sweep-x)),
        calc(-50% + var(--cloud-drift-y))
      ) rotate(calc(var(--cloud-rotate) + 45deg)) scale(1.05);
    }
    25% {
      border-radius: 38% 62% 46% 54% / 62% 34% 66% 38%;
      transform: translate(
        calc(-50% + var(--cloud-sweep-x)),
        calc(-50% + var(--cloud-sweep-y))
      ) rotate(calc(var(--cloud-rotate) + 90deg)) scale(1.1);
    }
    37.5% {
      border-radius: 54% 46% 42% 58% / 48% 64% 36% 52%;
      transform: translate(
        calc(-50% + var(--cloud-bump-x)),
        calc(-50% + var(--cloud-sweep-y))
      ) rotate(calc(var(--cloud-rotate) + 135deg)) scale(1.14);
    }
    50% {
      border-radius: 72% 28% 58% 42% / 38% 72% 28% 62%;
      transform: translate(
        calc(-50% + var(--cloud-bump-x)),
        calc(-50% + var(--cloud-bump-y))
      ) rotate(calc(var(--cloud-rotate) + 180deg)) scale(1.16);
    }
    62.5% {
      border-radius: 64% 36% 52% 48% / 42% 58% 44% 56%;
      transform: translate(
        calc(-50% - var(--cloud-drift-x)),
        calc(-50% + var(--cloud-bump-y))
      ) rotate(calc(var(--cloud-rotate) + 225deg)) scale(1.12);
    }
    75% {
      border-radius: 44% 56% 36% 64% / 58% 42% 62% 38%;
      transform: translate(
        calc(-50% - var(--cloud-sweep-x)),
        calc(-50% - var(--cloud-sweep-y))
      ) rotate(calc(var(--cloud-rotate) + 270deg)) scale(1.06);
    }
    87.5% {
      border-radius: 50% 50% 62% 38% / 46% 52% 48% 54%;
      transform: translate(
        calc(-50% - var(--cloud-drift-x)),
        calc(-50% - var(--cloud-drift-y))
      ) rotate(calc(var(--cloud-rotate) + 315deg)) scale(1.02);
    }
    100% {
      border-radius: 52% 48% 58% 42% / 44% 54% 46% 56%;
      transform: translate(
        calc(-50% + var(--cloud-drift-x)),
        calc(-50% + var(--cloud-bump-y))
      ) rotate(calc(var(--cloud-rotate) + 360deg)) scale(1);
    }
  }

  @keyframes cloud-field-roil {
    0% {
      background-position: 0 0, 0 0, 0 0, 0 0;
      transform: translate3d(-1%, 0, 0) rotate(-2deg) scale(1.08);
    }
    25% {
      background-position: 22px -16px, -18px 12px, 14px 24px, -10px -12px;
      transform: translate3d(1%, -1%, 0) rotate(1.5deg) scale(1.12);
    }
    50% {
      background-position: 44px -32px, -36px 24px, 28px 48px, -20px -24px;
      transform: translate3d(2%, -2%, 0) rotate(4deg) scale(1.16);
    }
    75% {
      background-position: 22px -16px, -18px 12px, 14px 24px, -10px -12px;
      transform: translate3d(1%, -1%, 0) rotate(1.5deg) scale(1.12);
    }
    100% {
      background-position: 0 0, 0 0, 0 0, 0 0;
      transform: translate3d(-1%, 0, 0) rotate(-2deg) scale(1.08);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero .lockup svg,
    .hero-cloud,
    .hero-clouds::before {
      animation: none;
    }
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Section 01 — Methodology                                             */
  /* ─────────────────────────────────────────────────────────────────── */
  .principle {
    grid-column: 2 / span 10;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 24px;
    padding: 56px 0;
    border-top: 1px solid var(--hairline);
  }

  .principle:first-of-type { border-top: none; padding-top: 0; }

  .principle .num-col {
    grid-column: 1 / span 4;
  }

  .principle .num {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 96, "wght" 300;
    font-size: 96px;
    line-height: 1;
    color: var(--brass);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  .principle .num-eye {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--brass);
  }

  .principle .body-col {
    grid-column: 5 / span 6;
  }

  .principle .body-col h3 {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 40, "wght" 300;
    font-size: 40px;
    line-height: 1.2;
    color: var(--platinum);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
  }

  .principle .body-col p {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 22, "wght" 300;
    font-size: 22px;
    line-height: 1.55;
    color: var(--platinum-dim);
    max-width: 560px;
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Section 02 — What we do                                              */
  /* ─────────────────────────────────────────────────────────────────── */
  .services {
    grid-column: 2 / span 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
  }

  .service .cat {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 16px;
  }

  .service .div {
    width: 48px;
    height: 1px;
    background: var(--brass);
    opacity: 0.5;
    margin-bottom: 24px;
  }

  .service .what {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 19, "wght" 300;
    font-size: 19px;
    line-height: 1.55;
    color: var(--platinum);
    margin-bottom: 24px;
  }

  .service .tags {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--brass-deep);
    line-height: 1.7;
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Section 03 — Experience                                              */
  /* ─────────────────────────────────────────────────────────────────── */
  .experience {
    grid-column: 2 / span 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
  }

  .experience::before {
    display: none;
  }

  .exp-col .cat {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 16px;
  }

  .exp-col .div {
    width: 48px;
    height: 1px;
    background: var(--brass);
    opacity: 0.5;
    margin-bottom: 32px;
  }

  .exp-col p {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 19, "wght" 300;
    font-size: 19px;
    line-height: 1.55;
    color: var(--platinum-dim);
    margin-bottom: 32px;
    max-width: 480px;
  }

  .exp-col p:last-child { margin-bottom: 0; }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Section 04 — Work with us                                            */
  /* ─────────────────────────────────────────────────────────────────── */
  .book {
    grid-column: 2 / span 10;
    text-align: center;
  }

  .book .intro {
    max-width: 720px;
    margin: 0 auto 48px;
  }

  .book .intro p {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 22, "wght" 300;
    font-size: 22px;
    line-height: 1.55;
    color: var(--platinum);
    margin-bottom: 16px;
  }

  .book .intro p:last-child { margin-bottom: 0; }

  .book .calendly-frame {
    background: var(--gunmetal);
    border: 1px solid var(--hairline-strong);
    border-radius: 6px;
    padding: 16px;
    min-height: 720px;
    margin-bottom: 32px;
  }

  .calendly-inline-widget {
    min-width: 320px;
    height: 700px;
  }

  /* Placeholder card — used while Calendly URL is unset.
     Styled as the brand's inverse callout: light surface, layered radial
     ambience (warm + cool washes), brass corner brackets, dark text.
     Gradient values copied exactly from brand-system.html .inverse-callout. */
  .book .calendly-placeholder {
    position: relative;
    background:
      radial-gradient(ellipse 120% 100% at 10% 90%, var(--callout-warm), transparent 72%),
      radial-gradient(ellipse 60% 50% at 88% 22%, var(--callout-cool), transparent 65%),
      linear-gradient(var(--callout-grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--callout-grid) 1px, transparent 1px),
      var(--inverse-bg);
    background-size: auto, auto, 40px 40px, 40px 40px, auto;
    border: 1px solid var(--inverse-hairline-strong);
    border-radius: 6px;
    padding: 96px 80px;
    margin-bottom: 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    overflow: hidden;
  }

  /* Corner brackets — match brand-system.html .inverse-callout .corner exactly:
     14×14 L-shapes formed by 1px brass borders on two adjacent sides. */
  .book .calendly-placeholder .corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--inverse-brass);
    pointer-events: none;
  }
  .book .calendly-placeholder .corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
  .book .calendly-placeholder .corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
  .book .calendly-placeholder .corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
  .book .calendly-placeholder .corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

  .book .calendly-placeholder .placeholder-eye {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--inverse-brass);
    margin-bottom: 24px;
    position: relative;
  }

  .book .calendly-placeholder .placeholder-headline {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 32, "wght" 300;
    font-size: 32px;
    line-height: 1.25;
    color: var(--inverse-fg);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    position: relative;
  }

  .book .calendly-placeholder .placeholder-body {
    font-family: var(--sans);
    font-weight: 300;
    font-variation-settings: "opsz" 19, "wght" 300;
    font-size: 19px;
    line-height: 1.55;
    color: var(--inverse-fg-mid);
    position: relative;
  }

  .book .fallback {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.10em;
    color: var(--platinum-dim);
  }

  .book .fallback a {
    color: var(--brass);
    border-bottom: 1px solid var(--brass);
    padding-bottom: 1px;
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Footer                                                               */
  /* ─────────────────────────────────────────────────────────────────── */
  footer {
    padding: 64px 0 48px;
    border-top: 1px solid var(--hairline);
  }

  .footer-grid {
    grid-column: 2 / span 10;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 48px;
  }

  .footer-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer-lockup svg {
    width: 37px;
    height: 37px;
  }

  .footer-lockup .label {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--platinum-dim);
  }

  .footer-domains,
  .footer-contact {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--platinum-dim);
    line-height: 2;
  }

  .footer-domains a,
  .footer-contact a {
    color: var(--platinum-dim);
    transition: color 0.25s ease;
  }

  .footer-domains a:hover,
  .footer-contact a:hover {
    color: var(--brass);
  }

  .footer-rule {
    grid-column: 2 / span 10;
    height: 1px;
    background: var(--hairline-strong);
    margin-bottom: 24px;
  }

  .footer-attr {
    grid-column: 2 / span 10;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--brass-deep);
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Animations                                                           */
  /* ─────────────────────────────────────────────────────────────────── */
  /* Position-only pulse — no opacity (would dim brass text below AAA contrast).
     Applied to the chevron only (nested inside .toc which is centered absolutely). */
  @keyframes scroll-pulse {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
  }

  /* ─────────────────────────────────────────────────────────────────── */
  /* Mobile (single breakpoint, mirrors brand-system.html)                */
  /* ─────────────────────────────────────────────────────────────────── */
  @media (max-width: 900px) {
    .container, .grid {
      padding: 0 24px;
    }

    .top-chrome-inner {
      padding: 14px 20px;
      gap: 16px;
    }

    .top-lockup .label { display: none; }

    .top-cta {
      padding: 12px 20px;
      font-size: 12px;
    }

    .hero {
      min-height: 82vh;
      padding: 100px 24px;
    }

    .ambient-layer {
      inset: 0;
      height: auto;
      max-height: none;
    }

    .hero .lockup svg { width: 140px; height: 140px; }
    .hero .lockup .wordmark .primary { font-size: 36px; }
    .hero .lockup .wordmark .secondary { font-size: 14px; }
    .hero .tagline { font-size: 22px; }

    /* Smaller drop on mobile: the hero is only 82vh here, so the desktop drop
       (up to 300px / 32vh) pushes the wordmark into the lede and clips STUDIO.
       Keep it on the table but fully inside the hero. */
    .hero .lockup { transform: translateY(clamp(56px, 14vh, 130px)); }

    /* Mobile: TOC stacks vertically and shows just the section names without separators */
    .hero .toc {
      position: static;
      transform: none;
      margin-top: 48px;
      gap: 14px;
    }
    .hero .toc .chev { display: none; }
    .hero .toc .toc-row {
      flex-direction: column;
      gap: 12px;
    }
    .hero .toc .sep { display: none; }
    .hero .toc a { font-size: 11px; }

    section { padding: 120px 0 80px; }
    section:first-of-type { padding-top: 80px; }
    #methodology { padding-top: 10px; padding-bottom: 28px; }
    #what-we-do { padding-top: 36px; padding-bottom: 28px; }
    #experience { padding-top: 40px; padding-bottom: 28px; }
    #book-a-call { padding-top: 40px; }

    .section-head { grid-column: 1 / -1; margin-bottom: 48px; }
    .section-head .title { font-size: 36px; }
    .section-head .lede { font-size: 18px; }

    .principle {
      grid-column: 1 / -1;
      grid-template-columns: 1fr;
      padding: 40px 0;
    }

    .principle .num-col,
    .principle .body-col {
      grid-column: 1;
    }

    .principle .num { font-size: 64px; margin-bottom: 8px; }
    .principle .body-col h3 { font-size: 28px; }
    .principle .body-col p { font-size: 18px; }

    .services {
      grid-column: 1 / -1;
      grid-template-columns: 1fr;
      gap: 48px;
    }

    .experience {
      grid-column: 1 / -1;
      grid-template-columns: 1fr;
      gap: 48px;
    }

    .experience::before { display: none; }

    .book { grid-column: 1 / -1; }
    .book .intro p { font-size: 18px; }
    .book .calendly-frame { padding: 8px; min-height: 680px; }

    .footer-grid {
      grid-column: 1 / -1;
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .footer-rule, .footer-attr { grid-column: 1 / -1; }
    .footer-attr { font-size: 11px; letter-spacing: 0.15em; }
  }

/* ===== blog.css ===== */
/* ================= Ghost Hat blog ================= */
.bl-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.art-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

.bl-back { display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:12px;
  letter-spacing:0.06em; color:var(--brass); text-decoration:none; margin-bottom:28px; opacity:.9; }
.bl-back:hover{ opacity:1; }
.bl-back .ar{ transition:transform .18s ease; }
.bl-back:hover .ar{ transform:translateX(-3px); }

.bl-eyebrow { font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:.22em;
  text-transform:uppercase; color:var(--brass); margin-bottom:18px; }

/* ---------- blog index ---------- */
.bl-hero { padding:132px 0 8px; }
@media (max-width:640px){ .bl-hero{ padding:104px 0 8px; } }
.bl-title { font-family:var(--sans); font-weight:700; color:var(--white);
  font-size:clamp(34px,5vw,56px); line-height:1.04; letter-spacing:-.02em; margin:0 0 18px; }
.bl-lede { font-family:var(--sans); font-weight:300; color:var(--platinum);
  font-size:clamp(17px,2vw,20px); line-height:1.55; max-width:600px; margin:0 0 8px; }

/* signup */
.bl-signup { margin:34px 0 10px; padding:28px 28px; border-radius:16px;
  background:linear-gradient(180deg, rgba(212,197,164,.07), rgba(212,197,164,.02));
  border:1px solid rgba(212,197,164,.22); }
.bl-signup .su-t { font-family:var(--sans); font-weight:600; color:var(--white); font-size:18px; margin:0 0 6px; }
.bl-signup .su-d { font-family:var(--sans); font-weight:300; color:var(--platinum-dim); font-size:14px; margin:0 0 16px; line-height:1.5; }
.bl-form { display:flex; gap:10px; flex-wrap:wrap; max-width:480px; }
.bl-form input[type=email]{ flex:1; min-width:200px; background:var(--gunmetal-2); border:1px solid var(--hairline-strong);
  border-radius:8px; padding:12px 14px; color:var(--white); font-family:var(--mono); font-size:13px; outline:none; }
.bl-form input[type=email]:focus{ border-color:var(--brass); }
.bl-form input[type=email]::placeholder{ color:#6a7079; }
.bl-form button{ background:var(--brass); color:#14110b; border:none; border-radius:8px; padding:12px 20px;
  font-family:var(--mono); font-size:13px; font-weight:600; letter-spacing:.04em; cursor:pointer; transition:transform .15s ease; }
.bl-form button:hover{ transform:translateY(-1px); }
.bl-form-done{ font-family:var(--mono); font-size:13px; line-height:1.5; color:var(--brass); margin:10px 0 0; max-width:480px; }
.bl-confirm-btn{ display:inline-flex; align-items:center; gap:9px; font-family:var(--mono); font-size:13px; letter-spacing:.04em;
  background:var(--brass); color:var(--bg); text-decoration:none; padding:12px 22px; border-radius:999px; font-weight:600; transition:transform .15s ease; }
.bl-confirm-btn:hover{ transform:translateY(-2px); }
.bl-rss { display:inline-flex; align-items:center; gap:7px; margin-top:14px; font-family:var(--mono);
  font-size:12px; color:var(--platinum-dim); text-decoration:none; }
.bl-rss:hover{ color:var(--brass); }

/* post list */
.bl-list { display:grid; grid-template-columns:1fr; gap:16px; margin:30px 0 0; }
.bl-card { display:grid; grid-template-columns:200px 1fr; gap:24px; text-decoration:none; background:var(--gunmetal-2);
  border:1px solid var(--hairline); border-radius:16px; padding:20px; transition:transform .2s ease,border-color .2s ease,background .2s ease; }
.bl-card:hover{ transform:translateY(-3px); border-color:rgba(212,197,164,.3); background:var(--gunmetal); }
.bl-card .thumb { width:200px; height:150px; border-radius:10px; overflow:hidden; background:var(--bg); border:1px solid var(--hairline); }
.bl-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.bl-card .meta{ display:flex; flex-direction:column; min-width:0; }
.bl-card .date{ font-family:var(--mono); font-size:11px; letter-spacing:.04em; color:var(--platinum-dim); margin-bottom:8px; }
.bl-card .ct{ font-family:var(--sans); font-weight:600; color:var(--white); font-size:clamp(18px,2.2vw,23px); line-height:1.18; margin:0 0 8px; letter-spacing:-.01em; }
.bl-card .cs{ font-family:var(--sans); font-weight:300; color:var(--platinum); font-size:14.5px; line-height:1.55; margin:0 0 12px; }
.bl-card .go{ margin-top:auto; font-family:var(--mono); font-size:12px; color:var(--brass); display:inline-flex; align-items:center; gap:6px; }
.bl-card .go .ar{ transition:transform .18s ease; }
.bl-card:hover .go .ar{ transform:translateX(4px); }
@media (max-width:600px){ .bl-card{ grid-template-columns:1fr; } .bl-card .thumb{ width:100%; height:180px; } }

/* ---------- article ---------- */
.art-hero { padding:128px 0 0; }
@media (max-width:640px){ .art-hero{ padding:100px 0 0; } }
.art-date { font-family:var(--mono); font-size:12px; letter-spacing:.05em; color:var(--platinum-dim); margin-bottom:14px; }
.art-h1 { font-family:var(--sans); font-weight:700; color:var(--white);
  font-size:clamp(30px,4.4vw,46px); line-height:1.08; letter-spacing:-.02em; margin:0 0 10px; }
.art-readtime { font-family:var(--mono); font-size:11.5px; color:var(--platinum-dim); margin-bottom:6px; }
.art-rule { height:1px; background:var(--hairline-strong); margin:30px 0 8px; }

.art-body { font-family:var(--sans); }
.art-body h2 { font-family:var(--sans); font-weight:600; color:var(--white); font-size:clamp(22px,2.8vw,29px);
  line-height:1.2; letter-spacing:-.01em; margin:46px 0 14px; }
.art-body h3 { font-family:var(--sans); font-weight:600; color:var(--white); font-size:clamp(18px,2.1vw,21px);
  line-height:1.3; margin:32px 0 10px; }
.art-body p { font-weight:300; color:var(--platinum); font-size:17.5px; line-height:1.78; margin:0 0 20px; }
.art-body p:first-of-type { color:var(--platinum); }
.art-body a { color:var(--brass); text-decoration:none; border-bottom:1px solid rgba(212,197,164,.35); transition:border-color .2s ease; }
.art-body a:hover { border-color:var(--brass); }
.art-body strong { color:var(--white); font-weight:600; }
.art-body em { color:var(--platinum); font-style:italic; }
.art-body ul, .art-body ol { color:var(--platinum); font-weight:300; font-size:17px; line-height:1.7; margin:0 0 22px; padding-left:26px; }
.art-body li { margin:0 0 9px; }
.art-body li::marker { color:var(--brass); }
.art-body code { font-family:var(--mono); font-size:.86em; background:var(--gunmetal-2); color:#e7d8b6;
  border:1px solid var(--hairline); border-radius:5px; padding:2px 6px; word-break:break-word; }
.art-body pre { background:#0d0f12; border:1px solid var(--hairline-strong); border-radius:10px;
  padding:18px 20px; overflow-x:auto; margin:0 0 24px; }
.art-body pre code { display:block; background:none; border:none; border-radius:0; padding:0; font-size:13.5px;
  line-height:1.7; color:#e7d8b6; white-space:pre; word-break:normal; }
/* light mode: light box, dark brass text so the code stays readable on white */
:root[data-theme="light"] .art-body pre { background:#e6e8ee; border-color:var(--inverse-hairline-strong); }
:root[data-theme="light"] .art-body pre code { color:#14110b; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .art-body pre { background:#e6e8ee; border-color:var(--inverse-hairline-strong); }
  :root:not([data-theme="dark"]) .art-body pre code { color:#14110b; }
}
.art-body img { display:block; max-width:460px; width:100%; height:auto; margin:30px auto; border-radius:14px;
  border:1px solid var(--hairline); }
.art-body p:has(> img) { margin-bottom:8px; }

/* article closing CTA */
.art-cta { max-width:720px; margin:54px auto 90px; padding:34px 30px; border-radius:18px; text-align:center;
  background:linear-gradient(180deg, rgba(212,197,164,.07), rgba(212,197,164,.02)); border:1px solid rgba(212,197,164,.22); }
.art-cta .t{ font-family:var(--sans); font-weight:600; color:var(--white); font-size:clamp(19px,2.4vw,24px); margin:0 0 10px; letter-spacing:-.01em; }
.art-cta .d{ font-family:var(--sans); font-weight:300; color:var(--platinum); font-size:14.5px; margin:0 auto 20px; max-width:440px; line-height:1.6; }
.art-cta .b{ display:inline-flex; align-items:center; gap:9px; font-family:var(--mono); font-size:13px; letter-spacing:.04em;
  background:var(--brass); color:var(--bg); text-decoration:none; padding:12px 22px; border-radius:999px; font-weight:600; transition:transform .15s ease; }
.art-cta .b:hover{ transform:translateY(-2px); }
.bl-cta-secondary{ display:inline-block; margin-top:14px; font-family:var(--mono); font-size:12px; color:var(--platinum-dim); text-decoration:none; }
.bl-cta-secondary:hover{ color:var(--brass); }
