/* ==========================================================================
   CG LABS, main.css
   Design tokens extracted verbatim from the Framer project "CG LABS".
   Vanilla CSS, no framework, no build step.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

/* Astro Armada: display face, logotype only. Licensed file supplied by CG Labs. */
@font-face {
  font-family: "Astro Armada";
  src: url("../fonts/astroarmada.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter is a variable font: one 48KB file covers every weight the site uses.
   Google Fonts serves the same file per weight, so requesting 400/500/600/700
   separately would ship the identical payload four times. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebasneue-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
  /* Brand colors, verbatim from Framer color styles */
  --white: #ffffff;
  --black: #0c0c0c;
  --primary: #f9452d;
  --gray: #f5f5f5;

  /* Derived ink scale */
  --ink: #0c0c0c;
  --ink-2: rgba(12, 12, 12, 0.72);
  --ink-mut: rgba(12, 12, 12, 0.6);
  --ink-faint: rgba(12, 12, 12, 0.45);
  --line: rgba(12, 12, 12, 0.12);

  /* On-dark ink scale */
  --dk-ink: #ffffff;
  --dk-ink-2: rgba(255, 255, 255, 0.7);
  --dk-ink-mut: rgba(255, 255, 255, 0.55);
  --dk-line: rgba(255, 255, 255, 0.14);

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-dark: #0c0c0c;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Astro Armada", "Inter", sans-serif;
  --font-bebas: "Bebas Neue", "Inter", sans-serif;

  /* Fluid type scale, matches the Framer text styles at their breakpoints.
     Framer's desktop h1 is 116px; it steps down to ~44px on mobile. */
  --fs-hero: clamp(2.75rem, 1.2rem + 7.2vw, 7.25rem);   /* 44 -> 116 */
  --fs-h1: clamp(2.5rem, 1.4rem + 5.2vw, 6.875rem);     /* 40 -> 110 */
  --fs-h2: clamp(2rem, 1.3rem + 3.3vw, 3.75rem);        /* 32 -> 60  */
  --fs-h3: clamp(1.375rem, 1.1rem + 1.3vw, 2.4375rem);  /* 22 -> 39  */
  --fs-h4: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20 -> 26  */
  --fs-lg: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);       /* 18 -> 24  */
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.6875rem;

  --lh-tight: 0.96;
  --lh-snug: 1.2;
  --lh-body: 1.5;
  --ls-tight: -0.07em;
  --ls-snug: -0.04em;
  --ls-label: 0.08em;

  /* Layout */
  --wrap: 1440px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 0.7rem + 2.6vw, 3.5rem);
  --sec-y: clamp(4rem, 2.5rem + 6vw, 9rem);

  --radius: 14px;
  --radius-lg: 22px;

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

/* ------------------------------------------------------------------ reset */

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

html {
  -webkit-text-size-adjust: 100%;
  /* No scroll-behavior:smooth, it fights Lenis. */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: var(--ls-snug); line-height: var(--lh-snug); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 10px 10px; font-size: var(--fs-sm);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ----------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sec-y); }
.section--dark { background: var(--bg-dark); color: var(--dk-ink); }
.section--alt { background: var(--bg-alt); }
.section--flush { padding-block: 0; }

/* ------------------------------------------------------------- typography */

.t-hero {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 600;
}
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.t-h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: var(--ls-tight); }
.t-h4 { font-size: var(--fs-h4); line-height: 1.3; }
.t-lead { font-size: var(--fs-lg); color: var(--ink-mut); line-height: 1.4; letter-spacing: -0.02em; }

.t-label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
}
.section--dark .t-label { color: rgba(255, 255, 255, 0.5); }
.section--dark .t-lead { color: var(--dk-ink-mut); }

.t-accent { color: var(--primary); }

/* --------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--solid { background: var(--ink); color: var(--white); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.section--dark .btn--ghost { border-color: var(--dk-line); color: var(--dk-ink); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .section--dark .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--gutter);
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1;
}
.site-header[data-theme="light"] .brand,
.site-header[data-theme="light"] .nav-link { color: var(--ink); }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.75rem); }
.nav-link {
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.35rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger, mobile only. Desktop uses the inline nav. */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--white);
  position: relative; transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--white);
  transition: transform 0.4s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg-dark);
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease);
    z-index: -1;
  }
  .nav-open .nav { transform: translateY(0); }
  .nav-link { font-size: 1.75rem; letter-spacing: -0.03em; text-transform: none; font-weight: 600; }
}

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--bg-dark); color: var(--dk-ink); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.footer-col h3 { font-size: var(--fs-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col li + li { margin-top: 0.6rem; }
.footer-col a, .footer-col li { color: var(--dk-ink-2); font-size: var(--fs-sm); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--dk-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--dk-ink-mut);
}
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ cards */

.grid {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.card { position: relative; }
.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.04); } }

