/* ==========================================================================
   RR Studios — Design System
   Colour rule 60 / 30 / 10
     60%  Ink   (#0B0B0F family)  — dominant surfaces, backgrounds
     30%  Paper (#FCFCFC — logo white)  — secondary surfaces, primary text on ink
     10%  Red   (#BF0000 family)  — accents, CTAs, highlights only
   ========================================================================== */

:root {
  /* 60 — Ink */
  --ink-950: #07070A;
  --ink-900: #0B0B0F;
  --ink-850: #101015;
  --ink-800: #15151B;
  --ink-700: #1E1E26;
  --ink-600: #2A2A34;
  /* 30 — Paper */
  --paper-50: #FFFFFF;
  --paper-100: #FCFCFC;
  --paper-200: #EFEFEF;
  --paper-300: #DADADA;
  /* 10 — Red */
  --red-400: #E5262B;
  --red-500: #BF0000;
  --red-600: #8C0000;
  --red-glow: rgba(191, 0, 0, .4);

  --muted: #9A9AA5;
  --muted-dark: #5E5E6A;
  --line: rgba(252, 252, 252, .09);
  --line-strong: rgba(252, 252, 252, .16);
  --line-dark: rgba(11, 11, 15, .1);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius-sm: 6px;
  --pill: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.025em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red-500); color: #fff; }
