/* =============================================================
   Coming-Soon template — Observatory (bold) + Atelier (light)
   Switch by setting body class `variant-bold` or `variant-light`.
   ============================================================= */

:root {
  --display:  'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --body:     'Instrument Sans', 'Helvetica Neue', sans-serif;
  --italic:   'Instrument Serif', 'Times New Roman', serif;

  --ease:      cubic-bezier(0.2, 0.65, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bold theme — Observatory */
body.variant-bold {
  --bg:          #0a0908;
  --bg-deep:     #05040a;
  --fg:          #f5efe4;
  --fg-soft:     #b7ad9c;
  --fg-dim:      #6c6558;
  --accent:      #d4a574;
  --accent-soft: #8b6f4e;
  --line:        rgba(212, 165, 116, 0.14);
  --line-soft:   rgba(245, 239, 228, 0.06);
}

/* Light theme — Atelier */
body.variant-light {
  --bg:          #faf5ec;
  --bg-deep:     #f0ead9;
  --fg:          #1a1511;
  --fg-soft:     #514738;
  --fg-dim:      #8b7f66;
  --accent:      #a65a2c;
  --accent-soft: #c98460;
  --line:        rgba(26, 21, 17, 0.12);
  --line-soft:   rgba(26, 21, 17, 0.05);
}

/* ------------ reset & base ------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* bold background atmosphere */
body.variant-bold {
  background-image:
    radial-gradient(ellipse 70% 55% at 15% -5%,  rgba(212, 165, 116, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 105% 105%, rgba(255, 102, 51, 0.05) 0%, transparent 55%);
}
/* light background atmosphere */
body.variant-light {
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(166, 90, 44, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 115%, rgba(166, 90, 44, 0.04) 0%, transparent 55%);
}

/* ------------ shell grid ------------ */
.shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 3.5vw, 3.5rem);
  gap: clamp(1.25rem, 2vw, 2rem);
}

.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;
}
.muted       { color: var(--fg-dim); }
.italic      { font-family: var(--italic); font-style: italic; }
.mono        { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.accent-text { color: var(--accent); font-weight: 500; }

/* ===============================================================
   Atmosphere layers
   =============================================================== */
.layer { position: fixed; pointer-events: none; }

/* ---- orbs (bold) ---- */
body.variant-bold .orb {
  top: 40%; left: 20%;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(212, 165, 116, 0.22) 0%,
    rgba(212, 165, 116, 0.08) 25%,
    transparent 55%);
  filter: blur(60px);
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: drift 42s var(--ease) infinite;
  mix-blend-mode: screen;
}
body.variant-bold .orb--2 {
  top: 70%; left: 85%;
  width: 45vmax; height: 45vmax;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 102, 51, 0.10) 0%,
    rgba(255, 102, 51, 0.03) 35%,
    transparent 60%);
  animation: drift2 55s var(--ease) infinite;
  animation-delay: -12s;
}
body.variant-light .orb,
body.variant-light .orb--2 { display: none; }

@keyframes drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33%      { transform: translate(-38%, -58%) scale(1.06); }
  66%      { transform: translate(-62%, -44%) scale(0.95); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  40%      { transform: translate(-66%, -40%) scale(1.1); }
  70%      { transform: translate(-40%, -60%) scale(0.9); }
}

/* ---- grid lines (bold only) ---- */
body.variant-bold .grid-lines {
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 50%, #000 30%, transparent 85%);
  opacity: 0.6;
}
body.variant-light .grid-lines { display: none; }

/* ---- paper texture (light only) ---- */
body.variant-light .paper {
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.45  0 0 0 0 0.28  0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
}
body.variant-bold .paper { display: none; }