.card__body { padding-top: 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; }
.card__title { font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.02em; }
.card__meta { font-size: var(--fs-label); color: var(--ink-faint); letter-spacing: -0.01em; }

.badge {
  position: absolute;
  right: 0.6rem; bottom: 0.6rem;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font-size: 10px; font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  backdrop-filter: blur(6px);
}

.play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
}
@media (hover: hover) { .card:hover .play { opacity: 1; } }
.play svg { width: 46px; height: 46px; }

/* --------------------------------------------------------------- filters */

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pill {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pill[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (hover: hover) { .pill:hover { border-color: var(--ink); } }
.pill__count { opacity: 0.5; margin-left: 0.3rem; }

/* ------------------------------------------------------------------ prose */

.prose { max-width: 68ch; }
.prose p { margin-block: 0 1.15em; color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.6; }
.prose h2 { font-size: var(--fs-h3); margin-block: 1.8em 0.55em; letter-spacing: -0.05em; }
.prose h3 { font-size: var(--fs-h4); margin-block: 1.5em 0.5em; font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin-block: 1.5em; }
.prose ul { margin-block: 0 1.15em; padding-left: 1.25em; }
.prose li { list-style: disc; color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.6; margin-block: 0 0.5em; }
.prose li:last-child { margin-bottom: 0; }
.prose > *:first-child { margin-top: 0; }

/* ----------------------------------------------------------------- video */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-embed--vertical { aspect-ratio: 9 / 16; max-width: 420px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------- reveals */

.rv { opacity: 1; transform: none; }

/* Reveals are opt-in: main.js adds .js-reveal to <html> only when it can
   guarantee it will un-hide them. Without JS, or if IntersectionObserver never
   fires (backgrounded tab, prerender, older engines), content stays visible. */
.js-reveal .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-reveal .rv.on { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------- dark mode */
/* The site is light-default with dark sections, matching the Framer design.
   This honours an explicit OS dark preference without inverting the brand. */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0c;
    --bg-alt: #141414;
    --ink: #ffffff;
    --ink-2: rgba(255, 255, 255, 0.72);
    --ink-mut: rgba(255, 255, 255, 0.6);
    --ink-faint: rgba(255, 255, 255, 0.45);
    --line: rgba(255, 255, 255, 0.14);
  }
  .section--alt { background: var(--bg-alt); }
  .card__media { background: #1a1a1a; }
  .btn--solid { background: var(--white); color: var(--ink); }
}

/* ==========================================================================
   Page sections
   ========================================================================== */

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 0 clamp(3rem, 2rem + 5vw, 7rem);
  background: var(--bg-dark);
  color: var(--dk-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--bg-dark); }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.15) 45%, rgba(12,12,12,.85) 100%);
  z-index: 1;
}
.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.hero__video.playing { opacity: 1; }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__tagline { color: rgba(255,255,255,.6); margin-bottom: 0.75rem; }
.hero__title { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.005em; color: var(--white); }

/* ----------------------------------------------------------------- stats */

.section--stats { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}
.stat__num {
  display: flex;
  align-items: baseline;
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--ink);
}
.stat__suffix { font-size: 0.55em; font-weight: 600; }
.stat__label { font-size: var(--fs-h4); margin-top: 0.7rem; }
.stat__sub { font-size: var(--fs-sm); color: var(--ink-mut); margin-top: 0.25rem; }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ------------------------------------------------------------- headings */

