/* ==========================================================
   Tokens: red, white, black
   ========================================================== */
:root {
  --black: #0A0A0A;
  --black-2: #161616;
  --white: #FFFFFF;
  --red: #E01B24;
  --red-dark: #B5121A;
  --mute: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(10, 10, 10, 0.16);

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gray: #ECEDEE;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-h: 4.5rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 0; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1, h2 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ==========================================================
   Loader
   ========================================================== */
.loader { position: fixed; inset: 0; z-index: 200; color: var(--white); }
.loader-half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--red); }
.loader-top { top: 0; }
.loader-bottom { bottom: 0; }
.loader-center {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.loader-dial { position: relative; margin-bottom: 1rem; max-width: 70vw; height: auto; }
.loader-cross { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.loader-track { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; }
.loader-ring { fill: none; stroke: var(--white); stroke-width: 3; stroke-dasharray: 565.49; stroke-dashoffset: 565.49; }
.loader-hand { stroke: var(--black); stroke-width: 2; }
.loader-count {
  position: absolute; top: calc(50% - 4.2rem); margin: 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1;
}
.loader-name { margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--black); }
.loader-role { margin: .3rem 0 0; font-size: .95rem; color: rgba(10, 10, 10, 0.8); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 600; text-decoration: none; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--mute); transition: color .2s; }
.site-nav a:hover { color: var(--white); }
.site-nav .nav-cta { background: var(--red); color: var(--white); padding: .55rem 1.3rem; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--red-dark); }
.nav-toggle {
  display: none; background: none; color: var(--white); border: 1px solid var(--line);
  font: inherit; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: .95rem 1.9rem;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: transparent; color: var(--white); border-color: var(--line); }
.btn-line:hover { border-color: var(--white); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--white); color: var(--black); }
.btn-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-white:hover { background: var(--white); color: var(--red); }

/* ==========================================================
   1. Hero (a camera that rises from the bottom, with a 3D feel)
   ========================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #0F0F0F; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 58% at 50% 46%, #4B4B4B 0%, #262626 46%, #0F0F0F 100%); }
.hero-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0)); }

.hero-title {
  position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--header-h) + 4vh); margin: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: clamp(2.8rem, 8vw, 8.5rem); font-weight: 600; letter-spacing: 0.16em; line-height: 1; text-transform: uppercase;
}
.hero-word {
  display: block; padding-left: 0.16em;
  background: linear-gradient(180deg, #FFFFFF 0%, #D8D8D8 42%, #8A8A8A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* The camera: width follows the screen height so its stand always reaches the bottom edge */
.hero-cam {
  --cam-w: min(calc(64svh * 0.796), 92vw);
  position: absolute; z-index: 2; left: 50%; top: 36%; width: var(--cam-w); margin-left: calc(var(--cam-w) / -2);
  perspective: 1200px;
}
.cam-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.cam-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.55)); }
.cam-sheen { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .4s; mix-blend-mode: soft-light; }
.cam-sheen.is-on { opacity: 1; }
/* Continues the tripod column below the photo */
.cam-stem {
  position: absolute; top: calc(100% - 2px); left: 39.5%; width: 16.9%; height: 70vh;
  background: linear-gradient(90deg, #08090A 0%, #17181C 14%, #202123 28%, #222328 40%, #1F1E26 52%, #101115 64%, #1A1B20 78%, #14141E 90%, #0C0C16 100%);
}

.hero-bar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  padding: 0 var(--gutter) clamp(1.5rem, 4vh, 2.75rem);
}
.hero-bar-left { max-width: 27rem; }
.hero-role { margin: 0 0 .6rem; padding-left: .9rem; border-left: 2px solid var(--red); font-weight: 600; }
.hero-text { margin: 0 0 1.4rem; color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-bar-right { text-align: right; }
.hero-bar-right p { margin: 0; }
.hero-release-label { font-size: .85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: .2rem !important; }
.hero-release { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.hero-release-meta { font-size: .92rem; color: rgba(255, 255, 255, 0.7); margin-top: .2rem !important; }

/* Images that fall back to an online placeholder look muted so they read as stand-ins */
img.is-placeholder { filter: grayscale(0.85) contrast(1.05) brightness(0.72); }
img.is-missing { visibility: hidden; }

/* ==========================================================
   2. Our works (film strip)
   ========================================================== */
.works {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 0 3rem; background: var(--black); border-top: 1px solid var(--line);
  overflow: hidden;
}
.works-head { padding-inline: var(--gutter); margin-bottom: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.works-head p { margin: 0; color: var(--mute); max-width: 36ch; }

.strip-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 2rem; scrollbar-width: none; }
.strip-viewport::-webkit-scrollbar { display: none; }
.strip-viewport.is-pinned { overflow: hidden; scroll-snap-type: none; }

.strip {
  position: relative; display: flex; align-items: center; gap: 2.5rem; width: max-content;
  padding: 3.2rem 8vw; background: var(--black-2);
  will-change: transform;
}
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Crect x='10' y='5' width='16' height='12' rx='3' fill='%230A0A0A'/%3E%3C/svg%3E") repeat-x;
}
.strip::before { top: .6rem; }
.strip::after { bottom: .6rem; }

.frame { flex: none; scroll-snap-align: center; will-change: transform; }
.frame-inner {
  position: relative; width: clamp(290px, 36vw, 540px); aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--black); border: 1px solid var(--line);
}
.frame-no { position: absolute; top: .8rem; right: 1rem; z-index: 2; font-family: var(--font-display); font-size: .8rem; color: rgba(255, 255, 255, 0.85); }

