/* ==========================================================
   BRAND TOKENS — change these per client
   ========================================================== */
:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --ink: #141a17;
  --ink-soft: #4a524d;
  --line: rgba(20, 26, 23, .14);
  /* Just Creative People brand colours (sampled from the logo) */
  --accent: #e9428f;        /* pink — main accent */
  --accent-btn: #cc2f78;    /* deeper pink for button backgrounds (white text passes AA) */
  --cyan: #22bfe8;          /* decorative only on light backgrounds */
  --purple: #51419a;
  --purple-light: #8f80dc;  /* purple tint for dark backgrounds */
  --accent-ink: #ffffff;
  --dark: #0f1412;
  --section-y: clamp(50px, 7vw, 90px); /* top and bottom padding shared by every section */

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================
   BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* liquid gradient background (drawn by js) — shows through the cream sections */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; filter: blur(28px); opacity: .64; }
/* glow inside the dark sections (canvas added by js) — sits above the section background, below its content */
.has-glow { position: relative; isolation: isolate; overflow: hidden; }
.glow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; filter: blur(28px); opacity: .55; }
/* AI section: software logos scattered on card hover. Same layer as the blurs but later in the page, so: blurs < icons < content */
.ai-bursts { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ai-bursts__icon { position: absolute; top: 0; left: 0; opacity: 0; will-change: transform, opacity; }
.ai-bursts__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ai-bursts__icon.is-mono img { filter: brightness(0) invert(1); }
/* while icons are showing: the other cards stay clear but frost anything behind them, only the hovered card goes dark */
.ai.is-bursting .ai-card { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ai.is-bursting .ai-card:hover { background: rgba(17, 22, 20, .5); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; color: var(--accent); }
/* headlines keep the pink accent word, but upright rather than italic */
h1 em, h2 em, h3 em, .ai__foot p em, .svc-ai__sign em { font-style: normal; }
.dot { color: var(--accent); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 1080px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 28px;
}
.eyebrow--light { color: rgba(255,255,255,.6); }

.section-title {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(38px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.025em;
}
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* line-mask reveal */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; will-change: transform; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before, .btn.is-hover::before { transform: translateY(0); }
.btn .arrow { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover .arrow, .btn.is-hover .arrow { transform: translateX(4px); }
.btn--accent { background: var(--accent-btn); color: var(--accent-ink); }
.btn--accent::before { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--accent-btn); }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--small { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--large { height: 68px; padding: 0 36px; font-size: 17px; }

.link-arrow { display: inline-flex; gap: 10px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow .arrow { font-style: normal; transition: transform .4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; transition: background .3s, color .3s;
}
.round-btn:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================
   PRELOADER
   ========================================================== */
.intro-seen .loader { display: none; }
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--dark); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
}
.loader__inner { display: flex; justify-content: space-between; align-items: end; }
.loader__brand { height: clamp(40px, 4.6vw, 60px); width: auto; }
.loader__count { font-family: var(--font-display); font-size: clamp(64px, 14vw, 200px); line-height: .8; font-weight: 300; }
.loader__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 24px; }
.loader__bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); }

/* ==========================================================
   CURSOR
   ========================================================== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, opacity .3s;
  opacity: 0;
}
.cursor__label { font-size: 13px; font-weight: 500; color: var(--paper); opacity: 0; transition: opacity .2s; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent-btn); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(20,26,23,.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================
   NAV + MENU
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 32px;
  /* bar spans the full width; its contents line up with .container below */
  padding: 18px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: transparent;
  transition: transform .5s var(--ease), background .4s, box-shadow .4s, padding .4s var(--ease);
}
/* transparent at the top of the page, solid once scrolled */
.nav.is-scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20,26,23,.06); padding-top: 12px; padding-bottom: 12px; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo .logo { height: clamp(40px, 3.8vw, 54px); width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__logo .logo { height: clamp(36px, 3.3vw, 46px); }
.nav__logo .logo--reverse { display: none; }
body.menu-open .nav__logo .logo--default { display: none; }
body.menu-open .nav__logo .logo--reverse { display: block; }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav__links > a, .nav__trigger { position: relative; }
.nav__links > a::after, .nav__trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links > a:hover::after, .nav__trigger:hover::after, .nav__item.is-open .nav__trigger::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-left: auto; position: relative; z-index: 2;
}
.nav__toggle span { width: 18px; height: 1.5px; background: var(--paper); transition: transform .4s var(--ease); }
body.menu-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
body.menu-open .nav { background: transparent; box-shadow: none; color: var(--paper); }
body.menu-open .nav__toggle { background: var(--paper); }
body.menu-open .nav__toggle span { background: var(--ink); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--dark); color: var(--paper);
  clip-path: circle(0% at calc(100% - var(--gutter) - 24px) 42px);
  transition: clip-path .9s var(--ease); visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 42px); visibility: visible; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 120px var(--gutter) var(--gutter); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-family: var(--font-display); font-size: clamp(44px, 9vw, 96px); line-height: 1.1; overflow: hidden; }
.menu__links a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
body.menu-open .menu__links a span { transform: none; }
.menu__links a:nth-child(2) span { transition-delay: .05s; }
.menu__links a:nth-child(3) span { transition-delay: .1s; }
.menu__links a:nth-child(4) span { transition-delay: .15s; }
.menu__links a:nth-child(5) span { transition-delay: .2s; }
.menu__links a:hover span { color: var(--accent); }
.menu__foot { display: flex; gap: 24px; flex-wrap: wrap; color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ==========================================================
   HERO — split layout, video card grows to full screen on scroll
   ========================================================== */
.hero { position: relative; height: 230vh; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  /* clip shape shared by the video and the light text copy (JS animates these) */
  --ct: 96px; --cr: var(--gutter); --cb: 32px; --cl: 56%; --crad: var(--radius);
}
.hero__layer { position: absolute; inset: 0; padding: 96px 0 32px; }
.hero__layer--base { z-index: 1; }
.hero__media,
.hero__layer--light { clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--crad)); pointer-events: none; }
.hero__media { position: absolute; inset: 0; z-index: 2; background: var(--dark); }
.hero__layer--light { z-index: 3; color: #fff; }

.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); height: 100%; }
.hero__content { align-self: center; }
.hero__slot { min-height: 300px; }

