/* =========================================================
   Caesar Marcom — Home
   Tokens mirror the Figma "Colors" variables & text styles
   ========================================================= */
:root {
  /* Brand */
  --rich-black: #0b0d12;
  --slate: #252b36;
  --slate-light: #3a4250;
  --gold: #c8a86b;
  --gold-hover: #d8bd85;
  /* Neutral */
  --off-white: #f7f6f3;
  --grey-200: #d9dce1;
  --grey-400: #9aa1ac;
  --grey-600: #5f6673;
  /* Semantic */
  --bg: #000;
  --text: var(--off-white);
  --text-2: var(--grey-400);
  --text-3: var(--grey-600);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.22);

  /* Type */
  --font-display: "ivypresto-display", "IvyPresto Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(96px, 12vw, 180px);
  --header-h: 96px;

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

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--gold); color: var(--rich-black); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--gold); color: var(--rich-black);
  padding: 10px 16px; font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared UI ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.eyebrow-center::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow-center::before { width: 32px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 18px;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arrow { font-size: 15px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--rich-black); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--rich-black); }
.btn-sm { padding: 13px 24px; }

.link-underline {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 7px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
}
.link-underline .arrow { color: var(--gold); transition: transform .35s var(--ease); }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform-origin: left; transition: transform .45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(.35); }
.link-underline:hover .arrow { transform: translateX(4px); }

.section { padding-block: calc(var(--section-y) / 2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 56px;
}
.section-head .link-underline { margin-bottom: 14px; }

/* ---------- Brand / logo ---------- */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 64px; width: auto; }
.brand-fallback {
  display: none; flex-direction: column; line-height: 1;
  font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; text-transform: uppercase;
}
.brand-fallback small { font-size: 12px; letter-spacing: .3em; color: var(--text-2); margin-top: 4px; }
.brand.is-missing img { display: none; }
.brand.is-missing .brand-fallback { display: inline-flex; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), height .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 76px;
  background: rgba(11, 13, 18, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled .brand img { height: 48px; }
.brand img { transition: height .4s var(--ease); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.nav { display: flex; align-items: center; gap: 44px; }
.nav-links { display: flex; gap: 44px; }
.nav-links a {
  position: relative;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); opacity: .78; transition: opacity .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; z-index: 60;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-texture {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(37, 43, 54, .55), transparent 70%),
    repeating-radial-gradient(circle at 80% 30%, rgba(255,255,255,.035) 0 1px, transparent 1px 9px);
  -webkit-mask-image: radial-gradient(70% 80% at 75% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 75% 40%, #000 30%, transparent 75%);
}
.hero-media {
  position: absolute; z-index: -1;
  left: 0; bottom: 0; top: var(--header-h);
  width: min(56%, 820px);
}
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  mix-blend-mode: lighten; /* the render sits on pure black — let it melt into the page */
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
}
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 28%;
  background: linear-gradient(to bottom, transparent, #000);
}
.hero-media.is-missing { background: radial-gradient(50% 60% at 50% 45%, var(--slate), transparent 70%); }
.hero-media.is-missing video { opacity: 0; }

.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); }
.hero-copy { grid-column: 2; padding-block: 48px; }

