@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Outfit:wght@200;300;400;500&display=swap');

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

:root {
  --bg: #0a100d;
  --white: #e8e4df;
  --white-dim: rgba(232, 228, 223, 0.5);
  --white-faint: rgba(232, 228, 223, 0.12);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Outfit', 'Helvetica Neue', sans-serif;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3.5rem;
  background: linear-gradient(180deg, rgba(10,16,13,0.95) 0%, rgba(10,16,13,0.6) 60%, transparent 100%);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo span { font-weight: 200; }

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2.5rem;
  list-style: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.4s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

/* ── PAGE LAYOUT ────────────────────── */
.page-content {
  padding: 10rem 3.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 4rem;
}

.body-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  color: var(--white-dim);
  margin-bottom: 1.8rem;
}
.body-text strong {
  color: var(--white);
  font-weight: 400;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--white-faint);
  margin: 3.5rem 0;
}

.label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 1.2rem;
}

/* ── IMAGES ─────────────────────────── */
.inline-image {
  width: 100%;
  margin: 3rem 0;
  overflow: hidden;
}
.inline-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.8);
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0;
}
.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
}

/* ── VIDEO ──────────────────────────── */
.video-section {
  width: 100%;
  margin: 3.5rem 0;
}
.video-section video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--white-faint);
}

/* ── HERO (Home) ────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.45;
  filter: contrast(1.05) brightness(0.95);
  transform: scale(1.05);
  animation: hero-breathe 20s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%, 100% { transform: scale(1.05); }
  50% { transform: scale(1.08); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 25%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 52rem;
  padding: 0 2rem;
}

.hero-main {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(10, 16, 13, 0.8);
  opacity: 0;
  transform: translateY(1.5rem);
  animation: text-arrive 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

.hero-secondary {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--white-dim);
  text-shadow: 0 2px 30px rgba(10, 16, 13, 0.8);
  margin-top: 2.8rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: text-arrive 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3s forwards;
}

@keyframes text-arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-line {
  width: 1px;
  height: 0;
  background: var(--white-faint);
  margin: 2.5rem auto 0;
  animation: line-grow 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 4.5s forwards;
}

@keyframes line-grow {
  to { height: 4.5rem; }
}

/* ── PROJECT HERO (Filthy) ──────────── */
.project-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.7) brightness(0.85);
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 40%),
              linear-gradient(180deg, var(--bg) 0%, transparent 30%);
}
.project-hero-title {
  position: absolute;
  bottom: 3rem;
  left: 3.5rem;
  z-index: 2;
}
.project-hero-title h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--white);
  letter-spacing: 0.02em;
}
.project-hero-title .status-tag {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.8rem;
}

/* ── FRIGID HERO ────────────────────── */
.frigid-hero {
  width: 100%;
  padding: 18vh 3.5rem 8vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50vh;
}
.frigid-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}
.frigid-hero .status-tag {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ── DETAIL ROWS ────────────────────── */
.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: baseline;
}
.detail-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.detail-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--white-dim);
}

/* ── CONTACT ────────────────────────── */
.contact-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.contact-wrapper h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 2.5rem;
}
.contact-types {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 2;
  color: var(--white-dim);
  margin-bottom: 3.5rem;
}
.contact-email {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contact-email a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white-faint);
  padding-bottom: 0.3rem;
  transition: border-color 0.4s ease;
}
.contact-email a:hover {
  border-color: var(--white);
}

/* ── GRAIN OVERLAY ──────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  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-repeat: repeat;
  background-size: 256px 256px;
}

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1.5rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.6rem; }
  .page-content { padding: 8rem 1.5rem 4rem; }
  .hero-content { padding: 0 1.5rem; }
  .hero-main { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-secondary { font-size: clamp(0.9rem, 3.5vw, 1.2rem); margin-top: 2rem; }
  .project-hero { height: 50vh; }
  .project-hero-title { left: 1.5rem; bottom: 2rem; }
  .frigid-hero { padding: 12vh 1.5rem 6vh; }
  .detail-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .image-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  nav { flex-direction: column; gap: 1rem; padding: 1.2rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .page-content { padding: 9rem 1.5rem 3rem; }
}
