@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input { font: inherit; }
}

@layer base {
  :root {
    --ink: #0a0a09;
    --ink-soft: #11110f;
    --paper: #eee9df;
    --muted: #a29d93;
    --line: rgba(238, 233, 223, .14);
    --acid: #c7ff38;
    --copper: #aa6845;
    --max: 1280px;
    --pad: clamp(1.25rem, 4vw, 4.5rem);
    --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  html { background: var(--ink); }

  body {
    min-width: 320px;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 75% 10%, rgba(170, 104, 69, .09), transparent 28rem),
      var(--ink);
    color: var(--paper);
    font-family: var(--body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: var(--acid); color: var(--ink); }
  a { color: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: .7rem 1rem;
    background: var(--acid);
    color: var(--ink);
    transform: translateY(-180%);
    transition: transform .2s ease;
  }

  .skip-link:focus { transform: translateY(0); }

  .noise {
    position: fixed;
    z-index: 20;
    inset: 0;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  }

  .cursor-glow {
    position: fixed;
    z-index: 0;
    width: 34rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(199, 255, 56, .035);
    filter: blur(45px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    will-change: left, top;
  }

  .reverse-e {
    display: inline-block;
    transform: scaleX(-1);
    transform-origin: center;
  }

  .section-shell {
    position: relative;
    z-index: 1;
    width: min(100%, var(--max));
    margin-inline: auto;
    padding: clamp(6rem, 12vw, 11rem) var(--pad);
  }

  .section-index {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    color: var(--acid);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  h2 {
    max-width: 12ch;
    font-family: var(--display);
    font-size: clamp(2.8rem, 7vw, 7rem);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: .9;
    text-transform: uppercase;
  }
}

@layer components {
  .site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--pad);
    border-bottom: 1px solid var(--line);
  }

  .mini-mark {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-decoration: none;
  }

  /* Compensate the mirrored glyph's side-bearing and line-box metrics. */
  .mini-mark .reverse-e {
    margin-inline-start: -.3em;
    line-height: 1;
    vertical-align: .04em;
  }

  .site-header nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
  .site-header nav a {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
  }
  .site-header nav a:hover { color: var(--paper); }
  .site-header .nav-cta {
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    color: var(--paper);
  }
  .site-header .nav-cta:hover { border-color: var(--acid); color: var(--acid); }

  .hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    overflow: hidden;
    place-items: center;
    padding: 7rem var(--pad) 4rem;
    isolation: isolate;
  }

  .hero::after {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(180deg, transparent 68%, var(--ink) 100%);
    content: "";
  }

  .hero-grid {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: .34;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: clamp(3rem, 7vw, 7rem) clamp(3rem, 7vw, 7rem);
    -webkit-mask-image: radial-gradient(circle at center, black 0, transparent 70%);
    mask-image: radial-gradient(circle at center, black 0, transparent 70%);
  }

  .hero-orbit {
    position: absolute;
    z-index: -2;
    border: 1px solid var(--line);
    border-radius: 50%;
    animation: breathe 8s ease-in-out infinite alternate;
  }
  .hero-orbit-one { width: min(62vw, 54rem); aspect-ratio: 1; }
  .hero-orbit-two { width: min(84vw, 73rem); aspect-ratio: 1; animation-delay: -3s; }
  .hero-orbit-one::after {
    position: absolute;
    top: 13%;
    right: 13%;
    width: .55rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 28px rgba(199, 255, 56, .65);
    content: "";
  }

  @keyframes breathe {
    from { transform: rotate(-5deg) scale(.985); opacity: .55; }
    to { transform: rotate(5deg) scale(1.015); opacity: 1; }
  }

  .hero-content { text-align: center; }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .eyebrow span {
    width: .45rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 18px rgba(199, 255, 56, .6);
  }

  .wordmark {
    font-family: var(--display);
    font-size: clamp(4.5rem, 17.5vw, 16rem);
    font-stretch: condensed;
    font-weight: 800;
    letter-spacing: -.085em;
    line-height: .72;
  }

  .hero-copy {
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--muted);
    font-family: var(--display);
    font-size: clamp(.95rem, 1.45vw, 1.25rem);
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.6;
    text-transform: uppercase;
  }

  .scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-top: 2rem;
    color: var(--paper);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .scroll-cue svg { width: 1.2rem; fill: none; stroke: var(--acid); stroke-linecap: round; stroke-linejoin: round; }

  .hero-meta {
    position: absolute;
    right: var(--pad);
    bottom: 1.75rem;
    left: var(--pad);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .manifesto { border-top: 1px solid var(--line); }
  .manifesto-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
    gap: clamp(3rem, 9vw, 9rem);
    align-items: end;
  }
  .manifesto h2 em { color: var(--copper); font-family: Georgia, serif; font-weight: 400; text-transform: lowercase; }
  .manifesto-copy { max-width: 31rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.22rem); }
  .manifesto-copy p + p { margin-top: 1.5rem; }

  .signal {
    display: grid;
    grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr);
    gap: clamp(4rem, 10vw, 10rem);
    border-top: 1px solid var(--line);
  }
  .signal-heading { position: sticky; top: 3rem; align-self: start; }
  .signal-cards { border-top: 1px solid var(--line); }
  .signal-card {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(2rem, 5vw, 4rem) 0;
    border-bottom: 1px solid var(--line);
  }
  .card-number { color: var(--acid); font: 700 .7rem/1 var(--body); letter-spacing: .12em; }
  .signal-card h3 {
    margin-bottom: 1rem;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
    text-transform: uppercase;
  }
  .signal-card p { max-width: 38rem; color: var(--muted); }

  .stay-close {
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
  }
  .stay-content { position: relative; z-index: 2; width: min(100%, calc(var(--max) - 2 * var(--pad))); margin: auto; }
  .stay-close .section-index { color: #657f1d; }
  .stay-close h2 { max-width: 10ch; }
  .stay-close > .stay-content > p:not(.section-index) { max-width: 38rem; margin-top: 2rem; color: #57544d; }
  .frequency {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: -3rem;
    display: flex;
    height: 72%;
    align-items: center;
    gap: clamp(.3rem, .8vw, .8rem);
    transform: translateY(-50%);
    opacity: .13;
  }
  .frequency i { display: block; width: clamp(.35rem, .7vw, .75rem); height: var(--h, 20%); background: var(--ink); }
  .frequency i:nth-child(1), .frequency i:nth-child(12) { --h: 12%; }
  .frequency i:nth-child(2), .frequency i:nth-child(11) { --h: 24%; }
  .frequency i:nth-child(3), .frequency i:nth-child(10) { --h: 42%; }
  .frequency i:nth-child(4), .frequency i:nth-child(9) { --h: 67%; }
  .frequency i:nth-child(5), .frequency i:nth-child(8) { --h: 92%; }
  .frequency i:nth-child(6), .frequency i:nth-child(7) { --h: 58%; }

  .signal-form { width: min(100%, 42rem); margin-top: 3rem; }
  .honeypot { position: absolute; left: -9999px; }
  .input-wrap {
    display: flex;
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--ink);
  }
  .input-wrap input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: clamp(1rem, 2vw, 1.25rem);
    outline: 0;
  }
  .input-wrap input::placeholder { color: #77736b; }
  .input-wrap button {
    display: inline-flex;
    border: 0;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1.1rem;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
  }
  .input-wrap button:hover { background: #2b3510; color: var(--acid); }
  .input-wrap button svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
  .signal-form small { display: block; margin-top: .8rem; color: #77736b; font-size: .72rem; }

  .site-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(3rem, 6vw, 5rem) var(--pad);
    border-top: 1px solid var(--line);
  }
  .footer-mark { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 5rem); font-weight: 800; letter-spacing: -.06em; }
  .site-footer > div { display: flex; gap: 2rem; color: var(--muted); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }

  .simple-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: var(--pad);
    background:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px),
      radial-gradient(circle at 70% 20%, rgba(170, 104, 69, .15), transparent 28rem),
      var(--ink);
    background-size: 6rem 6rem, 6rem 6rem, auto, auto;
  }
  .simple-page main { width: min(100%, 60rem); }
  .simple-page .mini-mark { display: inline-block; margin-bottom: clamp(5rem, 15vh, 10rem); }
  .simple-page .eyebrow { display: flex; margin-bottom: 2rem; }
  .simple-page h1 {
    max-width: 8ch;
    font-family: var(--display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: .86;
    text-transform: uppercase;
  }
  .simple-page main > p:not(.eyebrow) { margin-top: 2rem; color: var(--muted); }
  .text-link {
    display: inline-block;
    margin-top: 2.5rem;
    border-bottom: 1px solid var(--acid);
    color: var(--paper);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
  }
}

