/* =========================================================
   RESET & BASE
========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --fg: #f3f1ec;
  --muted: #9a968c;
  --accent: #d98e3b;
  --line: rgba(243, 241, 236, 0.12);
  --maxw: 1200px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* =========================================================
   NAV
========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  mix-blend-mode: difference;
  transition: padding 0.3s ease;
}

.nav.scrolled { padding: 14px 32px; }

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav__links a { opacity: 0.75; transition: opacity 0.25s ease; }
.nav__links a:hover { opacity: 1; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span { width: 24px; height: 1.5px; background: var(--fg); }

/* =========================================================
   HERO
========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 32px 80px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(217,142,59,0.14), transparent 55%),
    var(--bg);
}

.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  max-width: 16ch;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  margin-top: 28px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero__meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.hero__meta div span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 32px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   SECTION GENERIC
========================================================= */
section { padding: 140px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

.section-alt { background: var(--bg-alt); }

/* =========================================================
   ABOUT
========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__text p { color: var(--muted); margin-bottom: 20px; font-size: 1.05rem; }
.about__text p:last-child { margin-bottom: 0; }

.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

.skills li {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 0.95rem;
}

/* =========================================================
   PORTFOLIO FILTERS
========================================================= */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filters button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filters button:hover,
.filters button.active {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(217, 142, 59, 0.1);
}

/* =========================================================
   PORTFOLIO GRID
========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  cursor: pointer;
}

.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1), filter 0.6s ease;
}

.card:hover img { transform: scale(1.06); }

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.88) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover .card__overlay { opacity: 1; }

.card__cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card__title { font-family: var(--font-display); font-size: 1.15rem; }
.card__desc { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* =========================================================
   INSTAGRAM SECTION
========================================================= */
.ig-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.ig-follow {
  border: 1px solid var(--line);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.25s ease;
}
.ig-follow:hover { border-color: var(--accent); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ig-post {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
}

.ig-post img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.ig-post:hover img { transform: scale(1.08); }

.ig-post__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}
.ig-post:hover .ig-post__overlay { opacity: 1; }

.ig-video-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}

.ig-fallback {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  color: var(--muted);
}

.ig-fallback a { color: var(--accent); text-decoration: underline; }

.ig-note {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* =========================================================
   CONTACT
========================================================= */
.contact {
  text-align: center;
}
.contact h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 18ch; margin: 0 auto; }
.contact__email {
  display: inline-block;
  margin-top: 32px;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact__email:hover { border-color: var(--accent); color: var(--accent); }

.contact__socials {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact__socials a:hover { color: var(--fg); }

/* =========================================================
   FOOTER
========================================================= */
footer {
  padding: 40px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 90vw; border-radius: 4px; }
.lightbox__close {
  position: absolute; top: 28px; right: 32px;
  background: none; border: none; color: var(--fg);
  font-size: 1.6rem; cursor: pointer;
}
.lightbox__caption {
  position: absolute; bottom: 36px; left: 0; right: 0;
  text-align: center; color: var(--muted); font-size: 0.9rem;
}

/* =========================================================
   REVEAL ON SCROLL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 90px 0; }
  .hero { padding-top: 120px; }
  .hero__meta { gap: 28px; }
}
