  :root {
    --font-sans: "Inter", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --font-raleway: "Raleway", sans-serif;
    --accent: #0E2AC5;
    --neutral-950: #0a0a0a;
    --neutral-700: #404040;
    --neutral-500: #737373;
    --neutral-400: #a3a3a3;
  }

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

  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    color: #1a1a1a;
    background: #f7fafc;
    font-family: var(--font-raleway);
  }

  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: rgba(14, 42, 197, 0.18);
    border-radius: 99px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 42, 197, 0.32);
  }

  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  ul { list-style: none; margin: 0; padding: 0; }

  /* —— Background —— */
  #bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: radial-gradient(circle at center, #ffffff 0%, #ecefff 35%, #c2d1ff 100%);
    transition: background 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
  }

  /* —— WebGL —— */
  #webgl-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  #webgl-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
  }

  /* —— Loader —— */
  #loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eef2ff 45%, #dbe4ff 100%);
    transition: opacity 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  }
  #loader.is-leaving {
    opacity: 0;
    pointer-events: none;
  }
  #loader.is-gone {
    display: none;
  }
  .loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
  .loader-item {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .loader-item.is-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  .loader-status {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6b7bb5;
  }
  .loader-bar {
    width: clamp(180px, 32vw, 280px);
    height: 2px;
    border-radius: 99px;
    background: rgba(14, 42, 197, 0.14);
    overflow: hidden;
  }
  .loader-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #5175ff 0%, #0e2ac5 100%);
    box-shadow: 0 0 14px rgba(47, 105, 255, 0.55);
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .loader-counter {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0e2ac5;
    font-variant-numeric: tabular-nums;
  }

  /* —— Header —— */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: 5rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-header.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
  @media (min-width: 768px) {
    .site-header {
      height: 6rem;
      padding: 0 3rem;
    }
  }
  .site-header > * { pointer-events: auto; }

  .wordmark {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.125rem;
    letter-spacing: 0.25em;
    color: #0a0a0a;
  }
  @media (min-width: 768px) {
    .wordmark { font-size: 1.25rem; }
  }

  .nav-center {
    display: none;
    gap: 3rem;
    font-family: var(--font-raleway);
    font-size: 14px;
    font-weight: 500;
  }
  @media (min-width: 768px) {
    .nav-center { display: flex; }
  }
  .nav-center a {
    transition: opacity 0.2s;
  }
  .nav-center a:hover { opacity: 0.6; }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }
  @media (min-width: 768px) {
    .header-actions { gap: 0.75rem; }
  }

  .btn-icon-round {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.7), 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: background 0.2s;
  }
  .btn-icon-round:hover { background: rgba(255, 255, 255, 0.3); }
  @media (min-width: 768px) {
    .btn-icon-round { width: 2.75rem; height: 2.75rem; }
  }
  .btn-icon-round svg { width: 1rem; height: 1rem; }

  .btn-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-style: solid;
    border-width: 1px;
    border-top-color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.85);
    border-left-color: rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.7), 0 8px 30px rgba(0, 0, 0, 0.04);
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 13px;
  }
  @media (min-width: 768px) {
    .btn-contact {
      padding-left: 1.5rem;
      font-size: 14px;
    }
  }
  .btn-contact .orb {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, #5175ff 0%, #0e2ac5 55%, #020b40 100%);
    transition: transform 0.25s;
  }
  .btn-contact:hover .orb { transform: scale(1.05); }
  .btn-contact .orb svg { width: 14px; height: 14px; color: white; }

  /* —— Sections —— */
  .section {
    position: relative;
    z-index: 10;
    min-height: 100svh;
    pointer-events: none;
  }
  .section .interactive { pointer-events: auto; }

  /* Reveal */
  .reveal {
    opacity: 0;
    transform: translateY(42px);
    filter: blur(8px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  /* Hero */
  #section-hero {
    display: flex;
    align-items: flex-end;
    padding: 0 1.5rem 3rem;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #section-hero.is-revealed { opacity: 1; }
  @media (min-width: 768px) {
    #section-hero { padding: 0 3rem 3.5rem; }
  }
  .hero-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
  }
  @media (min-width: 768px) {
    .hero-row {
      flex-direction: row;
      align-items: flex-end;
    }
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-items: flex-start;
  }
  .hero-eyebrow {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0E2AC5;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @media (min-width: 768px) {
    .hero-eyebrow {
      font-size: 14px;
      margin-bottom: 24px;
    }
  }
  .hero-headline {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 2.6rem;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #0a0a0a;
    margin: 0;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @media (min-width: 640px) {
    .hero-headline { font-size: 3.75rem; }
  }
  @media (min-width: 768px) {
    .hero-headline {
      font-size: 90px;
      line-height: 1;
      white-space: nowrap;
    }
  }
  .hero-right {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @media (min-width: 768px) {
    .hero-right { width: 260px; }
  }
  #section-hero.is-revealed .hero-eyebrow,
  #section-hero.is-revealed .hero-headline,
  #section-hero.is-revealed .hero-right {
    opacity: 1;
    transform: translateY(0);
  }
  #section-hero.is-revealed .hero-eyebrow { transition-delay: 0.15s; }
  #section-hero.is-revealed .hero-headline { transition-delay: 0.28s; }
  #section-hero.is-revealed .hero-right { transition-delay: 0.45s; }

  .hero-copy {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
  }
  .hero-credit {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #737373;
    margin-top: 1.25rem;
  }
  .scroll-cue {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #737373;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  @media (min-width: 768px) {
    .scroll-cue { display: flex; }
  }
  .scroll-cue svg { width: 0.875rem; height: 0.875rem; }
  .scroll-cue span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* Section 02 — Drop */
  #section-drop {
    display: flex;
    align-items: center;
    padding: 8rem 1.5rem 10rem;
  }
  @media (min-width: 768px) {
    #section-drop { padding: 10rem 3rem 10rem; }
  }
  .drop-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  @media (min-width: 1024px) {
    .drop-grid {
      grid-template-columns: repeat(12, 1fr);
      gap: 4rem;
    }
    .drop-left { grid-column: span 7; }
    .drop-right { grid-column: span 5; padding-top: 0.75rem; }
  }
  .section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(14, 42, 197, 0.8);
  }
  .section-heading {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 2.6rem;
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: #0a0a0a;
    margin: 1.5rem 0 0;
  }
  @media (min-width: 640px) {
    .section-heading { font-size: 3.75rem; }
  }
  @media (min-width: 768px) {
    .section-heading {
      font-size: 80px;
      line-height: 0.92;
    }
  }
  .section-body {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    color: #404040;
    margin: 2rem 0 0;
    max-width: 32rem;
  }
  @media (min-width: 768px) {
    .section-body { font-size: 19px; }
  }

  .stat-cards {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }
  .stat-card {
    border-radius: 1.4rem;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    box-shadow: 0 14px 40px -12px rgba(14, 42, 197, 0.18);
    transition: transform 0.25s;
  }
  .stat-card:hover { transform: translateY(-2px); }
  .stat-card-inner {
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
  }
  .stat-card-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
  }
  .stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .stat-idx, .stat-key {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
  }
  .stat-key { color: #a3a3a3; }
  .stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    margin-left: auto;
    background: radial-gradient(circle at 35% 30%, #5175ff, #0e2ac5);
    box-shadow: 0 0 8px rgba(47, 105, 255, 0.6);
  }
  .stat-value {
    font-family: var(--font-raleway);
    font-weight: 600;
    font-size: 18px;
    margin: 0;
  }
  .stat-desc {
    font-family: var(--font-raleway);
    font-size: 13px;
    color: #737373;
    margin: 0.25rem 0 0;
  }

  /* Section 03 — Form */
  #section-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 9rem 1.5rem;
  }
  @media (min-width: 768px) {
    #section-form { padding: 11rem 3rem; }
  }
  .form-bottom {
    align-self: flex-end;
    max-width: 24rem;
    text-align: left;
  }
  @media (min-width: 768px) {
    .form-bottom { text-align: right; }
  }
  .form-bottom .section-body {
    max-width: none;
    margin-top: 0;
  }
  .swipe-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #404040;
  }
  .swipe-pill svg { width: 0.875rem; height: 0.875rem; }
  .swipe-pill span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  /* Section 04 — Release */
  #section-release {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9rem 1.5rem;
  }
  @media (min-width: 768px) {
    #section-release { padding: 11rem 3rem; }
  }
  .release-inner { max-width: 48rem; }
  .release-heading {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 2.8rem;
    line-height: 1.0;
    color: #0a0a0a;
    margin: 1.75rem 0 0;
  }
  @media (min-width: 640px) {
    .release-heading { font-size: 4.5rem; }
  }
  @media (min-width: 768px) {
    .release-heading {
      font-size: 88px;
      line-height: 0.92;
    }
  }
  .release-body {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    color: #404040;
    margin: 2rem auto 0;
    max-width: 28rem;
  }
  @media (min-width: 768px) {
    .release-body { font-size: 19px; }
  }

  /* —— Footer —— */
  .site-footer {
    position: relative;
    z-index: 10;
    background: #0a0a0a;
    color: white;
    border-radius: 2.5rem 2.5rem 0 0;
    overflow: hidden;
  }
  @media (min-width: 768px) {
    .site-footer { border-radius: 4rem 4rem 0 0; }
  }
  .footer-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(40px);
    pointer-events: none;
  }
  .footer-glow-tr {
    width: 28rem;
    height: 28rem;
    top: -8rem;
    right: -6rem;
    background: radial-gradient(circle, #2f69ff66 0%, transparent 65%);
  }
  .footer-glow-bl {
    width: 32rem;
    height: 32rem;
    bottom: -10rem;
    left: -8rem;
    background: radial-gradient(circle, #5175ff44 0%, transparent 65%);
  }

  .marquee {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    overflow: hidden;
  }
  .marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 26s linear infinite;
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: clamp(28px, 6vw, 64px);
    color: rgba(255, 255, 255, 0.9);
  }
  .marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
  }
  .marquee-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: #2f69ff;
    flex-shrink: 0;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .footer-body {
    position: relative;
    padding: 4rem 1.5rem 2.5rem;
  }
  @media (min-width: 768px) {
    .footer-body { padding: 6rem 3rem 2.5rem; }
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  @media (min-width: 1024px) {
    .footer-grid {
      grid-template-columns: repeat(12, 1fr);
    }
    .footer-cta { grid-column: span 5; }
    .footer-links { grid-column: span 7; }
  }
  .footer-cta-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }
  .footer-cta-heading {
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 2.25rem;
    line-height: 0.95;
    margin: 1rem 0 1.5rem;
  }
  @media (min-width: 768px) {
    .footer-cta-heading { font-size: 3.75rem; }
  }
  .email-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    font-family: var(--font-raleway);
    font-weight: 500;
    font-size: 16px;
  }
  @media (min-width: 768px) {
    .email-pill { font-size: 18px; }
  }
  .email-pill:hover { background: rgba(255, 255, 255, 0.1); }
  .email-pill .orb {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, #5175ff 0%, #0e2ac5 55%, #020b40 100%);
  }
  .email-pill .orb svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.25s;
  }
  .email-pill:hover .orb svg { transform: rotate(45deg); }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  @media (min-width: 640px) {
    .footer-links { grid-template-columns: repeat(3, 1fr); }
  }
  .footer-col-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
  }
  .footer-col-list { display: flex; flex-direction: column; gap: 0.75rem; }
  .footer-col-list a {
    font-family: var(--font-raleway);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
  }
  .footer-col-list a:hover { color: white; }
  .footer-col-list a .link-arrow {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
  }
  .footer-col-list a:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .footer-bottom {
    margin-top: 5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  @media (min-width: 768px) {
    .footer-bottom { margin-top: 7rem; }
  }
  .footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  .footer-brand .wordmark {
    color: white;
    letter-spacing: 0.22em;
  }
  .footer-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #2f69ff;
  }
  .footer-copy {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
  }
  .footer-socials {
    display: flex;
    gap: 0.5rem;
  }
  .social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
  }
  .social-btn:hover { color: white; }
  .social-btn svg { width: 1rem; height: 1rem; }

  .footer-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .footer-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* —— Drawer —— */
  #scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #scrim.is-open {
    opacity: 0.4;
    pointer-events: auto;
  }
  #controls-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid #f5f5f5;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  @media (min-width: 640px) {
    #controls-drawer {
      width: 420px;
      max-width: 420px;
    }
  }
  #controls-drawer.is-open { transform: translateX(0); }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
  }
  .drawer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .drawer-title svg { width: 1rem; height: 1rem; }
  .drawer-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .drawer-close:hover { background: #f5f5f5; }
  .drawer-close svg { width: 1rem; height: 1rem; }

  .drawer-note {
    font-family: var(--font-mono);
    font-size: 12px;
    font-style: italic;
    color: #a3a3a3;
    margin-bottom: 2rem;
    line-height: 1.5;
  }
  .drawer-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }
  .drawer-section-title svg { width: 14px; height: 14px; }

  .palette-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
  }
  .palette-card {
    border-radius: 0.75rem;
    border: 1px solid #e5e5e5;
    padding: 1rem;
    text-align: left;
    transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
    background: white;
  }
  .palette-card:hover { border-color: #d4d4d4; }
  .palette-card.is-selected {
    background: #0a0a0a;
    color: white;
    transform: scale(1.02);
    border-color: #0a0a0a;
  }
  .palette-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
  }
  .palette-card-name {
    font-weight: 700;
    font-size: 12px;
    font-family: var(--font-raleway);
  }
  .palette-swatch {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
  }
  .palette-card-desc {
    font-size: 10px;
    color: #737373;
    line-height: 1.4;
    margin: 0;
  }
  .palette-card.is-selected .palette-card-desc { color: rgba(255, 255, 255, 0.6); }

  .drawer-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f5f5f5;
  }
  .drawer-meta {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #a3a3a3;
    letter-spacing: 0.05em;
    margin: 0 0 0.35rem;
  }
  .btn-reset {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid #e5e5e5;
    transition: background 0.2s;
  }
  .btn-reset:hover { background: #f5f5f5; }
  .btn-reset svg { width: 14px; height: 14px; }
