
  :root {
    /* Brand from Genio logo */
    --brand-blue: #1FA4E0;        /* light brand blue */
    --brand-blue-2: #1496D3;
    --brand-ink: #003D8F;         /* dark brand blue */
    --brand-ink-2: #002A6B;

    /* Debanding palette — prism / light-refraction reference */
    --g-cobalt:  #1E40FF;       /* hero dominant electric blue */
    --g-blue:    #2547FF;
    --g-cyan:    #5BC0FF;       /* edge transition off the cobalt */
    --g-violet:  #8B6FFF;
    --g-pink:    #FFB8E0;
    --g-magenta: #FF7AC4;
    --g-coral:   #FFA078;
    --g-peach:   #FFC79A;
    --g-lemon:   #FFE680;
    --g-mint:    #C8E88A;

    --cream: #FFFFFF;             /* page background — pure white */
    --cream-2: #F7F7F7;           /* subtle off-white for alternating sections */
    --ink: #0D1E4E;               /* brand navy for body text */
    --ink-soft: #1B2747;
    --muted: #5A6378;
    --line: rgba(14,23,48,0.12);
    --line-2: rgba(14,23,48,0.06);

    --max: 1280px;
    --pad-x: 80px;

    /* Brand accent — arancio chiaro per filetti, hamburger, bordi accent */
    --brand-accent: #FFAA81;
    --brand-accent-soft: rgba(255, 170, 129, 0.55);

    /* Shadow per elementi su sfondo blu (logo + testo bianco) */
    --shadow-on-blue: 0 0 40px rgba(9, 71, 141, 0.40), 0 0 16px rgba(9, 71, 141, 0.40);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background-color: var(--cream);
    background-image: url("debanding-new.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    background-attachment: scroll;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  .container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

  /* ======================================================================
     TYPE SYSTEM — per brand: ALL CAPS semibold w/ wide tracking on titles
     ====================================================================== */
  .title-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;       /* 80pt */
    line-height: 0.95;
    font-size: clamp(72px, 8.4vw, 132px);
    color: var(--ink);
    margin: 0;
  }
  .title-xl {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.0;
    font-size: clamp(56px, 6vw, 88px);
    color: var(--ink);
    margin: 0;
  }
  .title-md {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.1;
    font-size: 40px;
    color: var(--ink);
    margin: 0;
  }
  .title-sm {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.15;
    font-size: 22px;
    color: var(--ink);
    margin: 0;
  }
  /* Body: medium/semibold, 100pt tracking */
  .body-lg {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    margin: 0;
  }
  .body-md {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    margin: 0;
  }
  .body-sm {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 0;
  }

  /* Italic accent — Montserrat italic, brand blue */
  .ital {
    font-style: italic;
    font-weight: 600;
    color: var(--brand-blue);
  }

  /* RGB-gradient text fill */
  .grad-text {
    background: linear-gradient(96deg, var(--g-cobalt) 0%, var(--g-magenta) 35%, var(--g-coral) 60%, var(--g-lemon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .grad-text-cool {
    background: linear-gradient(96deg, var(--brand-ink) 0%, var(--g-cobalt) 50%, var(--g-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* ======================================================================
     LABEL PILLS — boxy with monospace tag prefix (inspired by [SERIES A])
     ====================================================================== */
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 14px;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
  }
  .tag .mono {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: var(--ink);
    color: var(--cream);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
  }
  .tag.dark { background: rgba(14,23,48,0.85); color: var(--cream); border-color: rgba(255,255,255,0.12); }
  .tag.dark .mono { background: var(--cream); color: var(--ink); }

  /* ======================================================================
     BUTTONS
     ====================================================================== */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    height: 60px; padding: 0 30px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
  }
  .btn .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
  }
  .btn-primary {
    background: var(--ink); color: var(--cream);
    box-shadow: 0 14px 32px -16px rgba(14,23,48,0.6);
  }
  .btn-primary:hover { background: var(--brand-ink); transform: translateY(-2px); }
  .btn-nav-cta {
    background: #FFFFFF; color: rgb(13, 30, 78);
    border: 1.5px solid var(--brand-accent);
    box-shadow: none;
    flex-direction: row-reverse; /* dot a destra */
  }
  .btn-nav-cta:hover { background: rgb(13, 30, 78); color: var(--cream); border-color: rgb(13, 30, 78); transform: translateY(-1px); }
  .btn-nav-cta .dot { background: var(--brand-accent); box-shadow: 0 0 0 4px rgba(242, 161, 113, 0.22); }
  .btn-nav-cta:hover .dot { background: var(--cream); box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
  .btn-ghost:hover { background: var(--ink); color: var(--cream); }
  .btn-sm { height: 44px; padding: 0 22px; font-size: 11px; }

  /* ======================================================================
     DEBANDING — brand gradient image (assets/debanding.jpg) used directly
     ====================================================================== */
  .deband {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .deband .blob { display: none; } /* legacy blob system, no longer used */

  .deband-hero {
    /* Sfondo principale ora vive sul <body> per coprire anche la nav.
       Questo strato resta solo per la pergamena (grain) e per la scrim. */
    background: transparent;
  }
  /* Mirror the gradient on the closing CTA for visual variety */
  .deband-closing {
    background-image: url("debanding-new.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform: scaleX(-1);
  }

  /* Readability scrim: a soft cream radial behind the title area */
  .deband-hero .scrim {
    position: absolute;
    left: 12%; top: 14%; width: 70%; height: 58%;
    background: radial-gradient(58% 55% at 50% 50%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 80%);
    filter: blur(40px);
    pointer-events: none;
  }
  .deband-closing .scrim {
    position: absolute;
    left: 14%; top: 18%; width: 70%; height: 56%;
    background: radial-gradient(58% 55% at 50% 50%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 80%);
    filter: blur(40px);
    pointer-events: none;
  }
  /* Subtle grain on top of debanding for noise/texture */
  .grain {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    opacity: 0.05; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  }

  /* ======================================================================
     NAVIGATION
     ====================================================================== */
  .nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    background: transparent;
    border-bottom: 1px solid var(--brand-accent);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 48px;
    height: 80px;
    max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x);
  }
  .nav-logo {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
  }
  .nav-logo img {
    height: auto;
    width: 250px;
    display: block;
    max-width: none;
  }
  .nav-links {
    display: flex; gap: 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .nav-links a { padding: 8px 0; position: relative; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--g-magenta), var(--brand-blue));
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
  }
  .nav-links a:hover::after { transform: scaleX(1); }

  /* ======================================================================
     HERO
     ====================================================================== */
  /* Make hero taller so the gradient has room to breathe */
  .hero {
    position: relative; overflow: hidden;
    padding: 140px 0 160px;
    isolation: isolate;
    min-height: 880px;
  }
  .hero-bg { background: transparent; }
  .hero-inner { position: relative; z-index: 2; }

  .hero-claim {
    margin: 64px 0 0;
  }
  .hero-claim .line { display: block; }
  .hero-claim .accent {
    color: transparent;
    background: linear-gradient(96deg, var(--g-magenta) 0%, var(--g-coral) 35%, var(--g-peach) 60%, var(--g-lemon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .hero-sub {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: 120px;
    align-items: end;
  }
  .hero-sub p { max-width: 520px; color: var(--ink); font-weight: 500; }
  .hero-sub .cta-row { display: flex; justify-content: flex-end; }

  /* Hero stats — big display numbers in cream cards on the deband */
  .hero-stats {
    margin-top: 120px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
  }
  .stat {
    padding: 32px 28px 28px;
    background: rgba(255, 255, 255, 0.533);
    border: 2px solid rgb(255, 161, 120);
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
  .stat-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em;
    background: var(--ink); color: var(--cream);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .stat-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 56px;
    letter-spacing: -0.02em;
    line-height: 1;
    min-height: 56px;
    display: flex;
    align-items: center;
    color: var(--ink);
    margin: 0;
  }
  .stat-num.grad {
    background: linear-gradient(120deg, var(--g-magenta), var(--g-peach));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .stat-label {
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ======================================================================
     LOGOS STRIP
     ====================================================================== */
  .strip { padding: 80px 0 88px; background: transparent; position: relative; z-index: 1; }
  .strip-eyebrow {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 40px;
  }
  .strip-logos {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; align-items: center;
  }
  .strip-logos .slot {
    height: 64px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 8px;
  }
  .strip-logos .slot img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0.95);
    opacity: 0.55;
    transition: filter .3s ease, opacity .3s ease;
  }
  .strip-logos .slot:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
  }
  .logo-slot {
    height: 56px; border-radius: 12px;
    background: rgba(14,23,48,0.04);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 11px; letter-spacing: 0.05em;
  }
  .strip-foot {
    text-align: center;
    margin-top: 40px;
    color: var(--muted);
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  /* ======================================================================
     GENERIC SECTION
     ====================================================================== */
  .section { padding: 96px 0; position: relative; }
  .bg-cream { background: var(--cream); }
  .bg-cream-2 { background: var(--cream-2); }

  .section-head {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 64px;
  }
  .section-head .lead { max-width: 640px; }
  .section-head .title-xl {
    font-size: clamp(48px, 5vw, 72px);
  }

  /* ======================================================================
     PROBLEMA — soft deband wash, cards minimal
     ====================================================================== */
  .problem-section { position: relative; overflow: hidden; isolation: isolate; }
  .problem-section .deband-soft {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
  }
  .problem-section .deband-soft::before {
    content: ""; position: absolute;
    right: -20%; top: -10%; width: 70%; height: 80%;
    background:
      radial-gradient(50% 50% at 40% 40%, var(--g-lemon) 0%, transparent 70%),
      radial-gradient(50% 50% at 70% 70%, var(--g-peach) 0%, transparent 70%);
    filter: blur(120px); opacity: 0.5;
  }
  .problem-section > .container { position: relative; z-index: 2; }

  .problem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .pcard {
    position: relative;
    background: rgba(255, 255, 255, 0.533);
    border: 2px solid rgb(255, 161, 120);
    border-radius: 24px;
    padding: 36px 32px 32px;
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column;
    min-height: 460px;
    overflow: hidden;
  }
  .pcard .pcard-num {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em;
    background: var(--ink); color: var(--cream);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 24px;
    align-self: flex-start;
  }
  .pcard h3 {
    margin: 0 0 20px;
    font-size: 22px;
  }
  .pcard .pbody {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin: 0;
  }
  .pcard .divider {
    margin: 28px 0 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
  }
  .pcard .resp-label {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 10px;
  }
  .pcard .resp {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 0;
  }

  /* ======================================================================
     METODO — three pillars
     ====================================================================== */
  .method-pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px;
    margin-top: 88px;
  }
  .pillar { display: flex; flex-direction: column; gap: 18px; }
  .pillar-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--cream);
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .pillar-icon::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--g-violet), var(--g-magenta), var(--g-coral));
    opacity: 0; transition: opacity .3s ease;
  }
  .pillar:hover .pillar-icon::before { opacity: 1; }
  .pillar-icon svg { position: relative; z-index: 1; }
  .pillar h4 { margin: 0; font-size: 18px; }
  .pillar p { margin: 0; }

  /* ======================================================================
     AREE — 4 cards, vivid top border, soft gradient bg per card
     ====================================================================== */
  .aree-section { position: relative; overflow: hidden; isolation: isolate; }
  .aree-section .deband-soft {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  }
  .aree-section .deband-soft::before {
    content: ""; position: absolute;
    left: -15%; bottom: -20%; width: 65%; height: 90%;
    background:
      radial-gradient(50% 50% at 30% 50%, var(--g-blue) 0%, transparent 70%),
      radial-gradient(50% 50% at 70% 80%, var(--g-violet) 0%, transparent 70%);
    filter: blur(120px); opacity: 0.5;
  }
  .aree-section > .container { position: relative; z-index: 2; }

  .aree-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .acard {
    position: relative;
    background: rgba(255, 255, 255, 0.533);
    border: 2px solid rgb(255, 161, 120);
    border-radius: 24px;
    padding: 40px 36px 32px;
    display: flex; flex-direction: column;
    min-height: 320px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    backdrop-filter: blur(10px);
  }
  .acard::before {
    content: ""; position: absolute; inset: -50% -40% auto auto;
    width: 320px; height: 320px;
    border-radius: 50%;
    filter: blur(80px); opacity: 0.4;
    transition: opacity .3s ease, transform .4s ease;
    pointer-events: none;
  }
  .acard.a1::before { background: radial-gradient(circle, var(--g-magenta), transparent 70%); }
  .acard.a2::before { background: radial-gradient(circle, var(--g-blue), transparent 70%); }
  .acard.a3::before { background: radial-gradient(circle, var(--g-peach), transparent 70%); }
  .acard.a4::before { background: radial-gradient(circle, var(--g-lemon), transparent 70%); }
  .acard:hover { transform: translateY(-4px); }
  .acard:hover::before { opacity: 0.7; transform: scale(1.1); }
  .acard > * { position: relative; z-index: 1; }

  .acard .acard-tag {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em;
    background: var(--ink); color: var(--cream);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 18px;
    align-self: flex-start;
  }
  .acard h3 { margin: 0 0 18px; font-size: 24px; }
  .acard .promise {
    color: var(--ink); font-weight: 600;
    font-size: 15px; line-height: 1.5;
    letter-spacing: 0.05em;
    margin: 0 0 14px;
  }
  .acard .desc {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin: 0;
  }
  .acard .more {
    margin-top: auto; padding-top: 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-blue);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .acard .more .arrow { transition: transform .25s ease; }
  .acard:hover .more .arrow { transform: translateX(5px); }

  /* ======================================================================
     CASI — split: left text, right dark vivid card
     ====================================================================== */
  .case-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
  .case-wrap .title-xl {
    font-size: clamp(44px, 4.4vw, 60px);
  }
  .case-wrap .title-xl .grad-text { white-space: nowrap; }
  .case-card {
    position: relative; overflow: hidden;
    background: #08102A;
    color: var(--cream);
    border-radius: 28px;
    padding: 48px 44px 40px;
    min-height: 420px;
    display: flex; flex-direction: column;
    isolation: isolate;
  }
  .case-card::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
      radial-gradient(55% 55% at 80% 15%, var(--g-violet) 0%, transparent 60%),
      radial-gradient(45% 50% at 100% 100%, var(--g-magenta) 0%, transparent 60%),
      radial-gradient(35% 45% at 0% 75%, var(--brand-blue) 0%, transparent 60%);
    filter: blur(40px); opacity: 0.7;
  }
  .case-card > * { position: relative; z-index: 1; }
  .case-card .tag.dark { background: rgba(255,255,255,0.08); color: var(--cream); border-color: rgba(255,255,255,0.16); margin-bottom: 24px; }
  .case-card .who {
    font-size: 13.5px; line-height: 1.6; opacity: 0.7;
    letter-spacing: 0.08em; margin: 0 0 32px;
    font-weight: 500;
  }
  .case-card .ctitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.22;
    font-size: 20px;
    color: var(--cream);
    margin: 0 0 40px;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
  }
  .case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: auto; }
  .case-metrics > div { padding-right: 12px; }
  .case-metrics .m-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px; font-weight: 600;
    line-height: 1; letter-spacing: -0.01em;
    background: linear-gradient(120deg, var(--g-lemon), var(--g-peach), var(--g-magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: 4px;
    display: inline-block;
  }
  .case-metrics .m-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 12px;
  }
  .case-link {
    margin-top: 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--g-lemon);
    display: inline-flex; align-items: center; gap: 8px;
  }

  /* ======================================================================
     PER CHI
     ====================================================================== */
  .perchi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 60px; margin-top: 80px; }
  .perchi-col .accent-line {
    width: 64px; height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--g-magenta));
    margin-bottom: 28px;
  }
  .perchi-col h4 { margin: 0 0 20px; font-size: 22px; }
  .perchi-col p { margin: 0 0 28px; color: var(--ink-soft); }
  .perchi-col .link {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-blue);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .perchi-col .link .arrow-i { transition: transform .25s ease; }
  .perchi-col .link:hover .arrow-i { transform: translateX(5px); }

  /* ======================================================================
     CLOSING CTA — full deband wash
     ====================================================================== */
  .closing {
    position: relative; overflow: hidden;
    padding: 160px 0;
    text-align: center;
    isolation: isolate;
    background: var(--cream);
  }
  .closing-inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 var(--pad-x); }
  .closing .tag { margin-bottom: 40px; }
  .closing h2 { color: var(--ink); }
  .closing p {
    margin: 36px auto 0;
    max-width: 720px;
    color: var(--ink);
    font-weight: 500;
  }
  .closing .btn { margin-top: 48px; }

  /* ======================================================================
     FOOTER
     ====================================================================== */
  .footer {
    background: #08102A;
    color: var(--cream);
    padding: 96px 0 40px;
    position: relative; overflow: hidden;
  }
  .footer::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(40% 60% at 0% 0%, var(--g-violet) 0%, transparent 60%),
      radial-gradient(45% 60% at 100% 100%, var(--g-magenta) 0%, transparent 60%);
    filter: blur(60px); opacity: 0.35;
  }
  .footer .container { position: relative; z-index: 1; }
  .footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 56px; align-items: start;
  }
  .footer-logo { display: inline-flex; align-items: center; padding: 0; margin-top: 1px; }
  .footer-logo img { width: 160px; height: auto; display: block; }
  .footer-tag {
    margin-top: 14px;
    font-size: 13px; line-height: 1.6;
    letter-spacing: 0.08em;
    opacity: 0.72;
    max-width: 280px;
    font-weight: 500;
  }
  .footer h6 {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0 0 22px;
    color: var(--cream);
  }
  .footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
  .footer li {
    font-size: 13px; opacity: 0.85;
    letter-spacing: 0.08em;
    font-weight: 500;
  }
  .footer li a:hover { opacity: 1; color: var(--g-lemon); }
  .footer .li-visit { opacity: 1; margin-top: 8px; }
  .footer .li-visit a { display: inline-flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer .li-visit-label {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    opacity: 0.65; white-space: nowrap;
  }
  .footer .li-visit img {
    width: 94px; height: auto; display: block;
    filter: brightness(0) invert(1); opacity: 0.9;
    transition: opacity .25s ease, transform .25s ease;
  }
  .footer .li-visit a:hover img { opacity: 1; transform: translateX(2px); }
  .footer-bot {
    margin-top: 88px; padding-top: 28px;
    border-top: 1px solid rgba(245,241,232,0.15);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px;
    letter-spacing: 0.12em;
    opacity: 0.55;
    text-transform: uppercase;
    font-weight: 500;
  }

  .arrow-i { display: inline-block; transition: transform .25s ease; }

  /* ======================================================================
     Responsive
     ====================================================================== */
  @media (max-width: 1024px) {
    :root { --pad-x: 32px; }
    .nav-links { display: none; }
    .nav-burger { display: inline-flex; }
    .hero { min-height: auto; padding: 132px 0 110px; }
    .hero-sub { grid-template-columns: 1fr; row-gap: 40px; column-gap: 0; }
    .hero-sub .cta-row { justify-content: flex-start; }
    .hero-stats { grid-template-columns: repeat(2,1fr); }
    .strip-logos { grid-template-columns: repeat(3,1fr); row-gap: 28px; }
    .problem-grid { grid-template-columns: 1fr; }
    .aree-grid { grid-template-columns: 1fr; }
    .case-wrap { grid-template-columns: 1fr; gap: 48px; }
    .method-pillars { grid-template-columns: 1fr; gap: 40px; }
    .perchi-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }



    :root {
      --palette-filter: brightness(1);
      --intensity-filter: saturate(1);
      --deband-opacity: 1;
      --scrim-alpha: 0.78;
    }
    .deband-hero, .deband-closing {
      filter: var(--palette-filter) var(--intensity-filter);
      opacity: var(--deband-opacity);
      transition: filter .35s ease, opacity .35s ease;
    }
    .deband-hero .scrim, .deband-closing .scrim {
      background: radial-gradient(58% 55% at 50% 50%, rgba(255,255,255,var(--scrim-alpha)) 0%, rgba(255,255,255,0) 80%);
    }

    /* ---- Palette tweaks ---- */
    html[data-palette="cobalt"]   { --palette-filter: saturate(0.55) brightness(1.02); }
    html[data-palette="sunset"]   { --palette-filter: hue-rotate(165deg) saturate(1.15); }
    html[data-palette="night"]    { --palette-filter: brightness(0.62) saturate(1.3); --scrim-alpha: 0; }

    /* Night mode — full theme inversion */
    html[data-palette="night"] {
      --cream:    #0A1024;
      --cream-2:  #060920;
      --ink:      #F5F1E8;
      --ink-soft: #DCD8CD;
      --muted:    #8089A0;
      --line:     rgba(245,241,232,0.14);
      --line-2:   rgba(245,241,232,0.06);
    }
    html[data-palette="night"] body { background: var(--cream); }
    html[data-palette="night"] .nav { background: rgba(10,16,36,0.78); border-bottom-color: rgba(245,241,232,0.08); }
    html[data-palette="night"] .nav-links { color: var(--cream); }
    html[data-palette="night"] .nav-logo img { filter: brightness(0) invert(1); }
    html[data-palette="night"] .nav-burger span { background: var(--cream); }
    html[data-palette="night"] .strip { background: var(--cream); }
    html[data-palette="night"] .logo-slot { background: rgba(245,241,232,0.05); color: rgba(245,241,232,0.5); }
    html[data-palette="night"] .pcard,
    html[data-palette="night"] .acard,
    html[data-palette="night"] .stat,
    html[data-palette="night"] .tag {
      background: rgba(245,241,232,0.05);
      border-color: rgba(245,241,232,0.12);
      backdrop-filter: blur(12px);
    }
    html[data-palette="night"] .pcard .pcard-num,
    html[data-palette="night"] .acard .acard-tag,
    html[data-palette="night"] .stat-tag,
    html[data-palette="night"] .tag .mono {
      background: var(--ink); color: var(--cream);
    }
    html[data-palette="night"] .btn-primary { background: var(--ink); color: var(--cream); }
    html[data-palette="night"] .btn-primary:hover { background: var(--brand-blue); color: var(--ink); }
    html[data-palette="night"] .btn-ghost { color: var(--ink); border-color: var(--ink); }
    html[data-palette="night"] .btn-ghost:hover { background: var(--ink); color: var(--cream); }
    html[data-palette="night"] .pillar-icon { background: rgba(245,241,232,0.1); color: var(--ink); }
    html[data-palette="night"] .case-card { background: rgba(10,16,36,0.6); border: 1px solid rgba(245,241,232,0.08); }

    /* ---- Intensity tweaks ---- */
    html[data-intensity="soft"]   { --deband-opacity: 0.55; --scrim-alpha: 0.4; }
    html[data-intensity="loud"]   { --intensity-filter: saturate(1.4) contrast(1.06); --scrim-alpha: 0.55; }

    /* ---- Typography tweaks: Umano (mixed-case, tight tracking) ---- */
    html[data-type="human"] .title-display,
    html[data-type="human"] .title-xl,
    html[data-type="human"] .title-md,
    html[data-type="human"] .title-sm {
      text-transform: none;
      letter-spacing: -0.02em;
      font-weight: 700;
      line-height: 1.05;
    }
    html[data-type="human"] .title-display { font-size: clamp(56px, 6.4vw, 104px); }
    html[data-type="human"] .title-xl      { font-size: clamp(44px, 4.6vw, 68px); }
    html[data-type="human"] .title-md      { font-size: 38px; }
    html[data-type="human"] .title-sm      { font-size: 22px; letter-spacing: -0.01em; }
    html[data-type="human"] .body-lg,
    html[data-type="human"] .body-md,
    html[data-type="human"] .body-sm { letter-spacing: 0.005em; }
    html[data-type="human"] .nav-links a { text-transform: none; letter-spacing: 0.005em; font-size: 14px; font-weight: 500; }
    html[data-type="human"] .btn { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
    html[data-type="human"] .ital { font-weight: 500; }

    /* =================================================================
       MENU STYLE TWEAKS
       ================================================================= */
    /* Centered links: nav-inner becomes positioning context, links absolutely centered */
    html[data-menu="centered"] .nav-inner { position: relative; }
    html[data-menu="centered"] .nav-links {
      position: absolute; left: 50%; top: 50%;
      transform: translate(-50%, -50%);
    }

    /* Hamburger: hide inline links, show burger button */
    html[data-menu="hamburger"] .nav-links { display: none; }
    html[data-menu="hamburger"] .nav-burger { display: inline-flex; order: 1; }
    html[data-menu="hamburger"] .nav .btn-nav-cta { order: 2; }

    /* Minimal: just logo + CTA, nothing in the middle */
    html[data-menu="minimal"] .nav-links { display: none; }

    /* Hamburger button */
    .nav-burger {
      display: none;
      appearance: none; border: 0; background: transparent;
      width: 48px; height: 48px;
      position: relative;
      cursor: pointer;
      padding: 0;
      align-items: center; justify-content: center;
    }
    .nav-burger span {
      display: block;
      position: absolute; left: 10px; right: 10px;
      height: 2px;
      background: var(--brand-accent);
      transition: transform .3s ease, opacity .25s ease, top .3s ease, background .25s ease;
    }
    .nav-burger span:nth-child(1) { top: 17px; }
    .nav-burger span:nth-child(2) { top: 23px; }
    .nav-burger span:nth-child(3) { top: 29px; }
    body.nav-open .nav-burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
    body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

    /* Close (X) button — top right of fullscreen menu */
    .nav-close {
      position: absolute;
      top: 28px; right: 32px;
      width: 48px; height: 48px;
      appearance: none; border: 0; background: transparent;
      cursor: pointer; padding: 0;
      z-index: 2;
      opacity: 0;
      transform: rotate(-90deg) scale(0.85);
      transition: opacity .35s ease .15s, transform .45s cubic-bezier(.22,1,.36,1) .1s;
    }
    body.nav-open .nav-close { opacity: 1; transform: rotate(0) scale(1); }
    .nav-close span {
      position: absolute;
      left: 10px; right: 10px;
      top: 50%;
      height: 2px;
      background: var(--brand-accent);
      border-radius: 2px;
    }
    .nav-close span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
    .nav-close span:nth-child(2) { transform: translateY(-50%) rotate(-45deg); }
    .nav-close:hover span { background: var(--cream); }

    /* Fullscreen menu overlay */
    .nav-overlay {
      position: fixed; inset: 0;
      background: var(--ink);
      z-index: 49;
      display: flex; align-items: center; justify-content: center;
      opacity: 0;
      visibility: hidden;
      transform: scale(1.04);
      transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s;
      overflow: hidden;
    }
    body.nav-open .nav-overlay {
      opacity: 1; visibility: visible; transform: scale(1);
      transition: opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1), visibility 0s;
    }
    .nav-overlay-bg {
      position: absolute; inset: 0;
      background-image: url("debanding-new.jpg");
      background-size: cover;
      background-position: center;
      opacity: 0.4;
      pointer-events: none;
    }
    .nav-overlay-list {
      position: relative;
      display: flex; flex-direction: column;
      gap: 18px;
      text-align: center;
      padding: 0 32px;
    }
    .nav-overlay-list a {
      font-family: 'Montserrat', sans-serif;
      font-size: clamp(36px, 5.4vw, 76px);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--cream);
      line-height: 1.05;
      padding: 6px 0;
      transition: opacity .25s ease;
      opacity: 0.85;
    }
    .nav-overlay-list a:hover {
      opacity: 1;
      background: linear-gradient(96deg, var(--g-cobalt), var(--g-magenta), var(--g-lemon));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    html[data-type="human"] .nav-overlay-list a { text-transform: none; letter-spacing: -0.01em; font-weight: 700; }
  

  /* ======================================================================
     PHONE TIER (≤ 600px) — placed last so it wins the cascade
     ====================================================================== */
  @media (max-width: 600px) {
    :root { --pad-x: 20px; }

    /* Nav: compact logo, hide inline CTA (reachable from the menu) */
    .nav-inner { gap: 14px; }
    .nav-logo img { width: 164px !important; }
    .nav .btn-nav-cta { display: none; }

    /* Hero */
    .hero { padding: 100px 0 56px; }
    .hero-claim { margin: 32px 0 0; }
    .hero-sub { margin-top: 40px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 52px; }

    /* Logos strip */
    .strip { padding: 48px 0 52px; }
    .strip-logos { grid-template-columns: repeat(2,1fr); gap: 24px; }
    .strip-foot { margin-top: 28px; }

    /* Generic sections */
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 36px; }
    .section-head .title-xl { font-size: clamp(32px, 9vw, 64px); }
    .case-metrics { gap: 24px; }
    .closing { padding: 76px 0; }

    /* Footer */
    .footer { padding: 60px 0 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .footer-tag { max-width: none; }
    .footer-bot { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 44px; }

    /* Display type down a notch on phones */
    html[data-type="human"] .title-display { font-size: clamp(38px, 11vw, 104px); }
    html[data-type="human"] .title-xl      { font-size: clamp(32px, 9vw, 68px); }
    html[data-type="human"] .title-md      { font-size: 28px; }
  }
