/* =============================================
   TIM TYDECKS – PORTFOLIO
   Design Inspiration: auteurstudios.au
   Dark cinematic aesthetic, minimal & elegant
   ============================================= */

/* --- Fonts: all self-hosted (no Google Fonts, GDPR). Three families + one for the statement:
   Tydecks Grotesk (bold, everywhere), Tydecks Grotesk Text (body copy),
   Share Tech Mono (small labels), Archivo Expanded (statement section only) --- */

/* --- Retro label font: Share Tech Mono (Carrois, SIL OFL 1.1, see fonts/ShareTechMono-OFL.txt) --- */
@font-face {
  font-family: 'Share Tech Mono';
  src: url('fonts/ShareTechMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Headline font: "Tydecks Grotesk" – Tim's own font, built from Inter Display Black (SIL OFL 1.1, see fonts/Tydecks-Grotesk-OFL.txt) --- */
@font-face {
  font-family: 'Tydecks Grotesk';
  src: url('fonts/Tydecks-Grotesk-Black.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Body font: "Tydecks Grotesk Text" – built from Inter Regular/Medium (SIL OFL 1.1) --- */
@font-face {
  font-family: 'Tydecks Grotesk Text';
  src: url('fonts/Tydecks-Grotesk-Text-Regular.woff2') format('woff2');
  font-weight: 100 450;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tydecks Grotesk Text';
  src: url('fonts/Tydecks-Grotesk-Text-Medium.woff2') format('woff2');
  font-weight: 451 900;
  font-style: normal;
  font-display: swap;
}

/* --- Statement font: Archivo Expanded Black (SIL OFL 1.1, see fonts/Archivo-OFL.txt) --- */
@font-face {
  font-family: 'Archivo Expanded';
  src: url('fonts/Archivo-Expanded-Black.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 125%;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables / Design Tokens --- */
:root {
  --bg:           #0a0a0a;
  --bg-surface:   #111111;
  --bg-elevated:  #161616;
  --ivory:        #f0ead6;
  --ivory-muted:  #c8c0a8;
  --ivory-dim:    #7a7467;
  --accent:       #d4a574;
  --accent-light: #e8c49a;
  --border:       rgba(240, 234, 214, 0.10);
  --border-hover: rgba(240, 234, 214, 0.22);

  --font-serif:   'Tydecks Grotesk Text', system-ui, sans-serif;
  --font-sans:    'Tydecks Grotesk Text', system-ui, sans-serif;  /* body copy */
  --font-display: 'Tydecks Grotesk', system-ui, sans-serif;  /* fat headline font */
  --radius-lg:    28px;
  --radius-md:    20px;
  --radius-sm:    14px;
  --font-wide:    'Tydecks Grotesk', system-ui, sans-serif;  /* bold UI text: nav, buttons, footer */
  --font-statement: 'Archivo Expanded', 'Tydecks Grotesk', system-ui, sans-serif;  /* statement section only */
  --font-mono:    'Share Tech Mono', ui-monospace, monospace;  /* retro labels above each section */

  --nav-height:   84px;
  --max-width:    1400px;
  --gutter:       clamp(1.5rem, 5vw, 5rem);
  --section-gap:  clamp(5rem, 10vw, 10rem);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --duration-s:   0.3s;
  --duration-m:   0.6s;
  --duration-l:   1.0s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  background-color: transparent;  /* html carries the dark background; lets the grain layer show */
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* the hidden attribute always wins */
[hidden] {
  display: none !important;
}

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

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

/* --- Typography --- */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 8.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ivory);
}

/* Accent words: same bold font, only gold */
.t-display em,
.t-heading em {
  font-style: normal;
  color: var(--accent-light);
}

/* Accent word in the statement: same font as the sentence, only gold */
.statement em {
  font-style: normal;
  color: #d9773a;                      /* vintage orange */
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.t-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.t-subheading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.t-body {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ivory-muted);
}

.t-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
}

/* =============================================
   PORTFOLIO NAV SECTION
   ============================================= */
.portfolio-nav {
  position: relative;
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  background-color: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated grain overlay – SVG turbulence filter */
.portfolio-nav__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
  background-image: url("footage/grain.png");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grain-move 0.5s steps(1) infinite;
}

@keyframes grain-move {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-3%, -4%); }
  20%  { transform: translate(4%,  2%); }
  30%  { transform: translate(-2%,  5%); }
  40%  { transform: translate(3%, -2%); }
  50%  { transform: translate(-4%,  3%); }
  60%  { transform: translate(2%, -5%); }
  70%  { transform: translate(-3%,  2%); }
  80%  { transform: translate(4%, -3%); }
  90%  { transform: translate(-2%,  4%); }
  100% { transform: translate(0, 0); }
}

/* Page-wide film grain – very subtle and BEHIND the content (z-index -1),
   so photos, videos and other solid areas cover it and stay untouched. */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("footage/grain.png");
  background-size: 256px 256px;
  animation: grain-move 0.8s steps(1) infinite;
}

/* Content sits above grain */
.portfolio-nav__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 900px;
}

