/* ============================================================
   TRIMEDIA X — Homepage
   Brand system: 80% neutral · 15% supporting gray · 5% accent
   Type: Glacial Indifference (display) · Poppins (headings/CTA)
         Lato (body) · Roboto (UI/captions)
   UI rules: 12px card radius · 8px spacing unit · 4.5:1 contrast
   ============================================================ */

:root {
  --black: #000000;
  --ink: #0a0a0a;
  --charcoal: #141414;
  --card: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --white: #ffffff;
  --text: #f2f2f2;
  --muted: #a8a8a8;          /* ≥ 4.5:1 on black */
  --faint: #6f6f6f;          /* decorative only */

  --magenta: #e6007e;
  --purple: #7b2fbe;
  --blue: #0072ce;
  --cyan: #00b7c3;
  --green: #00a651;
  --lime: #a4d700;
  --yellow: #ffc700;
  --orange: #ff6b00;

  --font-display: 'Glacial Indifference', 'Poppins', sans-serif;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-ui: 'Roboto', sans-serif;

  --radius: 12px;
  --container: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;             /* ≥16px per brand accessibility rules */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; transition: text-decoration-color .3s; }
p a:hover { text-decoration-color: var(--magenta); }

::selection { background: var(--magenta); color: var(--white); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--white); color: var(--black);
  padding: 12px 24px; border-radius: 0 0 var(--radius) 0;
  font-family: var(--font-ui);
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 12vw, 160px) 0; position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px; flex: 0 0 8px;
  background: linear-gradient(135deg, var(--magenta), var(--orange));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 18ch;
}

.lead { font-size: 1.25rem; line-height: 1.6; color: var(--white); font-weight: 400; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__aside {
  max-width: 340px;
  color: var(--muted);
  font-size: 15px;
  padding-bottom: 8px;
}
.section-head__aside .link-arrow { margin-top: 16px; font-size: 14px; }

/* Portfolio filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.filter-btn {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s, transform .4s var(--ease);
}
.filter-btn:hover { color: var(--white); border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.filter-btn.is-active { background: var(--white); color: var(--black); border-color: var(--white); }

.grad {
  font-style: normal;
  background: linear-gradient(92deg, var(--magenta) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 18px 32px;
  border-radius: 100px; /* pill shape */
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .45s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .45s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--magenta); color: #ffffff; }
.btn--primary:hover {
  background: #c70070;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(230, 0, 126, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 28%, transparent);
}
.btn--ghost:hover { border-color: var(--white); transform: translateY(-2px); }

.btn--nav { background: var(--magenta); color: #ffffff; padding: 12px 22px; font-size: 14px; }
.btn--nav:hover { background: #c70070; box-shadow: 0 8px 28px -6px rgba(230, 0, 126, 0.5); }

.btn--xl { padding: 24px 44px; font-size: 17px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: var(--white); margin-top: 32px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 6px;
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--magenta); gap: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: transform .5s var(--ease), background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  /* solid fill instead of backdrop blur — blur repaints every scrolled
     frame and is the main source of scroll jank on Windows */
  background: rgba(10, 10, 10, 0.94);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 36px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color .3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--magenta), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 26px; height: 2px;
  background: var(--white);
  transition: transform .4s var(--ease), opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  color: var(--white);
  padding: 8px 24px;
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--magenta); }
.mobile-menu__cta { font-size: 1.1rem !important; font-family: var(--font-ui) !important; color: var(--muted) !important; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 120px;
}
.hero__bg { position: absolute; inset: -12% 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  animation: kenburns 26s var(--ease) infinite alternate;
}
.hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, #000 100%),
    radial-gradient(120% 90% at 20% 40%, rgba(0,0,0,.5) 0%, transparent 60%);
}

.hero__shards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.shard {
  position: absolute;
  width: 140px; height: 34px;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  opacity: 0.55;
  filter: blur(1px);
}
.shard--magenta { top: 22%; right: 14%; background: linear-gradient(120deg, var(--magenta), var(--purple)); transform: rotate(-32deg); }
.shard--cyan    { top: 64%; right: 26%; background: linear-gradient(120deg, var(--cyan), var(--blue)); transform: rotate(28deg); width: 110px; height: 26px; }
.shard--orange  { top: 34%; right: 34%; background: linear-gradient(120deg, var(--yellow), var(--orange)); transform: rotate(24deg); width: 90px; height: 22px; }
.shard--lime    { top: 76%; right: 10%; background: linear-gradient(120deg, var(--lime), var(--green)); transform: rotate(-24deg); width: 120px; height: 28px; }

