/* ==========================================================================
   Renderbox Studios — renderboxstudios.com
   Brand: orange #FA4C06 · near-black surfaces · Space Grotesk + DM Sans
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --orange:      #FA4C06;
  --orange-dim:  rgba(250, 76, 6, 0.5);
  --orange-faint:rgba(250, 76, 6, 0.08);

  --bg:          #0A0A0A;
  --bg-2:        #080808;
  --bg-3:        #060606;
  --bg-raise:    #101010;

  --white:       #FFFFFF;
  --text:        #FFFFFF;
  --text-dim:    #8A8A8A;
  --gray:        #6E6E6E;
  --gray-deep:   #5A5A5A;
  --hairline:    #181818;
  --hairline-2:  #242424;

  --font-display: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --font-body:    'DM Sans', Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1440px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.03em; margin: 0; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--orange); color: #0A0A0A; }

/* --- Layout helpers ------------------------------------------------------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--hairline); }
.section--flush { padding-block: 0; }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--bg-3); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--white);
  letter-spacing: -0.025em;
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px);
}
.lede {
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--gray);
  line-height: 1.85;
  max-width: 56ch;
}
.rule-accent {
  height: 1px; border: 0; margin: 0 var(--gutter);
  background: linear-gradient(90deg, var(--orange) 0%, rgba(250,76,6,0.1) 50%, transparent 100%);
}
/* Renderbox slash motif */
.slash { color: var(--orange); font-weight: 400; letter-spacing: 0.02em; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 17px 36px; border: 1px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn--primary { background: var(--orange); color: #0A0A0A; }
.btn--primary:hover { background: #ff6a2b; transform: translateY(-2px); }
.btn--ghost { border-color: var(--orange-dim); color: var(--orange); padding: 11px 24px; }
.btn--ghost:hover { border-color: var(--orange); background: var(--orange-faint); }
.btn--line { color: var(--white); border-bottom: 1px solid var(--orange); padding: 0 0 3px; letter-spacing: 0.1em; }
.btn--line:hover { color: var(--orange); }

.link-quiet {
  font-size: 12px; letter-spacing: 0.04em; color: var(--gray);
  transition: color .2s var(--ease);
}
.link-quiet:hover { color: var(--orange); }

/* --- Navigation ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--hairline); background: rgba(10,10,10,0.92); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo img { height: 20px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__link {
  font-size: 13px; letter-spacing: 0.02em; color: var(--text-dim);
  position: relative; padding-block: 4px;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--orange);
}
.nav__toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 70; }
.nav__toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 3px; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 17px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  position: fixed; inset: 0; z-index: 65;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
body.menu-open .nav__drawer { opacity: 1; visibility: visible; transform: none; }
.nav__drawer a {
  font-family: var(--font-display); font-size: clamp(30px, 9vw, 44px);
  font-weight: 300; letter-spacing: -0.03em; color: var(--white);
  padding-block: 10px; border-bottom: 1px solid var(--hairline);
}
.nav__drawer a:last-of-type { border-bottom: 0; }
.nav__drawer a .idx { font-family: var(--font-body); font-size: 11px; color: var(--orange); margin-right: 14px; vertical-align: super; letter-spacing: 0.1em; }

/* --- Hero ----------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 480px; min-height: min(780px, 88vh); position: relative; }
.hero__body {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(64px, 9vw, 110px) var(--gutter) clamp(48px, 6vw, 80px);
  background: linear-gradient(145deg, #0D0B08 0%, #161008 52%, #0A0A0A 100%);
  position: relative; overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; opacity: 0.025; pointer-events: none;
  background-image:
    linear-gradient(var(--orange) 1px, transparent 1px),
    linear-gradient(90deg, var(--orange) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero__bar { position: absolute; left: var(--gutter); top: clamp(48px, 9vw, 130px); width: 2px; height: clamp(64px, 10vw, 120px); background: var(--orange); }
.hero__title {
  font-size: clamp(40px, 7.4vw, 82px);
  line-height: 0.94; letter-spacing: -0.045em;
  color: var(--white); margin-bottom: clamp(28px, 4vw, 48px);
  position: relative;
}
.hero__title em { font-style: normal; color: var(--orange); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; position: relative; }
.hero__sub { font-size: 14px; color: var(--gray); line-height: 1.8; max-width: 330px; }
.hero__actions { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); flex-wrap: wrap; }
.hero__scroll {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  transition: color .2s var(--ease);
}
.hero__scroll:hover { color: var(--orange); }

.hero__media { position: relative; overflow: hidden; background: var(--bg); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, transparent 58%, rgba(10,10,10,0.55) 100%);
}
.hero__media .foot-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange-dim); z-index: 2; }
.caption {
  position: absolute; bottom: 18px; left: 22px; z-index: 2;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* Page hero (interior pages) */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 60px); }
.page-hero h1 { font-size: clamp(36px, 6.4vw, 66px); letter-spacing: -0.04em; color: var(--white); margin-bottom: 20px; }
.page-hero h1 em { font-style: normal; color: var(--orange); }

/* --- Work grid ------------------------------------------------------------ */
.tile {
  position: relative; overflow: hidden; display: block;
  background: var(--bg-raise); cursor: pointer;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.tile:hover img { transform: scale(1.045); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(250,76,6,0.35); z-index: 3; }
.tile__info {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(20px, 2.6vw, 32px) clamp(22px, 2.8vw, 40px);
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.tile__cat { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,76,6,0.9); margin-bottom: 7px; }
.tile__name { font-family: var(--font-display); font-size: clamp(16px, 1.6vw, 21px); font-weight: 300; letter-spacing: -0.02em; color: var(--white); }
.tile__year { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; flex-shrink: 0; }

.tile--featured { aspect-ratio: 16 / 9; margin-bottom: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.work-grid .tile { aspect-ratio: 4 / 3; }

/* Filter bar */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-display);
  padding: 9px 18px; border: 1px solid var(--hairline-2); color: var(--text-dim);
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--gray); color: var(--white); }
.filter.is-active { border-color: var(--orange); color: var(--orange); background: var(--orange-faint); }
.tile[hidden] { display: none; }