/* Statement: words light up one by one while scrolling (Sam Kolder style) */
.statement {
  max-width: 22ch;
  margin: clamp(1rem, 4vw, 3rem) 0 clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-statement);
  font-stretch: 125%;
  font-size: clamp(1.5rem, 3.4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ivory);
}

.statement .word {
  display: inline-block;
  opacity: 0.18;
  filter: blur(3px);
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.statement .word.lit {
  opacity: 1;
  filter: blur(0);
}

.portfolio-nav__label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  font-family: var(--font-statement);
  font-stretch: 125%;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
}

/* Two big pill buttons side by side */
.portfolio-nav__buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.portfolio-nav__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
  padding: 0.9rem 0.9rem 0.9rem 2rem;
  border: 2px solid rgba(240, 234, 214, 0.6);
  border-radius: 100px;
  font-family: var(--font-statement);
  font-stretch: 125%;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

/* Ivory fill wipes in from the left on hover */
.portfolio-nav__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--ivory);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}

/* A soft light sweep passes over the buttons every few seconds */
.portfolio-nav__btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(240, 234, 214, 0.14), transparent);
  transform: translateX(-120%);
  animation: btnShine 5s var(--ease-in-out) infinite;
}

#btn-photo::after {
  animation-delay: 0.4s;
}

@keyframes btnShine {
  0%, 60% { transform: translateX(-120%); }
  100%    { transform: translateX(320%); }
}

.portfolio-nav__btn:hover {
  color: var(--bg);
  border-color: var(--ivory);
}

.portfolio-nav__btn:hover::before {
  transform: scaleX(1);
}

.portfolio-nav__btn:hover::after {
  animation-play-state: paused;
  opacity: 0;
}

.portfolio-nav__btn-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--ivory);
  color: var(--bg);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}

.portfolio-nav__btn-icon svg {
  transform: rotate(90deg);
  transition: transform 0.55s var(--ease-out);
}

.portfolio-nav__btn:hover .portfolio-nav__btn-icon {
  background-color: var(--bg);
  color: var(--ivory);
  transform: translateX(4px);
}

.portfolio-nav__btn:hover .portfolio-nav__btn-icon svg {
  transform: rotate(0deg);
}