.hero__eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; position: relative; }
.hero__eyebrow .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, min(5.3vw, 8.8vh), 92px); line-height: 1; letter-spacing: -.025em;
}
.hero__lede { max-width: 540px; margin-top: clamp(24px, 3.5vh, 40px); color: var(--ink-soft); font-size: clamp(16px, 1.25vw, 19px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(24px, 3.5vh, 40px); }
/* scroll cue: tells visitors to scroll to reveal the video (fades out once they do) */
.scroll-cue {
  position: absolute; z-index: 4; pointer-events: none;
  /* centred on the bottom edge of the video card (the card's inset comes from the hero's --cl/--cr/--cb) */
  left: calc(var(--cl) + (100% - var(--cl) - var(--cr)) / 2); bottom: calc(var(--cb) + 26px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px;
  color: #fff; background: rgba(10,14,12,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity .5s var(--ease), visibility .5s;
}
.scroll-cue__mouse { position: relative; width: 20px; height: 31px; border: 2px solid currentColor; border-radius: 11px; opacity: .9; }
.scroll-cue__wheel { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: scroll-wheel 1.8s var(--ease) infinite; }
.scroll-cue__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
@keyframes scroll-wheel { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(10px); opacity: 0; } }
.scroll-cue.is-gone { opacity: 0 !important; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .scroll-cue__wheel { animation: none; } }

/* light copy — what the text looks like once the video is behind it */
.hero__layer--light .eyebrow { color: rgba(255,255,255,.72); }
.hero__layer--light .hero__lede { color: #fff; }
.hero__layer--light em { color: var(--accent); }
.hero__layer--light .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero__layer--light .btn--ghost::before { background: #fff; }
.hero__layer--light .btn--ghost.is-hover { color: var(--ink); }
.hero__layer--light .btn--accent::before { background: #fff; }
.hero__layer--light .btn--accent.is-hover { color: var(--ink); }

.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, rgba(10,14,12,.88) 0%, rgba(10,14,12,.72) 40%, rgba(10,14,12,.38) 72%, rgba(10,14,12,.42) 100%);
}

@media (max-width: 900px) {
  .hero { height: 200vh; }
  .hero__layer { padding: 84px 0 16px; }
  .hero__grid { display: flex; flex-direction: column; gap: 24px; }
  .hero__content { align-self: stretch; }
  .hero__slot { flex: 1; min-height: 160px; }
  .hero__title { font-size: clamp(34px, 9vw, 54px); }
  .hero__shade { background: linear-gradient(180deg, rgba(10,14,12,.82) 0%, rgba(10,14,12,.72) 55%, rgba(10,14,12,.42) 100%); }
}

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee { background: var(--dark); color: var(--paper); padding: clamp(22px, 3vw, 36px) 0; overflow: hidden; }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); padding-right: clamp(16px, 2.2vw, 32px); flex: none; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(26px, 3.3vw, 52px); line-height: 1.1; letter-spacing: -.03em; font-weight: 330; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: clamp(13px, 1.3vw, 20px); }
.marquee__row:not(.marquee__row--alt) .marquee__track i:nth-of-type(3n+2) { color: var(--cyan); }
.marquee__row:not(.marquee__row--alt) .marquee__track i:nth-of-type(3n) { color: var(--purple-light); }
.marquee__row--alt { margin-top: 6px; }
.marquee__row--alt .marquee__track em { font-family: var(--font-body); font-style: normal; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.55); font-size: clamp(14px, 1.3vw, 19px); }
.marquee__row--alt .marquee__track i { color: rgba(255,255,255,.35); font-size: 11px; }

/* ==========================================================
   STATEMENT
   ========================================================== */
.statement { padding: var(--section-y) 0; }
.statement__text {
  font-family: var(--font-display); font-weight: 330;
  font-size: clamp(30px, 4.2vw, 60px); line-height: 1.14; letter-spacing: -.02em;
}
.statement__text .w { opacity: .14; transition: none; }

/* ==========================================================
   SERVICES
   ========================================================== */
.services { padding-bottom: var(--section-y); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.services__grid { gap: 20px; }
/* white card, inset rounded image with a label, gentle 3D tilt on hover (see js) */
.service {
  position: relative; display: flex; flex-direction: column; padding: 10px;
  background: #fff; border-radius: 24px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(20,26,23,.06), 0 20px 40px -28px rgba(20,26,23,.3);
  transition: box-shadow .5s var(--ease); will-change: transform;
}
.service:hover { box-shadow: 0 2px 4px rgba(20,26,23,.06), 0 40px 70px -30px rgba(20,26,23,.45); }
.service__media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1.05; background: var(--paper-2); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__media img { transform: scale(1.06); }
.service__label {
  position: absolute; top: 14px; left: 14px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.service__body { flex: 1; display: flex; flex-direction: column; padding: 26px 18px 18px; }
.service h3 { font-family: var(--font-display); font-size: clamp(26px, 2.1vw, 32px); letter-spacing: -.015em; line-height: 1.08; margin-bottom: 12px; }
.service p { color: var(--ink-soft); font-size: 15px; }
.service__more { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.service__more .arrow { font-style: normal; color: var(--accent); transition: transform .4s var(--ease); }
.service:hover .service__more .arrow { transform: translateX(5px); }
@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } .service__media { aspect-ratio: 16 / 11; } }

/* ==========================================================
   AI FOR YOUR BUSINESS
   ========================================================== */
.ai { background: var(--dark); color: var(--paper); padding: var(--section-y) 0; }
.ai__head { display: grid; grid-template-columns: 1.8fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.ai__intro { color: rgba(255,255,255,.66); font-size: clamp(16px, 1.3vw, 19px); }
.ai__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ai-card {
  --c: var(--accent);
  display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: 32px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
  transition: border-color .4s, background .4s, box-shadow .5s var(--ease); will-change: transform;
}
.ai-card:nth-child(3n+2) { --c: var(--cyan); }
.ai-card:nth-child(3n) { --c: var(--purple-light); }
.ai-card:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); background: rgba(255,255,255,.03); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 40px -18px var(--c); }
/* travelling light around the border on hover */
@property --trace { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ai-card { position: relative; }
.ai-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--trace), transparent 0deg 250deg, color-mix(in srgb, var(--c) 60%, transparent) 300deg, var(--c) 336deg, #fff 347deg, #fff 353deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  animation: card-trace 3.2s linear infinite; animation-play-state: paused;
  filter: drop-shadow(0 0 6px var(--c));
}
.ai-card:hover::before { opacity: 1; animation-play-state: running; }
@keyframes card-trace { to { --trace: 360deg; } }
.ai-card__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}
.ai-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ai-card h3 { font-family: var(--font-display); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.015em; }
.ai-card p { color: rgba(255,255,255,.64); font-size: 15px; }
.ai-card .ai-card__eg { margin-top: auto; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.16); color: rgba(255,255,255,.86); font-size: 14px; }
.ai-card__eg span { font-family: var(--font-display); font-style: italic; color: var(--c); margin-right: 6px; font-size: 16px; }
.ai__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.12);
}
.ai__foot p { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; max-width: 760px; }
.ai__foot .btn--accent::before { background: var(--paper); }
.ai__foot .btn--accent:hover { color: var(--ink); }
@media (max-width: 1000px) { .ai__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) { .ai__line { white-space: nowrap; } }
@media (max-width: 900px) { .ai__head { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ai__grid { grid-template-columns: 1fr; } .ai-card { min-height: 0; } }

/* ==========================================================
   STATS
   ========================================================== */
.stats { padding-bottom: var(--section-y); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat__num { font-family: var(--font-display); font-size: clamp(52px, 6vw, 96px); line-height: 1; letter-spacing: -.03em; font-weight: 300; }
.stat__label { color: var(--ink-soft); font-size: 15px; }
/* word version — "Who we work with" */
.stats__grid--words .stat__num { font-size: clamp(36px, 3.6vw, 56px); }
.stats__grid--words .stat__num::after { content: "."; color: var(--accent); }
.stats__grid--words .stat:nth-child(2) .stat__num::after { color: var(--cyan); }
.stats__grid--words .stat:nth-child(3) .stat__num::after { color: var(--purple); }
.stats__grid--words .stat__label { max-width: 260px; }
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 32px; }
}

