/* ============================================
   Blue Hollow — Cilantro Studios Website
   ============================================ */

:root {
  --bg: #0d1117;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --text: #e8e6e3;
  --text-dim: #8a8a8a;
  --accent: #5b8c5a;
  --accent-light: #7cb97b;
  --accent-glow: rgba(91, 140, 90, 0.3);
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --danger: #b85c5c;
  --purple: #b085f5;
  --discord: #5865F2;
  --steam: #1b2838;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

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

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

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

/* ============================================
   Navigation
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91, 140, 90, 0.15);
  transition: padding 0.3s ease;
}

nav.scrolled {
  padding: 0.6rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  image-rendering: pixelated;
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

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

/* abundantlawns link: same green and display font as the Dev Log heading, nav-sized */
.nav-links a.nav-accent {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent-light);
}

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  overflow: hidden;
}

/* Screenshot backdrop: always covers the hero at any aspect ratio, darkened for text contrast.
   The mask ramps opacity to zero at the bottom so it melts into the page background. */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/screenshots/FJ-posts/devlog03.png') center 40% / cover no-repeat;
  image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}

.hero-content {
  width: 100%;
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

/* Dialogue box over the screenshot */
.hero-tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  background: rgba(20, 15, 11, 0.94);
  border: 1px solid #a8845a;
  border-radius: 6px;
  padding: 1.75rem 3.25rem 1.6rem;
  margin-bottom: 0;
  position: relative;
  opacity: 0;
  animation: popIn 0.5s ease 0.3s forwards;
}

/* With JS the lines become pages stacked in one cell, so the box keeps the height of the tallest page */
.hero-tagline.js-dialogue {
  display: grid;
  cursor: pointer;
}

.js-dialogue .dialogue-page {
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
}

.js-dialogue .dialogue-page.active {
  visibility: visible;
}

.dialogue-next {
  display: none;
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  padding: 0.3rem;
  background: none;
  border: 0;
  color: #a8845a;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.2s ease;
}

.js-dialogue .dialogue-next {
  display: block;
}

.js-dialogue.ready .dialogue-next {
  opacity: 1;
  pointer-events: auto;
  animation: nudge 1.2s ease-in-out infinite;
}

.dialogue-next:hover {
  color: var(--text);
}

