/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --sand: #e8dcc8;
  --parchment: #f2ead8;
  --ink: #1a1410;
  --terracotta: #c0542a;
  --rust: #8b3a1f;
  --gold: #c9922a;
  --olive: #4a5c2f;
  --shadow: #0d0b08;
  --pixel: 4px;
  --light-bg: #2a231d;
  --mid-bg: #241e18;
  --border-subtle: rgba(232, 220, 200, 0.06);
  --border-medium: rgba(232, 220, 200, 0.12);
  --border-warm: rgba(192, 84, 42, 0.25);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── BASE ──────────────────────────────────────────────────── */
body {
  background: var(--ink);
  color: var(--sand);
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

/* Scanline overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0,0,0,0.035) 2px, rgba(0,0,0,0.035) 4px
  );
  pointer-events: none;
  z-index: 100;
}
/* Grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.3;
  z-index: 99;
}

/* Touch devices: restore default cursor */
@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor {
  width: 12px; height: 12px;
  background: var(--terracotta);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 50%, 50% 100%, 0 100%);
  transition: transform 0.08s;
}

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26,20,16,0.97), transparent);
  backdrop-filter: blur(6px);
}

.nav-logo {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--terracotta);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

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

.nav-links a {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--sand);
  text-decoration: none;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--terracotta);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(192,84,42,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(201,146,42,0.05) 0%, transparent 60%);
}

.pixel-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,146,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,146,42,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.dunes {
  position: absolute;
  right: 0; bottom: 0;
  width: 45%; height: 60%;
  opacity: 0.1;
  color: var(--gold);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-content { max-width: 560px; }

.hero-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--terracotta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--parchment);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
  font-family: "Lora", serif;
}

.hero-subtitle {
  font-family: "Lora", serif;
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--sand);
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.hero-intro span { opacity: 0.7; }

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

.btn {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--parchment);
}

.btn-primary:hover {
  background: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,84,42,0.35);
}

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

.btn-ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(192,84,42,0.06);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.7s 0.95s forwards;
}

.location-dot {
  width: 8px; height: 8px;
  background: var(--terracotta);
  display: inline-block;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-image-col {
  position: relative;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-image-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-medium);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--ink) 100%);
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(26,20,16,0.5) 100%
  );
  z-index: 1;
}

.hero-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-frame-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--terracotta);
  border-style: solid;
  z-index: 2;
}

.hero-frame-corner--tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.hero-frame-corner--tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.hero-frame-corner--bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.hero-frame-corner--br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

/* ─── SECTIONS BASE ─────────────────────────────────────────── */
section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--terracotta);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--terracotta), transparent);
  opacity: 0.35;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--parchment);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
  font-family: "Lora", serif;
}

.section-subtitle {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--sand);
  opacity: 0.8;
  line-height: 1.85;
  max-width: 720px;
  margin-bottom: 3.5rem;
}

/* ─── IDENTITY ──────────────────────────────────────────────── */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.identity-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: default;
}

.identity-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 5, 0.88) 0%,
    rgba(10, 8, 5, 0.35) 55%,
    rgba(10, 8, 5, 0.12) 100%
  );
  transition: background 0.45s ease;
}

.identity-card:hover .identity-card-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 8, 5, 0.95) 0%,
    rgba(10, 8, 5, 0.72) 55%,
    rgba(10, 8, 5, 0.45) 100%
  );
}

.identity-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.8rem 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.identity-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.3;
  order: 1;
}

.identity-card-desc {
  font-size: 0.93rem;
  color: var(--sand);
  line-height: 1.72;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease, transform 0.38s ease, margin-bottom 0.38s ease;
  margin-bottom: 0;
  order: 0;
}

.identity-card:hover .identity-card-desc {
  opacity: 0.88;
  transform: translateY(0);
  margin-bottom: 0.9rem;
}

/* terracotta accent bar on hover */
.identity-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--terracotta);
  transition: width 0.4s ease;
  z-index: 3;
}

.identity-card:hover::after { width: 100%; }

/* ─── PHILOSOPHY ────────────────────────────────────────────── */
#philosophy {
  background: var(--mid-bg);
  border-radius: 0;
  max-width: 100%;
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.pillar {
  background: rgba(26,20,16,0.6);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.pillar:hover { background: rgba(192,84,42,0.06); }

.pillar-icon {
  width: 40px; height: 40px;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}

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

.pillar h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.pillar p {
  font-size: 0.97rem;
  opacity: 0.75;
  line-height: 1.75;
}

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

.philosophy-photo-frame {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  position: relative;
}

.philosophy-photo-frame::before,
.philosophy-photo-frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--terracotta);
  border-style: solid;
  z-index: 2;
  transition: all 0.3s;
}

.philosophy-photo-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.philosophy-photo-frame::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.philosophy-photo:hover .philosophy-photo-frame::before,
.philosophy-photo:hover .philosophy-photo-frame::after {
  width: 22px; height: 22px;
}

