/* ==========================================================================
   Kheir's Media — Stylesheet
   ========================================================================== */

:root{
  --black:#0A0A0B;
  --charcoal:#141416;
  --charcoal-2:#1B1B1E;
  --off-white:#F2EEE6;
  --off-white-dim:rgba(242,238,230,0.68);
  --off-white-faint:rgba(242,238,230,0.42);
  --line:rgba(242,238,230,0.12);
  --line-strong:rgba(242,238,230,0.22);
  --red:#C6362A;
  --red-bright:#E1503F;
  --nav-bg:rgba(10,10,11,0.82);
  --logo-filter:none;
  --select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23F2EEE6' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");

  /* Fixed — never overridden by the light theme. For text that sits
     directly on a photo/video scrim (hero, work-card thumbnails) which
     stays dark in both themes, so the text must stay light too. */
  --on-media:#F2EEE6;
  --on-media-dim:rgba(242,238,230,0.72);
  --on-media-faint:rgba(242,238,230,0.45);

  --display:'Bebas Neue', sans-serif;
  --body:'Montserrat', sans-serif;
  --mono:'Space Mono', monospace;

  --container:1320px;
  --gutter:40px;
}

/* Light theme — page chrome and text sections switch; media-heavy areas
   (hero video, work-card thumbnails/logos, project video hero) keep their
   dark cinematic treatment in both themes since they sit over footage. */
[data-theme="light"]{
  --black:#FAF8F3;
  --charcoal:#F1ECE2;
  --charcoal-2:#E9E2D2;
  --off-white:#1C1A17;
  --off-white-dim:rgba(28,26,23,0.68);
  --off-white-faint:rgba(28,26,23,0.42);
  --line:rgba(28,26,23,0.12);
  --line-strong:rgba(28,26,23,0.22);
  --nav-bg:rgba(250,248,243,0.86);
  --logo-filter:invert(1);
  --select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231C1A17' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
}

@media (max-width:700px){
  :root{ --gutter:20px; }
}

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

html{ scroll-behavior:smooth; background:var(--black); }

body{
  background:var(--black);
  color:var(--off-white);
  font-family:var(--body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background 0.3s ease, color 0.3s ease;
}

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

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

button{ font-family:inherit; cursor:pointer; }

ul{ list-style:none; }

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

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  background:var(--red);
  color:#fff;
  padding:12px 20px;
  z-index:1000;
  font-family:var(--mono);
  font-size:13px;
}
.skip-link:focus{ left:16px; top:16px; }

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

/* ---------- Typography ---------- */
h1,h2,h3,h4,.display{
  font-family:var(--display);
  font-weight:400;
  letter-spacing:0.015em;
  line-height:0.94;
  text-transform:uppercase;
}

.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--red-bright);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:8px; height:8px;
  border-radius:50%;
  background:var(--red-bright);
  box-shadow:0 0 10px var(--red-bright);
  flex-shrink:0;
}

.mono{ font-family:var(--mono); letter-spacing:0.04em; }

/* ---------- Scroll progress / playhead ---------- */
.scrub{
  position:fixed;
  top:0; left:0; right:0;
  height:3px;
  background:var(--line);
  z-index:1100;
}
.scrub-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--red), var(--red-bright));
  position:relative;
  transition:width 0.05s linear;
}
.scrub-fill::after{
  content:"";
  position:absolute;
  right:-4px; top:50%;
  width:9px; height:9px;
  background:var(--red-bright);
  border-radius:50%;
  transform:translateY(-50%);
  box-shadow:0 0 8px var(--red-bright);
}

