/* Nicola Rehbein — site styles. Fonts are self-hosted (see fonts.css, generated at build). */
:root {
  --red: #FD0000;
  --fg: #F2F2F2;
  --muted: #9B9B9B;
  --dim: #C9C9C9;
  --bg: #000;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Header placement from the design Tweaks: 520px top, 170px logo, 40px menu at 1440px wide */
  --head-top: min(calc(28.1vw + 120px), calc(100vh - var(--logo-h) - 48px));
  --logo-h: clamp(96px, 11.8vw, 220px);
  --menu-size: clamp(20px, 2.29vw, 44px);
  --small-logo-h: clamp(72px, 8.8vw, 128px);
  --small-menu-size: clamp(16px, 1.5vw, 22px);
  --gutter: clamp(28px, 3vw, 48px);
  --shadow: drop-shadow(0 2px 3px rgba(0, 0, 0, .38)) drop-shadow(0 0 8px rgba(0, 0, 0, .28));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; min-height: 100vh; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Film grain */
#grain { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .09; }

/* Link effects */
.fx { position: relative; display: inline-block; }
@keyframes flicker { 0% { opacity: 1 } 25% { opacity: .45 } 50% { opacity: 1 } 75% { opacity: .7 } 100% { opacity: 1 } }
.flick:hover, .flick:focus-visible { animation: flicker .18s steps(1, end) 1; }
.dimfx { transition: opacity .15s ease; }
.dimfx:hover, .dimfx:focus-visible { opacity: .6; }

/* Header */
.head-wrap { position: relative; z-index: 3; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: clamp(20px, 2.4vw, 36px) var(--gutter); }
.logo { display: block; line-height: 0; }
.logo img { height: var(--small-logo-h); width: auto; }
.nav { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--display); font-weight: 900; font-size: var(--small-menu-size); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.nav a { padding: 1px 0; color: var(--red); }
.nav a[aria-current="page"] { color: var(--fg); }
/* Home: header floats over the grid */
.home .head-wrap { position: sticky; top: 0; height: 0; pointer-events: none; }
.home .head { padding-top: var(--head-top); pointer-events: none; }
.home .logo, .home .nav { pointer-events: auto; filter: var(--shadow); }
.home .logo img { height: var(--logo-h); }
.home .nav { font-size: var(--menu-size); }

/* Photo page: same big menu as the film page, logo centred */
.photo-pg .head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
/* Menu floats at exactly the same spot as on the film page */
.photo-pg .nav { position: fixed; z-index: 4; top: var(--head-top); right: var(--gutter); }
.photo-pg .logo { grid-column: 2; }
.photo-pg .nav { grid-column: 3; justify-self: end; font-size: var(--menu-size); }
.photo-pg .logo img { height: var(--logo-h); }
.photo-pg .logo, .photo-pg .nav { filter: var(--shadow); }

/* Film grid */
.grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px 6px 0; margin: 0; list-style: none; }
.tile { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #141414; color: inherit; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.tile video.on { opacity: 1; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }
.tile .t { font-weight: 600; font-size: 15px; color: var(--fg); }
.tile .m { font-size: 13px; color: var(--dim); white-space: nowrap; }
.tile:hover .t { color: var(--fg); }

/* Footer */
.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 40px clamp(16px, 2vw, 24px) 16px; font-size: 14px; font-weight: 600; color: var(--red); }
.foot a { color: var(--red); }
.foot span { display: flex; flex-wrap: wrap; gap: 20px; }

