/* ─────────────────────────────────────────────
   YELNAZ RYSBEK — About Page
   ───────────────────────────────────────────── */

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

:root {
  --bg: #fafaf8;
  --bg2: #f0efea;
  --ink: #111111;
  --ink-dim: #555555;
  --ink-faint: #999999;
  --accent: #1a6647;
  --rule: rgba(0, 0, 0, 0.09);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "DM Mono", monospace;
  --font-body: "Geologica", sans-serif;
  --pad-x: clamp(1.5rem, 6vw, 6rem);
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 200;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* ─── CURSOR ─── */
.cursor {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.18s, height 0.18s, opacity 0.18s;
}
.cursor.large {
  width: 36px;
  height: 36px;
  opacity: 0.22;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad-x);
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: "";
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
}

/* ─────────────────────────────────────────────
      ABOUT HERO
      ───────────────────────────────────────────── */
.about-hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 5rem;
  padding: 8rem var(--pad-x) 5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.about-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -0.02em;
}
.about-title em {
  font-style: italic;
  color: var(--accent);
}

/* Photo slot */
.about-hero-photo {
  width: 100%;
  aspect-ratio: 3/2;
  position: relative;
  /* overflow: hidden; */
}

.about-hero-photo img {
  width: 100%;
  height: 100%;
  box-shadow: 8px 8px 0px rgba(26, 102, 71, 0.12);
  border: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-caption {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-top: 0.75rem;
  text-align: right;
}

/* ─────────────────────────────────────────────
      BIO
      ───────────────────────────────────────────── */
.bio-section {
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bio-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}
.bio-body {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--ink-dim);
  max-width: 680px;
}
.bio-body p {
  margin-bottom: 1.2rem;
}
.bio-body p:last-child {
  margin-bottom: 0;
}
.bio-body strong {
  color: var(--ink);
  font-weight: 400;
}
.bio-lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.8rem !important;
}

/* ─────────────────────────────────────────────
      FILM GALLERY
      ───────────────────────────────────────────── */
.gallery-section {
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
}
.gallery-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
.gallery-intro {
  font-size: 1rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  max-width: 680px;
  text-align: start;
}

/* Asymmetric grid — aspect ratios from actual film scans
      Landscape: 1689×1080 ≈ 3:2  |  Portrait: 1037×1565 ≈ 2:3 */
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.film-cell {
  position: relative;
  overflow: hidden;
}

/* Landscape cells: 3:2 */
.film-cell .film-placeholder {
  aspect-ratio: 3 / 2;
}

/* Portrait cells: 2:3 */
.film-cell.film-portrait .film-placeholder {
  aspect-ratio: 2 / 3;
}

.film-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Wide landscape spans 2 columns, stays 3:2 */
.film-cell.film-wide {
  grid-column: span 2;
}
.film-cell.film-wide .film-placeholder {
  aspect-ratio: 3 / 2;
}

/* ─────────────────────────────────────────────
      TIMELINE
      ───────────────────────────────────────────── */
.timeline-section {
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  background: var(--bg2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.timeline-header {
  margin-bottom: 4rem;
}
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  align-items: start;
}
.timeline-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.15rem;
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.timeline-group {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.timeline-group-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.timeline-org {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.timeline-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-dim);
  max-width: 560px;
}

/* ─── FOOTER ─── */
footer {
  padding: 2rem var(--pad-x);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

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

  .about-hero {
    padding: 7rem 1.5rem 3.5rem;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-hero-photo {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3/2;
  }
  .bio-section,
  .gallery-section,
  .timeline-section {
    padding: 4rem 1.5rem;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bio-label {
    display: none;
  }
  .gallery-header {
    flex-direction: column;
    gap: 1rem;
  }
  .film-grid {
    grid-template-columns: 1fr 1fr;
  }
  .film-cell.film-wide {
    grid-column: span 2;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .timeline-meta {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  footer {
    padding: 1.5rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .about-hero {
    padding: 6rem 1rem 3rem;
  }
  .bio-section,
  .gallery-section,
  .timeline-section {
    padding: 3rem 1rem;
  }
  .film-grid {
    grid-template-columns: 1fr;
  }
  .film-cell.film-wide {
    grid-column: span 1;
  }
}
