:root {
    /* 1Lattice brand palette */
    --blue: #0D0AD5;
    --blue-deep: #080683;
    --blue-700: #0A089E;
    --blue-500: #5755F4;
    --blue-300: #7977F6;
    --blue-100: #B9B8F9;
    --blue-050: #DADAFA;
    --magenta: #C31074;
    --magenta-deep: #7C0B49;
    --magenta-500: #DD4A9E;
    --magenta-300: #F176B8;
    --magenta-100: #F495C9;
    --magenta-050: #F7B7DA;

    --ink: #0B0B1F;
    --ink-2: #2A2A3E;
    --ink-3: #5C5C72;
    --mute: #8A8AA0;
    --line: #E6E6F0;
    --line-soft: #F0F0F7;
    --bg: #FFFFFF;
    --bg-soft: #F7F7FB;
    --bg-deep: #0A0730;

    --accent: var(--magenta);
    --accent-deep: var(--magenta-deep);
    --accent-soft: var(--magenta-050);

    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 20px;

    --font: "Poppins", "Arial", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    --maxw: 1240px;
    --pad: clamp(20px, 4vw, 48px);
  }

  [data-accent="blue"] {
    --accent: var(--blue);
    --accent-deep: var(--blue-deep);
    --accent-soft: var(--blue-050);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv01";
    line-height: 1.5;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

  /* ---------- NAV ---------- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
  }
  .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
  .brand-logo { height: 32px; width: auto; display: block; }
  .brand-logo-inv { filter: brightness(0) invert(1); }
  .brand-mark {
    width: 28px; height: 28px; border-radius: 7px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--magenta) 100%);
    display: grid; place-items: center;
    color: white; font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  }
  .brand-name { font-size: 18px; font-weight: 700; }
  .brand-sub {
    color: var(--ink-3); font-weight: 500; font-size: 11px;
    letter-spacing: .02em; padding-left: 12px; margin-left: 2px;
    border-left: 1px solid var(--line);
    line-height: 1.2;
  }

  .nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
  .nav-links a { position: relative; }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta { display: flex; gap: 10px; align-items: center; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-weight: 600; font-size: 14px;
    height: 40px; padding: 0 18px; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--ink); color: white; }
  .btn-primary:hover { background: var(--accent-deep); }
  .btn-accent { background: var(--accent); color: white; }
  .btn-accent:hover { background: var(--accent-deep); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }

  /* ---------- HERO ---------- */
  .hero {
    position: relative;
    padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
    overflow: hidden;
  }
  .hero-grid {
    display: grid; gap: clamp(32px, 5vw, 64px);
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
  @media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-3);
    padding: 6px 12px; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--line);
  }
  .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 18%, transparent);
  }

  h1.hero-title {
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 700;
    margin: 24px 0 20px;
    text-wrap: balance;
  }
  h1.hero-title em { font-style: normal; color: var(--accent); font-weight: 700; }
  .hero-sub {
    font-size: clamp(16px, 1.25vw, 19px);
    color: var(--ink-3);
    max-width: 560px;
    text-wrap: pretty;
    margin: 0 0 32px;
  }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

  .hero-meta {
    margin-top: 40px;
    display: flex; gap: 36px; flex-wrap: wrap;
    padding-top: 24px; border-top: 1px solid var(--line);
  }
  .hero-meta-item { font-size: 13px; color: var(--ink-3); }
  .hero-meta-item b { display: block; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

  /* Hero visual: portal mock */
  .hero-visual {
    position: relative;
    isolation: isolate;
  }
  .portal-card {
    position: relative;
    background: white;
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    box-shadow:
      0 1px 1px rgba(13,10,213,.03),
      0 24px 60px -24px rgba(13,10,213,.2),
      0 60px 100px -40px rgba(195,16,116,.15);
    overflow: hidden;
  }
  .portal-topbar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
  }
  .portal-dots { display: flex; gap: 6px; }
  .portal-dots span { width: 10px; height: 10px; border-radius: 50%; background: #D8D8E2; }
  .portal-url {
    flex: 1; font-family: var(--mono); font-size: 11px; color: var(--ink-3);
    background: white; border: 1px solid var(--line); border-radius: 6px;
    padding: 4px 10px; text-align: center;
  }

  .portal-body {
    display: grid; grid-template-columns: 180px 1fr; min-height: 440px;
  }
  .portal-side {
    background: #FAFAFD; border-right: 1px solid var(--line);
    padding: 18px 12px; font-size: 12px;
  }
  .portal-side-title {
    font-family: var(--mono); font-size: 10px; color: var(--mute);
    letter-spacing: .12em; text-transform: uppercase; padding: 0 8px 10px;
  }
  .portal-side a,
  .portal-side .portal-side-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 8px; color: var(--ink-2);
    font-weight: 500;
  }
  .portal-side a.active,
  .portal-side .portal-side-link.active { background: var(--accent-soft); color: var(--accent-deep); }
  .portal-side a .bullet,
  .portal-side .portal-side-link .bullet {
    width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6;
  }

  .portal-main { padding: 20px 24px; }
  .portal-kicker { display: flex; align-items: baseline; justify-content: space-between; }
  .portal-kicker h3 {
    margin: 0 0 2px; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  }
  .portal-kicker .sub { font-size: 11px; color: var(--mute); font-family: var(--mono); }
  .portal-kicker .pill {
    font-size: 10px; font-family: var(--mono); color: var(--accent-deep);
    background: var(--accent-soft); padding: 3px 8px; border-radius: 999px;
  }

  .portal-bignum {
    font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 2px;
  }
  .portal-bignum .unit { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
  .portal-caption { font-size: 11px; color: var(--mute); }

  .portal-bars { margin-top: 18px; display: grid; gap: 10px; }
  .bar-row { display: grid; grid-template-columns: 130px 1fr 60px; gap: 12px; align-items: center; font-size: 12px; }
  .bar-row .lbl { color: var(--ink-2); }
  .bar-row .track { display: block; height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
  .bar-row .fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue) 0%, var(--magenta) 100%); }
  .bar-row .val { font-family: var(--mono); color: var(--ink); text-align: right; font-size: 11px; }

  .hero-chip {
    position: absolute; z-index: 2; background: white; border: 1px solid var(--line);
    border-radius: 12px; padding: 10px 14px;
    box-shadow: 0 10px 30px -14px rgba(13,10,213,.25);
    font-size: 12px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
  }
  .hero-chip .chip-num {
    font-weight: 700; font-size: 18px; letter-spacing: -.02em;
    color: var(--accent);
  }
  .chip-a { top: -14px; right: 24px; }
  .chip-b { bottom: -18px; left: -12px; }
  @media (max-width: 960px) {
    .chip-a { right: 10px; }
    .chip-b { left: 10px; }
  }

  /* Decorative grid in hero background */
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--line-soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 50% at 80% 30%, black 30%, transparent 75%);
    opacity: .6; pointer-events: none; z-index: 0;
  }
  .hero .wrap { position: relative; z-index: 1; }

  /* ---------- GENERIC SECTION ---------- */
  section.blk { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
  section.blk.soft { background: var(--bg-soft); }
  section.blk.ink { background: var(--bg-deep); color: white; }
  section.blk.ink { --ink: #fff; --ink-2: rgba(255,255,255,.82); --ink-3: rgba(255,255,255,.6); --line: rgba(255,255,255,.12); --line-soft: rgba(255,255,255,.08); --bg: var(--bg-deep); }

  .section-head { max-width: 820px; margin: 0 0 56px; }
  .section-head .eyebrow { background: white; border-color: var(--line); }
  section.blk.ink .section-head .eyebrow { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
  .section-head h2 {
    margin: 16px 0 14px;
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -.025em;
    font-weight: 700;
    text-wrap: balance;
  }
  .section-head h2 em { font-style: normal; color: var(--accent); }
  .section-head p {
    margin: 0; color: var(--ink-3); font-size: clamp(15px, 1.2vw, 18px);
    max-width: 680px; text-wrap: pretty;
  }

  /* ---------- OPPORTUNITY (stats) ---------- */
  .stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l);
    overflow: hidden;
  }
  @media (max-width: 780px) { .stats { grid-template-columns: 1fr; } }
  .stat {
    background: white; padding: 36px 32px; position: relative;
  }
  .stat .num {
    font-size: clamp(48px, 5vw, 72px); font-weight: 700;
    letter-spacing: -.04em; line-height: 1;
    background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .stat .lbl { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 320px; }
  .stat .src { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 10px; color: var(--mute); }

  /* Stat style: solid */
  [data-stat-style="solid"] .stats { background: transparent; border: 0; gap: 16px; border-radius: 0; }
  [data-stat-style="solid"] .stat { border-radius: var(--radius-l); border: 1px solid var(--line); }
  [data-stat-style="solid"] .stat:nth-child(1) { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: white; }
  [data-stat-style="solid"] .stat:nth-child(2) { background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-deep) 100%); color: white; }
  [data-stat-style="solid"] .stat:nth-child(3) { background: var(--ink); color: white; }
  [data-stat-style="solid"] .stat .num { -webkit-background-clip: unset; background-clip: unset; background: none; color: currentColor; }
  [data-stat-style="solid"] .stat .lbl { color: rgba(255,255,255,.82); }
  [data-stat-style="solid"] .stat .src { color: rgba(255,255,255,.6); }

  .pain-grid {
    margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  }
  @media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }
  .pain-side h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.02em; font-weight: 600; }
  .pain-side p { color: var(--ink-3); margin: 0; }
  .pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .pain-list li {
    display: grid; grid-template-columns: 28px 1fr; gap: 14px;
    padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px;
  }
  .pain-list li:last-child { border-bottom: 1px solid var(--line); }
  .pain-list .x {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-deep);
    display: grid; place-items: center; font-size: 12px; font-weight: 700;
  }
  .stakeholders {
    margin-top: 44px;
    display: flex; flex-wrap: wrap; gap: 10px;
  }
  .stakeholders .tag {
    font-size: 13px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: white; color: var(--ink-2);
    font-weight: 500;
  }

  /* ---------- OFFERINGS ---------- */
  .offer-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  }
  @media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }
  .offer {
    background: white; border: 1px solid var(--line); border-radius: var(--radius-l);
    padding: 32px; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .offer:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: 0 18px 40px -20px rgba(13,10,213,.18); }
  .offer-num {
    font-family: var(--mono); font-size: 11px; color: var(--mute);
    letter-spacing: .14em; text-transform: uppercase;
  }
  .offer h3 {
    margin: 10px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -.02em;
  }
  .offer p { margin: 0 0 18px; color: var(--ink-3); font-size: 14px; }
  .offer-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line);
  }
  .offer-meta div { font-size: 12px; color: var(--ink-3); }
  .offer-meta div b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
  .offer-shape {
    position: absolute; right: -40px; top: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    opacity: .08;
    background: linear-gradient(135deg, var(--blue), var(--magenta));
    filter: blur(2px);
  }

  /* ---------- COVERAGE (map + grid) ---------- */
  .coverage-wrap {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start;
  }
  @media (max-width: 960px) { .coverage-wrap { grid-template-columns: 1fr; } }

  .map-card {
    background: white; border: 1px solid var(--line); border-radius: var(--radius-l);
    padding: 24px; position: relative; overflow: hidden;
  }
  section.blk.ink .map-card { background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
  .map-svg { width: 100%; height: auto; display: block; }
  .map-dot { fill: var(--accent); opacity: .9; }
  .map-dot.metro { r: 5.5; fill: var(--accent); }
  .map-dot.t1 { r: 4; fill: var(--blue); opacity: .85; }
  .map-dot.t2 { r: 3; fill: var(--ink-3); opacity: .6; }
  .map-legend {
    display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--ink-3);
    flex-wrap: wrap;
  }
  .map-legend span { display: inline-flex; align-items: center; gap: 8px; }
  .map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

  .city-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 16px;
    font-size: 13px; color: var(--ink-2);
  }
  .city-grid span { padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
  .city-grid .t-metro { color: var(--accent); font-weight: 600; }
  .city-grid .t-t1 { color: var(--blue); font-weight: 500; }

  .coverage-kpis {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px;
  }
  .kpi {
    padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white;
  }
  section.blk.ink .kpi { background: rgba(255,255,255,.04); }
  .kpi b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
  .kpi span { font-size: 12px; color: var(--ink-3); }

  .coverage-toggle {
    display: inline-flex; padding: 4px; gap: 2px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 12px; background: white;
  }
  .coverage-toggle button {
    border: 0; background: transparent; padding: 6px 14px; border-radius: 999px;
    font-family: var(--font); font-weight: 500; font-size: 12px; cursor: pointer;
    color: var(--ink-3);
  }
  .coverage-toggle button.active { background: var(--ink); color: white; }

  /* ---------- SPECIALTIES ---------- */
  .spec-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  }
  @media (max-width: 1080px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 720px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
  .spec {
    background: white; border: 1px solid var(--line); border-radius: 14px;
    padding: 20px 20px 22px; position: relative;
    transition: border-color .2s, transform .2s;
  }
  .spec:hover { border-color: var(--accent); transform: translateY(-2px); }
  .spec-num {
    font-family: var(--mono); font-size: 10px; color: var(--mute);
    letter-spacing: .14em;
  }
  .spec h4 {
    margin: 8px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
    line-height: 1.25;
  }
  .spec ul {
    list-style: none; margin: 0; padding: 0;
    font-size: 12px; color: var(--ink-3); display: grid; gap: 4px;
  }
  .spec ul li { display: flex; gap: 6px; }
  .spec ul li::before { content: "—"; color: var(--mute); }
  .spec-count {
    position: absolute; top: 16px; right: 16px;
    font-family: var(--mono); font-size: 10px; color: var(--accent);
    padding: 2px 7px; border-radius: 999px; background: var(--accent-soft);
  }

  /* ---------- METHODOLOGY ---------- */
  .method {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    position: relative;
  }
  @media (max-width: 960px) { .method { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .method { grid-template-columns: 1fr; } }
  .method-step {
    position: relative; padding: 28px 24px;
    background: white; border: 1px solid var(--line); border-radius: var(--radius-l);
  }
  section.blk.ink .method-step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
  .method-step .step-n {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--ink); color: white; font-size: 13px; font-weight: 600;
    margin-bottom: 18px;
  }
  section.blk.ink .method-step .step-n { background: var(--accent); }
  .method-step h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
  .method-step p { margin: 0; font-size: 13px; color: var(--ink-3); }
  .method-step ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-3); display: grid; gap: 4px; }
  .method-step ul li::before { content: "· "; color: var(--mute); }

  .method-note {
    font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 16px;
  }

  /* ---------- PRODUCT PREVIEW / DASHBOARD ---------- */
  .dash {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px;
  }
  @media (max-width: 960px) { .dash { grid-template-columns: 1fr; } }
  .dash-card {
    background: white; border: 1px solid var(--line); border-radius: var(--radius-l);
    overflow: hidden;
  }
  .dash-card-head {
    padding: 18px 22px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .dash-card-head h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
  .dash-card-head .meta { font-family: var(--mono); font-size: 11px; color: var(--mute); }
  .dash-card-body { padding: 22px; }

  .donut {
    display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center;
  }
  .donut-legend { font-size: 12px; display: grid; gap: 8px; }
  .donut-legend div { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; color: var(--ink-2); }
  .donut-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
  .donut-legend b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

  .dash-bar {
    display: grid; gap: 12px; font-size: 12px;
  }
  .dash-bar .row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 14px; align-items: center; }
  .dash-bar .row .name { color: var(--ink-2); }
  .dash-bar .track2 { display: block; height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
  .dash-bar .track2 .fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
  .dash-bar .v { font-family: var(--mono); color: var(--ink); font-size: 11px; text-align: right; }

  /* ---------- USE CASES ---------- */
  .usecase-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  }
  @media (max-width: 960px) { .usecase-grid { grid-template-columns: 1fr; } }
  .usecase {
    padding: 32px; border-radius: var(--radius-l); border: 1px solid var(--line);
    background: white;
    display: flex; flex-direction: column; gap: 14px;
    min-height: 340px;
  }
  .usecase .persona {
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent);
  }
  .usecase h3 { margin: 0; font-size: 22px; letter-spacing: -.015em; font-weight: 600; line-height: 1.25; }
  .usecase p { margin: 0; font-size: 14px; color: var(--ink-3); }
  .usecase ul {
    margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
    list-style: none; display: grid; gap: 8px;
  }
  .usecase ul li { font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; }
  .usecase ul li::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent-soft); flex: none; margin-top: 3px;
    border: 3px solid var(--accent);
  }

  /* Persona feature card (big) */
  .feature {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
    border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
    background: white;
  }
  @media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
  .feature-copy {
    padding: 44px 44px;
    background: linear-gradient(145deg, var(--blue-deep) 0%, var(--blue) 50%, var(--magenta) 120%);
    color: white;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 380px;
  }
  .feature-copy h3 { margin: 20px 0 14px; font-size: 30px; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
  .feature-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; max-width: 420px; }
  .feature-copy .eyebrow { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border-color: transparent; }

  .feature-vis { padding: 32px; display: grid; gap: 18px; align-content: center; }
  .feature-vis .tile {
    border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  }
  .feature-vis .tile h5 { margin: 0 0 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
  .feature-vis .tile .val { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
  .feature-vis .tile .sub { font-size: 11px; color: var(--mute); margin-top: 2px; font-family: var(--mono); }

  /* ---------- CREDIBILITY / WHY 1LATTICE ---------- */
  .why-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  }
  @media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
  .why {
    padding: 28px; border-radius: var(--radius-l); border: 1px solid var(--line);
    background: white;
  }
  .why .big {
    font-size: 48px; font-weight: 700; letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--blue), var(--magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
  }
  .why h4 { margin: 14px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
  .why p { margin: 0; font-size: 13px; color: var(--ink-3); }

  /* ---------- CTA ---------- */
  .cta {
    padding: clamp(56px, 7vw, 96px) 0;
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 40%, var(--magenta) 110%);
    color: white; position: relative; overflow: hidden;
  }
  .cta::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .5;
  }
  .cta-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  }
  @media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }
  .cta h2 {
    margin: 10px 0 14px; font-size: clamp(32px, 3.6vw, 54px);
    letter-spacing: -.025em; font-weight: 700; line-height: 1.05;
  }
  .cta p { margin: 0 0 28px; color: rgba(255,255,255,.82); font-size: 17px; max-width: 560px; }
  .cta .eyebrow { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border-color: transparent; }

  .demo-card {
    background: white; color: var(--ink);
    border-radius: var(--radius-l); padding: 32px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.35);
  }
  .demo-card h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
  .demo-card p { margin: 0 0 20px; color: var(--ink-3); font-size: 13px; }
  .field { display: grid; gap: 6px; margin-bottom: 14px; }
  .field label { font-size: 11px; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
  .field input, .field select, .field textarea {
    font-family: var(--font); font-size: 14px;
    padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
    background: white; color: var(--ink); outline: none;
    transition: border-color .2s;
  }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ---------- FOOTER ---------- */
  footer {
    background: #060423; color: rgba(255,255,255,.7);
    padding: 56px 0 32px; font-size: 14px;
  }
  .foot-grid {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px;
  }
  @media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  .foot h5 {
    margin: 0 0 12px; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255,255,255,.5);
    font-family: var(--mono); font-weight: 500;
  }
  .foot a { display: block; color: rgba(255,255,255,.72); padding: 4px 0; }
  .foot a:hover { color: white; }
  .foot-bottom {
    margin-top: 56px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,.5); font-size: 12px; flex-wrap: wrap; gap: 14px;
  }

  /* ---------- TWEAKS PANEL ---------- */
  .tweaks {
    position: fixed; right: 20px; bottom: 20px; z-index: 1000;
    width: 280px;
    background: white; border: 1px solid var(--line);
    border-radius: 16px; padding: 18px;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.4);
    font-size: 13px;
    display: none;
  }
  .tweaks.open { display: block; }
  .tweaks h6 {
    margin: 0 0 12px; font-family: var(--mono); font-size: 11px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  }
  .tweak-row { display: grid; gap: 6px; margin-bottom: 14px; }
  .tweak-row > label { font-size: 11px; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
  .tweak-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
  .tweak-seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-family: var(--font); font-size: 12px; cursor: pointer; color: var(--ink-3); }
  .tweak-seg button.active { background: var(--ink); color: white; }

  /* Alt alternating sections */
  [data-alt="contrast"] section.blk:nth-of-type(even) { background: var(--bg-deep); color: white; --ink: #fff; --ink-2: rgba(255,255,255,.82); --ink-3: rgba(255,255,255,.6); --line: rgba(255,255,255,.12); --line-soft: rgba(255,255,255,.08); }
  [data-alt="contrast"] section.blk:nth-of-type(even) .offer,
  [data-alt="contrast"] section.blk:nth-of-type(even) .spec,
  [data-alt="contrast"] section.blk:nth-of-type(even) .why,
  [data-alt="contrast"] section.blk:nth-of-type(even) .method-step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }

  /* Hero variants */
  [data-hero="gradient"] .hero {
    background: linear-gradient(135deg, #f4f4fb 0%, #fde6f1 100%);
  }
  [data-hero="gradient"] .hero::before { opacity: .25; }

/* ---------- Multi-page helpers ---------- */
.nav-links a.current { color: var(--accent); }
.nav-links a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px;
  height: 2px; background: var(--accent);
}
.page-hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f4f4fb 0%, #fde6f1 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,10,213,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,10,213,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 80% 20%, black 30%, transparent 75%);
  opacity: .7;
}
.page-hero .wrap { position: relative; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: .4; }
.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 5vw, 72px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 700; max-width: 18ch;
  text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p.lede {
  max-width: 640px; font-size: clamp(15px, 1.2vw, 19px);
  color: var(--ink-3); text-wrap: pretty; margin: 0;
}
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }
.ph-stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .ph-stat-row { grid-template-columns: 1fr 1fr; } }
.ph-stat b {
  display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--blue), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ph-stat span { font-size: 12px; color: var(--ink-3); }