.hero-title {
  display: flex; align-items: baseline; gap: .26em;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 22px;
  margin-bottom: 2.1em; /* room for the fading words below */
}
.rotator { position: relative; display: inline-block; }
.rotator-track { display: grid; }
.rotator-word {
  grid-area: 1 / 1;
  white-space: nowrap;
  transform: translateY(calc(var(--o, 0) * 1.12em));
  opacity: var(--a, 0);
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.rotator-word.no-anim { transition: none; }

.hero-sub {
  max-width: 470px;
  color: var(--text-2);
  font-size: 18px; line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 40px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; translate: -50% 0;
  width: 1px; height: 56px; background: var(--line); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- About ---------- */
.about { padding-top: calc(var(--section-y) * .55); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 540px) 1fr;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.about .section-title { margin-bottom: 36px; }
.about .lead { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 520px; }
.about .body { font-size: 18px; line-height: 1.65; color: var(--text-2); max-width: 520px; margin-top: 28px; }
.about .btn { margin-top: 44px; }
.about-art { margin-right: calc((min(100vw, 1440px) - min(100vw, var(--container) + var(--gutter) * 2)) / -2 - var(--gutter)); }
.about-art img { width: 100%; height: auto; }
.about-art img.is-missing { display: none; }

/* Layered chess: the hand slowly lowers the king toward the board, pauses, lifts — weighing the move */
.chess { position: relative; --px: 0; --py: 0; }
.chess-layer { display: block; transition: transform 1.2s var(--ease); }
.chess-board-wrap { transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 4px), 0); }
.chess-hand-wrap {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 10px), 0);
}
.chess-hand {
  width: 100%; height: 100%;
  transform-origin: 98.4% 41.2%;          /* pivot where the drape meets the column top */
  transform: rotate(9deg); opacity: 0;
}
.chess.is-in .chess-hand {
  animation:
    chess-enter 1.8s var(--ease) .25s forwards,
    chess-weigh 7.5s cubic-bezier(.45, 0, .25, 1) 2.05s infinite;
}
@keyframes chess-enter {
  from { transform: rotate(9deg); opacity: 0; }
  to   { transform: rotate(2deg); opacity: 1; }
}
@keyframes chess-weigh {
  0%, 100% { transform: rotate(2deg); opacity: 1; }
  42%, 58% { transform: rotate(0deg); opacity: 1; }   /* piece hovers just above its square */
}
/* contact shadow under the king — darkens as it nears the board */
.chess-shadow {
  position: absolute; left: 41%; top: 69.5%; width: 14%; height: 3.4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent);
  opacity: 0; transform: scale(.6);
  pointer-events: none;
}
.chess.is-in .chess-shadow { animation: chess-shadow 7.5s cubic-bezier(.45, 0, .25, 1) 2.05s infinite; }
@keyframes chess-shadow {
  0%, 100% { opacity: .25; transform: scale(.7); }
  42%, 58% { opacity: .9;  transform: scale(1); }
}
/* drifting gold dust */
.chess-motes { position: absolute; inset: 20% 10% 18% 25%; pointer-events: none; }
.chess-motes i {
  position: absolute; bottom: 0; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px 1px rgba(200, 168, 107, .6);
  opacity: 0; animation: mote 9s linear infinite;
}
.chess-motes i:nth-child(1) { left: 12%; animation-delay: 0s; }
.chess-motes i:nth-child(2) { left: 28%; animation-delay: 2.4s; animation-duration: 11s; }
.chess-motes i:nth-child(3) { left: 41%; animation-delay: 5.1s; width: 2px; height: 2px; }
.chess-motes i:nth-child(4) { left: 55%; animation-delay: 1.3s; animation-duration: 12s; }
.chess-motes i:nth-child(5) { left: 67%; animation-delay: 6.6s; width: 2px; height: 2px; }
.chess-motes i:nth-child(6) { left: 80%; animation-delay: 3.7s; animation-duration: 10s; }
.chess-motes i:nth-child(7) { left: 92%; animation-delay: 8.2s; }
@keyframes mote {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: .8; }
  70%  { opacity: .5; }
  100% { transform: translate(-24px, -260px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chess-hand { transform: none; opacity: 1; }
  .chess-motes, .chess-shadow { display: none; }
}

/* ---------- Work accordion ---------- */
.accordion {
  display: flex; gap: 16px;
  height: clamp(520px, 48vw, 686px);
}
.panel {
  position: relative; flex: 155 1 0; min-width: 0;
  overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, var(--slate) 0%, var(--rich-black) 100%);
  border: 1px solid var(--slate-light);
  transition: flex-grow .9s var(--ease), border-color .4s;
  outline-offset: 2px;
}
.panel:hover { border-color: rgba(200, 168, 107, .5); }
.panel.is-open { flex-grow: 516; cursor: default; border-color: transparent; }
.panel-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform 1.2s var(--ease);
}
.panel.is-open:hover .panel-media { transform: scale(1.03); }
.panel::after {
  content: ""; position: absolute; inset: 47% 0 0 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(11, 13, 18, .85));
  opacity: 0; transition: opacity .6s var(--ease);
}
.panel.is-open::after { opacity: 1; }

.panel-no {
  position: absolute; left: 24px; top: 28px; z-index: 2;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--gold);
}
.panel.is-open .panel-no { color: var(--off-white); }
.panel-label {
  position: absolute; left: 24px; bottom: 96px; z-index: 2;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 14px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .4s var(--ease);
}
.panel-plus {
  position: absolute; left: 24px; bottom: 28px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: 18px; line-height: 1;
  transition: transform .5s var(--ease), opacity .4s;
}
.panel:hover .panel-plus { transform: rotate(90deg); }
.panel.is-open .panel-label,
.panel.is-open .panel-plus { opacity: 0; }