:focus-visible { outline: 2px solid var(--red-500); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--red-500); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section-sm { padding: calc(var(--section) * .6) 0; }
.section--paper { background: var(--paper-200); color: var(--ink-900); }
.section--deep { background: var(--ink-950); }
.section--raised { background: var(--ink-850); }
.grid { display: grid; gap: 24px; }
.grid > *, .split > *, .footer__grid > *, .services-grid > *, .form-row > *, .contact-info > * > div { min-width: 0; }
.contact-info strong { overflow-wrap: anywhere; }
main, .footer { overflow-x: clip; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 56px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red-500); box-shadow: 0 0 12px var(--red-glow); }
.section--paper .eyebrow { color: var(--muted-dark); }
.display { font-size: clamp(44px, 7.6vw, 112px); line-height: .98; letter-spacing: -.045em; }
.h1 { font-size: clamp(40px, 5.8vw, 82px); letter-spacing: -.04em; }
.h2 { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -.035em; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.section--paper .lead, .section--paper .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }
.accent { color: var(--red-500); }
.outline-text { -webkit-text-stroke: 1.5px var(--paper-100); color: transparent; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head--row > div { max-width: 700px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red-500); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -.005em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink-900); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 40px -12px var(--red-glow); }
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn-primary { box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn-primary::before { background: var(--paper-100); }
.btn-primary:hover { color: var(--ink-900); }
.btn-ghost { --bg: transparent; --fg: var(--paper-100); border: 1px solid var(--line-strong); }
.btn-ghost::before { background: var(--paper-100); }
.btn-ghost:hover { color: var(--ink-900); border-color: var(--paper-100); box-shadow: none; }
.btn-dark { --bg: var(--ink-900); --fg: var(--paper-100); }
.btn-dark::before { background: var(--red-500); }
.btn-sm { height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn-block { width: 100%; }
.section--paper .btn-ghost { --fg: var(--ink-900); border-color: var(--line-dark); }
.section--paper .btn-ghost::before { background: var(--ink-900); }
.section--paper .btn-ghost:hover { color: var(--paper-100); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15px; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 16px; height: 16px; color: var(--red-500); transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); white-space: nowrap; }
.section--paper .tag { border-color: var(--line-dark); color: var(--muted-dark); }
.tag--red { border-color: rgba(191, 0, 0, .4); color: var(--red-400); background: rgba(191, 0, 0, .08); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Preloader & transitions ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink-950);
  display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.preloader__mark { width: 74px; height: 74px; animation: pulse 1.2s var(--ease-in-out) infinite; }
.preloader__bar { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--red-500); transform-origin: left; animation: load 1.1s var(--ease) forwards; }
.is-loaded .preloader { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .7; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.page-transition { position: fixed; inset: 0; z-index: 9998; background: var(--red-500); transform: scaleY(0); transform-origin: bottom; pointer-events: none; transition: transform .5s var(--ease-in-out); }
.page-transition.is-active { transform: scaleY(1); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120; background: var(--red-500); transform: scaleX(0); transform-origin: left; }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; border-radius: 50%; opacity: 0; }
.cursor { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(252, 252, 252, .5); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s; mix-blend-mode: difference; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red-500); }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--paper-100); border-color: transparent; }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); transition: transform .5s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(11, 11, 15, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.logo svg { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.05); }
.logo b { color: var(--red-500); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500; color: rgba(252, 252, 252, .78); border-radius: var(--pill); transition: color .3s, background .3s; display: inline-flex; align-items: center; gap: 6px; }
.nav__link:hover, .nav__link.is-active { color: var(--paper-100); }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red-500); }
.nav__link svg { width: 12px; height: 12px; transition: transform .3s; }
.nav__item { position: relative; }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(21, 21, 27, .96); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: 14px; padding: 14px; border-radius: 12px; transition: background .3s; }
.dropdown a:hover { background: var(--ink-700); }
.dropdown .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-700); color: var(--red-500); }
.dropdown a:hover .ico { background: var(--red-500); color: #fff; }
.dropdown .ico svg { width: 20px; height: 20px; }
.dropdown strong { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.dropdown span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.dropdown .dropdown__all { grid-column: 1 / -1; justify-content: space-between; align-items: center; background: var(--ink-800); font-family: var(--font-display); font-size: 14px; font-weight: 600; white-space: nowrap; }
.dropdown__all svg { flex: none; width: 18px; height: 18px; color: var(--red-500); transition: transform .4s var(--ease); }
.dropdown__all:hover svg { transform: translateX(4px); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--paper-100); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink-950); padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 39px); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 39px); visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu__links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
.mobile-menu__links a:hover, .mobile-menu__links a.is-active { color: var(--red-500); }
.mobile-menu__links a small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.menu-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 80px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, rgba(191, 0, 0, .22), transparent 62%); z-index: 0; animation: float 14s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--ink-900)); z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero__badge { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 8px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: rgba(21, 21, 27, .6); backdrop-filter: blur(10px); font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.hero__badge b { background: var(--red-500); color: #fff; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; font-family: var(--font-mono); letter-spacing: .05em; }
.hero__title { max-width: 1100px; margin-bottom: 32px; }
.hero__title .rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--red-500); }
/* Only active/leaving words animate; a word that has left jumps back below instantly, so it never slides through view. */
.rotator > span { grid-area: 1 / 1; transform: translateY(140%); white-space: nowrap; }
.rotator > span.is-active { transform: translateY(0); transition: transform .8s var(--ease); }
.rotator > span.is-out { transform: translateY(-140%); transition: transform .8s var(--ease); }
.hero__sub { font-size: clamp(18px, 1.7vw, 22px); color: var(--muted); max-width: 620px; margin-bottom: 44px; }
.hero__foot { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hero__stat { padding: 28px 24px 0 0; }
.hero__stat + .hero__stat { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.hero__stat strong i { color: var(--red-500); font-style: normal; }
.hero__stat span { font-size: 14px; color: var(--muted); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--red-500), transparent); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes float { 50% { transform: translate(-60px, 60px) scale(1.1); } }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(70px, 10vw, 140px)) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 75%); }
.page-hero::after { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -320px; background: radial-gradient(circle, rgba(191, 0, 0, .25), transparent 62%); animation: float 16s ease-in-out infinite; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { max-width: 1000px; }
.page-hero .lead { margin-top: 8px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--paper-100); }
.breadcrumb span { color: var(--red-500); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.page-hero__meta div { font-size: 14px; color: var(--muted); }
.page-hero__meta strong { display: block; color: var(--paper-100); font-family: var(--font-display); font-size: 16px; font-weight: 600; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 30px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-900), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink-900), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 14px; padding: 0 44px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: rgba(252, 252, 252, .4); letter-spacing: -.02em; white-space: nowrap; transition: color .3s; }
.marquee__item:hover { color: var(--paper-100); }
.marquee__item svg { width: 26px; height: 26px; }
.marquee--big .marquee__item { font-size: clamp(48px, 8vw, 120px); color: transparent; -webkit-text-stroke: 1px rgba(252, 252, 252, .25); padding: 0 30px; }
.marquee--big .marquee__item::after { content: "✦"; margin-left: 60px; color: var(--red-500); -webkit-text-stroke: 0; font-size: .4em; }
.marquee--big { border: 0; padding: 20px 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 36px; border-radius: var(--radius-lg); background: var(--ink-850); border: 1px solid var(--line);
  overflow: hidden; transition: transform .6s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(191, 0, 0, .14), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); }
