/* =====================================================================
   ANTHONY BOURDAIN TRIBUTE — styles.css
   Dark. Cinematic. Uncompromising.
   Redesign: system fonts + aggressive typographic CSS for premium feel.
   ===================================================================== */

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

:root {
  --black:       #0d0d0d;
  --dark:        #111111;
  --dark-mid:    #181818;
  --dark-card:   #141414;
  --gold:        #c9a84c;
  --gold-light:  #e8c96e;
  --gold-dim:    #a07d30;
  --cream:       #f5f0e8;
  --cream-dim:   #c8bfaf;
  --cream-muted: #8a8279;
  --red:         #8b0000;
  --red-bright:  #b22222;
  --border:      rgba(201, 168, 76, 0.18);
  --border-dim:  rgba(201, 168, 76, 0.08);
  --glow-gold:   rgba(201, 168, 76, 0.12);
  --glow-red:    rgba(139, 0, 0, 0.18);
  --font-serif:  'Georgia', 'Palatino Linotype', 'Palatino', 'Book Antiqua', serif;
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'Courier New', 'Courier', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Gradient text utility */
.grad-text {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 40%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  letter-spacing: -0.02em;
}

.section-body {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 620px;
  line-height: 2;
  font-weight: 400;
}

/* ── LAYOUT ──────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--dark);
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-dim);
  padding: 1rem 0;
  transition: padding .3s var(--ease-out), box-shadow .3s;
}

.site-nav.scrolled {
  padding: .6rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 1px 0 var(--border-dim);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color .25s, opacity .25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s var(--ease-out);
  transform-origin: left;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: 80px;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  margin-bottom: -4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 75% 50%, rgba(139,0,0,.22) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 15% 75%, rgba(201,168,76,.09) 0%, transparent 55%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(0,0,0,.8) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.75) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
}

/* Decorative vertical line on hero */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 15%; bottom: 15%;
  right: 28%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,.35), transparent);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 15%; bottom: 15%;
  right: calc(28% + 6px);
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,.12), transparent);
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.9;
}

.hero-eyebrow::before {
  content: '';
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-eyebrow::after {
  content: '';
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-title {
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.8),
    0 8px 40px rgba(0,0,0,0.6),
    0 0 80px rgba(201,168,76,0.08);
}

/* "Anthony" — tracked, lighter weight feel */
.hero-title-first {
  display: block;
  font-size: 0.52em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 400;
  text-shadow: none;
  margin-bottom: 0.1em;
}

/* "Bourdain" — the hero word */
.hero-title span {
  display: block;
  background: linear-gradient(135deg, #a07830 0%, #c9a84c 30%, #f0d878 55%, #c9a84c 75%, #8a6020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(201,168,76,0.25));
}

.hero-dates {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--cream-muted);
  letter-spacing: 0.25em;
  margin-bottom: 2.5rem;
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-dates::before, .hero-dates::after {
  content: '';
  flex: 0 0 30px;
  height: 1px;
  background: rgba(201,168,76,0.25);
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.85;
  max-width: 560px;
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin-top: 2.5rem;
  position: relative;
}

.hero-quote::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -8px;
  width: 2px;
  height: 8px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
  opacity: 0.7;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin-top: 4px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ── ABOUT ───────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-frame {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background:
    linear-gradient(160deg, var(--dark-mid) 0%, #0f0f0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.05),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(201,168,76,0.06);
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: sepia(8%) contrast(1.05);
}

.about-frame-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(201,168,76,0.6);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Double-border frame effect */
.about-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 2px;
  pointer-events: none;
}

/* Corner accents */
.about-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,168,76,.06);
  border-radius: 1px;
  pointer-events: none;
}

/* Decorative corner pieces on about visual */
.about-visual::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 50px; height: 50px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.5;
  z-index: 2;
}

.about-visual::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 50px; height: 50px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.5;
  z-index: 2;
}

.about-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-dim);
}

.about-stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}