/* ==========================================================
   PROCESS (horizontal)
   ========================================================== */
.process { background: var(--dark); color: var(--paper); }
.process__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vh, 72px); padding: clamp(80px, 12vh, 120px) 0; overflow: hidden; }
.process__head { position: relative; }
.process__head em { color: var(--accent); }
.process__progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 40px; }
.process__progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); }
.process__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; }
.step {
  width: clamp(280px, 30vw, 420px); min-height: 340px; flex: none;
  border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .4s, border-color .4s;
}
/* hover: travelling light around the border (same as the AI cards), glow, white copy, solid-colour number */
.step { --c: var(--accent); position: relative; transition: background .4s, border-color .4s, box-shadow .5s var(--ease); will-change: transform; }
.step:nth-child(3n+2) { --c: var(--cyan); }
.step:nth-child(3n) { --c: var(--purple-light); }
.step:hover { background: rgba(255,255,255,.04); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 40px -18px var(--c); }
.step::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--trace), transparent 0deg 250deg, color-mix(in srgb, var(--c) 60%, transparent) 300deg, var(--c) 336deg, #fff 347deg, #fff 353deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  animation: card-trace 3.2s linear infinite; animation-play-state: paused;
  filter: drop-shadow(0 0 6px var(--c));
}
.step:hover::before { opacity: 1; animation-play-state: running; }
.step .step__num { transition: color .45s var(--ease), -webkit-text-stroke-color .45s var(--ease), text-shadow .45s var(--ease); }
.step:hover .step__num { color: var(--c); -webkit-text-stroke-color: var(--c); text-shadow: 0 0 28px color-mix(in srgb, var(--c) 55%, transparent); }
.step h3, .step p { transition: color .4s var(--ease); }
.step:hover h3, .step:hover p { color: #fff; }
.step__num { font-family: var(--font-display); font-size: 96px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); font-weight: 300; }
.step h3 { font-family: var(--font-display); font-size: 36px; letter-spacing: -.02em; margin: 24px 0 10px; }
.step p { color: rgba(255,255,255,.62); font-size: 15px; }
@media (max-width: 800px) {
  .process__track { width: auto; flex-direction: column; }
  .step { width: 100%; min-height: 0; gap: 16px; }
  .step__num { font-size: 64px; }
}

/* ==========================================================
   WORK
   ========================================================== */
.work { padding: var(--section-y) 0; }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.case { display: block; }
.case:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
/* full screenshot, no crop: the image keeps its own proportions */
.case__media { border-radius: 22px; overflow: hidden; background: var(--paper-2); box-shadow: 0 1px 2px rgba(20,26,23,.08), 0 18px 40px -26px rgba(20,26,23,.35); transition: box-shadow .6s var(--ease); }
.case__media img { width: 100%; height: auto; }
.case:hover .case__media { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(20,26,23,.08), 0 36px 60px -30px rgba(20,26,23,.45); }
.case__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 22px; }
.case__meta h3 { font-family: var(--font-display); font-size: clamp(24px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.05; }
.case__link { color: var(--accent-btn); font-size: 14px; font-weight: 600; white-space: nowrap; }
.case__desc { margin-top: 12px; color: var(--ink-soft); font-size: 16px; max-width: 600px; }
.case__tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags li { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.case:hover .case__tags li { border-color: rgba(20,26,23,.28); }
@media (max-width: 700px) { .work__grid { grid-template-columns: 1fr; } .case:nth-child(even) { margin-top: 0; } }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.quotes { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.quotes__stage { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote {
  margin: 0 0 40px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 2.3vw, 34px); line-height: 1.3; letter-spacing: -.01em;
}
.quote figcaption { display: flex; align-items: center; gap: 16px; font-size: 15px; color: var(--ink-soft); }
.quote__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; }
.quote:nth-child(2) .quote__avatar { background: var(--purple); }
.quote:nth-child(3) .quote__avatar { background: var(--accent-btn); }
.quotes__title { margin-bottom: clamp(40px, 5vw, 64px); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.quotes__controls { display: flex; align-items: center; gap: 16px; margin-top: 56px; }
.quotes__bar { flex: 1; height: 1px; background: var(--line); }
.quotes__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { padding-bottom: var(--section-y); }
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 5vw, 80px); }
.faq--spaced { padding-top: var(--section-y); }
.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; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: background .3s, transform .5s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq__item[open] summary i { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 60px 28px 0; color: var(--ink-soft); }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   CTA
   ========================================================== */
.cta { background: var(--dark); color: var(--paper); padding: var(--section-y) 0; border-radius: var(--radius) var(--radius) 0 0; }
.cta .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 56px; flex-wrap: wrap; }
.cta__title { font-family: var(--font-display); font-weight: 330; font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.035em; }
.cta__row { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 400px; }
.cta__row p { color: rgba(255,255,255,.6); font-size: 15px; }
.cta__row p a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.35); }
.cta .btn--accent::before { background: var(--paper); }
.cta .btn--accent:hover { color: var(--ink); }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--dark); color: var(--paper); padding-top: 64px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 80px); padding-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__logo img { height: 58px; width: auto; }
.footer__note { color: rgba(255,255,255,.55); margin-top: 12px; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,.7); font-size: 15px; }
.footer__col h4 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.footer__col a:hover { color: var(--paper); }
.footer__stripe { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: flex; height: 12px; pointer-events: none; }
.footer { padding-bottom: calc(64px + 12px); }
.footer__stripe span { flex: 1; }
.footer__stripe span:nth-child(1) { background: var(--accent); }
.footer__stripe span:nth-child(2) { background: var(--cyan); }
.footer__stripe span:nth-child(3) { background: var(--purple); }
.footer__base { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: rgba(255,255,255,.5); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:last-child { grid-column: 1 / -1; } }

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; min-height: 100vh; }
  .hero__layer--base { position: relative; }
  .hero__layer--light { display: none; }
  .statement__text .w { opacity: 1; }
}