.card > * { position: relative; }
.section--paper .card { background: var(--paper-50); border-color: var(--line-dark); }
.section--paper .card::before { background: radial-gradient(500px circle at var(--mx) var(--my), rgba(191, 0, 0, .08), transparent 40%); }

.icon-box { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--ink-700); color: var(--red-500); margin-bottom: 28px; transition: background .4s, color .4s, transform .6s var(--ease); }
.icon-box svg { width: 26px; height: 26px; }
.card:hover .icon-box { background: var(--red-500); color: #fff; transform: rotate(-6deg) scale(1.05); }
.section--paper .icon-box { background: var(--paper-200); }

.service-card { display: flex; flex-direction: column; min-height: 420px; }
.service-card__num { position: absolute; top: 34px; right: 36px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.service-card h3 { font-size: 26px; margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: 16px; }
.service-card .tags { margin-top: auto; padding-top: 24px; }
.service-card .link-arrow { margin-top: 28px; }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.services-grid > :nth-child(1), .services-grid > :nth-child(2) { grid-column: span 3; }
.services-grid > :nth-child(n+3) { grid-column: span 2; }

/* feature list */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--red-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check-list--2 { grid-template-columns: 1fr 1fr; gap: 14px 32px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 44px 36px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; }
.stat strong sup { font-size: .45em; color: var(--red-500); vertical-align: top; margin-left: 4px; position: relative; top: .2em; }
.stat p { color: var(--muted); font-size: 15px; margin: 0; }
.section--paper .stats, .section--paper .stat + .stat { border-color: var(--line-dark); }

/* ---------- Visual panels ---------- */
.visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; background: var(--ink-850); border: 1px solid var(--line); }
.visual--wide { aspect-ratio: 16 / 11; }
.orb-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.orb { width: 52%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--red-400), var(--red-600) 55%, #3a0509 100%); box-shadow: 0 0 120px var(--red-glow), inset -20px -30px 60px rgba(0, 0, 0, .4); animation: breathe 6s ease-in-out infinite; }
.ring { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; animation: spin 30s linear infinite; }
.ring::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-100); top: -5px; left: 50%; box-shadow: 0 0 16px var(--paper-100); }
.ring--1 { inset: 12%; }
.ring--2 { inset: 4%; animation-duration: 46s; animation-direction: reverse; }
.ring--2::before { background: var(--red-500); box-shadow: 0 0 16px var(--red-500); }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(21, 21, 27, .82); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; animation: bob 5s ease-in-out infinite; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.float-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 10px var(--red-500); }
.float-chip b { font-family: var(--font-display); }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--red-500), var(--line-strong) 40%, var(--line-strong)); }
.process__step { position: relative; padding-top: 84px; }
.process__step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 14px; transition: background .4s, border-color .4s; }
.process__step:hover::before { background: var(--red-500); border-color: var(--red-500); }
.process__step h3 { font-size: 22px; }
.process__step p { color: var(--muted); font-size: 15.5px; }
.section--paper .process__step::before { background: var(--paper-100); border-color: var(--line-dark); }
.section--paper .process__step:hover::before { color: #fff; }
.section--paper .process::before { background: linear-gradient(90deg, var(--red-500), var(--line-dark) 40%); }

/* ---------- Work / case studies ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.work-card { display: block; }
.work-card:nth-child(even) { margin-top: 80px; }
.work-grid--flat .work-card:nth-child(even) { margin-top: 0; }
.work-card__media { position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); }
.work-card__media .thumb { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.work-card:hover .thumb { transform: scale(1.06); }
.work-card__view { position: absolute; top: 50%; left: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; background: var(--red-500); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; transform: scale(0); transition: transform .6s var(--ease); z-index: 2; }
.work-card:hover .work-card__view { transform: scale(1); }
.work-card__meta { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.work-card h3 { font-size: 26px; margin-bottom: 6px; transition: color .3s; }
.work-card:hover h3 { color: var(--red-500); }
.work-card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.work-card.is-hidden { display: none; }

/* Generative thumbnails — no external images required */
.thumb { background: var(--ink-800); overflow: hidden; }
.thumb::before, .thumb::after { content: ""; position: absolute; }
.thumb--1 { background: radial-gradient(circle at 70% 30%, var(--red-500), transparent 45%), linear-gradient(135deg, #1a0a0d, var(--ink-900)); }
.thumb--1::before { inset: 18% 14% auto 14%; height: 64%; border-radius: 14px; background: linear-gradient(var(--paper-100) 0 10%, var(--ink-800) 10%); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.thumb--1::after { left: 20%; right: 40%; top: 36%; height: 10px; border-radius: 6px; background: var(--paper-300); box-shadow: 0 24px 0 -2px var(--ink-600), 0 46px 0 -2px var(--ink-600), 140px 74px 0 6px var(--red-500); }
.thumb--2 { background: conic-gradient(from 200deg at 50% 60%, var(--ink-900), var(--red-600), var(--ink-900) 40%); }
.thumb--2::before { width: 42%; aspect-ratio: 1; left: 29%; top: 20%; border-radius: 50%; border: 1px solid rgba(252, 252, 252, .3); box-shadow: 0 0 0 30px rgba(252, 252, 252, .04), 0 0 0 60px rgba(252, 252, 252, .03); }
.thumb--2::after { width: 18%; aspect-ratio: 1; left: 41%; top: 36%; border-radius: 50%; background: var(--paper-100); box-shadow: 0 0 60px var(--paper-100); }
.thumb--3 { background: var(--paper-100); }
.thumb--3::before { inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(11, 11, 15, .06) 46px 47px); }
.thumb--3::after { left: 12%; bottom: 14%; width: 76%; height: 54%; background: linear-gradient(to top, var(--red-500) 0 100%) 0 100% / 12% 40% no-repeat, linear-gradient(var(--ink-900), var(--ink-900)) 22% 100% / 12% 62% no-repeat, linear-gradient(var(--red-500), var(--red-500)) 44% 100% / 12% 78% no-repeat, linear-gradient(var(--ink-900), var(--ink-900)) 66% 100% / 12% 55% no-repeat, linear-gradient(var(--red-500), var(--red-500)) 88% 100% / 12% 100% no-repeat; }
.thumb--4 { background: linear-gradient(160deg, var(--ink-700), var(--ink-950)); }
.thumb--4::before { width: 34%; height: 70%; left: 33%; top: 15%; border-radius: 26px; background: linear-gradient(var(--red-500) 0 30%, var(--ink-800) 30%); border: 5px solid var(--ink-600); box-shadow: -140px 30px 0 -20px var(--ink-800), 140px 30px 0 -20px var(--ink-800); }
.thumb--4::after { width: 20%; height: 4%; left: 40%; top: 55%; border-radius: 6px; background: var(--paper-100); box-shadow: 0 22px 0 var(--ink-600), 0 44px 0 var(--ink-600); }
.thumb--5 { background: var(--red-500); }
.thumb--5::before { inset: -20%; background: repeating-radial-gradient(circle at 0 100%, transparent 0 40px, rgba(11, 11, 15, .2) 40px 41px); }
.thumb--5::after { content: "RR"; right: 8%; bottom: 2%; font-family: var(--font-display); font-weight: 700; font-size: 160px; line-height: 1; color: var(--paper-100); letter-spacing: -.06em; }
.thumb--6 { background: radial-gradient(circle at 20% 80%, rgba(191, 0, 0, .6), transparent 50%), var(--ink-900); }
.thumb--6::before { inset: 20% 12%; border-radius: 16px; border: 1px solid var(--line-strong); background: linear-gradient(90deg, transparent 49.5%, var(--line-strong) 50%, transparent 50.5%), linear-gradient(transparent 49.5%, var(--line-strong) 50%, transparent 50.5%); }
.thumb--6::after { width: 60%; height: 30%; left: 20%; top: 35%; background: linear-gradient(135deg, transparent 48%, var(--red-500) 49%, var(--red-500) 51%, transparent 52%); filter: drop-shadow(0 0 10px var(--red-500)); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.filter { height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: 14.5px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.filter:hover { border-color: var(--paper-100); }
.filter.is-active { background: var(--red-500); border-color: var(--red-500); color: #fff; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; }
.t-track { display: grid; }
.t-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .7s var(--ease), transform .8s var(--ease), visibility .7s; }
.t-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.t-quote { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; margin-bottom: 40px; max-width: 1000px; }
.t-quote::before { content: "\201C"; display: block; font-size: 2.6em; line-height: .8; color: var(--red-500); margin-bottom: 8px; }
.t-person { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: linear-gradient(135deg, var(--red-500), var(--red-600)); color: #fff; flex: none; }
.avatar--paper { background: var(--paper-200); color: var(--ink-900); }
.avatar--ink { background: var(--ink-700); color: var(--paper-100); }
.t-person strong { display: block; font-family: var(--font-display); }
.t-person span { font-size: 14px; color: var(--muted); }
.t-controls { display: flex; align-items: center; gap: 24px; margin-top: 56px; }
.t-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.t-btn:hover { background: var(--red-500); border-color: var(--red-500); }
.t-btn svg { width: 20px; height: 20px; }
.t-progress { flex: 1; max-width: 240px; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.t-progress i { position: absolute; inset: 0; background: var(--red-500); transform-origin: left; transform: scaleX(0); }
.t-count { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---------- Industries ---------- */
.industry-list { border-top: 1px solid var(--line); }
.industry { display: grid; grid-template-columns: 80px 1fr 1.2fr 40px; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .5s var(--ease); }
.industry::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(191, 0, 0, .1), transparent 70%); opacity: 0; transition: opacity .4s; }
.industry:hover { padding-left: 20px; }
.industry:hover::before { opacity: 1; }
.industry > * { position: relative; }
.industry__num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.industry h3 { font-size: clamp(22px, 2.6vw, 36px); margin: 0; }
.industry p { color: var(--muted); margin: 0; font-size: 15.5px; }
.industry__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, transform .5s var(--ease); }
.industry:hover .industry__arrow { background: var(--red-500); border-color: var(--red-500); transform: rotate(-45deg); }
.industry__arrow svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta { position: relative; border-radius: var(--radius-lg); padding: clamp(56px, 8vw, 110px) clamp(28px, 6vw, 90px); background: var(--ink-850); border: 1px solid var(--line); overflow: hidden; text-align: center; }
.cta::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 55%; background: radial-gradient(circle, rgba(191, 0, 0, .5), transparent 55%); animation: breathe 8s ease-in-out infinite; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(252, 252, 252, .14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(transparent, #000); -webkit-mask-image: linear-gradient(transparent, #000); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 860px; margin-left: auto; margin-right: auto; }
.cta .lead { margin: 0 auto 40px; }
.cta .btn-row { justify-content: center; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; text-align: left; font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.015em; }
.acc-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .4s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--red-500); border-color: var(--red-500); color: #fff; transform: rotate(180deg); }
.acc-item.is-open .acc-icon::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { color: var(--muted); padding-bottom: 28px; margin: 0; max-width: 820px; }
.section--paper .accordion, .section--paper .acc-item { border-color: var(--line-dark); }
.section--paper .acc-icon { border-color: var(--line-dark); }

/* ---------- Tabs ---------- */
.tabs__nav { display: inline-flex; padding: 6px; border-radius: var(--pill); background: var(--ink-800); border: 1px solid var(--line); margin-bottom: 48px; flex-wrap: wrap; }
.tabs__btn { height: 44px; padding: 0 22px; border-radius: var(--pill); font-size: 14.5px; font-weight: 500; color: var(--muted); transition: background .3s, color .3s; }
.tabs__btn.is-active { background: var(--red-500); color: #fff; }
.tabs__panel { display: none; animation: fadeUp .6s var(--ease); }
.tabs__panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 56px; font-weight: 500; }
.switch { width: 60px; height: 32px; border-radius: var(--pill); background: var(--ink-700); border: 1px solid var(--line-strong); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-100); transition: transform .4s var(--ease), background .3s; }
.switch[aria-checked="true"] { background: var(--red-500); border-color: var(--red-500); }
.switch[aria-checked="true"]::after { transform: translateX(28px); }
.save-pill { font-size: 12px; font-family: var(--font-mono); padding: 4px 10px; border-radius: var(--pill); background: rgba(191, 0, 0, .12); color: var(--red-400); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 40px; }
.price-card--featured { background: var(--paper-100); color: var(--ink-900); border-color: var(--paper-100); transform: translateY(-16px); }
.price-card--featured .muted, .price-card--featured .price__note { color: var(--muted-dark); }
.price-card--featured::before { display: none; }
.price-card__badge { position: absolute; top: 24px; right: 24px; background: var(--red-500); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--pill); font-family: var(--font-mono); letter-spacing: .05em; }
.price-card h3 { font-size: 22px; margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 28px 0 6px; }
.price strong { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.price span { color: var(--muted); }
.price__note { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.price-card .check-list { margin: 8px 0 36px; font-size: 15.5px; }
.price-card .btn { margin-top: auto; }
.price-card--featured .btn-ghost { --fg: var(--ink-900); border-color: var(--line-dark); }

.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 17px; position: sticky; top: var(--header-h); background: var(--ink-900); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody tr:hover { background: var(--ink-850); }
.compare .yes { color: var(--red-500); font-weight: 700; }
.compare .no { color: var(--muted-dark); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Team / values / timeline ---------- */
.team-card { text-align: left; padding: 0; }
.team-card__photo { aspect-ratio: 4 / 4.6; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); }
.team-card__photo::after { content: ""; position: absolute; inset: auto -20% -50% -20%; height: 80%; background: radial-gradient(circle, rgba(191, 0, 0, .45), transparent 60%); transition: transform .8s var(--ease); }
.team-card:hover .team-card__photo::after { transform: translateY(-20%); }
.team-card__photo span { font-family: var(--font-display); font-size: 72px; font-weight: 700; letter-spacing: -.05em; color: var(--paper-100); position: relative; z-index: 1; }
.team-card__body { padding: 24px 28px 28px; }
.team-card h3 { font-size: 20px; margin-bottom: 4px; }
.team-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.value { padding: 40px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 120px 1fr 1.3fr; gap: 32px; align-items: start; }
.value__num { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--red-500); line-height: 1; letter-spacing: -.04em; }
.value h3 { font-size: 28px; margin: 0; }
.value p { color: var(--muted-dark); margin: 0; }

.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--red-500), var(--line-strong)); }
.tl-item { position: relative; padding-bottom: 48px; }
.tl-item::before { content: ""; position: absolute; left: -40px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink-900); border: 2px solid var(--red-500); }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--font-mono); font-size: 13px; color: var(--red-400); letter-spacing: .1em; margin-bottom: 8px; display: block; }
.tl-item h3 { font-size: 24px; }
.tl-item p { color: var(--muted); margin: 0; }