.frame-film { display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem; padding: 1.6rem; background: var(--red); border-color: var(--red); }
.frame-film h3 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); }
.frame-film p { margin: 0; max-width: 32ch; color: rgba(255, 255, 255, 0.92); font-size: .98rem; line-height: 1.5; }
.frame-film-dark { background: var(--black); border-color: var(--red); }
.frame-film-dark p { color: var(--mute); }
.tag { align-self: flex-start; margin-top: .4rem; padding: .35rem .95rem; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; font-size: .85rem; text-decoration: none; }
a.tag:hover { background: var(--white); color: var(--black); }

.frame-image img { width: 100%; height: 100%; object-fit: cover; }
.frame-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.4rem 1.1rem; background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent); }
.frame-caption h3 { font-size: 1.05rem; }

.works-progress { margin: 1.5rem var(--gutter) 0; height: 2px; background: var(--line); }
.works-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

[data-tilt] { transition: transform .25s ease-out; will-change: transform; }

/* ==========================================================
   3. About us (end credits and a viewfinder)
   ========================================================== */
.about { background: var(--white); color: var(--black); padding-block: clamp(5rem, 10vw, 9rem); }
.about h2 { margin-bottom: 1.25rem; }
.about-statement {
  max-width: 24em; margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(1.8rem, 3.8vw, 3.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.18;
}
.about-statement .w { display: inline-block; }

.about-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }

.viewfinder { position: relative; margin: 0; aspect-ratio: 4 / 5; background: #111; color: var(--white); overflow: hidden; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.viewfinder::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55), transparent 22%, transparent 78%, rgba(10, 10, 10, 0.6));
}
.vf-corner { position: absolute; z-index: 2; width: 36px; height: 36px; border: 0 solid var(--white); }
.vf-tl { top: 16px; left: 16px; border-top-width: 3px; border-left-width: 3px; }
.vf-tr { top: 16px; right: 16px; border-top-width: 3px; border-right-width: 3px; }
.vf-bl { bottom: 16px; left: 16px; border-bottom-width: 3px; border-left-width: 3px; }
.vf-br { bottom: 16px; right: 16px; border-bottom-width: 3px; border-right-width: 3px; }
.vf-rec, .vf-time, .vf-name { position: absolute; z-index: 2; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.vf-rec { top: 28px; left: 32px; display: flex; align-items: center; gap: .5rem; }
.vf-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: recBlink 1.2s steps(2, start) infinite; }
.vf-time { top: 28px; right: 32px; font-variant-numeric: tabular-nums; }
.vf-name { bottom: 28px; left: 32px; }
.vf-cross { position: absolute; z-index: 2; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); opacity: .7; }
.vf-cross::before, .vf-cross::after { content: ""; position: absolute; background: var(--white); }
.vf-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vf-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
@keyframes recBlink { to { visibility: hidden; } }

