/* =================================================================
   Ye Alin — Artist Website
   CSS: Custom Properties · Reset · Layout · Animations · Parallax
   ================================================================= */

/* ----- Custom Properties ----- */
:root {
  --clr-bg:        #0e0c0b;
  --clr-bg-alt:    #141210;
  --clr-surface:   #1c1916;
  --clr-border:    rgba(255,255,255,0.08);
  --clr-gold:      #c8973a;
  --clr-gold-lt:   #e4b96a;
  --clr-rust:      #b85c38;
  --clr-text:      #e8e0d5;
  --clr-muted:     #8a7f74;
  --clr-white:     #ffffff;

  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;

  --nav-h:         70px;
  --section-pad:   clamp(60px, 10vw, 120px);
  --container-w:   1200px;
  --radius:        6px;

  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ----- Typography Helpers ----- */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.15;
}

.section-subtitle {
  margin-top: 1rem;
  color: var(--clr-muted);
  font-size: 1.05rem;
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ----- Layout ----- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding: var(--section-pad) 0;
}


/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(14, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.nav-logo .logo-zh {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-gold);
}
.nav-logo .logo-en {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-gold);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--clr-white);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background-image:
    url('https://bkimg.cdn.bcebos.com/pic/9f510fb30f2442a7d9330b03dd43ad4bd01302c9?x-bce-process=image/format,f_auto/resize,m_lfit,limit_1,h_800'),
    linear-gradient(135deg, #1a0f00 0%, #3d1f00 40%, #0e0c0b 100%);
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,12,11,0.35) 0%,
    rgba(14,12,11,0.55) 50%,
    rgba(14,12,11,0.9) 100%
  );
}

/* Decorative SVG brushstrokes */
.hero-brush {
  position: absolute;
  pointer-events: none;
}
.hero-brush--1 {
  width: 40vw;
  top: 20%;
  right: 5%;
  animation: float 8s ease-in-out infinite;
}
.hero-brush--2 {
  width: 30vw;
  bottom: 25%;
  left: 3%;
  animation: float 11s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-15px) rotate(2deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--nav-h) 1rem 0;
  max-width: 800px;
}

.hero-pretext {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.title-zh {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
  letter-spacing: 0.05em;
}

.title-en {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--clr-gold-lt);
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--clr-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--clr-gold);
  color: var(--clr-gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.2s var(--ease-spring);
}
.hero-cta:hover {
  background: var(--clr-gold);
  color: var(--clr-bg);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--clr-muted);
  border-bottom: 1.5px solid var(--clr-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}


/* ================================================================
   ABOUT
   ================================================================ */
.about {
  background: var(--clr-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  overflow: hidden;
}
.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--clr-gold);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.about-image:hover {
  transform: scale(1.03);
  filter: sepia(0) contrast(1.05);
}

/* Fallback for missing image */
.about-image-frame.no-image {
  background: linear-gradient(135deg, #2a1f10, #1c1410);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-frame.no-image::after {
  content: '叶阿林';
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--clr-gold);
  opacity: 0.4;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.5rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--clr-muted);
  text-align: center;
}

.about-accent-block {
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(200, 151, 58, 0.2);
  z-index: -1;
}

.about-text { display: flex; flex-direction: column; gap: 1.25rem; }

.about-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--clr-white);
}
.about-name em { color: var(--clr-gold); }

.about-lead {
  font-size: 1.05rem;
  color: var(--clr-text);
  line-height: 1.8;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fact-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
}
.fact-value {
  font-size: 0.95rem;
  color: var(--clr-text);
}


/* ================================================================
   PARALLAX QUOTE
   ================================================================ */
.parallax-quote {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.parallax-quote-bg {
  position: absolute;
  inset: -20%;
  background-image:
    url('https://bkimg.cdn.bcebos.com/pic/fc1f4134970a304e251ff24bc1d3fd1f41345b3e?x-bce-process=image/format,f_auto/resize,m_lfit,limit_1,h_600'),
    linear-gradient(135deg, #3d1f00, #1a0f00);
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 11, 0.78);
}

blockquote {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 2rem;
}
blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--clr-white);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
blockquote cite {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
}


/* ================================================================
   GALLERY
   ================================================================ */
.gallery {
  background: var(--clr-bg);
}

.gallery-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  padding: 0.45rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.25s;
  font-family: var(--font-sans);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(200, 151, 58, 0.08);
}

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

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

.gallery-card {
  transition: transform 0.3s var(--ease-out);
}
.gallery-card.hidden {
  display: none;
}
.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card-inner {
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.06);
}