/* Overlays (film + photo) */
.ov { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .96); overflow-y: auto; overscroll-behavior: contain; }
.ov[hidden] { display: none; }
.ov-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: clamp(20px, 2.4vw, 36px) var(--gutter); pointer-events: none; }
.ov-head img { height: var(--small-logo-h); width: auto; }
.ov-nav { pointer-events: auto; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--display); font-weight: 900; font-size: var(--small-menu-size); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.ov-nav button, .ov-nav a, .txtbtn { padding: 1px 0; background: none; border: 0; color: var(--red); font: inherit; cursor: pointer; }
.film-body { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px) 64px; display: flex; flex-direction: column; gap: 28px; }
.player { position: relative; aspect-ratio: var(--ar, 1.7778); width: min(100%, calc((100vh - 260px) * var(--ar, 1.7778))); min-width: min(100%, 320px); margin: 0 auto; background: #000; overflow: hidden; }
.player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .pl { position: absolute; inset: 0; }
.player .pl iframe, .player .pl > div { width: 100% !important; height: 100% !important; }
.playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.spots { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-top: -14px; }
.spots[hidden] { display: none; }
.spot-nums { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--display); font-weight: 900; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.1; }
.spot-nums button { padding: 1px 0; background: none; border: 0; color: var(--red); font: inherit; cursor: pointer; }
.spot-nums button[aria-pressed="true"] { color: var(--fg); }
.spot-info { font-size: 13px; color: var(--muted); }
.film-info { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.film-info .l { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.film-info h2 { margin: 0; font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; }
.film-info .meta { font-size: 14px; color: var(--muted); }
.film-info .r { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; }
.film-info .r p { margin: 0; color: #D4D4D4; }
.film-info .credits { font-size: 13px; color: var(--muted); }

/* Photo list */
.plist { position: relative; z-index: 1; min-height: 100vh; padding: clamp(40px, 5vw, 80px) var(--gutter) 96px; }
.plist ul { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plist li a { display: inline-block; font-weight: 900; font-size: clamp(40px, 6.2vw, 96px); line-height: .92; letter-spacing: -.025em; text-transform: uppercase; color: var(--red); transition: color .15s ease; }
.plist.hovering li a { color: #3A0A08; }
.plist.hovering li a.on { color: var(--red); }
.cover { position: absolute; z-index: 0; width: clamp(240px, 24vw, 360px); aspect-ratio: 4 / 5; object-fit: cover; transform: translate(-50%, -50%); pointer-events: none; display: none; }
.plist.hovering .cover { display: block; }
.ph-title { padding: 0 clamp(16px, 3vw, 48px) 40px; margin-top: clamp(-40px, -2vw, -16px); }
.ph-title h2 { display: inline-block; margin: 0; font-weight: 900; font-size: clamp(36px, 5vw, 80px); line-height: .92; letter-spacing: -.025em; text-transform: uppercase; color: var(--red); }
.ph-title div { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ph-wrap { position: relative; max-width: 1500px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px) 72px; container-type: inline-size; }
.scatter { position: relative; }
.ph { position: absolute; margin: 0; }
.ph img { width: 100%; object-fit: cover; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
.ph { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.ph-end { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 72px; font-family: var(--display); font-weight: 900; font-size: clamp(16px, 1.5vw, 22px); text-transform: uppercase; }
.ph-end span { color: #5E5756; }

/* Contact */
.contact { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 24px clamp(16px, 3vw, 48px) 64px; min-height: calc(100vh - 260px); }
#head3d { flex: 1 1 440px; min-width: 0; width: 100%; aspect-ratio: 1 / 1; max-height: 680px; display: block; cursor: grab; touch-action: pan-y; }
.c-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 40px; max-width: 560px; }
.c-text h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 3.8vw, 56px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--red); }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; font-size: 17px; line-height: 1.55; }
.c-grid div { display: flex; flex-direction: column; }
.lbl { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.bio { margin: 0; padding-top: 28px; border-top: 1px solid #222; font-size: 15px; line-height: 1.6; }
.clients { display: flex; flex-direction: column; gap: 4px; }
.clients p { margin: 0; font-size: 17px; line-height: 1.55; }

/* Text pages (imprint, privacy, 404) */
.text { position: relative; z-index: 1; max-width: 760px; padding: 24px var(--gutter) 80px; }
.text h1 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; text-transform: uppercase; color: var(--red); margin: 0 0 32px; }
.text h2 { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--red); margin: 32px 0 8px; }
.text p { color: #D4D4D4; margin: 0 0 12px; }
.text a { text-decoration: underline; }

/* Loader (first visit only) */
#loader { position: fixed; inset: 0; z-index: 100; background: #000; display: none; transition: opacity .45s ease; }
.first #loader { display: block; }
#loader.out { opacity: 0; pointer-events: none; }
#loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#loader .lg { opacity: .09; pointer-events: none; }
#cam3d { cursor: grab; touch-action: none; }
#loader .pct { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; font-weight: 900; font-size: 15px; letter-spacing: .06em; color: var(--red); font-variant-numeric: tabular-nums; }

/* Phones */
@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .home .head-wrap { position: relative; height: auto; }
  .head, .home .head, .ov-head { padding: 18px 16px 14px; align-items: center; }
  .logo img, .home .logo img, .photo-pg .logo img, .ov-head img { height: 64px; }
  .photo-pg .head { display: flex; }
  .photo-pg .nav { position: static; }
  .nav, .home .nav, .photo-pg .nav, .ov-nav { font-size: 16px; }
  .scatter { height: auto !important; }
  .ph { position: relative !important; left: auto !important; top: auto !important; width: var(--mw) !important; margin: var(--mt) 0 0 var(--ml) !important; }
  .ph-title { margin-top: 8px; }
  .plist li a { font-size: clamp(34px, 11vw, 56px); }
  .cover { display: none !important; }
  .plist.hovering li a { color: var(--red); }
}
@media (prefers-reduced-motion: reduce) {
  .flick:hover, .flick:focus-visible { animation: none; opacity: .7; }
  .ph { animation: none; }
}
