/* ============================================================
   EVERFRAME MOTION — Design System & Stylesheet
   Palette: warm blacks, ivory, neutral white accent
   Type: Cinzel (display) + Lato (body)
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────────── */
/* Google Fonts are loaded via <link> in head.php — not @import */
:root {
  /* Colours */
  --void:       #050504;
  --deep:       #0A0908;
  --rich:       #111009;
  --surface:    #dcdcdc;
  --surface-hi: #dcdcdc;
  --border:     #2A2720;
  --stone:      #dcdcdc;
  --muted:      rgba(255, 255, 255, 0.75);
  --text-dim:   rgba(255, 255, 255, 0.88);
  --text:       #FFFFFF;
  --ivory:      #FFFFFF;
  --white:      #FFFFFF;

  /* Neutral accent — clean white/silver tones */
  --accent:      #FFFFFF;
  --accent-dim:  rgba(255, 255, 255, 0.55);
  --accent-fade: rgba(255, 255, 255, 0.12);
  --accent-line: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --step--2:  0.64rem;
  --step--1:  0.813rem;
  --step-0:   1rem;
  --step-1:   1.25rem;
  --step-2:   1.563rem;
  --step-3:   1.953rem;
  --step-4:   2.441rem;
  --step-5:   3.052rem;
  --step-6:   4.2rem;
  --step-7:   5.8rem;
  --step-8:   8rem;
  --step-9:   11rem;

  /* Spacing — generous */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  2.75rem;
  --sp-6:  3.5rem;
  --sp-8:  5rem;
  --sp-10: 6.5rem;
  --sp-12: 8rem;
  --sp-16: 10rem;
  --sp-20: 13rem;
  --sp-24: 16rem;

  /* Layout */
  --max-w:      1440px;
  --gutter:     clamp(1.75rem, 5vw, 4.5rem);
  --nav-h:      80px;

  /* Easing */
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);

  /* Transitions */
  --t-fast:  200ms;
  --t-base:  400ms;
  --t-slow:  700ms;
  --t-xslow: 1100ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a          { color: inherit; text-decoration: none; }
ul, ol     { list-style: none; }
button     { background: none; border: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Film grain ─────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── Custom cursor ─────────────────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; top: -4px; left: -4px; width: 8px; height: 8px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); transition: transform var(--t-fast) var(--ease-smooth), opacity var(--t-fast); }
.cursor__ring { position: absolute; top: -20px; left: -20px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; transform: translate(-50%, -50%); transition: transform var(--t-slow) var(--ease-expo), width var(--t-base) var(--ease-expo), height var(--t-base) var(--ease-expo), border-color var(--t-base); }
body.cursor-hover .cursor__ring { width: 58px; height: 58px; border-color: rgba(255,255,255,0.7); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1600px; }

.section {
  padding-block: clamp(5rem, 11vw, 10rem);
}
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--dark  { background: var(--deep); }
.section--rich  { background: var(--rich); }

/* ─── Typography ─────────────────────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }
.display--italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--step-3), 4vw, var(--step-4));
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--step-4), 5vw, var(--step-6));
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--step-3), 3.5vw, var(--step-4));
  font-weight: 400;
  line-height: 1.15;
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.25;
}

.body-lg  { font-size: var(--step-1); line-height: 1.75; color: var(--text-dim); }
.body-md  { font-size: var(--step-0); line-height: 1.75; color: var(--text-dim); }
.body-sm  { font-size: var(--step--1); line-height: 1.65; color: var(--muted); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95em 2.4em;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--t-base) var(--ease-smooth),
              background var(--t-base) var(--ease-smooth),
              border-color var(--t-base) var(--ease-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform var(--t-slow) var(--ease-expo);
}
.btn:hover::before { transform: translateX(0); }

/* Primary: white outline, fills white on hover */
.btn--primary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255,255,255,0.5);
}
.btn--primary::before { background: rgba(255,255,255,0.08); }
.btn--primary:hover { border-color: var(--white); }

/* Solid: white bg, dark text */
.btn--solid {
  color: var(--void);
  background: var(--white);
  border-color: var(--white);
}
.btn--solid::before { background: var(--ivory); }
.btn--solid:hover { color: var(--void); }