/* ==========================================================
   SERVICE PAGES (services/*.html — shared layout)
   ========================================================== */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }

.page-hero { padding: clamp(120px, 17vh, 180px) 0 var(--section-y); }
.page-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.breadcrumb { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.breadcrumb a { border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--ink); border-color: var(--ink); }
.page-hero__title { font-family: var(--font-display); font-size: clamp(46px, 6.6vw, 104px); line-height: 1; letter-spacing: -.03em; }
.page-hero__intro { margin-top: 28px; max-width: 560px; color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 19px); }
.page-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.page-hero__tags { margin-top: 36px; }
.page-hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; background: var(--paper-2); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 16 / 11; }
}

.included { padding-bottom: var(--section-y); }
.included__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 40px); }
.included__item { border-top: 1px solid var(--line); padding-top: 28px; }
.included__item h3 { font-family: var(--font-display); font-size: clamp(24px, 2vw, 30px); line-height: 1.1; margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; }
.included__item h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-3px); }
.included__item:nth-child(3n+2) h3::before { background: var(--cyan); }
.included__item:nth-child(3n) h3::before { background: var(--purple); }
.included__item p { color: var(--ink-soft); }
@media (max-width: 1000px) { .included__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .included__grid { grid-template-columns: 1fr; } }

.benefits { padding-bottom: var(--section-y); }
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { background: var(--paper-2); border-radius: 22px; padding: clamp(28px, 3vw, 40px); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.benefit h3 { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.benefit p { color: var(--ink-soft); }
@media (max-width: 900px) { .benefits__grid { grid-template-columns: 1fr; } .benefit { min-height: 0; } }

.svc-ai { padding-bottom: var(--section-y); }
.svc-ai__panel { background: var(--dark); color: var(--paper); border-radius: var(--radius); padding: clamp(36px, 6vw, 88px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); }
.svc-ai__lede { margin-top: 20px; color: rgba(255,255,255,.66); font-size: clamp(16px, 1.3vw, 19px); max-width: 440px; }
.svc-ai__sign { margin-top: 36px; font-family: var(--font-display); font-size: 26px; }
.svc-ai__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.svc-ai__list li { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.svc-ai__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-ai__icon { --c: var(--accent); width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.svc-ai__list li:nth-child(4n+2) .svc-ai__icon { --c: var(--cyan); }
.svc-ai__list li:nth-child(4n+3) .svc-ai__icon { --c: var(--purple-light); }
.svc-ai__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-ai__list h3 { font-family: var(--font-display); font-size: clamp(22px, 1.8vw, 26px); line-height: 1.1; margin-bottom: 6px; }
.svc-ai__list p { color: rgba(255,255,255,.64); font-size: 15px; }
@media (max-width: 900px) { .svc-ai__panel { grid-template-columns: 1fr; } }

.tools { padding-bottom: var(--section-y); }
.tools__row { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 32px; padding-bottom: 32px; }
.tools__title { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); flex: none; }

.work--related { padding-top: var(--section-y); }
.work__grid--three { grid-template-columns: repeat(3, 1fr); }
.work__grid--three .case:nth-child(even) { margin-top: 0; }
@media (max-width: 1000px) { .work__grid--three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .work__grid--three { grid-template-columns: 1fr; } }

.others { padding-bottom: var(--section-y); }
.others__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 72px; border: 1px solid var(--line); border-radius: 22px; transition: background .4s, color .4s, border-color .4s; }
.other__name { font-family: var(--font-display); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.05; }
.other__intro { color: var(--ink-soft); font-size: 15px; transition: color .4s; }
.other__arrow { position: absolute; left: 32px; bottom: 28px; font-size: 22px; transition: transform .4s var(--ease); }
.other:hover { background: var(--dark); color: var(--paper); border-color: var(--dark); }
.other:hover .other__intro { color: rgba(255,255,255,.7); }
.other:hover .other__arrow { transform: translateX(6px); color: var(--accent); }
@media (max-width: 900px) { .others__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   SHOWREEL — panel with play CTA + pop-up player
   ========================================================== */
.showreel { padding-bottom: var(--section-y); }
.showreel__card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--dark);
  box-shadow: 0 2px 4px rgba(20,26,23,.08), 0 40px 80px -40px rgba(20,26,23,.5);
}
.showreel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.showreel__card:hover .showreel__poster { transform: scale(1); } /* zooms out on hover, never below full size */
.showreel__shade { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(10,14,12,.15), rgba(10,14,12,.55)); transition: background .6s; }
.showreel__card:hover .showreel__shade { background: radial-gradient(circle at center, rgba(10,14,12,.25), rgba(10,14,12,.65)); }
.showreel__play { position: absolute; left: 50%; top: 50%; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.showreel__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: reel-spin 14s linear infinite; overflow: visible; }
.showreel__ring text { fill: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
.showreel__btn {
  position: relative; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-btn); color: #fff; box-shadow: 0 16px 40px -10px rgba(204,47,120,.7);
  transition: transform .6s var(--ease), background .4s;
}
.showreel__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); animation: reel-pulse 2.4s var(--ease) infinite; }
@keyframes reel-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.showreel__btn svg { width: 38%; height: 38%; fill: currentColor; margin-left: 6%; }
.showreel__card:hover .showreel__btn { transform: scale(1.1); background: var(--accent); }
.showreel__meta { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: #fff; text-align: left; }
.showreel__meta strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; }
.showreel__meta span { font-size: 14px; opacity: .8; }
.showreel__card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 600px) { .showreel__card { aspect-ratio: 4 / 3.4; } .showreel__ring text { font-size: 15px; } }

