  :root {
    --paper: #F4EFE6;
    --paper-deep: #E9E1D3;
    --ink: #201D1A;
    --ink-soft: #5E5750;
    --orange: #EE6A2C;
    --pad: clamp(1.25rem, 5vw, 5rem);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: var(--paper); color: var(--ink); font-family: "Geist", system-ui, sans-serif; font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
  .serif { font-family: "Newsreader", Georgia, serif; }

  /* drawing style shared by every illustration */
  .art { width: 100%; height: auto; overflow: visible; }
  .art .ln { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .art .thin { stroke-width: 1.6; }
  .art .soft { stroke: var(--ink-soft); opacity: .55; }
  .art .or { fill: var(--orange); }
  .art .or-ln { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .art .pd { fill: var(--paper-deep); }
  .art .pp { fill: var(--paper); }
  .art * { transform-box: fill-box; transform-origin: center; }

  /* nav */
  .bar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem var(--pad); }
  .mark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
  .mark svg { width: 1.6rem; height: 1.6rem; }
  .bar a.quiet { text-decoration: none; color: var(--ink-soft); }
  .bar a.quiet:hover { color: var(--ink); }

  .btn { display: inline-block; padding: .95rem 1.5rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: 1rem; transition: background .25s ease; }
  .btn:hover { background: var(--orange); }

  /* hero */
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 7vh, 5rem) var(--pad) clamp(4rem, 10vh, 7rem); max-width: 96rem; margin: 0 auto; }
  h1 { font-family: "Newsreader", Georgia, serif; font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.9rem); line-height: 1.02; letter-spacing: -0.03em; }
  .hero p { margin: 2rem 0 2.5rem; max-width: 30rem; color: var(--ink-soft); font-size: 1.2rem; }

  /* sections */
  .sec { max-width: 96rem; margin: 0 auto; padding: clamp(4rem, 12vh, 8rem) var(--pad); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
  .big { font-family: "Newsreader", Georgia, serif; font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; }
  .split p.body { margin-top: 1.75rem; color: var(--ink-soft); max-width: 32rem; }
  .rule { height: 0; border: 0; border-top: 1.5px solid var(--ink); opacity: .14; max-width: calc(96rem - 2 * var(--pad)); margin: 0 auto; }

  /* contrast */
  .contrast h2 { max-width: 20ch; margin-bottom: 3rem; }
  .pair { display: grid; grid-template-columns: 1fr 1.7fr; gap: 1.5rem; }
  .sheet { background: var(--paper-deep); border-radius: 1.75rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
  .sheet h3 { font-weight: 500; font-size: 1rem; margin-bottom: 1rem; }
  .sheet p { color: var(--ink-soft); font-size: 1rem; max-width: 34rem; margin-top: 1rem; }
  .sheet.ours { background: #fff; box-shadow: 0 1px 0 rgba(32,29,26,.06), 0 30px 60px -40px rgba(32,29,26,.35); }
  .sheet .note { font-size: .85rem; color: #7A726A; }

  /* commitments */
  .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); margin-top: 3.5rem; }
  .three .art { width: 7.5rem; margin-bottom: 1.5rem; }
  .three h3 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: .75rem; }
  .three p { color: var(--ink-soft); max-width: 22rem; }

  /* close */
  .close { text-align: center; }
  .close .art { width: min(16rem, 60vw); margin: 0 auto 2rem; }
  .close h2 { max-width: 14ch; margin: 0 auto; }
  .close p { color: var(--ink-soft); max-width: 30rem; margin: 1.5rem auto 2.5rem; }

  footer { max-width: 96rem; margin: 0 auto; padding: 2rem var(--pad) 2.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--ink-soft); font-size: .9rem; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--ink); }

  /* motion */
  @keyframes slideA { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-14px); } }
  @keyframes slideB { 0%,100% { transform: translateX(0); } 50% { transform: translateX(12px); } }
  @keyframes drift { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-10px,6px) rotate(-3deg); } }
  @keyframes mark { 0%,15% { transform: scaleX(0); } 35%,80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
  @keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.6); } 40%,60% { opacity: 1; transform: scale(1); } }
  @keyframes draw { 0% { stroke-dashoffset: 620; } 55%,80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -620; } }
  @keyframes tip { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(5deg); } }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  @keyframes breathe { 0%,100% { transform: scale(.82); } 50% { transform: scale(1.06); } }
  @keyframes float { 0% { transform: translateY(6px); opacity: 0; } 30%,70% { opacity: 1; } 100% { transform: translateY(-22px); opacity: 0; } }
  @keyframes lid { 0%,8% { transform: scaleY(.06); } 22%,84% { transform: scaleY(1); } 88% { transform: scaleY(.06); } 92%,100% { transform: scaleY(1); } }
  @keyframes look { 0%,30% { transform: translateX(0); } 45%,60% { transform: translateX(9px); } 75%,100% { transform: translateX(-6px); } }

  .strip-a { animation: slideA 7s ease-in-out infinite; }
  .strip-b { animation: slideB 9s ease-in-out infinite; }
  .lens { animation: drift 8s ease-in-out infinite; transform-origin: 30% 30%; }
  .hl { animation: mark 4s ease-in-out infinite; transform-origin: left center; }
  .spark { animation: twinkle 2.4s ease-in-out infinite; }
  .spark.s2 { animation-delay: .8s; } .spark.s3 { animation-delay: 1.6s; }
  .thread { stroke-dasharray: 620; animation: draw 6s ease-in-out infinite; }
  .beam { animation: tip 5s ease-in-out infinite; transform-origin: center top; }
  .shield { animation: bob 4s ease-in-out infinite; }
  .core { animation: breathe 3.6s ease-in-out infinite; }
  .q { animation: float 3s ease-out infinite; }


  /* sovereign */
  .where { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
  .where li { border: 1.5px solid var(--ink); border-radius: 999px; padding: .45rem 1rem; font-size: 1rem; animation: pop 6s ease-in-out infinite; }
  .where li:nth-child(2) { animation-delay: 2s; } .where li:nth-child(3) { animation-delay: 4s; }
  @keyframes pop { 0%,30%,100% { background: transparent; color: var(--ink); } 8%,22% { background: var(--orange); color: #fff; border-color: var(--orange); } }
  @keyframes knock { 0%,100% { transform: translateY(14px); opacity: 0; } 30% { opacity: 1; } 50% { transform: translateY(0); opacity: 1; } 62% { transform: translateY(10px); opacity: .9; } 80% { opacity: 0; } }
  .knock { animation: knock 3.6s ease-in-out infinite; }
  .knock.k2 { animation-delay: 1.2s; } .knock.k3 { animation-delay: 2.4s; }
  @keyframes turn { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
  .turn { animation: turn 5s ease-in-out infinite; }


  /* smaller contrast */
  .contrast.small { max-width: 72rem; }
  .contrast.small .big { font-size: clamp(1.9rem, 3.2vw, 3rem); margin-bottom: 2rem; }
  .contrast.small .sheet .art { max-height: 11rem; }
  .contrast.small .sheet { padding: clamp(1.25rem, 2.4vw, 2rem); }

  /* closing door */
  @keyframes swing { 0%,15% { transform: perspective(400px) rotateY(0deg); } 45%,80% { transform: perspective(400px) rotateY(-58deg); } 100% { transform: perspective(400px) rotateY(0deg); } }
  @keyframes glowp { 0%,15% { opacity: 0; } 45%,80% { opacity: 1; } 100% { opacity: 0; } }
  .door { transform-origin: left center !important; animation: swing 7s ease-in-out infinite; }
  .glow, .spill { animation: glowp 7s ease-in-out infinite; }

  /* added sections */
  .four { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.5rem,3vw,3rem); margin-top: 3rem; }
  .cap .art { width: 7rem; margin-bottom: 1.25rem; }
  .cap h3 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: .5rem; }
  .cap p { color: var(--ink-soft); font-size: 1rem; }
  @keyframes draw2 { 0% { stroke-dashoffset: 160; } 55%,80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }
  @keyframes typing { 0%,10% { transform: scaleX(0); } 60%,85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
  .type { animation: typing 3.2s ease-in-out infinite; transform-origin: left center; }
  .facts { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; max-width: 34rem; }
  .facts dt { font-weight: 500; font-size: .95rem; }
  .facts dd { color: var(--ink-soft); font-size: .95rem; }
  .qa { margin-top: 2.5rem; max-width: 52rem; }
  .qa details { border-top: 1.5px solid rgba(32,29,26,.14); padding: 1.2rem 0; }
  .qa details:last-child { border-bottom: 1.5px solid rgba(32,29,26,.14); }
  .qa summary { cursor: pointer; list-style: none; font-family: "Newsreader", Georgia, serif; font-size: 1.5rem; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 1rem; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: "+"; color: var(--orange); transition: transform .3s; }
  .qa details[open] summary::after { transform: rotate(45deg); }
  .qa p { color: var(--ink-soft); margin-top: .6rem; max-width: 44rem; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (max-width: 860px) {
      .facts { grid-template-columns: 1fr; }
    .qa summary { font-size: 1.25rem; }
  }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

  @media (max-width: 860px) {
    .hero, .split { grid-template-columns: 1fr; }
    .hero .art { max-width: 30rem; }
    .split .art { max-width: 24rem; }
    .pair, .three { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .thread { stroke-dashoffset: 0; }
  }

  /* ---- SF polish ---- */
  html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
  .bar { position: sticky; top: 0; z-index: 50; background: rgba(244,239,230,.78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, padding .3s; }
  .bar.scrolled { border-bottom-color: rgba(32,29,26,.1); padding-top: 1rem; padding-bottom: 1rem; }
  .bar nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: .95rem; }
  .bar nav a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
  .bar nav a:hover { color: var(--ink); }
  .bar nav a.pill { color: var(--paper); background: var(--ink); padding: .55rem 1.05rem; border-radius: 999px; }
  .bar nav a.pill:hover { background: var(--orange); color: #fff; }
  footer .links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
  @media (max-width: 700px) { .bar nav a:not(.pill) { display: none; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* ---- legal / security pages ---- */
  .doc { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 9vh, 6rem) var(--pad) 5rem; }
  .doc h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1rem; }
  .doc .lede { color: var(--ink-soft); font-size: 1.2rem; margin-bottom: 3rem; }
  .doc h2 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 1.7rem; letter-spacing: -0.02em; margin: 2.75rem 0 .75rem; }
  .doc p, .doc li { color: var(--ink-soft); }
  .doc ul { padding-left: 1.2rem; margin-top: .5rem; }
  .doc li { margin: .35rem 0; }
  .doc .meta { font-size: .9rem; color: #7A726A; margin-top: 3.5rem; border-top: 1px solid rgba(32,29,26,.14); padding-top: 1.25rem; }
  .doc code { font-size: .9em; background: var(--paper-deep); padding: .1rem .35rem; border-radius: 4px; }

  /* always learning */
  .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
  .trio .sheet h3 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: .25rem; }
  .trio .sheet p { margin-top: .5rem; }
  .trio .sheet { transition: transform .35s ease; }
  .trio .sheet:hover { transform: translateY(-4px) rotate(-.4deg); }
  .note3 { margin-top: 1.25rem; font-size: .85rem; color: #7A726A; }
  @media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

  /* who builds it */
  #team .body { margin-top: 1.25rem; max-width: 46rem; }

  /* audience as plain editorial text */
  .who-list { margin-top: 2rem; max-width: 56rem; font-family: "Newsreader", Georgia, serif; font-weight: 300; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-soft); }

  /* hero story: live drawing of the product idea */
  .story { margin: 0; }
  .story canvas { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; }
  .beats { list-style: none; display: flex; justify-content: center; gap: clamp(.9rem, 2.2vw, 1.75rem); margin-top: .5rem; padding: 0; font-size: .82rem; letter-spacing: .02em; color: #9A9189; }
  .beats li { position: relative; padding-top: .7rem; transition: color .4s ease; }
  .beats li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: currentColor; opacity: .35; transition: opacity .4s ease, background .4s ease; }
  .beats li.on { color: var(--ink); }
  .beats li.on::before { background: var(--orange); opacity: 1; }
  @media (max-width: 860px) { .hero .story { max-width: 30rem; width: 100%; margin: 0 auto; } }
