/* ============================================
   SLACKWATER — Production Stylesheet
   Dark maritime aesthetic: deep blues, warm copper, weathered textures
   ============================================ */

/* -------- Reset & Base -------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Colors */
  --bg-darkest: #071214;
  --bg-dark: #0a1518;
  --bg-mid: #0e1f23;
  --bg-light: #14282d;
  --bg-card: #112025;
  --copper: #c4774a;
  --copper-bright: #e09866;
  --copper-glow: rgba(196, 119, 74, 0.15);
  --copper-dim: #8a5638;
  --text-primary: #e8e0d4;
  --text-secondary: #a8b0b2;
  --text-muted: #6b7a7d;
  --text-dim: #4a5658;
  --accent: var(--copper);
  --accent-bright: var(--copper-bright);
  --border: rgba(196, 119, 74, 0.12);
  --border-hover: rgba(196, 119, 74, 0.3);
  --white: #f5f0e8;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 6rem;
  --container-max: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* -------- Selection -------- */
::selection { background: var(--copper); color: var(--bg-darkest); }

/* -------- Scrollbar -------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: var(--copper-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* -------- Container -------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* -------- Sections -------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-dark {
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(196, 119, 74, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(196, 119, 74, 0.03) 0%, transparent 50%);
}

/* -------- Section Headers -------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.section-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.accent {
  color: var(--copper-bright);
  font-style: italic;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--copper);
  color: var(--bg-darkest);
  box-shadow: 0 2px 20px rgba(196, 119, 74, 0.25);
}

.btn-primary:hover {
  background: var(--copper-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 119, 74, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--copper);
  background: rgba(196, 119, 74, 0.05);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* -------- Navigation -------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 18, 20, 0.0);
  backdrop-filter: blur(0px);
  transition: all 0.4s var(--ease);
}

#nav.scrolled {
  background: rgba(7, 18, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
}

.nav-logo-icon {
  font-size: 1.3rem;
  color: var(--copper);
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1.3rem;
  background: var(--copper);
  color: var(--bg-darkest);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-play-link {
  color: var(--copper-bright) !important;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-play-link::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--copper-bright);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Hero -------- */
#hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7, 18, 20, 0.5) 0%,
      rgba(7, 18, 20, 0.3) 40%,
      rgba(7, 18, 20, 0.85) 80%,
      var(--bg-darkest) 100%
    ),
    radial-gradient(ellipse at center, transparent 0%, rgba(7, 18, 20, 0.4) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--copper);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.5s forwards;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--copper-bright);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.7s forwards;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.9s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 1.1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 1.5s forwards;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

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

/* -------- Meet Lucineer -------- */
#lucineer {
  background: var(--bg-darkest);
}

.lucineer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.lucineer-portrait {
  position: relative;
}

.portrait-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px var(--border);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.portrait-frame:hover img {
  transform: scale(1.03);
}

.portrait-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  background: rgba(7, 18, 20, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.lucineer-text .section-label,
.lucineer-text .section-title {
  text-align: left;
}

.lucineer-text .section-title {
  margin-bottom: 1.5rem;
}

.lucineer-text .section-lead {
  margin: 0 0 1.5rem 0;
  max-width: none;
  font-size: 1.1rem;
}

/* Quote Rotator */
.quote-rotator {
  margin-top: 2rem;
  position: relative;
  min-height: 120px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.quote {
  position: absolute;
  inset: 1.5rem 0 0 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s var(--ease-out);
  pointer-events: none;
}

.quote.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.quote p::before {
  content: '"';
  color: var(--copper);
  font-size: 1.5em;
  margin-right: 0.1em;
  line-height: 0;
}

.quote-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s;
}

.quote-dot.active {
  background: var(--copper);
  width: 24px;
  border-radius: 3px;
}

/* -------- Era Timeline -------- */
.era-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.era-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--copper-dim) 5%,
    var(--copper-dim) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.era-node {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: 3rem;
  margin-bottom: 3rem;
  width: 50%;
}

.era-node.era-right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 3rem;
  margin-left: 50%;
}

.era-marker {
  position: absolute;
  right: -1rem;
  top: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg-dark);
  border: 2px solid var(--copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--copper);
  z-index: 2;
  transition: all 0.3s var(--ease);
}

.era-right .era-marker {
  right: auto;
  left: -1rem;
}

.era-marker:hover {
  background: var(--copper);
  color: var(--bg-darkest);
  transform: scale(1.1);
}

.era-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  max-width: 380px;
}

.era-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.era-card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.era-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-card) 100%);
}

.era-card-img-final {
  height: 240px;
}

.era-card-body {
  padding: 1.5rem;
}

.era-card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.era-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.era-card-lucineer {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--copper-bright);
  margin-bottom: 0.8rem;
}

.era-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.era-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.era-materials span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(196, 119, 74, 0.08);
  border: 1px solid rgba(196, 119, 74, 0.15);
  border-radius: 3px;
  color: var(--text-secondary);
}