/* hero "Watch the showreel" button */
.btn__play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-right: 2px; }

/* pop-up player */
.reel-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); }
.reel-modal[hidden] { display: none; }
.reel-modal__backdrop { position: absolute; inset: 0; background: rgba(10,14,12,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .45s var(--ease); }
.reel-modal__inner { position: relative; width: min(1200px, 100%, calc((100vh - 120px) * 16 / 9)); opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.reel-modal.is-open .reel-modal__backdrop { opacity: 1; }
.reel-modal.is-open .reel-modal__inner { opacity: 1; transform: none; }
.reel-modal__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.reel-modal__close {
  position: absolute; right: 0; top: -60px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); transition: background .3s, transform .4s var(--ease);
}
.reel-modal__close span { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.reel-modal__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.reel-modal__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.reel-modal__close:hover { background: var(--accent-btn); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .showreel__ring, .showreel__btn::before { animation: none; } }

/* ==========================================================
   LOGO CAROUSEL (above "Who we work with" columns)
   ========================================================== */
.logos {
  overflow: hidden; margin-bottom: clamp(48px, 6vw, 80px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos__track { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 0; animation: logos-scroll 32s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
/* spacing lives on the items (not gap) so -50% lands exactly on the duplicate set */
.logos__item { flex: none; padding-right: clamp(56px, 7vw, 110px); color: var(--ink); opacity: .45; transition: opacity .4s; }
.logos__item:hover { opacity: 1; }
.logos__item svg { display: block; height: clamp(28px, 2.6vw, 38px); width: auto; overflow: visible; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }

/* ==========================================================
   NAV — "What we do" services dropdown
   ========================================================== */
.nav__trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav__trigger svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.nav__item:hover .nav__trigger svg, .nav__item:focus-within .nav__trigger svg, .nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }
/* the panel is positioned against the full-width nav bar, right-aligned with the page content */
.mega {
  position: absolute; top: calc(100% - 4px); z-index: 70;
  right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  width: min(820px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 16px;
  background: var(--paper); color: var(--ink); border-radius: 24px;
  box-shadow: 0 1px 0 var(--line), 0 30px 70px -24px rgba(20,26,23,.32);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } /* hover bridge */
.nav__item:hover .mega, .nav__item:focus-within .mega, .nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__list { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.mega__link { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 16px; transition: background .3s; }
.mega__link:hover, .mega__link:focus-visible { background: rgba(255,255,255,.75); outline: none; }
.mega__link img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; }
.mega__link strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.mega__link small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.mega__all { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 10px; padding: 10px; font-size: 15px; font-weight: 600; }
.mega__all .arrow { font-style: normal; color: var(--accent); transition: transform .4s var(--ease); }
.mega__all:hover .arrow { transform: translateX(4px); }
.mega__feature { position: relative; min-height: 360px; border-radius: 18px; overflow: hidden; background: var(--dark); }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform 1.2s var(--ease); }
.mega__feature img.is-swapping { opacity: 0; }
.mega__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0) 55%); }
.mega__caption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: -.01em; }
.mega__caption em { font-style: normal; color: var(--accent); }

/* phone menu: services listed under "What we do" */
.menu__sub { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 14px; }
.menu__sub a { font-family: var(--font-body); font-size: 16px; color: rgba(255,255,255,.7); }
.menu__sub a:hover { color: var(--accent); }

/* home icon in the header */
.nav__home { display: inline-flex; align-items: center; }
.nav__home svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
.nav__home:hover svg { color: var(--accent); }
.nav__links { align-items: center; }
@media (max-width: 1180px) { .nav__links { gap: 22px; font-size: 14px; } }

/* AI section: "Ask our AI assistant" (opens the chatbot via .js-popup-assistant) */
.ai__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--light-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--light-ghost::before { background: #fff; }
.btn--light-ghost:hover { color: var(--ink); }
/* chat-bubble + sparkle badge (matches the chatbot launcher) */
.btn__chat { width: 30px; height: 30px; flex: none; margin-left: -10px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-btn); transition: background .4s, transform .6s var(--ease); }
.btn__chat svg { width: 20px; height: 20px; overflow: visible; }
.btn__chat-bubble { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn__chat-spark { fill: #fff; transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
.btn--light-ghost:hover .btn__chat { transform: rotate(-8deg) scale(1.06); }
.btn--light-ghost:hover .btn__chat-spark { transform: rotate(90deg) scale(1.2); }

/* glowing brand-gradient progress lines (loader % bar + How it works) */
.loader__bar span, .process__progress span {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cyan) 55%, var(--purple-light));
  box-shadow: 0 0 10px rgba(233,66,143,.55), 0 0 22px rgba(34,191,232,.35), 0 0 34px rgba(143,128,220,.25);
}

/* AI cards: all copy turns full white on hover */
.ai-card h3, .ai-card p, .ai-card__eg span { transition: color .4s var(--ease); }
.ai-card:hover h3, .ai-card:hover p, .ai-card:hover .ai-card__eg, .ai-card:hover .ai-card__eg span { color: #fff; }

/* Service cards: travelling light around the border on hover (same engine as the AI cards) */
.service { --c: var(--accent); }
.service:nth-child(2) { --c: var(--cyan); }
.service:nth-child(3) { --c: var(--purple); }
.service::before {
  content: ""; position: absolute; inset: -2px; border-radius: 26px; padding: 2.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--trace), transparent 0deg 250deg, color-mix(in srgb, var(--c) 60%, transparent) 300deg, var(--c) 336deg, #fff 347deg, #fff 353deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  animation: card-trace 3.2s linear infinite; animation-play-state: paused;
  /* white halo makes the spark pop against the light background, coloured glow underneath */
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--c));
}
.service:hover::before { opacity: 1; animation-play-state: running; }
.service:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 2px 4px rgba(20,26,23,.06), 0 40px 70px -30px rgba(20,26,23,.45), 0 0 50px -20px var(--c); }

