/* ----------------------------------------------------------
   House of 360 · Coming Soon
   Editorial monochrome. Serif + spaced sans.
---------------------------------------------------------- */

:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.32);
  --hair: rgba(255, 255, 255, 0.14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* Screen-reader-only utility */
.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;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover { color: var(--ink); opacity: 0.75; }

/* ----------------------------------------------------------
   Background ambience
---------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vmin;
  height: 80vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    transparent 65%
  );
  filter: blur(20px);
}

.bg__grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  mix-blend-mode: screen;
  animation: grain 7s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -2%); }
  20% { transform: translate(2%, -4%); }
  30% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, 2%); }
  50% { transform: translate(-3%, 1%); }
  60% { transform: translate(2%, -3%); }
  70% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
  90% { transform: translate(-1%, 3%); }
}

/* ----------------------------------------------------------
   Top bar
---------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  pointer-events: none;
}

.topbar__mark, .topbar__status, .topbar a {
  pointer-events: auto;
}

.topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.topbar__mark .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ink);
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #fff;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ----------------------------------------------------------
   Hero
---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 88px clamp(20px, 5vw, 56px) 96px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  text-align: center;
}

/* Rotating brand ring */
.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vmin, 820px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.ring__svg {
  width: 100%;
  height: 100%;
  animation: spin 120s linear infinite;
}

.ring__tick text {
  fill: rgba(255, 255, 255, 0.45);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 28px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow__line {
  width: 36px;
  height: 1px;
  background: var(--ink-faint);
}

/* Logo */
.logo {
  margin: 0 auto 24px;
  max-width: min(520px, 72vw);
}

.logo img {
  width: 100%;
  height: auto;
}

/* Headline */
.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 4px auto 22px;
  max-width: 14ch;
}

.headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-muted);
}

/* Lede */
.lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 42ch;
  margin: 0 auto 40px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 56px);
  list-style: none;
  margin: 0 auto 40px;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  max-width: 720px;
}

.countdown li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
}

.countdown span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown small {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Launched state */
.launched {
  margin: 0 auto 40px;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  max-width: 720px;
  text-align: center;
}

.launched__line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1;
  margin: 0;
}

/* Signup */
.signup {
  max-width: 520px;
  margin: 0 auto;
}

.signup__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.signup__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 0.3s var(--ease);
}

.signup__row:focus-within {
  border-bottom-color: var(--ink);
}

.signup input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  padding: 16px 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.signup input::placeholder {
  color: var(--ink-faint);
  font-weight: 300;
}

.signup button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 6px 16px 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease), opacity 0.25s var(--ease);
}

.signup button:hover {
  gap: 18px;
  opacity: 0.85;
}

.signup button svg path {
  transition: transform 0.3s var(--ease);
}

.signup__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup button[disabled] {
  opacity: 0.5;
  cursor: wait;
}

.signup__msg {
  margin: 14px 0 0;
  min-height: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: opacity 400ms ease;
}

.signup__msg:empty { opacity: 0; }

.signup__msg.is-error { color: #ff8e8e; }
.signup__msg.is-success { color: #c2f0c2; }

/* Scroll indicator */
.scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--ink-faint);
  border-radius: 14px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.scroll span {
  width: 2px;
  height: 6px;
  background: var(--ink);
  border-radius: 2px;
  animation: scrollDot 2s var(--ease) infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(-6px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ----------------------------------------------------------
   Contact / Footer
---------------------------------------------------------- */
.contact {
  position: relative;
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 56px) 40px;
  border-top: 1px solid var(--hair);
}

.contact__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.contact__title em {
  font-style: italic;
  color: var(--ink-muted);
  font-weight: 300;
}

.contact__sub {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 36ch;
  line-height: 1.7;
  margin: 0;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}

.contact__list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}

.contact__list li:last-child { border-bottom: 0; }

.contact__key {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact__person {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.contact__list a,
.contact__list address {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.foot {
  max-width: var(--container);
  margin: clamp(60px, 8vw, 100px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.foot__mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.foot__mark img { width: 28px; height: 28px; opacity: 0.85; }

.foot small {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Reveal hooks kept as no-ops; default is fully visible. */
.reveal { opacity: 1; }

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */
@media (max-width: 760px) {
  .topbar { padding: 16px 20px; font-size: 10px; }
  .topbar__label { display: none; }

  .hero { padding: 110px 20px 90px; }

  .countdown {
    gap: 8px;
    padding: 22px 0;
  }

  .countdown li { min-width: 54px; }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__list li {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }

  .scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ring__svg,
  .pulse::after,
  .scroll span,
  .bg__grain { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
