/* ── Intro ── */
body.intro-active { overflow: hidden; }

.intro {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 200vh;
  z-index: 999;
  /* Gradient background: solid black fading into the site bg colour — no mask needed */
  background: linear-gradient(to bottom, #1A1817 0%, #1A1817 55%, #F7F5F2 100%);
  will-change: transform;
}

.intro-top {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.intro-name {
  display: flex;
  gap: 0.04em;
  letter-spacing: 0.18em;
}

.intro-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 300;
  color: #F7F5F2;
  opacity: 0;
  transform: translateY(36px);
  display: inline-block;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro-letter.show {
  opacity: 1;
  transform: translateY(0);
}

.intro-rule {
  height: 1px;
  width: 0;
  background: rgba(247, 245, 242, 0.25);
  transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro-rule.show {
  width: clamp(60px, 15vw, 140px);
}

.intro-tagline {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.35);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.intro-tagline.show { opacity: 1; }

.intro-scroll-cue {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.intro-scroll-cue.show { opacity: 1; }

.intro-scroll-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.3);
}

.intro-scroll-track {
  width: 1px;
  height: 40px;
  background: rgba(247, 245, 242, 0.12);
  position: relative;
  overflow: hidden;
}

.intro-scroll-thumb {
  width: 1px;
  height: 40%;
  background: rgba(247, 245, 242, 0.5);
  position: absolute;
  top: -40%;
  animation: scrollThumb 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scrollThumb {
  0%   { top: -40%; }
  100% { top: 140%; }
}

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

:root {
  --bg: #F7F5F2;
  --bg-tint: #EFEBE5;
  --ink: #1A1817;
  --ink-muted: #7A7570;
  --accent: #1A1817;
  --border: rgba(26,24,23,0.1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --max-w: 1140px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 4rem;
  position: relative;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 5vw, 4rem);
  font-size: 1.2rem;
  color: var(--ink-muted);
  animation: nudge 2.5s ease-in-out infinite;
}

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

/* ── Section base ── */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.section-tinted { background-color: var(--bg-tint); }

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

.section-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
}

/* ── Projects Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
}

.project-img {
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  background-color: #E2DDD7;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}

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

.project-card:hover .project-img {
  transform: scale(1.015);
  opacity: 0.9;
}

.project-info { padding: 0 0.2rem; }

.project-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.project-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0.3rem 0 0.5rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.project-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.5; }

/* ── Media Shelf ── */
.shelf-tabs {
  display: flex;
  gap: 0;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.6rem 1.4rem 0.6rem 0;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tab:hover { color: var(--ink); }

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.shelf-grid.hidden { display: none; }

.shelf-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shelf-cover {
  aspect-ratio: 2/3;
  border-radius: 2px;
  overflow: hidden;
  background-color: #D9D4CB;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.shelf-cover--square { aspect-ratio: 1/1; }

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

.shelf-item:hover .shelf-cover { transform: translateY(-4px); }

.shelf-title {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
}

.shelf-meta {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ── About ── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  max-width: var(--max-w);
}

.about-text .section-label { margin-bottom: 0.6rem; }

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 46ch;
}

.about-text p + p { margin-top: 1rem; }

.about-text a {
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.about-text a:hover { opacity: 0.5; }

.about-img-wrap { display: flex; justify-content: center; }

.about-img-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  background-color: var(--bg-tint);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── Footer ── */
footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }

/* ── Scroll fade-in ── */
.fade-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-target.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Project Modal ── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.open { opacity: 1; pointer-events: all; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 23, 0.65);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: min(92vw, 900px);
  max-height: 88vh;
  background: var(--bg);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-modal.open .modal-box { transform: translateY(0); }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem 1.2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-tag-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.modal-behance-btn {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s;
}
.modal-behance-btn:hover { color: var(--ink); }

.modal-close {
  width: 2rem;
  height: 2rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-tint); }

.modal-gallery {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-gallery img {
  width: 100%;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-img-wrap { order: -1; }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
