:root {
  --bg: #090909;
  --bg-raise: #121212;
  --ink: #f3efe6;
  --muted: #a39b90;
  --line: rgba(243, 239, 230, 0.16);
  --accent: #c84b3a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.6rem;
  background: rgba(9, 9, 9, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links, .langs {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.nav-links a, .langs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a[aria-current="page"], .langs a[aria-current="true"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 4.2rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3.2rem 3.4rem;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 8vw, 7.4rem);
  line-height: 0.86;
}

.lede {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  gap: 1.4rem;
  margin-top: 2rem;
}

.actions a {
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.2rem;
}

.hero-actions {
  margin-top: 2.8rem;
}

.actions .showreel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.25rem 0.95rem;
  border: 1px solid var(--accent);
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  letter-spacing: 0.1em;
  transition: background-color 180ms ease, color 180ms ease;
}

.actions .showreel-cta::after {
  content: "↗";
  font-size: 1.2em;
}

.actions .showreel-cta:hover,
.actions .showreel-cta:focus-visible {
  background: var(--accent);
  color: var(--ink);
}

.hero-still {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.75) contrast(1.05);
}

.hero-still::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090909 0%, rgba(9, 9, 9, 0.15) 28%, transparent 55%);
  pointer-events: none;
}

.page {
  width: min(920px, calc(100% - 3.2rem));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.page h1 {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  margin-bottom: 1.4rem;
}

.prose p, .roles, .collab {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.section-label {
  margin: 2.6rem 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.work {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.work li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.work h2 {
  margin: 0;
  font-size: 2rem;
}

.project-videos {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.15rem 0 1rem;
}

.video-frame {
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame-short {
  aspect-ratio: 9 / 16;
  max-width: none;
}

.role {
  margin: 0.25rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }

.links a {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frame {
  margin-top: 2.4rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}

.frame iframe { width: 100%; height: 100%; border: 0; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.contact-list li { margin: 0.8rem 0; font-size: 1.25rem; }

.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem 1.4rem 2.4rem; order: 2; }
  .hero-still { min-height: 62vh; order: 1; }
  .hero-still::after {
    background: linear-gradient(180deg, transparent 55%, #090909 100%);
  }
  h1 { font-size: 3.6rem; }
  .page { width: min(920px, calc(100% - 2.4rem)); }
  .project-videos { grid-template-columns: 1fr; }
  .video-frame-short { max-width: min(100%, 18rem); }
  .actions .showreel-cta { font-size: 0.9rem; }
}


/* Back-to-top control on the Projects pages */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--bg, #111);
  color: var(--fg, #fff);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--fg, #fff);
  color: var(--bg, #111);
}
.back-to-top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
