/* ── Sub-page shell (matches index h2 / body scale) ─────────────── */
  .page-hero { padding: calc(var(--pad-y) * 0.85) 0 calc(var(--pad-y) * 0.25); }
  .page-hero-inner,
  .page-body-inner { max-width: 820px; }
  .page-body-inner { position: relative; padding-top: 26px; }
  .page-body-inner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 46px; height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
  }
  .page-kicker {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 22px;
  }
  .page-h1 {
    font-family: var(--sans);
    font-optical-sizing: auto;
    font-weight: 620;
    font-size: clamp(24px, 2.8vw, 34px);
    letter-spacing: -.015em;
    line-height: 1.18;
    color: var(--page-text);
    margin: 0 0 20px;
  }
  .page-lede {
    font-family: var(--sans);
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--page-text-secondary);
    max-width: 720px;
    margin: 0;
  }
  .page-body { padding: calc(var(--pad-y) * 0.32) 0 calc(var(--pad-y) * 0.62); }

  /* General Work hero: pinned to exactly half the first viewport so the
     fold reads as a clean 50/50 cream-over-navy split into .gw-split. */
  .page-hero {
    min-height: 50vh;
    min-height: 50svh;
    display: flex;
    align-items: center;
    padding: 0;
  }
  @media (max-width: 760px) {
    .page-hero { min-height: 0; padding: calc(var(--pad-y) * 0.9) 0 32px; }
  }

  /* ── General work: one shared dark canvas, copy left / query-web right ── */
  .gw-split {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    align-items: center;
    height: 50vh;
    height: 50svh;
    position: relative;
    overflow: hidden;
  }
  section.gw-split {
    background-color: #171b26 !important;
    background-image:
      radial-gradient(ellipse 60% 55% at 12% 15%, rgba(78,143,247,.14), transparent 62%),
      radial-gradient(ellipse 55% 50% at 88% 88%, rgba(42,212,229,.10), transparent 62%) !important;
  }
  .gw-split::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4; z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 22px 22px;
  }
  .gw-split-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px;
    /* the copy starts on the same left margin as the fold above it:
       the hero column is 820px wide and centred, so its left edge is
       (100vw - 820px) / 2 at any width that can hold it. */
    padding: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) max(clamp(24px, 3vw, 48px), calc((100vw - 820px) / 2));
    height: 100%; box-sizing: border-box; }
  .gw-eyebrow { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light, var(--accent)); }
  .gw-split-text .gw-lede { font-family: var(--sans); font-weight: 560; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.3; color: #f4f0e8; max-width: 22ch; margin: 0; }
  .gw-split-text p.gw-body-p { font-family: var(--sans); font-size: clamp(13px, 1vw, 15px); line-height: 1.55; color: rgba(244,240,232,.68); max-width: 48ch; margin: 0; }
  .gw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .gw-chip { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: #f4f0e8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 100px; padding: 6px 13px; }

  /* ── Fold watermark — the same sparse stroke set used across the
        site, over the cream plate only. ─────────────────────────────── */
  .page-hero { position: relative; overflow: hidden; }
  .gw-hero-wm {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: clamp(200px, 24vw, 360px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.13;
  }
  .gw-hero-wm svg { width: 100%; height: 100%; display: block; }
  .gw-hero-wm svg path:nth-child(n+4) { display: none; }
  .gw-hero-wm path {
    fill: none;
    stroke: var(--page-text);
    stroke-width: 0.9;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    transition: stroke-dashoffset 2.6s cubic-bezier(.22,.9,.24,1);
  }
  .gw-hero-wm.in path { stroke-dashoffset: 0; }
  .gw-hero-wm.in path:nth-child(2) { transition-delay: .1s; }
  .gw-hero-wm.in path:nth-child(3) { transition-delay: .2s; }
  .gw-hero-wm.in path:nth-child(4) { transition-delay: .3s; }
  .gw-hero-wm.in path:nth-child(5) { transition-delay: .4s; }
  .page-hero .section-inner { position: relative; z-index: 1; }
  @media (max-width: 900px) { .gw-hero-wm { display: none; } }
  @media (prefers-reduced-motion: reduce) {
    .gw-hero-wm path { transition: none !important; stroke-dashoffset: 0 !important; }
  }


  .gw-split-visual { position: relative; z-index: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 2.5vw, 32px); height: 100%; box-sizing: border-box; }

  /* Cream block housing the graphic, floated on top of the navy canvas */
  .gw-visual-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #f4f0e8;
    border-radius: 14px;
    padding: clamp(16px, 2.2vw, 28px);
    box-shadow: 0 24px 56px rgba(0,0,0,.4);
  }

  /* floating query web — abstract, generic AI prompts drifting and
     pulsing like a loose graph, deliberately NOT the Revori product UI */
  .gw-query-web { position: relative; width: 100%; aspect-ratio: 480 / 400; }
  .gw-web-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
  .gw-web-lines line {
    stroke: rgba(20,23,31,.18);
    stroke-width: 1;
    stroke-dasharray: 3 5;
    animation: gwLineFlow 5s linear infinite;
  }
  .gw-web-node {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); opacity: .75; transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(78,143,247,.55);
    animation: gwNodePulse 4s ease-in-out infinite;
  }
  @keyframes gwLineFlow { to { stroke-dashoffset: -16; } }
  @keyframes gwNodePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .6; }
    50%      { transform: translate(-50%, -50%) scale(1.6); opacity: 1; }
  }
  .gw-q {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(20,23,31,.82);
    background: rgba(20,23,31,.045);
    border: 1px solid rgba(20,23,31,.14);
    border-radius: 100px;
    padding: 8px 15px;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: gwDrift 8s ease-in-out infinite, gwPulse 6s ease-in-out infinite;
  }
  .gw-q1 { left: 26%;  top: 16%; animation-delay: 0s,   .2s; }
  .gw-q2 { left: 50%;  top: 42%; animation-delay: .6s,  0s;  }
  .gw-q3 { left: 72%;  top: 20%; animation-delay: 1.1s, .8s; }
  .gw-q4 { left: 32%;  top: 68%; animation-delay: 1.7s, .4s; }
  .gw-q5 { left: 60%;  top: 78%; animation-delay: .3s,  1.2s; }
  .gw-q6 { left: 74%;  top: 52%; animation-delay: 1.4s, .6s; }
  @keyframes gwDrift {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%      { transform: translate(-50%, -50%) translateY(-9px); }
  }
  @keyframes gwPulse {
    0%, 100% { opacity: .5; }
    50%      { opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .gw-q { animation: none; opacity: .9; }
    .gw-web-lines line, .gw-web-node { animation: none; }
  }
  @media (max-width: 860px) {
    .gw-split { grid-template-columns: 1fr; height: auto; padding: 20px 0; }
    .gw-split-text, .gw-split-visual { padding: 40px clamp(24px, 5vw, 48px) !important; height: auto; }
    .gw-visual-card { max-width: 400px; }
    .gw-q { font-size: 10.5px; padding: 7px 12px; }
  }
  @media (max-width: 480px) {
    .gw-q { white-space: normal; max-width: 148px; text-align: center; border-radius: 18px; }
  }

  /* Directional build: copy slides in from the left, the graphic card
     slides in from the right, converging into place together. */
  .gw-split-text.scroll-reveal {
    opacity: 0;
    transform: translateX(-64px);
    transition: opacity 1.5s cubic-bezier(.16,1,.3,1), transform 1.7s cubic-bezier(.16,1,.3,1);
  }
  .gw-split-text.scroll-reveal.in { opacity: 1; transform: translateX(0); }
  .gw-split-visual.scroll-reveal {
    opacity: 0;
    transform: translateX(64px);
    transition: opacity 1s cubic-bezier(.16,1,.3,1) .08s, transform 1s cubic-bezier(.16,1,.3,1) .08s;
  }
  .gw-split-visual.scroll-reveal.in { opacity: 1; transform: translateX(0); }
  @media (prefers-reduced-motion: reduce) {
    .gw-split-text.scroll-reveal, .gw-split-visual.scroll-reveal { transform: none; }
  }

  .page-p {
    font-family: var(--sans);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.72;
    color: var(--page-text-secondary);
    margin: 0 0 20px;
    text-align: left;
  }
  .page-p:last-child { margin-bottom: 0; }
  .page-sect { background: transparent !important; border: 0 !important; }

  /* ── Page tone variants (scoped to page content, not <body>) ─────
     Using --page-text / --page-text-secondary so we do NOT stomp the
     site-wide --text tokens the fixed nav panel relies on. */
  .page-tone-warm  { background: #f4f0e8; --page-text: #14171f; --page-text-secondary: rgba(20,23,31,0.72); }
  .page-tone-blue  { background: #0d1a2e; --page-text: #ecf1fa; --page-text-secondary: rgba(236,241,250,0.75); }
  .page-tone-deep  { background: #080a10; --page-text: #ecedf1; --page-text-secondary: rgba(236,237,241,0.75); }
  .page-tone-slate { background: #1a1f2b; --page-text: #ecedf1; --page-text-secondary: rgba(236,237,241,0.75); }

  /* ── Sub-page nav stays legible over any tone ───────────────────── */
  .page nav#nav {
    background: rgba(10,12,18,0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .page nav#nav .nav-link,
  .page nav#nav .logo-word { color: #ecedf1; }
  .page nav#nav .nav-link:hover { color: #fff; }
