:root {
    /* Light, alloovium-aligned: white surfaces, black/white text, green ONLY on buttons */
    --bg: #FFFFFF;
    --bg-soft: #F7F7F5;        /* neutral light alt sections */
    --surface: #FFFFFF;
    --ink: #161616;            /* near-black headings/text */
    --ink-soft: #2A2A2A;
    --body: #4B4F56;           /* gray body */
    --muted: #8A8F98;          /* gray labels/headers */
    --rule: #E8E8E5;
    --rule-strong: #D9D9D5;

    /* green = accent for buttons / highlights only */
    --green: #16A34A;
    --green-bright: #22C55E;
    --green-deep: #15803D;
    --grad-green: linear-gradient(120deg, #22C55E, #12A150);

    --max: 1240px;
    --space: 1.5rem;

    /* one display font for headings/UI (alloovium = Chakra Petch); Inter for body */
    --display: "Chakra Petch", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: var(--display);   /* alias kept so legacy heading rules resolve to Chakra */
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "Chakra Petch", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --card-shadow: 0 1px 2px rgba(16,16,16,0.04), 0 14px 34px -22px rgba(16,16,16,0.16);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--sans);
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 16.5px;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  ::selection { background: rgba(34,197,94,0.20); color: var(--ink); }
  .container { max-width: var(--max); margin: 0 auto; padding: 0 var(--space); position: relative; }

  /* --------- NAV --------- */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 1rem var(--space);
    display: flex; align-items: center; justify-content: space-between;
    color: var(--ink);
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--rule);
  }
  .nav .brand { display: inline-flex; align-items: center; line-height: 0; transition: opacity 0.2s ease; }
  .nav .brand:hover { opacity: 0.7; }
  .nav .brand img { height: 32px; width: auto; display: block; }
  .nav nav { display: flex; align-items: center; gap: 1.4rem; font-family: var(--display); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.01em; }
  .nav nav a { color: var(--ink-soft); transition: color 0.2s ease; }
  .nav nav a:hover { color: #000; }
  .nav .loc { font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

  /* --------- HERO (flat white, no glow) --------- */
  .hero { position: relative; overflow: hidden; background: #FFFFFF; color: var(--ink); padding: 9rem 0 4.5rem; }
  .hero-video, .hero-overlay, .hero-grain { display: none !important; }
  .hero-inner {
    position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%; padding: 0 var(--space);
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center;
  }
  @media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; } .hero { padding: 8rem 0 3.5rem; } }
  .kicker { display: none; }
  h1.hero-title {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em;
    margin: 0 0 1.5rem; max-width: 15ch; color: var(--ink);
  }
  h1.hero-title em { font-style: normal; font-weight: inherit; color: var(--ink); }
  .hero-lede { font-family: var(--sans); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--body); max-width: 42ch; margin: 0 0 2.2rem; }
  .hero-ctas { display: inline-flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
  .hero-cta {
    display: inline-flex; align-items: center; gap: 0.6rem;
    border: 1px solid var(--rule-strong); padding: 0.9rem 1.5rem; border-radius: 999px;
    font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink); cursor: pointer; background: #fff;
    transition: background 0.2s ease, border 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
  }
  .hero-cta:hover { border-color: var(--ink); transform: translateY(-1px); }
  .hero-cta .arrow { transition: transform 0.2s ease; }
  .hero-cta:hover .arrow { transform: translateX(3px); }
  .hero-cta.filled { background: var(--grad-green); border-color: transparent; color: #04130D; box-shadow: 0 10px 28px -12px rgba(22,163,74,0.6); }
  .hero-cta.filled:hover { filter: brightness(1.05); transform: translateY(-2px); color: #04130D; }

  /* --------- VIDEO SLOT --------- */
  .hero-media { position: relative; z-index: 2; }
  .video-slot {
    position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
    background: #F2F2F0; border: 1px solid var(--rule); box-shadow: var(--card-shadow);
  }
  .video-slot > video, .video-slot > iframe, .video-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; z-index: 2; }
  .video-slot .slot-label { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; text-align: center; pointer-events: none; }
  .video-slot .slot-play { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-green); color: #04130D; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 10px 28px -10px rgba(22,163,74,0.6); }
  .video-slot .slot-text { font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

  /* --------- VIDEO DEMOS (3 up) --------- */
  .video-demos { background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
  @media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
  .demo-card { display: flex; flex-direction: column; gap: 1rem; text-align: left; appearance: none; background: transparent; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; width: 100%; }
  .demo-card .video-slot { aspect-ratio: 16 / 10; transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease; }
  .demo-card:hover .video-slot, .demo-card:focus-visible .video-slot { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: 0 18px 40px -22px rgba(16,16,16,0.3); }
  .demo-card:focus-visible { outline: none; }
  .demo-card:focus-visible .video-slot { box-shadow: 0 0 0 3px rgba(34,197,94,0.35), 0 18px 40px -22px rgba(16,16,16,0.3); }
  .demo-card .demo-cap .t { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 0 0 0.25rem; }
  .demo-card .demo-cap .d { font-size: 0.92rem; color: var(--muted); margin: 0; }
  /* expand affordance on each demo card */
  .demo-expand { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(16,16,16,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: scale(0.9); transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease; }
  .demo-card:hover .demo-expand, .demo-card:focus-visible .demo-expand { opacity: 1; transform: scale(1); }
  .demo-expand:hover { background: rgba(16,16,16,0.75); }
  @media (hover: none) { .demo-expand { opacity: 1; } }

  /* --------- VIDEO LIGHTBOX MODAL --------- */
  .modal.modal-video { max-width: 980px; padding: 0; overflow: hidden; }
  .modal-video-grid { display: grid; grid-template-columns: 1.35fr 1fr; }
  .modal-video-stage { background: #0C0C0C; display: flex; align-items: center; }
  .modal-video-stage video { width: 100%; height: 100%; max-height: 78vh; object-fit: contain; display: block; background: #0C0C0C; }
  .modal-video-info { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; align-items: flex-start; }
  .modal-video-info h3 { margin: 0 0 0.8rem; }
  .modal-video-info .modal-lede { margin: 0 0 1.4rem; line-height: 1.6; }
  .modal-video-points { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
  .modal-video-points li { position: relative; padding-left: 1.7rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45; }
  .modal-video-points li::before { content: ""; position: absolute; left: 0; top: 0.16em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--grad-green); }
  .modal-video-points li::after { content: "\2713"; position: absolute; left: 0.2rem; top: 0.04em; font-size: 0.64rem; font-weight: 700; color: #04130D; }
  .modal-video .close { z-index: 4; background: rgba(255,255,255,0.92); }
  @media (max-width: 760px) {
    .modal.modal-video { max-width: 100%; }
    .modal-video-grid { grid-template-columns: 1fr; }
    .modal-video-stage video { max-height: 48vh; }
    .modal-video-info { padding: 1.6rem 1.4rem 1.8rem; }
  }

  /* --------- SECTIONS --------- */
  section.block { padding: 7.5rem 0; position: relative; }
  section.block.tight { padding: 5rem 0; }
  .eyebrow {
    font-family: var(--display); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; display: block;
  }
  h2 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: -0.025em;
    color: var(--ink); margin: 0 0 1.4rem; max-width: 22ch;
  }
  h2 em { font-style: normal; font-weight: inherit; color: var(--ink); }
  h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.25; margin: 0 0 0.5rem; color: var(--ink); }
  p { margin: 0 0 1rem; }
  .lede { font-family: var(--sans); font-size: 1.12rem; color: var(--body); line-height: 1.65; max-width: 56ch; }

  /* --------- LOGO CAROUSEL --------- */
  .logos { background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2.8rem 0 3rem; overflow: hidden; }
  .logos .label { font-family: var(--display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 1.8rem; }
  .logo-track-wrap { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
  .logo-track { display: flex; align-items: center; gap: 5rem; width: max-content; animation: scrollLogos 38s linear infinite; }
  .logo-track img { height: 58px; max-width: 175px; width: auto; object-fit: contain; opacity: 0.5; flex: 0 0 auto; filter: grayscale(1); transition: opacity 0.2s ease, filter 0.2s ease; }
  .logo-track img:hover { opacity: 0.9; filter: grayscale(1); }
  .logo-track .ltext { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); opacity: 0.55; padding: 0 0.5rem; white-space: nowrap; }
  @keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* --------- STATEMENT --------- */
  .statement { border-bottom: 1px solid var(--rule); padding: 7.5rem 0; background: var(--bg); }
  .statement h2 { max-width: 24ch; margin-bottom: 2rem; }
  .statement p.body { font-size: 1.12rem; max-width: 60ch; color: var(--body); }
  .statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  @media (max-width: 800px) { .statement-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

  /* --------- PLATFORM (split: text + video side by side) --------- */
  .platform { background: var(--bg-soft); color: var(--body); }
  .platform-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
  @media (max-width: 940px) { .platform-split { grid-template-columns: 1fr; gap: 2.2rem; } }
  .platform-copy .lede { margin-bottom: 0; }
  .bim-frame { margin: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); position: relative; background: #0E1311; box-shadow: var(--card-shadow); }
  .bim-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .bim-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(14,19,17,0.7), rgba(14,19,17,0.92)), repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 40px); color: #E6E6E6; font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-align: center; }
  .bim-fallback::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--green-bright), transparent); animation: scanline 3.6s linear infinite; }
  @keyframes scanline { from { transform: translateY(0); } to { transform: translateY(440px); } }
  .bim-tag { position: absolute; top: 14px; left: 14px; font-family: var(--display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.5); padding: 0.4rem 0.7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.5rem; }
  .bim-tag .pulse { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,0.7); animation: pulse 1.8s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
  .layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.6rem; }
  @media (max-width: 760px) { .layers { grid-template-columns: 1fr; } }
  .layer { border: 1px solid var(--rule); border-radius: 14px; padding: 1.4rem; background: #FFFFFF; position: relative; transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease; }
  .layer:hover { transform: translateY(-4px); }
  .layer:nth-child(1) { background: linear-gradient(165deg, #FFF5EC 0%, #FFFFFF 72%); border-color: rgba(234,138,74,0.22); box-shadow: 0 1px 2px rgba(16,16,16,0.04), 0 24px 50px -28px rgba(234,138,74,0.6); }
  .layer:nth-child(2) { background: linear-gradient(165deg, #ECF4FF 0%, #FFFFFF 72%); border-color: rgba(59,130,246,0.20); box-shadow: 0 1px 2px rgba(16,16,16,0.04), 0 24px 50px -28px rgba(59,130,246,0.55); }
  .layer:nth-child(3) { background: linear-gradient(165deg, #F3ECFF 0%, #FFFFFF 72%); border-color: rgba(139,92,246,0.20); box-shadow: 0 1px 2px rgba(16,16,16,0.04), 0 24px 50px -28px rgba(139,92,246,0.55); }
  .layer .tag { font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
  .layer h3 { color: var(--ink); font-size: 1.25rem; margin-bottom: 0.5rem; }
  .layer p { color: var(--muted); font-size: 0.9rem; margin: 0; }

  /* --------- METRICS --------- */
  .metrics { background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 5rem 0; }
  .metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  @media (max-width: 800px) { .metric-row { grid-template-columns: 1fr; } }
  .metric .stat { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 0.6rem; color: var(--ink); }
  .metric .label { font-family: var(--display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; }
  .metric .desc { font-size: 0.95rem; color: var(--muted); max-width: 28ch; }

  /* --------- CASE STUDIES --------- */
  .case { background: var(--bg); }
  .case h2 { max-width: 22ch; }
  .case .lede { max-width: 50ch; margin-bottom: 2rem; }
  .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
  @media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
  .case-card { border: 1px solid var(--rule); padding: 2rem; border-radius: 16px; display: flex; flex-direction: column; gap: 0.75rem; background: var(--surface); box-shadow: var(--card-shadow); transition: border-color 0.25s ease, transform 0.2s ease; }
  .case-card:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
  .case-card .tag { font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .case-card h3 { font-size: 1.3rem; margin: 0; }
  .case-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
  .case-card .read { font-family: var(--display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-top: auto; }
  .case-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin-left: auto; margin-right: auto; }
  @media (max-width: 820px) { .case-grid.two { grid-template-columns: 1fr; } }
  .case-grid.two .case-card > p { min-height: 6.1rem; }
  .case-card h3 { font-size: 1.45rem; line-height: 1.18; }
  .case-card .case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 0.6rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
  .case-card .case-stats .cs .v { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; }
  .case-card .case-stats .cs .k { font-size: 0.74rem; color: var(--muted); line-height: 1.3; margin-top: 0.25rem; }
  .case-card .case-more { margin-top: auto; align-self: flex-start; font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #04130D; background: var(--grad-green); padding: 0.6rem 1.1rem; border-radius: 999px; transition: filter 0.18s ease, transform 0.15s ease; }
  .case-card .case-more:hover { filter: brightness(1.06); transform: translateY(-1px); }

  /* shared button used across the site */
  .btn-green { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.6rem; background: var(--grad-green); color: #04130D; font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.95rem 1.7rem; border-radius: 999px; box-shadow: 0 10px 28px -12px rgba(22,163,74,0.6); transition: filter 0.18s ease, transform 0.15s ease; text-decoration: none; }
  .btn-green:hover { filter: brightness(1.06); transform: translateY(-2px); }

  /* --------- PRICING → CONTACT (sales-led, deliberately minimal) --------- */
  .contact-cta { background: var(--bg-soft); border-top: 1px solid var(--rule); }
  .contact-cta .container { max-width: 640px; text-align: center; }
  .contact-cta h2 { max-width: none; margin-bottom: 1.1rem; text-wrap: balance; }
  .contact-cta .lede { max-width: 50ch; margin: 0 auto 2.4rem; color: var(--muted); text-wrap: balance; }

  /* --------- MODALS (light) --------- */
  .modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(16,16,16,0.58); display: none; justify-content: center; padding: 1.5rem; opacity: 0; transition: opacity 0.2s ease; overflow-y: auto; }
  .modal-backdrop.is-open { display: flex; opacity: 1; }
  body.modal-open .logo-track,
  body.modal-open .roles ul,
  body.modal-open .bim-fallback::before,
  body.modal-open .bim-tag .pulse { animation-play-state: paused !important; }
  .modal { background: #fff; max-width: 480px; width: 100%; border-radius: 18px; padding: 2.4rem 2.2rem 2rem; position: relative; box-shadow: 0 30px 90px -20px rgba(16,16,16,0.35); margin: auto; color: var(--body); border: 1px solid var(--rule); contain: layout paint; }
  .modal .close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: transparent; border: 0; cursor: pointer; color: #9CA3AF; font-size: 1.3rem; line-height: 1; }
  .modal .close:hover { color: #111; }
  .modal .eyebrow { color: var(--muted); margin-bottom: 0.8rem; }
  .modal h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin: 0 0 0.6rem; color: var(--ink); letter-spacing: -0.02em; }
  .modal p.modal-lede { font-size: 0.95rem; color: var(--muted); margin: 0 0 1.6rem; }
  .modal label { display: block; font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; }
  .modal input, .modal textarea { width: 100%; padding: 0.75rem 0.9rem; font-family: var(--sans); font-size: 0.95rem; border: 1px solid var(--rule-strong); border-radius: 8px; background: #FAFAF9; color: var(--ink); margin-bottom: 1.1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
  .modal input:focus, .modal textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(34,197,94,0.16); }
  .modal textarea { resize: vertical; min-height: 90px; }
  .modal .optional { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-left: 0.4rem; }
  .modal-submit { width: 100%; padding: 0.95rem 1rem; border: 0; border-radius: 8px; background: var(--grad-green); color: #04130D; font-family: var(--display); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: filter 0.18s ease, transform 0.15s ease; }
  .modal-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
  .modal-success { display: none; text-align: center; padding: 1rem 0; }
  .modal-success .check { width: 48px; height: 48px; border-radius: 50%; background: #EAF8EE; color: var(--green-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
  .modal.is-success .modal-form { display: none; }
  .modal.is-success .modal-success { display: block; }

  /* --------- NAV CTA + ACCOUNT CHIP --------- */
  .nav .auth-cta { font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 1.1rem; border: 0; border-radius: 999px; transition: filter 0.18s ease; cursor: pointer; background: var(--grad-green); color: #04130D; }
  .nav .auth-cta:hover { filter: brightness(1.06); }
  .nav .account-chip { display: none; align-items: center; gap: 0.55rem; font-family: var(--display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.9rem 0.35rem 0.35rem; border: 1px solid var(--rule-strong); border-radius: 999px; cursor: pointer; transition: all 0.18s ease; background: #fff; color: var(--ink); }
  .nav .account-chip:hover { border-color: var(--ink); }
  .nav .account-chip .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-green); color: #04130D; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; }
  body.is-authed .account-chip { display: inline-flex; }

  /* --------- LOGIN MODAL --------- */
  .modal.modal-login { max-width: 420px; }
  .modal .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule-strong); border-radius: 8px; margin-bottom: 1.6rem; overflow: hidden; }
  .modal .auth-tabs button { appearance: none; border: 0; background: transparent; font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0.75rem 0.5rem; cursor: pointer; transition: all 0.15s ease; }
  .modal .auth-tabs button.is-active { background: var(--ink); color: #fff; }
  .modal .auth-switch { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 1.1rem 0 0; }
  .modal .auth-switch button { appearance: none; background: transparent; border: 0; cursor: pointer; color: var(--ink); font-family: inherit; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
  .modal .auth-error { display: none; padding: 0.7rem 0.85rem; border-radius: 8px; background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; font-size: 0.85rem; margin-bottom: 1rem; }
  .modal .auth-error.is-visible { display: block; }
  .modal .auth-note { color: var(--muted); font-size: 0.84rem; line-height: 1.45; margin: -0.35rem 0 0.9rem; }
  .signup-code-step, .signup-verify-only { display: none; }
  /* Mode switching (signin / signup / forgot / reset) — each .X-only element
     shows only while data-mode is X. .forgot-hide / .reset-hide hide shared
     fields (email, password, Google) in the modes where they don't apply. */
  .modal-login[data-mode="signin"] .signup-only,
  .modal-login[data-mode="signin"] .forgot-only,
  .modal-login[data-mode="signin"] .reset-only,
  .modal-login[data-mode="signin"] .confirm-password-only,
  .modal-login[data-mode="signup"] .signin-only,
  .modal-login[data-mode="signup"] .forgot-only,
  .modal-login[data-mode="signup"] .reset-only,
  .modal-login[data-mode="forgot"] .signin-only,
  .modal-login[data-mode="forgot"] .signup-only,
  .modal-login[data-mode="forgot"] .reset-only,
  .modal-login[data-mode="forgot"] .confirm-password-only,
  .modal-login[data-mode="forgot"] .forgot-hide,
  .modal-login[data-mode="reset"] .signin-only,
  .modal-login[data-mode="reset"] .signup-only,
  .modal-login[data-mode="reset"] .forgot-only,
  .modal-login[data-mode="reset"] .reset-hide { display: none; }
  .modal-login[data-mode="signup"][data-signup-step="verify"] .signup-code-hide,
  .modal-login[data-mode="signup"][data-signup-step="verify"] .signup-create-label { display: none; }
  .modal-login[data-mode="signup"][data-signup-step="verify"] .signup-code-step { display: block; }
  .modal-login[data-mode="signup"][data-signup-step="verify"] .signup-verify-only { display: inline; }

  .btn-google {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.85rem 1rem; border: 1px solid var(--rule); border-radius: 6px;
    background: #fff; color: var(--ink); cursor: pointer;
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    transition: all 0.18s ease;
  }
  .btn-google:hover { border-color: var(--ink); background: #FAFAF9; }
  .btn-google:disabled { opacity: 0.6; cursor: wait; }
  .btn-google svg { width: 16px; height: 16px; flex: 0 0 auto; }
  .auth-divider {
    display: flex; align-items: center; gap: 0.8rem; margin: 1.2rem 0;
    color: var(--muted); font-family: var(--mono); font-size: 0.62rem;
    letter-spacing: 0.2em; text-transform: uppercase;
  }
  .auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
  .forgot-row { text-align: right; margin: -0.4rem 0 1rem; }
  .forgot-row button {
    appearance: none; background: transparent; border: 0; cursor: pointer; padding: 0;
    color: var(--muted); font-size: 0.8rem; font-family: inherit;
    text-decoration: underline; text-underline-offset: 2px;
  }
  .forgot-row button:hover { color: var(--ink); }

  .privacy-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 920px; margin: 0 auto; padding: 1rem 1rem 1rem 1.1rem;
    background: rgba(255,255,255,0.96); border: 1px solid var(--rule-strong); border-radius: 10px;
    box-shadow: 0 18px 48px -26px rgba(16,16,16,0.34);
  }
  .privacy-banner strong { display: block; font-family: var(--display); color: var(--ink); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
  .privacy-banner p { margin: 0; max-width: 58ch; color: var(--body); font-size: 0.86rem; line-height: 1.45; }
  .privacy-banner-actions { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; justify-content: flex-end; }
  .privacy-banner button, .privacy-banner a {
    border: 1px solid var(--rule-strong); border-radius: 999px; background: #fff; color: var(--ink);
    font-family: var(--display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.62rem 0.85rem; cursor: pointer;
  }
  .privacy-banner button[data-privacy-choice="accept"] { background: var(--grad-green); border-color: transparent; color: #04130D; }
  @media (max-width: 760px) {
    .privacy-banner { flex-direction: column; align-items: stretch; }
    .privacy-banner-actions { justify-content: flex-start; }
  }

  /* --------- ACCOUNT MODAL --------- */
  .modal.modal-account { max-width: 440px; }
  .account-row { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem; }
  .account-row:last-of-type { border-bottom: 0; }
  .account-row .k { font-family: var(--display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .account-row .v { color: var(--ink); font-weight: 500; }
  .account-row .v.plan-badge { background: #EAF8EE; color: var(--green-deep); padding: 0.25rem 0.65rem; border-radius: 999px; font-family: var(--display); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .account-row .v.plan-badge.is-warn { background: #FEF2F2; color: #B91C1C; }
  .account-row .v.plan-badge.is-muted { background: #F3F4F6; color: #6B7280; }
  .account-note {
    display: none; margin: 0.9rem 0 0; padding: 0.7rem 0.85rem; border-radius: 6px;
    font-size: 0.85rem; line-height: 1.45;
    background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  }
  .account-note.is-visible { display: block; }
  .account-note.is-info { background: #F3F4F6; border-color: #E5E7EB; color: #4B5563; }
  .account-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.4rem; }
  .account-actions button { appearance: none; padding: 0.8rem 1rem; border-radius: 8px; cursor: pointer; font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.18s ease; }
  .account-actions .btn-manage { background: var(--grad-green); color: #04130D; border: 0; }
  .account-actions .btn-manage:hover { filter: brightness(1.07); }
  .account-actions .btn-signout { background: #fff; color: var(--muted); border: 1px solid var(--rule-strong); }
  .account-actions .btn-signout:hover { color: var(--ink); border-color: var(--ink); }

  /* --------- BUILT-FOR ROLE CYCLER (black text) --------- */
  .compliance-band { background: #0C0C0C; padding: 7rem 0; border-top: 1px solid #0C0C0C; border-bottom: 1px solid #0C0C0C; }
  .compliance-band .container { text-align: center; }
  .compliance-band .eyebrow { text-align: center; color: rgba(255,255,255,0.55); }
  .compliance-band .lede { margin: 1.6rem auto 0; max-width: 50ch; color: rgba(255,255,255,0.72); }
  .compliance-band .builtfor .static { color: #FFFFFF; }
  .compliance-band .roles li { color: #FFFFFF; }
  .builtfor { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 0 0.85rem; margin: 1.4rem 0 0; --ih: 3.7rem; }
  .builtfor .static { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: calc(var(--ih) * 3); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
  .roles { height: calc(var(--ih) * 3); overflow: hidden; position: relative; flex: 0 0 auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.16) 12%, rgba(0,0,0,0.18) 26%, #000 42%, #000 58%, rgba(0,0,0,0.18) 74%, rgba(0,0,0,0.16) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.16) 12%, rgba(0,0,0,0.18) 26%, #000 42%, #000 58%, rgba(0,0,0,0.18) 74%, rgba(0,0,0,0.16) 88%, transparent 100%); }
  .roles ul { list-style: none; margin: 0; padding: 0; animation: roleCycle 26s cubic-bezier(0.72, 0, 0.28, 1) infinite; will-change: transform; }
  .roles li { height: var(--ih); display: flex; align-items: center; justify-content: center; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -0.01em; color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .roles ul { animation: none; } .roles { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 58%, transparent 100%); } }
  @media (max-width: 860px) { .builtfor { flex-direction: column; flex-wrap: wrap; --ih: 3rem; gap: 0; } .builtfor .static { line-height: 1.3; } }

  /* --------- FOOTER (compact, alloovium-style, black/white) --------- */
  .contact { background: #0C0C0C; color: #FFFFFF; padding: 4.5rem 0 2.5rem; border-top: 1px solid #0C0C0C; }
  .footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; align-items: start; }
  @media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
  @media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
  .footer-brand .fb-mark { height: 30px; width: auto; margin-bottom: 1rem; }
  .footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.62); max-width: 34ch; margin: 0 0 1rem; }
  .footer-brand .fb-loc { font-family: var(--display); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
  .footer-col h4 { font-family: var(--display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 1rem; }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
  .footer-col li a, .footer-col li span { font-size: 0.92rem; color: rgba(255,255,255,0.8); transition: color 0.18s ease; }
  .footer-col li a:hover { color: #FFFFFF; }
  .footer-line { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; font-family: var(--display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
  .footer-line .footer-copy { display: inline-flex; align-items: center; gap: 0.7rem; }
  .footer-line .footer-mark { height: 18px; width: auto; opacity: 0.8; }

  /* legacy contact bits no longer used — neutralised */
  .scroll-hint { display: none; }
  .backers { display: none; }

  /* --------- CASE STUDY ARTICLE PAGES --------- */
  .article { padding: 8.5rem 0 5rem; background: var(--bg); }
  .article .container { max-width: 800px; }
  .article .eyebrow { color: var(--muted); }
  .article h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 1.2rem; }
  .article .article-lede { font-size: 1.2rem; line-height: 1.6; color: var(--body); margin: 0 0 1.5rem; max-width: 64ch; }
  .article .article-sub { font-size: 0.9rem; color: var(--muted); margin: 0; }
  .article h2 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); margin: 2.8rem 0 1rem; max-width: none; }
  .article h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 1.8rem 0 0.6rem; }
  .article p { color: var(--body); line-height: 1.72; margin: 0 0 1.1rem; }
  .article strong { color: var(--ink); font-weight: 700; }
  .article ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--body); line-height: 1.72; }
  .article ul li { margin-bottom: 0.5rem; }
  .article blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; border-left: 3px solid var(--ink); background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
  .article blockquote.note { border-left-color: var(--rule-strong); color: var(--muted); font-size: 0.9rem; }
  .article blockquote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.85rem; color: var(--muted); }
  .article table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: 0.95rem; }
  .article table td, .article table th { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--body); }
  .article table th { font-family: var(--display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .article table td:first-child { font-family: var(--display); font-weight: 600; color: var(--ink); white-space: nowrap; }
  .article .glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1.8rem 0; }
  @media (max-width: 600px) { .article .glance { grid-template-columns: 1fr; } }
  .article .glance .g { border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; background: var(--surface); }
  .article .glance .g .gv { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.15; }
  .article .glance .g .gk { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
  .article-back { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
  .article-back:hover { color: var(--ink); }
  .article-cta { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
  .article-cta .article-back { margin: 0; }

  /* mobile nav simplification */
  @media (max-width: 760px) { .nav nav { gap: 0.7rem; } .nav nav a { display: none; } .nav .loc { display: none; } }

  @keyframes roleCycle {
    0.000%, 6.167% { transform: translateY(calc(var(--ih) * -0)); }
    8.333%, 14.500% { transform: translateY(calc(var(--ih) * -1)); }
    16.667%, 22.833% { transform: translateY(calc(var(--ih) * -2)); }
    25.000%, 31.167% { transform: translateY(calc(var(--ih) * -3)); }
    33.333%, 39.500% { transform: translateY(calc(var(--ih) * -4)); }
    41.667%, 47.833% { transform: translateY(calc(var(--ih) * -5)); }
    50.000%, 56.167% { transform: translateY(calc(var(--ih) * -6)); }
    58.333%, 64.500% { transform: translateY(calc(var(--ih) * -7)); }
    66.667%, 72.833% { transform: translateY(calc(var(--ih) * -8)); }
    75.000%, 81.167% { transform: translateY(calc(var(--ih) * -9)); }
    83.333%, 89.500% { transform: translateY(calc(var(--ih) * -10)); }
    91.667%, 97.833% { transform: translateY(calc(var(--ih) * -11)); }
    100% { transform: translateY(calc(var(--ih) * -12)); }
  }
