/* =========================================================================
   LOSO EDITS — STYLES
   ========================================================================= */

:root{
  --red: #e21c1c;
  --red-dark: #b91414;

  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --border: #e5e5e5;
  --text: #111111;
  --text-muted: #555555;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);

  --header-bg: rgba(255,255,255,0.85);
}

[data-theme="dark"]{
  --bg: #0b0b0c;
  --bg-alt: #131314;
  --surface: #18181a;
  --border: #262628;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --shadow: 0 10px 30px rgba(0,0,0,0.5);

  --header-bg: rgba(11,11,12,0.85);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

/* Keeps the sticky header from covering a section when jumping to its anchor */
section[id]{ scroll-margin-top: 90px; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  transition: background 0.25s ease, color 0.25s ease;
}

.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

img, video{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1,h2,h3{ line-height: 1.15; margin: 0 0 .5em; }

/* ---------- Header ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  transition: height 0.3s ease;
}
.site-header.scrolled .header-inner{ height: 76px; }

.logo{
  display: inline-flex;
  align-items: center;
}

.logo-img{
  height: 68px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.site-header.scrolled .logo-img{ height: 44px; }

/* Two cuts of the same mark: dark artwork for the light theme, light
   artwork for the dark one. Both have transparent backgrounds so the
   logo sits on the page rather than in a box. */
.logo-on-dark{ display: none; }
[data-theme="dark"] .logo-on-light{ display: none; }
[data-theme="dark"] .logo-on-dark{ display: block; }

.main-nav{
  display: flex;
  gap: 14px;
}

.main-nav a{
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 9px 15px;
  border-radius: 9px;
  transition: color 0.22s ease;
}

/* Red highlight that fades away downward. Negative z-index keeps it above
   the header's own background but behind the link text. */
.main-nav a::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9px;
  background: linear-gradient(
    to bottom,
    rgba(226,28,28,0.95) 0%,
    rgba(226,28,28,0.55) 45%,
    rgba(226,28,28,0) 100%
  );
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a::after{
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover,
.main-nav a:focus-visible{ color: #fff; }
.main-nav a:hover::before,
.main-nav a:focus-visible::before{ opacity: 1; transform: translateY(0); }
.main-nav a:hover::after{ transform: scaleX(1); }

.header-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn{
  position: relative;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.icon-btn:hover{ border-color: var(--red); transform: translateY(-1px); }
.icon-btn svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

#themeToggle .icon{
  position: absolute;
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.icon-sun{ opacity: 1; transform: rotate(0deg) scale(1); }
.icon-moon{ opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="dark"] .icon-sun{ opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="dark"] .icon-moon{ opacity: 1; transform: rotate(0deg) scale(1); }

.nav-toggle{ display: none; }

/* ---------- Hero ---------- */

.hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 130px;
  background: #000;
  transform-origin: center top;
  will-change: transform;
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Keeps the headline readable over whatever frame is on screen. */
.hero-scrim{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.25) 100%),
    radial-gradient(70% 70% at 80% 10%, rgba(226,28,28,0.22), transparent 70%);
}

/* Hero text sits on footage, so it stays light in both themes. */
.hero h1,
.hero .hero-sub{ color: #fff; }
.hero .btn-outline{ border-color: #fff; color: #fff; }
.hero .btn-outline:hover{ border-color: var(--red); color: var(--red); }

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 14px;
}

.hero h1{
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  max-width: 14ch;
}
.hero h1 .accent{ color: #ff5252; }

.hero-sub{
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 18px 0 32px;
}

.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

@keyframes heroUp{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}
.hero-anim{
  opacity: 0;
  animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-anim-1{ animation-delay: 0s; }
.hero-anim-2{ animation-delay: 0.1s; }
.hero-anim-3{ animation-delay: 0.2s; }
.hero-anim-4{ animation-delay: 0.3s; }

/* ---------- Word-by-word headings ---------- */

[data-split] .word{
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.4em);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-split].words-in .word{
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ---------- Generic scroll-reveal ---------- */

.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--red);
  color: #fff;
}
.btn-primary:hover{ background: var(--red-dark); }

.btn-outline{
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-outline:hover{ border-color: var(--red); color: var(--red); }

/* ---------- Section head ---------- */

.section-head{
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}
.section-head[data-align="start"]{
  text-align: left;
  margin-left: 0;
  max-width: 640px;
}
.section-head h2{
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
}
.section-head p{ color: var(--text-muted); margin: 0; }

/* ---------- Portfolio ---------- */

.portfolio{ padding: 90px 0; }

/* ---------- Portfolio slider ---------- */

.slider-row{ margin-bottom: 34px; }
.slider-row[hidden]{ display: none; }
.slider-row:last-child{ margin-bottom: 0; }

.row-label{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Rules run out to each edge, strongest at the word and fading away. */
.row-label::before,
.row-label::after{
  content: "";
  flex: 1;
  height: 1px;
  opacity: 0.4;
}
.row-label::before{ background: linear-gradient(to right, transparent, currentColor); }
.row-label::after{ background: linear-gradient(to left, transparent, currentColor); }

.slider-wrap{ position: relative; }

.slider-track{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding: 4px max(24px, calc((100vw - 1180px) / 2)) 24px;
  scrollbar-width: none;
  cursor: grab;
}
.slider-track::-webkit-scrollbar{ display: none; }
.slider-track.is-dragging{ cursor: grabbing; scroll-snap-type: none; }
.slider-track:focus-visible{ outline: 3px solid var(--red); outline-offset: -3px; }

.slider-track .video-card{
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: start;
}
/* Portrait pieces are taller, so they get a narrower column. */
.slider-track .video-card[data-orientation="portrait"]{ width: 260px; }

.slider-nav{
  position: absolute;
  top: 38%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.slider-nav svg{ width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-nav:hover:not(:disabled){ border-color: var(--red); color: var(--red); }
.slider-nav:disabled{ opacity: 0.25; cursor: default; }
.slider-prev{ left: 16px; }
.slider-next{ right: 16px; }

@media (max-width: 720px){
  .slider-nav{ display: none; }
  .slider-track{ gap: 14px; scroll-padding-left: 24px; padding: 4px 24px 20px; }
  .slider-track .video-card{ width: 78vw; }
  .slider-track .video-card[data-orientation="portrait"]{ width: 62vw; }
}

.video-card{
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.video-card.in-view{
  opacity: 1;
  transform: translateY(0);
}
@media (hover: hover){
  .video-card:hover{
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  }
}
[data-theme="dark"] .video-card:hover{ box-shadow: 0 16px 40px rgba(0,0,0,0.6); }
.video-card:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.video-card[hidden]{ display: none; }

.thumb{
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.thumb.landscape{ aspect-ratio: 16 / 9; }
.thumb.portrait{ aspect-ratio: 9 / 16; max-height: 480px; margin: 0 auto; }

.thumb img, .thumb video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover){
  .video-card:hover .thumb img,
  .video-card:hover .thumb video{
    transform: scale(1.22);
  }
}

.play-badge{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.play-badge svg{
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover){
  .video-card:hover .play-badge svg{ transform: scale(1.12); }
  .video-card:hover .play-badge{ opacity: 0; }
}

/* Text sits over the thumbnail behind a fade, so it stays white in both
   themes rather than following the page text colour. */
.card-overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.65) 38%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
}

.card-title{
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.card-tag{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b6b;
  margin-bottom: 5px;
}

.duration-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.duration-badge[hidden]{ display: none; }

/* ---------- Collaborations ---------- */

.collaborations{ padding: 90px 0; background: var(--bg-alt); }

.collab-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
  align-items: start;
}

.role-tag{
  display: inline-block;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  background: rgba(0,0,0,0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.collab-credit{
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.83rem;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
/* The credit can be a link, so it needs clicks back despite the overlay */
a.collab-credit{ text-decoration: none; pointer-events: auto; }
a.collab-credit:hover{ color: #ff6b6b; }

/* ---------- Client logos ---------- */

.clients{
  position: relative;
  padding: 70px 0 60px;
}
.clients[hidden]{ display: none; }

/* Separates the work above from the brands below, fading out at both
   ends so it doesn't read as a hard box edge. */
.clients::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-muted), transparent);
  opacity: 0.35;
}

.clients-label{
  text-align: center;
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logos-strip{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 52px;
}

/* Marquee mode: the strip becomes a window and the track slides through
   it. Edges fade so logos arrive and leave rather than pop. */
.logos-strip.is-marquee{
  display: block;
  overflow: hidden;
  gap: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* Spacing lives on each item rather than as a flex gap: that way the two
   halves are exactly equal, so translating by -50% lands seamlessly. A
   gap would add one extra between the halves and make the loop jump. */
.logos-strip.is-marquee .logos-track{
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.logos-strip.is-marquee .logo-item{ margin-right: 52px; }
.logos-strip.is-marquee:hover .logos-track{ animation-play-state: paused; }

/* Off screen: stop the work entirely rather than animating unseen. */
.clients.is-paused .logos-track,
.clients.is-paused .logo-item{ animation-play-state: paused; }

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Each element has exactly one job so nothing fights: the item floats,
   the image handles hover. Putting both on one element would mean the
   hover transform and the float animation overwriting each other. */
.logo-item{
  position: relative;
  flex: 0 0 auto;
  animation: logoFloat 4.4s ease-in-out infinite;
}
/* Float timing is set per brand in js/main.js, not by nth-child: the
   marquee renders the set twice, and position-based rules would give a
   logo different timing in each copy, so it would jump at the seam. */

@keyframes logoFloat{
  0%, 100%{ transform: translateY(-10px) rotate(-1.5deg); }
  50%     { transform: translateY(10px) rotate(1.5deg); }
}

/* Red bloom behind whichever logo is under the cursor. Paints under the
   image because a ::before sits below its element's own content. */
.logo-item::before{
  content: "";
  position: absolute;
  inset: -45% -30%;
  background: radial-gradient(
    circle,
    rgba(226,28,28,0.55) 0%,
    rgba(226,28,28,0.28) 45%,
    transparent 72%
  );
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.logo-item:hover::before{ opacity: 1; transform: scale(1); }

@media (max-width: 720px){
  .logos-strip{ gap: 34px; }
  .logos-strip.is-marquee .logo-item{ margin-right: 34px; }
  .logo-item img{ height: 64px; }
}

.logo-item img{
  height: 96px;
  width: auto;
  /* Muted by default so a wall of clashing brand colours doesn't fight
     the work above it. */
  filter: grayscale(1);
  opacity: 0.55;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-item:hover img{ transform: scale(1.28); }
/* Most of these marks are black, so on a dark page they need inverting
   to be visible at all — including on hover, where dropping the filter
   would make them disappear. Hover just brings them up to full. */
[data-theme="dark"] .logo-item img{ filter: grayscale(1) invert(1); }

/* Two stacked shadows: a tight core and a wide halo, which reads as a
   glow rather than a single soft blur. */
.logo-item:hover img{
  filter:
    drop-shadow(0 0 10px rgba(226,28,28,0.85))
    drop-shadow(0 8px 34px rgba(226,28,28,0.6));
  opacity: 1;
}
[data-theme="dark"] .logo-item:hover img{
  filter:
    grayscale(1) invert(1)
    drop-shadow(0 0 12px rgba(255,60,60,0.95))
    drop-shadow(0 8px 38px rgba(226,28,28,0.75));
  opacity: 1;
}

.empty-state{
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}
.empty-state code{
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ---------- About ---------- */

.about{
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: var(--bg-alt);
}

/* Watermark behind the About copy. Kept faint so the text stays the
   thing you read; the artwork is black, so it inverts for dark mode. */
.about .container{ position: relative; }

/* Anchored to the container, not the full-width section, so it stays over
   the text column instead of drifting with the viewport width. */
.about-inner::before{
  content: "";
  position: absolute;
  left: 26%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%) rotate(-10deg);
  background: url("../assets/clapperboard.svg") no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
}
[data-theme="dark"] .about-inner::before{ filter: invert(1); opacity: 0.18; }

.about-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p{ color: var(--text-muted); font-size: 1.02rem; }

.about-stats{
  display: grid;
  gap: 20px;
}
.stat{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
}
.stat-num{
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
}
.stat-label{ color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */

.contact{
  position: relative;
  overflow: hidden;
  padding: 90px 0 60px;
}

/* Sits behind the whole section — heading, cards, form and socials all
   render over it. Faint, because there's a lot of text on top here. */
.contact::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(1100px, 125%);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: url("../assets/film-strip.svg") no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
}
[data-theme="dark"] .contact::before{ filter: invert(1); opacity: 0.12; }

.contact .container{ position: relative; }

.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 46px;
}

.contact-card{
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover{ transform: translateY(-3px); border-color: var(--red); }

.contact-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg{ width: 22px; height: 22px; fill: currentColor; }

/* WhatsApp keeps its own brand green rather than the site red. */
.contact-icon.icon-whatsapp{ background: #15a04a; }

.contact-label{ font-weight: 700; font-size: 0.98rem; }
.contact-sub{ color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Contact form ---------- */

.contact-form{
  max-width: 720px;
  margin: 0 auto 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.contact-form[hidden]{ display: none; }

.form-heading{
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 20px;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.field{ display: flex; flex-direction: column; position: relative; }

.field label{
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field textarea{
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea{ resize: vertical; min-height: 130px; line-height: 1.5; }

/* Explicit colour rather than muted-at-70%, which fell to 3.45:1 and
   failed WCAG AA. */
.field input::placeholder,
.field textarea::placeholder{ color: #6e6e6e; opacity: 1; }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder{ color: #9a9a9a; }

.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,28,28,0.15);
}

.char-count{
  align-self: flex-end;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Spam trap — hidden from people, still reachable by bots */
.gotcha{
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-submit{
  margin-top: 18px;
  border: none;
  font-family: inherit;
}
.form-submit:disabled{ opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status{
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-error{ color: var(--red); }
.form-status.is-success{ color: #157a33; }
.form-status.is-pending{ color: var(--text-muted); }

[data-theme="dark"] .form-status.is-success{ color: #4ade80; }

.social-row{
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-btn{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-btn svg{ width: 20px; height: 20px; fill: currentColor; }
.social-btn:hover{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Legal pages ---------- */

.legal{ padding: 70px 0 90px; }

/* Narrower than the site's grid: long-form text is hard to read across a
   full-width column. */
.legal-inner{ max-width: 760px; }

.legal h1{
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.legal-updated{
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 32px;
}

.legal-lead{
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  padding-bottom: 8px;
}

.legal h2{
  font-size: 1.25rem;
  font-weight: 800;
  margin: 42px 0 12px;
}

.legal h3{
  font-size: 1rem;
  font-weight: 700;
  margin: 26px 0 8px;
  color: var(--text);
}

.legal p,
.legal li{
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal strong{ color: var(--text); }

.legal ul{ padding-left: 22px; margin: 0 0 18px; }
.legal li{ margin-bottom: 10px; }

.legal a{
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The brand red only reaches 4.14:1 on the dark background, so links
   lighten in dark mode to clear WCAG AA for body-size text. */
[data-theme="dark"] .legal a{ color: #ff6b6b; }
.legal a:hover{ opacity: 0.75; }

.legal code{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
}

.legal-callout{
  background: var(--bg-alt);
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-table{
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 0.92rem;
}
.legal-table th,
.legal-table td{
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-muted);
}
.legal-table th{
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 700;
}

.legal-related{
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* These pages only need a way back, so the nav never collapses. */
.legal-nav{ gap: 0; }
@media (max-width: 860px){
  .legal-nav{
    position: static;
    flex-direction: row;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 0;
    background: none;
    border: 0;
  }
  .legal-nav a{ opacity: 1; transform: none; font-size: 0.92rem; padding: 0; }
}

@media (max-width: 720px){
  .legal{ padding: 40px 0 60px; }
  .legal-table{ font-size: 0.84rem; }
  .legal-table th, .legal-table td{ padding: 8px 9px; }
}

/* ---------- Footer ---------- */

.site-footer{
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner a:hover{ color: var(--red); }

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-fab{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0;
  height: 72px;
  padding: 0 23px;
  border-radius: 999px;
  background: #15a04a;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,0.3);
  /* Starts tucked away; the scroll handler reveals it past the hero. */
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    box-shadow 0.25s ease;
}
.whatsapp-fab[hidden]{ display: none; }

.whatsapp-fab.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-fab svg{
  width: 32px;
  height: 32px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* The label is collapsed to nothing and expands on hover, so it reads as
   an icon at rest but still says what it does. */
.whatsapp-fab-label{
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover){
  .whatsapp-fab:hover{
    background: #11853d;
    box-shadow: 0 12px 32px rgba(21,160,74,0.45);
  }
  .whatsapp-fab:hover .whatsapp-fab-label{
    max-width: 180px;
    margin-left: 10px;
    opacity: 1;
  }
}

.whatsapp-fab:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.whatsapp-fab:focus-visible .whatsapp-fab-label{
  max-width: 180px;
  margin-left: 10px;
  opacity: 1;
}

@media (max-width: 720px){
  .whatsapp-fab{
    right: 16px;
    bottom: 16px;
    height: 62px;
    padding: 0 18px;
  }
  .whatsapp-fab svg{ width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce){
  .whatsapp-fab{ transition-duration: 0.01ms; }
}

/* ---------- Lightbox ---------- */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox[hidden]{ display: none; }

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open .lightbox-backdrop{ opacity: 1; }

.lightbox-content{
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.is-open .lightbox-content{
  opacity: 1;
  transform: scale(1) translateY(0);
}

.lightbox-video-wrap{
  width: 100%;
  max-height: 78vh;
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.lightbox-video-wrap.is-loading::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -23px 0 0 -23px;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.lightbox-video-wrap{ position: relative; }

.lightbox-video-wrap video{
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.lightbox-video-wrap.is-portrait video,
.lightbox-video-wrap.is-portrait iframe{
  width: auto;
  height: 78vh;
  max-width: 100%;
}
.lightbox-video-wrap iframe{
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.lightbox-caption{
  color: #fff;
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
}

/* Pinned to the viewport, not to the video: anchored to the content it
   was pushed off the top of the screen whenever the video was tall. The
   solid disc keeps it visible over bright footage. */
.lightbox-close{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.3s ease;
}
.lightbox.is-open .lightbox-close{ opacity: 1; }
.lightbox-close:hover{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: scale(1.08);
}
.lightbox-close:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px){
  .about-inner{ grid-template-columns: 1fr; }

  .header-inner{ height: 76px; }
  .logo-img{ height: 42px; }

  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 18px;
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a{
    font-size: 1.05rem;
    padding: 12px 15px;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  }
  .main-nav.open a{ opacity: 1; transform: translateX(0); }
  .main-nav.open a:nth-child(1){ transition-delay: 0.06s; }
  .main-nav.open a:nth-child(2){ transition-delay: 0.11s; }
  .main-nav.open a:nth-child(3){ transition-delay: 0.16s; }
  .main-nav.open a:nth-child(4){ transition-delay: 0.21s; }
  .main-nav.open a:nth-child(5){ transition-delay: 0.26s; }
  .main-nav.open a:nth-child(6){ transition-delay: 0.31s; }
  .main-nav a::after{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-toggle svg{ width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
  .icon-btn{ width: 44px; height: 44px; }

  section[id]{ scroll-margin-top: 70px; }
}

@media (max-width: 720px){
  /* Phone GPUs struggle with backdrop blur, and this one sits on a
     sticky header over a playing video — it recomposites the whole
     header every scroll frame. Solid background instead. */
  .site-header{
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }
  .duration-badge{
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(0,0,0,0.8);
  }

  /* No hover on touch, so the greyscale could never be revealed anyway —
     and dropping it spares a filter pass on twelve moving images. */
  .logo-item img{ filter: none; opacity: 0.9; }
  [data-theme="dark"] .logo-item img{ filter: grayscale(1) invert(1); }

  .hero{ padding: 56px 0 60px; }
  /* Anchor the reel by its top edge at the heading so it reads downward
     from "Together", rather than sitting centred in a very tall column. */
  .contact::before{
    top: 34px;
    width: 150%;
    transform: translateX(-50%) rotate(-6deg);
  }

  /* Stacked, at their natural width against the left edge rather than
     stretched across the screen. */
  .hero-actions{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-actions .btn{
    flex: 0 0 auto;
    padding: 10px 18px;
    font-size: 0.82rem;
    border-width: 1.5px;
  }

  .portfolio,
  .collaborations,
  .about,
  .contact{ padding: 56px 0; }

  /* Heading centred; the paragraphs stay left-aligned, since centred
     body copy is harder to read on a narrow column. */
  .about-text h2{ text-align: center; }

  .section-head{ margin-bottom: 30px; }


  /* single column here, so let portrait keep its true 9:16 instead of cropping */
  .thumb.portrait{ max-height: none; }

  .lightbox{ padding: 16px; }
  .lightbox-close{
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
  }
  /* Leave headroom so the button never covers the video. */
  .lightbox-video-wrap.is-portrait video,
  .lightbox-video-wrap.is-portrait iframe{ height: 70vh; }
}

@media (prefers-reduced-motion: reduce){
  .video-card,
  .thumb img, .thumb video,
  .play-badge, .play-badge svg,
  .reveal,
  .hero-anim,
  [data-split] .word,
  .lightbox-backdrop, .lightbox-content,
  #themeToggle .icon,
  .main-nav a,
  .header-inner, .logo, .logo-img{
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
  .video-card, .reveal, .hero-anim{ opacity: 1; transform: none; }
  [data-split] .word{ opacity: 1; filter: none; transform: none; }

  /* Leave the hero at full bleed instead of animating its scale. */
  .js-scroll-scale{ transform: none !important; border-radius: 0 !important; }
  .hero-video{ display: none; }

  /* The marquee itself is skipped in JS; this stops the per-logo float. */
  .logo-item{ animation: none !important; }
  .logo-item img{ transition-duration: 0.01ms !important; }
}
