/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #FAF6F1;
  --warm-white: #F0E9DF;
  --text: #1a1715;
  --text-light: #5c564e;
  --terracotta: #B8472A;
  --forest: #2D4A3E;
  --camel: #D4A574;
  --blush: #E8C4B8;
  --warm-gray: #C5B9AB;
  --light-border: #DDD4C8;

  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --hand: 'Caveat', cursive;
}

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  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)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--blush);
  color: var(--text);
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--forest);
}

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

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--warm-gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--terracotta); }

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.landing-header a {
  pointer-events: auto;
}

.landing-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  pointer-events: auto;
}

.landing-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.landing-links a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.landing-links a:hover {
  color: var(--terracotta);
}

/* Two-zone layout: intro top, tiles bottom */
.landing {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Top zone: photo left, text right */
.landing-intro {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.landing-photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--light-border);
}

.landing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-text h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.landing-text h1 .accent {
  color: var(--terracotta);
  font-style: italic;
}

.landing-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 550px;
}

.landing-text p a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.landing-text p a:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

/* Bottom zone: 4 tiles in a row */
.tile-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--light-border);
  flex-shrink: 0;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem;
  transition: background-color 0.4s ease;
}

.tile-label {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.4s ease, letter-spacing 0.4s ease;
}

.tile:hover .tile-label {
  transform: scale(1.05);
  letter-spacing: 0.06em;
}

.tile-external {
  font-size: 0.7em;
  margin-left: 0.3em;
  opacity: 0.5;
  vertical-align: super;
}

/* Tile colors */
.tile--about {
  background: var(--cream);
}
.tile--about .tile-label {
  color: var(--text);
}
.tile--about:hover {
  background: #f0ebe4;
}

.tile--projects {
  background: var(--forest);
}
.tile--projects .tile-label {
  color: var(--cream);
}
.tile--projects:hover {
  background: #365a4b;
}

.tile--writing {
  background: var(--warm-white);
}
.tile--writing .tile-label {
  color: var(--text);
}
.tile--writing:hover {
  background: #e8e0d5;
}

.tile--creative {
  background: var(--terracotta);
}
.tile--creative .tile-label {
  color: var(--cream);
}
.tile--creative:hover {
  background: #c95535;
}

/* ============================================
   SUBPAGE NAVIGATION
   ============================================ */
.subpage-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.subpage-nav.scrolled {
  border-bottom-color: var(--light-border);
}

.nav-back {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.nav-back:hover {
  color: var(--terracotta);
}

.nav-back .arrow-back {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-back:hover .arrow-back {
  transform: translateX(-3px);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-light);
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

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

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

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

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

/* ============================================
   SECTIONS — SHARED
   ============================================ */
section {
  padding: 6rem 3rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--terracotta);
}

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 5rem;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-header h1 .accent {
  color: var(--terracotta);
  font-style: italic;
}

.page-header .page-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 500px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo-frame {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--warm-white);
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-label {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--terracotta);
  transform: rotate(3deg);
  background: var(--cream);
  padding: 0.2rem 0.8rem;
}

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.about-text h2 .accent {
  color: var(--terracotta);
  font-style: italic;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid var(--light-border);
  border-radius: 100px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ============================================
   BUTTON UTILITIES
   ============================================ */
.btn-outline {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid var(--text);
  color: var(--text);
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--sans);
}

.btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.btn-outline--accent {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.btn-outline--accent:hover {
  background: var(--terracotta);
  color: var(--cream);
}

/* ============================================
   PHOTOGRAPHY
   ============================================ */
.creative-section {
  background: var(--text);
  color: var(--cream);
  position: relative;
}

.creative-section .section-label {
  color: var(--camel);
}

.creative-section .section-label::before {
  background: var(--camel);
}

.creative-intro {
  max-width: 700px;
  margin-bottom: 4rem;
}

.creative-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.creative-intro p {
  color: var(--warm-gray);
  font-size: 0.95rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.2rem;
}

.photo-item {
  position: relative;
  overflow: hidden;
  background: #2a2520;
  border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.photo-item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
.photo-item:nth-child(4) { grid-column: span 2; aspect-ratio: 16/9; }
.photo-item:nth-child(6) { grid-column: span 2; aspect-ratio: 16/9; }

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-item .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.2rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.photo-item:hover .photo-caption {
  transform: translateY(0);
}

/* ============================================
   VIDEO
   ============================================ */
.video-section {
  padding: 6rem 3rem;
  position: relative;
}

.video-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.video-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

.video-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.video-intro h2 .hand-accent {
  font-family: var(--hand);
  color: var(--terracotta);
  font-weight: 600;
}

.video-intro p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.video-card {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--light-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.video-card-preview {
  aspect-ratio: 9/16;
  max-height: 400px;
  background: #2a2520;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-card-preview .play-btn {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-card:hover .play-btn {
  border-color: var(--terracotta);
  background: var(--terracotta);
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,0.8);
  margin-left: 3px;
}

.video-card-info {
  padding: 1.2rem;
}

.video-card-info h3 {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.video-card-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================
   FASHION & TEXTILES
   ============================================ */
.fashion-section {
  background: var(--warm-white);
  position: relative;
}

.fashion-inner {
  max-width: 800px;
  margin: 0 auto;
}

.fashion-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.fashion-inner h2 .accent {
  color: var(--terracotta);
  font-style: italic;
}

.fashion-intro {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.fashion-placeholder {
  margin-top: 3rem;
  padding: 3rem 2rem;
  border: 1px dashed var(--light-border);
  text-align: center;
  color: var(--warm-gray);
  font-family: var(--hand);
  font-size: 1.1rem;
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.experience {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.experience h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.exp-timeline {
  display: grid;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--light-border);
  transition: all 0.3s ease;
}

.exp-item:hover {
  padding-left: 1rem;
}

.exp-date {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 0.2rem;
}

.exp-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.exp-role {
  font-size: 0.85rem;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.exp-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   CONTACT & FOOTER
   ============================================ */
.contact {
  background: var(--text);
  color: var(--cream);
  text-align: center;
  padding: 6rem 3rem;
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact h2 .italic {
  font-style: italic;
  font-weight: 400;
}

.contact p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-link {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--cream);
  border-color: var(--terracotta);
  background: var(--terracotta);
}

.footer {
  background: var(--text);
  color: var(--warm-gray);
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--warm-white);
  border: 1px solid var(--light-border);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.project-featured {
  border-left: 4px solid var(--terracotta);
}

.project-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card-status {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.project-card-status--active {
  background: var(--forest);
  color: var(--cream);
}

.project-card-status--soon {
  background: transparent;
  border: 1px solid var(--warm-gray);
  color: var(--text-light);
}

.project-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

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

.project-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-upcoming {
  border-style: dashed;
  opacity: 0.75;
  padding: 2rem;
}

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

.project-upcoming h3 {
  font-size: 1.15rem;
}

.project-upcoming p {
  font-size: 0.85rem;
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  section { padding: 4rem 1.5rem; }

  /* Landing */
  .landing-header { padding: 1rem 1.5rem; }
  .landing-links { display: none; }

  .landing-intro {
    flex-direction: column;
    gap: 2rem;
    padding: 5rem 2rem 2rem;
    text-align: center;
  }

  .landing-photo {
    width: 160px;
    height: 160px;
  }

  .landing-text p {
    max-width: 100%;
  }

  .tile-row {
    grid-template-columns: 1fr 1fr;
  }

  .tile {
    padding: 2rem 1rem;
  }

  /* Subpage nav */
  .subpage-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }

  .page-header { padding-top: 4rem; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo-frame { max-width: 400px; }

  /* Photography */
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .photo-item:nth-child(1) { grid-row: span 1; aspect-ratio: 1; }
  .photo-item:nth-child(4) { grid-column: span 1; aspect-ratio: 1; }
  .photo-item:nth-child(6) { grid-column: span 1; aspect-ratio: 1; }

  /* Experience */
  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Videos */
  .video-section { padding: 4rem 1.5rem; }

  /* Projects */
  .project-upcoming-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .photo-grid { grid-template-columns: 1fr; }

  .contact-links { flex-direction: column; align-items: center; }

  .project-card { padding: 1.5rem; }
}
