/* ==========================================================================
   Root variables — palette pulled from the neon skull logo
   ========================================================================== */
:root {
  --bg: #050507;
  --bg-alt: #0c0c12;
  --bg-panel: #101018;
  --white: #f4f4f8;
  --grey: #9a9aa8;
  --cyan: #4de8ff;
  --blue: #3d7bff;
  --purple: #a26bff;
  --pink: #ff4ecb;
  --orange: #ffb454;
  --gold: #ffd77a;

  --grad-hero: linear-gradient(120deg, #0a1a2a 0%, #120a24 45%, #24081c 100%);
  --grad-line: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--orange));

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.gradient-rule {
  height: 3px;
  width: 72px;
  background: var(--grad-line);
  border: none;
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #060608;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(162, 107, 255, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(244, 244, 248, 0.35);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(77, 232, 255, 0.25);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 244, 248, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.9);
  border-bottom-color: rgba(77, 232, 255, 0.2);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(77, 232, 255, 0.35));
}

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

.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--grad-line);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(244, 244, 248, 0.08);
  padding: 40px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  color: var(--grey);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--grey);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.social-links a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Lightbox — enlarged image viewer (On Set photos + work carousels)
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: lightbox-in 0.2s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(77, 232, 255, 0.12);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(244, 244, 248, 0.3);
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.6);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lightbox-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Discrete owner-login link — contact page footer only */
.admin-link {
  opacity: 0.25;
  font-size: 0.7rem;
  margin-left: 10px;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.admin-link:hover {
  opacity: 1;
  color: var(--cyan);
}

/* ==========================================================================
   Responsive nav (mobile)
   ========================================================================== */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(72vw, 320px);
    background: var(--bg-panel);
    border-left: 1px solid rgba(77, 232, 255, 0.15);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Hero (index.html)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(77, 232, 255, 0.18), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255, 78, 203, 0.16), transparent 45%),
    radial-gradient(circle at 60% 20%, rgba(162, 107, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,244,248,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,244,248,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
}

.hero-logo {
  width: clamp(180px, 26vw, 300px);
  margin: 0 auto 12px;
  /* The LargeLogo artwork carries its own neon glow — only a light lift here */
  filter: drop-shadow(0 0 24px rgba(77, 232, 255, 0.25));
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  background: linear-gradient(90deg, var(--white), var(--cyan) 40%, var(--pink) 70%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 64px;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* Teaser strip below the fold on the homepage */
.teaser-strip {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.teaser-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-panel);
  border: 1px solid rgba(244, 244, 248, 0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Right-edge photo strip — set --card-bg: url(...) per card (inline for the
   About card, from the latest work in works-data.js for the other two).
   The image sits against the card's right edge at ~25% of its width and
   fades to 0% opacity toward the left. Shows nothing when unset or on 404. */
.teaser-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 65%);
  mask-image: linear-gradient(to right, transparent 0%, #000 65%);
  opacity: 0.9;
  z-index: 0;
}

.teaser-card > * {
  position: relative;
  z-index: 1;
}

.teaser-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 232, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.teaser-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--white);
}

.teaser-card p {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.teaser-card .teaser-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

/* ==========================================================================
   Page hero (about / portfolio / contact banner)
   ========================================================================== */
.page-banner {
  position: relative;
  padding: calc(var(--nav-height) + 90px) 0 90px;
  background: var(--grad-hero);
  text-align: center;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(77, 232, 255, 0.16), transparent 55%);
  pointer-events: none;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--white);
}

.page-banner p {
  position: relative;
  z-index: 1;
  color: var(--grey);
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 14px;
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-section {
  padding: 100px 0;
}

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

.about-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-panel);
  border: 1px solid rgba(244, 244, 248, 0.1);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(77,232,255,0.35), rgba(255,78,203,0.25)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* headshot.jpg is landscape with the subject right of centre */
  object-position: 55% 30%;
}

.about-bio h2 {
  margin-bottom: 20px;
}

.about-bio p {
  color: var(--grey);
  margin-bottom: 18px;
  max-width: 60ch;
}

.qualifications {
  margin-top: 36px;
}

.qualifications li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--grey);
}

.qualifications li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--grad-line);
  border-radius: 1px;
  transform: rotate(45deg);
}