/* ---------- Jobs ---------- */
.job { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-850); transition: border-color .3s, transform .5s var(--ease); }
.job + .job { margin-top: 14px; }
.job:hover { border-color: var(--red-500); transform: translateX(6px); }
.job h3 { font-size: 20px; margin: 0 0 4px; }
.job small, .job span { color: var(--muted); font-size: 14.5px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; }
.post-card__media { position: relative; aspect-ratio: 16 / 10; }
.post-card__media .thumb { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.post-card:hover .thumb { transform: scale(1.06); }
.post-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.post-card h3 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; transition: color .3s; }
.post-card:hover h3 { color: var(--red-400); }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card .link-arrow { margin-top: auto; }
.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; }
.post-featured .post-card__media { aspect-ratio: auto; min-height: 420px; }
.post-featured .post-card__body { padding: 48px; justify-content: center; }
.post-featured h3 { font-size: clamp(26px, 2.8vw, 38px); }

.article { max-width: 760px; margin: 0 auto; font-size: 18.5px; line-height: 1.8; }
.article h2 { font-size: 34px; margin: 56px 0 18px; }
.article h3 { font-size: 24px; margin: 40px 0 14px; }
.article p, .article li { color: rgba(252, 252, 252, .82); }
.article ul { list-style: none; margin: 0 0 1.4em; display: grid; gap: 10px; }
.article ul li { padding-left: 28px; position: relative; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 2px; background: var(--red-500); }
.article blockquote { margin: 40px 0; padding: 8px 0 8px 32px; border-left: 3px solid var(--red-500); font-family: var(--font-display); font-size: 26px; line-height: 1.35; letter-spacing: -.02em; color: var(--paper-100); }
.article__cover { aspect-ratio: 21 / 9; position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 64px; }
.article__cover .thumb { position: absolute; inset: 0; }
.author { display: flex; align-items: center; gap: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; height: 58px; padding: 0 20px; border-radius: 14px; background: var(--ink-800); border: 1px solid var(--line-strong);
  font-size: 16px; transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9AA5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; }