.philosophy-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: grayscale(20%) brightness(0.9);
}

.philosophy-photo:hover .philosophy-photo-frame img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(1);
}

.philosophy-photo-label {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--terracotta);
  letter-spacing: 0.15em;
  text-align: center;
  margin-top: 0.9rem;
}

.philosophy-quote {
  font-family: "Lora", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: var(--parchment);
  max-width: 800px;
  padding-left: 2rem;
  border-left: 3px solid var(--terracotta);
  opacity: 0.9;
}

.philosophy-quote em {
  font-style: normal;
  color: var(--terracotta);
  font-weight: 500;
}

/* ─── WORK ──────────────────────────────────────────────────── */
.work-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.work-col {
  padding: 2rem 2rem 2rem;
  background: rgba(42,35,29,0.4);
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.work-col:hover {
  background: rgba(42,35,29,0.7);
  border-color: var(--border-warm);
}

.work-col-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(192,84,42,0.25);
}

.work-col-icon {
  width: 28px; height: 28px;
  color: var(--terracotta);
  flex-shrink: 0;
}

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

.work-col h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--terracotta);
  letter-spacing: 0.1em;
}

.work-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.work-col li {
  font-size: 0.97rem;
  color: var(--sand);
  opacity: 0.8;
  padding-left: 1rem;
  position: relative;
  line-height: 1.65;
  transition: opacity 0.2s, padding-left 0.2s;
}

.work-col li:hover { opacity: 1; padding-left: 1.3rem; }

.work-col li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.65rem;
  top: 0.2rem;
}

.studio-tag {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--gold);
  border: 1px solid rgba(201,146,42,0.35);
  padding: 0.2rem 0.5rem;
  margin-top: 0.3rem;
  letter-spacing: 0.08em;
}

/* ─── PROJECTS ──────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--light-bg);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(192,84,42,0.45);
  box-shadow: 0 12px 40px rgba(192,84,42,0.12);
  transform: translateY(-8px);
}

.project-image {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-medium);
}

/* ARCHEOTRONIC */
.project-card--archeo .project-image {
  background: linear-gradient(145deg, #1a0a02 0%, #5c2812 45%, #a04020 100%);
}

/* RYAH */
.project-card--ryah .project-image {
  background: linear-gradient(145deg, #020d1a 0%, #0d2a4a 50%, #1a4a7a 100%);
}

/* TEA REACTION */
.project-card--tea .project-image {
  background: linear-gradient(145deg, #1a0e02 0%, #6b3f0e 50%, #b87820 100%);
}

.project-icon {
  width: 72px;
  height: 72px;
  color: rgba(232, 220, 200, 0.18);
  stroke-width: 1;
  flex-shrink: 0;
}

.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.35s, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-img {
  opacity: 1;
  transform: scale(1.04);
}

/* Echo Navigation */
.project-card--echo .project-image {
  background: linear-gradient(145deg, #020d12 0%, #0a2a38 50%, #0d4a5a 100%);
}

/* Bubble Savior */
.project-card--bubble .project-image {
  background: linear-gradient(145deg, #0d0218 0%, #2a0a4a 50%, #4a1a7a 100%);
}

.project-info { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }

.project-title {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--parchment);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.project-description {
  font-size: 0.97rem;
  color: var(--sand);
  opacity: 0.75;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  flex: 1;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-size: 11px;
  font-family: "Press Start 2P", monospace;
  color: var(--gold);
  background: rgba(201,146,42,0.1);
  padding: 0.3rem 0.5rem;
  letter-spacing: 0.04em;
}

.project-link {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--terracotta);
  text-decoration: none;
  letter-spacing: 0.08em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 1; }

/* ─── PHOTO GRID ────────────────────────────────────────────── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 4px;
  margin-top: 2.5rem;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--light-bg);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.78) brightness(0.88);
  transition: filter 0.35s, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.25s;
  pointer-events: none;
  z-index: 2;
}

.photo-item:hover::after {
  border-color: var(--terracotta);
}

.photo-item:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.06);
}

.photo-num {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: var(--parchment);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  pointer-events: none;
}

.photo-item:hover .photo-num {
  opacity: 0.7;
}

/* ─── LIGHTBOX / DIAPO ───────────────────────────────────────── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.lb.open {
  visibility: visible;
  pointer-events: all;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.97);
  opacity: 0;
  transition: opacity 0.3s;
  /* subtle scanlines in lightbox */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 3px,
      rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 6px
    );
}

.lb.open .lb-backdrop {
  opacity: 1;
}

/* Stage */
.lb-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.32s, transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lb.open .lb-stage {
  opacity: 1;
  transform: scale(1);
}

.lb-img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 0 1px rgba(232,220,200,0.08), 0 30px 80px rgba(0,0,0,0.9);
  transition: opacity 0.18s;
}

.lb-img.switching {
  opacity: 0;
}

/* Navigation buttons */
.lb-prev,
.lb-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  background: transparent;
  border: none;
  color: rgba(232,220,200,0.35);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  font-family: "Press Start 2P", monospace;
}

