@import url('https://use.typekit.net/pdg2eda.css');

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

:root {
  --bg:       #080c0d;        /* cool near-black, slight teal tint        */
  --bg-alt:   #0d1214;        /* slightly lighter for sections             */
  --fg:       #edf2f2;        /* cool off-white to match                  */
  --muted:    #4a6068;        /* cool grey-teal muted tone                */
  --accent:   #3dbfb8;        /* teal highlight                           */
  --accent-d: #2a9490;        /* darker teal for hover                    */
  --nav-h:    88px;
}

html {
  background: var(--bg);
  /* Prevent iOS overscroll from revealing fixed video underneath */
  overscroll-behavior: none;
}
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "powell", sans-serif;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 1;
  overscroll-behavior: none;
}

/* Extra solid cap at top and bottom so any overscroll shows bg colour, not video */
body::before,
body::after {
  content: '';
  display: block;
  position: fixed;
  left: 0; right: 0;
  height: 120px;
  background: var(--bg);
  z-index: 9;
  pointer-events: none;
}
body::before { top: -120px; }
body::after  { bottom: -120px; }

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: linear-gradient(to bottom, rgba(8,12,13,0.8) 0%, transparent 100%);
}

.nav-name {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 16px rgba(0,0,0,0.7);
}

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

.nav-links a {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237,242,242,0.7);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: #ffffff; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--fg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ── HERO ── */
.hero {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.hero-name {
  position: relative;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.4s forwards;
  white-space: nowrap;
}

.hero-name-text {
  font-family: "forma-djr-deck", sans-serif;
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: #ffffff;
  display: block;
}

/* ── REEL BUTTONS ── left-aligned, stacked, larger ── */
.hero-reels {
  position: absolute;
  bottom: 52px;
  left: 56px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.hero-reel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "forma-djr-deck", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237,242,242,0.45);
  border: none;
  background: none;
  padding: 0 0 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s, border-color 0.35s;
}

.hero-reel-link:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* Tiny play mark — CSS triangle, no emoji risk */
.hero-reel-link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── WORK GRID ── */
.work-grid {
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--bg);
}

.work-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
  display: block;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1) saturate(1);
  transition: filter 0.5s, transform 0.65s;
}
.work-item:hover img {
  filter: brightness(0.5) saturate(0.8);
  transform: scale(1.04);
}

.work-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 22px 18px;
  background: linear-gradient(to top, rgba(8,12,13,0.92) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.35s;
}
.work-item:hover .work-item-info { transform: translateY(0); }

.work-item-title {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.work-item-meta {
  font-family: "powell", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 6px;
}

/* ── PROJECT PAGE ── */
.project-wrap {
  padding-top: var(--nav-h);
}

.project-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.project-video-wrap iframe,
.project-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  padding: 64px 56px 120px;
  max-width: 1280px;
}

.project-title {
  font-family: "forma-djr-deck", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 32px;
  color: var(--fg);
}

.project-description {
  font-family: "powell", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(237,242,242,0.75);
  max-width: 600px;
}

.project-credits { padding-top: 6px; }

.project-credits-heading {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.credit-row {
  border-top: 1px solid rgba(237,242,242,0.07);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.credit-row:last-child { border-bottom: 1px solid rgba(237,242,242,0.07); }

.credit-role {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.credit-name {
  font-family: "powell", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--fg);
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "forma-djr-deck", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  margin: 44px 0 0 56px;
}
.project-back:hover { color: var(--accent); }
.project-back::before { content: '←'; font-size: 1.1rem; }

/* ── ABOUT ── */
.about-wrap {
  padding: calc(var(--nav-h) + 90px) 56px 90px;
  max-width: 900px;
}
.about-name {
  font-family: "forma-djr-deck", sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 52px;
}
.about-body {
  font-family: "powell", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(237,242,242,0.8);
  max-width: 640px;
}
.about-body p + p { margin-top: 1.5em; }

/* ── CONTACT ── */
.contact-wrap {
  padding: calc(var(--nav-h) + 90px) 56px 90px;
  max-width: 640px;
}
.contact-intro {
  font-family: "powell", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(237,242,242,0.7);
  margin-bottom: 52px;
}
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid rgba(237,242,242,0.08);
  padding: 26px 0;
}
.contact-line:last-child { border-bottom: 1px solid rgba(237,242,242,0.08); }
.contact-line-label {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-line-value {
  font-family: "powell", sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--fg);
  transition: color 0.25s;
}
a:hover .contact-line-value { color: var(--accent); }


/* ── NEXT PROJECT ── */
.next-project {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(237,242,242,0.07);
  margin-top: 0;
}

.next-project-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 56px;
  transition: padding 0.4s ease;
}
.next-project:hover .next-project-inner { padding-left: 64px; }

.next-project-label {
  font-family: "forma-djr-deck", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.next-project-title {
  font-family: "forma-djr-deck", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.3s;
}
.next-project:hover .next-project-title { color: var(--accent); }

.next-project-arrow {
  font-size: 2rem;
  color: var(--muted);
  transition: color 0.3s, transform 0.4s;
  flex-shrink: 0;
}
.next-project:hover .next-project-arrow {
  color: var(--accent);
  transform: translateX(8px);
}

/* Film grain on non-hero pages */
.page-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  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)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-reels { left: 24px; bottom: 36px; flex-direction: column; gap: 10px; }
  .hero-name-text { white-space: normal; font-size: clamp(2.8rem, 12vw, 5rem); }
  .work-grid { grid-template-columns: 1fr; }
  .project-body { grid-template-columns: 1fr; gap: 44px; padding: 40px 24px 64px; }
  .project-back { margin-left: 24px; }
  .about-wrap, .contact-wrap { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
