/* ByBourcier - Filmmaker & Photographer
   Primary type: Inter (sans). Editorial accents: Playfair Display (serif).
   Palette: near-black, off-white, muted gold used sparingly as an accent. */

:root {
  --black: #0A0A0C;
  --black-soft: #121215;
  --black-line: #232326;
  --gold: #C9A84C;
  --gold-dim: rgba(201, 168, 76, 0.55);
  --off: #F4F1EA;
  --off-dim: #9C9A94;
  --off-faint: #605F5B;
  --error: #D9695A;
  --max-w: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--off);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
}

/* film-grain overlay - plain low-opacity layer, not mix-blend-mode.
   Blend-mode compositing cost scales with viewport pixel area and gets
   recalculated continuously during scroll/video playback; on large and
   ultrawide/curved displays that was dropping frames. Alpha opacity at
   this strength looks effectively identical and is nearly free to render. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  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");
}

h1, h2, h3, h4, p, ul, blockquote, figure { margin: 0; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  z-index: 300;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */

.reveal {
  opacity: 1;
  transform: none;
}
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
html.cursor-active .cursor { opacity: 1; }
html.cursor-active { cursor: none; }
html.cursor-active a,
html.cursor-active button { cursor: none; }

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.12s var(--ease);
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cursor-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
html.cursor-view .cursor-ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: rgba(201,168,76,0.08); }
html.cursor-view .cursor-label { opacity: 1; }
html.cursor-play .cursor-ring,
html.cursor-film .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--gold); border-color: var(--gold); }
html.cursor-play .cursor-label,
html.cursor-film .cursor-label { opacity: 1; color: var(--black); }
html.cursor-down .cursor-ring { transform: scale(0.7); }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
}
/* No backdrop-filter here: the header sits directly over the autoplaying
   hero video for most of the scroll range, and blur has to re-sample the
   live video frame underneath on every composite - that per-frame cost
   was the "video lagging hard in background" complaint. A solid,
   near-opaque background reads almost identically without it. */
.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.94);
  border-bottom: 1px solid var(--black-line);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  color: var(--off);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.primary-nav a {
  color: var(--off-dim);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--off); }

.nav-cta {
  border: 1px solid var(--black-line);
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--off) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.nav-cta:hover { border-color: var(--gold); color: var(--gold) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--off);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media-fallback {
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(circle at 75% 20%, rgba(201, 168, 76, 0.14), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(201, 168, 76, 0.07), transparent 50%),
    linear-gradient(160deg, #16161a 0%, #0a0a0c 65%);
  animation: heroDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}
/* Once the real video is actually playing, it fully covers this layer -
   stop animating it so it's not still competing for compositor time on
   every frame behind an opaque video. */
.hero-media.is-playing .hero-media-fallback,
.project-hero-media.is-playing .project-hero-fallback {
  animation-play-state: paused;
}
@keyframes heroDrift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.92) 0%, rgba(10,10,12,0.35) 45%, rgba(10,10,12,0.5) 100%);
}

.hero-inner {
  position: relative;
  padding-bottom: 90px;
  padding-top: 140px;
  width: 100%;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 26px;
  font-weight: 500;
}

.line-mask { display: block; overflow: hidden; }
.hero-title {
  font-size: clamp(2.6rem, 8.4vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--off);
  text-transform: uppercase;
}
.hero-title .line { display: block; }

.hero-scroll {
  margin-top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--off-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease, gap 0.25s ease;
}
.hero-scroll:hover { color: var(--gold); gap: 16px; }
.hero-scroll-arrow { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Sections generic ---------- */

.section { padding: 140px 0; }

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  margin-bottom: 18px;
  font-weight: 500;
}
.kicker-center { text-align: center; }

.section-title-lg {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--off);
  text-transform: uppercase;
  max-width: 720px;
}

.section-head { margin-bottom: 70px; }

.text-link {
  color: var(--off);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--black-line);
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { border-color: var(--gold); color: var(--gold); }