/* Cross-page nav cards */
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .next-grid { grid-template-columns: 1fr; } }
.next-card {
  padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-l);
  background: white; transition: border-color .2s, transform .2s;
  display: block;
}
.next-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.next-card .kick { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }
.next-card h4 { margin: 8px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.next-card p { margin: 0; font-size: 13px; color: var(--ink-3); }
.next-card .arrow { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 13px; }

/* Mobile nav */
.nav-toggle { display: none; background: transparent; border: 0; padding: 6px; cursor: pointer; }
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .nav-links.open a { padding: 12px 24px; }
}


/* ---------- Logo ---------- */
/* stacked brand: big logo with "by 1Lattice" underneath */
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 2px; flex: none; text-decoration: none;
  padding: 2px 0;
}
.brand-logo { height: 44px; width: auto; display: block; }
.brand-sub {
  font-family: var(--mono);
  font-size: 10px; color: var(--ink-3); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap; line-height: 1;
  padding-left: 2px;
}
.brand-sub::before { content: none; }
.brand-logo-inv, .brand-logo-invert { filter: brightness(0) invert(1); }
.nav { padding: 4px 0; }
.nav-inner { height: 78px; }
.nav-links { gap: 24px; }
@media (max-width: 720px) { .brand-logo { height: 36px; } .brand-sub { font-size: 9px; } }


