@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Knewave&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Share+Tech&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Knewave&family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Share+Tech&display=swap');

:root {
  --bg: #005e14;
  --bg2: #00683d;
  --cream: #f0e8d8;
  --gold: #dfbc5e;
  --gold2: #e8c97a;
  --muted: #c9bfac;
  --accent: #8b3a2a;
  --border: rgba(201, 168, 76, 0.18);
}

:root {
  --font-main: 'Public Sans', sans-serif;
  --font-display: 'Bagel Fat One', cursive;
  --font-accent: 'Knewave', cursive;
  --font-tech: 'Martel Sans', sans-serif;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-display);
  overflow-x: hidden;
}

/* ── Pages ── */
.page {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.6s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 52px;
  background: linear-gradient(to bottom, rgba(0, 78, 13, 0.97) 60%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--gold2);
}

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-links li a {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  right: 0;
}

/* ── HOME ── */
#home {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.home-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(179, 255, 0, 0.616) 0%, transparent 65%);
  pointer-events: none;
}

.home-eyebrow {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 0.8s 0.2s ease forwards;
}

.home-title {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 32px;
  opacity: 0;
  animation: riseIn 0.9s 0.4s ease forwards;
}

.home-title em {
  font-style: italic;
  color: var(--gold);
}

.home-sub {
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 56px;
  opacity: 0;
  animation: riseIn 0.9s 0.6s ease forwards;
}

.home-cta {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: riseIn 0.9s 0.8s ease forwards;
}

.btn {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 34px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}



@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── WORKS ── */
#works {
  padding: 120px 52px 80px;
}

.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.works-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.works-title span {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.works-count {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 3×4 Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.works-row-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-top: 12px;
}

.works-row-label:first-child {
  margin-top: 0;
}

.works-row-title {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.works-row-count {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg2);
  height: 380px;
}

/* Base image */
.work-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover image (second) */
.work-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.06);
}

.work-video-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.work-item:hover .work-img {
  transform: scale(1.04);
}

.work-item:hover .work-img-hover {
  opacity: 1;
  transform: scale(1);
}

.work-item:hover .work-video-hover {
  opacity: 1;
  transform: scale(1);
}

/* Overlay */
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 13, 11, 0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-title {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.work-cat {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transform: translateY(10px);
  transition: transform 0.4s 0.05s ease;
}

.work-item:hover .work-title,
.work-item:hover .work-cat {
  transform: translateY(0);
}

/* Placeholder tiles (for demo when no real images) */
.work-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── DETAILS ── */
#details {
  padding: 120px 52px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  margin-top: 60px;
}

.details-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.details-avatar {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.details-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.details-name {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 8px;
}

.details-role {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.details-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.details-contact a:hover {
  color: var(--gold);
}

.details-body h2 {
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 32px;
}

.details-body h2 em {
  font-style: italic;
  color: var(--gold);
}

.details-body p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(240, 232, 216, 0.75);
  margin-bottom: 24px;
}

.details-section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  margin-bottom: 32px;
  margin-top: 48px;

}

.skill-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 20px 16px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s;
}

.skill-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.experience-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.exp-role {
  font-size: 1.1rem;
  font-weight: 400;
}

.exp-year {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.exp-place {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.exp-desc {
    font-family: 'matel-sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(240, 232, 216, 0.6);
  line-height: 1.7;
  font-style: italic;
}

/* ── Page header shared ── */
.page-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.page-main-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.page-main-title em {
  font-style: italic;
  color: var(--gold);
}

.lightbox-img-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.lightbox-img-wrap:hover img {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.lightbox-img-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 9, 8, 0.75);
  padding: 6px 14px;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lightbox-img-wrap:hover .lightbox-img-hint {
  opacity: 1;
}

/* ── Lightbox ── */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 9, 8, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  max-width: 80vw;
  max-height: 80vh;
  position: relative;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lightbox-placeholder {
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 75vh;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.lightbox-placeholder img {
  max-width: 80vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox-placeholder img:hover {
  opacity: 0.85;
}

.lightbox-caption {
  margin-top: 20px;
  text-align: center;
}

.lightbox-caption h3 {
  font-size: 1.5rem;
  font-weight: 300;
}

.lightbox-caption p {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid var(--border);
  color: var(--cream);
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier Prime', monospace;
  transition: all 0.3s;
}

.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Noise texture overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  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");
  background-size: 256px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav {
    padding: 18px 24px;
  }

  #works {
    padding: 100px 50px 60px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item {
    height: 220px;
  }

  #details {
    padding: 100px 24px 60px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .details-sidebar {
    position: static;
  }
}

@media (max-width: 580px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    height: 240px;
  }

  .works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}