.section-head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); max-width: 34ch; }
.section-head--center { margin-inline: auto; text-align: center; max-width: 42ch; }
.section-head .t-lead { margin-top: 0.75rem; }
.proof-heading { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* ---------------------------------------------------------------- brands */

.brands { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.brands__intro .t-lead { margin-top: 1rem; }
.brands__stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.brands__stats div { display: flex; flex-direction: column; }
.brands__stats strong { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; letter-spacing: -0.04em; }
.brands__stats span { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 0.35rem; }
.brands__logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: center; }
.brands__logos img { width: 100%; height: auto; opacity: .78; filter: brightness(0) invert(1); transition: opacity .3s var(--ease); }
.brands__logos img:hover { opacity: 1; }

@media (max-width: 900px) { .brands { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- services */

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem); }
.service { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.service h3 { margin-bottom: 0.6rem; }
.service p { color: var(--ink-mut); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------------------------------------------------------------- worlds */

.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 0.5rem + 2vw, 2rem); }
.world {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(220px, 26vw, 340px);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--dk-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .5s var(--ease), background-color .4s var(--ease);
}
.world__key { font-family: var(--font-bebas); font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 1; color: var(--white); }
.world__title { font-size: var(--fs-sm); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--dk-ink-mut); }
@media (hover: hover) {
  .world:hover { transform: translateY(-4px); border-color: var(--primary); background: rgba(249,69,45,.06); }
  .world:hover .world__title { color: var(--white); }
}
@media (max-width: 700px) { .worlds { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ page heads */

.page-head { padding-top: clamp(7rem, 5rem + 8vw, 12rem); }
.page-head .t-label { margin-bottom: 0.75rem; }

/* --------------------------------------------------------------- footer */

.footer-cta { max-width: 46ch; margin-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.footer-cta .t-lead { margin-top: 1rem; color: var(--dk-ink-mut); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.footer-legal a { color: var(--dk-ink-mut); }

/* ---------------------------------------------------------------- cards */

.grid--cases { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card__link { display: block; }
.card--case .card__media, .card--post .card__media { display: block; }
.card__title--lg { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.03em; margin-top: 0.35rem; }
.card__excerpt { display: block; font-size: var(--fs-sm); color: var(--ink-mut); margin-top: 0.5rem; line-height: 1.55; }
.card__media { border: 0; padding: 0; width: 100%; }
button.card__media { cursor: pointer; }
.card--case .card__body .t-label { display: block; }
.grid-empty { color: var(--ink-mut); font-size: var(--fs-sm); padding-block: 2rem; }

/* ------------------------------------------------------------ case/post */

.case__head, .post__head { padding-top: clamp(7rem, 5rem + 8vw, 11rem); padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.case__head .t-label a, .post__head .t-label a { color: inherit; }
.case__head .t-label a:hover, .post__head .t-label a:hover { color: var(--primary); }
.case__head .t-lead, .post__head .post__meta { margin-top: 1rem; }
.case__hero, .post__hero { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.case__hero img, .post__hero img { width: 100%; border-radius: var(--radius-lg); }
.post__meta { font-size: var(--fs-sm); color: var(--ink-mut); }
.post__intro { font-size: var(--fs-h4); line-height: 1.4; letter-spacing: -0.03em; margin-bottom: 1rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.25rem; padding-block: 1.5rem; border-block: 1px solid var(--line); margin-bottom: clamp(2rem, 3vw, 3rem); }
.facts dt { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: 0.35rem 0 0; font-size: var(--fs-sm); font-weight: 500; }

.case__videos { display: grid; gap: clamp(1rem, 2vw, 2rem); margin-top: clamp(2rem, 3vw, 3.5rem); }
.case__videos--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.video-caption { font-size: var(--fs-xs); color: var(--ink-mut); margin-top: 0.6rem; }
.video-embed-wrap { margin: 0; }

.post__nav { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 4vw, 4rem); border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 4vw, 4rem); }
.post__nav-link { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--fs-sm); font-weight: 500; max-width: 22ch; }
.post__nav-link span { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-faint); }
.post__nav-link--next { text-align: right; margin-left: auto; }
.post__nav-link:hover { color: var(--primary); }

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(8px);
  animation: lb-in .3s var(--ease);
}
@keyframes lb-in { from { opacity: 0 } to { opacity: 1 } }
.lightbox__inner { position: relative; width: min(100%, 1200px); aspect-ratio: 16/9; }
.lightbox__inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }

/* Mobile hero uses the vertical 9:16 cut, so it covers on portrait instead of pillarboxing. */
.hero__video--portrait { width: 100vw; height: 177.77vw; min-height: 100%; min-width: 100%; }

/* Logo wall. Brand names are not known per file, so the images are decorative
   (alt="") and the list carries the accessible name instead. */
.brands__logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: center; list-style: none; }
.brands__logos li { display: flex; align-items: center; justify-content: center; }
.brands__logos img { width: auto; max-width: 100%; max-height: 34px; object-fit: contain; opacity: .75; filter: brightness(0) invert(1); transition: opacity .3s var(--ease); }
.brands__logos img:hover { opacity: 1; }
@media (max-width: 560px) { .brands__logos { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Proof section (heading then stats, matches live order)
   ========================================================================== */

.section--proof { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.section--proof .proof-heading { text-align: center; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.stat__label { border-top: 1px solid var(--line); padding-top: 0.85rem; margin-top: 0.85rem; }

/* ---------------------------------------------------------- service cards */

.service__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.1rem; aspect-ratio: 4/3; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------- world card ornament */
/* Lightweight CSS stand-in for the canvas particle-portal effect behind the
   3D/GEN title on the live site (WorkHeroPortal / GenWorldBanner). Deliberate
   scope cut: nested rotating square frames instead of a full canvas port. */

.world { position: relative; align-items: center; text-align: center; }
.world__ornament {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(90px, 14vw, 150px);
  height: clamp(90px, 14vw, 150px);
  transform: translate(-50%, -55%);
  pointer-events: none;
}
.world__ornament span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}
.world__ornament span:nth-child(1) { animation: world-spin 18s linear infinite; }
.world__ornament span:nth-child(2) { inset: 14%; animation: world-spin 14s linear infinite reverse; border-color: rgba(249, 69, 45, 0.22); }
.world__ornament span:nth-child(3) { inset: 28%; animation: world-spin 22s linear infinite; }
@keyframes world-spin { to { transform: rotate(360deg); } }
.world__key, .world__title { position: relative; z-index: 1; }
.world__key { display: block; margin-bottom: 0.4rem; }
@media (prefers-reduced-motion: reduce) {
  .world__ornament span { animation: none; }
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero { padding-top: clamp(7rem, 5rem + 8vw, 12rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.about-hero__lead { max-width: 48ch; margin-top: 1rem; }

.founders { padding-block: 0 clamp(2rem, 1rem + 3vw, 4rem); }
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.founder__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__role { margin: 0.4rem 0 1.1rem; color: var(--ink-faint); }
.founder__bio p { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.65; margin-bottom: 1em; }
.founder__bio p:last-child { margin-bottom: 0; }
.founders__divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 240px; }
}

.pipeline { text-align: center; }
.pipeline .t-h2 { margin-bottom: 1rem; }
.pipeline .t-lead { max-width: 56ch; margin-inline: auto; }

/* ==========================================================================
   World listing pages (3dworld / genworld)
   ========================================================================== */

.world-hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--dk-ink);
  padding-top: clamp(7rem, 5rem + 8vw, 12rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.world-hero__inner { position: relative; z-index: 1; text-align: center; }
.world-hero__title {
  font-family: var(--font-bebas);
  font-weight: 400;
  font-size: clamp(3rem, 1.5rem + 7vw, 8rem);
  letter-spacing: 0.01em;
  line-height: 1;
}
.world-hero__subtitle {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.section--dark.world-hero .t-accent,
.world-hero__subtitle { color: rgba(255, 255, 255, 0.35); }

/* Lightweight CSS stand-in for the canvas particle-portal decoration behind
   the title on the live site (WorkHeroPortal / GenWorldBanner). Same
   deliberate scope cut as .world__ornament on the homepage. */
.world-hero__ornament {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(220px, 34vw, 460px);
  height: clamp(220px, 34vw, 460px);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.world-hero__ornament span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}
.world-hero__ornament span:nth-child(1) { animation: world-spin 34s linear infinite; }
.world-hero__ornament span:nth-child(2) { inset: 12%; animation: world-spin 26s linear infinite reverse; border-color: rgba(249, 69, 45, 0.14); }
.world-hero__ornament span:nth-child(3) { inset: 24%; animation: world-spin 42s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .world-hero__ornament span { animation: none; }
}

/* -------------------------------------------------------------- reel banner */

.reel-banner { padding-top: 0; }
.reel-banner__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  cursor: pointer;
}
.reel-banner__bg {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.reel-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
}
.reel-banner__logo {
  position: absolute;
  top: clamp(1.25rem, 1rem + 1vw, 2rem);
  left: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.75rem);
  color: var(--white);
  letter-spacing: 0.01em;
  z-index: 1;
}
.reel-banner__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 1;
}
.reel-banner__play svg { width: 40px; height: 40px; }

/* ------------------------------------------------------- case card overlay */

.card--case .card__media { position: relative; }
.card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%);
}
.card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  color: var(--white);
}
.card__overlay .t-label { color: rgba(255,255,255,.6); margin-bottom: 0.3rem; display: block; }
.card--case .card__title--lg { color: var(--white); }

