/* ═══════════════════════════════════════════════════════
   PORTFOLIO — style.css
   Luxury editorial aesthetic
   Palette: Ivory / Warm Charcoal / Tarnished Gold accent
═══════════════════════════════════════════════════════ */

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

:root {
  --ivory:       #F5F2EC;
  --ivory-dark:  #EBE6DC;
  --charcoal:    #1C1C1C;
  --charcoal-mid:#3A3A3A;
  --charcoal-lt: #6A6A6A;
  --gold:        #B8A068;
  --gold-lt:     #D4BC8A;
  --white:       #FFFFFF;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.76, 0, 0.24, 1);

  --nav-h: 72px;
  --section-pad: clamp(80px, 12vw, 160px);
}

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

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ── Custom Cursor ─────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out),
              background 0.2s ease;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s linear, width 0.3s var(--ease-out),
              height 0.3s var(--ease-out), opacity 0.3s ease;
  opacity: 0.6;
}
body:hover .cursor-follower { opacity: 0.6; }
.cursor.hover { width: 16px; height: 16px; background: var(--gold-lt); }
.cursor-follower.hover { width: 60px; height: 60px; opacity: 0.3; }

/* ── Navigation ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28,28,28,0.08);
}

.nav__logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__logo-dot { color: var(--gold); }

.nav__links {
  display: flex; gap: 40px; list-style: none;
}
.nav__link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.nav__link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--charcoal); }
.nav__link:hover::after { width: 100%; }

.nav__menu-btn {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 8px;
}
.nav__menu-btn span {
  display: block; width: 24px; height: 1px;
  background: var(--charcoal);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: var(--nav-h) clamp(24px, 5vw, 72px) clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero__content { position: relative; z-index: 2; max-width: 900px; }

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 36px;
}
.hero__headline em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--charcoal-lt);
  line-height: 1.8;
  max-width: 460px;
}

.hero__scroll-indicator {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(40px, 5vw, 80px);
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.hero__scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

.hero__bg-number {
  position: absolute;
  right: -0.05em; bottom: -0.1em;
  font-family: var(--ff-display);
  font-size: clamp(180px, 30vw, 380px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184,160,104,0.1);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ── Sections ──────────────────────────────────────── */
.section {
  padding: var(--section-pad) clamp(24px, 5vw, 72px);
}

.section__header {
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section__title em { font-style: italic; color: var(--gold); }

/* ── Reveal Animations ─────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ── Filter Bar ────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.filter-btn {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  padding: 9px 20px;
  border: 1px solid rgba(28,28,28,0.15);
  border-radius: 100px;
  cursor: none;
  transition: color 0.3s ease, border-color 0.3s ease,
              background 0.3s ease, transform 0.2s ease;
}
.filter-btn:hover {
  color: var(--charcoal);
  border-color: var(--charcoal-mid);
  transform: translateY(-1px);
}
.filter-btn.active {
  color: var(--ivory);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

/* ── Loading & Error States ────────────────────────── */
.loading-state, .error-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  min-height: 300px;
  color: var(--charcoal-lt);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 1px solid rgba(184,160,104,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ── Masonry Grid ──────────────────────────────────── */
.grid {
  columns: 3;
  column-gap: 20px;
}

@media (max-width: 1100px) { .grid { columns: 2; } }
@media (max-width: 600px)  { .grid { columns: 1; } }

.grid__item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  cursor: none;
  border-radius: 2px;
}

.grid__item.hidden { display: none; }

.grid__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.grid__item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.grid__item:hover img { transform: scale(1.04); }
.grid__item:hover .grid__item__overlay { opacity: 1; }

.grid__item__cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 6px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out) 0.05s;
}
.grid__item__title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out) 0.1s;
}
.grid__item:hover .grid__item__cat,
.grid__item:hover .grid__item__title { transform: translateY(0); }

/* ── Video Section ─────────────────────────────────── */
.video-section { background: var(--charcoal); }
.video-section .section__label { color: var(--gold); }
.video-section .section__title { color: var(--ivory); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

/* Card — now has a thumbnail on top + text body below */
.video-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(245,242,236,0.1);
  border-radius: 4px;
  color: var(--ivory);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
  cursor: none;
}
.video-card:hover {
  border-color: rgba(184,160,104,0.4);
  transform: translateY(-4px);
}

/* Thumbnail area */
.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.video-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.video-card:hover .video-card__thumb img { transform: scale(1.04); }

/* Gradient placeholder when no thumbnail */
.video-card__thumb--placeholder {
  background: linear-gradient(135deg, rgba(184,160,104,0.12) 0%, rgba(28,28,28,0.6) 100%);
}

/* Play button overlay centered on thumbnail */
.video-card__play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,18,14,0.3);
  transition: background 0.3s ease;
}
.video-card:hover .video-card__play-overlay { background: rgba(20,18,14,0.15); }

.video-card__icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(184,160,104,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.video-card:hover .video-card__icon {
  background: rgba(184,160,104,0.2);
  border-color: var(--gold);
  transform: scale(1.1);
}
.video-card__icon svg {
  width: 16px; height: 16px;
  fill: var(--gold);
  margin-left: 3px;
}

/* Text body */
.video-card__body {
  padding: 28px 32px 32px;
  display: flex; flex-direction: column; gap: 0;
  background: rgba(245,242,236,0.02);
  flex: 1;
}

.video-card__cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.video-card__title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 10px;
}
.video-card__desc {
  font-size: 0.82rem;
  color: rgba(245,242,236,0.5);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.video-card__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-lt);
  transition: gap 0.3s ease;
}
.video-card__cta svg {
  width: 16px; height: 16px;
  stroke: var(--gold-lt);
  transition: transform 0.3s ease;
}
.video-card:hover .video-card__cta { gap: 14px; }
.video-card:hover .video-card__cta svg { transform: translateX(3px); }

