:root {
  --bone: #F4EFE6;
  --charcoal: #2B2725;
  --plum: #7D6B7D;
  --plum-text: #6F5E6F;
  --honey: #D4A359;
  --fg: var(--charcoal);
  --scale: 1;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bone);
  color: var(--charcoal);
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
::selection { background: var(--honey); color: var(--charcoal); }
input::placeholder { color: #8C8279; }
input:focus { outline: none; border-bottom-color: var(--honey); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }

[hidden] { display: none !important; }

.hp-field { position: absolute; left: -9999px; }

/* Brain line art: shared classes for the desktop and mobile <use> instances */
.ol { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linejoin: round; }
.gl { fill: none; stroke: var(--fg); stroke-width: 1; opacity: .5; }
.gs { fill: none; stroke: var(--fg); stroke-width: 1.2; opacity: .8; stroke-linejoin: round; }
.mirror .ol, .mirror .gl, .mirror .gs { stroke: var(--plum); stroke-linecap: round; }
.mirror .ol { stroke-dasharray: 2 5; opacity: 1; }
.mirror .gs { stroke-dasharray: 2 5; opacity: .9; }
.mirror .gl { stroke-dasharray: 1 6; opacity: .75; }
.sweep { fill: none; stroke: var(--honey); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 70 2200; animation: sweep 10s linear infinite; }
.flow { fill: none; stroke: var(--honey); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 44 1900; animation: flow 7s cubic-bezier(.45,0,.55,1) infinite; }
.curl { transform-box: fill-box; transform-origin: center; animation: spin 7s linear infinite; }

@keyframes sweep { to { stroke-dashoffset: -2270; } }
@keyframes flow { to { stroke-dashoffset: -1944; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sweep, .flow, .curl { animation: none; }
}

/* ---------- Desktop stage (>=900px): a fixed 1440x1540 canvas scaled to the viewport ---------- */

.stage-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: calc(1540px * var(--scale));
}

.stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 1540px;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--scale));
  background-color: var(--bone);
  background-image: radial-gradient(rgba(43, 39, 37, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow: hidden;
}

.mirror-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 720px;
  width: 0;
  border-left: 1px dashed rgba(43, 39, 37, 0.16);
}

.brain-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 1540px;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 104px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 0 88px;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.5px;
  font-variation-settings: 'SOFT' 100;
}

.header-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--plum-text);
}

.header-status span {
  background: var(--bone);
  padding: 0 6px;
}

.header-mirror-wordmark {
  display: flex;
  justify-content: flex-end;
}

.header-mirror-wordmark span {
  display: inline-block;
  transform: scaleX(-1);
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: var(--plum);
}

.duo {
  position: absolute;
  top: 820px;
  width: 560px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.duo-left {
  left: 88px;
  align-items: flex-end;
}

.duo-left span {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 104px;
  line-height: 1;
  letter-spacing: -2px;
  font-variation-settings: 'SOFT' 100;
}

.duo-right {
  left: 792px;
  align-items: flex-start;
}

.duo-right span {
  display: inline-block;
  transform: scaleX(-1);
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 400;
  font-size: 96px;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--plum);
}

.headline {
  position: absolute;
  top: 1050px;
  left: 0;
  right: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-variation-settings: 'SOFT' 100;
}

.headline-original {
  text-align: right;
  color: var(--charcoal);
}

.headline-mirrored {
  text-align: left;
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 400;
  font-size: 50px;
  letter-spacing: -1px;
  line-height: 1.23;
  color: var(--plum);
}

.waitlist-wrap {
  position: absolute;
  top: 1140px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.waitlist-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--plum-text);
}

#waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
}

.success-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 480px;
}

.waitlist-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

#email {
  flex-grow: 1;
  height: 52px;
  padding: 0 2px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--charcoal);
  border-radius: 0;
}

.waitlist-submit {
  height: 52px;
  padding: 0 28px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--charcoal);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.waitlist-error-text {
  font-size: 14px;
  color: var(--charcoal);
}

.points {
  position: absolute;
  top: 1350px;
  left: 88px;
  right: 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.point {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.point-1 { align-items: flex-start; }
.point-2 { align-items: center; }
.point-3 { align-items: flex-end; }

.point-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--plum-text);
}

.point-2 .point-label,
.point-2 .point-text {
  background: var(--bone);
  padding: 0 8px;
}

.point-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 24px;
  font-variation-settings: 'SOFT' 100;
}

.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 0 88px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--plum-text);
}

.footer-count {
  justify-self: center;
  background: var(--bone);
  padding: 0 8px;
}

.footer-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--charcoal);
}

/* ---------- Mobile layout (<900px) ---------- */

.mobile-page { display: none; }

@media (max-width: 899px) {
  .stage-outer { display: none; }
  .mobile-page {
    display: block;
    background-color: var(--bone);
    background-image: radial-gradient(rgba(43, 39, 37, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
  }
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.mobile-header .wordmark { font-size: 26px; }

.mobile-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plum-text);
}

.mobile-brain-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 24px 0;
}

.brain-svg-mobile {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.mobile-duo {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 28px;
  margin-top: -8px;
}

.mobile-duo span:first-child {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 52px;
  letter-spacing: -1px;
  font-variation-settings: 'SOFT' 100;
  color: var(--charcoal);
}

.mobile-duo span:last-child {
  display: inline-block;
  transform: scaleX(-1);
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -1px;
  color: var(--plum);
}

.mobile-headline {
  margin: 20px 0 0;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-variation-settings: 'SOFT' 100;
}

.mobile-headline span {
  display: block;
  text-align: center;
}
.mobile-headline .headline-original { color: var(--charcoal); }
.mobile-headline .headline-mirrored {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.5px;
  color: var(--plum);
}

.mobile-divider {
  border: none;
  border-top: 1px dashed rgba(43, 39, 37, 0.16);
  margin: 28px 20px;
}

.mobile-waitlist { padding: 0 20px; }

#waitlist-form-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#waitlist-success-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0 24px;
  text-align: center;
}

.mobile-waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-waitlist-row #email {
  width: 100%;
  height: 52px;
  font-size: 17px;
}

.mobile-waitlist-row .waitlist-submit {
  width: 100%;
  min-height: 52px;
}

.mobile-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 20px 28px;
}

.mobile-points .point { align-items: flex-start; text-align: left; }

.mobile-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 20px 20px 28px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plum-text);
  border-top: 1px dashed rgba(43, 39, 37, 0.16);
}

.mobile-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--charcoal);
}