.lb-prev { left: 0; }
.lb-next { right: 0; }

.lb-prev:hover,
.lb-next:hover {
  background: rgba(192,84,42,0.12);
  color: var(--terracotta);
}

/* Close */
.lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(232,220,200,0.15);
  color: rgba(232,220,200,0.45);
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  opacity: 0;
  transition: opacity 0.3s, color 0.2s, border-color 0.2s, background 0.2s;
}

.lb.open .lb-close {
  opacity: 1;
}

.lb-close:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(192,84,42,0.1);
}

/* HUD — counter + label */
.lb-hud {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.lb.open .lb-hud {
  opacity: 1;
}

.lb-counter {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--terracotta);
  letter-spacing: 0.15em;
}

.lb-label {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: rgba(232,220,200,0.3);
  letter-spacing: 0.2em;
}

/* ─── RESPONSIVE: photo grid ─────────────────────────────────── */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 3px;
  }
  .lb-prev, .lb-next { width: 48px; }
}

/* ─── VIDEOS ────────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--light-bg);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  transition: all 0.3s;
}

.video-card:hover {
  border-color: rgba(192,84,42,0.45);
  box-shadow: 0 10px 30px rgba(192,84,42,0.1);
  transform: translateY(-6px);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(192,84,42,0.15) 0%, rgba(201,146,42,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-medium);
  overflow: hidden;
}

.video-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-icon {
  width: 56px;
  height: 56px;
  color: rgba(232, 220, 200, 0.15);
  stroke-width: 1;
}

.play-btn {
  width: 56px; height: 56px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.3rem;
  transition: all 0.3s;
  z-index: 2;
  position: relative;
}

.video-card:hover .play-btn {
  transform: scale(1.15);
  background: var(--gold);
}

.video-info { padding: 1.5rem; }

.video-title {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--parchment);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
}

.video-desc {
  font-size: 0.95rem;
  color: var(--sand);
  opacity: 0.72;
  line-height: 1.72;
}

/* ─── COMMUNITY ─────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.milestone-card {
  background: rgba(42,35,29,0.35);
  border: 1px solid var(--border-medium);
  padding: 2rem 2rem 1.8rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.milestone-card:hover {
  background: rgba(42,35,29,0.65);
  border-color: var(--border-warm);
  transform: translateY(-3px);
}

.milestone-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--terracotta), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.milestone-card:hover::after { transform: scaleX(1); }

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.milestone-year {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--terracotta);
  letter-spacing: 0.08em;
}

.milestone-badge {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--gold);
  border: 1px solid rgba(201,146,42,0.3);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.08em;
}

.milestone-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.milestone-card p {
  font-size: 0.95rem;
  color: var(--sand);
  opacity: 0.72;
  line-height: 1.7;
}

/* ─── CONTACT ───────────────────────────────────────────────── */
#contact { text-align: center; padding-bottom: 8rem; }

.contact-email {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--sand);
  text-decoration: none;
  letter-spacing: 0.1em;
  border: 1px solid rgba(232,220,200,0.2);
  padding: 1.2rem 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  transition: all 0.3s;
  position: relative;
}

.contact-email::before,
.contact-email::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--terracotta);
  border-style: solid;
  transition: all 0.3s;
}
.contact-email::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.contact-email::after  { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }
.contact-email:hover { color: var(--terracotta); border-color: rgba(192,84,42,0.45); background: rgba(192,84,42,0.05); }
.contact-email:hover::before,
.contact-email:hover::after { width: 18px; height: 18px; }

.social-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--sand);
  text-decoration: none;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-medium);
  padding: 0.8rem 1.2rem;
  transition: all 0.25s;
  opacity: 0.65;
}

.social-link:hover {
  opacity: 1;
  border-color: var(--border-warm);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.social-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(232,220,200,0.06);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--sand);
  opacity: 0.3;
  letter-spacing: 0.08em;
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s, transform 0.65s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 9px; }

  #hero { padding: 8rem 1.5rem 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { max-width: 100%; }

  section { padding: 4.5rem 1.5rem; }
  .identity-grid { grid-template-columns: 1fr 1fr; }
  .identity-card { aspect-ratio: 3/2; }
  .work-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .community-grid { grid-template-columns: 1fr; }
  .philosophy-photos { grid-template-columns: 1fr; gap: 1.2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .philosophy-inner { padding: 0 1.5rem; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; padding: 2rem 1.5rem; }
}

@media (max-width: 560px) {
  nav { padding: 0.9rem 1rem; flex-direction: column; gap: 0.8rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .nav-logo { font-size: 10px; }
  section { padding: 3.5rem 1rem; }
  .hero-cta { flex-direction: column; }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-card { aspect-ratio: 3/2; }
  .btn { justify-content: center; }
  .carousel-thumb { min-width: 64px; height: 40px; }
  .videos-grid { grid-template-columns: 1fr; }
  .social-grid { flex-direction: column; align-items: center; }
}