.credits-list { margin: 0 0 2rem; border-top: 2px solid var(--black); }
.credits-list > div { display: flex; align-items: flex-end; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.credits-list dt { flex: 1; display: flex; align-items: flex-end; color: #555; font-size: .98rem; }
.credits-list dt::after { content: ""; flex: 1; margin: 0 0 .4em .9rem; border-bottom: 1px dotted #9A9EA1; }
.credits-list dd { margin: 0; font-weight: 700; text-align: right; font-size: 1.05rem; }

/* ==========================================================
   4. Services (icons on a curve, words change at the centre)
   ========================================================== */
.services {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--gray); color: var(--black);
  padding-block: calc(var(--header-h) + 1rem) 2rem;
}
.services .wrap { width: 100%; }
.services h2 { margin-bottom: clamp(.25rem, 2vh, 1.5rem); }

.svc-arch svg { display: block; width: 100%; height: auto; max-height: 33vh; margin-inline: auto; overflow: visible; }
.svc-guide { fill: none; stroke: #C4C8CB; stroke-width: 2; }
.svc-prog { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.svc { cursor: pointer; outline: none; }
.svc-hit { fill: transparent; }
.svc-pop { transform-box: fill-box; transform-origin: center; transition: transform .35s ease; }
.svc-ring { fill: var(--white); stroke: #C4C8CB; stroke-width: 1.5; transition: fill .35s, stroke .35s; }
.svc-glyph { fill: none; stroke: var(--black); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.svc-name { font-family: var(--font-body); font-size: 18px; font-weight: 500; fill: #5A5F62; text-anchor: middle; transition: fill .3s; }
.svc.is-done .svc-ring { stroke: var(--red); }
.svc.is-done .svc-glyph { stroke: var(--red); }
.svc.is-active .svc-pop { transform: scale(1.15); }
.svc.is-active .svc-ring { fill: var(--red); stroke: var(--red); }
.svc.is-active .svc-glyph { stroke: var(--white); }
.svc.is-active .svc-name { fill: var(--black); font-weight: 700; }
.svc:focus-visible .svc-ring { stroke: var(--black); stroke-width: 3; }

.svc-center { text-align: center; margin-top: clamp(.5rem, 2vh, 1.5rem); }
.svc-words { display: flex; flex-direction: column; align-items: center; line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.svc-prev, .svc-next { min-height: 1.2em; font-size: clamp(1.2rem, 2.4vw, 2rem); color: #B3B8BB; }
.svc-word { margin: .04em 0; font-size: clamp(2.6rem, 7vw, 6rem); color: var(--black); }
.svc-words.is-in .svc-word { animation: svcWord .55s cubic-bezier(.2, .8, .2, 1) both; }
.svc-words.is-in .svc-prev, .svc-words.is-in .svc-next { animation: svcSide .55s ease both; }
.svc-text { margin: .8rem auto 0; max-width: 44ch; font-size: 1.1rem; color: #444; }
@keyframes svcWord { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
@keyframes svcSide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .svc-name { font-size: 27px; }
}

/* ==========================================================
   5. Contact (red, with a clapperboard slate)
   ========================================================== */
.contact { background: var(--red); color: var(--white); padding-block: clamp(5rem, 10vw, 9rem); }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact-title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); margin-bottom: 1.25rem; }
.contact-note { max-width: 42ch; color: rgba(255, 255, 255, 0.92); }
.contact-handle {
  display: inline-block; margin: .5rem 0 1.75rem; font-size: clamp(1.8rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none; border-bottom: 3px solid var(--white); transition: color .25s, border-color .25s;
}
.contact-handle:hover { color: var(--black); border-color: var(--black); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.slate-wrap { display: grid; justify-items: start; gap: 1.5rem; width: 100%; max-width: 480px; justify-self: center; }
.slate { width: 100%; perspective: 900px; }
.slate-arm {
  position: relative; z-index: 2; height: 46px; margin-bottom: -2px; border: 3px solid var(--white);
  background: repeating-linear-gradient(115deg, var(--white) 0 26px, var(--black) 26px 52px);
  transform-origin: 0 100%; transform: rotate(-24deg); transition: transform .14s cubic-bezier(.6, 0, 1, 1);
}
.slate.is-clapped .slate-arm { transform: rotate(0); }
.slate-body { background: var(--black); border: 3px solid var(--white); padding: 1.1rem 1.3rem 1.3rem; }
.slate.is-clapped .slate-body { animation: slateHit .25s ease-out .12s; }
@keyframes slateHit { 0% { transform: translateY(0); } 35% { transform: translateY(5px); } 100% { transform: translateY(0); } }
.slate-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.slate-row span, .slate-cells span { font-size: .8rem; color: rgba(255, 255, 255, 0.65); }
.slate-row strong { font-size: 1.15rem; }
.slate-cells { display: grid; grid-template-columns: repeat(3, 1fr); }
.slate-cells > div { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 0 0; }
.slate-cells > div + div { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.slate-cells strong { font-size: 1.5rem; }
.slate-action { padding-inline: 2.6rem; }

/* ==========================================================
   Footer and dialog
   ========================================================== */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: .92rem; color: var(--mute); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--red); }

dialog { width: min(920px, 92vw); padding: 0; border: 1px solid var(--line); background: var(--black); color: var(--white); overflow: hidden; }
dialog::backdrop { background: rgba(0, 0, 0, 0.88); }
dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.reel-close { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; background: var(--red); color: var(--white); cursor: pointer; font-size: 1rem; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(2.6rem, 15vw, 5.5rem); letter-spacing: 0.1em; top: calc(var(--header-h) + 2vh); }
  .hero-word { padding-left: 0.1em; }
  .hero-bar { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .hero-bar-right { display: none; }
  .hero-text { margin-bottom: 1rem; }
  .hero-cam { --cam-w: min(calc(44svh * 0.796), 78vw); top: 25%; }

  .works { min-height: auto; padding-top: 5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .viewfinder { max-width: 24rem; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { width: auto; margin-top: 1rem; border-bottom: 0; }
}

/* Edit mode (open the page with ?edit) */
.edit-panel { position: fixed; left: 1rem; bottom: 1rem; z-index: 300; max-width: 260px; padding: 1rem; background: var(--black); color: var(--white); border: 1px solid var(--red); font-size: .85rem; line-height: 1.4; }
.edit-panel strong { display: block; margin-bottom: .5rem; }
.edit-panel p { margin: .6rem 0 0; color: var(--mute); }
.edit-panel button { display: block; width: 100%; margin-top: .4rem; padding: .5rem .7rem; font: inherit; text-align: left; color: var(--white); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.edit-panel button:hover { border-color: var(--red); }

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