.dialogue-next:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* On the last page the arrow points down: on to the dev log */
.js-dialogue.last .dialogue-next svg {
  transform: rotate(90deg);
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.tagline-line.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.tagline-line {
  margin-bottom: 0.6rem;
}

.tagline-line.tight {
  margin-bottom: 0;
}

.type-word {
  display: inline-block;
  white-space: nowrap;
}

.type-char {
  opacity: 0;
}

.type-char.shown {
  opacity: 1;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.hero-status {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.btn-steam {
  background: var(--steam);
  color: #fff;
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.btn-steam:hover {
  background: #2a475e;
}

/* ============================================
   Sections
   ============================================ */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

/* Screenshots sit right under the dev log entries */
#features {
  padding-bottom: 0;
}

#features .section-title {
  font-size: 1.6rem;
}

#screenshots {
  padding-top: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

/* ============================================
   Story Flow
   ============================================ */
.story-flow {
  padding: 4rem 0 6rem;
}

.story-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 2.5rem;
}

.story-block.story-paragraph {
  margin-bottom: 3rem;
}

.story-line {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lines fade in from the left, one after another */
.story-line.story-stagger {
  opacity: 1;
  transform: none;
}

.stagger-item {
  display: block;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: calc(var(--i) * 0.6s);
}

.story-stagger.visible .stagger-item {
  opacity: 1;
  transform: translateX(0);
}

.story-lead {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.story-quiet {
  font-style: italic;
  color: var(--accent);
  font-size: 1.35rem;
}

.story-split {
  max-width: 1100px;
  margin: 0 auto;
}

.story-split .story-block {
  margin: 0 auto;
}

/* Tags: one row, organic shapes, spotlight + tilt on hover (see main.js) */
.story-details {
  max-width: 1100px;
  margin: 5rem auto 0;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.story-details span {
  --rot: 0deg;
  --rx: 0deg;
  --ry: 0deg;
  --s: 1;
  --mx: 50%;
  --my: 50%;
  --d: 0s;
  position: relative;
  overflow: hidden;
  cursor: default;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 1.4rem 2.8rem;
  background: linear-gradient(135deg, rgba(124,185,123,0.10), rgba(124,185,123,0.02));
  border: 1px solid rgba(124,185,123,0.35);
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  box-shadow: 0 0 0 rgba(124,185,123,0);
  opacity: 0;
  translate: 0 24px;
  transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(var(--rot)) scale(var(--s));
  transition:
    opacity 0.8s ease var(--d),
    translate 0.8s ease var(--d),
    transform 0.25s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.4s ease,
    border-radius 0.8s ease;
}

.story-details span:nth-child(1) { --rot: -3deg; --d: 0s; }

.story-details span:nth-child(2) {
  --rot: 2deg;
  --d: 0.3s;
  border-radius: 42% 58% 45% 55% / 55% 45% 55% 45%;
}

.story-details span:nth-child(3) {
  --rot: -1.5deg;
  --d: 0.6s;
  border-radius: 50% 50% 40% 60% / 45% 58% 42% 55%;
}

.story-details.visible span {
  opacity: 1;
  translate: 0 0;
}

/* Cursor-following spotlight */
.story-details span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 90px at var(--mx) var(--my), rgba(124,185,123,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.story-details span:hover {
  --s: 1.08;
  color: var(--text);
  border-color: var(--accent-light);
  box-shadow: 0 0 28px rgba(124,185,123,0.35);
  border-radius: 45% 55% 50% 50% / 52% 48% 52% 48%;
}

.story-details span:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .story-details {
    gap: 1rem;
  }
}

/* ============================================
   Features
   ============================================ */
/* Character sprite to the left of the dev log cards */
.features-layout {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.features-side {
  flex: none;
  position: sticky;
  top: 6rem;
  width: 54px;
  height: auto;
  margin-top: 3rem;
  image-rendering: pixelated;
}

.features-layout .features-grid {
  flex: 1;
  min-width: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  scroll-margin-top: 6rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(91, 140, 90, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.feature-card.locked {
  position: relative;
  background: rgba(255,255,255,0.02);
  border-style: dashed;
  overflow: hidden;
  cursor: default;
}

.feature-card.locked h3,
.feature-card.locked p {
  filter: blur(6px);
  opacity: 0.35;
  user-select: none;
}

.feature-card.locked .lock-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  opacity: 0.7;
  z-index: 1;
}

.feature-card.locked:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.05);
  transform: translateY(0);
  box-shadow: none;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.title-accent {
  color: var(--accent-light);
}

.entry-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.post-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  cursor: zoom-in;
}

/* Post image viewer: a framed popup over a dimmed page, not a full-screen takeover */
.post-lightbox {
  background: rgba(0, 0, 0, 0.55);
}

.post-lightbox .lightbox-card {
  display: block;
  box-sizing: border-box;
  max-width: 96vw;
  padding: 1.5rem;
  overflow: hidden; /* contains the floated image */
  text-align: left;
  background: rgba(20, 15, 11, 0.94);
  border: 1px solid #a8845a;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* The image sits in a wrapper: it floats, shows the hover hint, and is the click-to-enlarge target */
.post-lightbox .lightbox-zoom {
  position: relative;
  float: left;
  margin: 0.2rem 1.4rem 0.6rem 0;
  cursor: zoom-in;
  line-height: 0;
}

.post-lightbox .lightbox-card.wide .lightbox-zoom {
  float: none;
  display: block;
  margin: 0 0 1.2rem;
}

.post-lightbox img.lightbox-pixel {
  display: block;
  max-width: none;
  border: 1px solid rgba(168, 132, 90, 0.5);
  border-radius: 4px;
}

.post-lightbox .lightbox-zoom::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  padding: 0.3rem 0.7rem;
  background: rgba(20, 15, 11, 0.92);
  border: 1px solid #a8845a;
  border-radius: 4px;
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.post-lightbox .lightbox-zoom:hover::after,
.post-lightbox .lightbox-zoom:focus-visible::after {
  opacity: 1;
}

/* No hover on touch screens, so show the hint all the time there */
@media (hover: none) {
  .post-lightbox .lightbox-zoom::after {
    opacity: 1;
  }
}

.post-lightbox .lightbox-zoom:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Zoomed: image only, as big as the screen allows */
.post-lightbox .lightbox-card.zoomed {
  padding: 0.75rem;
}

.post-lightbox .lightbox-card.zoomed .lightbox-zoom {
  float: none;
  margin: 0;
  cursor: zoom-out;
}

.post-lightbox .lightbox-card.zoomed .lightbox-caption {
  display: none;
}

.lightbox-caption .lightbox-num {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
}

.lightbox-caption h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.lightbox-caption p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.lightbox-caption p:last-child {
  margin-bottom: 0;
}

.post-lightbox .lightbox-close {
  top: 0.5rem;
  right: 1rem;
  font-size: 2.5rem;
}

.lightbox img.lightbox-pixel {
  max-width: none;
  max-height: none;
  image-rendering: pixelated;
}

/* Expandable "Read more" card */
.feature-card .read-more {
  margin-top: 0.8rem;
}

.feature-card .read-more p {
  margin-top: 1rem;
}

.read-more summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent-light);
}

.read-more summary::-webkit-details-marker {
  display: none;
}

.read-more summary::after {
  content: " \2192";
}

.read-more[open] summary::after {
  content: " \2191";
}

.read-more summary:hover {
  color: var(--text);
}

.read-more summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.read-more .read-more-close {
  display: none;
}

/* Once open, the toggle moves to the bottom of the text (see main.js) */
.read-more[open] summary {
  display: none;
}

.read-less {
  display: inline-block;
  margin-top: 1rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  cursor: pointer;
}

.read-less::after {
  content: " \2191";
}

.read-less:hover {
  color: var(--text);
}

.read-less:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   Trailer
   ============================================ */
.screenshots-spacer {
  height: 4rem;
}

.trailer-wrapper {
  max-width: 960px;
  margin: 3rem auto 4rem;
}

.trailer-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}

.trailer-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.trailer-placeholder:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.trailer-note {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trailer-wrapper video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   Screenshots
   ============================================ */
/* Carousel: scroll-snap track, arrows, dots (see main.js) */
.carousel {
  position: relative;
  margin-top: 2rem;
}

.screenshot-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screenshot-grid::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16/9;
}

.screenshot-item:hover {
  border-color: rgba(91, 140, 90, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(10,10,15,0.7);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(10,10,15,0.95);
  border-color: var(--accent-light);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--accent-light);
  transform: scale(1.3);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close { top: 1rem; right: 1.5rem; font-size: 3rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 4rem; }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 4rem; }

/* ============================================
   Community
   ============================================ */
#community {
  text-align: center;
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 26, 0.5) 50%, transparent 100%);
}

.community-text {
  max-width: 600px;
  margin: 2rem auto 3rem;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.community-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  text-align: center;
}

.footer-tagline {
  line-height: 3.6;
  margin-bottom: 2rem;
}

.footer-studio {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-find {
  color: var(--purple);
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .story-lead {
    font-size: 1.4rem;
  }

  .story-line {
    font-size: 1.1rem;
  }

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

  .features-layout {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .features-side {
    position: static;
    width: 36px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

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