/*
  ── PP Font-face blocks ─────────────────────────────────────────────
  Uncomment once PP Pangaia / PP Mori WOFF2 files are hosted locally.

  @font-face {
    font-family: 'PP Pangaia';
    src: url('/fonts/PPPangaia-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'PP Pangaia';
    src: url('/fonts/PPPangaia-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'PP Mori';
    src: url('/fonts/PPMori-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'PP Mori';
    src: url('/fonts/PPMori-SemiBold.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
  }
  ──────────────────────────────────────────────────────────────────── */

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

:root {
  --font-display: 'PP Pangaia', 'Fraunces', Georgia, serif;
  --font-body:    'PP Mori', 'Epilogue', system-ui, sans-serif;

  --green:        #3d4e1f;
  --green-deep:   #2c3816;
  --green-accent: #7fa832;
  --white:        #ffffff;
  --bg:           #ffffff;
  --bg2:          #f5f4f0;
  --ink:          #1c2211;
  --muted:        #7a7d72;
  --light-grey:   #b0b0b0;
  --border:       rgba(60, 78, 31, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: rgba(18, 24, 15, 0.658);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* mobile menu toggle button (hidden by default) */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--green-accent);
  font-weight: 400;
}

nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover { color: var(--white); }

/* ─────────────────────────────────────────
   HERO
   circle + vmin = perfectly round glow at any viewport size
───────────────────────────────────────── */
.hero-wrap {
  background:
    radial-gradient(circle 295vmin at calc(100% - 4vw) 22%,
      rgba(255, 255, 255, 0.90)  0%,
      rgba(240, 248, 200, 0.70)  8%,
      rgba(210, 228, 150, 0.44) 18%,
      rgba(170, 200, 100, 0.22) 30%,
      rgba(130, 165,  70, 0.10) 44%,
      rgba( 80, 110,  40, 0.03) 60%,
      transparent               78%),
    var(--green-deep);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 12rem 2.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  align-items: start;
}

.hero-headline {
  padding-right: 2rem;
}

.hero-intro {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 9rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: 0.03em;
  color: var(--white);
  padding-bottom: 1rem;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 12.5rem;
  min-height: 60vh;
}

.hero-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  margin-bottom: auto;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--green-accent);
  letter-spacing: 0.01em;
}

.hero-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--green-accent);
  text-align: right;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-bottom: 0.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

/* ─────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4rem 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-count {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   PROJECT GRID
───────────────────────────────────────── */
.projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--white);
  padding: 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform     0.28s ease,
    box-shadow    0.28s ease,
    background    0.28s ease,
    border-color  0.28s ease;
  /* allow project-specific hover backgrounds via CSS variable */
  /* default is light grey for all cards */
  --hover-bg: #e6e3e3;
  /* text color to use on hover (defaults to dark ink so it’s readable on grey) */
  --hover-text: var(--ink);
}

.project-card:hover {
  /* use the project-specific hover color if provided */
  background: var(--bg2);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(29, 36, 15, 0.22);
}

/* Colour flips on hover */
.project-card:hover .project-index             { color: var(--hover-text, rgba(255, 255, 255, 0.4)); }
.project-card:hover .project-title             { color: var(--hover-text, var(--white)); }
.project-card:hover .project-title em          { color: var(--green-accent); }
.project-card:hover .project-desc              { color: var(--hover-text, rgba(255, 255, 255, 0.62)); }
.project-card:hover .project-arrow             { color: var(--green-accent); }
.project-card:hover .tag                       { border-color: rgba(61, 61, 61, 0.2); color: rgba(109, 109, 109, 0.6); }
.project-card:hover .project-img-placeholder   { color: rgba(255, 255, 255, 0.4); }

.project-index {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color 0.28s;
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.project-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.28s;
}

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

.tag {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 2px;
  transition: border-color 0.28s, color 0.28s;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
  color: var(--ink);
  transition: color 0.28s;
}

.project-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  transition: color 0.28s;
}

.project-desc {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.78;
  margin-bottom: 1.6rem;
  transition: color 0.28s;
}

.project-arrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.28s, gap 0.2s;
}

.project-card:hover .project-arrow { gap: 0.9rem; }