/* Fallback for broken images */
.gallery-img-wrap.img-fallback {
  background: linear-gradient(135deg, #2a1f10, #1c1410);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-img-wrap.img-fallback::after {
  content: '🎨';
  font-size: 3rem;
  opacity: 0.4;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay-icon {
  font-size: 2rem;
  color: var(--clr-white);
  transform: translateY(8px);
  transition: transform 0.3s var(--ease-spring);
}
.gallery-card:hover .gallery-overlay-icon {
  transform: translateY(0);
}

.gallery-info {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--clr-text);
  font-weight: 400;
}
.gallery-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
}


/* ================================================================
   WORKS
   ================================================================ */
.works {
  background: var(--clr-bg-alt);
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  transition: background 0.2s;
}
.work-item:last-child { border-bottom: none; }
.work-item:hover { background: rgba(255,255,255,0.02); }

.work-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(200, 151, 58, 0.2);
  line-height: 1;
  transition: color 0.3s;
}
.work-item:hover .work-number { color: rgba(200, 151, 58, 0.6); }

.work-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--clr-white);
  font-weight: 400;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.work-item:hover .work-title { color: var(--clr-gold-lt); }

.work-desc {
  color: var(--clr-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.work-year {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-top: 0.5rem;
  display: block;
}

.work-accent {
  width: 4px;
  height: 0;
  background: var(--clr-gold);
  border-radius: 2px;
  transition: height 0.4s var(--ease-out);
  align-self: stretch;
  max-height: 100%;
}
.work-item:hover .work-accent { height: 100%; }


/* ================================================================
   TIMELINE
   ================================================================ */
.timeline {
  background: var(--clr-bg);
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--clr-border);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 0 2rem;
  align-items: start;
}

.timeline-item--left .timeline-content { grid-column: 1; text-align: right; }
.timeline-item--left .timeline-dot { grid-column: 2; }
.timeline-item--right .timeline-dot { grid-column: 2; }
.timeline-item--right .timeline-content { grid-column: 3; }
.timeline-item--left .timeline-content { grid-row: 1; }

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-gold);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 1px var(--clr-gold);
  margin-top: 6px;
  justify-self: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 1px var(--clr-gold), 0 0 12px rgba(200,151,58,0.4);
}

.timeline-content {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.timeline-item:hover .timeline-content {
  border-color: rgba(200, 151, 58, 0.3);
  background: rgba(255,255,255,0.03);
}

.timeline-year {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--clr-white);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.65;
}


/* ================================================================
   STATS BANNER
   ================================================================ */
.stats-banner {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
}

.stat-unit {
  font-size: 1.5rem;
  color: var(--clr-gold);
  line-height: 1;
  margin-top: -0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-top: 0.25rem;
}


/* ================================================================
   CONTACT
   ================================================================ */
.contact {
  background: var(--clr-bg-alt);
}

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

.contact-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.contact-card:hover {
  border-color: var(--clr-gold);
  transform: translateY(-6px);
}

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

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--clr-white);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.contact-link {
  font-size: 0.85rem;
  color: var(--clr-gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-link:hover { border-color: var(--clr-gold); }


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 0;
  text-align: center;
}

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

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.footer-brand .logo-zh {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--clr-gold);
}
.footer-brand .logo-en {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--clr-muted);
}

.footer-attribution {
  font-size: 0.75rem;
  color: rgba(138, 127, 116, 0.6);
}
.footer-attribution a {
  color: var(--clr-gold);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-attribution a:hover { opacity: 1; }


/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.open {
  pointer-events: all;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
}
.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.85rem;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
}


/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
.reveal-fade,
.reveal-slide-up,
.reveal-slide-left,
.reveal-slide-right {
  opacity: 0;
  transition-duration: 0.75s;
  transition-timing-function: var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-fade      { transition-property: opacity; }
.reveal-slide-up  { transform: translateY(30px); transition-property: opacity, transform; }
.reveal-slide-left  { transform: translateX(-40px); transition-property: opacity, transform; }
.reveal-slide-right { transform: translateX(40px);  transition-property: opacity, transform; }

.reveal-fade.visible,
.reveal-slide-up.visible,
.reveal-slide-left.visible,
.reveal-slide-right.visible {
  opacity: 1;
  transform: none;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-accent-block { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-card--wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline-line { display: none; }
  .timeline-item { grid-template-columns: 20px 1fr; }
  .timeline-item--left .timeline-content,
  .timeline-item--right .timeline-content { grid-column: 2; text-align: left; }
  .timeline-dot { grid-column: 1; grid-row: 1; }
  .timeline-item--left .timeline-dot { grid-column: 1; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: rgba(14,12,11,0.97);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--clr-border);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
  }
  .nav-toggle { display: flex; }

  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .work-item { grid-template-columns: 50px 1fr; }
  .work-accent { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-fade,
  .reveal-slide-up,
  .reveal-slide-left,
  .reveal-slide-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
