:root {
  --bg: #f3f3f1;
  --ink: #121212;
  --muted: #7a7a7a;
  --line: #d9d9d5;
  --blue: #3b6fe0;
  --navy: #1d2b55;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-block; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 4px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--navy); cursor: pointer; transition: background .25s, color .25s;
}
.pill:hover { background: var(--blue); border-color: var(--blue); }
.pill.outline { background: transparent; color: var(--navy); }
.pill.outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(243,243,241,.9); backdrop-filter: blur(10px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; }
.dot { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8fb0ff, var(--blue) 55%, var(--navy)); }
.brand-text { font-size: .72rem; line-height: 1.35; color: var(--muted); }
.brand-text b { color: var(--ink); font-weight: 500; }
.links { display: flex; align-items: center; gap: 1.8rem; }
.links a:not(.pill) { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; position: relative; }
.links a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: var(--ink); transition: right .3s; }
.links a:not(.pill):hover::after { right: 0; }
.menu-btn { display: none; background: none; border: 0; width: 28px; height: 20px; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 5px; }
.menu-btn span:last-child { top: 13px; }
.menu-btn.open span:first-child { top: 9px; transform: rotate(45deg); }
.menu-btn.open span:last-child { top: 9px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; padding: 6.5rem var(--pad) 0; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(280px, 34vw) 1fr; grid-template-rows: 1fr auto; align-items: center; gap: 2rem;
}
/* Blurred background photos (same slideshow) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover;
  filter: blur(38px) saturate(1.15); opacity: 0; transition: opacity 1.6s ease;
}
.hero-bg img.active { opacity: 1; }
.hero-bg::after { /* soft light wash so the text stays readable */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(243,243,241,.55) 0%, rgba(243,243,241,.35) 55%, rgba(243,243,241,.85) 100%);
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
.meta { display: flex; flex-direction: column; gap: .5rem; color: var(--ink); align-self: center; }
.hero-frame {
  position: relative; aspect-ratio: 4/5; width: 100%; overflow: hidden; background: #ddd;
  box-shadow: 0 30px 80px -30px rgba(29,43,85,.45);
}
.hero-frame img, .hero-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6s ease; }
.hero-frame img.active, .hero-frame video.active { opacity: 1; transform: scale(1); }
.hero-frame figcaption { position: absolute; left: .8rem; bottom: .7rem; color: #fff; z-index: 2; mix-blend-mode: difference; }
.hero-side { max-width: 19rem; justify-self: end; }
.hero-side p { font-size: 1.15rem; line-height: 1.35; margin-bottom: 1.2rem; }
.giant {
  grid-column: 1 / -1; font-weight: 400; color: var(--blue); line-height: .8; letter-spacing: -.05em;
  font-size: clamp(4rem, 17.5vw, 20rem); white-space: nowrap; margin-bottom: -.06em; text-align: center;
}
.giant span { display: inline-block; transform: translateY(100%); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.giant span:last-child { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }

/* ---------- Sections ---------- */
.section { padding: 7rem var(--pad); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: 3rem; align-items: start; }
.section-head .mono { color: var(--muted); padding-top: .6rem; }
.section h2 { font-weight: 400; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.03em; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  background: transparent; border: 1px solid var(--line); color: var(--ink); padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; transition: all .2s;
}
.filters button sup { color: var(--muted); margin-left: .25rem; }
.filters button:hover { border-color: var(--ink); }
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button.active sup { color: #aaa; }

/* ---------- Gallery ---------- */
.gallery { display: flex; flex-direction: column; gap: 4.5rem; }
.photo-group .group-head { display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1.4rem; }
.photo-group .group-head h3 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 400; letter-spacing: -.03em; color: var(--navy); }
.photo-group .group-head .mono:last-child { color: var(--muted); }
.photo-group .grid { columns: 4 240px; column-gap: .8rem; }
.photo-group .item { break-inside: avoid; margin-bottom: .8rem; overflow: hidden; cursor: zoom-in; background: #e2e2de; position: relative; }
.photo-group img { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1); }
.photo-group img.loaded { opacity: 1; }
.photo-group .item:hover img { transform: scale(1.03); }
.more-wrap { text-align: center; margin-top: 2.5rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.statement { grid-column: 2; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.statement b { font-weight: 400; color: var(--blue); }
.about-cols { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.about-cols .label { color: var(--muted); display: block; margin-bottom: .8rem; }
.about-cols ul { list-style: none; }
.about-cols li { padding: .6rem 0; border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact .mono { color: var(--muted); }
.giant-link {
  display: block; color: var(--blue); font-size: clamp(3.5rem, 12vw, 13rem); line-height: .95; letter-spacing: -.05em; margin: 1.5rem 0 2.5rem;
  transition: color .3s;
}
.giant-link:hover { color: var(--navy); }
.contact-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.contact-row a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.contact-row a:hover { border-color: var(--ink); }

.footer { display: flex; justify-content: space-between; padding: 1.5rem var(--pad); border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(243,243,241,.98);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 86vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0,0,0,.4); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ink); cursor: pointer; }
.lb-close { top: 1.3rem; right: var(--pad); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 1rem; }
.lb-prev { left: 1vw; } .lb-next { right: 1vw; }
.lb-count { position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%); color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .links.open { max-height: 320px; }
  .links a { padding: 1rem var(--pad); border-top: 1px solid var(--line); }
  .links .pill { margin: 1rem var(--pad); text-align: center; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 5.5rem; gap: 1.5rem; }
  .meta { flex-direction: row; flex-wrap: wrap; gap: .3rem 1rem; order: 1; }
  .hero-frame { order: 2; aspect-ratio: 4/5; }
  .hero-side { order: 3; justify-self: start; }
  .giant { order: 4; font-size: 22vw; }
  .section { padding: 5rem var(--pad); }
  .section-head, .about-grid { grid-template-columns: 1fr; }
  .statement, .about-cols { grid-column: 1; }
  .about-cols { grid-template-columns: 1fr; }
}

/* ---------- Films ---------- */
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.2rem 1rem; }
.film { cursor: pointer; }
.film-media {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy);
  display: flex; align-items: flex-end; padding: 1rem;
}
.film-media .bg-name {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  color: rgba(255,255,255,.14); font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.04em; line-height: .9; text-transform: uppercase;
}
.film-media img, .film-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.film-media video { opacity: 0; }
.film:hover .film-media video.ready { opacity: 1; }
@media (hover: none) { .film-media video.ready { opacity: 1; } }
.film:hover .film-media img { transform: scale(1.04); }
.play {
  position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy);
  display: grid; place-items: center; font-size: .8rem; padding-left: 3px; transition: transform .3s, background .3s;
}
.film:hover .play { transform: scale(1.12); background: #fff; }
.film-info { display: flex; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.film-info b { font-weight: 500; display: block; }
.film-info span { color: var(--muted); }
.film-info .mono { text-align: right; white-space: nowrap; }

/* ---------- Clients marquee ---------- */
.clients { border-top: 1px solid var(--line); padding: 2.2rem 0; display: flex; align-items: center; gap: 2rem; padding-left: var(--pad); overflow: hidden; }
.clients > .mono { color: var(--muted); white-space: nowrap; }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track { align-items: center; }
.marquee-track > span { display: flex; align-items: center; white-space: nowrap; }
.marquee-track .name { font-size: clamp(1.3rem,2.2vw,1.9rem); letter-spacing: -.03em; color: #8a8a8a; font-weight: 500; }
.marquee-track .logo img { height: clamp(44px, 5vw, 64px); width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.marquee-track .logo img:hover { filter: none; opacity: 1; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Video in lightbox ---------- */
.lb-video { display: none; width: min(90vw, calc(82vh * 16 / 9)); aspect-ratio: 16/9; background: #000; }
.lb-video iframe, .lb-video video { width: 100%; height: 100%; border: 0; display: block; }
.lightbox.is-video img { display: none; }
.lightbox.is-video .lb-video { display: block; }
.lightbox.is-video .lb-prev, .lightbox.is-video .lb-next { display: none; }
.lb-soon { color: #fff; height: 100%; display: grid; place-items: center; text-align: center; padding: 2rem; }

@media (max-width: 860px) {
  .clients { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .marquee { width: 100%; }
}

/* ---------- Reel carousel ---------- */
#films { overflow: hidden; }
.reels { position: relative; }
.reel-stage {
  position: relative; height: clamp(430px, 72vh, 700px); perspective: 1400px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.reel {
  position: absolute; left: 50%; top: 50%; aspect-ratio: 9 / 16; height: 92%;
  border-radius: 14px; overflow: hidden; background: var(--navy); cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s, filter .5s;
  box-shadow: 0 40px 80px -40px rgba(17,24,48,.55);
}
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { opacity: 0; transition: opacity .5s; }
.reel.active video.ready { opacity: 1; }
.reel .bg-name {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  color: rgba(255,255,255,.18); font-size: 2.2rem; letter-spacing: -.04em; line-height: .9; text-transform: uppercase;
}
.reel .reel-tag {
  position: absolute; left: .9rem; bottom: .9rem; color: #fff; z-index: 2;
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px); padding: .3rem .55rem; border-radius: 4px;
}
.reel:not(.active) { filter: saturate(.7) brightness(.85); }
.reel-play {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.reel.active .reel-play { opacity: .95; transform: scale(1); }
.reel.active:hover .reel-play { transform: scale(1.1); }

.reel-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; max-width: 760px; margin: 1.6rem auto 0; }
.reel-caption { text-align: center; min-height: 5.2rem; }
.reel-caption .mono { color: var(--muted); }
.reel-caption h3 { font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; margin: .25rem 0; }
.reel-arrow {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 1.2rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.reel-arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.reel-clients { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.8rem; }
.reel-clients button {
  background: transparent; border: 1px solid var(--line); color: var(--ink); padding: .45rem .85rem; border-radius: 999px; cursor: pointer;
  font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; transition: all .2s;
}
.reel-clients button:hover { border-color: var(--ink); }
.reel-clients button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Vertical player for reels in the lightbox */
.lb-video.vertical { width: auto; height: 86vh; aspect-ratio: 9 / 16; }
@media (max-width: 860px) {
  .reel-stage { height: 68vh; }
  .reel { height: 88%; }
  .reel-play { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
}

/* ---------- Hero: video as a soft, faded background ---------- */
.hero-bg video {
  position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover;
  filter: blur(5px) saturate(1.05); opacity: 0; transition: opacity 1.6s ease;
}
.hero-bg video.active { opacity: .9; }
.hero-bg::after {
  background: linear-gradient(180deg, rgba(243,243,241,.55) 0%, rgba(243,243,241,.35) 45%, rgba(243,243,241,.7) 80%, rgba(243,243,241,.95) 100%);
}
.hero-center { align-self: center; justify-self: center; text-align: center; color: var(--ink); }
.hero-center .mono { display: inline-block; background: rgba(243,243,241,.7); padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); }
.hero-small { margin-top: .9rem; font-size: .95rem; letter-spacing: .02em; }
.hero-side p { text-shadow: 0 1px 12px rgba(243,243,241,.8); }
@media (max-width: 860px) { .hero-center { order: 2; justify-self: start; text-align: left; } }

/* ---------- Hero: gradient blur (sharp in the middle, blurred where the text is) ---------- */
.hero-bg video { filter: none; z-index: 0; }
.hero-bg video.active { opacity: 1; }
.hero-blur {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  /* transparent = sharp, black = blurred */
  -webkit-mask-image: radial-gradient(ellipse 34% 48% at 50% 40%, transparent 0%, transparent 45%, #000 100%);
          mask-image: radial-gradient(ellipse 34% 48% at 50% 40%, transparent 0%, transparent 45%, #000 100%);
}
.hero-bg::after {
  z-index: 2;
  /* light wash only on the edges and bottom, the middle stays clear */
  background:
    radial-gradient(ellipse 40% 55% at 50% 40%, rgba(243,243,241,0) 40%, rgba(243,243,241,.55) 100%),
    linear-gradient(180deg, rgba(243,243,241,0) 55%, rgba(243,243,241,.75) 85%, rgba(243,243,241,.95) 100%);
}
.hero-small { display: inline-block; background: rgba(243,243,241,.7); padding: .3rem .8rem; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-center { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.hero-center .hero-small { margin-top: 0; }
@media (max-width: 860px) { .hero-center { align-items: flex-start; } }

/* ---------- Full portfolio page (work.html) ---------- */
.work-hero { padding: 8.5rem var(--pad) 4rem; display: grid; gap: 1.6rem; }
.work-hero .back { color: var(--muted); }
.work-hero .back:hover { color: var(--ink); }
.work-hero h1 { font-weight: 400; font-size: clamp(3.6rem, 13vw, 12rem); line-height: .86; letter-spacing: -.06em; color: var(--blue); }
.work-stats { display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; color: var(--muted); }
.work-stats b { color: var(--ink); font-weight: 400; font-size: 1.6rem; letter-spacing: -.02em; margin-right: .35rem; font-family: var(--sans); vertical-align: -.15em; }
.work-jump { display: flex; flex-wrap: wrap; gap: .6rem; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2rem 1rem; }
.wcard { cursor: pointer; }
.wcard-media { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--navy); display: flex; align-items: flex-end; padding: .9rem; }
.wcard-media img, .wcard-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.wcard-media video { opacity: 0; }
.wcard-media video.ready { opacity: 1; }
.wcard:hover .wcard-media img { transform: scale(1.04); }
.wcard:hover .play { transform: scale(1.12); background: #fff; }
.wcard .film-info { font-size: .95rem; }
.work-contact { display: grid; gap: 1rem; }
.more-link { text-align: center; margin-top: 2.5rem; }
@media (max-width: 860px) {
  .work-hero { padding-top: 6.5rem; }
  .wgrid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .7rem; }
  .wcard .film-info { flex-direction: column; gap: .2rem; }
  .wcard .film-info .mono { text-align: left; }
}
@media (max-width: 860px) {
  .photo-group .grid { columns: 2; column-gap: .5rem; }
  .photo-group .item { margin-bottom: .5rem; }
}

/* ---------- Hero: cinematic showreel ---------- */
.cine { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #0b0d12; color: #fff; }
.cine-bg { position: absolute; inset: 0; }
.cine-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.cine-bg video.active { opacity: 1; transform: scale(1); }
.cine-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,12,.55) 0%, rgba(5,7,12,0) 22%, rgba(5,7,12,0) 45%, rgba(5,7,12,.82) 100%); }
.cine-content { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(1.6rem, 5vh, 3.2rem); display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.cine-kicker { color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.cine-name { font-weight: 400; font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: .86; letter-spacing: -.06em; overflow: hidden; padding-bottom: .06em; }
.cine-name span { display: inline-block; transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) .2s forwards; }
.cine-name span:last-child { animation-delay: .32s; }
.cine-line { margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 30rem; }
.cine-right { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; min-width: 15rem; }
.cine-now { color: rgba(255,255,255,.8); text-align: right; }
.cine-client { display: block; margin-top: .35rem; color: #fff; }
.cine-play { display: inline-flex; align-items: center; gap: .7rem; background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: .55rem 1.2rem .55rem .55rem; cursor: pointer;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; transition: transform .3s, background .3s; }
.cine-play:hover { transform: scale(1.04); background: #e9eefc; }
.cine-play-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .7rem; padding-left: 2px; }
.cine-progress { width: 100%; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.cine-progress i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); animation: heroprog 6s linear forwards; }
@keyframes heroprog { to { transform: scaleX(1); } }
.cine-scroll { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); color: rgba(255,255,255,.6); }
.cine-scroll:hover { color: #fff; }

/* header on top of the video: white until you scroll */
.home .nav:not(.scrolled) { border-color: transparent; }
.home .nav:not(.scrolled) .brand-text, .home .nav:not(.scrolled) .brand-text b,
.home .nav:not(.scrolled) .links a:not(.pill) { color: #fff; }
.home .nav:not(.scrolled) .links a:not(.pill)::after { background: #fff; }
.home .nav:not(.scrolled) .menu-btn span { background: #fff; }

@media (max-width: 860px) {
  .cine-content { flex-direction: column; align-items: flex-start; gap: 1.4rem; bottom: 3rem; }
  .cine-right { align-items: flex-start; min-width: 0; width: 100%; }
  .cine-now { text-align: left; }
  .cine-name { font-size: 19vw; }
  .cine-scroll { display: none; }
  .home .nav:not(.scrolled) .links.open a:not(.pill) { color: var(--ink); }
  .home .nav:not(.scrolled):has(.links.open) { background: var(--bg); }
  .home .nav:not(.scrolled):has(.links.open) .brand-text, .home .nav:not(.scrolled):has(.links.open) .brand-text b { color: var(--ink); }
  .home .nav:not(.scrolled):has(.links.open) .menu-btn span { background: var(--ink); }
}
@media (max-width: 860px) { .links:not(.open) { border-bottom-color: transparent; } }

/* ================================================================
   DARK MODE — black, blue & red
   Turned on automatically in the evening (see theme.js) or with the ☾ button.
   ================================================================ */
html { transition: background-color .4s; }
body { transition: background-color .4s, color .4s; }
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b0f;
  --ink: #f2f2ef;
  --muted: #8d92a0;
  --line: #262932;
  --blue: #4d7dff;
  --navy: #e63946;   /* in dark mode the second colour is red */
  --red: #e63946;
}
html[data-theme="dark"] .nav.scrolled { background: rgba(10,11,15,.86); }
html[data-theme="dark"] .lightbox { background: rgba(8,9,12,.97); }
html[data-theme="dark"] .photo-group .item { background: #16181e; }
html[data-theme="dark"] .filters button.active sup { color: #666; }
html[data-theme="dark"] .reel, html[data-theme="dark"] .wcard-media, html[data-theme="dark"] .film-media { background: #15171d; }
html[data-theme="dark"] .play { color: var(--red); }
html[data-theme="dark"] .pill:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
html[data-theme="dark"] .cine-play-icon { background: var(--red); }
html[data-theme="dark"] .cine-progress i { background: var(--red); }
html[data-theme="dark"] .work-hero h1 { color: var(--blue); }
html[data-theme="dark"] .work-stats b { color: var(--red); }
html[data-theme="dark"] .statement b, html[data-theme="dark"] .giant-link { color: var(--blue); }
html[data-theme="dark"] .giant-link:hover { color: var(--red); }
/* logos: turned light so dark logos show on black */
html[data-theme="dark"] .marquee-track .logo img { filter: grayscale(1) invert(1) brightness(1.15); opacity: .7; }
html[data-theme="dark"] .marquee-track .logo img:hover { filter: grayscale(1) invert(1) brightness(1.3); opacity: 1; }
html[data-theme="dark"] .lightbox img { box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }

/* ---------- Light / dark button ---------- */
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: border-color .25s, color .25s, transform .4s;
}
.theme-btn:hover { border-color: var(--ink); transform: rotate(20deg); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: block; } .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; color: #ffcf5a; }
.home .nav:not(.scrolled) .theme-btn { color: #fff; border-color: rgba(255,255,255,.45); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 860px) {
  .home .nav:not(.scrolled):has(.links.open) .theme-btn { color: var(--ink); border-color: var(--line); }
}
@media (min-width: 861px) { .nav .links { margin-left: auto; margin-right: 1.2rem; } }
/* logos that have their own filled background: don't invert them in dark mode */
html[data-theme="dark"] .marquee-track .logo img[alt="BT Bank"],
html[data-theme="dark"] .marquee-track .logo img[alt="Amore Pizza"] { filter: grayscale(1); opacity: .8; }
html[data-theme="dark"] .marquee-track .logo img[alt="BT Bank"]:hover,
html[data-theme="dark"] .marquee-track .logo img[alt="Amore Pizza"]:hover { filter: none; opacity: 1; }

/* ---------- Spinning 3D logo (header) ---------- */
.dot3d { width: 48px; height: 48px; position: relative; }
.dot3d:not(.flat) { background: none; }
.dot3d canvas { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); display: block; }