/* NAV hover states in brand pink */
.nav__links > a, .nav__trigger { transition: color .3s var(--ease); }
.nav__links > a:hover, .nav__trigger:hover, .nav__item.is-open .nav__trigger, .nav__item:focus-within .nav__trigger { color: var(--accent-btn); }
.nav__links > a::after, .nav__trigger::after { height: 2px; border-radius: 2px; background: var(--accent-btn); }
.nav__home:hover svg { color: var(--accent-btn); }
/* "Let's talk": pink button, black on hover */
.nav__cta.btn--accent { background: var(--accent-btn); color: #fff; }
.nav__cta.btn--accent::before { background: var(--ink); }
.nav__cta.btn--accent:hover { color: #fff; }

/* dropdown: service titles (and "View all services") turn pink on hover */
.mega__link strong, .mega__all { transition: color .3s var(--ease); }
.mega__link:hover strong, .mega__link:focus-visible strong, .mega__all:hover { color: var(--accent-btn); }

/* ==========================================================
   OUTFIT — headline weights & tracking (single typeface site-wide)
   ========================================================== */
:is(.hero__title, .section-title, .page-hero__title, .cta__title, .marquee__track span, .stat__num, .step__num, .loader__count, .menu__links a) { font-weight: 600; letter-spacing: -.035em; }
:is(.statement__text, .quote blockquote) { font-weight: 500; letter-spacing: -.02em; }
:is(.service h3, .ai-card h3, .step h3, .case__meta h3, .benefit h3, .included__item h3, .svc-ai__list h3, .other__name, .mega__caption, .svc-ai__sign, .ai__foot p, .faq__item summary, .showreel__meta strong) { font-weight: 600; letter-spacing: -.015em; }
.ai-card__eg span { font-style: normal; font-weight: 600; }

/* ==========================================================
   END-OF-SECTION CTA ROW (AI assistant + book a chat)
   ========================================================== */
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.cta-row__text { display: flex; flex-direction: column; gap: 4px; max-width: 560px; }
.cta-row__text strong { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.cta-row__text span { color: var(--ink-soft); font-size: 16px; }
.cta-row__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row--dark { border-top-color: rgba(255,255,255,.12); }
.cta-row--dark .cta-row__text span { color: rgba(255,255,255,.66); }
.svc-ai__cta { margin-top: 28px; }
/* chat badge animates on any button hover (light or dark ghost) */
.btn:hover .btn__chat { transform: rotate(-8deg) scale(1.06); }
.btn:hover .btn__chat-spark { transform: rotate(90deg) scale(1.2); }
.btn--ghost .btn__chat { margin-left: -10px; }
/* FAQ section: CTA sits under the two-column grid */
.faq .cta-row { margin-top: clamp(40px, 5vw, 64px); }

/* "Who we are" paragraph: centred */
.statement__text { text-align: center; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.contact-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.contact-hero .page-hero__intro { max-width: 620px; }
.contact { padding-bottom: var(--section-y); }
.contact__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }

.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 48px); box-shadow: 0 1px 2px rgba(20,26,23,.06), 0 30px 60px -36px rgba(20,26,23,.35); display: grid; gap: 22px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .contact-form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; }
.field label span, .field legend span { font-weight: 400; color: var(--ink-soft); }
.field b { color: var(--accent-btn); font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141a17' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent-btn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d2333d; box-shadow: 0 0 0 4px rgba(210,51,61,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--accent-btn); }
.chip input:checked + span { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.consent { flex-direction: row; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-btn); flex: none; }
.consent.is-invalid span { color: #d2333d; }
.contact-form__foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 4px; }
.contact-form__note { color: var(--ink-soft); font-size: 15px; }
.contact-form__note a { color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-form__status { font-weight: 600; font-size: 15px; min-height: 1.4em; }
.contact-form__status.is-error { color: #d2333d; }
.contact-form__status.is-ok { color: var(--accent-btn); }
.contact-form.is-sent { text-align: center; padding-block: clamp(48px, 7vw, 96px); }
.contact-form.is-sent h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.contact-form.is-sent p { color: var(--ink-soft); max-width: 460px; margin: 14px auto 0; }
/* thank-you state: blue circle with a white tick that pops in and draws itself */
.sent-tick { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 50%; background: var(--cyan); box-shadow: 0 14px 34px -12px rgba(34,191,232,.65); animation: tick-pop .55s cubic-bezier(.34,1.56,.64,1) both; }
.sent-tick svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick-draw .45s .3s ease-out forwards; }
@keyframes tick-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sent-tick, .sent-tick svg { animation: none; stroke-dashoffset: 0; } }

.contact__aside { display: grid; gap: 16px; }
.contact-card { background: rgba(255,255,255,.6); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.6vw, 32px); }
.contact-card h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.contact-card__line { display: block; font-size: 16px; padding: 6px 0; color: var(--ink); }
a.contact-card__line { font-weight: 600; color: var(--accent-btn); }
.contact-card--dark { background: var(--dark); border-color: var(--dark); color: var(--paper); }
.contact-card--dark p { color: rgba(255,255,255,.7); margin-bottom: 20px; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn__whatsapp { width: 26px; height: 26px; flex: none; margin-left: -8px; transition: transform .6s var(--ease); }
.btn:hover .btn__whatsapp { transform: rotate(-8deg) scale(1.06); }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; counter-increment: step; }
.next-steps li::before { content: counter(step); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-btn); color: #fff; font-weight: 600; font-size: 15px; }
.next-steps li:nth-child(2)::before { background: var(--cyan); }
.next-steps li:nth-child(3)::before { background: var(--purple); }
.next-steps strong { font-size: 16px; }
.next-steps span { color: var(--ink-soft); font-size: 15px; }

/* ==========================================================
   NO WIDOWS — balanced headlines, "pretty" paragraphs
   (js/main.js also glues the last two words for older browsers)
   ========================================================== */
h1, h2, h3, h4, .section-title, .cta-row__text strong, .mega__caption, .other__name { text-wrap: balance; }
p, li, blockquote, summary, figcaption, .cta-row__text span, .mega__link small, .other__intro { text-wrap: pretty; }

/* contact form spam trap — hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* ==========================================================
   TOOLS CAROUSEL (under the service cards)
   ========================================================== */
.tools-strip {
  overflow: hidden; margin-top: clamp(48px, 6vw, 80px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.tools-strip__track { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 8px 0; animation: tools-scroll 17s linear infinite; }
/* spacing on the items (not gap) so -50% lands exactly on the duplicate set */
.tools-strip__item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; text-align: center; flex: none; padding-right: calc(clamp(32px, 3.4vw, 56px) - 10px); }
.tools-strip__item img { height: clamp(30px, 2.6vw, 38px); width: auto; flex: none; }
.tools-strip__item span { font-size: 14px; font-weight: 400; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
@keyframes tools-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tools-strip__track { animation: none; } }

/* How we work: CTA buttons under the steps */
.process__cta .cta-row__actions { justify-content: flex-end; }

/* How we work buttons: both fill white on hover (dark section) */
.process__cta .btn--accent::before, .process__cta .btn--light-ghost::before { background: #fff; }
.process__cta .btn--accent:hover, .process__cta .btn--light-ghost:hover { color: var(--ink); }

/* project cards: optional second screenshot that crossfades in on hover */
.case__media.has-hover { position: relative; }
.case__hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .6s var(--ease); }
.case:hover .case__hover, .case:focus-visible .case__hover { opacity: 1; }

/* ==========================================================
   WORK — grouped selection on the home page + the full work page
   ========================================================== */
.work-group + .work-group { margin-top: clamp(64px, 8vw, 110px); }
.work-group__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.work-group__title { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.work__all { display: flex; justify-content: center; margin: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }

.work-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.work-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.work-jump__link { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; background: rgba(255,255,255,.5); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.work-jump__link span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--paper-2); font-size: 12px; transition: background .35s var(--ease), color .35s var(--ease); }
.work-jump__link:hover { color: var(--accent-btn); border-color: var(--accent-btn); }
.work-jump__link:hover span { background: var(--accent-btn); color: #fff; }
.work--page { padding: var(--section-y) 0; scroll-margin-top: 80px; }
.work--page .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.work__intro { max-width: 440px; color: var(--ink-soft); font-size: clamp(15px, 1.15vw, 17px); }
.work-end { padding: clamp(24px, 4vw, 48px) 0 var(--section-y); }
/* three-up grids: every thumbnail the same shape so rows line up (anchored to the top of the screenshot) */
.work__grid--three .case__media { aspect-ratio: 16 / 10; }
.work__grid--three .case__media > img:first-child { height: 100%; object-fit: cover; object-position: top center; }

/* Work cards: the same travelling light around the screenshot on hover (colours cycle pink / cyan / purple) */
.case { --c: var(--accent); }
.case:nth-child(3n+2) { --c: var(--cyan); }
.case:nth-child(3n) { --c: var(--purple); }
.case__media { position: relative; }
.case__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--trace), transparent 0deg 250deg, color-mix(in srgb, var(--c) 60%, transparent) 300deg, var(--c) 336deg, #fff 347deg, #fff 353deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  animation: card-trace 3.2s linear infinite; animation-play-state: paused;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--c));
}
.case:hover .case__media::after, .case:focus-visible .case__media::after { opacity: 1; animation-play-state: running; }
.case:hover .case__media { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 2px 4px rgba(20,26,23,.08), 0 36px 60px -30px rgba(20,26,23,.45), 0 0 46px -18px var(--c); }
/* service-page "Tools we use" as a logo carousel (same strip as the home page) */
.tools--logos { padding: clamp(8px, 1.5vw, 20px) 0 clamp(16px, 2.5vw, 32px); }
.tools--logos .tools__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.015em; text-transform: none; color: var(--ink); }
.tools--logos .tools-strip { margin-top: 20px; }
/* carousel sits between What's included and the AI panel */
.included:has(+ .tools--logos) { padding-bottom: clamp(32px, 4vw, 56px); }
.tools--logos:has(+ .svc-ai) { padding-bottom: var(--section-y); }

