  :root {
    --after-dark: #17121F;
    --after-dark-raised: #1E1829;
    --steam: #F7F4EF;
    --ink-dim: #B7ADC4;
    --ember: #EE8B49;
    --orchid: #A87FF0;
    --line: rgba(247, 244, 239, 0.12);
    --focus: #EE8B49;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; height: 100%; }

  body {
    background: var(--after-dark);
    color: var(--steam);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  #atmo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    background:
      radial-gradient(60vmax 60vmax at 78% 18%, rgba(238,139,73,0.10), transparent 60%),
      radial-gradient(70vmax 70vmax at 15% 85%, rgba(168,127,240,0.10), transparent 60%);
  }

  main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 8vh 1.75rem 4vh;
  }

  .glow {
    position: absolute;
    left: 1.6rem;
    top: 42%;
    width: min(70vw, 46rem);
    height: min(70vw, 46rem);
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(238,139,73,0.16), rgba(168,127,240,0.08) 45%, transparent 70%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
    animation: breathe 9s ease-in-out infinite;
  }

  @keyframes breathe {
    0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
  }

  .eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 2rem;
    opacity: 0;
    animation: rise 0.7s ease-out 0.15s forwards;
  }

  .eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ember);
    flex: none;
    box-shadow: 0 0 10px rgba(238,139,73,0.7);
  }

  h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(3.2rem, 12vw, 6.5rem);
    line-height: 0.98;
    margin: 0 0 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--steam);
    filter: blur(14px);
    opacity: 0;
    transform: scale(1.04);
    animation: emerge 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes emerge {
    to { filter: blur(0); opacity: 1; transform: scale(1); }
  }

  .lines {
    position: relative;
    z-index: 1;
    max-width: 34ch;
    opacity: 0;
    animation: rise 0.8s ease-out 0.9s forwards;
  }

  .lines p {
    margin: 0 0 0.35rem;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    color: var(--ink-dim);
  }

  .lines p:last-child { margin-bottom: 0; }
  .lines .accent { color: var(--steam); }

  .actions {
    position: relative;
    z-index: 1;
    margin-top: 2.75rem;
    opacity: 0;
    animation: rise 0.8s ease-out 1.15s forwards;
  }

  .ask-btn {
    appearance: none;
    background: transparent;
    color: var(--steam);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  }

  .ask-btn:hover {
    border-color: rgba(238,139,73,0.55);
    background: rgba(238,139,73,0.06);
  }

  .ask-btn:active { transform: scale(0.98); }

  footer {
    position: relative;
    z-index: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.75rem 3rem;
    font-size: 0.76rem;
    color: var(--ink-dim);
    opacity: 0.7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
  }

  footer .sep { opacity: 0.5; }

  /* ---- Modal / sheet ---- */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 14, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1rem;
  }

  .modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .modal {
    background: var(--after-dark-raised);
    border: 1px solid var(--line);
    border-radius: 20px;
    width: 100%;
    max-width: 30rem;
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
    max-height: 88vh;
    overflow-y: auto;
  }

  .modal-backdrop.open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .modal h2 {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .modal p.intro {
    margin: 0 0 1.5rem;
    color: var(--ink-dim);
    font-size: 0.92rem;
  }

  .field { margin-bottom: 1.1rem; }

  .field label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--ink-dim);
    margin-bottom: 0.4rem;
  }

  .field input,
  .field textarea {
    width: 100%;
    background: rgba(247,244,239,0.04);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--steam);
    font: inherit;
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
    resize: vertical;
  }

  .field textarea { min-height: 6rem; }

  .field input::placeholder,
  .field textarea::placeholder { color: rgba(183,173,196,0.8); }

  .field input:focus-visible,
  .field textarea:focus-visible,
  .ask-btn:focus-visible,
  .modal-close:focus-visible,
  .submit-btn:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  /* honeypot field, hidden from sighted users and screen readers, always empty for humans */
  .hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
  }

  .modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .submit-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--after-dark);
    background: linear-gradient(135deg, var(--ember), var(--orchid));
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
  }

  .submit-btn:hover { filter: brightness(1.08); }
  .submit-btn:active { transform: scale(0.98); }
  .submit-btn:disabled { opacity: 0.6; cursor: default; }

  .modal-close {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--ink-dim);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem;
  }
  .modal-close:hover { color: var(--steam); }

  .form-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    min-height: 1.2em;
  }
  .form-status[data-state="error"] { color: #F0A98E; }
  .form-status[data-state="success"] { color: #9FE0B8; }

  @media (max-width: 560px) {
    .modal-backdrop {
      align-items: flex-end;
      padding: 0;
    }
    .modal {
      max-width: none;
      width: 100%;
      border-radius: 20px 20px 0 0;
      padding: 1.75rem 1.5rem 2rem;
      max-height: 82vh;
    }
    .modal-backdrop.open .modal { transform: translateY(0); }
    .modal-backdrop .modal { transform: translateY(100%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .eyebrow, .lines, .actions { animation: none !important; opacity: 1 !important; transform: none !important; }
    h1 { animation: none !important; filter: none !important; opacity: 1 !important; transform: none !important; }
    .glow { animation: none !important; }
    .modal, .modal-backdrop, .ask-btn, .submit-btn { transition: none !important; }
  }
