/* Company Arc waitlist — dark mineral + parchment + ember */

:root {
  --ink: #0d1110;
  --ink-elevated: #151b19;
  --mineral: #1c2421;
  --line: rgba(232, 224, 212, 0.12);
  --parchment: #e8e0d4;
  --parchment-dim: rgba(232, 224, 212, 0.68);
  --parchment-faint: rgba(232, 224, 212, 0.42);
  --ember: #c45c26;
  --ember-soft: #d4783a;
  --sage: #8a9a8a;
  --ok: #9bb59b;
  --danger: #d46a5c;
  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --max: 42rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--parchment);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--parchment);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember-soft);
}

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

/* Atmosphere: mineral wash + soft arc glow */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 10%, rgba(196, 92, 38, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(138, 154, 138, 0.1), transparent 50%),
    linear-gradient(165deg, #101614 0%, var(--ink) 45%, #0a0d0c 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.arc-mark {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(72vw, 36rem);
  height: min(72vw, 36rem);
  opacity: 0.55;
  z-index: 0;
}

.arc-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.arc-path {
  fill: none;
  stroke: var(--parchment);
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.22;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-arc 1.8s var(--ease) 0.2s forwards;
}

.arc-dot {
  fill: var(--ember);
  opacity: 0;
  animation: fade-dot 0.6s var(--ease) 1.4s forwards;
}

@keyframes draw-arc {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-dot {
  to { opacity: 0.9; }
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--parchment);
}

.brand:hover {
  color: var(--parchment);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-by {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}

.top-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--parchment-dim);
}

.top-nav a {
  color: inherit;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--parchment);
}

/* Hero — one composition */
.hero {
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(3.5rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  max-width: 38rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--parchment);
}

.hero .lede {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--parchment-dim);
}

.reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.32s; }
.reveal.d4 { animation-delay: 0.46s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Waitlist form — not a card; edge-aligned field */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  max-width: 28rem;
}

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

.waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(21, 27, 25, 0.72);
  color: var(--parchment);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.waitlist input[type="email"]::placeholder {
  color: var(--parchment-faint);
}

.waitlist input[type="email"]:focus {
  border-color: rgba(196, 92, 38, 0.65);
  background: rgba(21, 27, 25, 0.92);
}

.waitlist button {
  flex: 0 0 auto;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 0;
  background: var(--ember);
  color: #1a100c;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.waitlist button:hover:not(:disabled) {
  background: var(--ember-soft);
}

.waitlist button:active:not(:disabled) {
  transform: translateY(1px);
}

.waitlist button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--parchment-faint);
  max-width: 28rem;
}

.form-status {
  margin: 0.85rem 0 0;
  min-height: 1.4em;
  font-size: 0.9375rem;
}

.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--danger); }

/* Below-fold: one job — what / who for compliance */
.about {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
  }
}

.about h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.about p {
  margin: 0 0 1rem;
  color: var(--parchment-dim);
  max-width: 36rem;
}

.about p:last-child {
  margin-bottom: 0;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.meta-list li {
  display: grid;
  gap: 0.2rem;
}

.meta-list strong {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

.meta-list span {
  color: var(--parchment-dim);
  font-size: 0.975rem;
}

.meta-list a {
  color: var(--parchment);
}

footer.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--parchment-faint);
}

footer.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

footer.site-footer a {
  color: var(--parchment-dim);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--parchment);
}

/* Legal pages */
.legal {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
  max-width: 40rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 450;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--parchment-faint);
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 450;
}

.legal p,
.legal li {
  color: var(--parchment-dim);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.4rem;
}