/* --- Services ------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: #1A1A1A; }
.svc {
  background: var(--bg-2); padding: clamp(30px, 3.4vw, 46px) clamp(24px, 2.6vw, 38px);
  transition: background .3s var(--ease);
}
.svc:hover { background: #0C0C0C; }
.svc svg { margin-bottom: 22px; display: block; }
.svc h3 { font-size: 17px; font-weight: 400; color: var(--white); margin-bottom: 14px; letter-spacing: -0.01em; }
.svc p { font-size: 13px; color: var(--gray); line-height: 1.8; }

/* Detailed service blocks (services page) */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--hairline);
}
.svc-row:first-of-type { border-top: 0; }
.svc-row--flip .svc-row__media { order: -1; }
.svc-row__media { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__media::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background: rgba(250,76,6,0.4); }
.svc-row h2 { font-size: clamp(24px, 3vw, 32px); color: var(--white); margin-bottom: 18px; }
.svc-row p { font-size: 14px; color: var(--gray); line-height: 1.85; margin-bottom: 24px; }
.spec-list li {
  font-size: 13px; color: var(--gray); padding: 11px 0 11px 20px;
  border-top: 1px solid var(--hairline); position: relative;
}
.spec-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; background: var(--orange); }

/* --- Film ----------------------------------------------------------------- */
.film__player {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 21 / 9; min-height: 260px; margin-top: 30px;
}
.film__player img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Scrim keeps the play button legible without flattening the still to black. */
.film__player::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.20) 60%, rgba(0,0,0,0.30) 100%);
  transition: background .3s var(--ease);
}
.film__player:hover::before {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.22) 100%);
}
.play {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.play__ring {
  width: clamp(62px, 8vw, 88px); aspect-ratio: 1;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 6px 34px rgba(0,0,0,0.45);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.film__player:hover .play__ring { border-color: var(--orange); background: rgba(250,76,6,0.5); transform: scale(1.06); }
.play__tri {
  width: 0; height: 0; margin-left: 6px;
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  border-left: 21px solid #FFFFFF;
}
.play__label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #FFFFFF; text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.8);
}
.film__caption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(26px, 3.2vw, 40px) clamp(22px, 3vw, 40px) clamp(20px, 2.4vw, 28px);
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 45%, transparent 100%);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.film__specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); margin-top: 0; }
.film__specs > div { padding: 30px 30px 8px 0; border-right: 1px solid var(--hairline); }
.film__specs > div:first-child { padding-left: 0; }
.film__specs > div:not(:first-child) { padding-left: 30px; }
.film__specs > div:last-child { border-right: 0; padding-right: 0; }
.film__specs h4 { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; font-weight: 400; }
.film__specs p { font-size: 13px; color: var(--gray-deep); line-height: 1.75; }