/* Ghost */
.btn--ghost {
  color: var(--text-dim);
  background: transparent;
  border-color: var(--border);
}
.btn--ghost::before { background: rgba(255,255,255,0.04); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

.btn__arrow { display: inline-flex; transition: transform var(--t-base) var(--ease-expo); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Link underline */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t-base) var(--ease-expo);
}
.link-underline:hover { color: var(--white); }
.link-underline:hover::after { width: 100%; }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-base) var(--ease-smooth),
              border-bottom-color var(--t-base) var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 4, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo image */
.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .nav__logo-img { height: 28px; }
}

.nav__links { display: flex; align-items: center; gap: var(--sp-5); }

.nav__link {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #fff;
  transition: width var(--t-base) var(--ease-expo);
}
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__cta {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65em 1.6em;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.nav__cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* Burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__burger span { display: block; width: 24px; height: 1px; background: rgba(255,255,255,0.7); transition: transform var(--t-base) var(--ease-expo), opacity var(--t-base); }
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--t-base), transform var(--t-base) var(--ease-expo);
}
.nav__mobile[hidden] { display: flex; } /* override HTML hidden so CSS controls visibility */
.nav__mobile.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  transition: color var(--t-fast);
}
.nav__mobile-link:hover { color: #fff; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s var(--ease-smooth);
}
.hero.loaded .hero__bg img { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,4,0.3) 0%,
    rgba(5,5,4,0.2) 40%,
    rgba(5,5,4,0.72) 82%,
    rgba(5,5,4,0.96) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__eyebrow {
  margin-bottom: var(--sp-5);
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up var(--t-slow) var(--ease-expo) 0.4s forwards;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 9.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  max-width: 16ch;
  opacity: 0;
  transform: translateY(40px);
  animation: reveal-up var(--t-xslow) var(--ease-expo) 0.6s forwards;
}
.hero__headline em { font-style: italic; color: rgba(255,255,255,0.6); }
.hero__sub {
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  color: rgba(255,255,255,0.55);
  max-width: 46ch;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal-up var(--t-slow) var(--ease-expo) 0.9s forwards;
}
.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-7, 4rem);
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up var(--t-slow) var(--ease-expo) 1.1s forwards;
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(5rem, 12vw, 9rem));
  padding-bottom: clamp(5rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}
.page-hero__bg-line {
  position: absolute;
  top: 0; right: var(--gutter);
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}
.page-hero__number {
  position: absolute;
  top: 50%; right: var(--gutter);
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 300;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ─── Section headers ────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.section-header__left { max-width: 55ch; }
.section-header__eyebrow { margin-bottom: var(--sp-3); }
.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(var(--step-4), 5vw, var(--step-5));
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
}
.section-header__text {
  font-size: var(--step-0);
  color: var(--muted);
  line-height: 1.75;
  margin-top: var(--sp-4);
  max-width: 48ch;
}

/* ─── Service Panels (Home) ──────────────────────────────────── */
.service-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.service-panel {
  position: relative;
  overflow: hidden;
  display: block;
}

.service-panel__media {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.service-panel__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform var(--t-xslow) var(--ease-smooth),
              filter var(--t-slow) var(--ease-smooth);
}

.service-panel:hover .service-panel__img {
  transform: scale(1.06);
  filter: brightness(0.4);
}

.service-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,4,0.9) 0%, rgba(5,5,4,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  z-index: 1;
}

.service-panel__label {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-3);
}

.service-panel__title {
  font-family: var(--font-display);
  font-size: clamp(var(--step-3), 3vw, var(--step-4));
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.service-panel__desc {
  font-size: var(--step--1);
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 32ch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-base) var(--ease-smooth),
              transform var(--t-base) var(--ease-expo);
}

.service-panel:hover .service-panel__desc {
  opacity: 1;
  transform: translateY(0);
}

.service-panel__arrow {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease-smooth) 0.05s,
              transform var(--t-base) var(--ease-expo) 0.05s,
              color var(--t-fast);
}
.service-panel:hover .service-panel__arrow {
  opacity: 1;
  transform: translateY(0);
  color: rgba(255,255,255,0.8);
}

/* Divider between service panels */
.service-panel + .service-panel {
  border-left: 1px solid var(--border);
}

