:root {
  --bg: #101216;
  --surface: #16181c;
  --elevated: #25282e;
  --accent: #28c2b8;
  --gold: #d6a84b;
  --violet: #7867c9;
  --coral: #e8675a;
  --steel: #537a91;
  --text: #f1f2f4;
  --muted: #adb2ba;
  --divider: #565b64;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }

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

.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(180deg, #2a2e36 0%, #1c1f25 100%);
  border-bottom: 1px solid rgba(214, 168, 75, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.rail__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.rail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.rail__links a { color: var(--muted); }
.rail__links a:hover { color: var(--accent); }

.desk-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
}

.desk-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 18, 22, 0.35) 0%, rgba(16, 18, 22, 0.82) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(16, 18, 22, 0.7) 0%, transparent 55%);
}

.desk-hero__copy {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 3.5rem;
  max-width: 40rem;
}

.desk-hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.desk-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
}

.desk-hero__tag {
  margin: 1rem 0 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 28rem;
}

.swatch-bar {
  display: flex;
  gap: 0.35rem;
  max-width: 16rem;
}

.swatch-bar span {
  flex: 1;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent);
}

.shelf-band {
  padding: 3.5rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at top, rgba(40, 194, 184, 0.06), transparent 55%),
    var(--surface);
  border-top: 1px solid var(--divider);
}

.shelf-band__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.metal-tick {
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.shelf-band h2,
.spreads__head h2,
.plate h2,
.stamp h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.spine-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spine {
  position: relative;
  padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  background: var(--elevated);
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(86, 91, 100, 0.5);
  box-shadow: -6px 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.spine::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.spine[data-accent="gold"]::before { background: var(--gold); }
.spine[data-accent="violet"]::before { background: var(--violet); }

.spine:hover {
  transform: translateY(-6px);
  box-shadow: -8px 16px 36px rgba(0, 0, 0, 0.45);
}

.spine h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.spine p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.spreads {
  padding: 3.5rem 1.5rem 4rem;
}

.spreads__head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.spreads__head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.spread-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: center;
}

.page-frame {
  margin: 0;
  padding: 0.55rem;
  background: linear-gradient(145deg, #3a3f48, #1a1d22);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(214, 168, 75, 0.2),
    0 18px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.page-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.page-frame--tilt {
  transform: rotate(-2.5deg);
}

.plate {
  position: relative;
  margin: 0 1.25rem 3rem;
  padding: 2.5rem 1.5rem 2.75rem;
  background: var(--elevated);
  border: 1px solid rgba(86, 91, 100, 0.65);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.plate__edge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--gold));
  opacity: 0.7;
  border-radius: 2px;
}

.plate h2 { margin-top: 0.75rem; }

.plate__body {
  margin-top: 1.25rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.plate__body h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1rem;
  color: var(--text);
}

.plate__body p { margin: 0.45rem 0; }
.plate__body strong { color: var(--text); }

.stamp {
  margin: 0 1.25rem 4rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(40, 194, 184, 0.1), transparent 60%),
    var(--surface);
  border: 1px dashed rgba(40, 194, 184, 0.45);
  border-radius: 16px;
}

.stamp p {
  margin: 0.85rem auto 1.25rem;
  max-width: 28rem;
  color: var(--muted);
}

.stamp__mail {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(40, 194, 184, 0.35);
}

.stamp__mail:hover {
  color: var(--bg);
  background: var(--gold);
  box-shadow: 0 0 24px rgba(214, 168, 75, 0.35);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  padding: 1.5rem;
  border-top: 1px solid var(--divider);
  font-size: 0.85rem;
  color: var(--muted);
}

.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .spine-row,
  .spread-grid {
    grid-template-columns: 1fr;
  }

  .page-frame--tilt { transform: none; }

  .rail {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spine { transition: none; }
}