/* --- Film: split layout with a vertical (9:16) frame ---------------------- */
.film-split { display: grid; grid-template-columns: 1fr 360px; gap: clamp(36px, 6vw, 96px); align-items: center; }
.film-split__copy .lede { max-width: 48ch; }
.film-split__frame { position: relative; }
.film-split__frame .film__player {
  aspect-ratio: 9 / 16; margin: 0; min-height: 0;
  background: #000; border: 1px solid var(--hairline-2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(250,76,6,0.08);
}
.film-split__frame .film__player img { object-position: center; }
.film-split__frame::before {
  /* orange ground rule, echoes the hero */
  content: ""; position: absolute; left: -12px; right: -12px; bottom: -14px; height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(250,76,6,0.1) 70%, transparent 100%);
}
/* specs stack in the copy column */
.film-split .film__specs { grid-template-columns: 1fr; border-top: 1px solid var(--hairline); margin-top: 0; }
.film-split .film__specs > div { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 20px 0 !important; }
.film-split .film__specs > div:last-child { border-bottom: 0; }

@media (max-width: 1000px) {
  .film-split { grid-template-columns: 1fr 300px; }
}
@media (max-width: 760px) {
  .film-split { grid-template-columns: 1fr; }
  .film-split__frame { max-width: 320px; margin: 8px auto 0; }
}

/* --- Stats ---------------------------------------------------------------- */
.about-split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(40px, 7vw, 110px); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px, 3vw, 40px); }
.stat { border-top: 1px solid var(--hairline-2); padding-top: 22px; }
.stat__num { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 48px); font-weight: 300; color: var(--orange); letter-spacing: -0.04em; line-height: 1; }
.stat__label { font-size: 12px; color: var(--gray); margin-top: 8px; letter-spacing: 0.04em; }

/* --- Process steps -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: #1A1A1A; }
.step { background: var(--bg); padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.step__n { font-family: var(--font-display); font-size: 12px; color: var(--orange); letter-spacing: 0.14em; margin-bottom: 18px; }
.step h3 { font-size: 16px; font-weight: 400; color: var(--white); margin-bottom: 12px; }
.step p { font-size: 13px; color: var(--gray); line-height: 1.8; }

/* --- CTA ------------------------------------------------------------------ */
.cta { text-align: center; position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 118px); }
.cta::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(800px, 110vw); height: 400px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(250,76,6,0.06) 0%, transparent 65%);
}
.cta h2 { font-size: clamp(34px, 6.2vw, 62px); letter-spacing: -0.04em; color: var(--white); line-height: 1.0; margin-bottom: 30px; position: relative; }
.cta p { font-size: 14px; color: var(--gray); line-height: 1.8; max-width: 400px; margin: 0 auto clamp(32px, 4vw, 50px); position: relative; }
.cta__actions { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; position: relative; }

