  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --parch: #ede5d0;
    --parch-alt: #e3d9c0;
    --dark: #3d2e18;
    --dark-mid: #4a3820;
    --text-on-light: #1c150a;
    --text-soft-light: #6b5535;
    --text-on-dark: #f0e9d8;
    --text-soft-dark: #c4aa80;
    --gold: #b8860b;
    --gold-bright: #d4a820;
    --serif: 'Playfair Display', Georgia, serif;
    --serif-body: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--parch);
    color: var(--text-on-light);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
  }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    background: rgba(240,233,216,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 0.5px solid #d6c9a8;
  }

  .logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-on-light);
    text-decoration: none;
  }

  .logo span { color: var(--gold); }

  nav ul { list-style: none; display: flex; gap: 2.5rem; }

  nav a {
    color: var(--text-soft-light);
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  nav a:hover { color: var(--text-on-light); }

  .hero {
    min-height: 155vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 8rem 3rem 5rem;
    position: relative;
    overflow: hidden;
    background: var(--parch);
    isolation: isolate;
  }

  .scroll-visual-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }

  .scroll-visual {
    --item-progress: 0;
    --item-presence: 0;
    --scroll-dir: 1;
    position: fixed;
    top: 66vh;
    width: clamp(390px, 34vw, 660px);
    aspect-ratio: 800 / 564;
    border: 1px solid rgba(184, 168, 130, 0.52);
    overflow: hidden;
    background: rgba(245, 240, 228, 0.72);
    box-shadow:
      0 42px 110px rgba(61, 46, 24, 0.19),
      0 16px 44px rgba(61, 46, 24, 0.11);
    opacity: calc(var(--item-presence) * 0.92);
    transform:
      translate3d(
        calc(var(--scroll-dir) * (110px - var(--item-progress) * 520px)),
        -50%,
        0
      )
      scale(calc(0.82 + var(--item-progress) * 0.32));
    transition: opacity 0.18s linear, transform 0.18s linear;
    will-change: opacity, transform;
  }

  .scroll-visual-left {
    --scroll-dir: -1;
    left: max(-18rem, calc((100vw - 1540px) / 2 - 14rem));
  }

  .scroll-visual-right {
    --scroll-dir: 1;
    right: max(-18rem, calc((100vw - 1540px) / 2 - 14rem));
    aspect-ratio: 1854 / 1309;
    top: 66vh;
  }

  .scroll-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .scroll-visual.is-anchored {
    position: absolute;
    top: var(--anchored-top);
    left: var(--anchored-left);
    right: auto;
    width: var(--anchored-width);
    height: var(--anchored-height);
    opacity: 0.92;
    transform: none;
    transition: none;
  }

  .hero-copy {
    width: min(100%, 720px);
    min-height: calc(100vh - 13rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 6rem;
    z-index: 3;
    margin: 0 auto;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,134,11,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-eyebrow {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 0.5px;
    background: var(--gold);
  }

  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.01em;
    max-width: 820px;
    margin-bottom: 2.5rem;
    color: var(--text-on-light);
  }

  .hero h1 em { font-style: italic; color: var(--gold); }

  .hero-sub {
    font-family: var(--serif-body);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-soft-light);
    max-width: 520px;
    margin-bottom: 3.5rem;
    line-height: 1.65;
    text-align: center;
  }

  .hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dark);
    color: var(--parch);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    transition: background 0.2s, transform 0.15s;
  }

  .btn-primary:hover { background: var(--dark-mid); transform: translateY(-1px); }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-soft-light);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.9rem 1.5rem;
    border: 0.5px solid #b8a882;
    transition: color 0.2s, border-color 0.2s;
  }

  .btn-secondary:hover { color: var(--text-on-light); border-color: var(--text-soft-light); }

  .hero-note {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--text-soft-light);
    letter-spacing: 0.03em;
  }

  .scroll-line { display: none; }

  .divider {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 3rem;
    margin: 0 0 5rem;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: #c8ba98;
  }
  .divider-mark { font-family: var(--serif); font-size: 1rem; color: #c8ba98; }

  section { padding: 6rem 3rem; }

  .section-label {
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* FEATURES — fond sombre */
  .features {
    background: #e8dfc8;
    color: var(--text-on-light);
    padding: 9rem 3rem 6rem;
  }

  .features .section-title { color: var(--text-on-light); }

  .features-intro {
    max-width: 560px;
    margin: 0 auto 3rem;
    text-align: center;
  }

  .features-intro p {
    font-family: var(--serif-body);
    font-size: 1.25rem;
    color: var(--text-soft-light);
    font-weight: 300;
  }

  .features-group {
    max-width: 1100px;
    margin: 0 auto 3rem;
  }

  .features-group:last-child { margin-bottom: 0; }

  .features-group-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 0.5px solid #c8b898;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .feature-card {
    background: #f0e9d8;
    border-radius: 10px;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background 0.25s, transform 0.2s;
  }

  .feature-card:hover {
    background: #f5f0e4;
    transform: translateY(-2px);
  }

  .feature-card-visual {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
  }

  .feature-card-visual svg {
    width: 36px;
    height: 36px;
    color: var(--gold);
    opacity: 0.75;
  }

  .feature-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-on-light);
    margin: 0;
  }

  .feature-card p {
    font-size: 0.95rem;
    color: var(--text-soft-light);
    line-height: 1.6;
    margin: 0;
  }

  /* PLANS — fond clair */
  .plans-intro {
    max-width: 540px;
    margin: 0 auto 4rem;
    text-align: center;
  }

  .plans-intro p {
    font-family: var(--serif-body);
    font-size: 1.25rem;
    color: var(--text-soft-light);
  }

  .compare-table {
    max-width: 1000px;
    margin: 0 auto;
    border: 0.5px solid #c8b898;
    border-radius: 10px;
    overflow: hidden;
  }

  .compare-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--parch-alt);
    border-bottom: 1px solid #c8b898;
  }

  .compare-col-label {
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
    color: var(--text-soft-light);
    display: flex;
    align-items: center;
  }

  .compare-col-plan {
    padding: 1.5rem 1rem;
    text-align: center;
    border-left: 0.5px solid #c8b898;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .compare-col-plan.featured { background: var(--dark); }

  .compare-plan-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-on-light);
  }

  .compare-col-plan.featured .compare-plan-name { color: var(--text-on-dark); }

  .compare-plan-sub {
    font-size: 0.85rem;
    color: var(--text-soft-light);
    font-style: italic;
    font-family: var(--serif-body);
  }

  .compare-col-plan.featured .compare-plan-sub { color: var(--text-soft-dark); }

  .compare-plan-price {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-on-light);
    margin: 0.4rem 0 0.2rem;
  }

  .compare-col-plan.featured .compare-plan-price {
    color: var(--gold-bright);
  }

  .compare-cta {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft-light);
    text-decoration: none;
    border-bottom: 0.5px solid #b8a882;
    padding-bottom: 1px;
    transition: color 0.2s;
  }

  .compare-cta:hover { color: var(--text-on-light); }
  .featured-cta { color: var(--gold-bright); border-color: rgba(212,168,32,0.4); }
  .featured-cta:hover { color: #e8d070; }

  .compare-group-label {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: #ddd3b8;
    padding: 0.55rem 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    border-top: 0.5px solid #c8b898;
    border-bottom: 0.5px solid #c8b898;
  }

  .compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 0.5px solid #e0d5c0;
    transition: background 0.15s;
  }

  .compare-row:last-child { border-bottom: none; }
  .compare-row:hover { background: #f0e9d8; }

  .compare-row .compare-col-label {
    font-size: 0.95rem;
    color: var(--text-on-light);
    padding: 0.95rem 2rem;
  }

  .compare-col-check {
    padding: 0.95rem 1rem;
    text-align: center;
    border-left: 0.5px solid #c8b898;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .compare-col-check.yes { color: var(--gold); }
  .compare-col-check.no { color: #c8b898; letter-spacing: 0; font-size: 1rem; }
  .compare-col-check.featured { background: rgba(61,46,24,0.04); }


  /* AI — fond sombre */
  .ai-section {
    background: #ddd3b8;
    color: var(--text-on-light);
  }

  .ai-section .section-label { color: var(--gold); }
  .ai-section .section-title { color: var(--text-on-light); text-align: left; }

  .ai-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
  }

  .ai-left .section-label { justify-content: flex-start; }

  .ai-left p {
    font-family: var(--serif-body);
    font-size: 1.2rem;
    color: var(--text-soft-light);
    line-height: 1.7;
    margin-top: 1.5rem;
  }

  .ai-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #c8b898;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
  }

  .ai-action {
    background: #ddd3b8;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: background 0.2s;
  }

  .ai-action:hover { background: #d3c8a8; }

  .ai-action svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    margin-bottom: 0.4rem;
  }

  .ai-action-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-on-light);
  }

  .ai-action-desc {
    font-size: 0.9rem;
    color: var(--text-soft-light);
    line-height: 1.45;
  }

  .manifesto {
    text-align: center;
    padding: 8rem 3rem;
    background: var(--parch);
  }

  .manifesto blockquote {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.35;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-on-light);
  }

  .manifesto cite {
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    font-style: normal;
  }

  footer {
    padding: 3rem;
    border-top: 0.5px solid #c8ba98;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--parch);
  }

  footer .logo { opacity: 0.5; font-size: 1rem; }

  .footer-note {
    font-size: 1rem;
    color: var(--text-soft-light);
    letter-spacing: 0.04em;
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(34px);
    transition:
      opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .ai-action.reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .ai-action.reveal-on-scroll > * {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .ai-action.reveal-on-scroll.is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-brand {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-on-light);
    margin-bottom: 2.5rem;
    line-height: 1;
  }

  .hero-brand span { color: var(--gold); }

  .hero-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    width: 220px;
  }

  .hero-separator::before,
  .hero-separator::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--gold);
    opacity: 0.5;
  }

  .hero-separator-mark {
    font-family: var(--serif);
    font-size: 0.7rem;
    color: var(--gold);
    opacity: 0.8;
    letter-spacing: 0.1em;
  }

  .hero-eyebrow { animation: fadeUp 0.8s ease both; }
  .hero h1 { animation: fadeUp 0.8s ease 0.1s both; }
  .hero-sub { animation: fadeUp 0.8s ease 0.2s both; }
  .hero-cta { animation: fadeUp 0.8s ease 0.3s both; }

  nav.nav-scrolled {
    background: rgba(240,233,216,0.97);
    box-shadow: 0 12px 30px rgba(61,46,24,0.08);
  }

  @media (min-width: 1440px) {
    .scroll-visual {
      width: clamp(480px, 35vw, 700px);
    }

    .scroll-visual-left {
      left: max(-20rem, calc((100vw - 1680px) / 2 - 16rem));
    }

    .scroll-visual-right {
      right: max(-20rem, calc((100vw - 1680px) / 2 - 16rem));
    }
  }

  @media (max-width: 1439px) {
    .scroll-visual {
      width: clamp(360px, 32vw, 520px);
      opacity: calc(var(--item-presence) * 0.78);
      transform:
        translate3d(
          calc(var(--scroll-dir) * (78px - var(--item-progress) * 420px)),
          -50%,
          0
        )
        scale(calc(0.84 + var(--item-progress) * 0.24));
    }

    .scroll-visual-left {
      left: max(-12rem, calc((100vw - 1280px) / 2 - 9rem));
    }

    .scroll-visual-right {
      right: max(-12rem, calc((100vw - 1280px) / 2 - 9rem));
    }
  }

  @media (max-width: 1180px) {
    .hero {
      min-height: 138vh;
      padding-top: 7.5rem;
    }

    .hero-copy {
      min-height: calc(100vh - 12rem);
    }

    .scroll-visual {
      top: 70vh;
      width: clamp(280px, 42vw, 460px);
      opacity: calc(var(--item-presence) * 0.5);
      transform:
        translate3d(
          calc(var(--scroll-dir) * (40px - var(--item-progress) * 240px)),
          -50%,
          0
        )
        scale(calc(0.86 + var(--item-progress) * 0.16));
    }

    .scroll-visual-left { left: -22vw; }
    .scroll-visual-right { right: -22vw; top: 70vh; }
  }

  @media (max-width: 980px) {
    .hero {
      min-height: 124vh;
    }

    .scroll-visual {
      width: clamp(240px, 44vw, 360px);
      opacity: calc(var(--item-presence) * 0.34);
    }

    .scroll-visual-left {
      left: -28vw;
    }

    .scroll-visual-right {
      right: -28vw;
    }
  }

  @media (max-width: 760px) {
    nav {
      padding: 1rem 1.25rem;
    }

    nav ul {
      display: none;
    }

    .hero {
      min-height: auto;
      padding: 6.5rem 1.25rem 3.5rem;
    }

    .features {
      padding-top: 5rem;
    }

    .scroll-visual-layer {
      display: none;
    }

    .hero-copy {
      min-height: auto;
      position: relative;
      top: auto;
    }

    .hero h1 {
      font-size: clamp(2.7rem, 13vw, 4.2rem);
      margin-bottom: 1.7rem;
    }

    .hero-sub {
      font-size: 1.2rem;
      margin-bottom: 2.3rem;
    }

    .hero-cta {
      width: 100%;
      flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
      width: min(100%, 340px);
      justify-content: center;
      text-align: center;
    }

    section {
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    .features {
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    .features-grid,
    .ai-inner,
    .ai-right {
      grid-template-columns: 1fr;
    }

    .ai-inner {
      gap: 2rem;
    }

    footer {
      align-items: flex-start;
      flex-direction: column;
      gap: 1rem;
      padding: 2rem 1.25rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-eyebrow,
    .hero h1,
    .hero-sub,
    .hero-cta {
      animation: none;
    }

    .scroll-visual,
    .reveal-on-scroll {
      opacity: 0.9;
      transform: none;
      transition: none;
    }

    .reveal-on-scroll {
      opacity: 1;
    }
  }