/* ─── Portfolio Grid ─────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}
.portfolio-item--lg   { grid-column: span 8; }
.portfolio-item--md   { grid-column: span 4; }
.portfolio-item--sm   { grid-column: span 4; }
.portfolio-item--full { grid-column: span 12; }

.portfolio-item { position: relative; overflow: hidden; cursor: pointer; }
.portfolio-item__img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform var(--t-xslow) var(--ease-smooth), filter var(--t-slow);
}
.portfolio-item--lg .portfolio-item__img   { aspect-ratio: 16/10; }
.portfolio-item--full .portfolio-item__img { aspect-ratio: 21/7; }
.portfolio-item:hover .portfolio-item__img { transform: scale(1.05); filter: brightness(0.6); }

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,4,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__cat {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-1);
}
.portfolio-item__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  color: #fff;
}

/* Filter bar */
.filter-bar { display: flex; gap: var(--sp-1); flex-wrap: wrap; margin-bottom: var(--sp-8); }
.filter-btn {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5em 1.4em;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--t-fast);
  background: transparent;
}
.filter-btn:hover, .filter-btn.active { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.05); }

/* ─── Showreel ───────────────────────────────────────────────── */
.showreel { position: relative; overflow: hidden; cursor: pointer; }
.showreel__inner { position: relative; aspect-ratio: 16/9; background: var(--deep); overflow: hidden; }
.showreel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); transition: filter var(--t-slow), transform var(--t-xslow); }
.showreel:hover .showreel__poster { filter: brightness(0.4); transform: scale(1.02); }
.showreel__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); z-index: 2; }
.showreel__play {
  width: 84px; height: 84px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base) var(--ease-expo);
}
.showreel:hover .showreel__play { border-color: #fff; background: rgba(255,255,255,0.08); transform: scale(1.1); }
.showreel__play svg { width: 22px; fill: #fff; margin-left: 4px; }
.showreel__label { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ─── Work cards ─────────────────────────────────────────────── */
.work-grid--2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.work-grid--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }

.work-card { position: relative; overflow: hidden; display: block; }
.work-card__media { aspect-ratio: 3/2; overflow: hidden; }
.work-card--large .work-card__media { aspect-ratio: 16/9; }
.work-card__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.72);
  transition: transform var(--t-xslow) var(--ease-smooth), filter var(--t-slow);
}
.work-card:hover .work-card__img { transform: scale(1.06); filter: brightness(0.5); }
.work-card__body { padding: var(--sp-4) 0 var(--sp-4); border-bottom: 1px solid var(--border); }
.work-card__cat { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
.work-card__title { font-family: var(--font-display); font-size: clamp(var(--step-2), 2.5vw, var(--step-3)); font-weight: 400; color: var(--ivory); margin-bottom: var(--sp-2); }
.work-card__meta { font-size: var(--step--1); color: var(--stone); display: flex; gap: var(--sp-4); }

/* ─── About split ────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.about-split__media { position: relative; }
.about-split__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: brightness(0.82); }
.about-split__tag {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(5,5,4,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.about-split__tag-num { font-family: var(--font-display); font-size: var(--step-5); font-weight: 300; color: #fff; line-height: 1; }
.about-split__tag-label { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.about-split__content { max-width: 52ch; }
.about-split__headline { font-family: var(--font-display); font-size: clamp(var(--step-4), 4.5vw, var(--step-5)); font-weight: 300; color: var(--ivory); line-height: 1.1; margin-bottom: var(--sp-6); }
.about-split__text { font-size: var(--step-0); color: var(--muted); line-height: 1.8; margin-bottom: var(--sp-3); }

/* ─── Stats ──────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { flex: 1; padding: var(--sp-10) var(--sp-6); border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--font-display); font-size: clamp(var(--step-5), 6vw, var(--step-7)); font-weight: 300; color: var(--ivory); line-height: 1; margin-bottom: var(--sp-2); }
.stat__label { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ─── Pillars ────────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.pillar {
  padding: var(--sp-8) var(--sp-6);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base);
}
.pillar:hover { background: rgba(255,255,255,0.02); }
.pillar__icon { width: 32px; height: 32px; margin-bottom: var(--sp-4); color: var(--text-dim); }
.pillar__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; color: var(--ivory); margin-bottom: var(--sp-3); }
.pillar__text { font-size: var(--step-0); color: var(--muted); line-height: 1.7; }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 14vw, 12rem) var(--gutter);
  text-align: center;
}
.cta-banner__bg { position: absolute; inset: 0; z-index: 0; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.22); }
.cta-banner__content { position: relative; z-index: 1; max-width: 700px; margin-inline: auto; }
.cta-banner__headline { font-family: var(--font-display); font-size: clamp(var(--step-4), 6vw, var(--step-6)); font-weight: 300; color: #fff; margin-bottom: var(--sp-5); line-height: 1.1; }
.cta-banner__sub { font-size: var(--step-1); color: rgba(255,255,255,0.5); margin-bottom: var(--sp-7, 4rem); line-height: 1.65; }

/* ─── Service Detail (services/individual pages) ─────────────── */
.service-detail {
  padding-block: clamp(5rem, 11vw, 10rem);
  border-bottom: 1px solid var(--border);
}
.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}
.service-detail__num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none; user-select: none;
}
.service-detail__title {
  font-family: var(--font-display);
  font-size: clamp(var(--step-4), 4.5vw, var(--step-5));
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
}
.service-detail__text { font-size: var(--step-0); color: var(--muted); line-height: 1.85; margin-bottom: var(--sp-5); }
.service-detail__list { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-7, 4rem); }
.service-detail__list-item { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--step-0); color: var(--text-dim); }
.service-detail__list-item::before { content: ''; flex-shrink: 0; width: 18px; height: 1px; background: var(--text-dim); }
.service-detail__image { overflow: hidden; }
.service-detail__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: brightness(0.75); transition: transform var(--t-xslow) var(--ease-smooth); }
.service-detail:hover .service-detail__image img { transform: scale(1.04); }