/* --- Contact form --------------------------------------------------------- */
.contact-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--white); background: #0E0E0E;
  border: 1px solid var(--hairline-2); border-radius: 0;
  padding: 14px 16px; transition: border-color .2s var(--ease), background .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E6E' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: #4A4A4A; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #121212;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C0392B; }
.field__err { font-size: 11px; color: #E0674F; letter-spacing: 0.02em; display: none; }
.field.is-invalid .field__err { display: block; }

.form__note { font-size: 12px; color: var(--gray-deep); line-height: 1.75; }
.form__status {
  display: none; padding: 16px 18px; border: 1px solid var(--orange-dim);
  background: var(--orange-faint); font-size: 13px; color: var(--white); line-height: 1.7;
}
.form__status.is-visible { display: block; }

.contact-aside dl { display: grid; gap: 26px; margin: 0; }
.contact-aside dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.contact-aside dd { margin: 0; font-size: 14px; color: var(--gray); line-height: 1.8; }
.contact-aside dd a:hover { color: var(--orange); }

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid #161616; background: var(--bg-2); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 68px);
}
.footer__brand img { height: 22px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: 13px; color: var(--gray-deep); line-height: 1.8; max-width: 30ch; }
.footer h4 { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; font-weight: 400; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: 13px; color: var(--gray); transition: color .2s var(--ease); }
.footer li a:hover { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--hairline);
  font-size: 11px; color: #3A3A3A; letter-spacing: 0.04em;
}

