/* ==========================================================================
   STYLONYX — Lifestyle & Technology
   Design tokens
   ========================================================================== */
:root {
  /* Base */
  --void: #0a0611;
  --deep: #150c22;
  --deep-2: #1d1330;
  --line: rgba(232, 213, 170, 0.14);

  /* Metals, lifted from the crest */
  --silver: #e9e9ee;
  --silver-dim: #9a97a8;
  --gold-light: #f3dda3;
  --gold: #cda05e;
  --gold-deep: #8a6a35;

  --ink: #f2ede4;
  --ink-dim: #b6aec2;

  --gold-gradient: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-light) 35%, var(--gold) 60%, var(--gold-light) 85%);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Ambience — background wash + grain + hero spotlight
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(205, 160, 94, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(90, 50, 120, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 10% 60%, rgba(60, 30, 90, 0.3), transparent 55%),
    var(--void);
  pointer-events: none;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  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");
}

.hero-spotlight {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  transform: translate(-50%, 0);
  background: radial-gradient(circle, rgba(233, 205, 140, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s ease;
}

main, header, footer { position: relative; z-index: 2; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(10, 6, 17, 0.55);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-mark.small { width: 26px; height: 26px; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  background: var(--gold-gradient);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to { background-position: 220% center; }
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-header.scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: rgba(10, 6, 17, 0.82);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(10px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--silver);
  margin-bottom: 1.6rem;
}

.hero-title .reveal-line { display: block; }

.hero-sub {
  max-width: 46ch;
  margin: 0 auto 2.4rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.reveal-line {
  opacity: 0;
  transform: translateY(16px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--gold-gradient);
  background-size: 220% auto;
  color: #1a1027;
}
.btn-primary:hover {
  background-position: 100% center;
  box-shadow: 0 8px 30px -8px rgba(205, 160, 94, 0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
  animation: scrollLeft 32s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--gold); }

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section shell
   ========================================================================== */
section:not(.hero):not(.marquee) {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 52ch;
  margin-bottom: 2.6rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--silver);
  margin-bottom: 0.7rem;
}
.section-head p {
  color: var(--ink-dim);
  font-size: 1rem;
}

/* ==========================================================================
   Collections list
   ========================================================================== */
.collection-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.collection-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: center;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}

.collection-name h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink);
  transition: color 0.3s ease, background 0.3s ease;
  display: inline-block;
}

.collection-item:hover .collection-name h3 {
  background: var(--gold-gradient);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.collection-desc {
  color: var(--ink-dim);
  font-size: 0.98rem;
  max-width: 46ch;
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto {
  text-align: center;
  position: relative;
}
.manifesto-rule {
  width: 1px;
  height: 3.5rem;
  margin: 0 auto 2rem;
  background: var(--gold-gradient);
}
.manifesto blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  max-width: 38ch;
  margin: 0 auto;
  color: var(--silver);
}
.manifesto-byline {
  margin-top: 1.4rem;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Showcase
   ========================================================================== */
.showcase-frame {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.showcase-media {
  width: 100%;
  height: clamp(260px, 42vw, 480px);
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.showcase-caption {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  padding: 1.6rem clamp(1.25rem, 3vw, 2.2rem);
  background: linear-gradient(to top, rgba(10, 6, 17, 0.92), transparent);
}
.showcase-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.showcase-caption p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--silver);
  max-width: 30ch;
}

/* ==========================================================================
   Contact / signup
   ========================================================================== */
.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  flex-wrap: wrap;
}
.signup-form input {
  flex: 1 1 240px;
  padding: 0.9rem 1.1rem;
  background: var(--deep-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.signup-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.signup-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--gold-light);
  min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  text-align: center;
  color: var(--ink-dim);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--gold);
  margin: 0.4rem 0 1.6rem;
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 0.8rem; }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 6, 17, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a {
    padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }

  .collection-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
