/* ============================================
   KOONJO — Coming Soon
   Tokens
   ============================================ */
:root {
  --koonjo-black: #0b0b0c;
  --koonjo-black-2: #131315;
  --koonjo-white: #f7f7f4;
  --koonjo-red: #e31b23;
  --koonjo-red-dim: #5c0f12;
  --koonjo-gold: #c9a227;
  --koonjo-gray: #8a8a8f;
  --koonjo-line: rgba(247, 247, 244, 0.14);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--koonjo-black);
  color: var(--koonjo-white);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

.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;
}

/* Fine grain texture over the black so it doesn't feel like flat digital void */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   Signature element: the interlocking loop
   traced from the wordmark's connected "oo"
   ============================================ */
.loop-motif {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(140vw, 1400px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.loop-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.loop-path--a {
  stroke: var(--koonjo-line);
  stroke-dasharray: 692;
  stroke-dashoffset: 692;
  animation: draw-loop 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.loop-path--b {
  stroke: var(--koonjo-red);
  stroke-opacity: 0.55;
  stroke-dasharray: 692;
  stroke-dashoffset: 692;
  animation: draw-loop 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards;
}

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

.loop-dot {
  fill: var(--koonjo-red);
  opacity: 0;
  animation: fade-dot 0.6s ease 2.4s forwards;
}

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

/* ============================================
   Layout shell
   ============================================ */
.page {
  position: relative;
  z-index: 3;
  max-width: 1040px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark-img {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.6));
}

.header-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--koonjo-gray);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0 3rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--koonjo-red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--koonjo-red);
  box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.18);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
  text-wrap: balance;
}

.headline-accent {
  display: block;
  color: var(--koonjo-red);
}

.subcopy {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(247, 247, 244, 0.75);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

/* ============================================
   Notify form
   ============================================ */
.notify-form {
  display: flex;
  width: 100%;
  max-width: 440px;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.notify-input {
  flex: 1;
  min-width: 0;
  background: var(--koonjo-black-2);
  border: 1px solid var(--koonjo-line);
  color: var(--koonjo-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.notify-input::placeholder {
  color: var(--koonjo-gray);
}

.notify-input:focus-visible {
  border-color: var(--koonjo-red);
}

.notify-btn {
  background: var(--koonjo-red);
  color: var(--koonjo-white);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.5rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify-btn:hover { background: #ff2932; }
.notify-btn:active { transform: scale(0.97); }

.notify-btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--koonjo-gold);
  outline-offset: 3px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--koonjo-gray);
  margin: 0 0 3.5rem;
}

.form-note--confirmed {
  color: var(--koonjo-gold);
}

/* ============================================
   Pillars strip
   ============================================ */
.pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.2rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--koonjo-gray);
}

.pillar-num {
  color: var(--koonjo-red);
  margin-right: 0.4em;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--koonjo-line);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
}

.footer-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin: 0;
  color: var(--koonjo-white);
}

.footer-accent { color: var(--koonjo-red); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  font-size: 0.75rem;
  color: var(--koonjo-gray);
}

.social-row {
  display: flex;
  gap: 1.1rem;
}

.social-row a {
  color: var(--koonjo-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-row a:hover { color: var(--koonjo-white); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 560px) {
  .notify-form {
    flex-direction: column;
  }
  .notify-btn { width: 100%; }
  .footer-meta { flex-direction: column; gap: 0.6rem; }
}