.btn {
  display: inline-block;
  padding: 16px 36px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover { background: transparent; color: var(--gold); }

/* ---------- Intro ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "kicker side" "title side";
  gap: 48px;
  align-items: start;
}
.intro-grid > .kicker { grid-area: kicker; }
.intro-title {
  grid-area: title;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  color: var(--off);
}
.intro-side {
  grid-area: side;
  padding-top: 8px;
}
.intro-side p { color: var(--off-dim); margin-bottom: 22px; max-width: 420px; }

/* ---------- Showreel ---------- */

.showreel {
  position: relative;
  padding: 40px 0 100px;
  text-align: center;
}
.showreel-label {
  color: var(--off-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 26px;
}
.showreel-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 720px;
  overflow: hidden;
  background: var(--black-soft);
}
.showreel-media-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,168,76,0.10), transparent 55%),
    linear-gradient(135deg, #17171b, #0a0a0c 70%);
}
.showreel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(10,10,12,0.4);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.showreel-play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(201,168,76,0.12); }
.showreel-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold);
  transform: translateX(3px);
}
.showreel.is-playing .showreel-play-icon {
  width: 14px;
  height: 22px;
  border: none;
  background: transparent;
  position: relative;
}
.showreel.is-playing .showreel-play-icon::before,
.showreel.is-playing .showreel-play-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 22px;
  background: var(--gold);
}
.showreel.is-playing .showreel-play-icon::before { left: 2px; }
.showreel.is-playing .showreel-play-icon::after { right: 2px; }

.showreel-sound {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: rgba(10,10,12,0.5);
  border: 1px solid var(--black-line);
  color: var(--off-dim);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.showreel-sound:hover { border-color: var(--gold); color: var(--gold); }

.showreel-caption {
  margin-top: 26px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--off-dim);
  font-size: 1.1rem;
}

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