/* ---------- Header ---------- */
header{
  position:fixed;
  top:3px; left:0; right:0;
  z-index:1000;
  background:var(--nav-bg);
  transition:background 0.3s ease;
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:16px var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo-link{ display:flex; align-items:center; }
.logo-link img{ height:34px; width:auto; filter:var(--logo-filter); transition:filter 0.3s ease; }

.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
}
.nav-links a:not(.btn){
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--off-white-dim);
  position:relative;
  padding:6px 0;
  transition:color 0.2s ease;
}
.nav-links a:not(.btn)::after{
  content:"";
  position:absolute;
  left:0; right:100%;
  bottom:0;
  height:1px;
  background:var(--red-bright);
  transition:right 0.25s ease;
}
.nav-links a:not(.btn):hover{ color:var(--off-white); }
.nav-links a:not(.btn):hover::after{ right:0; }
.nav-links a:not(.btn)[aria-current="page"]{ color:var(--off-white); }
.nav-links a:not(.btn)[aria-current="page"]::after{ right:0; }

/* Mobile-only wrapper holding the theme toggle + hamburger together, so
   nav-inner's logo/right-side space-between still only splits into two
   groups (as it already does on desktop with just the hamburger). */
.nav-mobile-controls{
  display:none;
  align-items:center;
  gap:14px;
}