/* Mobile: stack vertically */
@media (max-width: 540px) {
  .portfolio-nav__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .portfolio-nav__btn {
    max-width: 100%;
  }

  .portfolio-nav__label {
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-nav__btn::after {
    animation: none;
  }
}


/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background-color var(--duration-m) var(--ease-in-out),
              backdrop-filter var(--duration-m) var(--ease-in-out),
              border-color var(--duration-m) var(--ease-in-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav__inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav__inner > .nav__logo {
  margin-right: auto;
}

/* Back-to-top arrow: slides in at the right once you scroll */
.nav__top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 42px;
  margin-left: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  color: #fff;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: width 0.5s var(--ease-out), margin-left 0.5s var(--ease-out), opacity 0.4s var(--ease-out),
              background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.nav.scrolled .nav__top,
.nav--measure .nav__top {
  width: 42px;
  margin-left: clamp(1rem, 1.6vw, 1.75rem);
  opacity: 1;
  pointer-events: auto;
}

.nav--measure .nav__top {
  transition: none;
}

/* While measuring, let overflow run to the right so it can be detected */
.nav--measure .nav__inner {
  justify-content: flex-start;
}

.nav__top:hover {
  background-color: #fff;
  color: var(--bg);
}

.nav__top:hover svg {
  animation: arrowLoop 0.65s var(--ease-out);
}

@keyframes arrowLoop {
  0%   { transform: translateY(0);     opacity: 1; }
  45%  { transform: translateY(-160%); opacity: 0; }
  46%  { transform: translateY(160%);  opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* Logo */
.nav__logo {
  white-space: nowrap;
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ivory);
  transition: opacity var(--duration-s) var(--ease-out);
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__logo span {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

/* Desktop Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.75rem);
}

.nav__link {
  white-space: nowrap;
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-size: clamp(0.95rem, 1.15vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  transition: color var(--duration-s) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width var(--duration-m) var(--ease-out);
}

.nav__link:hover {
  color: #fff;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: #fff;
}

.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  color: var(--ivory);
}

.nav__hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--duration-m) var(--ease-out),
              opacity var(--duration-s) var(--ease-out);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-m) var(--ease-in-out),
              visibility var(--duration-m) var(--ease-in-out);
}

.nav__mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-size: clamp(1.5rem, 7vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ivory);
  letter-spacing: -0.01em;
  transition: color var(--duration-s) var(--ease-out);
}

.nav__mobile-link:hover {
  color: var(--ivory-dim);
}

/* =============================================
   HERO / VIDEO BANNER
   ============================================= */
/* The hero sits in a rounded frame (Auteur Studios style). While scrolling
   away, JS raises --hero-p from 0 to 1 and the frame recedes slightly. */
.hero {
  --hero-p: 0;
  position: relative;
  height: 100svh;
  min-height: 600px;
  padding: calc(0.75rem + var(--hero-p) * 1.75rem);
}

.hero__frame {
  position: relative;
  height: 100%;
  border-radius: calc(1.25rem + var(--hero-p) * 1rem);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(4.5rem, 7vw, 5.5rem);
}

/* Video Background */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap iframe,
.hero__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  object-fit: cover;
  transform: scale(calc(1.06 - var(--hero-p) * 0.06));
}

/* Video Overlay Gradient */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.0) 35%,
    rgba(10,10,10,0.0) 55%,
    rgba(10,10,10,0.75) 85%,
    rgba(10,10,10,1.0) 100%
  );
}

/* Hero Fallback (when no video) */
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #0d0d0d 0%,
    #1a1510 50%,
    #0a0a0a 100%
  );
}

.hero__fallback-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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: 256px 256px;
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: 0;
  /* the big "C" has a little built-in space on its left – shift the line to match it */
  padding-left: calc(clamp(3rem, 7.5vw, 8.5rem) * 0.055);
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ivory);
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  max-width: 42ch;
}

.hero__subtitle br {
  display: none;
}

.hero__cta {
  margin-top: 2rem;
}

/* Small "Scroll down" label, bottom centre */
.hero__scroll-label {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  animation: scrollNudge 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollNudge {
  0%, 100% { transform: translate(-50%, 0);   opacity: 0.6; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* =============================================
   PILL BUTTON (reusable)
   ============================================= */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(240, 234, 214, 0.6);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.35s var(--ease-out),
              color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}

.pill-btn:hover {
  background-color: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
}

.pill-btn svg {
  transition: transform 0.35s var(--ease-out);
}

.pill-btn:hover svg {
  transform: translate(3px, -3px);
}

/* =============================================
   VIDEO MODAL
   ============================================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
  background-color: rgba(10, 10, 10, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-m) var(--ease-in-out),
              visibility var(--duration-m);
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal__player {
  width: 100%;
  max-width: 1600px;
  max-height: 85vh;
  border-radius: 0.75rem;
  background-color: #000;
  transform: scale(0.96);
  transition: transform var(--duration-m) var(--ease-out);
}

.video-modal.open .video-modal__player {
  transform: scale(1);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ivory-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--ivory-dim));
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* =============================================
   SHARED UI – glass, chips, round buttons
   Rounded corners on all media + frosted glass
   ============================================= */
.glass {
  background-color: rgba(18, 18, 18, 0.38);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(240, 234, 214, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background-color: rgba(240, 234, 214, 0.08);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.chip--glass {
  background-color: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ivory);
}

.chip--link {
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.chip--link:hover {
  background-color: var(--ivory);
  color: var(--bg);
}

button.pill-btn {
  font-family: var(--font-sans);
  cursor: pointer;
}

.pill-btn--light {
  background-color: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
}

.pill-btn--light:hover {
  background-color: transparent;
  color: var(--ivory);
}

.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(240, 234, 214, 0.18);
  background-color: rgba(240, 234, 214, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.round-btn:hover {
  background-color: var(--ivory);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Hovering one item softly blurs its neighbours */
.focus-group > .reveal {
  transition: opacity var(--duration-l) var(--ease-out),
              transform var(--duration-l) var(--ease-out),
              filter 0.5s var(--ease-out);
}

@media (hover: hover) {
  .focus-group:has(> :hover) > :not(:hover) {
    filter: blur(3px) brightness(0.6);
  }
}

/* =============================================
   SECTION HEADER
   ============================================= */
.sec-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sec-head__index {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.sec-head__index span {
  color: var(--ivory-dim);
}

.sec-head__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ivory);
}

.sec-head__title em {
  font-style: normal;
  color: var(--accent-light);
}

.sec-head__intro {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--ivory-muted);
}

/* =============================================
   VIDEO PROJECTS
   ============================================= */
.feature {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-surface);
}

.feature__poster,
.feature__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease-out);
}

.feature__preview {
  opacity: 0;
}

.feature.is-previewing .feature__preview {
  opacity: 1;
}

.feature:hover .feature__poster,
.feature:hover .feature__preview {
  transform: scale(1.03);
}

.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(10, 10, 10, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.feature__panel {
  position: absolute;
  left: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 2;
  max-width: 420px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.feature__meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ivory-muted);
}

.feature__panel .pill-btn {
  margin-top: 0.5rem;
}

.film-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.film {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-surface);
}

