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

:root {
  --white: #ffffff;
  --off-white: #0e0e0d;
  --light: #1c1c1a;
  --mid: rgba(255,255,255,0.28);
  --dark-mid: rgba(255,255,255,0.55);
  --dark: rgba(255,255,255,0.88);
  --black: #f0ede8;
  --accent: #c8b89a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--off-white);
  color: var(--dark-mid);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  background: rgba(14, 14, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
  border-color: rgba(255,255,255,0.07);
  padding: 18px 60px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

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

.hero-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-mid);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--mid);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 32px;
}

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

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--dark-mid);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,237,232,0.35);
  padding-bottom: 4px;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.hero-cta:hover { gap: 20px; opacity: 0.6; }

.hero-cta svg { width: 16px; height: 16px; }

.hero-scroll-hint {
  position: absolute;
  right: 60px;
  bottom: 80px;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: var(--mid);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.3; }
}

/* ── SECTION BASICS ── */
section { padding: 120px 60px; }

.section-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  max-width: 80px;
}

/* ── SHOWREEL ── */
.showreel {
  background: #080807;
  padding: 100px 60px;
}

.showreel .section-label { color: rgba(255,255,255,0.3); }
.showreel .section-label::after { background: rgba(255,255,255,0.06); }

.showreel-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 56px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0a0a09;
  border-radius: 4px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── PORTFOLIO ── */
.portfolio {
  background: #0e0e0d;
  padding: 100px 60px;
}

.portfolio .section-label { color: rgba(255,255,255,0.3); }
.portfolio .section-label::after { background: rgba(255,255,255,0.06); }

.portfolio-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 56px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: #131312;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-thumb {
  position: absolute;
  inset: 0;
  background: #1c1c1a;
  overflow: hidden;
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.project-card:hover .project-thumb img {
  opacity: 0.45;
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.05) 55%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
}

.project-play {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-play {
  opacity: 1;
  transform: scale(1);
}

.project-play svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
  margin-left: 3px;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-type {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.project-arrow {
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── ABOUT ── */
.about { background: #131312; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 32px;
}

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

.about-body p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--dark-mid);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-body p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.5;
}

/* ── EXPERIENCE ── */
.experience { background: #0e0e0d; }

.experience-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.exp-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }

.exp-date {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 6px;
}

.exp-company {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-mid);
  letter-spacing: 0.02em;
}

.exp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.2;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-bullets li {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--dark-mid);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ── SKILLS ── */
.skills-section { background: #131312; }

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

.skill-group {
  background: #0e0e0d;
  padding: 48px 44px;
  transition: background 0.25s ease;
}

.skill-group:hover { background: #1a1a18; }

.skill-group-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
}

.skill-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.2;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  padding: 6px 14px;
  border-radius: 2px;
}

/* ── CONTACT ── */
.contact {
  background: #080807;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 60px 56px;
}

.contact .section-label { color: rgba(255,255,255,0.2); }
.contact .section-label::after { background: rgba(255,255,255,0.06); }

.contact-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 400;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: 12px;
  margin-bottom: 72px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 80px;
}

.contact-cell {
  background: #111110;
  padding: 40px 36px;
  transition: background 0.25s ease;
}

.contact-cell:hover { background: #161614; }

.contact-cell-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 12px;
}

.contact-cell a,
.contact-cell span {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  word-break: break-word;
}

.contact-cell a:hover { color: var(--accent); }

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
  gap: 20px;
}

.contact-sig {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.02em;
}

.contact-copy {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 24px 28px; }
  nav.scrolled { padding: 16px 28px; }
  .nav-links { gap: 24px; }

  section { padding: 80px 28px; }
  .hero { padding: 0 28px 60px; }
  .showreel, .portfolio { padding: 80px 28px; }
  .contact { padding: 80px 28px 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .exp-item { grid-template-columns: 1fr; gap: 16px; }
  .skills-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
  .contact-h2 { font-size: clamp(36px, 10vw, 60px); }
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