.menu-toggle{
  display:none;
  background:none;
  border:none;
  width:44px; height:44px;
  position:relative;
  flex-shrink:0;
  margin-right:-10px;
}
.menu-toggle span{
  position:absolute;
  left:11px; right:11px;
  height:2px;
  background:var(--off-white);
  transition:transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle span:nth-child(1){ top:15px; }
.menu-toggle span:nth-child(2){ top:21px; }
.menu-toggle span:nth-child(3){ top:27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1){ top:21px; transform:rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ top:21px; transform:rotate(-45deg); }

@media (max-width:860px){
  .nav-links{
    position:fixed;
    top:63px; left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    background:var(--black);
    border-bottom:1px solid var(--line);
    padding:8px var(--gutter) 24px;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .nav-links a:not(.btn){
    width:100%;
    padding:16px 0;
    border-bottom:1px solid var(--line);
    font-size:13px;
  }
  .nav-links .btn{ margin-top:18px; width:100%; justify-content:center; }
  /* This original toggle now lives inside the collapsible menu, so it's
     hidden here — the always-visible one is in .nav-mobile-controls. */
  .nav-links .theme-toggle{ display:none; }
  .menu-toggle{ display:block; }
  .nav-mobile-controls{ display:flex; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle{
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background:transparent;
  color:var(--off-white);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
  transition:border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover{ border-color:var(--red-bright); color:var(--red-bright); }
.theme-toggle svg{ width:17px; height:17px; }
.theme-toggle .icon-moon{ display:none; }
[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
[data-theme="light"] .theme-toggle .icon-moon{ display:block; }
@media (max-width:700px){
  .theme-toggle{ width:44px; height:44px; }
  .theme-toggle svg{ width:19px; height:19px; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  padding:15px 26px;
  border-radius:2px;
  border:1px solid transparent;
  transition:transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--red);
  color:#fff;
}
.btn-primary:hover{ background:var(--red-bright); transform:translateY(-2px); }
.btn-outline{
  border-color:var(--line-strong);
  color:var(--off-white);
}
.btn-outline:hover{ border-color:var(--off-white); transform:translateY(-2px); }
.btn-ghost{
  color:var(--off-white);
  border-bottom:1px solid var(--line-strong);
  padding:6px 0;
  border-radius:0;
}
.btn-ghost:hover{ border-color:var(--red-bright); color:var(--red-bright); }

/* ---------- Hero ---------- */
.hero .btn-outline{
  color:var(--on-media);
  border-color:rgba(242,238,230,0.4);
}
.hero .btn-outline:hover{ border-color:var(--on-media); }

.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--black);
}
.hero-media{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:0.55;
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.35) 35%, rgba(10,10,11,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.1) 40%);
}
.hero-grain{
  position:absolute; inset:0;
  opacity:0.06;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  padding:180px var(--gutter) 90px;
  max-width:var(--container);
  margin:0 auto;
}
@media (max-width:600px){
  .hero-content{ padding:150px var(--gutter) 140px; }
}
.hero h1{
  font-size:clamp(46px, 8.2vw, 118px);
  color:var(--on-media);
  max-width:16ch;
  margin-top:22px;
}
.hero h1 .hl{ color:var(--red-bright); }
.hero-sub{
  max-width:520px;
  margin-top:26px;
  font-size:clamp(15px,1.6vw,19px);
  color:var(--on-media-dim);
}
.hero-actions{
  display:flex;
  gap:16px;
  margin-top:42px;
  flex-wrap:wrap;
}
@media (max-width:480px){
  .hero-actions{ flex-direction:column; gap:12px; }
  .hero-actions .btn{ width:100%; justify-content:center; }
  .cta .btn,
  #contactForm button[type="submit"]{ width:100%; justify-content:center; }
}
.hero-scroll{
  position:absolute;
  bottom:34px;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  color:var(--on-media-faint);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:0.18em;
  text-transform:uppercase;
}
@media (max-width:600px){
  .hero-scroll{ bottom:16px; }
  .hero-scroll .line{ height:26px; }
}
.hero-scroll .line{
  width:1px; height:40px;
  background:linear-gradient(180deg, var(--on-media-faint), transparent);
  position:relative;
  overflow:hidden;
}
.hero-scroll .line::after{
  content:"";
  position:absolute;
  top:-40px; left:0; right:0; height:40px;
  background:linear-gradient(180deg, transparent, var(--red-bright));
  animation:scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown{
  0%{ top:-40px; }
  100%{ top:40px; }
}

/* ---------- Sections ---------- */
.section{ padding:130px 0; position:relative; }
.section-tight{ padding:90px 0; }
.section-alt{ background:var(--charcoal); }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
  margin-bottom:64px;
  padding-bottom:26px;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}
.section-head h1,
.section-head h2{
  font-size:clamp(38px, 5.4vw, 64px);
  margin-top:12px;
  color:var(--off-white);
}
.section-head p{
  max-width:360px;
  color:var(--off-white-dim);
  font-size:14.5px;
  padding-bottom:8px;
}

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .hero-scroll .line::after{ animation:none; }
  *{ scroll-behavior:auto !important; }
}

/* ---------- Work teaser (homepage) ---------- */
.work-teaser{ padding-bottom:110px; }
.work-teaser-sub{
  max-width:480px;
  margin-top:22px;
  color:var(--off-white-dim);
  font-size:15px;
}
/* ---------- Homepage "Selected Work" carousel ---------- */
.work-carousel{
  position:relative;
  margin-top:48px;
}
.work-carousel-track{
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding-left:var(--gutter);
  padding:4px var(--gutter) 22px;
  -ms-overflow-style:none;
  scrollbar-width:none;
}
.work-carousel-track::-webkit-scrollbar{ display:none; }
.work-carousel-track:focus-visible{ outline:2px solid var(--red-bright); outline-offset:6px; border-radius:2px; }

.work-carousel-track .work-card{
  flex:0 0 auto;
  width:82vw;
  max-width:340px;
  scroll-snap-align:start;
}
@media (min-width:700px){
  .work-carousel-track .work-card{ width:60vw; max-width:440px; }
}
@media (min-width:980px){
  .work-carousel-track .work-card{ width:38vw; max-width:480px; }
}

.carousel-arrow{
  /* Fixed (not theme-linked) colours to match .play-badge — arrows sit
     right over the same dark cinematic card imagery in both themes. */
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:52px; height:52px;
  border-radius:50%;
  border:1px solid rgba(242,238,230,0.5);
  background:rgba(10,10,11,0.45);
  backdrop-filter:blur(4px);
  color:var(--on-media);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.carousel-arrow svg{ width:20px; height:20px; }
.carousel-arrow:hover{ background:var(--red); border-color:var(--red); }
.carousel-arrow:disabled{ opacity:0.25; pointer-events:none; }
.carousel-arrow.prev{ left:14px; }
.carousel-arrow.next{ right:14px; }
/* Theme-linked variant for a carousel sitting over plain (non-photo) card
   content, e.g. the testimonials carousel — the fixed on-media colours
   above are for arrows overlapping dark cinematic photo/video cards. */
.carousel-arrow.themed{
  border-color:var(--line-strong);
  background:var(--charcoal);
  color:var(--off-white);
}
.carousel-arrow.themed:hover{ background:var(--red); border-color:var(--red); color:var(--on-media); }
@media (max-width:700px){
  /* Touch devices use native swipe on the track instead. */
  .carousel-arrow{ display:none; }
}

.carousel-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:8px;
}
.carousel-dot{
  width:8px; height:8px;
  border-radius:50%;
  border:none;
  padding:0;
  background:var(--line-strong);
  cursor:pointer;
  transition:background 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover{ background:var(--off-white-dim); }
.carousel-dot.is-active{ background:var(--red-bright); transform:scale(1.35); }

/* ---------- Work / Portfolio ---------- */
.work-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2px;
  background:var(--line);
}
@media (max-width:980px){ .work-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .work-grid{ grid-template-columns:1fr; } }

.work-card{
  position:relative;
  background:var(--black);
  aspect-ratio:4/5;
  overflow:hidden;
  cursor:pointer;
  border:none;
  display:block;
  width:100%;
  text-align:left;
  color:inherit;
}
.work-card:nth-child(3n+1){ }
.work-card .thumb-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.6s ease, opacity 0.4s ease;
}
.work-card .thumb-poster{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transition:opacity 0.4s ease;
  z-index:1;
}
.work-card:hover .thumb-poster{ opacity:0; }
.work-card:hover .thumb-media{ transform:scale(1.05); }