.hero__content { position: relative; z-index: 3; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9.2vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--white);
  margin: 8px 0 32px;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line { display: block; }

.hero__sub {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.hero__sub strong { color: var(--white); }

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__note {
  margin-top: 28px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--muted);
}
.hero__note a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.hero__note a:hover { text-decoration-color: var(--magenta); }

.hero__scrollhint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 1px; height: 56px; overflow: hidden;
}
.hero__scrollhint span {
  display: block; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--white));
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  white-space: nowrap;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.x-dot {
  width: 10px; height: 10px; flex: 0 0 10px;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--orange) 50%, var(--cyan) 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Shared grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

/* ---------- Problem ---------- */
.problem { background: var(--black); }
.problem__copy p { color: var(--muted); margin-bottom: 20px; max-width: 52ch; }
.problem__copy .lead { color: var(--white); margin-bottom: 24px; }
.problem__pivot {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--white) !important;
  margin-top: 32px;
}
.problem__copy .h2 { margin-bottom: 32px; }

.problem__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.problem__media img { width: 100%; height: 112%; object-fit: cover; }

.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius); }

/* ---------- Services ---------- */
.services { background: var(--ink); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 32px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card:hover::after { opacity: 1; }

.card__num {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--accent);
  display: block;
  margin-bottom: 56px;
}
.card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 14px;
}
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }
.card__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
}
/* stretch the link over the whole card */
.card__link::before { content: ''; position: absolute; inset: 0; }
.card__link svg { transition: transform .4s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ---------- Work ---------- */
.work { background: var(--black); }
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
}
.work__grid > .work-tile:nth-child(even) { margin-top: clamp(24px, 5vw, 72px); }

.work-tile {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.work-tile > img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.work-tile:hover { transform: translateY(-6px); }
.work-tile.is-hidden { display: none; }

.work-tile__meta { padding: 24px 4px 0; }
.work-tile__cat {
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-tile__meta h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  margin: 10px 0 8px;
  transition: color .3s;
}
.work-tile:hover .work-tile__meta h3 { color: var(--magenta); }
.work-tile__stat {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  display: inline-block;
  margin-top: 6px;
}

/* ---------- Numbers ---------- */
.numbers { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(72px, 9vw, 120px) 0; }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.number { text-align: left; padding-left: 28px; border-left: 1px solid var(--line); }
.number__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}
.number__label {
  font-family: var(--font-ui);
  font-size: 13.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process { background: var(--black); }
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--ink) 100%);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1;
  display: block;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--magenta), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}
.step:nth-child(2) .step__num { background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.step:nth-child(3) .step__num { background: linear-gradient(135deg, var(--lime), var(--green)); -webkit-background-clip: text; background-clip: text; }
.step h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ink); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quote blockquote {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.quote figcaption strong { color: var(--white); font-weight: 500; }
.quote__avatar {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 85%, black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq { background: var(--black); }
.grid-2--faq { align-items: start; }
.faq__aside { color: var(--muted); margin-top: 24px; max-width: 36ch; }
.faq .h2 { margin-bottom: 0; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--magenta); }
.faq__icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); }
.faq__item p { color: var(--muted); padding: 0 40px 28px 4px; max-width: 62ch; }

