/* =========================================================
   JULY EFFECT — Solarpunk × Cinematic
   Layout: full-bleed cinematic hero, ivory panels that rise over it,
   One deliberate look (warm ivory + charcoal), not theme-switched.
   ========================================================= */
:root {
  --ivory: #F5F0E6;
  --paper: #FBF8F1;
  --charcoal: #1C1A16;
  --charcoal-2: #2A2721;
  --ink-soft: #4B463C;
  --muted: #857E70;
  --orange: #FF7A1A;
  --orange-deep: #E8620A;
  --sky: #8DC3E8;
  --sage: #7C9870;
  --line: rgba(28, 26, 22, .12);
  --line-light: rgba(255, 248, 235, .22);
  --mark-accent: var(--orange);

  --f-display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.5vw, 72px);
  --maxw: 1400px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { -webkit-tap-highlight-color: rgba(255, 122, 26, .18); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open, body.lightbox-open, body.quote-open { overflow: hidden; touch-action: none; }
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--charcoal);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 18px;
}
.eyebrow-light { color: #FFF6E8; display: inline-block; padding-bottom: 8px; border-bottom: 2px solid var(--orange); }
.h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12;
  letter-spacing: -.02em; margin: 0 0 22px; text-wrap: balance;
}
.h2-light { color: #FFF8EC; }
.label-xl {
  font-family: var(--f-display); font-weight: 500;
  font-size: 15px; letter-spacing: .32em; text-transform: uppercase; margin: 0;
}
.rule-label {
  display: flex; align-items: center; gap: 18px; justify-content: center;
  font-family: var(--f-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--orange-deep); margin: 0;
}
.rule-label span { white-space: nowrap; }
.rule-label::before, .rule-label::after { content: ""; height: 1px; background: var(--line); flex: 0 1 140px; min-width: 16px; }
.rule-left { justify-content: flex-start; }
.rule-left::before { display: none; }
.rule-left::after { flex: 1 1 auto; }
.link-arrow {
  font-family: var(--f-display); font-weight: 500; font-size: 14px;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
  display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
}
.link-arrow span { color: var(--orange); transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translate(2px, -2px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 15px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-orange { background: var(--orange); color: #1A1008; box-shadow: 0 10px 30px -12px rgba(255, 122, 26, .8); }

.btn-ghost { border-color: rgba(255, 248, 235, .75); color: #FFF8EC; background: rgba(20, 18, 14, .15); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #FFF8EC; color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--paper); }
.btn-dark:hover { background: var(--charcoal-2); }
.tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.arrow { font-size: 1.05em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, color .35s;
  color: #FFF8EC;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .35s var(--ease); }
.site-header.solid {
  background: rgba(245, 240, 230, .88); color: var(--charcoal);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.solid .header-inner { height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand-mark { width: 56px; height: 44px; color: currentColor; }
.site-header.solid .brand-mark { width: 46px; height: 36px; }
.brand-word {
  font-family: var(--f-display); font-weight: 400; font-size: 17px;
  letter-spacing: .42em; text-transform: uppercase; white-space: nowrap;
}
.header-rule { width: 1px; height: 36px; background: currentColor; opacity: .35; }
.nav { display: flex; gap: clamp(20px, 3.4vw, 56px); margin-inline: auto; }
.nav a {
  font-family: var(--f-display); font-size: 13.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; margin-left: auto; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Letterbox load moment ---------- */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #FFF8EC;
  min-height: clamp(620px, 92vh, 940px);
  min-height: clamp(620px, 92svh, 940px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 150px 150px;
  background: var(--charcoal);
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: -2%;
  background: url("../img/hero-city.jpg") 70% 40% / cover no-repeat;
  background-image: image-set(url("../img/hero-city.webp") type("image/webp"), url("../img/hero-city.jpg") type("image/jpeg"));
  animation: drift 32s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, -1%, 0); } }
.hero-sun {
  position: absolute; width: 60vmax; height: 60vmax; right: -14vmax; top: -26vmax;
  background: radial-gradient(circle, rgba(255, 214, 150, .55) 0%, rgba(255, 170, 80, .18) 30%, transparent 62%);
  mix-blend-mode: screen; animation: flare 7s ease-in-out infinite alternate;
}
@keyframes flare { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 22, 14, .92) 0%, rgba(40, 28, 16, .72) 30%, rgba(40, 28, 16, .25) 58%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(0deg, rgba(28, 26, 22, .7) 0%, rgba(28, 26, 22, 0) 30%),
    linear-gradient(180deg, rgba(20, 16, 10, .55) 0%, rgba(20, 16, 10, 0) 22%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(40px, 5.8vw, 86px); line-height: 1.02;
  letter-spacing: -.03em; margin: 8px 0 26px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .slash { color: var(--orange); font-weight: 400; margin-left: .12em; display: inline-block; transform: skewX(-8deg); }
.hero-title .line > span { animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
.hero-intro { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; max-width: 46ch; color: rgba(255, 248, 236, .9); margin: 0 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-hud {
  position: absolute; left: 0; right: 0; bottom: 104px; z-index: 2;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 248, 236, .75); font-variant-numeric: tabular-nums;
}
.rec { display: inline-flex; align-items: center; gap: 7px; color: #FFF8EC; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF4D2E; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hud-sep { opacity: .5; }

/* ---------- Services ---------- */
.services { position: relative; z-index: 5; margin-top: -84px; }
.services-panel {
  background: rgba(251, 248, 241, .96);
  backdrop-filter: blur(10px);
  border-radius: 22px 22px var(--radius) var(--radius);
  padding: 26px clamp(18px, 3vw, 44px) 30px;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 15, .45);
}
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.service {
  display: flex; gap: 16px; align-items: flex-start; padding: 10px clamp(12px, 2vw, 30px);
  border-left: 1px solid var(--line); position: relative;
}
.service:first-child { border-left: 0; padding-left: 0; }
.service-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--charcoal); transition: color .3s, transform .4s var(--ease); }

.service h3 { font-family: var(--f-display); font-size: 17px; font-weight: 600; margin: 0 0 2px; letter-spacing: -.01em; }
.service p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.service .detail { margin-top: 10px; color: var(--muted); font-size: 13.5px; }

/* ---------- Work cards ---------- */
.selected { padding-block: clamp(64px, 8vw, 110px) 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.work-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.work-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10.5; max-width: 100%; text-decoration: none; color: #FFF8EC;
  background: var(--charcoal-2); isolation: isolate;
  animation: card-in .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes card-in { from { transform: translateY(14px); } to { transform: none; } }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: saturate(.92); }

.card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(18, 15, 10, .86) 0%, rgba(18, 15, 10, .25) 45%, rgba(18, 15, 10, 0) 70%);
}
.card-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 190, 110, .55), transparent 45%),
    linear-gradient(160deg, #3E5A6E 0%, #556B4E 55%, #2B2720 100%);
}
.card-fallback span {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: .02em; color: rgba(255, 248, 236, .55); padding: 0 18px; text-align: center; line-height: 1.15;
  transform: translateY(-30px); text-transform: uppercase;
}
.card-body { position: absolute; left: 18px; right: 70px; bottom: 16px; z-index: 2; }
.card-title { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.2; margin: 0 0 3px; letter-spacing: -.01em; }
.card-meta { font-size: 13px; color: rgba(255, 248, 236, .82); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 6px; line-height: 1; white-space: nowrap;
  background: rgba(20, 17, 12, .6); color: #FFF8EC; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
.badge-production { background: var(--orange); color: #1A1008; }
.badge-production::before { background: #1A1008; }
.badge-motion::before { background: #B7D49B; }
.card > .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.play {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid rgba(255, 248, 236, .9);
  display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.play::before { content: ""; border-left: 10px solid #FFF8EC; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; margin-left: 3px; transition: border-color .3s; }


/* viewfinder corners on hover */
.vf { position: absolute; inset: 12px; z-index: 2; pointer-events: none; }
.vf::before, .vf::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--orange); opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.vf::before { top: 0; right: 0; border-left: 0; border-bottom: 0; transform: translate(6px, -6px); }
.vf::after { bottom: 52px; left: 0; border-right: 0; border-top: 0; transform: translate(-6px, 6px); }

.work-grid-4 .card:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.work-grid-4 .card:first-child .card-title { font-size: clamp(22px, 2.2vw, 32px); }

/* ---------- Clients marquee ---------- */
.clients { padding-block: 56px 20px; }
.clients-head { margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 48s linear infinite; padding-block: 6px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -.01em; color: var(--charcoal); opacity: .78; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: ""; width: 9px; height: 9px; background: var(--orange); transform: skewX(-20deg); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding-block: clamp(70px, 9vw, 130px) clamp(60px, 7vw, 100px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-body p { margin: 0 0 16px; color: var(--ink-soft); font-size: 17px; max-width: 58ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stats div { min-width: 0; }
.stats dt { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dt sup { color: var(--orange); font-size: .5em; margin-left: 2px; }
.stats dd { margin: 8px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.about-figure { margin: 0; }
.frame { position: relative; border-radius: 6px; overflow: hidden; background: var(--charcoal); padding-block: 22px; box-shadow: 0 40px 70px -40px rgba(30, 20, 5, .6); }
.frame img { width: 100%; height: auto; aspect-ratio: 1228 / 768; object-fit: cover; max-width: 100%; }
.frame .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--orange); }
.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.mono-cap { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono-cap span:first-child { color: var(--orange-deep); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 7vw, 90px); }
.principle { padding: 28px 26px 30px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; }
.principle::before { content: ""; position: absolute; left: 26px; top: 0; width: 34px; height: 4px; background: var(--orange); transform: skewX(-24deg); }
.principle h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; margin: 6px 0 8px; letter-spacing: -.01em; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.team-wrap { margin-top: clamp(56px, 7vw, 90px); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.member { min-width: 0; }
.member-photo {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden; position: relative;
  background: radial-gradient(circle at 70% 20%, rgba(255, 196, 120, .7), transparent 50%), linear-gradient(170deg, #A9CDE6 0%, #8FA986 60%, #4A5240 100%);
  display: grid; place-items: end start;
}
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-photo .initials { font-family: var(--f-display); font-weight: 600; font-size: 64px; color: rgba(255, 248, 236, .85); padding: 0 18px 4px; line-height: 1; letter-spacing: -.04em; }
.member h3 { font-family: var(--f-display); font-weight: 600; font-size: 17px; margin: 14px 0 0; }
.member p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Page head (work) ---------- */
.page-head { position: relative; overflow: hidden; color: #FFF8EC; padding-block: 160px 70px; background: var(--charcoal); }
.page-head-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 22, 14, .92), rgba(28, 22, 14, .55)), url("../img/hero-city.jpg") 60% 45% / cover; }
.page-head-bg { background-image: linear-gradient(90deg, rgba(28, 22, 14, .92), rgba(28, 22, 14, .55)), image-set(url("../img/hero-city.webp") type("image/webp"), url("../img/hero-city.jpg") type("image/jpeg")); }
.page-head .wrap { position: relative; }
.page-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6vw, 80px); letter-spacing: -.03em; line-height: 1; margin: 10px 0 14px; }
.page-sub { margin: 0; color: rgba(255, 248, 236, .8); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.work-body { padding-block: 40px 100px; }
.filter-block { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 14px; }
.filter-label { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters[hidden] { display: none; }
.scope-note { margin: 4px 0 0; padding: 14px 18px; border-left: 3px solid var(--orange); background: var(--paper); border-radius: 0 10px 10px 0; color: var(--ink-soft); font-size: 15px; max-width: 70ch; }
#allGrid { margin-top: 30px; }
.filter {
  border: 1.5px solid var(--line); background: transparent; border-radius: 999px; min-height: 44px; padding: 0 18px;
  font-family: var(--f-display); font-weight: 500; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s, color .25s, border-color .25s;
}
.filter small { font-family: var(--f-mono); font-size: 11px; opacity: .6; }
.filter:hover { border-color: var(--charcoal); }
.filter[aria-pressed="true"] { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }

/* ---------- Project page ---------- */
.project-hero { position: relative; overflow: hidden; color: #FFF8EC; background: var(--charcoal); padding-block: 130px 56px; }
.project-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.1) brightness(.45); transform: scale(1.1); }
.project-hero .wrap { position: relative; }
.back { font-family: var(--f-display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; opacity: .85; display: inline-flex; gap: 10px; align-items: center; }
.back:hover { opacity: 1; color: var(--orange); }
.project-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.03em; margin: 22px 0 28px; max-width: 18ch; text-wrap: balance; }
.player {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #111; width: 100%; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover .card-fallback span { display: none; }
.player-cover .big-play {
  position: absolute; left: 50%; top: 50%; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); transform: translate(-50%, -50%); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255, 122, 26, .25); transition: transform .4s var(--ease), box-shadow .4s;
}
.player-cover .big-play::before { content: ""; border-left: 22px solid #1A1008; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.player-cover:hover .big-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 16px rgba(255, 122, 26, .2); }
.player-note { margin: 12px 0 0; font-size: 13px; color: rgba(255, 248, 236, .7); }
.player-note a { color: #FFF8EC; }
.project-info { padding-block: 56px 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(30px, 5vw, 80px); }
.meta-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.meta-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.meta-list dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.meta-list dd { margin: 0; font-family: var(--f-display); font-weight: 500; }
.project-desc p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-soft); margin: 0 0 22px; max-width: 58ch; }
.project-nav { border-top: 1px solid var(--line); margin-top: 40px; }
.next-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; text-decoration: none; padding-block: 40px; }
.next-link small { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.next-link strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 4vw, 54px); letter-spacing: -.03em; line-height: 1.05; transition: color .3s; }
.next-link:hover strong { color: var(--orange-deep); }
.next-link .play { position: static; border-color: var(--charcoal); width: 56px; height: 56px; }
.next-link .play::before { border-left-color: var(--charcoal); }
.related { padding-block: 10px 90px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; color: #FFF8EC; background: var(--charcoal); padding-block: clamp(70px, 9vw, 120px); }
.contact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 0%, rgba(255, 140, 50, .28), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(141, 195, 232, .14), transparent 55%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-lead { color: rgba(255, 248, 236, .78); font-size: 17px; max-width: 42ch; margin: 0 0 30px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.contact-list small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 248, 236, .55); }
.contact-list a, .contact-list span { font-family: var(--f-display); font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--orange); }
.copy-btn { margin-left: 10px; min-height: 30px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; background: none; border: 1px solid var(--line-light); color: rgba(255, 248, 236, .75); border-radius: 6px; padding: 3px 8px; cursor: pointer; vertical-align: middle; }
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-light); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #1A1008; }
.socials svg { width: 19px; height: 19px; }
.enquiry { background: rgba(255, 248, 236, .05); border: 1px solid var(--line-light); border-radius: 20px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; backdrop-filter: blur(8px); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .chips-field legend { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 248, 236, .62); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(0, 0, 0, .22); border: 1px solid var(--line-light); border-radius: 10px;
  color: #FFF8EC; font: inherit; font-size: 16px; padding: 12px 14px; transition: border-color .25s, background .25s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(0, 0, 0, .32); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 248, 236, .38); }
.field.invalid input, .field.invalid textarea { border-color: #FF6B4A; }
.chips-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips-field legend { margin-bottom: 9px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid var(--line-light); border-radius: 999px; padding: 8px 16px; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--orange); color: #1A1008; border-color: var(--orange); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 14px; color: rgba(255, 248, 236, .85); flex: 1 1 220px; }
.form-status.error { color: #FF9C80; }

/* ---------- Footer ---------- */
.site-footer { background: #15130F; color: rgba(255, 248, 236, .8); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); }
.brand-footer .brand-mark { width: 40px; height: 32px; color: #FFF8EC; }
.brand-footer .brand-word { font-size: 14px; color: #FFF8EC; }
.footer-note { margin: 0; font-size: 13px; font-family: var(--f-mono); letter-spacing: .08em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 10, 8, .92); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.lightbox-inner { width: min(1200px, 100%); }
.lightbox-close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: calc(18px + env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 248, 236, .5); background: none; color: #FFF8EC; font-size: 18px; cursor: pointer; }
.lightbox-close:hover { background: var(--orange); border-color: var(--orange); color: #1A1008; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .work-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid-4 .card:first-child { grid-row: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .service:nth-child(3) { border-left: 0; padding-left: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-rule, .header-cta { display: none; }
  .menu-btn { display: block; }
  .menu-open .site-header { background: var(--charcoal); color: #FFF8EC; }
  .menu-open .nav {
    display: flex; flex-direction: column; gap: 0; position: fixed; left: 0; right: 0;
    top: calc(env(safe-area-inset-top, 0px) + 70px); bottom: 0;
    background: var(--charcoal); color: #FFF8EC;
    padding: 20px max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .menu-open .nav a { font-size: 28px; letter-spacing: .02em; text-transform: none; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
  .menu-open .site-header .header-inner { height: 70px; }
  .work-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .contact-grid, .project-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { height: 70px; }
  .brand-mark { width: 44px; height: 34px; }
  .brand-word { font-size: 13px; letter-spacing: .32em; }
  .hero { min-height: 0; padding-block: 130px 150px; }
  .hero-img { background-position: 72% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgba(28, 22, 14, .85), rgba(28, 22, 14, .45)), linear-gradient(0deg, rgba(28, 26, 22, .7), rgba(28, 26, 22, 0) 35%); }
  .hero-hud { bottom: 96px; font-size: 10.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .services { margin-top: -70px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .service, .service:nth-child(3) { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .service:first-child { border-top: 0; }
  .work-grid-4, .work-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .work-grid-4 .card:first-child { grid-column: auto; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .meta-list div { grid-template-columns: 90px minmax(0, 1fr); }
  .page-head { padding-block: 120px 50px; }
  .project-hero { padding-block: 110px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* Hover effects only where a mouse exists (avoids 'stuck' hover after a tap on phones) */
@media (hover: hover) and (pointer: fine) {
  .card:hover img { transform: scale(1.07); filter: saturate(1.08); }
  .card:hover .play { background: var(--orange); border-color: var(--orange); transform: scale(1.08); }
  .card:hover .play::before { border-left-color: #1A1008; }
  .card:hover .vf::before, .card:hover .vf::after { opacity: 1; transform: none; }
  .service:hover .service-icon { color: var(--orange-deep); transform: translateY(-3px) rotate(-4deg); }
  .btn-orange:hover { background: #FF8C38; transform: translateY(-1px); }
}
/* Touch feedback */
.card:active { transform: scale(.985); transition: transform .15s; }

/* ---------- Role labels on project page ---------- */
.project-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.project-badges .badge { font-size: 11px; padding: 7px 11px; }
.project-client { font-family: var(--f-display); font-size: 15px; color: rgba(255, 248, 236, .85); }
.project-title { margin-top: 14px; }
.role-callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 900px; }
.role-callout p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.role-callout strong { color: var(--charcoal); font-family: var(--f-display); font-weight: 600; }
.role-dot { width: 10px; height: 10px; margin-top: 7px; flex-shrink: 0; background: var(--orange); transform: skewX(-20deg); }
.project-info { padding-top: 34px; }

/* ---------- Vertical videos (Shorts, Reels) ---------- */
.player.vertical { aspect-ratio: 9 / 16; width: min(420px, 100%); margin-inline: auto; max-height: 82svh; }
.player.vertical.ig { aspect-ratio: 400 / 720; }
.player.ig iframe { background: #fff; }
.player.vertical .player-cover img { object-position: center; }

/* ---------- Floating WhatsApp (phones) ---------- */
.wa-float {
  position: fixed; z-index: 45; display: none; place-items: center;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.scrolled .wa-float { opacity: 1; transform: none; }
@media (max-width: 900px) { .wa-float:not([hidden]) { display: grid; } }

/* ---------- Honeypot (hidden from people, visible to bots) ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.enquiry { position: relative; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Phones: lighter motion, fitted hero ---------- */
@media (max-width: 640px) {
  .hero-img {
    animation: none; transform: none; inset: 0;
    background-image: url("../img/hero-city-mobile.jpg");
    background-image: image-set(url("../img/hero-city-mobile.webp") type("image/webp"), url("../img/hero-city-mobile.jpg") type("image/jpeg"));
    background-position: 60% 30%;
  }
  .hero-sun { display: none; }
  .services-panel, .enquiry, .btn-ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .services-panel { background: var(--paper); }
  .card { animation: none; }
  .filter-block { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-block: 2px; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .role-callout { margin-top: 24px; }
  .marquee-track { animation-duration: 36s; }
  .project-hero-bg { filter: blur(20px) brightness(.45); }
}
@media (max-width: 380px) {
  .brand-word { letter-spacing: .24em; font-size: 12px; }
  .hero-title { font-size: 36px; }
  .stats dt { font-size: 26px; }
}

/* ---------- WhatsApp button in Contact ---------- */
.wa-cell { display: grid; gap: 8px; justify-items: start; }
.btn-wa { background: #25D366; color: #0B1F12; height: 46px; padding: 0 22px 0 18px; font-size: 15px; box-shadow: 0 10px 28px -14px rgba(37, 211, 102, .9); }
.btn-wa svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-list a.btn-wa { font-size: 15px; color: #0B1F12; }
.contact-list a.btn-wa:hover { color: #0B1F12; background: #3BE07A; }
.wa-hint { font-size: 13px; color: rgba(255, 248, 236, .6); font-family: var(--f-body); }

/* =========================================================
   Call-to-action: REC dot, header swap, clapperboard slate
   ========================================================= */
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #FFF6EC; box-shadow: 0 0 0 3px rgba(26, 16, 8, .25); flex-shrink: 0; animation: rec-pulse 1.4s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: .25; } }

.header-cta { gap: 10px; }
.cta-swap { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.cta-swap > span { grid-area: 1 / 1; transition: transform .35s var(--ease); white-space: nowrap; }
.cta-swap > span:last-child { transform: translateY(110%); }
@media (hover: hover) and (pointer: fine) {
  .header-cta:hover .cta-swap > span:first-child { transform: translateY(-110%); }
  .header-cta:hover .cta-swap > span:last-child { transform: none; }
}
.menu-cta { display: none; }

.slate-cta { padding-block: clamp(56px, 7vw, 96px); background: var(--ivory); }
.slate { position: relative; max-width: 1100px; margin-inline: auto; border-radius: 14px; background: var(--charcoal); color: #FFF8EC; box-shadow: 0 40px 70px -40px rgba(30, 20, 5, .65); }
.clapper { position: relative; height: 54px; }
.stick {
  position: absolute; left: 0; right: 0; height: 27px;
  background: repeating-linear-gradient(-55deg, #1C1A16 0 26px, #F5F0E6 26px 52px);
  border: 2px solid #1C1A16;
}
.stick-bottom { bottom: 0; border-radius: 0; }
.stick-top { top: 0; border-radius: 14px 14px 0 0; transform-origin: 14px 100%; background: repeating-linear-gradient(55deg, #1C1A16 0 26px, var(--orange) 26px 52px); }
.slate.clap .stick-top { animation: clap .9s var(--ease) both; }
@keyframes clap { 0% { transform: rotate(0); } 35% { transform: rotate(-11deg); } 70% { transform: rotate(0); } 80% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
.slate-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); }
.slate-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-light); border-radius: 10px; overflow: hidden; align-self: start; }
.slate-grid div { padding: 14px 16px; min-width: 0; }
.slate-grid div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line-light); }
.slate-grid div:nth-child(2), .slate-grid div:nth-child(3) { border-right: 1px solid var(--line-light); }
.slate-grid dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 248, 236, .55); }
.slate-grid dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.slate-grid div:first-child dd { color: var(--orange); font-size: 22px; }
.slate-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.slate-sub { margin: 0 0 26px; color: rgba(255, 248, 236, .75); font-size: 16.5px; max-width: 46ch; }
.btn-action { height: 54px; padding: 0 30px; font-size: 16px; gap: 12px; }
@media (hover: hover) and (pointer: fine) { .btn-action:hover .arrow { transform: translateY(3px); } }
.btn-action .arrow { display: inline-block; transition: transform .3s var(--ease); }

@media (max-width: 900px) {
  .menu-open .nav .menu-cta { display: inline-flex; margin-top: 24px; align-self: flex-start; font-size: 17px; letter-spacing: 0; text-transform: none; height: 52px; padding: 0 26px; border-bottom: 0; color: #1A1008; }
  .menu-open .nav .menu-cta::after { display: none; }
}
@media (max-width: 760px) {
  .slate-body { grid-template-columns: minmax(0, 1fr); }
  .clapper { height: 44px; }
  .stick { height: 22px; }
  .btn-action { width: 100%; }
}



/* =========================================================
   Golden-hour light sweep: the hero starts at dusk, a band of sunrise
   light sweeps across, a lens flare blooms, then the headline lands.
   ========================================================= */
.hero-img { animation: hero-dusk 1.9s cubic-bezier(.3, .6, .3, 1) both, drift 32s ease-in-out 1.9s infinite alternate; }
@keyframes hero-dusk {
  0%, 18% { filter: brightness(.28) saturate(.4) sepia(.4) hue-rotate(-14deg) contrast(1.12); }
  60%     { filter: brightness(.9) saturate(1) sepia(.1); }
  100%    { filter: none; }
}
.hero-sweep {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 196, 120, 0) 41%, rgba(255, 212, 150, .85) 50%, rgba(255, 196, 120, 0) 59%, transparent 62% 100%);
  background-size: 300% 100%; background-position: 100% 0; opacity: 0;
  animation: hero-sweep 1.5s cubic-bezier(.45, 0, .2, 1) .3s both;
}
@keyframes hero-sweep { 0% { background-position: 100% 0; opacity: 1; } 85% { opacity: 1; } 100% { background-position: 0 0; opacity: 0; } }
.hero-flare {
  position: absolute; right: 8%; top: 6%; width: 0; height: 0; pointer-events: none; mix-blend-mode: screen;
}
.hero-flare::before {
  content: ""; position: absolute; left: -38vw; top: -2px; width: 76vw; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 180, .95) 50%, transparent);
  transform: scaleX(.15); opacity: 0; animation: flare-streak 1.8s cubic-bezier(.2, .7, .2, 1) .55s both;
}
.hero-flare::after {
  content: ""; position: absolute; left: -130px; top: -130px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 200, .9) 0%, rgba(255, 190, 110, .35) 30%, transparent 65%);
  transform: scale(.3); opacity: 0; animation: flare-bloom 1.8s cubic-bezier(.2, .7, .2, 1) .45s both;
}
@keyframes flare-streak { 0% { opacity: 0; transform: scaleX(.15); } 35% { opacity: 1; transform: scaleX(1); } 100% { opacity: .28; transform: scaleX(.85); } }
@keyframes flare-bloom { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1.15); } 100% { opacity: .45; transform: scale(1); } }
/* headline lands as the light arrives */
.hero-title .line > span { animation-delay: .7s; }
.hero-title .line:nth-child(2) > span { animation-delay: .82s; }
.hero-inner .eyebrow, .hero-intro, .hero-actions, .hero-hud { animation: hero-in .7s var(--ease) both; }
.hero-inner .eyebrow { animation-delay: .55s; }
.hero-intro { animation-delay: 1s; }
.hero-actions { animation-delay: 1.1s; }
.hero-hud { animation-delay: 1.25s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hero-img { animation: hero-dusk 1.9s cubic-bezier(.3, .6, .3, 1) both; }
  .hero-flare { right: 14%; top: 4%; }
  .hero-flare::after { left: -90px; top: -90px; width: 180px; height: 180px; }
}

/* =========================================================
   "Build your shot" quiz
   ========================================================= */
.quiz { gap: 20px; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.q-top[hidden], .q-nav[hidden] { display: none; }
.q-count { margin: 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 248, 236, .65); font-variant-numeric: tabular-nums; }
.q-frames { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.q-frames li { width: 30px; height: 20px; border: 1.5px solid rgba(255, 248, 236, .35); border-radius: 3px; position: relative; transition: background .3s, border-color .3s; }
.q-frames li::before, .q-frames li::after { content: ""; position: absolute; left: 3px; right: 3px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 248, 236, .35) 0 3px, transparent 3px 6px); }
.q-frames li::before { top: 2px; } .q-frames li::after { bottom: 2px; }
.q-frames li.on { background: var(--orange); border-color: var(--orange); }
.q-frames li.on::before, .q-frames li.on::after { background: repeating-linear-gradient(90deg, rgba(26, 16, 8, .45) 0 3px, transparent 3px 6px); }
.q-ref { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; margin: 0; padding: 6px 6px 6px 12px; border: 1px solid rgba(255, 122, 26, .6); background: rgba(255, 122, 26, .12); border-radius: 999px; font-size: 13.5px; color: #FFF8EC; }
.q-ref[hidden] { display: none; }
.q-ref span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 248, 236, .65); }
.q-ref b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.q-ref-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 248, 236, .12); color: #FFF8EC; cursor: pointer; flex-shrink: 0; }
.q-step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.q-step.is-active { display: grid; gap: 16px; animation: q-in .35s var(--ease); }
.q-step[hidden] { display: none; }
@keyframes q-in { from { transform: translateX(14px); opacity: .4; } to { transform: none; opacity: 1; } }
.q-title { padding: 0; margin: 0 0 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.15; color: #FFF8EC; }
.q-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.q-opt { position: relative; display: block; }
.q-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.q-opt span {
  display: flex; align-items: center; min-height: 56px; padding: 12px 18px; border-radius: 12px;
  border: 1.5px solid var(--line-light); background: rgba(0, 0, 0, .18);
  font-family: var(--f-display); font-weight: 500; font-size: 16px; color: #FFF8EC;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.q-opt input:checked + span { background: var(--orange); border-color: var(--orange); color: #1A1008; }
.q-opt input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.q-opt:active span { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .q-opt:hover span { border-color: rgba(255, 248, 236, .7); } }
.field > span em { font-style: normal; text-transform: none; letter-spacing: .04em; opacity: .7; }
.q-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-back { background: none; border: 0; color: rgba(255, 248, 236, .75); font-family: var(--f-display); font-size: 15px; min-height: 44px; padding: 0 6px; cursor: pointer; }
.q-back:hover { color: var(--orange); }
.q-send { margin-left: auto; }
.q-next { margin-left: auto; }
.q-done { display: grid; gap: 14px; justify-items: start; padding-block: 10px; }
.q-done[hidden] { display: none; }
.q-wrap { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; color: #FFF8EC; }
.q-done-sub { margin: 0; color: rgba(255, 248, 236, .8); font-size: 16.5px; }
.q-done .btn-wa { color: #0B1F12; }

/* =========================================================
   Quote panel (pop-up)
   ========================================================= */
.quote-panel {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.qp-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 8, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .25s ease both; }
.qp-sheet {
  position: relative; width: min(640px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 90% 0%, rgba(255, 140, 50, .22), transparent 55%), var(--charcoal);
  color: #FFF8EC; border-radius: 20px; padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); animation: qp-in .35s var(--ease) both;
}
@keyframes qp-in { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.qp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; margin-bottom: 18px; }
.qp-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.qp-title .rec-dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .25); }
.qp-sub { margin: 4px 0 0; font-size: 14px; color: rgba(255, 248, 236, .65); }
.qp-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-light); background: none; color: #FFF8EC; font-size: 16px; cursor: pointer; }
.qp-close:hover { background: var(--orange); border-color: var(--orange); color: #1A1008; }
.qp-slot .enquiry { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 640px) {
  .quote-panel { place-items: end stretch; padding: 0; }
  .qp-sheet { width: 100%; max-height: 92svh; border-radius: 20px 20px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); animation-name: qp-up; }
  @keyframes qp-up { from { transform: translateY(100%); } to { transform: none; } }
  .q-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .q-opt span { min-height: 52px; font-size: 15px; padding: 10px 14px; }
}

/* =========================================================
   Always-visible quote button: pill on desktop, bar on phones
   ========================================================= */
.quote-dock {
  position: fixed; z-index: 46; display: flex; gap: 10px; align-items: center;
  left: calc(24px + env(safe-area-inset-left, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s;
}
.dock-on .quote-dock { transform: none; opacity: 1; pointer-events: auto; }
.qd-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: #1A1008; font-family: var(--f-display); font-weight: 600; font-size: 16px;
  box-shadow: 0 16px 34px -12px rgba(255, 122, 26, .85), 0 2px 0 rgba(0, 0, 0, .08);
}
.qd-btn .rec-dot { background: #1A1008; box-shadow: 0 0 0 3px rgba(26, 16, 8, .18); }
.qd-sub { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: rgba(26, 16, 8, .14); padding: 6px 10px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .qd-btn:hover { background: #FF8C38; transform: translateY(-1px); } }
.qd-wa { display: none; }
@media (max-width: 900px) {
  .quote-dock {
    /* floats above Netlify's badge, which sits in the bottom-right corner */
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 8px; border-radius: 20px;
    background: rgba(28, 26, 22, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55); transform: translateY(calc(100% + 80px));
  }
  .qd-btn { flex: 1; justify-content: center; height: 52px; padding: 0 16px; }
  .qd-wa:not([hidden]) { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #25D366; color: #fff; flex-shrink: 0; }
  .qd-wa svg { width: 26px; height: 26px; }
  .footer-inner { padding-bottom: calc(34px + 140px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   "Want a film like this?" on project pages
   ========================================================= */
.film-like {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  margin-top: 16px; padding: 22px 24px; max-width: 900px; border-radius: var(--radius);
  background: radial-gradient(ellipse at 100% 0%, rgba(255, 140, 50, .25), transparent 60%), var(--charcoal); color: #FFF8EC;
}
.film-like-copy { min-width: 0; flex: 1 1 280px; }
.film-like-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.film-like-sub { margin: 4px 0 0; color: rgba(255, 248, 236, .72); font-size: 15px; }
.film-like .btn { gap: 10px; }
.film-like .rec-dot { background: #1A1008; box-shadow: 0 0 0 3px rgba(26, 16, 8, .18); }
@media (max-width: 640px) { .film-like .btn { width: 100%; } }

/* Consultation button: label + quirky tag. Row on desktop, two lines on phones. */
.qd-main { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
@media (max-width: 900px) {
  .qd-btn { flex-direction: column; justify-content: center; gap: 1px; height: 56px; border-radius: 14px; padding: 0 14px; }
  .qd-btn .qd-main { font-size: 16px; }
  .qd-btn .qd-sub { background: none; padding: 0; font-size: 10.5px; letter-spacing: .14em; opacity: .75; }
  .qd-wa:not([hidden]) { height: 56px; width: 56px; }
}
@media (max-width: 640px) {
  .frame img { aspect-ratio: 928 / 992; }
}