.video-empty {
  color: rgba(245,242,236,0.35);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 60px 0;
}

/* ── About ─────────────────────────────────────────── */
.about { background: var(--ivory-dark); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.about__body {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.9;
  color: var(--charcoal-mid);
  margin-bottom: 24px;
}
.about__body:last-of-type { margin-bottom: 48px; }

.about__stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.about__stat {
  display: flex; flex-direction: column; gap: 4px;
}
/* stat-num sizing is defined in the CV section block below */
.about__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
}

/* ── Contact ───────────────────────────────────────── */
.contact {
  background: var(--charcoal);
  min-height: 60vh;
  display: flex; align-items: center;
}

.contact__inner { width: 100%; }

.contact .section__label { color: var(--gold); margin-bottom: 32px; }

.contact__headline {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ivory);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.contact__headline em { font-style: italic; color: var(--gold); }

.contact__email {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 4px;
}
.contact__email::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.contact__email:hover::after { transform: scaleX(1); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(245,242,236,0.08);
  padding: 28px clamp(24px, 5vw, 72px);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__brand {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--ivory);
  opacity: 0.5;
}
.footer__copy {
  font-size: 0.72rem;
  color: rgba(245,242,236,0.3);
  letter-spacing: 0.05em;
}
.footer__links {
  display: flex; gap: 24px;
}
.footer__link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.35);
  transition: color 0.3s ease;
}
.footer__link:hover { color: var(--gold-lt); }

/* ── Lightbox ──────────────────────────────────────── */
.lightbox__overlay {
  position: fixed; inset: 0;
  background: rgba(20,18,14,0.92);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.lightbox__overlay.open { opacity: 1; pointer-events: all; }

.lightbox {
  position: fixed; inset: 0;
  z-index: 201;
  display: flex; align-items: center; justify-content: center;
  padding: 40px clamp(16px, 4vw, 60px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  max-width: 860px; width: 100%;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease-out);
}
.lightbox.open .lightbox__inner { transform: translateY(0); }

.lightbox__img-wrap {
  width: 100%; max-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 2px;
}
.lightbox__img {
  max-width: 100%; max-height: 70vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__meta {
  text-align: center;
  color: var(--ivory);
}
.lightbox__category {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.lightbox__title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 10px;
}
.lightbox__desc {
  font-size: 0.85rem;
  color: rgba(245,242,236,0.55);
  max-width: 520px;
  line-height: 1.75;
}

.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  color: rgba(245,242,236,0.6);
  padding: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: none;
}
.lightbox__close:hover { color: var(--ivory); transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: rgba(245,242,236,0.4);
  padding: 16px 12px;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: none;
}
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__nav:hover { color: var(--ivory); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

/* ── Skills Tags ───────────────────────────────────── */
.about__skills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.skill-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  padding: 7px 14px;
  border: 1px solid rgba(28,28,28,0.18);
  border-radius: 100px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.skill-tag:hover {
  border-color: var(--gold);
  color: var(--charcoal);
  background: rgba(184,160,104,0.06);
}

/* ── CV Section ────────────────────────────────────── */
.cv-section { background: var(--ivory); }

.cv__inner { max-width: 860px; }

.cv__sub {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--charcoal-lt);
  margin-top: 20px;
  margin-bottom: clamp(48px, 6vw, 72px);
  line-height: 1.7;
}

.cv__timeline {
  display: flex; flex-direction: column;
  gap: 0;
  margin-bottom: clamp(48px, 6vw, 72px);
  border-left: 1px solid rgba(28,28,28,0.1);
  padding-left: clamp(24px, 4vw, 48px);
}

.cv__entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(28,28,28,0.07);
  position: relative;
}
.cv__entry::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(24px, 4vw, 48px) - 4px);
  top: 36px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold);
  transition: background 0.3s ease;
}
.cv__entry:hover::before { background: var(--gold); }

.cv__entry-date {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 4px;
  white-space: nowrap;
}

.cv__entry-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.cv__entry-company {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  margin-bottom: 10px;
}
.cv__entry-desc {
  font-size: 0.85rem;
  color: var(--charcoal-mid);
  line-height: 1.75;
}

/* Download button */
.cv__download {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 32px;
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  color: var(--charcoal);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}
.cv__download::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--charcoal);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}
.cv__download:hover { color: var(--ivory); }
.cv__download:hover::before { transform: translateX(0); }
.cv__download-text,
.cv__download-icon { position: relative; z-index: 1; }
.cv__download-icon svg { display: block; }

@media (max-width: 640px) {
  .cv__entry { grid-template-columns: 1fr; gap: 6px; }
  .cv__entry-date { padding-top: 0; }
}

/* Fix stat number size for text values like "BMC" */
.about__stat-num {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}

/* ── Mobile Adjustments ────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  button { cursor: pointer; }
  a { cursor: pointer; }

  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw);
    background: var(--ivory);
    flex-direction: column; justify-content: center;
    padding: 60px 40px;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    box-shadow: -4px 0 24px rgba(0,0,0,0.06);
    z-index: 110;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { font-size: 0.9rem; }
  .nav__menu-btn { display: flex; z-index: 120; position: relative; }

  .about__inner { grid-template-columns: 1fr; }
  .about__left { margin-bottom: -24px; }

  .lightbox__nav { display: none; }
}
