:root {
  --obsidian: #0A0A0B;
  --ivory: #F0ECE4;
  --citrine: #F5C542;      /* primary accent — warm yellow, not gold */
  --citrine-soft: #F7D272;
  --platinum: #8C8C92;
  --ruby: #E0435B;
  --sapphire: #4E7BEA;
  --emerald: #2FB08A;
  --amethyst: #9B5DE5;
  --edge: rgba(240, 236, 228, 0.16);
  --jewel: linear-gradient(90deg, #F5C542 0%, #E0435B 30%, #9B5DE5 55%, #4E7BEA 78%, #2FB08A 100%);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

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

/* --- Video cover --- */
.cover {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: saturate(1.05) contrast(1.05) brightness(0.66);
}

.cover-scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 50% 6%, rgba(10,10,11,0.12) 0%, rgba(10,10,11,0.68) 58%, rgba(10,10,11,0.94) 100%),
    linear-gradient(180deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.18) 28%, rgba(10,10,11,0.8) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Reverse-auction clock (signature) — runs counter-clockwise --- */
.reverse-clock {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(64vh, 74vw, 560px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}
.reverse-clock svg { width: 100%; height: 100%; overflow: visible; }
.reverse-clock circle,
.reverse-clock line { fill: none; }

.reverse-clock .rim {
  stroke: rgba(240, 236, 228, 0.14);
  stroke-width: 0.6;
}
.reverse-clock .ticks-min {
  stroke: rgba(240, 236, 228, 0.16);
  stroke-width: 1;
  stroke-dasharray: 1.3 7.7;
}
.reverse-clock .ticks-hr {
  stroke: rgba(245, 197, 66, 0.42);
  stroke-width: 2.4;
  stroke-dasharray: 2.4 42.6;
}
.reverse-clock .hub {
  fill: rgba(245, 197, 66, 0.55);
  stroke: none;
}
.reverse-clock .hand line {
  stroke-linecap: round;
}
.reverse-clock .hand-hr line {
  stroke: rgba(240, 236, 228, 0.4);
  stroke-width: 2.2;
}
.reverse-clock .hand-min line {
  stroke: rgba(245, 197, 66, 0.72);
  stroke-width: 1.6;
}
.reverse-clock .hand { transform-origin: 100px 100px; }
.reverse-clock .hand-hr { animation: unwind 96s linear infinite; }
.reverse-clock .hand-min { animation: unwind 16s linear infinite; }

@keyframes unwind {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }  /* counter-clockwise = reverse auction */
}

/* --- Topbar --- */
.topbar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 2.1rem) clamp(1.3rem, 5vw, 3.4rem);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.mark {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.mark .dot { color: var(--citrine); }
.topbar-note {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--platinum);
}

/* --- Stage (grows to fill, keeps ticker on screen) --- */
.stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2.5rem) clamp(1.3rem, 5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: clamp(0.66rem, 1.4vw, 0.82rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--citrine-soft);
  margin-bottom: clamp(1.1rem, 3vh, 1.9rem);
  padding-left: 2.6rem;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--jewel);
}

.headline {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 7.6vw, 6.1rem);
  line-height: 0.99;
  letter-spacing: -0.012em;
  max-width: 14ch;
}
.headline span { display: block; }
.headline .em {
  font-style: italic;
  font-weight: 400;
  background: var(--jewel);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  margin-top: clamp(1.3rem, 3.2vh, 2.2rem);
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.6vw, 1.16rem);
  line-height: 1.6;
  color: rgba(240, 236, 228, 0.82);
  font-weight: 300;
}

/* --- Signup --- */
.signup {
  margin-top: clamp(1.5rem, 4vh, 2.6rem);
  display: flex;
  gap: 0.6rem;
  max-width: 470px;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 0.7rem;
  transition: border-color 0.4s ease;
}
.signup:focus-within { border-color: var(--citrine); }
.signup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--ivory);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.5rem 0.2rem;
}
.signup input::placeholder { color: var(--platinum); }
.signup input:focus { outline: none; }
.signup button {
  background: transparent;
  border: none;
  color: var(--citrine);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
  transition: color 0.25s ease, letter-spacing 0.35s ease;
}
.signup button:hover,
.signup button:focus-visible { color: var(--citrine-soft); letter-spacing: 0.14em; outline: none; }
.signup-hint {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--platinum);
  min-height: 1.2em;
  transition: color 0.3s ease;
}
.signup-hint.ok { color: var(--citrine-soft); }
.signup-hint.err { color: var(--ruby); }

/* --- Brand ticker (signature) --- */
.ticker {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  border-top: 1px solid var(--edge);
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  padding: 0.95rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.72);
  padding: 0 2rem;
  white-space: nowrap;
}
.ticker-item::after {
  content: "◆";
  margin-left: 4rem;
  font-size: 0.5rem;
  vertical-align: middle;
}
/* Jewel-colored separators — colorful, not gold */
.ticker-item:nth-child(5n+1)::after { color: var(--citrine); }
.ticker-item:nth-child(5n+2)::after { color: var(--ruby); }
.ticker-item:nth-child(5n+3)::after { color: var(--emerald); }
.ticker-item:nth-child(5n+4)::after { color: var(--sapphire); }
.ticker-item:nth-child(5n+5)::after { color: var(--amethyst); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 620px) {
  .headline { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .signup { flex-wrap: wrap; }
  .topbar-note { display: none; }
  .ticker-item { padding: 0 1.4rem; }
  .ticker-item::after { margin-left: 2.6rem; }
}

/* Short viewports — keep ticker visible without scroll, tighten hero */
@media (max-height: 860px) {
  .headline { font-size: clamp(2.1rem, 5vw, 4.3rem); }
  .eyebrow { margin-bottom: 0.9rem; }
  .lede { margin-top: 1rem; font-size: 0.98rem; }
  .signup { margin-top: 1.2rem; }
  .stage { padding-top: 0.6rem; padding-bottom: 0.6rem; }
}
@media (max-height: 680px) {
  .headline { font-size: clamp(1.9rem, 5vw, 3.2rem); }
  .lede { display: none; }
  .reverse-clock { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reverse-clock .hand-hr,
  .reverse-clock .hand-min { animation: none; }
  .reverse-clock .hand-min { transform: rotate(-38deg); }
  .reverse-clock .hand-hr { transform: rotate(-70deg); }
  .cover { display: none; }
  .cover-scrim { background: radial-gradient(120% 90% at 50% 0%, #17110a 0%, #0A0A0B 70%); }
}
