/* ==========================================================================
   DYNAMIC FILM & TV PRODUCTIONS — SITE STYLES
   Depends on css/tokens.css for all colors, type and spacing values.
   ========================================================================== */

/* --- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--accent-hov); }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #20242E; border-radius: 999px; }

svg.lucide { width: 1em; height: 1em; stroke-width: 1.75; display: block; }

/* --- Accent theming ----------------------------------------------------
   The accent is a runtime variable so MADEBYHOLY can cross-fade to red
   while the rest of the site stays electric blue. js/main.js writes these.
   ---------------------------------------------------------------------- */
:root {
  --accent: #2E6BFF;
  --accent-hov: #4F86FF;
  --accent-glow: rgba(46,107,255,0.45);
  --accent-tint: rgba(46,107,255,0.12);
  --accent-border: rgba(46,107,255,0.45);
}

/* --- Layout primitives -------------------------------------------------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
/* padding-block only — never clobber .wrap's horizontal gutter */
.section { padding-block: 128px; }
.section--tight { padding-block: 80px; }
.hairline-top { border-top: 1px solid var(--border-hairline); }
.bg-steel { background: var(--bg-steel); }
.bg-spotlight { background: var(--bg-spotlight); }
.bg-black { background: #000; }

.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iMiIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIvPjwvc3ZnPg==");
}

/* --- Type --------------------------------------------------------------- */
.display {
  font-family: var(--font-display); font-weight: 800;
  line-height: .94; letter-spacing: .02em; text-transform: uppercase;
  margin: 0;
}
.display--hero { font-size: clamp(44px, 7vw, 104px); }
.display--page { font-size: clamp(40px, 6vw, 88px); }
.display--cta  { font-size: clamp(28px, 3.6vw, 52px); line-height: 1; }

.h2 {
  font-family: var(--font-expanded); font-weight: 700;
  font-size: clamp(28px, 3vw, 42px); line-height: 1.05;
  letter-spacing: -.02em; margin: 0;
}
.h3 { font-family: var(--font-expanded); font-weight: 700; font-size: 24px; letter-spacing: -.01em; margin: 0; }

.lede { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: var(--text-secondary); margin: 28px 0 0; }
.body { font-size: 17px; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.body--muted { color: var(--text-tertiary); }

.mono {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
}
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }

/* Eyebrow — the signature accent kicker */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.eyebrow span {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  height: 54px; padding: 0 32px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
.btn--sm { height: 42px; padding: 0 22px; font-size: 11px; }
.btn--lg { height: 58px; padding: 0 38px; font-size: 14px; }

.btn--primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.btn--primary:hover { background: var(--accent-hov); box-shadow: 0 0 28px var(--accent-glow); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border: 1.5px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: none;
  padding: 0; cursor: pointer; color: var(--text-secondary);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; transition: color .2s var(--ease-out);
}
.btn-link:hover { color: var(--accent); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-fill); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
}
.site-header__inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; background: none; border: none; padding: 0; cursor: pointer; flex: none; }
.logo img { flex: none; width: auto; max-width: none; }
.logo .logo__lockup { height: 46px; }

.nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.site-header .btn { flex: none; }
.nav__link {
  position: relative; background: none; border: none; cursor: pointer;
  padding: 24px 14px; color: var(--text-secondary);
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; transition: color .2s var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link.is-active { color: var(--text-primary); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px;
  height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.nav-toggle { display: none; }
/* Mid widths: drop the wordmark and header CTA before the nav gets cramped */
@media (max-width: 1100px) {
  .logo .logo__lockup { height: 40px; }
  .site-header .btn { display: none; }
  .nav__link { padding-left: 10px; padding-right: 10px; }
  .nav__link.is-active::after { left: 10px; right: 10px; }
}
@media (max-width: 800px) {
  .nav__link { padding-left: 6px !important; padding-right: 6px !important; letter-spacing: .08em !important; }
  .nav__link.is-active::after { left: 6px !important; right: 6px !important; }
  .logo .logo__lockup { height: 32px !important; }
}
@media (max-width: 900px) {
  .nav__link { padding-left: 8px; padding-right: 8px; letter-spacing: .12em; }
  .nav__link.is-active::after { left: 8px; right: 8px; }
  .logo .logo__lockup { height: 36px; }
}

/* --- Scroll reveal ------------------------------------------------------ */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; height: 92vh; min-height: 660px; overflow: hidden; background: #000; }
.hero__media { position: absolute; inset: 0; opacity: .25; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background: var(--scrim-bottom); }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 18%, transparent 32%, rgba(0,0,0,.6) 100%);
}
.hero__body {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 92px;
}
.hero__slate { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.hero__slate .rule { width: 28px; height: 1px; background: var(--border-strong); }
.hero__actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 32px; bottom: 34px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; color: var(--text-tertiary);
}
.scroll-cue__arrow { font-size: 16px; color: var(--accent); animation: scrollCue 1.8s var(--ease-in-out) infinite; }
@keyframes scrollCue {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50% { transform: translateY(7px); opacity: .35; }
}