/* --- Project gallery ------------------------------------------------------ */
.gal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4,4,4,0.97);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 2.4vw, 28px) clamp(14px, 3vw, 40px);
  opacity: 0; transition: opacity .26s var(--ease);
}
.gal.is-open { opacity: 1; }
.gal[hidden] { display: none; }
.gal__close { position: absolute; top: 14px; right: 18px; z-index: 3; font-size: 30px; color: var(--white); line-height: 1; padding: 8px 12px; }
.gal__close:hover { color: var(--orange); }
.gal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 56px 14px 0; border-bottom: 1px solid var(--hairline); }
.gal__eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.gal__title { font-size: clamp(18px, 2.2vw, 26px); color: var(--white); letter-spacing: -0.02em; }
.gal__count { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; color: var(--text-dim); white-space: nowrap; }
.gal__stage { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; min-height: 0; gap: 8px; }
.gal__fig { margin: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.gal__img { max-width: 100%; max-height: calc(100vh - 290px); width: auto; height: auto; object-fit: contain; display: block; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.gal__img.is-vertical { max-height: calc(100vh - 290px); }
.gal__frame { border: 0; width: min(100%, calc((100vh - 290px) * 16 / 9)); aspect-ratio: 16/9; background: #000; }
.gal__frame.is-vertical { width: auto; height: calc(100vh - 290px); aspect-ratio: 9/16; }
.gal__room { margin-top: 14px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); text-align: center; }
.gal__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gal__play[hidden], .gal__img[hidden] { display: none; }
.gal__nav {
  width: 48px; height: 48px; border: 1px solid var(--hairline-2); color: var(--white); font-size: 20px;
  display: grid; place-items: center; justify-self: center; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.gal__nav:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-faint); }
.gal__nav[hidden] { visibility: hidden; display: grid; }
.gal__thumbs { display: flex; gap: 8px; justify-content: center; padding-top: 14px; border-top: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumbs[hidden] { display: none; }
.gal__thumb { flex: 0 0 auto; width: 84px; aspect-ratio: 4/3; overflow: hidden; border: 1px solid transparent; opacity: 0.45; transition: opacity .2s var(--ease), border-color .2s var(--ease); padding: 0; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__thumb:hover { opacity: 0.85; }
.gal__thumb.is-active { opacity: 1; border-color: var(--orange); }

/* tiles are buttons on the Work page */
button.tile { border: 0; padding: 0; text-align: left; width: 100%; font: inherit; color: inherit; background: var(--bg-raise); display: block; }
button.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.tile__count { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

@media (max-width: 760px) {
  .gal { padding: 12px 12px 10px; }
  .gal__head { padding-right: 48px; }
  .gal__stage { grid-template-columns: 1fr; }
  .gal__nav { display: none !important; }
  .gal__img, .gal__img.is-vertical { max-height: calc(100vh - 250px); }
  .gal__frame.is-vertical { height: calc(100vh - 250px); }
  .gal__thumb { width: 64px; }
  .tile__meta .tile__count { display: none; }
}

/* --- Scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 380px; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 16 / 10; order: -1; }
  .hero__media::after { background: linear-gradient(0deg, rgba(10,10,10,0.6) 0%, transparent 55%); }
  .hero__bar { display: none; }
  .hero__body { padding-top: clamp(40px, 7vw, 64px); }
  .svc-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 28px; }
  .svc-row--flip .svc-row__media { order: 0; }
  .film__specs { grid-template-columns: 1fr; }
  .film__specs > div { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 22px 0 !important; }
  .film__specs > div:last-child { border-bottom: 0; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .tile--featured { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .field--pair { grid-template-columns: 1fr; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__actions { width: 100%; }
  .btn { width: 100%; }
  .hero__scroll { display: none; }
  .cta__actions .btn { width: auto; }
  .film__player { aspect-ratio: 4 / 3; }
  .tile__info { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tile__year { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .nav, .nav__drawer, .lightbox, .cta__actions { display: none !important; }
  body { background: #fff; color: #1C1C1C; }
}

/* sprite-backed thumbnails (full portfolio) */
.gal__thumb-sp { display: block; width: 100%; height: 100%; background-repeat: no-repeat; }

/* --- Full portfolio -------------------------------------------------------- */
.pf-bar { display: grid; gap: 12px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.pf-row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.pf-seg { margin: 0; }
.pf-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid var(--hairline-2); background: #0E0E0E; color: var(--text-dim); }
.pf-search:focus-within { border-color: var(--orange); }
.pf-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--white); font: 300 14px var(--font-body); }
.pf-search input::placeholder { color: #4A4A4A; }
.pf-count { margin-left: auto; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 16px; }
.pf-card { display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; min-width: 0; }
.pf-card__img { display: block; width: 100%; aspect-ratio: 3 / 2; background-color: var(--bg-raise); background-repeat: no-repeat; position: relative; overflow: hidden; transition: filter .3s var(--ease); }
.pf-card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(250,76,6,0); transition: background .25s var(--ease); }
.pf-card:hover .pf-card__img { filter: brightness(1.08); }
.pf-card:hover .pf-card__img::after { background: var(--orange); }
.pf-card__meta { display: grid; gap: 4px; }
.pf-card__cat { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.pf-card__name { font-family: var(--font-display); font-size: 17px; font-weight: 300; letter-spacing: -0.01em; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-card__n { font-size: 11px; letter-spacing: 0.06em; color: var(--gray); }
.pf-wall { display: flex; flex-wrap: wrap; }
.pf-tile { position: relative; overflow: hidden; padding: 0; border: 0; background: var(--bg-raise); cursor: zoom-in; flex: 0 0 auto; }
.pf-tile__img { position: absolute; inset: 0; background-repeat: no-repeat; }
.pf-tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; text-align: left; font-size: 12px; color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,0.8)); opacity: 0; transition: opacity .2s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tile__cap em { font-style: normal; display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
.pf-tile:hover .pf-tile__cap, .pf-tile:focus-visible .pf-tile__cap { opacity: 1; }
@media (hover: none) { .pf-tile__cap { opacity: 1; } }
@media (max-width: 640px) { .pf-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; } .pf-card__name { font-size: 14px; } .pf-count { margin-left: 0; } }

.pf-grid[hidden], .pf-wall[hidden] { display: none; }