@layer responsive {
  @media (max-width: 800px) {
    .site-header nav > a:not(.nav-cta) { display: none; }
    .hero-orbit-one { width: 92vw; }
    .hero-orbit-two { width: 125vw; }
    .wordmark { font-size: clamp(4rem, 22vw, 9rem); }
    .manifesto-layout, .signal { grid-template-columns: 1fr; }
    .manifesto-layout { align-items: start; }
    .signal { gap: 4rem; }
    .signal-heading { position: static; }
    .signal-heading .section-index { margin-bottom: 2.5rem; }
    .frequency { right: -8rem; }
  }

  @media (max-width: 560px) {
    .site-header { padding-block: 1rem; }
    .site-header .nav-cta { padding: .55rem .7rem; }
    .hero { min-height: 100svh; padding-top: 6rem; }
    .hero-meta { align-items: end; }
    .hero-meta span:first-child { max-width: 10rem; }
    .input-wrap { display: grid; gap: 1rem; }
    .input-wrap input { width: 100%; min-height: 3rem; }
    .input-wrap button { justify-content: space-between; }
    .site-footer { display: grid; }
    .site-footer > div { display: grid; gap: .4rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .cursor-glow { display: none; }
  }

  @media (hover: none), (pointer: coarse) {
    .cursor-glow { display: none; }
  }
}