.about-stat-label {
  font-size: .7rem;
  letter-spacing: 0.18em;
  color: var(--cream-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* ── QUOTES CAROUSEL ─────────────────────────────────────────────── */
.quotes-section {
  background:
    linear-gradient(160deg, rgba(26,0,0,0.92) 0%, rgba(15,0,0,0.88) 35%, rgba(13,13,13,0.95) 100%),
    url('../img/section-2.jpg') center/cover no-repeat fixed !important;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 3%, 100% 0%, 100% 97%, 0 100%);
  padding: 9rem 0 !important;
  margin: -2rem 0;
  z-index: 2;
}

/* Giant decorative quote mark */
.quotes-section::before {
  content: '\201C';
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(20rem, 35vw, 40rem);
  color: var(--red);
  opacity: 0.07;
  top: -4rem;
  left: -1rem;
  line-height: 1;
  pointer-events: none;
  font-style: italic;
}

/* Red glow vignette */
.quotes-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(139,0,0,.18) 0%, transparent 70%);
  pointer-events: none;
}

.quote-carousel {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-slide {
  display: none;
  animation: fadeIn .7s var(--ease-out);
}

.quote-slide.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
  letter-spacing: 0.01em;
}

.quote-text::before {
  content: '\201C';
  color: var(--gold);
  font-style: normal;
  margin-right: 0.05em;
  opacity: 0.9;
}

.quote-text::after  {
  content: '\201D';
  color: var(--gold);
  font-style: normal;
  margin-left: 0.05em;
  opacity: 0.9;
}

.quote-source {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  font-weight: 600;
}

.quote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 2;
}

.quote-btn {
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all .25s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.quote-btn:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
  transform: scale(1.05);
}

.quote-dots {
  display: flex;
  gap: .5rem;
}

.quote-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(201,168,76,.25);
  cursor: pointer;
  transition: background .25s, transform .25s, width .25s;
}

.quote-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  width: 18px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* ── TRAVELS GRID ────────────────────────────────────────────────── */
.travels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.travel-card {
  background: var(--dark-card);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 2px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease-out), box-shadow .35s;
}

/* Gradient shine sweep on hover */
.travel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}

/* Left accent bar */
.travel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  transform: scaleY(0);
  transition: transform .4s var(--ease-out);
  transform-origin: center;
}

.travel-card:hover {
  border-color: rgba(201,168,76,.35);
  transform: translateY(-5px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(201,168,76,0.15),
    0 0 30px rgba(201,168,76,0.06);
}

.travel-card:hover::before { transform: scaleY(1); }
.travel-card:hover::after  { opacity: 1; }

.travel-flag {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.travel-country {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: .3rem;
  letter-spacing: -0.01em;
}

.travel-show {
  font-size: .68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  font-weight: 600;
  opacity: 0.8;
}

.travel-note {
  font-size: .9rem;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* ── BOOKS & SHOWS ───────────────────────────────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.work-card {
  background: var(--dark-card);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
  position: relative;
  overflow: hidden;
}

/* Top accent stripe */
.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.work-card:hover {
  border-color: rgba(201,168,76,.3);
  transform: translateY(-4px);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.5),
    0 0 30px rgba(201,168,76,0.06);
}

.work-card:hover::before { opacity: 1; }

.work-type {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--cream);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.work-year {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--cream-muted);
  letter-spacing: 0.1em;
}

.work-desc {
  font-size: .9rem;
  color: var(--cream-dim);
  line-height: 1.75;
}

.work-icon {
  font-size: 2rem;
  margin-bottom: .25rem;
  display: block;
}

/* ── TIMELINE ────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 4rem auto 0;
}

/* Central spine */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--border) 8%,
    var(--border) 92%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: 0.12em;
  padding: .35rem .85rem;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 2;
  top: 0;
  box-shadow: 0 2px 12px rgba(201,168,76,0.25), 0 0 0 3px rgba(201,168,76,0.1);
}

.timeline-content {
  flex: 1;
  padding-top: 2.5rem;
}

.timeline-event {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: .4rem;
  letter-spacing: -0.01em;
}

.timeline-detail {
  font-size: .875rem;
  color: var(--cream-dim);
  line-height: 1.7;
}

.timeline-spacer { flex: 1; }