.panel-card {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 3;
  min-width: 360px;
  padding: 28px;
  background: rgba(11, 13, 18, .62);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.panel.is-open .panel-card {
  opacity: 1; transform: none; pointer-events: auto;
  transition-delay: .35s;
}
.panel-tag { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.panel-title { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; margin-top: 10px; }
.panel-desc { font-size: 15px; line-height: 1.55; color: var(--text-2); margin-top: 8px; max-width: 410px; }
.panel-link {
  display: inline-flex; gap: 10px; margin-top: 16px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.panel-link .arrow { transition: transform .35s var(--ease); }
.panel-link:hover .arrow { transform: translateX(4px); }
.panel-media.is-missing { display: none; }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 32px 34px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .09);
  overflow: hidden;
  transition: border-color .5s var(--ease), background-color .5s var(--ease), transform .6s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.service:hover { border-color: rgba(200, 168, 107, .35); background: rgba(255, 255, 255, .045); transform: translateY(-4px); }
.service:hover::before { transform: scaleX(1); }
.service-no {
  font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--gold); line-height: 1;
}
/* every illustration sits in an identical stage, centred and resting on the same baseline */
.service-stage {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  height: 196px; margin: 20px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding-bottom: 12px;
}
.service-stage img {
  width: auto; height: 100%; max-width: 72%;
  object-fit: contain; object-position: center bottom;
  transform-origin: center bottom;
  transition: transform .8s var(--ease);
}
.service:hover .service-stage img { transform: scale(1.05); }
.service-stage img.is-missing { display: none; }
.service h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 2.1vw, 1.85rem); line-height: 1.15;
  white-space: nowrap;
}
.service p { margin-top: 10px; font-size: 15px; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta { padding-top: calc(var(--section-y) * .55); }
.cta-band {
  position: relative;
  min-height: 424px;
  background: linear-gradient(90deg, var(--rich-black) 0%, var(--slate) 100%);
  display: flex; align-items: center;
}
.cta-art {
  position: absolute; left: 0; bottom: 0;
  width: min(46%, 680px);
  pointer-events: none;
  --px: 0; --py: 0;
}
.cta-art img { display: block; width: 100%; height: auto; }
.cta-art img.is-missing { visibility: hidden; }
.cta-layer { display: block; transition: transform 1.2s var(--ease); }
.cta-statue-wrap { transform: translate3d(calc(var(--px) * 5px), calc(var(--py) * 3px), 0); }
.cta-arm-wrap {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--px) * 5px), calc(var(--py) * 3px), 0); /* same as statue: arm stays attached */
}
.cta-arm-rot { position: absolute; inset: 0; transform-origin: 83.75% 67.1%; } /* pivot on the forearm, where it leaves the drape */
.cta-arm-rot img { position: absolute; inset: 0; }
.cta-art.is-in .cta-arm-rot { animation: cta-rally 6.5s cubic-bezier(.45, 0, .25, 1) 1.2s infinite; }
@keyframes cta-rally {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(-1.6deg); }   /* draws the scroll back… */
  55%      { transform: rotate(1.2deg); }    /* …and thrusts it forward */
  75%      { transform: rotate(.2deg); }
}
/* gold glint travelling with the scroll tip */
.cta-glint {
  position: absolute; left: 98.1%; top: 3.7%; width: 13%; aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(232, 205, 150, .55), rgba(200, 168, 107, .18) 45%, transparent);
  mix-blend-mode: screen; opacity: 0;
}
.cta-art.is-in .cta-glint { animation: cta-glint 6.5s ease-in-out 1.2s infinite; }
@keyframes cta-glint {
  0%, 20%, 80%, 100% { opacity: 0; transform: scale(.6); }
  55%                { opacity: 1; transform: scale(1.15); }
}
.cta-motes { inset: 10% 0 25% 35%; }
@media (prefers-reduced-motion: reduce) { .cta-glint, .cta-motes { display: none; } }
.cta-inner { display: flex; justify-content: flex-end; }
.cta-copy {
  width: 58%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: 80px;
}
.cta-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15;
  margin-top: 22px; margin-bottom: 36px;
}
.cta-title em {
  display: block; font-style: normal; color: var(--gold);
  font-size: clamp(4rem, 8vw, 6.5rem); line-height: 1; margin-top: 6px; text-transform: uppercase;
}