/* --- Stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 24px; border-left: 1px solid var(--border-hairline); }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: .96; }
.stat__label { margin-top: 12px; color: var(--text-tertiary); }

/* --- Split rows --------------------------------------------------------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; gap: 0; }
.split--media { grid-template-columns: .85fr 1.15fr; gap: 64px; }

/* --- Frames & media slots ---------------------------------------------- */
.frame {
  position: relative; overflow: hidden; background: #000;
  border: 1px solid var(--border-hairline);
}
.frame--16-10 { aspect-ratio: 16/10; }
.frame--16-9  { aspect-ratio: 16/9; }
.frame--21-9  { aspect-ratio: 21/9; border-color: var(--border-strong); }
.frame--4-5   { aspect-ratio: 4/5; }
.frame--4-3   { aspect-ratio: 4/3; }
.frame--1-1   { aspect-ratio: 1/1; }
.frame__caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 4; margin: 0; cursor: text;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary);
  background: rgba(0,0,0,.55); border: 1px solid var(--glass-border); padding: 6px 12px;
}

/* Drop-in image placeholder. Users drag their own stills onto these. */
.slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center; cursor: pointer;
  background: var(--bg-steel) center/cover no-repeat;
  border: none; color: var(--text-tertiary);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.slot.is-filled { color: transparent; }
/* In the tall hero the centered hint would collide with the headline. */
.hero__media .slot { align-items: flex-start; padding-top: 96px; }
.slot.is-over { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.slot__hint { pointer-events: none; line-height: 1.8; }
.slot__hint u { text-underline-offset: 3px; opacity: .7; }
/* Edit mode: upload button on slots inside clickable project tiles */
.slot__up {
  position: absolute; right: 12px; bottom: 12px; z-index: 5;
  display: none; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: 999px; background: rgba(0,0,0,.72); border: 1px solid var(--border-strong);
  color: #fff; cursor: pointer; font-family: var(--font-mono); font-weight: 700;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.slot__up:hover { border-color: var(--accent); background: rgba(0,0,0,.9); }
.is-edit [data-open] .slot__up { display: inline-flex; }
/* Edit mode: replaceable static images */
.is-edit img[data-img] { cursor: pointer; outline: 1px dashed transparent; outline-offset: 4px; transition: outline-color .2s var(--ease-out); }
.is-edit img[data-img]:hover { outline-color: var(--accent); }
a.nav__link, a.logo, a.btn, a.btn-link { text-decoration: none; }
.footer-col a[data-go] { color: var(--text-secondary); }
.footer-col a[data-go]:hover { color: var(--accent); }
.is-edit .slot:not(.is-filled):hover { color: var(--text-secondary); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.is-edit .slot.is-filled:hover { box-shadow: inset 0 0 0 2px var(--accent); }
[data-open] .slot__hint u, [data-thumb] .slot__hint { display: none; }
/* Visitor mode: slots are plain frames that let clicks reach the project tile. */
html:not(.is-edit) .slot { pointer-events: none; cursor: default; }
html:not(.is-edit) .slot__hint { display: none; }
html:not(.is-edit) .editable { cursor: default; border-bottom-color: transparent !important; }
html:not(.is-edit) [data-edit-only] { display: none !important; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-top: 2px solid var(--accent); border-radius: var(--radius-lg);
  padding: 36px 32px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__num { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); margin-bottom: 24px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-3--flush { gap: 0; }
.grid-3--flush > * { padding: 76px 40px; border-left: 1px solid var(--border-hairline); }

/* --- Featured / project tiles ------------------------------------------ */
.tile { text-align: left; background: none; border: none; padding: 0; cursor: pointer; display: block; width: 100%; }
.tile .frame { transition: border-color .3s var(--ease-out); }
.tile:hover .frame { border-color: var(--accent); }
.tile__scrim { position: absolute; inset: 0; pointer-events: none; background: var(--scrim-bottom); opacity: .7; }
.tile__foot { padding: 18px 4px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile__title { font-family: var(--font-sans); font-weight: 700; font-size: 18px; margin: 0; }

.pill {
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.5); border: 1px solid var(--glass-border);
  padding: 5px 11px; border-radius: 999px;
}
.pill--accent { background: var(--accent); border-color: var(--accent); }
.pill-row { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: 1.5px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; pointer-events: none;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.play--lg { width: 84px; height: 84px; border-width: 2px; font-size: 30px; }
.tile:hover .play--lg { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }

/* --- Gallery ------------------------------------------------------------ */
.filters { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border-hairline); }
.filter {
  position: relative; background: none; border: none; cursor: pointer; padding: 14px 18px;
  color: var(--text-tertiary);
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; transition: color .2s var(--ease-out);
}
.filter:hover { color: var(--text-secondary); }
.filter.is-active { color: var(--text-primary); }
.filter.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}

.masonry { column-count: 3; column-gap: 20px; }
.masonry__item { break-inside: avoid; margin: 0 0 20px; }
.masonry__item[hidden], .tile[hidden] { display: none; }

.slot-count {
  position: absolute; right: 14px; top: 14px; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .12em;
  color: #fff; background: rgba(0,0,0,.6); border: 1px solid var(--glass-border);
  padding: 5px 10px; border-radius: 999px; pointer-events: none;
}
.hover-reveal {
  position: absolute; inset: 0; opacity: 0; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.92) 100%);
  transition: opacity .3s var(--ease-out); pointer-events: none;
}
.tile:hover .hover-reveal { opacity: 1; }
.hover-reveal__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}