/* ---- grain (bold) ---- */
body.variant-bold .grain {
  inset: -10%;
  z-index: 900;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
  animation: grainShift 0.9s steps(3) infinite;
}
body.variant-light .grain { display: none; }
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ---- cursor glow (both, amber vs sienna) ---- */
.cursor-glow {
  top: 0; left: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  z-index: 1;
  transform: translate(-260px, -260px);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
body.variant-bold .cursor-glow  { background: radial-gradient(circle, rgba(212,165,116,0.07) 0%, transparent 60%); }
body.variant-light .cursor-glow { background: radial-gradient(circle, rgba(166,90,44,0.06)  0%, transparent 60%); }
body.has-cursor .cursor-glow { opacity: 1; }

/* ===============================================================
   Status bar
   =============================================================== */
.status-bar {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 22px var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
body.variant-light .status-dot { box-shadow: 0 0 6px var(--accent); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.top-nav {
  margin-left: auto;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.top-nav a {
  color: var(--fg);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}
.top-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.55s var(--ease-out);
}
.top-nav a:hover::after { width: 100%; }

/* ===============================================================
   Hero
   =============================================================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(0.5rem, 1.5vw, 1.25rem) 0;
}

.hero-prelude {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(0.9rem, 1.6vw, 1.4rem);
  opacity: 0;
  animation: fade 1s 0.2s var(--ease-out) forwards;
}
.rule {
  display: inline-block;
  width: 50px; height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: ruleGrow 1.2s 0.3s var(--ease-out) forwards;
}
@keyframes ruleGrow { to { transform: scaleX(1); } }

.prelude-text {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: var(--accent);
  letter-spacing: 0.01em;
}

.title {
  font-family: var(--display);
  font-weight: 400;
  /* reduced max so even long names like "Double Wealth" fit one line */
  font-size: clamp(2.4rem, 7.5vw, 6.5rem);
  font-variation-settings: "opsz" 144;
  line-height: 0.92;
  letter-spacing: -0.032em;
  color: var(--fg);
  overflow: hidden;
  padding-top: 0.08em;
  padding-bottom: 0.05em;
  margin-left: -0.04em;
  max-width: 18ch;
  text-wrap: balance;
}
body.variant-light .title { font-weight: 500; letter-spacing: -0.025em; }

.title-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(108%) rotate(2.5deg);
  animation: titleRise 1.2s 0.5s var(--ease-out) forwards;
}
@keyframes titleRise {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.tagline {
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.4;
  color: var(--fg-soft);
  max-width: 46ch;
  margin-top: clamp(0.75rem, 1.3vw, 1.2rem);
  opacity: 0;
  animation: fadeUp 0.9s 1.1s var(--ease-out) forwards;
}

.mission {
  font-family: var(--body);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 52ch;
  margin-top: clamp(0.5rem, 0.8vw, 0.75rem);
  opacity: 0;
  animation: fadeUp 0.9s 1.25s var(--ease-out) forwards;
}
.mission:empty { display: none; }

/* ---- countdown ---- */
.countdown {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
  margin-top: clamp(1.5rem, 2.4vw, 2.2rem);
  opacity: 0;
  animation: fadeUp 0.9s 1.4s var(--ease-out) forwards;
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: clamp(3.2ch, 4vw, 4ch);
}
.count-num {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  letter-spacing: -0.015em;
}
body.variant-light .count-num { font-weight: 500; }

.count-label {
  font-family: var(--body);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 0.5rem;
}

.count-sep {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: var(--accent);
  font-weight: 300;
  line-height: 0.95;
  opacity: 0.7;
  align-self: center;
  margin-top: -0.2em;
}

/* ===============================================================
   Side rail (bold only, positioned fixed)
   =============================================================== */
.rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--body);
  font-size: 9.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  z-index: 5;
  opacity: 0.55;
}
body.variant-light .rail { display: none; }

/* ===============================================================
   Footer
   =============================================================== */
.foot {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.6fr) minmax(180px, auto);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 0.9s 1.7s var(--ease-out) forwards;
}

.foot-label {
  font-family: var(--body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.foot-label::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.foot-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.foot-link {
  font-family: var(--body);
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.4s var(--ease);
  width: fit-content;
}
.foot-link:hover { color: var(--accent); }

/* ---- newsletter form ---- */
.news-lead {
  color: var(--fg-soft);
  font-size: 13px;
  margin-bottom: 0.9rem;
  max-width: 36ch;
}

.news-form {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  max-width: 440px;
  transition: border-color 0.5s var(--ease);
}
.news-form:focus-within { border-bottom-color: var(--accent); }

.news-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 0.7rem 0;
  font-family: var(--body);
  font-size: 14px;
  color: var(--fg);
  outline: none;
  min-width: 0;
}
.news-form input[type="email"]::placeholder {
  color: var(--fg-dim);
  font-family: var(--italic);
  font-style: italic;
}

.news-btn {
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 0.7rem 0 0.7rem 1rem;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.4s var(--ease), gap 0.4s var(--ease);
  white-space: nowrap;
}
.news-btn:hover:not(:disabled) { color: var(--accent); gap: 1.1rem; }
.news-btn:disabled             { opacity: 0.5; cursor: wait; }
.news-btn svg                  { display: block; transition: transform 0.4s var(--ease); }
.news-btn:hover:not(:disabled) svg { transform: translateX(3px); }

.news-ack {
  margin-top: 0.65rem;
  font-family: var(--italic);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  min-height: 1.1em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.news-ack.show { opacity: 1; transform: translateY(0); }
.news-ack.error { color: var(--accent-soft); }

/* ---- brand + social ---- */
.foot-section--brand {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.foot-section--brand .foot-label::before { display: none; }
.foot-section--brand .foot-label::after {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.brand-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
  font-variation-settings: "opsz" 12;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
  margin: 0.4rem 0 0.55rem;
}
.social-row a {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-dim);
  text-decoration: none;
  transition: all 0.4s var(--ease);
}
.social-row a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social-row svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-row:empty { display: none; }

.copyright { font-size: 11px; }

/* ===============================================================
   Animations
   =============================================================== */
@keyframes fade   { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ===============================================================
   Responsive
   =============================================================== */
@media (max-width: 900px) {
  .shell { padding: 1rem 1.2rem; gap: 1.25rem; }
  .status-bar { flex-wrap: wrap; gap: 0.7rem 1.2rem; padding-bottom: 0.8rem; }
  .hide-sm { display: none; }
  .top-nav { margin-left: 0; width: 100%; gap: 1.4rem; }

  .title { max-width: 100%; font-size: clamp(2.2rem, 11vw, 4.5rem); }

  .countdown { gap: 0.6rem; flex-wrap: nowrap; }
  .count-sep { display: none; }
  .count-num { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }
  .count-block { min-width: 3.5ch; }

  .rail { display: none; }

  .foot {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .foot-section--brand {
    text-align: left;
    align-items: flex-start;
  }
  .foot-section--brand .foot-label::after { display: none; }
  .foot-section--brand .foot-label::before {
    content: "";
    width: 18px; height: 1px;
    background: var(--accent);
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .news-form { flex-wrap: wrap; }
  .news-btn { padding-left: 0; padding-top: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .orb, .orb--2, .grain { animation: none; }
  .title-line { transform: none; opacity: 1; }
}