.card-logo-cover{
  position:absolute; inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px;
}
.card-logo-cover img{
  width:100%;
  max-width:210px;
  height:auto;
  object-fit:contain;
  transition:transform 0.5s ease;
}
.work-card:hover .card-logo-cover img{ transform:scale(1.06); }

/* Per-club backdrop colours, echoing each badge's own palette */
.card-logo-cover-ttfc{
  background:radial-gradient(ellipse at center, #3D1224 0%, #200A12 65%, var(--black) 100%);
}
.card-logo-cover-tr{
  background:radial-gradient(ellipse at center, #1E3320 0%, #150F26 60%, var(--black) 100%);
}
.card-logo-cover-sr{
  background:radial-gradient(ellipse at center, #22332F 0%, #14201C 65%, var(--black) 100%);
}
.card-logo-cover-tdcc{
  background:radial-gradient(ellipse at center, #16241C 0%, #0D140F 65%, var(--black) 100%);
}
.card-logo-cover-tdcc img{ max-width:190px; }

/* Neutral fallback backdrop for any project without its own bespoke
   colour variant above — use logoCoverClass: 'card-logo-cover-default'
   in data/projects.js for a new client that doesn't need a custom one. */
.card-logo-cover-default{
  background:radial-gradient(ellipse at center, #241419 0%, #150B10 65%, var(--black) 100%);
}

.logo-plate{
  background:rgba(242,238,230,0.96);
  border-radius:10px;
  padding:22px 26px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo-plate img{ max-width:180px; }

.work-card .card-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,10,11,0.05) 0%, rgba(10,10,11,0.15) 45%, rgba(10,10,11,0.92) 100%);
  z-index:2;
}
.work-card .card-info{
  position:absolute;
  left:0; right:0; bottom:0;
  z-index:3;
  padding:24px;
}
.work-card .card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--red-bright);
  margin-bottom:10px;
}
.work-card h3{
  font-size:clamp(24px,2.4vw,30px);
  color:var(--on-media);
  text-transform:none;
  letter-spacing:0;
}
.work-card .card-cat{
  margin-top:8px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--on-media-faint);
}
.work-card .card-desc{
  margin-top:10px;
  font-size:13.5px;
  color:var(--on-media-dim);
  max-width:34ch;
}
.play-badge{
  position:absolute;
  top:24px; right:24px;
  z-index:3;
  width:44px; height:44px;
  border-radius:50%;
  border:1px solid rgba(242,238,230,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,10,11,0.4);
  backdrop-filter:blur(4px);
  transition:background 0.2s ease, border-color 0.2s ease;
}
.work-card:hover .play-badge{ background:var(--red); border-color:var(--red); }
.play-badge svg{ width:14px; height:14px; }