.qualifications li strong {
  color: var(--white);
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* On Set / behind the scenes photo strip */
.onset-section {
  padding: 0 0 100px;
}

.onset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.onset-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(244, 244, 248, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.onset-grid img:hover {
  transform: scale(1.03);
  border-color: rgba(77, 232, 255, 0.4);
}

.onset-grid img {
  cursor: zoom-in;
}

@media (max-width: 900px) {
  .onset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Skills / tech stack */
.skills-section {
  padding: 0 0 100px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.skill-card {
  padding: 28px 24px;
  background: var(--bg-panel);
  border: 1px solid rgba(244, 244, 248, 0.08);
  border-radius: 4px;
}

.skill-card h4 {
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 16px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  color: var(--white);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(244, 244, 248, 0.1);
}

.skill-list li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Portfolio page — diagonal split selector
   ========================================================================== */
.split-select {
  --split-top: 58%;
  --split-bottom: 42%;
  position: relative;
  height: calc(100vh - var(--nav-height));
  min-height: 520px;
  overflow: hidden;
}

.split-half {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.4s ease;
}

.split-half .split-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.split-half:hover .split-bg {
  transform: scale(1.12);
}

.split-half::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.55);
  z-index: 1;
}

.split-half.film {
  left: 0;
  clip-path: polygon(0 0, var(--split-top) 0, var(--split-bottom) 100%, 0 100%);
}

.split-half.film .split-bg {
  background-color: #071a2b;
  background-image: radial-gradient(circle at 30% 30%, rgba(61,123,255,0.35), transparent 60%), radial-gradient(circle at 70% 80%, rgba(77,232,255,0.25), transparent 55%);
}

.split-half.photography {
  right: 0;
  clip-path: polygon(var(--split-top) 0, 100% 0, 100% 100%, var(--split-bottom) 100%);
}

.split-half.photography .split-bg {
  background-color: #24081c;
  background-image: radial-gradient(circle at 70% 30%, rgba(255,78,203,0.3), transparent 60%), radial-gradient(circle at 30% 80%, rgba(255,180,84,0.28), transparent 55%);
}

/* Drawn with the same --split-top / --split-bottom points as the two halves so it
   stays perfectly aligned at any viewport width — a fixed skewX() degree value can't
   track a percentage-based clip-path diagonal as the width:height ratio changes. */
.split-divider {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--grad-line);
  clip-path: polygon(
    calc(var(--split-top) - 2px) 0,
    calc(var(--split-top) + 2px) 0,
    calc(var(--split-bottom) + 2px) 100%,
    calc(var(--split-bottom) - 2px) 100%
  );
  filter: drop-shadow(0 0 10px rgba(77, 232, 255, 0.55)) drop-shadow(0 0 16px rgba(255, 78, 203, 0.35));
}

.split-label {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 46%;
}

/* Each half spans the full container width (only its clip-path wedge is visible),
   so a plain flex-center puts the label under the divider. The one-sided 50%
   margin shifts the flex-centered label so it centers on its own wedge instead
   (≈25% in from the respective edge). */
.split-half.film .split-label {
  margin-right: 50%;
}

.split-half.photography .split-label {
  margin-left: 50%;
}

.split-label .eyebrow {
  display: block;
}

.split-label h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--white);
  /* Reserve a uniform two-line box and centre the text inside it, so the
     one-line "Photography" heading and the two-line "Virtual Production /
     Film" heading share the same vertical middle across both halves. */
  min-height: 2.3em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-half.film .split-label h2 {
  text-shadow: 0 0 30px rgba(61, 123, 255, 0.6);
}

.split-half.photography .split-label h2 {
  text-shadow: 0 0 30px rgba(255, 78, 203, 0.6);
}

.split-label .split-hint {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Showcase panels (revealed after selecting a side) */
.showcase {
  display: none;
  padding: 90px 0;
}

.showcase.is-active {
  display: block;
  animation: showcase-in 0.5s ease;
}

@keyframes showcase-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.back-to-split {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.back-to-split:hover {
  color: var(--cyan);
}

/* Subcategory filter pills — shared between the portfolio showcase grids and
   the category pills shown on a work's detail page */
.subcat-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 32px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
}

/* Sort selector at the end of the filter row */
.sort-wrap {
  margin-left: auto;
  flex: none;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
}

.sort-select {
  background: var(--bg-panel);
  color: var(--white);
  border: 1px solid rgba(244, 244, 248, 0.2);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 10px;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--cyan);
}