/* -------- How It Works -------- */
#how {
  background: var(--bg-darkest);
}

.how-grid {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  justify-content: center;
}

.how-panel {
  flex: 1;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
}

.how-panel:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.how-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.how-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--copper);
}

.how-icon svg {
  width: 100%;
  height: 100%;
}

.how-panel h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.how-panel p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.how-example {
  background: rgba(7, 18, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  text-align: left;
}

.how-example-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.how-example code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper-bright);
  line-height: 1.4;
}

.how-arrow {
  display: flex;
  align-items: center;
  color: var(--copper-dim);
  padding: 0 0.5rem;
}

.how-arrow svg {
  width: 24px;
  height: 24px;
}

/* -------- Gallery -------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-card);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

.gallery-wide {
  grid-column: span 2;
  aspect-ratio: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(7,18,20,0.9) 0%, transparent 100%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s var(--ease);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Blog -------- */
#blog {
  background: var(--bg-darkest);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 1.8rem;
  transition: all 0.3s var(--ease);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: 0.8rem;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper-bright);
  transition: color 0.2s;
}

.blog-link:hover {
  color: var(--white);
}

/* -------- CTA Section -------- */
.section-cta {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, rgba(7,18,20,0.7) 50%, var(--bg-darkest) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* -------- Open Source / Repos -------- */
.section-dark-footer {
  background: var(--bg-dark);
  padding-bottom: 4rem;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.repo-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.3rem 1.5rem;
  transition: all 0.3s var(--ease);
}

.repo-card:hover {
  border-color: var(--copper);
  background: rgba(196, 119, 74, 0.04);
  transform: translateY(-2px);
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--copper-bright);
  margin-bottom: 0.3rem;
}

.repo-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.repo-lang {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
}

/* -------- Footer -------- */
footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-anchor {
  font-size: 1.5rem;
}

.footer-brand p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--copper);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* -------- Fade-in Animations -------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* -------- Responsive -------- */
@media (max-width: 968px) {
  .lucineer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .lucineer-portrait {
    max-width: 400px;
    margin: 0 auto;
  }

  .how-grid {
    flex-direction: column;
    align-items: center;
  }

  .how-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-large, .gallery-wide {
    grid-column: span 2;
  }

  .era-line {
    left: 20px;
  }

  .era-node, .era-node.era-right {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
    margin-left: 0;
    justify-content: flex-start;
  }

  .era-marker, .era-right .era-marker {
    left: -1.75rem;
    right: auto;
  }
}

@media (max-width: 768px) {
  :root { --section-pad: 4rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-cta {
    display: none;
  }

  .nav-inner {
    padding: 1rem 1.2rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-large, .gallery-wide {
    grid-column: span 1;
  }

  .hero-ctas, .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .cta-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }

  .hero-content { padding: 0 1.2rem; }

  .hero-sub { font-size: 0.95rem; }

  .blog-grid, .repos-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* -------- Reduced Motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg { animation: none; }
}

/* -------- Print -------- */
@media print {
  #nav, .hero-scroll, .nav-toggle { display: none; }
  body { background: white; color: black; }
}

/* -------- Hero Secondary CTA -------- */
.hero-secondary-cta {
  margin-top: 1.2rem;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 1.3s forwards;
}

.hero-secondary-cta a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  transition: color 0.3s;
}

.hero-secondary-cta a:hover {
  color: var(--copper-bright);
}

/* -------- Era Concept Art Showcase -------- */
#era-art {
  background: var(--bg-darkest);
}

.era-art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.era-art-item {
  display: flex;
  flex-direction: column;
}

.era-art-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  aspect-ratio: 4/3;
}

.era-art-item:hover .era-art-frame {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.era-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.era-art-item:hover .era-art-frame img {
  transform: scale(1.04);
}

.era-art-label {
  padding: 1rem 0.3rem 0;
}

.era-art-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  display: block;
  margin-bottom: 0.4rem;
}

.era-art-label h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.era-art-label p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.era-art-final .era-art-frame {
  aspect-ratio: 16/10;
}

/* Make the final era span full width on larger screens */
@media (min-width: 700px) {
  .era-art-final {
    grid-column: span 2;
  }
}

/* -------- The Crew -------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.crew-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s var(--ease);
}

.crew-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.crew-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--copper-dim);
}

.crew-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crew-avatar-wesley,
.crew-avatar-fleet {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mid);
}

.crew-avatar-placeholder {
  font-size: 2.5rem;
  opacity: 0.6;
}

.crew-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.crew-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.crew-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.crew-tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
  display: inline-block;
}

.crew-closing {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}

.crew-closing-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -------- CTA Secondary -------- */
.cta-secondary {
  margin-top: 1.5rem;
}

.cta-secondary p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta-inline-link {
  color: var(--copper-bright);
  font-style: italic;
  transition: color 0.2s;
}

.cta-inline-link:hover {
  color: var(--white);
}