.work-card.is-external .play-badge{ transform:rotate(0deg); }
.work-card.is-placeholder{ cursor:default; }

.client-badge{
  position:absolute;
  top:20px; left:20px;
  z-index:3;
  width:56px; height:56px;
  object-fit:contain;
  padding:6px;
  border-radius:50%;
  background:rgba(242,238,230,0.94);
  box-shadow:0 2px 10px rgba(0,0,0,0.35);
}
.work-card.is-placeholder .card-info{ }
.work-card.is-placeholder .thumb-poster,
.work-card.is-placeholder .thumb-media{
  background:
    repeating-linear-gradient(-45deg, rgba(242,238,230,0.05) 0px, rgba(242,238,230,0.05) 14px, transparent 14px, transparent 28px),
    #1B1B1E;
}
.placeholder-flag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--on-media-faint);
  border:1px dashed rgba(242,238,230,0.22);
  padding:6px 10px;
  margin-bottom:10px;
}

/* ---------- About ---------- */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  align-items:stretch;
}
@media (max-width:860px){ .about-grid{ grid-template-columns:1fr; } }
.about-media{
  position:relative;
  min-height:520px;
  overflow:hidden;
}
.about-media img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 20%;
  filter:grayscale(15%) contrast(1.05);
}
.about-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 60%, rgba(10,10,11,0.6) 100%);
}
.about-text{
  padding:70px var(--gutter);
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:var(--charcoal);
}
.about-text h2{
  font-size:clamp(32px,4.4vw,52px);
  margin-top:14px;
  color:var(--off-white);
}
.about-text p{
  margin-top:22px;
  color:var(--off-white-dim);
  font-size:15.5px;
  max-width:44ch;
}
.about-text .btn{ margin-top:32px; align-self:flex-start; }

/* ---------- Trusted By (client logo strip) ---------- */
.trusted-by{
  padding:70px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:center;
}
.trusted-by .eyebrow{ justify-content:center; margin-bottom:38px; }
.logo-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:18px;
}
.logo-chip{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(242,238,230,0.95);
  border:1px solid rgba(10,10,11,0.06);
  box-shadow:0 2px 10px rgba(10,10,11,0.12);
  border-radius:8px;
  padding:16px 22px;
  transition:transform 0.2s ease, opacity 0.2s ease;
  opacity:0.85;
}
.logo-chip:hover{ opacity:1; transform:translateY(-2px); }
.logo-chip img{
  height:42px;
  width:auto;
  max-width:130px;
  object-fit:contain;
  display:block;
}
@media (max-width:700px){
  .logo-strip{ gap:12px; }
  .logo-chip{ padding:12px 16px; }
  .logo-chip img{ height:34px; max-width:100px; }
}

/* ---------- Testimonials carousel ----------
   Reuses the "Selected Work" carousel's track/arrow/dot mechanics (see
   .work-carousel-track etc. above and initTestimonialCarousel() in
   js/script.js) — only the card width per breakpoint is testimonial-
   specific, since these cards are text-led rather than image-led and
   need more room than a portfolio card. */