/* ---------------------------------------------------------------- pager */

.pager { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: clamp(2rem, 1rem + 3vw, 3rem); }
.pager__status { font-size: var(--fs-sm); color: var(--ink-mut); }
.pager__controls { display: flex; align-items: center; gap: 1rem; }
.pager__nav {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 1.25rem;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.pager__nav:disabled { opacity: 0.35; pointer-events: none; }
@media (hover: hover) { .pager__nav:not(:disabled):hover { border-color: var(--ink); } }
.pager__dots { display: flex; gap: 0.4rem; }
.pager__dots li {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.pager__dots li.is-active { background: var(--primary); transform: scale(1.3); }

/* ==========================================================================
   Blog index
   ========================================================================== */

.blog-hero { padding-top: clamp(6rem, 4.5rem + 6vw, 9rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.blog-hero__title {
  font-family: var(--font-bebas);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.8rem + 4.5vw, 5.5rem);
  letter-spacing: 0.01em;
  color: #8FE3D1; /* approximation, exact brand teal not extracted from CMS tokens */
  line-height: 1;
  margin-bottom: 0.6rem;
}

.post-list { border-top: 1px solid var(--line); }
.post-row { border-bottom: 1px solid var(--line); }
.post-row__link {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  padding-block: clamp(1rem, 0.7rem + 1vw, 1.5rem);
}
.post-row__media { flex: 0 0 auto; width: clamp(100px, 12vw, 160px); border-radius: 8px; overflow: hidden; aspect-ratio: 10/7; }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
.post-row__body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.post-row__title { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); transition: color .3s var(--ease); }
.post-row__excerpt { font-size: var(--fs-sm); color: var(--ink-mut); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .post-row__link:hover .post-row__title { color: var(--primary); } }

@media (max-width: 560px) {
  .post-row__link { align-items: flex-start; }
  .post-row__media { width: 90px; }
  .post-row__excerpt { -webkit-line-clamp: 2; }
}

/* ==========================================================================
   Blog post detail
   ========================================================================== */

.post__hero {
  position: relative;
  display: block;
  min-height: clamp(320px, 42vw, 520px);
  background: var(--bg-dark);
  overflow: hidden;
  color: var(--white);
}
.post__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.post__hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.75) 100%);
}
.post__hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: clamp(6rem, 4.5rem + 6vw, 9rem) var(--gutter) 0;
}
.post__author-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.post__author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post__author-meta { display: flex; flex-direction: column; line-height: 1.25; }
.post__author-name { font-size: var(--fs-xs); font-weight: 600; }
.post__author-role { font-size: 11px; color: rgba(255,255,255,.6); }
.post__hero-bottom { position: relative; z-index: 1; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.post__hero-title { font-size: clamp(2rem, 1.3rem + 3.5vw, 3.75rem); letter-spacing: -0.04em; line-height: 1.05; max-width: 22ch; }
.post__hero-desc { margin-top: 0.85rem; font-size: var(--fs-body); color: rgba(255,255,255,.7); max-width: 50ch; }

.post__layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.post__rail { position: sticky; top: 6rem; }
.post__back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-mut); }
.post__back:hover { color: var(--primary); }
.post__content { max-width: 68ch; }
.post__intro { font-size: var(--fs-h4); line-height: 1.4; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 1rem; }

.post__more { border-top: 1px solid var(--line); }
.post__more-heading { font-size: var(--fs-h3); color: var(--ink-faint); }
.post__more-sub { font-size: var(--fs-sm); color: var(--ink-mut); margin-top: 0.5rem; max-width: 26ch; }
.post-list--more { border-top: none; }
.post-row__link--flat { display: flex; gap: 1.5rem; padding-block: 0.9rem; align-items: baseline; }
.post-row__date { flex: 0 0 auto; width: 7rem; font-size: var(--fs-xs); color: var(--ink-faint); }
.post-row--extra.post-row { display: list-item; }
.post__load-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--primary);
}
.post__load-more:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .post__layout { grid-template-columns: 1fr; }
  .post__rail { position: static; }
  .post__more .post__rail { margin-bottom: 1rem; }
}