/* Tags */
.tag {
  font-size: var(--step--1);
  letter-spacing: 0.07em;
  padding: 0.3em 0.9em;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ─── Case Studies ───────────────────────────────────────────── */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
  padding-block: var(--sp-10);
  border-bottom: 1px solid var(--border);
}
.case-study-card:nth-child(even) .case-study-card__image { order: 2; }
.case-study-card:nth-child(even) .case-study-card__content { order: 1; }
.case-study-card__image { overflow: hidden; }
.case-study-card__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: brightness(0.78); transition: transform var(--t-xslow); }
.case-study-card:hover .case-study-card__image img { transform: scale(1.04); }
.case-study-card__num { font-family: var(--font-display); font-size: var(--step-3); font-weight: 300; color: var(--stone); margin-bottom: var(--sp-3); }
.case-study-card__title { font-family: var(--font-display); font-size: clamp(var(--step-3), 3.5vw, var(--step-4)); font-weight: 300; color: var(--ivory); margin-bottom: var(--sp-4); line-height: 1.15; }
.case-study-card__excerpt { font-size: var(--step-0); color: var(--muted); line-height: 1.8; margin-bottom: var(--sp-5); }
.case-study-card__tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-12); align-items: start; }
.contact-info__headline { font-family: var(--font-display); font-size: clamp(var(--step-4), 5vw, var(--step-6)); font-weight: 300; color: var(--ivory); margin-bottom: var(--sp-7, 4rem); line-height: 1.1; }
.contact-detail { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-10); }
.contact-detail__item { padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.contact-detail__label { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-1); }
.contact-detail__value { font-family: var(--font-display); font-size: var(--step-2); color: var(--ivory); overflow-wrap: break-word; word-break: break-word; }
.contact-detail__value a { transition: color var(--t-fast); }
.contact-detail__value a:hover { color: #fff; }
@media (max-width: 480px) {
  .contact-detail__value { font-size: var(--step-1); }
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-1); }
.form-label { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-input, .form-textarea, .form-select {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--sp-3);
  color: var(--text);
  font-size: var(--step-0);
  width: 100%;
  transition: border-color var(--t-fast);
  appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--stone); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7268' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select option { background: var(--deep); color: var(--text); }

/* GDPR checkbox */
.form-group--gdpr { margin-top: var(--sp-2); }
.form-checkbox { display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; }
.form-checkbox input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ivory); cursor: pointer; }
.form-checkbox__label { font-size: var(--step--1); color: var(--muted); line-height: 1.65; }
.form-checkbox__label a { color: var(--ivory); text-decoration: underline; text-underline-offset: 2px; }