.testimonial-carousel-track .testimonial-card{
  flex:0 0 auto;
  width:88vw;
  max-width:420px;
  scroll-snap-align:start;
}
@media (min-width:700px){
  .testimonial-carousel-track .testimonial-card{ width:62vw; max-width:460px; }
}
@media (min-width:980px){
  .testimonial-carousel-track .testimonial-card{ width:46vw; max-width:560px; }
}
.testimonial-card{
  border:1px solid var(--line);
  padding:34px;
  position:relative;
}
.testimonial-card .quote-mark{
  font-family:var(--display);
  font-size:52px;
  color:var(--red-bright);
  line-height:1;
  opacity:0.7;
}
.testimonial-card .quote{
  margin-top:16px;
  font-size:14.5px;
  color:var(--off-white-dim);
  font-style:italic;
  max-height:150px;
  overflow:hidden;
}
.testimonial-card.is-expanded .quote{ max-height:none; }
.testimonial-card .quote p{ margin-bottom:12px; }
.testimonial-card .quote p:last-child{ margin-bottom:0; }
.testimonial-toggle{
  display:block;
  margin-top:12px;
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--off-white-dim);
  background:none;
  border:0;
  border-bottom:1px solid var(--line-strong);
  padding:0 0 3px;
  cursor:pointer;
  transition:color 0.2s ease, border-color 0.2s ease;
}
.testimonial-toggle:hover,
.testimonial-toggle:focus-visible{ color:var(--red-bright); border-color:var(--red-bright); }
.testimonial-card .who{
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:0.04em;
  color:var(--off-white-faint);
  text-transform:uppercase;
}

/* ---------- CTA ---------- */
.cta{
  position:relative;
  padding:160px var(--gutter);
  text-align:center;
  overflow:hidden;
}
.cta-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:0.28;
  filter:grayscale(40%);
}
.cta-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, #0A0A0B 0%, rgba(10,10,11,0.75) 50%, #0A0A0B 100%);
}
.cta-inner{ position:relative; z-index:2; max-width:760px; margin:0 auto; }
.cta h2{
  font-size:clamp(34px,6vw,68px);
  color:var(--on-media);
}
.cta p{
  margin-top:22px;
  color:var(--on-media-dim);
  font-size:16px;
}
.cta .btn{ margin-top:38px; }

/* ---------- Contact ---------- */
.contact-head{
  text-align:center;
  margin-bottom:56px;
}
.contact-head h2{
  font-size:clamp(38px,5.4vw,58px);
  margin-top:12px;
  color:var(--off-white);
}
.contact-form{
  max-width:760px;
  margin:0 auto;
}
.field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 30px;
}
@media (max-width:600px){
  .field-row{ grid-template-columns:1fr; }
}
.field{ margin-bottom:26px; }
.field label{
  display:block;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--off-white-faint);
  margin-bottom:10px;
}
.field input,
.field textarea{
  width:100%;
  background:transparent;
  border:1px solid var(--line-strong);
  border-radius:4px;
  color:var(--off-white);
  font-family:var(--body);
  font-size:16px;
  padding:14px 16px;
  transition:border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder{ color:var(--off-white-faint); }
.field input:focus,
.field textarea:focus{ border-color:var(--red-bright); outline:none; }
.field textarea{ resize:vertical; min-height:130px; }
.contact-submit{
  width:100%;
  justify-content:center;
  margin-top:8px;
}
.form-note{
  font-family:var(--mono);
  font-size:10.5px;
  color:var(--off-white-faint);
  margin-top:16px;
  letter-spacing:0.02em;
  text-align:center;
}
.form-status{
  margin-top:16px;
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:0.04em;
  text-align:center;
  display:none;
}
.form-status.show{ display:block; }
.form-status.success{ color:#7CC576; }
.form-status.error{ color:var(--red-bright); }
.form-honeypot{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.contact-submit:disabled{ opacity:0.6; cursor:not-allowed; transform:none; }

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--line);
  padding:70px 0 34px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
  padding-bottom:50px;
}
.footer-brand img{ height:30px; filter:var(--logo-filter); transition:filter 0.3s ease; }
.footer-brand p{
  margin-top:16px;
  color:var(--off-white-dim);
  font-size:13.5px;
  max-width:26ch;
}
.footer-cols{
  display:flex;
  gap:70px;
  flex-wrap:wrap;
}
.footer-col h4{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--off-white-faint);
  margin-bottom:16px;
  font-weight:400;
}
.footer-col a{
  display:block;
  padding:6px 0;
  font-size:14px;
  color:var(--off-white-dim);
  transition:color 0.2s ease;
}
.footer-col a:hover{ color:var(--red-bright); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  padding-top:30px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.04em;
  color:var(--off-white-faint);
  text-transform:uppercase;
}
.footer-social{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding-bottom:40px;
}
.footer-social a{
  display:flex;
  width:40px; height:40px;
  border-radius:8px;
  overflow:hidden;
  opacity:0.8;
  transition:opacity 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover{ opacity:1; transform:translateY(-2px); }
.footer-social img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:700px){
  .footer-social{ gap:24px; padding-bottom:36px; }
  .footer-social a{ width:56px; height:56px; }
}

