/* ============================================================
   ZINORA — obsidian luxury-futurism
   Couture serif × terminal mono. Gold pins. Built to never fade.
   ============================================================ */

:root {
  /* surfaces */
  --void:      #07070a;
  --void-2:    #0c0c11;
  --void-3:    #121219;
  --hair:      rgba(212, 175, 55, 0.14);
  --hair-soft: rgba(236, 231, 218, 0.08);

  /* ink */
  --ink:       #ece7da;
  --ink-2:     #b8b2a4;
  --ink-dim:   #837d70;

  /* precious metals */
  --gold-1:    #9a7b2e;
  --gold-2:    #d4af37;
  --gold-3:    #f4e0a0;
  --platinum:  #c8cdd4;

  /* T568B signature sequence */
  --t-1: #d8c9b0; /* white-orange */
  --t-2: #e8821e; /* orange */
  --t-3: #c7d6c2; /* white-green */
  --t-4: #2f6fb3; /* blue */
  --t-5: #bcd0e2; /* white-blue */
  --t-6: #2e9e4f; /* green */
  --t-7: #cabfaf; /* white-brown */
  --t-8: #6e4a2a; /* brown */

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 350;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- atmosphere: gold mesh + grain ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(212,175,55,0.10), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(47,111,179,0.06), transparent 70%),
    radial-gradient(120% 90% at 50% -10%, rgba(244,224,160,0.05), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 2; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- T568B hairline (top + reusable) ---------- */
.t568b {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 3px;
  width: 100%;
}
.t568b > i { display: block; }
.t568b > i:nth-child(1){ background: var(--t-1); }
.t568b > i:nth-child(2){ background: var(--t-2); }
.t568b > i:nth-child(3){ background: var(--t-3); }
.t568b > i:nth-child(4){ background: var(--t-4); }
.t568b > i:nth-child(5){ background: var(--t-5); }
.t568b > i:nth-child(6){ background: var(--t-6); }
.t568b > i:nth-child(7){ background: #cabfaf; }
.t568b > i:nth-child(8){ background: var(--t-8); }
.t568b.thin { height: 2px; }

.t568b--top { position: fixed; top: 0; left: 0; z-index: 50; }

/* ---------- nav ---------- */
header.nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
header.nav.scrolled {
  background: rgba(7,7,10,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--hair-soft);
  padding-top: 1rem; padding-bottom: 1rem;
}
.brandmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--gold-2); }
.nav-cta {
  border: 1px solid var(--hair);
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  color: var(--gold-3) !important;
}
.nav-cta:hover { border-color: var(--gold-2); background: rgba(212,175,55,0.08); }
@media (max-width: 760px){ .nav-links a:not(.nav-cta){ display:none; } }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.gold-text {
  background: linear-gradient(105deg, var(--gold-1), var(--gold-3) 45%, var(--gold-2) 70%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.serif-i { font-family: var(--font-display); font-style: italic; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: 8rem clamp(1.25rem, 4vw, 3rem) 4rem;
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
.hero-copy { max-width: 36ch; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 1.4rem 0 1.5rem;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lede {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 40ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: #1a1407;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(244,224,160,0.25), 0 14px 40px -16px rgba(212,175,55,0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(244,224,160,0.5), 0 20px 50px -16px rgba(212,175,55,0.7); }
.btn-ghost { color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-3); }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img, .hero-art svg { width: 100%; height: auto; max-height: 78svh; filter: drop-shadow(0 30px 80px rgba(212,175,55,0.18)); }

@media (max-width: 900px){
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 7rem; }
  .hero-art { order: -1; max-width: 460px; }
}

/* hero entrance */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal]:nth-child(1){ transition-delay: .05s; }
.hero [data-reveal]:nth-child(2){ transition-delay: .18s; }
.hero [data-reveal]:nth-child(3){ transition-delay: .31s; }
.hero [data-reveal]:nth-child(4){ transition-delay: .44s; }

/* ---------- section scaffolding ---------- */
section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; }
.sec-head { max-width: 56ch; margin-bottom: 3.5rem; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 1.1rem 0 1rem;
}
.sec-head p { color: var(--ink-2); font-size: 1.06rem; max-width: 50ch; }
.rule { height: 1px; background: linear-gradient(90deg, var(--hair), transparent); border: 0; }

/* ---------- SIGNATURE / T568B ---------- */
.signature { background: linear-gradient(180deg, var(--void), var(--void-2)); border-top: 1px solid var(--hair-soft); }
.seq {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.seq .pin {
  border: 1px solid var(--hair-soft);
  border-radius: 3px;
  overflow: hidden;
  background: var(--void-3);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.seq .pin:hover { transform: translateY(-6px); border-color: var(--gold-2); }
.seq .swatch { height: 84px; }
.seq .meta { padding: 0.7rem 0.6rem; }
.seq .num { font-family: var(--font-mono); font-size: 0.66rem; color: var(--gold-2); letter-spacing: 0.1em; }
.seq .name { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; margin-top: 0.2rem; }
.s1{background:repeating-linear-gradient(120deg,#e8821e 0 6px,#efe6d6 6px 12px);} .s2{background:#e8821e;}
.s3{background:repeating-linear-gradient(120deg,#2e9e4f 0 6px,#efe6d6 6px 12px);} .s4{background:#2f6fb3;}
.s5{background:repeating-linear-gradient(120deg,#2f6fb3 0 6px,#efe6d6 6px 12px);} .s6{background:#2e9e4f;}
.s7{background:repeating-linear-gradient(120deg,#6e4a2a 0 6px,#efe6d6 6px 12px);} .s8{background:#6e4a2a;}
.seq-caption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-dim); margin-top: 1.6rem; letter-spacing: 0.04em; }
@media (max-width: 720px){ .seq { grid-template-columns: repeat(4, 1fr); } }

/* ---------- BRIDGE (the gold was always there) ---------- */
.bridge { background: var(--void); }
.bridge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--hair-soft); border-radius: 4px; overflow: hidden; }
.bridge-row { display: contents; }
.bcell { padding: 1.5rem 1.7rem; border-bottom: 1px solid var(--hair-soft); }
.bcell.l { background: rgba(236,231,218,0.015); }
.bcell.r { background: rgba(212,175,55,0.03); border-left: 1px solid var(--hair-soft); }
.bcell .k { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--gold-3); }
.bcell .v { color: var(--ink-2); font-size: 0.98rem; margin-top: 0.2rem; }
.bcell .lbl { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); display: block; margin-bottom: 0.5rem; }
@media (max-width: 720px){ .bcell .k { font-size: 1.2rem; } }

/* ---------- COLLECTION ---------- */
.collection { background: linear-gradient(180deg, var(--void-2), var(--void)); border-top: 1px solid var(--hair-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.card {
  border: 1px solid var(--hair-soft);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18,18,25,0.6), rgba(12,12,17,0.6));
  padding: 1.6rem;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(212,175,55,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--hair); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.card:hover::after { opacity: 1; }
.card .art { aspect-ratio: 4/3; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 3px; background: radial-gradient(80% 80% at 50% 40%, rgba(212,175,55,0.06), transparent); }
.card .art svg { width: 70%; height: auto; }
.card .tier { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; margin: 0.4rem 0 0.5rem; }
.card p { color: var(--ink-2); font-size: 0.92rem; flex: 1; }
.card .price { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); margin-top: 1.1rem; letter-spacing: 0.05em; }
.card .price span { color: var(--ink-dim); }
@media (max-width: 860px){ .cards { grid-template-columns: 1fr; max-width: 440px; } }

/* ---------- LEGACY / story ---------- */
.legacy { background: var(--void); }
.legacy-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.legacy blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  color: var(--ink);
}
.legacy blockquote .gold-text { font-style: italic; }
.legacy .src { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-dim); letter-spacing: 0.12em; margin-top: 1.6rem; text-transform: uppercase; }
.legacy .body p { color: var(--ink-2); margin-bottom: 1.1rem; font-size: 1.04rem; }
.legacy .body p strong { color: var(--ink); font-weight: 500; }
@media (max-width: 820px){ .legacy-inner { grid-template-columns: 1fr; } }

/* ---------- WAITLIST ---------- */
.waitlist { background: linear-gradient(180deg, var(--void), var(--void-2)); border-top: 1px solid var(--hair-soft); text-align: center; }
.waitlist .inner { max-width: 640px; margin-inline: auto; }
.waitlist h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.0; margin: 1rem 0; }
.waitlist p { color: var(--ink-2); margin-bottom: 2.2rem; }
.wl-form { display: flex; gap: 0.6rem; max-width: 460px; margin: 0 auto; }
.wl-form input {
  flex: 1;
  background: var(--void-3);
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0 1.1rem;
  height: 52px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wl-form input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.wl-form input::placeholder { color: var(--ink-dim); }
.wl-form .btn-gold { height: 52px; white-space: nowrap; }
.wl-note { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-dim); margin-top: 1.1rem; letter-spacing: 0.08em; }
.wl-success { font-family: var(--font-mono); color: var(--gold-3); font-size: 0.9rem; letter-spacing: 0.05em; min-height: 1.4em; }
@media (max-width: 520px){ .wl-form { flex-direction: column; } }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--hair-soft); background: var(--void); padding: 4rem 0 3rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-brand .brandmark { font-size: 1.7rem; }
.foot-brand p { color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; margin-top: 0.9rem; max-width: 30ch; line-height: 1.7; }
.foot-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 0.86rem; margin-bottom: 0.6rem; transition: color 0.3s var(--ease); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--hair-soft); }
.foot-bottom span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-dim); letter-spacing: 0.08em; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