/* ── LEGACY ──────────────────────────────────────────────────────── */
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.legacy-card {
  background: transparent;
  border: 1px solid rgba(201,168,76,.12);
  padding: 2.75rem 2.25rem;
  border-radius: 2px;
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
  overflow: hidden;
}

/* Corner decoration */
.legacy-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  border-top: 1px solid rgba(201,168,76,.3);
  border-right: 1px solid rgba(201,168,76,.3);
  transition: width .3s, height .3s;
}

.legacy-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 40px;
  border-bottom: 1px solid rgba(201,168,76,.3);
  border-left: 1px solid rgba(201,168,76,.3);
  transition: width .3s, height .3s;
}

.legacy-card:hover {
  border-color: rgba(201,168,76,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.05);
  transform: translateY(-3px);
}

.legacy-card:hover::before,
.legacy-card:hover::after {
  width: 60px; height: 60px;
}

.legacy-icon {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  display: block;
}

.legacy-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: .75rem;
  letter-spacing: -0.01em;
}

.legacy-text {
  font-size: .9rem;
  color: var(--cream-dim);
  line-height: 1.85;
}

/* ── CLOSING TRIBUTE ─────────────────────────────────────────────── */
.tribute-close {
  text-align: center;
  padding: 10rem 0;
  background: var(--black) !important;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0% 100%);
  margin-top: -3rem;
  z-index: 1;
}

/* Radial gold glow */
.tribute-close::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,168,76,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139,0,0,.06) 0%, transparent 55%);
}

/* Thin horizontal rules */
.tribute-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,.12), transparent);
}

.tribute-close .container {
  position: relative;
  z-index: 2;
}

.tribute-close-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  font-style: italic;
  color: var(--cream-dim);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
}

.tribute-close-sig {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  font-weight: 600;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: #080808;
  border-top: 1px solid rgba(201,168,76,.08);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.footer-copy {
  font-size: .75rem;
  color: var(--cream-muted);
  opacity: .45;
  letter-spacing: 0.03em;
}

.footer-disclaimer {
  font-size: .7rem;
  color: var(--cream-muted);
  opacity: .3;
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* ── DIVIDERS ────────────────────────────────────────────────────── */
.gold-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 50%, transparent);
  margin-bottom: 2.25rem;
  position: relative;
}

.gold-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,.35), transparent);
}

/* ── FADE IN ANIMATION ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger utility for child elements */
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .35s; }
.fade-up:nth-child(6) { transition-delay: .4s; }
.fade-up:nth-child(7) { transition-delay: .45s; }
.fade-up:nth-child(8) { transition-delay: .5s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .hero { clip-path: none; margin-bottom: 0; }
  .quotes-section { clip-path: none; margin: 0; }
  .tribute-close { clip-path: none; margin-top: 0; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; gap: 0; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
  .timeline-year { left: 20px; transform: none; }
  .timeline-content { padding-top: 2.5rem; }
  .timeline-spacer { display: none; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(8,8,8,.97);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 4.5rem 0; }
  .works-grid, .travels-grid, .legacy-grid { grid-template-columns: 1fr; }
  .about-stat-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
}

/* ═══════════════════════════════════════════════════════════════════
   VISUAL TEXTURE LAYER — Wren / Graphic Design
   Grain, SVG patterns, pull-quotes, dividers, CSS art.
   ═══════════════════════════════════════════════════════════════════ */

/* ── FILM-GRAIN NOISE OVERLAY ────────────────────────────────────── */
/* SVG feTurbulence noise rendered as a tiled data-URI — no external req. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── SVG SECTION BACKGROUND PATTERNS ────────────────────────────── */

/* Travels — city at night photo with dot constellation overlay */
#travels {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.2' fill='rgba(201%2C168%2C76%2C0.1)'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.75) 50%, rgba(10,10,10,0.92) 100%),
    url('../img/section-1.jpg') center/cover no-repeat;
  background-size: 60px 60px, cover, cover;
}

/* Works — diagonal pinstripes */
#works {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 24L24 0' stroke='rgba(201%2C168%2C76%2C0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 24px 24px;
}