/* ─────────────────────────────────────────
   CTA BAND
───────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(circle 125vmin at calc(100% - 4vw) 50%,
      rgba(255, 255, 255, 0.14)  0%,
      rgba(255, 255, 255, 0.08) 25%,
      rgba(255, 255, 255, 0.03) 50%,
      transparent               70%),
    linear-gradient(120deg, var(--green-deep) 0%, var(--green) 100%);
  padding: 5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.cta-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-accent);
}

.cta-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-);
  background: var(--white);
  padding: 1rem 2.2rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.cta-link:hover {
  background: var(--green-accent);
  color: var(--white);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   MODAL
───────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 17, 6, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal {
  background: var(--white);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(28px);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header-bar {
  background:
    radial-gradient(circle 800px at calc(100% - 40px) 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 65%),
    linear-gradient(120deg, var(#4a5e28 0%,) 0%, var(--green) 100%);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--white); }

.modal-img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.modal-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.modal-body { padding: 2.5rem; }

.modal-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  color: var(--ink);
}

.modal-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.modal-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2rem;
  font-size: 13px;
}

.modal-details {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: background 0.2s;
}

.modal-link:hover { background: var(--ink); }

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

.hero-headline { animation: fadeUp 1s ease both 0.1s; }
.hero-right    { animation: fadeUp 1s ease both 0.3s; }

.project-card                  { animation: fadeUp 0.55s ease both; }
.project-card:nth-child(1)     { animation-delay: 0.05s; }
.project-card:nth-child(2)     { animation-delay: 0.12s; }
.project-card:nth-child(3)     { animation-delay: 0.19s; }
.project-card:nth-child(4)     { animation-delay: 0.26s; }
.project-card:nth-child(5)     { animation-delay: 0.33s; }
.project-card:nth-child(6)     { animation-delay: 0.40s; }

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar             { width: 4px; }
::-webkit-scrollbar-track       { background: var(--bg); }
::-webkit-scrollbar-thumb       { background: var(--green); border-radius: 2px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 10rem 1.5rem 5rem;
  }
  .hero-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 2rem;
    min-height: unset;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-tags { align-items: flex-start; }
}

@media (max-width: 600px) {
  header                          { padding: 1rem 1.2rem; }
  /* hide nav by default and make toggle visible */
  nav                              { display: none; position: absolute; top: 100%; right: 1.2rem; background: var(--white);
                                     flex-direction: column; gap: 1rem; padding: 1rem;
                                     border: 1px solid var(--border); border-radius: 4px; }
  nav.open                         { display: flex; }
  #menu-toggle                     { display: block; }

  .section-header, .projects      { padding-left: 1.2rem; padding-right: 1.2rem; }
  .modal-body                     { padding: 1.5rem; }
  .modal-details                  { grid-template-columns: 1fr 1fr; }
  .cta-band                       { flex-direction: column; align-items: flex-start; padding: 3rem 1.5rem; }
}



/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Profile photo ── */
.about-photo-wrap {
  position: sticky;
  top: 7rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(15%);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--green-deep), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

/* ── Text column ── */
.section-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green-accent);
  flex-shrink: 0;
}

.about-bio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.about-details {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.about-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ── Social links ── */
.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.social-link svg {
  flex-shrink: 0;
}

/* ── Nav active state ── */
nav a.nav-active { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem;
  }
  .about-photo-wrap {
    position: static;
    max-width: 280px;
  }
  .about-photo { aspect-ratio: 1 / 1; }
}


/* ─────────────────────────────────────────
   ABOUT HERO PHOTO
───────────────────────────────────────── */
.about-hero-photo-wrap {
  width: 130%;
  padding-top: 12.5rem;
}

.about-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(10%);
  /* subtle green tint to blend with hero */
  mix-blend-mode: luminosity;
  opacity: 0.88;
}

.about-hero-photo-placeholder {
  width: 100%;
  height: 110%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

@media (max-width: 860px) {
  .about-hero-photo-wrap { padding-top: 2rem; }
  .about-hero-photo { aspect-ratio: 1 / 1; max-width: 200px; }
}


/* ─────────────────────────────────────────
   ABOUT DESCRIPTION STRIP
───────────────────────────────────────── */
.about-desc-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.about-desc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 4rem;
  align-items: center;
}

.about-desc-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}


a.logo {
  text-decoration: none;
}