/* ---------- Portal effects ---------- */
.portal-card { position: relative; }
.portal-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 200% 0;
  animation: portalSheen 7s ease-in-out infinite;
  mix-blend-mode: overlay; opacity: .7;
}
@keyframes portalSheen {
  0%,15% { background-position: 200% 0; }
  55%,100% { background-position: -120% 0; }
}
.portal-card { animation: portalFloat 8s ease-in-out infinite; }
@keyframes portalFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Live pulse on the "+4.2% QoQ" pill */
.portal-kicker .pill { position: relative; overflow: hidden; }
.portal-kicker .pill::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transform: translateX(-100%);
  animation: pillShine 3.6s ease-in-out infinite;
}
@keyframes pillShine { 0%,60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Animated bar fills */
.portal-bars .bar-row .fill, .dash-bar .track2 .fill {
  transform-origin: left center;
  animation: barGrow 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.portal-bars .bar-row:nth-child(1) .fill { animation-delay: .05s; }
.portal-bars .bar-row:nth-child(2) .fill { animation-delay: .15s; }
.portal-bars .bar-row:nth-child(3) .fill { animation-delay: .25s; }
.portal-bars .bar-row:nth-child(4) .fill { animation-delay: .35s; }
.portal-bars .bar-row:nth-child(5) .fill { animation-delay: .45s; }
@keyframes barGrow {
  from { transform: scaleX(0); opacity: .2; }
  to { transform: scaleX(1); opacity: 1; }
}

/* Ticker dot on big number */
.portal-bignum { position: relative; display: inline-block; padding-right: 12px; }
.portal-bignum::after {
  content: ""; position: absolute; top: 8px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Floating chip animations */
.hero-chip { animation: chipFloat 7s ease-in-out infinite; }
.hero-chip.chip-b { animation-delay: -3s; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Colorful glow behind portal */
.hero-visual::before {
  content: ""; position: absolute; inset: -40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(13,10,213,.25), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(195,16,116,.28), transparent 45%);
  filter: blur(40px); z-index: -1;
  animation: glowShift 10s ease-in-out infinite;
}
@keyframes glowShift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(10px,-10px) scale(1.06); }
}

/* Gradient on sidebar active link */
.portal-side a.active,
.portal-side .portal-side-link.active {
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in oklch, var(--accent-soft) 40%, white));
  position: relative;
}
.portal-side a.active::before,
.portal-side .portal-side-link.active::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--accent); border-radius: 0 3px 3px 0;
}

/* ---------- Page hero: tighter, richer ---------- */
.page-hero { padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 56px); }
.page-hero h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  margin: 14px 0 10px;
  max-width: 22ch;
}
.page-hero p.lede { font-size: clamp(14px, 1.05vw, 17px); }
.page-hero-grid { align-items: center; gap: 40px; }
.ph-stat b { font-size: 24px; }

/* Hero h1 slightly smaller */
h1.hero-title { font-size: clamp(36px, 4.4vw, 62px); }
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