/* Rounded, blurred white spark: a short thick arc that follows the same angle as the border's
   white head, blurred on its parent so the blur isn't cut off by the ring mask */
.trace-glow { position: absolute; inset: -10px; border-radius: 32px; pointer-events: none; z-index: 3; filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.ai-card .trace-glow, .step .trace-glow { border-radius: 28px; }
.case__media .trace-glow { inset: -6px; border-radius: 28px; }
.trace-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 16px;
  background: conic-gradient(from var(--trace), transparent 0deg 344deg, rgba(255,255,255,.6) 347deg, #fff 349.5deg, #fff 351.5deg, rgba(255,255,255,.6) 354deg, transparent 357deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: card-trace 3.2s linear infinite; animation-play-state: paused;
}
:is(.service, .ai-card, .step):hover > .trace-glow, .case:hover .trace-glow, .case:focus-visible .trace-glow { opacity: .7; }
:is(.service, .ai-card, .step):hover > .trace-glow::before, .case:hover .trace-glow::before, .case:focus-visible .trace-glow::before { animation-play-state: running; }
.tools--logos .tools-strip__item { padding-right: calc(clamp(44px, 4.6vw, 76px) - 10px); }
.tools-strip__item img { max-width: 88px; object-fit: contain; }
/* tighter gap between the dark AI panel and Related work on service pages */
.svc-ai:has(+ .work--related) { padding-bottom: var(--section-y); }
.svc-ai + .work--related { padding-top: 0; }
/* current page in the nav */
.nav__links > a.is-current { color: var(--accent-btn); }
.nav__links > a.is-current::after { transform: scaleX(1); }
.nav__home.is-current svg { stroke: var(--accent-btn); }
.mega__link.is-current strong { color: var(--accent-btn); }
/* service hero: three examples that crossfade (js rotates .is-active every 2s) */
.page-hero__media[data-rotate] { position: relative; }
.page-hero__media[data-rotate] img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.page-hero__media[data-rotate] img.is-active { opacity: 1; }
.mega__here { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--accent-btn); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; }
.scroll-cue { animation: cue-in .9s var(--ease) 1.6s both; }
@keyframes cue-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* statement highlights: pink when reduced motion skips the word-by-word reveal */
.statement__text em { font-style: normal; color: var(--accent); }
/* work page filter buttons */
.work-jump__link { cursor: pointer; font-family: inherit; color: inherit; }
.work-jump__link.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-filtered { padding-top: var(--section-y); }
/* sticky work filter bar */
.work-filter-bar { position: sticky; top: var(--bar-offset, 0px); z-index: 50; padding: 14px 0; transition: background .3s, box-shadow .3s; }
.work-filter-bar.is-stuck { background: rgba(244,240,232,.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(20,26,23,.25); }
.work-filter-bar .work-jump { margin-top: 0; }
.work-filter-sentinel { height: 1px; }
@media (max-width: 700px) { .work-filter-bar .work-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); } .work-filter-bar .work-jump::-webkit-scrollbar { display: none; } .work-jump__link { flex: none; } }
.work-jump__link:focus { outline: none; }
.work-jump__link:focus-visible { outline: 2px solid var(--accent-btn); outline-offset: 2px; }
.work-jump__link.is-active:hover { color: var(--paper); border-color: var(--ink); }