.field select option { background: var(--ink-800); }
.field textarea { height: 160px; padding: 18px 20px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-500); background: var(--ink-850); box-shadow: 0 0 0 4px rgba(191, 0, 0, .15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red-400); }
.field__error { display: none; font-size: 13px; color: var(--red-400); margin-top: 8px; }
.field.is-invalid .field__error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.field .chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: 14.5px; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.chip input:checked + span { background: var(--red-500); border-color: var(--red-500); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--red-500); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { accent-color: var(--red-500); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.consent a { color: var(--paper-100); text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 60px 20px; }
.form-success__icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: var(--red-500); display: grid; place-items: center; animation: pop .7s var(--ease); }
.form-success__icon svg { width: 36px; height: 36px; color: #fff; }
.is-sent .form { display: none; }
.is-sent .form-success { display: block; }
@keyframes pop { from { transform: scale(0); } }
.contact-panel { padding: clamp(28px, 4vw, 52px); }
.contact-info { display: grid; gap: 14px; }
.contact-info > a, .contact-info > div { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-850); transition: border-color .3s; }
.contact-info > a:hover { border-color: var(--red-500); }
.contact-info .icon-box { margin: 0; width: 48px; height: 48px; flex: none; }
.contact-info small { display: block; font-size: 13px; color: var(--muted); }
.contact-info strong { font-family: var(--font-display); font-weight: 600; }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--ink-850); border: 1px solid var(--line); }
.map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(252, 252, 252, .22) 1.2px, transparent 1.2px); background-size: 16px 16px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.map__pin { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 0 var(--red-glow); animation: ping 2s infinite; }
.map__pin span { position: absolute; left: 24px; top: -6px; white-space: nowrap; font-size: 13px; font-weight: 600; font-family: var(--font-display); background: var(--ink-800); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 8px; }
@keyframes ping { 70% { box-shadow: 0 0 0 22px rgba(191, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(191, 0, 0, 0); } }

/* ---------- Brand page ---------- */
.brand-logo-tile { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.brand-logo-tile img { position: absolute; inset: 0; margin: auto; width: 70%; height: 66%; object-fit: contain; }
.brand-logo-tile--mark img { width: 40%; }
.brand-logo-tile--wide { grid-column: span 2; aspect-ratio: auto; }
.brand-logo-tile--wide img { width: 78%; }
.brand-logo-tile figcaption { position: absolute; left: 20px; bottom: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.bg-ink { background: var(--ink-900); }
.bg-paper { background: var(--paper-100); }
.bg-paper figcaption { color: var(--muted-dark); }
.bg-red { background: var(--red-500); }
.bg-red figcaption { color: rgba(255, 255, 255, .8); }
.ratio-bar { display: flex; height: 140px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); }
.ratio-bar > div { display: flex; flex-direction: column; justify-content: space-between; padding: 20px 24px; font-family: var(--font-mono); font-size: 13px; transition: flex .6s var(--ease); }
.ratio-bar strong { font-family: var(--font-display); font-size: 34px; letter-spacing: -.04em; }
.ratio-bar .r60 { flex: 60; background: var(--ink-900); color: var(--paper-100); }
.ratio-bar .r30 { flex: 30; background: var(--paper-200); color: var(--ink-900); }
.ratio-bar .r10 { flex: 10; background: var(--red-500); color: #fff; min-width: 90px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.swatch-group h3 { font-size: 20px; margin-bottom: 4px; }
.swatch-group > p { font-size: 14.5px; margin-bottom: 18px; }
.swatch { display: flex; justify-content: space-between; align-items: end; padding: 16px 18px; height: 88px; font-family: var(--font-mono); font-size: 12.5px; cursor: pointer; transition: transform .4s var(--ease); position: relative; border: 0; width: 100%; text-align: left; }
.swatch:first-of-type { border-radius: 16px 16px 0 0; height: 150px; }
.swatch:last-child { border-radius: 0 0 16px 16px; }
.swatch:hover { transform: translateX(6px); }
.swatch b { font-family: var(--font-display); font-size: 15px; display: block; }
.swatch.copied::after { content: "Copied ✓"; position: absolute; right: 18px; top: 16px; font-size: 12px; }
.type-specimen { padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: var(--paper-50); }
.type-specimen__big { font-size: clamp(80px, 13vw, 180px); line-height: .9; letter-spacing: -.05em; margin: 0; }
.type-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-dark); align-items: baseline; }
.type-row small { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .08em; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.do-dont .card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.do-dont .card h3 i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.do i { background: #1f9d55; color: #fff; }
.dont i { background: var(--red-500); color: #fff; }
.voice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.voice-grid .card h3 { font-size: 22px; }
.voice-grid .card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Prose / legal ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; }
.prose p, .prose li { color: rgba(252, 252, 252, .78); }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.prose a { color: var(--red-400); text-decoration: underline; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; }
.toc a { padding: 8px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14.5px; transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--paper-100); border-color: var(--red-500); }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.not-found__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(140px, 28vw, 380px); line-height: .85; letter-spacing: -.07em; background: linear-gradient(180deg, var(--paper-100), rgba(252, 252, 252, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found__code span { color: var(--red-500); -webkit-text-fill-color: var(--red-500); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); padding-top: clamp(80px, 10vw, 130px); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.footer__cta { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.footer__cta h2 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -.05em; margin: 0; line-height: .95; }
.footer__cta h2 a { color: var(--red-500); display: inline-flex; align-items: center; gap: .2em; transition: gap .5s var(--ease); }
.footer__cta h2 a:hover { gap: .35em; }
.footer__cta h2 svg { width: .7em; height: .7em; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; padding: 72px 0; }
.footer__brand p { color: var(--muted); max-width: 340px; margin: 24px 0; font-size: 15.5px; }
.footer h4 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 22px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { font-size: 15.5px; color: rgba(252, 252, 252, .8); transition: color .3s, padding .4s var(--ease); }
.footer__links a:hover { color: var(--red-500); padding-left: 6px; }
.newsletter { display: flex; gap: 8px; padding: 6px; border-radius: var(--pill); border: 1px solid var(--line-strong); max-width: 380px; transition: border-color .3s; }
.newsletter:focus-within { border-color: var(--red-500); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 16px; outline: none; font-size: 15px; }
.newsletter .btn { height: 44px; padding: 0 18px; }
.newsletter-msg { font-size: 13.5px; color: var(--red-400); margin-top: 10px; min-height: 20px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--red-500); border-color: var(--red-500); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--paper-100); }
.footer__word { font-family: var(--font-display); font-weight: 700; font-size: 22vw; line-height: .78; letter-spacing: -.07em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(252, 252, 252, .08); user-select: none; margin-bottom: -2vw; white-space: nowrap; }
.footer__word span { -webkit-text-stroke: 1px rgba(191, 0, 0, .35); }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: var(--red-500); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px var(--red-glow); opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--d, 0s)); }
[data-split].is-in .split-word > span { transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.no-js .split-word > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .services-grid > * { grid-column: span 3 !important; }
  .services-grid > :last-child { grid-column: 1 / -1 !important; }
  .grid-4, .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process::before { display: none; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .price-card--featured { transform: none; }
  .job { grid-template-columns: 1fr 1fr; }
  .industry { grid-template-columns: 60px 1fr 40px; }
  .industry p { grid-column: 2 / 3; }
  .industry__arrow { grid-row: 1; grid-column: 3; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .brand-logo-tile--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .split, .grid-2, .grid-3, .post-featured, .legal-grid, .do-dont, .swatches { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stat:nth-child(n+3) { padding-top: 24px; }
  .value { grid-template-columns: 1fr; gap: 12px; }
  .toc { display: none; }
  .scroll-cue { display: none; }
  .post-featured .post-card__media { min-height: 260px; }
  .post-featured .post-card__body { padding: 28px; }
  .check-list--2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .services-grid > * { grid-column: 1 / -1 !important; }
  .grid-4, .voice-grid, .process, .footer__grid, .form-row { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .service-card { min-height: 0; }
  .job { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .stat { padding: 32px 22px; }
  .type-row { grid-template-columns: 1fr; gap: 6px; }
  .type-specimen { padding: 28px; }
  .footer__cta { padding-bottom: 56px; }
  .btn { height: 52px; padding: 0 22px; }
  .hero__title .rotator > span { white-space: normal; }
  .price-card { padding: 30px; }
  .ratio-bar { height: 120px; }
  .ratio-bar > div { padding: 14px; }
  .ratio-bar strong { font-size: 24px; }
  .ratio-bar .r10 { min-width: 64px; }
  .t-controls { gap: 14px; }
  .marquee::before, .marquee::after { width: 60px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filter { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-word > span { opacity: 1; transform: none; }
}
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Logo wordmark (echoes the stencil "STUDIOS" in the logo) ---------- */
.logo img { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-6deg) scale(1.05); }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .42em; margin-right: -.42em; }
.logo__word b { color: var(--red-500); font-weight: 700; }
