/* ============================================
   IMPORT FONT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES — edit these to restyle the whole site
   ============================================ */
:root {
  --font-main: 'Inter', sans-serif;

  --color-dark: #0a0a0a;
  --color-light: #ffffff;
  --color-mid: #f5f5f5;
  --color-text-muted: #888888;
  --color-accent: #c9a84c;      /* that gold line you have on the portfolio page */

  --nav-height: 60px;
  --sidebar-width: 240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-dark);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}
/* ============================================
   TOP NAV
   ============================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background-color: var(--color-light);
}

.landing-page .top-nav {
  background-color: transparent;
}

.top-nav--dark {
  color: var(--color-light);
}

.top-nav--light {
  color: var(--color-dark);
}

.nav-logo {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 60px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  font-weight: 700;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   HERO OVERLAY CONTENT
   ============================================ */
.hero__overlay {
  position: absolute;
  bottom: 80px;
  left: 40px;
  z-index: 10;
}

.hero__bio {
  color: var(--color-light);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.3;
  max-width: 680px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

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

/* ============================================
   HERO DOTS
   ============================================ */
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.hero__dot.active {
  background-color: var(--color-light);
}

/* ============================================
   HERO CHEVRON
   ============================================ */
.hero__chevron {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-light);
  font-size: 22px;
  opacity: 0.7;
  cursor: pointer;
  z-index: 10;
  animation: bounce 2s infinite;
}

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

/* ============================================
   SCROLL SNAP — Landing page panels
   ============================================ */
.landing-page {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.hero {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.portfolio-snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
}

/* ============================================
   PAGE LAYOUT — sidebar + main content
   ============================================ */
.portfolio-page {
  padding-top: var(--nav-height);
}

.page-layout {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - var(--nav-height));
  padding: 40px 24px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.sidebar-category {
  margin-bottom: 48px;
}

.sidebar-category__header {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
  transition: opacity 0.2s ease;
}

.sidebar-category__header:hover,
.sidebar-category__header.active {
  opacity: 0.5;
}

.sidebar-category__sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 2px;
}

.sidebar-category__sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 2px;
}

.sidebar-category__sub a:hover,
.sidebar-category__sub a.active {
  opacity: 1;
}

.sidebar-category__sub a {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-dark);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.sidebar-external {
  color: var(--color-text-muted) !important;
  font-style: italic;
}

.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.sidebar-social a {
  color: var(--color-dark);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.sidebar-social a:hover {
  opacity: 1;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  flex: 1;
  padding: 40px 40px 40px 20px;
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 20px;
  cursor: pointer;
}

.gallery-item__media {
  width: 100%;
  overflow: hidden;
}

.gallery-item__media img,
.gallery-item__media video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item__media img,
.gallery-item:hover .gallery-item__media video {
  transform: scale(1.02);
}

.gallery-item__caption {
  margin-top: 6px;
  font-size: 10px;
}

.caption-name {
  font-weight: 500;
}

.caption-year {
  font-weight: 300;
  color: var(--color-text-muted);
  margin-left: 4px;
}

/* ============================================
   PROJECT PAGE
   ============================================ */
.project-page {
  padding-top: var(--nav-height);
}

.project-page .page-layout {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   PROJECT HERO
   ============================================ */
.project-hero {
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}

.project-hero img,
.project-hero video {
  width: 100%;
  height: 90vh;
  object-fit: cover;
  display: block;
}

/* ============================================
   PROJECT INFO BLOCK
   ============================================ */
.project-info {
  display: flex;
  gap: 80px;
  padding: 60px 60px 60px 0;
}

.project-info__meta {
  min-width: 200px;
}

.project-info__meta h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.project-info__meta .project-year {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.project-info__meta h3 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.project-info__meta ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-info__meta ul li {
  font-size: 12px;
  font-weight: 300;
}

.project-info__description {
  max-width: 600px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-dark);
}

/* ============================================
   PROJECT CONTENT BLOCKS
   ============================================ */
.project-content {
  padding-right: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px;
}

/* Full width block */
.project-block--full {
  width: 100%;
  overflow: hidden;
}

.project-block--full img,
.project-block--full video {
  width: 100%;
  height: auto;
  display: block;
}

/* Two column block */
.project-block--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-block--two-col img,
.project-block--two-col video {
  width: 100%;
  height: auto;
  display: block;
}

/* Three column block */
.project-block--three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.project-block--three-col img,
.project-block--three-col video {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   PROJECT NAVIGATION
   ============================================ */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px 60px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-right: 60px;
  margin-bottom: 60px;
}

.project-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.project-nav a:hover {
  opacity: 1;
}

.project-nav__prev::before {
  content: '← ';
}

.project-nav__next::after {
  content: ' →';
}

/* ============================================
   PROCESS GALLERY
   ============================================ */
.process-section {
  padding: 60px 60px 80px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-right: 60px;
  margin-top: 20px;
}

.process-section h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.process-slideshow {
  position: relative;
  width: 100%;
}

.process-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.process-slide {
  display: none;
  cursor: pointer;
}

.process-slide.active {
  display: block;
}

.process-slide img,
.process-slide video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 75vh;
  object-fit: contain;
  background-color: var(--color-mid);
}

.process-slide__caption {
  margin-top: 16px;
}

.process-slide__caption h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.process-slide__caption p {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 600px;
}

/* Arrows */
.process-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--color-light);
  border: 1px solid rgba(0,0,0,0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.process-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.process-arrow--prev {
  left: -22px;
}

.process-arrow--next {
  right: -22px;
}

/* Dot indicators */
.process-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.process-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.process-dot.active {
  background-color: var(--color-dark);
}

/* Slide counter */
.process-counter {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-top: 12px;
  letter-spacing: 0.08em;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
  padding-top: var(--nav-height);
}

.about-main {
  flex: 1;
  padding: 60px 80px 80px 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ============================================
   ABOUT TOP — photo + bio
   ============================================ */
.about-top {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-photo {
  width: 340px;
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.about-heading {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.4;
}

.about-heading em {
  font-style: italic;
  font-weight: 300;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-bio p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-dark);
  max-width: 520px;
}

/* ============================================
   ABOUT SECTIONS
   ============================================ */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.about-section__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================
   CLIENTS LIST
   ============================================ */
.about-clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
}

.about-clients li {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-dark);
}

/* ============================================
   EDUCATION & EXPERIENCE
   ============================================ */
.about-entries {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-entry {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-entry__meta {
  min-width: 120px;
}

.about-entry__year {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.about-entry__detail h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.about-entry__detail p {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.about-contact {
  padding-bottom: 40px;
}

.about-email {
  font-size: 22px;
  font-weight: 300;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.about-email:hover {
  opacity: 0.5;
}

.about-resume-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.about-resume-link:hover {
  opacity: 1;
}