.film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.film:hover img {
  transform: scale(1.05);
}

.film::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.75) 0%, transparent 50%);
  pointer-events: none;
}

.film__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.film__info {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}

.film__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.film__meta {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--ivory-muted);
}

/* Film cards open a project window */
.film {
  cursor: pointer;
}

.film__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(240, 234, 214, 0.35);
  background-color: rgba(18, 18, 18, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ivory);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.film__play svg {
  margin-left: 3px;
}

.film:hover .film__play,
.film:focus-visible .film__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background-color: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-in-out), visibility 0.5s;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
}

.project-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
  width: min(1240px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  border-radius: var(--radius-lg);
  background-color: rgba(18, 18, 18, 0.6);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.6s var(--ease-out);
}

.project-modal.open .project-modal__panel {
  transform: none;
}

.project-modal__close {
  position: absolute;
  top: clamp(0.75rem, 1.5vw, 1.25rem);
  right: clamp(0.75rem, 1.5vw, 1.25rem);
  z-index: 2;
}

.project-modal__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
}

.project-modal__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem 1rem 0;
}

.project-modal__title {
  padding-right: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.project-modal__desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-muted);
}

.project-modal__facts {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-modal__facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.project-modal__facts dt {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.project-modal__facts dd {
  font-size: 0.85rem;
  text-align: right;
  color: var(--ivory);
}

@media (max-width: 900px) {
  .project-modal__panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-modal__info {
    padding: 0.25rem 0.5rem 0.75rem;
  }

  .project-modal__close {
    top: 1.25rem;
    right: 1.25rem;
  }
}

/* Photo projects: moodboard inside the project window */
.photo-grid--after-feature {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.moodboard {
  grid-column: 1 / -1;
  padding: 0.5rem 0.25rem 0.25rem;
  border-top: 1px solid var(--border);
}

.moodboard__label {
  margin: 1rem 0 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.moodboard__grid {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* JS deals the photos out row by row into these columns */
.moodboard__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.moodboard__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  break-inside: avoid;
  background-color: var(--bg-surface);
  cursor: zoom-in;
}

.moodboard__item img {
  width: 100%;
  transition: transform 1s var(--ease-out), opacity 0.6s var(--ease-out);
}

.moodboard__item:hover img {
  transform: scale(1.04);
}

@media (max-width: 640px) {
  .moodboard__grid,
  .moodboard__col {
    gap: 0.5rem;
  }
}


/* =============================================
   PHOTO PROJECTS
   ============================================= */
.photo-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.photo {
  position: relative;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
}

.photo img {
  width: 100%;
  transition: transform 1.2s var(--ease-out);
}

.photo:hover img {
  transform: scale(1.04);
}

.photo__cap {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.photo__cap span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.photo:hover .photo__cap,
.photo:focus-visible .photo__cap {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox: page blurs behind the image */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;   /* above the project windows */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-m) var(--ease-in-out), visibility var(--duration-m);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(88vw, 1400px);
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__cap {
  font-size: 0.85rem;
  color: var(--ivory-muted);
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

.video-modal {
  background-color: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.video-modal__player {
  border-radius: var(--radius-md);
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  overflow-x: clip;   /* the portrait streaks reach beyond the column */
}

.about__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
}

/* Portrait image is 2.45× as wide as the column: photo on the left,
   motion-blurred streaks running out to the right underneath the text */
.about__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 245%;
  max-width: none;
  height: 100%;
  object-fit: fill;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.about__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 52ch;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  border-top: 1px solid var(--border);
}

.services li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ivory);
}

.services span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* All tiles: label sits at the bottom so tiles of different heights line up */
.stat {
  display: flex;
  flex-direction: column;
}

.stat .stat__label {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Base tile: pin + coordinates */
.stat--base {
  position: relative;
}

.stat__pin {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  color: var(--accent);
}

.stat__pin::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 14px;
  height: 5px;
  margin-left: -7px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0;
}

.stats.in-view .stat__pin svg {
  animation: pinDrop 0.9s var(--ease-out) 0.2s both;
}

.stats.in-view .stat__pin::after {
  animation: pinPulse 2.4s ease-out 1.1s infinite;
}

@keyframes pinDrop {
  0%   { transform: translateY(-14px); opacity: 0; }
  60%  { transform: translateY(2px);   opacity: 1; }
  100% { transform: translateY(0);     opacity: 1; }
}

@keyframes pinPulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

.stat__coords {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-light);
}

/* Map tile: dotted world, Germany glows, flight paths draw out */
.stat--map {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.world-map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-land circle {
  fill: rgba(240, 234, 214, 0.28);
}

.map-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.9;
}

.map-dest {
  fill: var(--accent-light);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.map-home {
  fill: var(--accent);
}

.map-home-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: homeRing 2.4s ease-out infinite;
}

.stats.in-view .map-arc {
  animation: arcDraw 7s var(--ease-in-out) var(--d) infinite;
}

.stats.in-view .map-dest {
  animation: destPop 7s var(--ease-out) var(--d) infinite;
}

@keyframes arcDraw {
  0%   { stroke-dashoffset: 1; opacity: 0.9; }
  22%  { stroke-dashoffset: 0; opacity: 0.9; }
  75%  { stroke-dashoffset: 0; opacity: 0.9; }
  90%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes destPop {
  0%, 18% { opacity: 0; transform: scale(0); }
  24%     { opacity: 1; transform: scale(1.6); }
  30%     { transform: scale(1); }
  75%     { opacity: 1; }
  90%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes homeRing {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .map-arc { stroke-dashoffset: 0; animation: none !important; }
  .map-dest { opacity: 1; animation: none !important; }
  .map-home-ring, .stat__pin svg, .stat__pin::after { animation: none !important; }
}

/* =============================================
   CONTACT – glass form on a blurred photo
   ============================================= */
.contact__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70vh;
  padding: clamp(1.5rem, 5vw, 5rem);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.contact__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.4) 60%, rgba(10, 10, 10, 0.25) 100%);
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact__info .sec-head__index {
  margin-bottom: 0;
}

/* Contact heading: all in the bold headline font, near-black text blended
   into the photo (like "Overlay" in Premiere) so it adapts to the background */
.contact .sec-head__title {
  color: var(--ivory);
}

.contact .sec-head__title em {
  font-family: inherit;
  font-style: normal;
  font-size: 1em;
  text-transform: uppercase;
  color: inherit;
}

.contact__email {
  padding-bottom: 0.2rem;
  border-bottom: 2px solid rgba(240, 234, 214, 0.4);
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--ivory);
  overflow-wrap: anywhere;
  transition: color 0.3s, border-color 0.3s;
}

.contact__email:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 234, 214, 0.16);
  background-color: rgba(10, 10, 10, 0.35);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ivory);
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;
}