/* ---------- CTA ---------- */
.cta {
  background: radial-gradient(90% 120% at 50% 120%, #101010 0%, var(--black) 60%);
  overflow: hidden;
  text-align: center;
  padding: clamp(120px, 16vw, 220px) 0;
}
.cta__x {
  position: absolute;
  right: -8%;
  top: 50%;
  width: clamp(340px, 42vw, 640px);
  opacity: 0.14;
  pointer-events: none;
  filter: saturate(1.1);
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta .eyebrow { justify-content: center; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 12px 0 32px;
}
.cta__sub { color: var(--muted); font-size: 1.2rem; margin-bottom: 48px; }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta__note {
  margin-top: 28px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 100px) 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer__brand img { height: 34px; width: auto; margin-bottom: 24px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h4 {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.footer__col a { color: var(--muted); font-size: 15px; transition: color .3s, transform .3s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--white); transform: translateX(4px); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--muted);
}
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color .3s, border-color .3s, transform .4s var(--ease);
}
.footer__social a:hover { color: var(--white); border-color: var(--magenta); transform: translateY(-3px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translate(-50%, 80px);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 100px;
  z-index: 150;
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal initial states (JS-enabled only) ---------- */
html.js .reveal { opacity: 0; transform: translateY(36px); }
html.js .reveal-lines { visibility: hidden; }
html.js .line { transform: translateY(112%); }
html.js .img-reveal img { transform: scale(1.15); }
html.js .img-reveal::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--black);
  transform: scaleY(1);
  transform-origin: top;
  z-index: 2;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 640px; }
  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .problem__media { order: -1; aspect-ratio: 16 / 10; }
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .work__grid { grid-template-columns: 1fr; }
  .work__grid > .work-tile:nth-child(even) { margin-top: 0; }
  .process__steps { grid-template-columns: 1fr; }
  .cta__x { right: -30%; opacity: .1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .number { padding-left: 18px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .btn--xl { padding: 20px 28px; font-size: 15px; width: 100%; justify-content: center; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .faq__item p { padding-right: 8px; }
}

/* ============================================================
   Inner pages (contact / faq / services)
   ============================================================ */
.page-hero {
  padding: clamp(160px, 20vw, 220px) 0 clamp(72px, 9vw, 110px);
  background: radial-gradient(80% 120% at 70% -30%, #161616 0%, var(--black) 60%);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }

/* Page hero with cinematic background image */
.page-hero--img { background: var(--black); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 50%, var(--black) 100%);
}

/* Full-bleed image interludes between sections */
.image-band {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 44vw, 520px);
  border-radius: 0;
}
.image-band img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.image-band::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  z-index: 1;
  pointer-events: none;
}
.image-band__caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(var(--container), 100%);
  padding: 0 var(--gutter);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  z-index: 3;
}
.image-band__caption::before {
  content: '';
  width: 8px; height: 8px; flex: 0 0 8px;
  background: linear-gradient(135deg, var(--magenta), var(--orange));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .3s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { color: var(--faint); }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.8vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 18ch;
  margin: 10px 0 28px;
}
.page-hero__sub { max-width: 58ch; color: var(--muted); font-size: 1.15rem; }
.page-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 44px; }

/* Contact channel cards */
.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.channel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), border-color .4s;
}
.channel:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent, #ffffff) 50%, transparent); }
.channel__icon {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent, var(--white));
  margin-bottom: 24px;
}
.channel h2, .channel h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}
.channel p { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 20px; }
.channel .link-arrow { margin-top: 0; }

/* Form (opens the visitor's email app via mailto) */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field { display: flex; flex-direction: column; gap: 10px; }
.form__field--full { grid-column: 1 / -1; }
.form label {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input, .form select, .form textarea {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px 18px;
  width: 100%;
  transition: border-color .3s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form textarea { min-height: 150px; resize: vertical; }
.form__note {
  grid-column: 1 / -1;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--faint);
}
.form .btn { justify-self: start; }

/* Service page feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .5s var(--ease), border-color .4s;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent, #ffffff) 45%, transparent); }
.feature h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature h3::before {
  content: '';
  width: 9px; height: 9px; flex: 0 0 9px;
  background: var(--accent, var(--magenta));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.feature p { color: var(--muted); font-size: 15px; }

/* Editorial split used on inner pages */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: start; }
.split .h2 { position: sticky; top: 120px; }
.split__body p { color: var(--muted); margin-bottom: 20px; max-width: 56ch; }
.split__body p strong { color: var(--white); }

@media (max-width: 1080px) {
  .channels { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .h2 { position: static; }
  .features { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ============================================================
   Light sections — AffinityX-style light/dark sandwich.
   Components read the same CSS variables, so remapping them
   here re-themes cards, steps, quotes, FAQ, forms, buttons.
   ============================================================ */
.section--light,
.section--tint {
  --white: #0a0a0a;
  --black: #ffffff;
  --text: #1f1f1f;
  --muted: #565656;
  --faint: #9a9a9a;
  --ink: #f5f5f5;
  --charcoal: #f0f0f0;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.10);
  background: #ffffff;
  color: var(--text);
}
.section--tint { background: #f6f6f6; }

/* light surfaces get a soft lift instead of glow */
.section--light .card, .section--tint .card,
.section--light .feature, .section--tint .feature,
.section--light .quote, .section--tint .quote,
.section--light .channel, .section--tint .channel {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.15);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal, html.js .line, html.js .img-reveal img { opacity: 1; transform: none; }
  html.js .reveal-lines { visibility: visible; }
  html.js .img-reveal::after { display: none; }
  .hero__bg img { animation: none; }
}