/* Form submission notices */
.form-notice { padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); font-size: var(--step--1); line-height: 1.65; border: 1px solid; }
.form-notice--success { border-color: rgba(255,255,255,0.25); color: var(--muted); }
.form-notice--error   { border-color: rgba(220,80,80,0.4); color: rgba(255,160,160,0.9); }
.form-notice--error a { color: inherit; text-decoration: underline; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--deep); border-top: 1px solid var(--border); padding: var(--sp-12) 0 var(--sp-6); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-12); }
.footer__brand-name { font-family: var(--font-display); font-size: var(--step-3); font-weight: 300; color: #fff; line-height: 1.1; margin-bottom: var(--sp-4); }
.footer__brand-text { font-size: var(--step--1); color: var(--muted); line-height: 1.75; max-width: 32ch; margin-bottom: var(--sp-5); }
.footer__logo-link { display: inline-flex; align-items: center; margin-bottom: var(--sp-5); }
.footer__logo-img { height: 44px; width: auto; display: block; }
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social-link { width: 36px; height: 36px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: border-color var(--t-fast), color var(--t-fast); }
.footer__social-link:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.footer__col-title { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-5); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__link { font-size: var(--step-0); color: var(--stone); transition: color var(--t-fast); }
.footer__link:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-6); border-top: 1px solid var(--border); }
.footer__copy { font-size: var(--step--1); color: var(--stone); }
.footer__legal { display: flex; gap: var(--sp-4); }
.footer__legal-link { font-size: var(--step--1); color: var(--stone); transition: color var(--t-fast); }
.footer__legal-link:hover { color: var(--ivory); }

/* ─── Scroll reveals ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity var(--t-slow) var(--ease-expo), transform var(--t-slow) var(--ease-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity var(--t-slow) var(--ease-expo), transform var(--t-slow) var(--ease-expo); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity var(--t-slow) var(--ease-expo), transform var(--t-slow) var(--ease-expo); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity var(--t-slow) var(--ease-expo), transform var(--t-slow) var(--ease-expo); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease-expo), transform var(--t-slow) var(--ease-expo); }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 90ms; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 180ms; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 270ms; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 360ms; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 450ms; }

/* ─── Skip link (accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 20000;
  padding: 0.75em 1.5em;
  background: var(--ivory);
  color: var(--void);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ─── Focus visible ──────────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee {
    animation: none;
  }
}

/* ─── Keyframes ──────────────────────────────────────────────── */
@keyframes reveal-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee   { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ─── Marquee ─────────────────────────────────────────────────── */
.marquee-wrapper { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--sp-3) 0; }
.marquee { display: flex; flex-wrap: nowrap; gap: var(--sp-8); width: max-content; animation: marquee 32s linear infinite; }
.marquee-text { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; font-weight: 300; color: var(--stone); white-space: nowrap; display: flex; align-items: center; gap: var(--sp-8); }
.marquee-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }

/* ─── Video modal ────────────────────────────────────────────── */
.video-modal { position: fixed; inset: 0; z-index: 5000; background: rgba(5,5,4,0.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.video-modal[hidden] { display: flex; } /* hidden attr sets display:none — override so CSS opacity controls visibility */
.video-modal.open { opacity: 1; pointer-events: all; }
.video-modal__inner { width: 90%; max-width: 1100px; position: relative; }
.video-modal__close { position: absolute; top: -50px; right: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: color var(--t-fast); }
.video-modal__close:hover { color: #fff; }
.video-modal__video { width: 100%; aspect-ratio: 16/9; background: var(--deep); display: flex; align-items: center; justify-content: center; }
.video-modal__player { width: 100%; height: 100%; display: block; object-fit: contain; }
.video-modal__placeholder { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; color: var(--stone); }

/* ─── Utilities ──────────────────────────────────────────────── */
.text-white  { color: #fff; }
.text-muted  { color: var(--muted); }
.text-ivory  { color: var(--ivory); }
.text-dim    { color: var(--text-dim); }
.text-center { text-align: center; }
.italic      { font-style: italic; }
.pt-nav      { padding-top: var(--nav-h); }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-3  { margin-bottom: var(--sp-3); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-5  { margin-bottom: var(--sp-5); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .service-panels { grid-template-columns: 1fr; }
  .service-panel + .service-panel { border-left: none; border-top: 1px solid var(--border); }
  .service-panel__media { aspect-ratio: 16/8; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .case-study-card { grid-template-columns: 1fr; }
  .case-study-card:nth-child(even) .case-study-card__image { order: unset; }
  .case-study-card:nth-child(even) .case-study-card__content { order: unset; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item--lg, .portfolio-item--md, .portfolio-item--sm, .portfolio-item--full { grid-column: span 1; }
  .portfolio-item__img, .portfolio-item--lg .portfolio-item__img, .portfolio-item--full .portfolio-item__img { aspect-ratio: 4/3; }
  .work-grid--2col, .work-grid--3col { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stats-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .form-row { grid-template-columns: 1fr; }
  .service-detail__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