.form-input::placeholder {
  color: var(--ivory-dim);
}

.form-input:focus {
  border-color: var(--ivory-muted);
  background-color: rgba(10, 10, 10, 0.5);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.contact__form .pill-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* =============================================
   SITE FOOTER – Black with warm white text
   ============================================= */

/* Footer colour tokens (dark theme) */
:root {
  --footer-bg:      #000000;   /* black */
  --footer-text:    #f2ede3;   /* warm white */
  --footer-muted:   #c8c0a8;   /* mid-tone   */
  --footer-dim:     #8a8477;   /* subdued    */
  --footer-border:  rgba(242, 237, 227, 0.14);
}

.site-footer {
  background-color: var(--footer-bg);
}

/* Main body */
.site-footer__main {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 3rem;
}

/* Left column */
.site-footer__col--left {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--footer-text);
  line-height: 1;
  text-decoration: none;
  align-self: flex-start;
}

.site-footer__email {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 400;
  color: var(--footer-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-s);
}

.site-footer__email:hover {
  color: var(--footer-text);
}

/* Name, email and legal links lift slightly on hover (like the icons) */
.site-footer__name,
.site-footer__email,
.site-footer__imprint {
  display: inline-block;
}

.site-footer__name:hover,
.site-footer__email:hover,
.site-footer__imprint:hover {
  translate: 0 -2px;
}