/* ==========================================================================
   Project pages (/work/*.html)
   ========================================================================== */

.project-breadcrumb{
  padding:150px var(--gutter) 0;
  max-width:var(--container);
  margin:0 auto;
}
.project-breadcrumb a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--off-white-dim);
  transition:color 0.2s ease;
}
.project-breadcrumb a:hover{ color:var(--red-bright); }

.project-hero{
  position:relative;
  margin-top:28px;
  width:100%;
  aspect-ratio:16/9;
  max-height:82vh;
  background:#000;
  overflow:hidden;
}
.project-hero video{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
}
/* A still photo (heroImage in data/projects.js) fills the hero edge-to-edge,
   unlike video above — a photo is expected to crop to fit, where cropping a
   filmed shot's own framing is what the "contain" rule above avoids. */
.project-hero img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
@media (max-width:700px){
  /* Keep the video's own landscape framing on mobile instead of cropping
     it into a portrait box — shows the whole shot, as filmed. */
  .project-breadcrumb{ padding-top:120px; }
}

/* A project's video, when it's been moved out of the hero (because the
   project has a heroImage photo instead) into its own section further
   down the page — see data/render.js. Sized by its content (a self-hosted
   <video> or a .vimeo-embed below), not a fixed ratio here, since
   different projects' videos aren't all the same aspect ratio. */
.project-video{
  position:relative;
  width:100%;
  background:#000;
  overflow:hidden;
  border-radius:4px;
  margin:28px 0;
}
.project-video video{
  width:100%;
  aspect-ratio:16/9;
  object-fit:contain;
  display:block;
}

/* A portrait video (see isVerticalAspect in data/render.js) is capped to a
   comfortable width and centered, instead of stretching to the same width
   as a landscape video — which, at this column's ~760px width, would make
   a 9:16 video well over 1000px tall. The video itself keeps its exact
   aspect ratio either way; only this wrapper's width changes. */
.project-video--vertical{
  max-width:360px;
  margin-left:auto;
  margin-right:auto;
}

/* Responsive Vimeo embed (see vimeoEmbedMarkup in data/render.js) — the
   aspect-ratio is set inline per project since Vimeo's own embed code
   varies it per video (e.g. 4:3 vs 16:9); this keeps the iframe's box
   matching the source video exactly so nothing stretches or crops. */
.vimeo-embed{
  position:relative;
  width:100%;
}
.vimeo-embed iframe{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  border:0;
  display:block;
}

.project-title-bar{
  border-bottom:1px solid var(--line);
  padding:34px var(--gutter);
}
.project-title-bar .container{ padding:0; }
.project-title-bar .card-meta{
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--red-bright);
  margin-bottom:10px;
  display:block;
}
.project-title-bar h1{
  font-size:clamp(34px,5.5vw,64px);
  color:var(--off-white);
}