/* Home AI section: tools carousel under the cards, logos knocked out to white for the dark background */
.tools-strip--dark { margin-top: clamp(40px, 5vw, 64px); }
.tools-strip--dark .tools-strip__item { padding-right: calc(clamp(44px, 4.6vw, 76px) - 10px); }
.tools-strip--dark .tools-strip__item img { filter: brightness(0) invert(1); opacity: .9; }
.tools-strip--dark .tools-strip__item span { color: rgba(255,255,255,.72); }

/* Legal pages (privacy policy): sticky contents beside a readable text column */
.footer__base a { color: inherit; }
.footer__base span a { text-decoration: underline; text-underline-offset: 3px; }
.footer__base span a:hover { color: #fff; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal__updated { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.legal { padding-bottom: var(--section-y); }
.legal__grid { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 780px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__toc { position: sticky; top: 104px; }
.legal__toc h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-soft); }
.legal__toc a:hover { color: var(--accent-btn); }
.legal__body { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); min-width: 0; }
.legal__section { scroll-margin-top: 104px; }
.legal__section + .legal__section { margin-top: clamp(36px, 4vw, 52px); padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--line); }
.legal__section h2 { font-family: var(--font-display); font-size: clamp(25px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.legal__section h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.legal__section p, .legal__section li { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.legal__section p + p, .legal__section ul + p, .legal__section p + ul, .legal__table-wrap + p, .legal__card + p { margin-top: 14px; }
.legal__section ul { list-style: disc; margin-bottom: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal__section strong { color: var(--ink); font-weight: 600; }
.legal__section a { color: var(--accent-btn); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__card { margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: var(--paper-2); font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.legal__table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal__table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal__table th, .legal__table td { padding: 12px 14px; text-align: left; vertical-align: top; color: var(--ink-soft); }
.legal__table th { font-weight: 600; color: var(--ink); background: var(--paper-2); }
.legal__table tr + tr td, .legal__table tbody tr:first-child td { border-top: 1px solid var(--line); }
.legal__table code { font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__toc ol { grid-template-columns: 1fr; }
}
/* Phones: stack table rows into labelled cards instead of scrolling sideways */
@media (max-width: 640px) {
  .legal__table { min-width: 0; }
  .legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
  .legal__table tr { padding: 14px; }
  .legal__table tbody tr + tr { border-top: 1px solid var(--line); }
  .legal__table td, .legal__table tr + tr td, .legal__table tbody tr:first-child td { padding: 0; border-top: 0; }
  .legal__table td + td { margin-top: 8px; }
  .legal__table td:first-child { color: var(--ink); font-weight: 600; }
  .legal__table td + td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); opacity: .75; }
}

/* Cookie consent banner: sits above the colour stripe, under the preloader */
.consent-banner {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 190; width: min(500px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 44px); overflow-y: auto;
  padding: clamp(20px, 2.4vw, 28px); border-radius: 22px; background: var(--dark, #141a17); color: var(--paper);
  box-shadow: 0 24px 60px rgba(10,14,12,.32);
}
.consent-banner__title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.consent-banner__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.76); }
.consent-banner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent-banner__manage { display: grid; gap: 10px; margin-top: 16px; }
.consent-banner__manage[hidden] { display: none; }
.consent-option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; cursor: pointer; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.72); }
.consent-option input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent-btn); }
.consent-option strong { display: block; font-weight: 600; color: #fff; }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.34); background: transparent; color: #fff; font: 600 14px var(--font-body); cursor: pointer; transition: background .25s, color .25s; }
.consent-btn[hidden] { display: none; }
.consent-btn:hover { background: rgba(255,255,255,.12); }
.consent-btn--solid { background: #fff; border-color: #fff; color: #141a17; }
.consent-btn--solid:hover { background: var(--paper-2); }
.consent-btn:focus-visible, .consent-option input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 480px) { .consent-btn--solid { flex: 1 1 40%; } .consent-btn:not(.consent-btn--solid) { flex: 1 1 100%; } }
.js-popup-assistant[aria-busy="true"] { cursor: progress; opacity: .7; }
.footer__base button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__base button:hover { color: #fff; }
.legal__section .js-cookie-settings { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-btn); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Footer: LinkedIn link with its brand icon */
.footer__social { display: inline-flex; align-items: center; gap: 10px; }
.footer__social img { width: 20px; height: 20px; flex: none; }
@media (max-width: 560px) { .footer__base { flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 72px; } }

/* AI stars that spread out from under a hovered work example (added by js). Behind all page content. */
main { position: relative; }
.case-stars { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.case-star { position: absolute; opacity: 0; will-change: transform, opacity, filter; }
.case-star svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* Home page carousels: same "Tools we use" title as the service pages */
.tools__title--home { margin-top: clamp(48px, 6vw, 80px); font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.015em; text-transform: none; color: var(--ink); }
.ai .tools__title--home { margin-top: clamp(40px, 5vw, 64px); color: var(--paper); }
.tools__title--home + .tools-strip { margin-top: 20px; }

/* Glass reflection on work and service images: a hard diagonal edge, moved with the pointer by js */
.media-glare {
  --gb: 60%;
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(225deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.2) calc(var(--gb) - .2%), rgba(12,16,32,.06) calc(var(--gb) + .2%), rgba(12,16,32,.02) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
/* the flare where the edge runs out towards the bottom corner */
.media-glare::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(225deg, rgba(255,255,255,0) calc(var(--gb) - 9%), rgba(255,255,255,.55) calc(var(--gb) - .2%), rgba(255,255,255,0) calc(var(--gb) + .2%));
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 62%);
  mask-image: radial-gradient(circle at 100% 100%, #000, transparent 62%);
}