/* ---------- Clients ---------- */
.clients { padding-block: 40px; }
.clients-inner {
  display: flex; align-items: center; gap: 48px;
  border-block: 1px solid var(--line);
  padding-block: 28px;
}
.clients .container.clients-inner { padding-inline: 0; width: calc(100% - var(--gutter) * 2); max-width: var(--container); }
.clients-label {
  flex: none; font-size: 11px; font-weight: 500; letter-spacing: .24em; line-height: 1.7;
  text-transform: uppercase; color: var(--text); opacity: .55;
}
.client-logos {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-left: 8%;
}
.client-logos li { display: grid; }
.client-logos img {
  grid-area: 1 / 1;
  height: 32px; width: auto;
  opacity: .55;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.client-logos .client-logo-color { opacity: 0; }
.client-logos .client-logo-bosch {
  grid-area: 1 / 1;
  background-color: #ed0007;
  -webkit-mask: url("Assets/client-bosch-mono.png") center / contain no-repeat;
  mask: url("Assets/client-bosch-mono.png") center / contain no-repeat;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.client-logos li:hover .client-logo-bosch { transform: translateY(-2px); }
.client-logos li:hover img { transform: translateY(-2px); }
.client-logos li:hover .client-logo-mono { opacity: 0; }
.client-logos li:hover .client-logo-color { opacity: 1; }
.client-logos img.is-missing { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 72px; }
.footer-grid {
  display: grid; grid-template-columns: 1.1fr .7fr 1.3fr; gap: 48px;
}
.footer-tagline { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.socials { display: flex; gap: 12px; margin-top: 32px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--slate-light);
  font-size: 11px; font-weight: 500; letter-spacing: .1em;
  transition: border-color .3s, color .3s, background-color .3s;
}
.socials a:hover { border-color: var(--gold); color: var(--rich-black); background: var(--gold); }

.footer-heading {
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.footer-menu li + li { margin-top: 14px; }
.footer-menu a { font-size: 18px; transition: color .3s; }
.footer-menu a:hover { color: var(--gold); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { position: relative; }
.field-full { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  padding: 26px 0 10px;
  background: transparent; color: var(--text);
  font: 400 16px/1.5 var(--font-sans);
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; outline: none; resize: vertical;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; }
.field label {
  position: absolute; left: 0; top: 26px;
  font-size: 16px; color: var(--text-3); pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease), color .35s;
}
.field input:focus,
.field textarea:focus { border-color: var(--gold); }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(.75); color: var(--gold);
}
.field.has-error input,
.field.has-error textarea { border-color: #d77a6b; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.form-status { font-size: 14px; color: var(--text-2); }
.form-status.is-error { color: #e09a8d; }
.form-status.is-ok { color: var(--gold); }

.footer-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 80px; padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-3);
}
.footer-bar .container, .site-footer > .footer-bar { width: calc(100% - var(--gutter) * 2); max-width: var(--container); padding-inline: 0; }
.footer-bar a { color: var(--text-2); transition: color .3s; }
.footer-bar a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
/* fade in while scrolling: rise + soften-into-focus, with left/right/scale variants */
.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.3s var(--ease),
    filter 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal-left  { transform: translate3d(-64px, 0, 0); }
.reveal-right { transform: translate3d(64px, 0, 0); }
.reveal-scale { transform: translate3d(0, 32px, 0) scale(.95); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* hero eases out as you scroll past it */
[data-hero-copy], [data-hero-media] { will-change: opacity, transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr minmax(0, 460px); }
  .hero-media { width: 54%; }
  .accordion { gap: 12px; }
  .panel-card { min-width: 320px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .brand img { height: 48px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
    padding: 0 var(--gutter);
    background: rgba(11, 13, 18, .97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav-links a {
    font-family: var(--font-display); font-size: 44px; font-weight: 400;
    letter-spacing: 0; text-transform: none; opacity: 1;
  }
  .nav-links a::after { bottom: -2px; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--gold); }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .hero { min-height: auto; align-items: flex-end; padding-top: calc(var(--header-h) + 78vw); }
  .hero-media { top: var(--header-h); width: 100%; height: 92vw; bottom: auto; }
  .hero-media::after { display: none; }
  .hero-media video {
    object-position: center 15%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; padding-block: 0 96px; }
  .scroll-cue { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-art { margin-right: calc(var(--gutter) * -1); margin-left: 15%; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .link-underline { margin-bottom: 0; }

  .accordion { flex-direction: column; height: auto; }
  .panel { flex: none; height: 88px; transition: height .8s var(--ease), border-color .4s; }
  .panel.is-open { height: 560px; }
  .panel-label { writing-mode: horizontal-tb; transform: none; left: 72px; top: 34px; bottom: auto; }
  .panel-no { top: 36px; }
  .panel-plus { left: auto; right: 24px; top: 26px; bottom: auto; }
  .panel-card { min-width: 0; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .cta-band { flex-direction: column; align-items: stretch; }
  .cta-art { position: relative; height: auto; width: 70%; max-width: 420px; margin: 0 auto 0 0; }
  .cta { padding-top: 64px; }
  .cta-inner { justify-content: center; }
  .cta-copy { width: 100%; padding-top: 24px; }

  .clients-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .client-logos { padding-left: 0; width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-form { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.25rem); }
  .hero-actions { gap: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 280px; padding: 28px; }
  .service-stage { height: 160px; }
  .panel.is-open { height: 520px; }
  .panel-card { left: 16px; right: 16px; bottom: 16px; padding: 22px; }
  .panel-title { font-size: 32px; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .client-logos { justify-content: flex-start; gap: 28px 36px; }
  .client-logos img { height: 26px; }
}

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