/* base-serif.css - the shared page stylesheet that 33 pages carried inline as their first <style> block (byte-identical; extracted 2026-08-29; Home keeps its own variant inline). */
    :root {
      --bg: #070707;
      --bg-2: #101010;
      --ink: #f5f5f0;
      --muted: #a6a8ad;
      --silver: #c7ccd5;
      --silver-2: #eef1f5;
      --line: rgba(255,255,255,.12);
      --panel: rgba(255,255,255,.055);
      --panel-strong: rgba(255,255,255,.095);
      --black: #070707;
      --white: #f6f4ee;
      --pill: 999px;
      --radius: 30px;
      --max: 1440px;
      --ease: cubic-bezier(.22,1,.36,1);
      --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --font-display: "Cormorant Garamond", Georgia, serif;
      --font-ui: "Space Grotesk", system-ui, sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; background: var(--bg); }
    body {
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at 50% 0%, rgba(199,204,213,.16), transparent 32rem),
        linear-gradient(180deg, #050505 0%, #0b0b0b 46%, #050505 100%);
      font-family: var(--font-body);
      overflow-x: hidden;
      text-rendering: geometricPrecision;
    }

    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; }
    button { color: inherit; }
    img, video, canvas { display: block; max-width: 100%; }

    .shell {
      width: min(var(--max), calc(100% - 28px));
      margin: 0 auto;
    }

    .grain {
      position: fixed;
      inset: 0;
      z-index: 100;
      pointer-events: none;
      opacity: .12;
      mix-blend-mode: overlay;
      background-image:
        repeating-radial-gradient(circle at 17% 23%, rgba(255,255,255,.8) 0 1px, transparent 1px 3px),
        repeating-radial-gradient(circle at 73% 61%, rgba(255,255,255,.45) 0 1px, transparent 1px 4px);
      background-size: 180px 180px, 220px 220px;
      animation: grainShift 1.6s steps(3) infinite;
    }

    @keyframes grainShift {
      0% { transform: translate(0,0); }
      33% { transform: translate(-2%,1%); }
      66% { transform: translate(1%,-2%); }
      100% { transform: translate(0,0); }
    }

    .cursor, .cursor-ring {
      position: fixed;
      left: -100px;
      top: -100px;
      z-index: 120;
      pointer-events: none;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      mix-blend-mode: difference;
    }

    .cursor {
      width: 10px;
      height: 10px;
      background: var(--silver-2);
      transition: width .25s ease, height .25s ease, opacity .25s ease;
    }

    .cursor-ring {
      width: 44px;
      height: 44px;
      border: 1px solid rgba(238,241,245,.52);
      transition: width .35s var(--ease), height .35s var(--ease), border-color .25s ease;
    }

    .cursor.hovering { width: 5px; height: 5px; }
    .cursor-ring.hovering {
      width: 66px;
      height: 66px;
      border-color: rgba(238,241,245,.9);
    }

    .topbar {
      position: fixed;
      top: 14px;
      left: 50%;
      z-index: 90;
      width: min(var(--max), calc(100% - 28px));
      transform: translateX(-50%);
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 14px;
      padding: 9px;
      border: 1px solid rgba(255,255,255,.13);
      border-radius: var(--pill);
      background: rgba(7,7,7,.62);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      box-shadow: 0 22px 80px rgba(0,0,0,.3);
    }

    .brand-lock {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding-left: 8px;
      font-family: var(--font-display);
      font-weight: 700;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .brand-dot {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--silver-2);
      color: var(--black);
      font-size: 11px;
      font-weight: 800;
    }

    .brand-logo {
      height: 56px;
      width: auto;
      display: block;
    }

    .navlinks {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 4px;
      color: rgba(255,255,255,.66);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .navlinks a {
      padding: 11px 13px;
      border-radius: var(--pill);
      transition: background .25s ease, color .25s ease;
    }

    .navlinks a:hover,
    .navlinks a:focus-visible {
      background: rgba(255,255,255,.1);
      color: #fff;
      outline: none;
    }

    .top-actions {
      display: inline-flex;
      justify-self: end;
      gap: 8px;
      align-items: center;
    }

    .pill {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 0 18px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: var(--pill);
      background: rgba(255,255,255,.075);
      color: var(--ink);
      cursor: pointer;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
      transition: transform .28s var(--ease), border-color .25s ease, background .25s ease;
    }

    .pill:hover,
    .pill:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(255,255,255,.34);
      background: rgba(255,255,255,.13);
      outline: none;
    }

    .pill-primary {
      border-color: transparent;
      background: var(--silver-2);
      color: var(--black);
    }

    .pill-dark {
      background: var(--black);
      color: var(--white);
      border-color: var(--black);
    }

    #bgVideoWrap {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
      background: #050505;
    }

    .video-bed {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: .26;
      overflow: hidden;
      mix-blend-mode: screen;
    }

    .video-bed video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(1) contrast(1.08);
    }

    .hero-scrim {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background:
        linear-gradient(90deg, rgba(7,7,8,.90) 0%, rgba(7,7,8,.60) 46%, rgba(7,7,8,.16) 100%),
        linear-gradient(180deg, rgba(7,7,8,.06), rgba(7,7,8,.26) 96%);
    }

    main, footer {
      position: relative;
      z-index: 2;
    }

    .hero {
      min-height: 100svh;
      position: relative;
      isolation: isolate;
    }

    .hero-sticky {
      position: relative;
      min-height: 100svh;
      display: grid;
      align-items: center;
      padding: 104px 0 48px;
    }

    .hero-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 28px;
      align-items: center;
    }

    .hero-text, .hero-face { min-width: 0; }
    .hero-copy { overflow-wrap: break-word; }

    .identity-chip {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      color: rgba(255,255,255,.72);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    .identity-chip::before {
      content: "";
      width: 38px;
      height: 1px;
      background: currentColor;
      opacity: .7;
    }

    .hero h1 {
      max-width: none;
      margin: 0;
      font-family: var(--font-display);
      font-size: clamp(56px, 6.6vw, 112px);
      line-height: .87;
      letter-spacing: .002em;
      text-transform: none;
      font-weight: 600;
    }

    .silver-text {
      background: linear-gradient(135deg, #ffffff 0%, #b8bec9 45%, #f3f5f7 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-copy {
      max-width: 690px;
      margin: 24px 0 0;
      color: rgba(255,255,255,.75);
      font-size: clamp(17px, 2.1vw, 23px);
      line-height: 1.5;
    }

    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 30px;
    }

    .hero-btn {
      padding: 15px 30px;
      border-radius: var(--pill);
      background: #f2f0ec;
      color: #0b0b0d;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: .01em;
    }

    .hero-btn-ghost {
      padding: 15px 30px;
      border-radius: var(--pill);
      background: transparent;
      color: rgba(255,255,255,.92);
      border: 1px solid rgba(255,255,255,.24);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: .01em;
    }

    .hero-proof {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
      opacity: .82;
    }

    .proof-pill {
      padding: 9px 13px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: var(--pill);
      background: rgba(255,255,255,.055);
      color: rgba(255,255,255,.7);
      font-size: 12px;
      font-weight: 700;
    }

    .hero-face {
      position: relative;
      width: min(420px, 100%);
      justify-self: center;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 34px;
      overflow: hidden;
      background: rgba(255,255,255,.06);
      box-shadow: 0 30px 100px rgba(0,0,0,.42);
      transform: translateZ(0);
    }

    .hero-face::before {
      content: "";
      display: block;
      aspect-ratio: 4 / 5;
    }

    .hero-face img,
    .hero-face video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(.18) contrast(1.05);
    }

    .face-caption {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 14px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 18px;
      background: rgba(0,0,0,.52);
      color: rgba(255,255,255,.78);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      font-size: 12px;
      font-weight: 700;
    }

    .scroll-hint {
      position: fixed;
      left: 50%;
      bottom: 26px;
      z-index: 8;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,.52);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .16em;
      text-transform: uppercase;
      pointer-events: none;
      transition: opacity .28s ease;
    }

    .scroll-hint.is-hidden { opacity: 0; }
    .scroll-line {
      width: 1px;
      height: 48px;
      background: linear-gradient(180deg, rgba(255,255,255,.8), transparent);
      animation: scrollPulse 1.8s ease-in-out infinite;
    }

    @keyframes scrollPulse {
      0%, 100% { transform: scaleY(.55); opacity: .45; }
      50% { transform: scaleY(1); opacity: 1; }
    }

    .section {
      padding: 88px 0;
      background: transparent;
    }

    .section + .section {
      border-top: 1px solid rgba(255,255,255,.07);
    }

    .section-head {
      display: grid;
      gap: 18px;
      margin-bottom: 34px;
    }

    .eyebrow {
      color: var(--silver);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    h2 {
      margin: 0;
      font-family: var(--font-display);
      font-size: clamp(34px, 5.4vw, 76px);
      line-height: 1.02;
      letter-spacing: -.005em;
      text-transform: none;
    }

    .section-copy {
      max-width: 720px;
      margin: 0;
      color: rgba(255,255,255,.68);
      font-size: 17px;
      line-height: 1.7;
    }

    .work-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .work-card {
      position: relative;
      min-height: 280px;
      display: grid;
      align-content: space-between;
      overflow: hidden;
      padding: 24px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 30px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035)),
        #0c0c0c;
      transition: transform .35s var(--ease), border-color .25s ease, background .25s ease;
    }

    .work-card:hover {
      transform: translateY(-4px);
      border-color: rgba(238,241,245,.34);
      background:
        linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.045)),
        #0c0c0c;
    }

    .work-card::after {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      right: -90px;
      top: -90px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.12);
      background: radial-gradient(circle, rgba(199,204,213,.18), transparent 70%);
      pointer-events: none;
    }

    .work-num {
      color: rgba(255,255,255,.38);
      font-family: var(--font-display);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .16em;
    }

    .work-card h3 {
      max-width: 430px;
      margin: 40px 0 12px;
      font-family: var(--font-display);
      font-size: clamp(25px, 2.4vw, 32px);
      line-height: 1.08;
      letter-spacing: 0;
      text-transform: none;
      overflow-wrap: break-word;
    }

    .work-card p {
      max-width: 520px;
      margin: 0;
      color: rgba(255,255,255,.64);
      line-height: 1.65;
    }

    .ticker {
      overflow: hidden;
      border-top: 1px solid rgba(255,255,255,.09);
      border-bottom: 1px solid rgba(255,255,255,.09);
      background: rgba(255,255,255,.025);
    }

    .ticker-track {
      display: flex;
      width: max-content;
      gap: .34em;
      padding: 22px 0 24px;
      color: rgba(255,255,255,.34);
      font-family: var(--font-display);
      font-size: clamp(24px, 4.4vw, 54px);
      font-weight: 600;
      line-height: .9;
      text-transform: none;
      white-space: nowrap;
      animation: marquee 30s linear infinite;
    }

    @keyframes marquee {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }


    .case {
      padding: 96px 0;
      background: linear-gradient(180deg, rgba(9,9,11,.60), rgba(9,9,11,.42));
      color: #ece9e3;
    }

    .case .eyebrow { color: rgba(255,255,255,.58); }
    .case .section-copy { color: rgba(255,255,255,.72); }

    .case-grid {
      display: grid;
      gap: 28px;
      align-items: center;
    }

    .case-visual {
      min-height: 360px;
      border-radius: 32px;
      overflow: hidden;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.12);
      box-shadow: 0 32px 90px rgba(0,0,0,.42);
    }

    .case-visual img {
      width: 100%;
      height: 100%;
      min-height: 360px;
      object-fit: cover;
      object-position: 50% 0%;
    }

    .quote-slot {
      margin-top: 28px;
      padding: 24px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 28px;
      background: rgba(255,255,255,.06);
    }

    .quote-slot blockquote {
      margin: 0;
      color: rgba(255,255,255,.9);
      font-family: var(--font-display);
      font-size: clamp(22px, 3vw, 34px);
      line-height: 1.14;
      letter-spacing: 0;
      text-transform: none;
    }

    .quote-slot p {
      margin: 14px 0 0;
      color: rgba(255,255,255,.55);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .direct {
      padding: 96px 0;
      background:
        radial-gradient(circle at 78% 30%, rgba(199,204,213,.10), transparent 26rem);
    }

    .direct-grid {
      display: grid;
      gap: 24px;
      align-items: end;
    }

    .direct-panel {
      padding: 24px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 30px;
      background: rgba(255,255,255,.055);
    }

    .direct-panel p {
      margin: 0;
      color: rgba(255,255,255,.66);
      font-size: 17px;
      line-height: 1.7;
    }

    .cta-final {
      display: grid;
      place-items: center;
      padding: 120px 0;
      text-align: center;
      background:
        radial-gradient(circle at 50% 20%, rgba(238,241,245,.12), transparent 28rem);
    }

    .cta-final h2 {
      max-width: 1050px;
      margin: 0 auto;
    }

    .cta-final p {
      max-width: 690px;
      margin: 24px auto 32px;
      color: rgba(255,255,255,.7);
      font-size: 18px;
      line-height: 1.7;
    }

    /* old Codex footer base rules removed — the new .site-footer / .footer-* system controls the footer now */

    @media (min-width: 740px) {
      .navlinks { display: inline-flex; }
      .hero-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, .58fr);
      }
      .section-head {
        grid-template-columns: .9fr 1fr;
        align-items: end;
      }
      .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .case-grid {
        grid-template-columns: .86fr 1.14fr;
      }
      .direct-grid {
        grid-template-columns: 1.05fr .95fr;
      }
    }

    @media (min-width: 1080px) {
      .work-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
      .work-card {
        min-height: 340px;
      }
      .work-card h3 {
        margin-top: 56px;
      }
    }

    @media (max-width: 640px) {
      .cursor, .cursor-ring { display: none; }
      .topbar {
        grid-template-columns: auto auto;
      }
      .navlinks { display: none; }
      .brand-lock span:last-child { display: none; }
      .top-actions .pill-primary { display: none; }
      .hero {
        min-height: auto;
      }
      .hero-sticky {
        min-height: 100svh;
        align-items: center;
        padding: 92px 0 28px;
      }
      .hero-face {
        width: min(310px, 86vw);
        order: -1;
      }
      .face-caption {
        font-size: 11px;
      }
      .hero-copy {
        font-size: 16px;
      }
      .section, .case, .direct, .cta-final {
        padding: 68px 0;
      }
      .work-card {
        min-height: 250px;
        padding: 22px;
      }
      .quote-slot {
        padding: 20px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
      }
    }
  
    /* Serif type-system + sticky nav (2026-07-13 preview) */
    h1, h2, h3, .display, [class*="hero"] h1, [class*="head"] { font-family: var(--font-display) !important; font-weight: 600; }
    .eyebrow, .tag, .navlinks, .navlinks a, nav a, .btn, button, label, .price, .product-name, [class*="label"], [class*="eyebrow"] { font-family: var(--font-ui, "Space Grotesk"), sans-serif !important; }
    body, p, li, .body, [class*="copy"], [class*="sub"] { font-family: var(--font-body) !important; }
    /* Sticky nav: stays pinned + gains a blur backdrop on scroll */
    header, .site-header, .nav, .navbar, nav.primary { position: fixed !important; top: 0; left: 0; right: 0; z-index: 200; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: rgba(13,13,15,0.55); transition: background .3s; }

  