/* Right column */
.site-footer__col--right {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.site-footer__socials-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--footer-dim);
}

.site-footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Social icons: larger, filled-black circles like the reference */
.site-footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--footer-text);
  border-radius: 50%;
  color: var(--footer-bg);
  transition: background-color var(--duration-s), transform var(--duration-s);
}

.site-footer__social-icon:hover {
  background-color: var(--footer-muted);
  transform: translateY(-2px);
}

.site-footer__social-icon svg {
  width: 21px;
  height: 21px;
}

/* Bottom bar */
.site-footer__bar {
  position: relative;
  padding: 1.2rem 0;
}

/* Divider line draws in from the left */
.site-footer__bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--footer-border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.35s;
}

.site-footer.in-view .site-footer__bar::before { transform: scaleX(1); }

.site-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--footer-dim);
}

/* Imprint: plain text link, no border */
.site-footer__imprint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-dim);
  text-decoration: none;
  transition: color var(--duration-s);
}

.site-footer__imprint:hover {
  color: var(--footer-text);
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
}

/* Footer reveal: staggered via --d, blur reacts without delay */
.footer-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-l) var(--ease-out) var(--d, 0s),
              transform var(--duration-l) var(--ease-out) var(--d, 0s),
              filter 0.5s var(--ease-out),
              color var(--duration-s),
              translate var(--duration-s);
}

.site-footer.in-view .footer-anim {
  opacity: 1;
  transform: none;
}

.site-footer__social-icon,
.site-footer__imprint {
  transition: background-color var(--duration-s), color var(--duration-s),
              transform var(--duration-s), filter 0.5s var(--ease-out),
              opacity 0.5s var(--ease-out), translate var(--duration-s);
}

/* Hovering a link softly blurs everything else in the footer */
@media (hover: hover) {
  .site-footer:has(a:hover) :is(.site-footer__name, .site-footer__email,
    .site-footer__socials-label, .site-footer__social-icon,
    .site-footer__copy, .site-footer__imprint):not(:hover) {
    filter: blur(2px);
    opacity: 0.55;
  }
}

/* Mobile: stack */
@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* =============================================
   PAGE SECTIONS (Single Page Navigation)
   ============================================= */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-l) var(--ease-out),
              transform var(--duration-l) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* =============================================
   PAGE LOADER
   ============================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-l) var(--ease-in-out),
              visibility var(--duration-l);
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__text {
  font-family: var(--font-wide);
  font-stretch: 125%;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ivory);
  letter-spacing: 0;
  overflow: hidden;
}

.loader__text span {
  display: inline-block;
  animation: loaderReveal 1.2s var(--ease-out) forwards;
  animation-delay: 0.2s;
  transform: translateY(110%);
}

@keyframes loaderReveal {
  to { transform: translateY(0); }
}

/* =============================================
   CURSOR (Optional custom cursor)
   ============================================= */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ivory);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ivory-dim);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out),
              height 0.4s var(--ease-out),
              border-color 0.3s;
}