.project-foot { display: flex; align-items: baseline; gap: 10px; padding: 14px 2px 0; }
.project-foot .mono { color: var(--accent); flex: none; font-size: 10px; letter-spacing: .14em; }

/* Click-to-rename project titles */
.editable {
  font-family: var(--font-sans); font-weight: 700; font-size: 17px; margin: 0; color: #fff;
  flex: 1; min-width: 0; outline: none; cursor: text;
  border-bottom: 1px dashed transparent; transition: border-color .2s var(--ease-out);
}
.editable:hover { border-color: var(--border-strong); }
.editable:focus { border-color: var(--accent); }

/* --- Services ----------------------------------------------------------- */
.service {
  display: flex; gap: 48px; align-items: stretch;
  border-top: 1px solid var(--border-hairline); padding-top: 32px;
}
.service:nth-child(even) { flex-direction: row-reverse; }
.service__media, .service__body { flex: 1; }
.service__body { display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.service__num {
  position: absolute; left: 18px; top: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 56px;
  line-height: 1; color: rgba(255,255,255,.14);
}
.service__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.service__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.service__list { list-style: none; padding: 0; margin: 0; }
.service__list li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; border-radius: 1px; }

/* --- Portfolio feed ----------------------------------------------------- */
.reel { display: flex; flex-direction: column; gap: 64px; }
.reel__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-top: 24px; flex-wrap: wrap; }
.reel__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.frame__format {
  position: absolute; right: 20px; bottom: 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary);
  background: rgba(0,0,0,.5); border: 1px solid var(--glass-border); padding: 6px 12px;
}