.project-content{
  padding:70px 0 30px;
}
.project-layout{
  max-width:760px;
}
.project-body h2{
  font-size:clamp(26px,3vw,34px);
  color:var(--off-white);
  margin-bottom:20px;
}
.project-body p{
  color:var(--off-white-dim);
  font-size:15.5px;
  max-width:62ch;
  margin-bottom:18px;
}
.project-body p.lead{
  color:var(--off-white);
  font-size:20px;
  line-height:1.5;
  margin-bottom:30px;
}
.project-body img{
  display:block;
  width:100%;
  height:auto;
  border-radius:4px;
  margin:28px 0;
}
.project-body .btn{ margin-top:16px; }
.project-body .external-link{
  display:inline-block;
  margin-top:6px;
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--off-white-dim);
  border-bottom:1px solid var(--line-strong);
  padding-bottom:4px;
  transition:color 0.2s ease, border-color 0.2s ease;
}
.project-body .external-link:hover{ color:var(--red-bright); border-color:var(--red-bright); }

/* Shown on a project page instead of the video when mainVideo is null
   in data/projects.js — an obvious "nothing here yet" state rather than
   a broken player. */
.project-hero-placeholder{
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    repeating-linear-gradient(-45deg, rgba(242,238,230,0.05) 0px, rgba(242,238,230,0.05) 14px, transparent 14px, transparent 28px),
    #1B1B1E;
}

/* Extra photos from a project's galleryImages array in data/projects.js. */
.project-gallery{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin-top:36px;
  max-width:none;
}
.project-gallery img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:4px;
}
@media (max-width:700px){
  .project-gallery{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:480px){
  .project-gallery{ grid-template-columns:1fr; }
}

/* An optional client review for this specific project (project.review in
   data/projects.js) — always the last thing in .project-body. Reuses
   .testimonial-card completely unstyled-changed; this only adds the
   spacing before it, matching the rhythm of .project-gallery above and
   .work-carousel's own margin-top on the homepage. */
.project-body .project-review{ margin-top:48px; }
.project-body .project-review h2{ margin-bottom:20px; }

/* Wedding Photography's editorial gallery — a masonry-style column layout
   (not the fixed-crop .project-gallery grid above) so photos of different
   orientations keep their own natural aspect ratio instead of being forced
   into uniform tiles. Pure CSS, no JS masonry library. */
.wedding-gallery{
  column-count:3;
  column-gap:24px;
  margin-top:56px;
}
.wedding-gallery img{
  display:block;
  width:100%;
  margin-bottom:24px;
  border-radius:4px;
  break-inside:avoid;
}
@media (max-width:900px){
  .wedding-gallery{ column-count:2; column-gap:16px; }
  .wedding-gallery img{ margin-bottom:16px; }
}
@media (max-width:600px){
  .wedding-gallery{ column-count:1; margin-top:40px; }
}

/* ---------- Project prev/next pagination ---------- */
.project-pagination{
  display:flex;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
  max-width:var(--container);
  margin:0 auto;
  padding:60px var(--gutter) 100px;
  border-top:1px solid var(--line);
}
.project-pag-link{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:320px;
  opacity:0.82;
  transition:opacity 0.2s ease;
}
.project-pag-link:hover{ opacity:1; }
.project-pag-link.next{ text-align:right; justify-content:flex-end; margin-left:auto; }
.pag-arrow{
  font-family:var(--display);
  font-size:22px;
  color:var(--red-bright);
  flex-shrink:0;
  transition:transform 0.2s ease;
}
.project-pag-link.prev:hover .pag-arrow{ transform:translateX(-5px); }
.project-pag-link.next:hover .pag-arrow{ transform:translateX(5px); }
.pag-text{ display:flex; flex-direction:column; }
.pag-label{
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--off-white-faint);
}
.pag-title{
  margin-top:6px;
  font-family:var(--display);
  font-size:clamp(20px,2.6vw,28px);
  text-transform:uppercase;
  letter-spacing:0.01em;
  color:var(--off-white);
}
.project-pag-cta{
  justify-self:center;
  white-space:nowrap;
}
@media (max-width:700px){
  .project-pagination{
    grid-template-columns:1fr;
    justify-items:stretch;
    gap:32px;
  }
  .project-pag-link.next{
    margin-left:0;
    text-align:right;
  }
  .project-pag-cta{
    justify-self:stretch;
    text-align:center;
  }
}