.portfolio-item {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--black-soft);
}
.portfolio-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.portfolio-media-fallback { position: absolute; inset: 0; }
.fb-01 { background: linear-gradient(150deg, #1c1c22 0%, #0a0a0c 70%); }
.fb-02 { background: linear-gradient(200deg, #221c1a 0%, #0a0a0c 70%); }
.fb-03 { background: linear-gradient(140deg, #1a1e22 0%, #0a0a0c 70%); }

.portfolio-item .bg-video,
.portfolio-item video { opacity: 0; transition: opacity 0.5s ease; }
.portfolio-item.is-video-active .bg-video { opacity: 1; }

.portfolio-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.88) 0%, rgba(10,10,12,0.05) 42%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.portfolio-media-fallback,
.portfolio-item .bg-video,
.portfolio-photo {
  transition: transform 0.7s var(--ease), opacity 0.5s ease;
}
.portfolio-item:hover .portfolio-media-fallback,
.portfolio-item:hover .bg-video,
.portfolio-item:hover .portfolio-photo { transform: scale(1.05); }

.portfolio-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.portfolio-index {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.portfolio-caption-text h3 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: var(--off);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.portfolio-caption-text p {
  color: var(--off-dim);
  font-size: 0.82rem;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.portfolio-cta {
  color: var(--off);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-item:hover .portfolio-cta { opacity: 1; transform: translateX(0); }

.p-01 { grid-column: 1 / 13; aspect-ratio: 21 / 10; }
.p-02 { grid-column: 1 / 6; aspect-ratio: 3 / 4; }
.p-03 { grid-column: 8 / 13; aspect-ratio: 3 / 4; }

/* ---------- Services ---------- */

.services-body {
  position: relative;
  margin-top: 60px;
}
.services-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: hidden;
  pointer-events: none;
}
.services-body.is-hover .services-media,
.services-body:has(.service-item:hover) .services-media,
.services-body:has(.service-item:focus-visible) .services-media { opacity: 1; }
.services-media-layer {
  position: absolute;
  inset: 0;
  transition: background 0.4s ease;
}
.services-media-layer[data-active="commercial"] { background: radial-gradient(circle at 70% 40%, rgba(201,168,76,0.14), transparent 60%), linear-gradient(150deg, #18181c, #0a0a0c); }
.services-media-layer[data-active="automotive"] { background: radial-gradient(circle at 30% 60%, rgba(201,168,76,0.12), transparent 60%), linear-gradient(160deg, #14181c, #0a0a0c); }
.services-media-layer[data-active="social"] { background: radial-gradient(circle at 60% 30%, rgba(201,168,76,0.12), transparent 60%), linear-gradient(140deg, #1c1618, #0a0a0c); }
.services-media-layer[data-active="events"] { background: radial-gradient(circle at 40% 70%, rgba(201,168,76,0.12), transparent 60%), linear-gradient(170deg, #181a14, #0a0a0c); }
.services-media-layer[data-active="product"] { background: radial-gradient(circle at 65% 65%, rgba(201,168,76,0.14), transparent 60%), linear-gradient(155deg, #1a1a1e, #0a0a0c); }
.services-media-layer[data-active="direction"] { background: radial-gradient(circle at 35% 35%, rgba(201,168,76,0.14), transparent 60%), linear-gradient(145deg, #16181a, #0a0a0c); }

.services-list { list-style: none; padding: 0; position: relative; z-index: 1; }
.services-list li { border-top: 1px solid var(--black-line); }
.services-list li:last-child { border-bottom: 1px solid var(--black-line); }

.service-item {
  display: flex;
  align-items: baseline;
  gap: 26px;
  padding: 30px 8px;
  text-decoration: none;
  transition: padding 0.3s var(--ease);
}
.service-item:hover,
.service-item:focus-visible { padding-left: 26px; }
.service-index {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  width: 34px;
  flex-shrink: 0;
}
.service-name {
  color: var(--off);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  flex: 1;
}
.service-desc {
  color: var(--off-faint);
  font-size: 0.86rem;
  max-width: 260px;
  text-align: right;
}

/* ---------- About / Over ---------- */

.over-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.over-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.over-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--black-line);
}
.over-tag {
  position: absolute;
  left: -1px;
  bottom: -1px;
  background: var(--black);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
  padding: 14px 20px;
}

.over-text h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: var(--off);
}
.over-text p { color: var(--off-dim); margin-bottom: 20px; max-width: 480px; }

/* ---------- Clients ---------- */

.clients-row {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 46px;
  margin-top: 8px;
}
.clients-row li {
  color: var(--off-faint);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.clients-row li:hover { opacity: 1; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}

.contact-info h2 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 4px 0 40px;
  color: var(--off);
}

.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; color: var(--off); }
.contact-label { color: var(--off-faint); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-list a { color: var(--off); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--black-line);
  padding: 44px;
  border-radius: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; }
.contact-form label {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--black-soft);
  border: 1px solid var(--black-line);
  color: var(--off);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 2px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form button { margin-top: 26px; }
.form-note { color: var(--off-faint); font-size: 0.78rem; margin-top: 14px; }

.field-error {
  display: block;
  min-height: 0;
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 6px;
}
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
}

.option-group {
  border: none;
  padding: 0;
  margin: 0;
}
.option-group legend {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 0;
}
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form .option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--off);
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
}
.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex: none;
}
.option-group.has-error .option-list {
  outline: 1px solid var(--error);
  outline-offset: 8px;
}

/* ---------- Multi-step contact form ---------- */

.form-progress {
  background: var(--black-line);
  border-radius: 2px;
  height: 3px;
  overflow: hidden;
}
.form-progress-bar {
  background: var(--gold);
  height: 100%;
  width: 11.11%;
  transition: width 0.35s var(--ease);
}
.form-step-counter {
  color: var(--off-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 10px 0 0;
}

.form-step {
  display: none;
  animation: form-step-in 0.35s var(--ease);
}
.form-step.is-active { display: flex; }
fieldset.form-step.is-active { display: block; }
.form-row.form-step.is-active { display: grid; }

@keyframes form-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.form-nav .btn { margin-top: 0; }
.form-nav-back {
  background: none;
  border: none;
  color: var(--off-dim);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 0;
}
.form-nav-back:hover { color: var(--gold); }
.form-nav-back[hidden] { display: none; }
.form-nav .btn[hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--black-line);
  padding: 56px 0;
  background: var(--black);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand span { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--off); }
.footer-brand p { color: var(--off-faint); font-size: 0.82rem; margin-top: 8px; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: var(--off-dim); text-decoration: none; font-size: 0.86rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { width: 100%; text-align: center; color: var(--off-faint); font-size: 0.76rem; margin-top: 26px; opacity: 0.7; }

/* ==========================================================
   PROJECT DETAIL PAGES
   ========================================================== */

.project-hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.project-hero-media { position: absolute; inset: 0; }
.project-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero-fallback {
  position: absolute;
  inset: -6%;
  background: linear-gradient(150deg, #1a1a1e 0%, #0a0a0c 68%);
  animation: heroDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.project-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.94) 0%, rgba(10,10,12,0.25) 50%, rgba(10,10,12,0.4) 100%);
}
.project-hero-inner { position: relative; padding: 140px 0 70px; }
.project-hero-inner .eyebrow { margin-bottom: 18px; }
.project-hero-inner h1 {
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--off);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--black-line);
}
.project-meta-grid .label {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.project-meta-grid p { color: var(--off); font-size: 0.98rem; }

.project-desc { padding: 60px 0; max-width: 680px; }
.project-desc p { color: var(--off-dim); font-size: 1.15rem; line-height: 1.75; }

.project-media {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
  margin-bottom: 26px;
}
.project-media.full { aspect-ratio: 21 / 9; margin-left: 0; }
.project-media.vertical { aspect-ratio: 3 / 4; max-width: 640px; margin: 0 auto 26px; }
.project-media-fallback { position: absolute; inset: 0; background: linear-gradient(155deg, #1a1a1e, #0a0a0c 70%); }

.project-media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-bottom: 26px;
}
.project-media-duo .project-media { aspect-ratio: 4 / 5; margin-bottom: 0; }

.project-carousel {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
  aspect-ratio: 4 / 5;
  max-width: 640px;
  margin: 0 auto 26px;
}
.project-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease);
}
.project-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.project-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(6px);
  color: var(--off);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.project-carousel-arrow:hover { background: rgba(201, 168, 76, 0.16); border-color: var(--gold); }
.project-carousel-arrow.prev { left: 16px; }
.project-carousel-arrow.next { right: 16px; }
.project-carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.project-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(10, 10, 12, 0.5);
  padding: 0;
  cursor: pointer;
}
.project-carousel-dot.is-active { background: var(--gold); border-color: var(--gold); }

.project-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--black-line);
  padding: 40px 32px;
  max-width: var(--max-w);
  margin: 60px auto 0;
}
.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--off);
}
.project-nav-link span { color: var(--off-faint); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.project-nav-link strong { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.project-nav-link.next { text-align: right; align-items: flex-end; }
.project-nav-link:hover strong { color: var(--gold); }
.project-nav-back {
  color: var(--off-dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--black-line);
  padding: 10px 20px;
  border-radius: 999px;
}
.project-nav-back:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "side"; gap: 26px; }
  .p-02 { grid-column: 1 / 13; }
  .p-03 { grid-column: 1 / 13; }
  .services-media { display: none; }
  .project-meta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .over-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .over-visual { aspect-ratio: 16 / 10; }
  .form-row { grid-template-columns: 1fr; }
  .project-media-duo { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    padding-top: 96px;
    background: var(--black);
    border-bottom: 1px solid var(--black-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 30px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--black-line); font-size: 1rem; }
  .nav-cta { margin-top: 16px; text-align: center; border-radius: 999px; }
  .section { padding: 90px 0; }
  .hero-title { font-size: clamp(2.4rem, 12vw, 4.4rem); }
}

@media (max-width: 480px) {
  .p-01 { aspect-ratio: 1 / 1; }
}

@media (max-width: 560px) {
  .service-desc { display: none; }
  .service-name { font-size: 1.5rem; }
  .clients-row { gap: 28px; }
  .project-nav { flex-direction: column; gap: 22px; align-items: flex-start; }
  .project-nav-link.next { align-items: flex-start; text-align: left; }
}