body:has(a:hover, button:hover, .feature:hover, .film:hover, .photo:hover) .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--ivory-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .film-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    columns: 2;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__portrait {
    max-width: 420px;
  }

  .contact__panel {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --gutter: 1.25rem;
    --section-gap: 4rem;
    --nav-height: 76px;
  }

  .nav__menu {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .feature {
    aspect-ratio: 4 / 5;
  }

  .feature__panel {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  /* Films become a swipeable row */
  .film-row {
    display: flex;
    gap: 0.9rem;
    margin: 1rem calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .film-row::-webkit-scrollbar {
    display: none;
  }

  .film {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .photo-grid {
    column-gap: 0.6rem;
  }

  .photo {
    margin-bottom: 0.6rem;
    border-radius: var(--radius-sm);
  }

  .services {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 0.5rem;
  }

  .stat {
    padding: 0.9rem;
  }

  .stat__label {
    font-size: 0.58rem;
  }

  .contact__panel {
    padding: 2.5rem 1.25rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1.5rem;
    transform: none;
  }

  .lightbox__nav:hover {
    transform: none;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }
}

/* =============================================
   NEW ELEMENTS – MOBILE & REDUCED MOTION
   ============================================= */
@media (max-width: 640px) {
  .hero {
    padding: calc(0.5rem + var(--hero-p) * 0.75rem);
  }

  .hero__frame {
    border-radius: 1rem;
    padding-bottom: 4.5rem;
  }

  .statement {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain-overlay,
  .portfolio-nav__grain,
  .hero__scroll-label {
    animation: none;
  }

  .statement .word {
    opacity: 1;
    filter: none;
  }
}

/* Set by JS whenever the large menu no longer fits in one line */
.nav--compact .nav__menu {
  display: none;
}

.nav--compact .nav__hamburger {
  display: flex;
}

/* =============================================
   CLIENT WORK UPDATE – 5 film cards, vertical videos,
   about images, full-width contact
   ============================================= */
@media (min-width: 1025px) {
  .film-row--5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .film-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-modal__media video,
.project-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 9:16 social ads get a tall player */
.project-modal--vertical .project-modal__panel {
  grid-template-columns: auto minmax(0, 1fr);
  width: min(1000px, 100%);
}

.project-modal--vertical .project-modal__media {
  aspect-ratio: 9 / 16;
  height: min(80vh, 860px);
}

@media (max-width: 900px) {
  .project-modal--vertical .project-modal__panel {
    grid-template-columns: 1fr;
  }

  .project-modal--vertical .project-modal__media {
    height: 70vh;
    justify-self: center;
  }
}

/* About: numbers + world map in frosted glass tiles below the bio */
.about__band {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.about__band .stats {
  grid-template-columns: 1fr 1fr 2fr;
  align-items: stretch;
}

.about__band .stat {
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.about__band .stat__num {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.about__band .world-map {
  max-height: 150px;
}

.stat__labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.stat .stat__labels .stat__label {
  margin-top: 0;
}

.stat__label--strong {
  color: var(--ivory);
}

@media (max-width: 768px) {
  .about__band .stats {
    grid-template-columns: 1fr 1fr;
  }

  .about__band .stat--map {
    grid-column: 1 / -1;
  }
}

/* Contact: full-width photo panel (same inset as the hero frame) */
.contact {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.contact__panel {
  display: flex;
  align-items: center;
  min-height: 92vh;
  margin: 0 0.75rem;
  padding: clamp(3rem, 8vw, 7rem) 0;
  border-radius: 1.25rem;
}

.contact__panel::before {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.45) 55%, rgba(10, 10, 10, 0.2) 100%);
}

.contact__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

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

@media (max-width: 640px) {
  .contact__panel {
    margin: 0 0.5rem;
    padding: 3rem 0 1.5rem;
    border-radius: 1rem;
  }
}

/* =============================================
   SMALL LABELS – retro mono font everywhere
   ============================================= */
.chip,
.film__meta,
.feature__meta,
.form-label,
.stat__label,
.moodboard__label,
.hero__scroll-label,
.services span,
.pill-btn,
button.pill-btn {
  font-family: var(--font-mono);
  font-weight: 400;
}

/* About text in white */
.about .t-body {
  color: var(--ivory);
}

/* =============================================
   ABOUT – number tiles with small dot graphics
   ============================================= */
.about__band .stat:not(.stat--map) {
  justify-content: space-between;
  gap: 1rem;
}

.about__band .stat:not(.stat--map) .stat__label {
  margin-top: 0.35rem;
}

.stat-viz {
  display: block;
  width: 100%;
  height: auto;
}

.stat-viz circle {
  fill: rgba(240, 234, 214, 0.22);
}

.stat-viz--projects circle {
  fill: var(--accent);
}


/* Tile graphics animate in when the tiles scroll into view (.stats.in-view, set in script.js) */
.stat-viz circle {
  transform-box: fill-box;
  transform-origin: center;
}

/* Projects: the 250 dots fill in one after another */
.stat-viz--projects circle {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
  transition-delay: calc(var(--i) * 0.0055s);
}

.stats.in-view .stat-viz circle {
  opacity: 1;
  transform: scale(1);
}

/* Years tile: label on top, 9+ sits inside a ring of nine glowing year dots */
.about__band .stat--years {
  justify-content: flex-start;
  align-items: center;
}

.about__band .stat.stat--years .stat__label {
  align-self: center;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.years-ring {
  position: relative;
  width: min(100%, 190px);
  margin: auto;
}

.years-ring .stat__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.stat-viz .ring-track {
  fill: none;
  stroke: rgba(240, 234, 214, 0.12);
  stroke-width: 1;
}

.stat-viz--ring .ring-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);           /* start at 12 o'clock */
  transform-box: view-box;
  transform-origin: 60px 60px;
}

/* the line draws a full circle once, then breathes like the project dots */
.stats.in-view .stat-viz--ring .ring-arc {
  animation:
    ringDraw 2.2s cubic-bezier(0.45, 0, 0.2, 1) forwards,
    dotBreathe 3.2s ease-in-out 2.2s infinite;
}

@keyframes ringDraw {
  to { stroke-dashoffset: 0; }
}

/* Projects: after filling in, the dots breathe softly in a wave from left to right */
.stats.in-view .stat-viz--projects circle {
  animation: dotBreathe 3.2s ease-in-out 2.2s infinite;   /* in sync with the 9+ ring */
}

.stat-viz--projects {
  filter: drop-shadow(0 0 2px rgba(212, 165, 116, 0.55));
}

@keyframes dotBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-viz circle {
    transition: none;
  }

  .stats.in-view .stat-viz circle {
    animation: none;
  }

  .stat-viz--ring .ring-arc {
    stroke-dashoffset: 0;
  }
}

/* About tiles: larger, readable labels + less space down to the contact card */
.about__band .stat__label,
.about__band .stat .stat__labels .stat__label {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  letter-spacing: 0.08em;
  color: var(--ivory-muted);
}

.about.section {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.contact.section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 640px) {
  .about__band .stat__label,
  .about__band .stat .stat__labels .stat__label {
    font-size: 0.8rem;
  }
}

/* Footer: larger invisible hover area around icons and legal links, so moving
   from one to the next never passes through a gap (no short "everything sharp") */
.site-footer__social-icon,
.site-footer__imprint {
  position: relative;
}

.site-footer__social-icon::after {
  content: '';
  position: absolute;
  inset: -0.5rem;            /* half of the 1rem gap on each side */
}

.site-footer__imprint::after {
  content: '';
  position: absolute;
  inset: -0.6rem -0.75rem;   /* half of the 1.5rem gap */
}

/* Travel frames below the projects: a tighter 4-column photo wall, so it reads
   differently from the clickable project cards above */
.photo-grid__label {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.photo-grid--wall.photo-grid--after-feature {
  margin-top: 1rem;
}

.photo-grid--wall {
  columns: 4;
  column-gap: 0.5rem;
}

.photo-grid--wall .photo {
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .photo-grid--wall { columns: 3; }
}

@media (max-width: 640px) {
  .photo-grid--wall { columns: 2; }
}

/* the statement splits words into inline-blocks, so the underline goes on the word itself */
.statement em .word {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

/* "View my portfolio": big, exactly as wide as the two buttons below,
   with a soft warm glow that breathes like the 9+ ring */
.portfolio-nav__content {
  container-type: inline-size;
}

.portfolio-nav__label,
.portfolio-nav .portfolio-nav__label {
  justify-content: center;
  white-space: nowrap;
  font-size: 7.35cqi;               /* scales with the button row width */
  letter-spacing: -0.01em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(212, 165, 116, 0.35), 0 0 32px rgba(212, 165, 116, 0.18);
  animation: labelGlow 3.2s ease-in-out infinite;
}

@keyframes labelGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(212, 165, 116, 0.38), 0 0 32px rgba(212, 165, 116, 0.2); }
  50%      { text-shadow: 0 0 6px rgba(212, 165, 116, 0.12), 0 0 16px rgba(212, 165, 116, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-nav__label { animation: none; }
}

/* project window: hide the description line when a project has none */
.project-modal__desc:empty {
  display: none;
}

/* contact form spam trap: off-screen, never visible */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