/* Legacy — diamond lattice */
#legacy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 5L75 40L40 75L5 40Z' fill='none' stroke='rgba(201%2C168%2C76%2C0.045)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Timeline — faint ruled lines */
#timeline {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='80'%3E%3Cline x1='0' y1='79' x2='4' y2='79' stroke='rgba(201%2C168%2C76%2C0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100% 80px;
}

/* About frame — crosshatch fill */
.about-frame {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0L40 40M40 0L0 40' stroke='rgba(201%2C168%2C76%2C0.07)' stroke-width='1'/%3E%3C/svg%3E") !important;
  background-size: 40px 40px !important;
}

/* Hero — soft corner vignettes */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 0% 0%, rgba(0,0,0,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(0,0,0,0.45) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Hero title — gold accent bar */
.hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-top: 0.85rem;
}

/* ── PULL-QUOTE STYLING ───────────────────────────────────────────── */
.pull-quote {
  position: relative;
  margin: 2.75rem 0;
  padding: 2rem 2rem 2rem 2.75rem;
  border-left: 3px solid var(--gold);
  background: linear-gradient(
    to right,
    rgba(201, 168, 76, 0.07) 0%,
    transparent 80%
  );
  overflow: visible;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -1.75rem;
  left: 1.25rem;
  font-family: var(--font-serif);
  font-size: 7rem;
  color: var(--gold);
  opacity: 0.14;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pull-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin: 0;
}

.pull-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── ORNAMENTAL SECTION DIVIDER ──────────────────────────────────── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 168, 76, 0.38),
    transparent
  );
}

.ornament-diamond {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  position: relative;
}

.ornament-diamond::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  transform: translate(-50%, -50%);
}

/* ── GLOWING TIMELINE NODES ──────────────────────────────────────── */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow:
    0 0 0 3px #0d0d0d,
    0 0 0 5px rgba(201, 168, 76, 0.28),
    0 0 14px rgba(201, 168, 76, 0.4);
  z-index: 3;
}

@media (max-width: 900px) {
  .timeline-item::before {
    left: 20px;
    transform: none;
  }
}

/* ── CSS COMPASS ART (About Frame) ───────────────────────────────── */
.css-compass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.css-compass-outer {
  width: 210px;
  height: 210px;
  border: 1.5px solid rgba(201, 168, 76, 0.45);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner ring */
.css-compass-outer::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 50%;
}

/* "N" cardinal label */
.css-compass-outer::after {
  content: 'N';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.css-compass-inner {
  position: relative;
  width: 130px;
  height: 130px;
}

/* North arrow — gold */
.css-compass-north {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 52px solid var(--gold);
}

/* South arrow — dim */
.css-compass-south {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 52px solid rgba(201, 168, 76, 0.22);
}

/* East–West crossbar */
.css-compass-ew {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 1px;
  background: rgba(201, 168, 76, 0.18);
}

.css-compass-ew::before,
.css-compass-ew::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
}

.css-compass-ew::before {
  left: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 18px solid rgba(201, 168, 76, 0.22);
}

.css-compass-ew::after {
  right: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 18px solid rgba(201, 168, 76, 0.22);
}

/* Center dot */
.css-compass-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.55);
}

/* S/E/W labels */
.css-compass-label {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.55);
  letter-spacing: 1px;
}

.css-compass-label.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.css-compass-label.e { right: 10px; top: 50%; transform: translateY(-50%); }
.css-compass-label.w { left: 10px; top: 50%; transform: translateY(-50%); }

/* ── CSS PASSPORT STAMP (Tribute Close) ──────────────────────────── */
.css-stamp {
  width: 140px;
  height: 140px;
  border: 2.5px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.css-stamp::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(201, 168, 76, 0.28);
  border-radius: 50%;
}

.css-stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
}

.css-stamp-year {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 2px;
}

.css-stamp-rule {
  width: 44px;
  height: 1px;
  background: rgba(201, 168, 76, 0.4);
}

.css-stamp-text {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.65);
  text-align: center;
  line-height: 1.6;
  padding: 0 0.75rem;
}