.subcat-btn {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  background: var(--bg-panel);
  border: 1px solid rgba(244, 244, 248, 0.12);
  border-radius: 2px;
  padding: 10px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  /* Same slanted parallelogram cut as the site's .btn buttons (smaller slant
     to suit the pill size) */
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.subcat-btn:hover {
  color: var(--white);
  border-color: rgba(77, 232, 255, 0.4);
}

.subcat-btn.active {
  color: #060608;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-color: transparent;
}

/* Static (non-interactive) pills, e.g. the category labels on a work page */
.subcat-btn.is-static {
  cursor: default;
}

.showcase-empty {
  grid-column: 1 / -1;
  color: var(--grey);
  padding: 40px 0;
  text-align: center;
}

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

.showcase-grid a.showcase-item {
  cursor: pointer;
}

.showcase-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid rgba(244, 244, 248, 0.08);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-item:hover img {
  transform: scale(1.06);
}

.showcase-item .item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(5,5,7,0.9), transparent);
}

.showcase-item .item-caption h4 {
  font-size: 0.95rem;
  color: var(--white);
}

.showcase-item .item-caption span {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 760px) {
  .split-select {
    height: auto;
    min-height: 0;
  }
  .split-half {
    position: relative;
    height: 46vh;
    min-height: 260px;
  }
  .split-half.film {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }
  .split-half.photography {
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }
  .split-divider {
    display: none;
  }
  /* Stacked halves are fully visible — labels re-center on the full width */
  .split-half.film .split-label,
  .split-half.photography .split-label {
    margin-right: 0;
    margin-left: 0;
    max-width: none;
  }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  padding: 40px;
  background: var(--bg-panel);
  border: 1px solid rgba(244, 244, 248, 0.08);
  border-radius: 4px;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--cyan);
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 244, 248, 0.08);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method span.label {
  color: var(--grey);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.contact-method a {
  color: var(--white);
  font-weight: 600;
  transition: color 0.25s ease;
}

.contact-method a:hover {
  color: var(--pink);
}

.cv-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  text-align: left;
  background: linear-gradient(145deg, rgba(77,232,255,0.08), rgba(255,78,203,0.08));
}

.cv-card p {
  color: var(--grey);
}

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

/* ==========================================================================
   Work detail page (work.html)
   ========================================================================== */
.work-section {
  padding: calc(var(--nav-height) + 56px) 0 100px;
}

.work-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Carousel */
.carousel-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid rgba(244, 244, 248, 0.1);
}

.carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.carousel-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.carousel-main iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 244, 248, 0.2);
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.carousel-arrow:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.carousel-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(5, 5, 7, 0.55);
  padding: 4px 12px;
  border-radius: 999px;
}

.carousel-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.carousel-thumb {
  flex: none;
  width: 84px;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumb.active {
  opacity: 1;
  border-color: var(--cyan);
}

/* Video slides get a play-glyph tile instead of an image thumbnail;
   YouTube slides show the real video thumbnail with the glyph on top */
.carousel-thumb.video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(77, 232, 255, 0.15), rgba(162, 107, 255, 0.15));
}

.video-thumb-icon {
  color: var(--white);
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(77, 232, 255, 0.7);
}

.video-thumb-icon.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.3);
}

/* Details panel */
.work-details .eyebrow {
  margin-bottom: 0;
}

.work-subline {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 2px;
}

.work-details h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 8px 0 6px;
}

.work-date {
  color: var(--grey);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.work-details .subcat-filters {
  margin-bottom: 24px;
}

/* Location line under the subcategory pills (photography, hidden when unset) */
.work-location {
  margin: -8px 0 24px;
}

.work-location-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.work-location-link svg {
  flex: none;
  color: var(--cyan);
}

.work-location-link:hover {
  color: var(--cyan);
}

/* Albums/Collections row under the subcategory pills (hidden when empty) */
.work-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -8px 0 24px;
}

.work-groups-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.work-description {
  color: var(--grey);
  margin-bottom: 32px;
  max-width: 60ch;
  /* Keep line breaks / blank lines typed into the admin description box */
  white-space: pre-line;
}

.work-extra h3 {
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 14px;
}

.work-extra-block {
  margin-bottom: 32px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 244, 248, 0.08);
  color: var(--white);
  font-size: 0.95rem;
}

.work-list li span.label {
  color: var(--grey);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Programs/Equipment lists flow into up to two columns when the details
   panel is wide enough for the items (auto-fit collapses back to one
   column on narrow screens or when names need the full width). */
.work-list.simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  column-gap: 28px;
  row-gap: 0;
}

.work-list.simple li {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

/* Monochrome tool/equipment icon to the left of an item name */
.tool-icon {
  flex: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.tool-icon svg {
  width: 100%;
  height: 100%;
}

.work-extra-empty {
  color: var(--grey);
  font-style: italic;
  font-size: 0.9rem;
}

.work-not-found {
  padding: calc(var(--nav-height) + 100px) 0 120px;
  text-align: center;
}

@media (max-width: 900px) {
  .work-layout {
    grid-template-columns: 1fr;
  }
}