/* --- MADEBYHOLY --------------------------------------------------------- */
.holy-hero {
  position: relative; min-height: 86vh; overflow: hidden; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 32px 90px;
  border-bottom: 1px solid var(--border-hairline);
}
.holy-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,41,5,.30) 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(255,41,5,.26) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(255,41,5,.10) 0%, transparent 35%);
}
.holy-hero__inner { position: relative; max-width: 1000px; display: flex; flex-direction: column; align-items: center; }
.holy-hero .eyebrow { justify-content: center; margin-bottom: 44px; }
.holy-hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.holy-mark { width: min(560px, 72vw); filter: drop-shadow(0 0 60px rgba(255,41,5,.45)); }
.holy-hero .lede { max-width: 600px; margin-top: 46px; }
.holy-hero__actions { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.holy-cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; color: var(--text-tertiary);
}
.holy-glow-band { position: relative; overflow: hidden; background: #000; }
.holy-glow-band__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 100% 100%, rgba(255,41,5,.26) 0%, transparent 48%),
    radial-gradient(circle at 0% 0%, rgba(255,41,5,.16) 0%, transparent 40%);
}
.stat--accent .stat__value { color: var(--accent); }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-tertiary); border: 1.5px solid var(--border-strong);
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; transition: all .22s var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.work-card__label {
  position: absolute; left: 16px; right: 16px; bottom: 16px; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.work-card__label h3 { font-family: var(--font-sans); font-weight: 700; font-size: 19px; margin: 6px 0 0; color: #fff; text-transform: none; letter-spacing: 0; }
.work-card__over {
  position: absolute; inset: 0; opacity: 0; padding: 26px; gap: 14px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(0,0,0,.82); transition: opacity .3s var(--ease-out); pointer-events: none;
}
.tile:hover .work-card__over { opacity: 1; }
.work-card__over .ring {
  width: 44px; height: 44px; border-radius: 50%; font-size: 17px;
  border: 1.5px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* --- Contact ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 24px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
.contact-row__label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
}
.contact-row--primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.contact-row--primary:hover { background: var(--accent-hov); box-shadow: 0 0 28px var(--accent-glow); color: #fff; }
.contact-row--ghost { background: transparent; color: #fff; border: 1.5px solid var(--border-strong); }
.contact-row--ghost:hover { border-color: var(--accent); color: #fff; }

.social-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .22s var(--ease-out), color .22s var(--ease-out);
}
.social:hover { border-color: var(--accent); color: #fff; }

.form-card {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-top: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 40px;
}
.field { display: block; margin-bottom: 20px; }
.field__label {
  display: block; margin-bottom: 9px; color: var(--text-tertiary);
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--dp-ink-800);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: var(--font-sans); font-size: 15px;
  outline: none; transition: border-color .2s var(--ease-out);
}
.field input { height: 50px; padding: 0 16px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.form-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 420px; gap: 18px;
}
.form-success__icon { font-size: 42px; color: var(--accent); }
.form-success[hidden], #contact-form[hidden], form[hidden] { display: none !important; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block: 112px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { position: relative; z-index: 2; background: #050609; border-top: 1px solid var(--border-hairline); }
.site-footer__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 48px;
  flex-wrap: wrap; padding-block: 80px 56px; border-bottom: 1px solid var(--border-hairline);
}
.site-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col__head { margin-bottom: 4px; color: var(--text-tertiary); font-size: 10px; letter-spacing: .2em; }
.footer-col a, .footer-col button {
  text-align: left; background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 15px; color: var(--text-secondary);
  text-decoration: none; transition: color .2s var(--ease-out);
}
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; flex-wrap: wrap; }

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; padding: 84px 48px 48px; overflow-y: auto;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__inner { width: min(1100px, calc((100vh - 300px) * 16 / 9), 100%); min-width: 320px; margin: 0 auto; }
.lightbox__close {
  position: fixed; top: 20px; right: 24px; z-index: 130; width: 48px; height: 48px; border-radius: 50%;
  background: #14171D; border: 1px solid var(--border-strong);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: background .2s var(--ease-out);
}
.lightbox__close:hover { background: rgba(255,255,255,.14); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 1px solid var(--border-strong);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.lightbox__nav:hover { background: rgba(0,0,0,.8); border-color: var(--accent); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__counter {
  position: absolute; right: 16px; top: 16px; pointer-events: none;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .12em;
  color: #fff; background: rgba(0,0,0,.6); border: 1px solid var(--glass-border);
  padding: 6px 12px; border-radius: 999px;
}
.thumbs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  position: relative; width: 88px; aspect-ratio: 16/10; flex: none; padding: 0;
  background: #000; cursor: pointer; overflow: hidden; opacity: .5;
  border: 1.5px solid var(--border-strong);
  transition: opacity .2s var(--ease-out), border-color .2s var(--ease-out);
}
.thumb:hover { opacity: 1; border-color: var(--accent); }
.thumb.is-active { opacity: 1; border-color: var(--accent); }
.lightbox__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.lightbox__meta h3 {
  font-family: var(--font-expanded); font-weight: 700; font-size: 28px;
  letter-spacing: -.02em; margin: 10px 0 8px; color: #fff;
}

/* --- Hero variant switcher (design tool, not site chrome) --------------- */
.variants { display: flex; justify-content: center; padding: 22px 16px; background: #050609; border-bottom: 1px solid var(--border-hairline); }
.variants__inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: 999px; padding: 7px 8px 7px 16px; box-shadow: var(--shadow-md);
}
.variants__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; color: var(--text-tertiary); }
.variants button {
  height: 30px; padding: 0 14px; border-radius: 999px; cursor: pointer; border: none;
  background: transparent; color: var(--text-tertiary);
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .12em;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.variants button.is-active { background: var(--accent); color: #fff; }

/* --- Page switching ----------------------------------------------------- */
/* Hero variants carry inline display values, so [hidden] needs forcing. */
[data-hero][hidden] { display: none !important; }
.page[hidden] { display: none; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .split, .split--even, .split--media, .contact { grid-template-columns: 1fr; gap: 48px; }
  .split--even > * { border-right: none !important; padding: 56px 0 !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-3--flush { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
  .service, .service:nth-child(even) { flex-direction: column; gap: 28px; }
  .service__list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding-block: 80px; }
  .site-header__inner { height: 64px; }
  .site-header .btn { display: none; }

  /* Nav collapses to a scrollable strip. The header blur would make it
     the containing block for the fixed nav, so drop it on mobile. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7,8,10,.94); }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    justify-content: flex-start; gap: 0; overflow-x: auto;
    background: var(--glass-fill); border-top: 1px solid var(--glass-border);
    backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  }
  .nav__link { padding: 16px 14px; white-space: nowrap; }
  .nav__link.is-active::after { bottom: 10px; }
  body { padding-bottom: 52px; }

  .hero { height: auto; min-height: 0; padding: 120px 0 40px; }
  .hero__media { position: relative; height: 42vh; }
  .hero__body { padding-bottom: 0; }
  .scroll-cue { display: none; }

  .stats, .grid-3, .grid-3--flush { grid-template-columns: 1fr; }
  .grid-3--flush > * { padding: 48px 0 !important; border-left: none; border-top: 1px solid var(--border-hairline); }
  .masonry { column-count: 1; }
  .lightbox { padding: 20px; }
  .lightbox__close { top: 12px; right: 16px; }
  .form-card { padding: 28px 22px; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .nav, .variants, .lightbox, .scroll-cue, .grain { display: none !important; }
  body { background: #fff; color: #000; }
  .page[hidden] { display: block !important; }
}

/* Edit-mode helper: download uploaded images for baking into the site */
.export-uploads {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px;
  border-radius: 999px; cursor: pointer; color: #fff;
  background: var(--glass-fill); border: 1px solid var(--border-strong);
  backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s var(--ease-out);
}
.export-uploads:hover { border-color: var(--accent); }
@media (max-width: 720px) { .export-uploads { bottom: 64px; } }

/* Portfolio service tabs */
#portfolio-tabs { flex-wrap: wrap; }
#portfolio-list [data-svc][hidden] { display: none !important; }
.reel__empty { padding: 96px 0; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); text-align: center; }
.reel__empty[hidden] { display: none; }

/* Video in slots */
.slot { overflow: hidden; }
.slot__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 0; }
.slot.is-video .slot__hint { display: none; }
.slot__busy { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; padding: 10px 16px; border-radius: 999px; background: var(--glass-fill); border: 1px solid var(--glass-border); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
#lb-stage .slot.is-video { cursor: default; }

/* Play button: appears on hover/focus, hidden once a video is in the banner */
#portfolio-list .play { opacity: 0; transform: translate(-50%,-50%) scale(.9); transition: opacity var(--dur-base,240ms) var(--ease-out,ease), transform var(--dur-base,240ms) var(--ease-out,ease); pointer-events: none; }
#portfolio-list .tile:hover .play, #portfolio-list .tile:focus-visible .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
#portfolio-list .frame:has(.slot.is-video) .play { display: none; }

/* Viewer play button: clickable, fades out while the video plays */
#lb-play { pointer-events: auto; cursor: pointer; z-index: 3; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
#lb-play:hover { transform: translate(-50%,-50%) scale(1.06); }
#lb-play.is-playing { opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.9); }
