/* ==========================================================================
   SOCIAL EDGE — "Cinematic Editorial" design system
   --------------------------------------------------------------------------
   One stylesheet for every public page. Warm near-black canvas, signature
   red pulled from the brand photography, Space Grotesk display type over
   Inter body text, film grain, hairline rules, numbered sections.

   Loaded together with /css/fonts.css (self-hosted Inter + Space Grotesk).
   Animations are driven by /js/edge.js — this file owns the resting states,
   the hover states, and every pure-CSS animation (marquees, grain, glows).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Canvas */
  --bg: #0b0908;
  --bg-2: #141010;
  --bg-3: #1d1715;
  --paper: #f3eee6;
  --paper-2: #eae3d6;

  /* Ink on dark / ink on paper */
  --text: #f4efe7;
  --text-2: rgba(244, 239, 231, 0.64);
  --text-3: rgba(244, 239, 231, 0.4);
  --ink: #161110;
  --ink-2: rgba(22, 17, 16, 0.68);

  /* Brand */
  --red: #e62e24;
  --red-deep: #b31c14;
  --red-glow: rgba(230, 46, 36, 0.35);
  --amber: #eeab21;

  /* Hairlines */
  --line: rgba(244, 239, 231, 0.14);
  --line-soft: rgba(244, 239, 231, 0.08);
  --line-ink: rgba(22, 17, 16, 0.14);

  /* Type — three roles, deliberately kept apart:
       --font-serif    editorial display. Headlines only, where the optical
                       size axis buys real contrast. This is the voice.
       --font-display  the technical layer: eyebrows, numbers, nav, buttons,
                       badges, card metadata. Stays geometric and crisp at
                       the small sizes where a serif would turn to mush.
       --font-body     reading copy.
     Mixing the first two is the whole effect — serif headline over a
     monospace-ish label reads editorial; either one alone reads generic. */
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Scale */
  --display-xl: clamp(2.6rem, 7.2vw, 6.5rem);
  --display-lg: clamp(2.2rem, 5.2vw, 4.6rem);
  --display-md: clamp(1.7rem, 3.6vw, 3.1rem);
  --display-sm: clamp(1.3rem, 2.2vw, 1.9rem);

  /* Rhythm
     Section padding is applied top AND bottom, so the gap between two
     sections is double this. The previous 5rem floor put 160px of dead space
     between every section on a 375px phone, which is most of a viewport spent
     on nothing; the vw term now does the work earlier and the floor is set
     for small screens rather than inherited from the desktop figure. */
  --section-pad: clamp(3.25rem, 7vw, 7.5rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* Scrollbar (WebKit + Firefox) */
html {
  scrollbar-color: rgba(244, 239, 231, 0.25) var(--bg);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(244, 239, 231, 0.18);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 239, 231, 0.32);
}

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

/* --------------------------------------------------------------------------
   3. Film grain + ambient glow
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grain-shift 9s steps(10) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -6%); }
  20% { transform: translate(-8%, 3%); }
  30% { transform: translate(5%, -8%); }
  40% { transform: translate(-4%, 8%); }
  50% { transform: translate(-8%, 2%); }
  60% { transform: translate(8%, 0); }
  70% { transform: translate(0, 6%); }
  80% { transform: translate(3%, 10%); }
  90% { transform: translate(-6%, 4%); }
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* The editorial display voice.
   Applied to headline-scale type only — everything smaller (card titles,
   labels, metadata) stays on the grotesque, which is what keeps the contrast
   legible rather than turning the whole page into a book.
   Serifs carry their own optical weight, so they want looser tracking than
   the -0.02em the geometric sans is set at; tightening a serif this size
   collides the bracketed serifs of adjacent letters. */
.display-xl,
.display-lg,
.display-md,
.hero__title,
.page-hero__title,
.prefooter__title,
.case__title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.012em;
}

/* Same voice at reading scale — article titles and in-article headings. The
   optical-size axis has already thickened the hairlines down here, so these
   want near-neutral tracking; the display tier's -0.012em would crowd them. */
.post-card__title,
.prose h2,
.prose h3,
.legal-prose h2,
.legal-prose h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.003em;
}

.display-xl { font-size: var(--display-xl); line-height: 1.02; }
.display-lg { font-size: var(--display-lg); line-height: 1.04; }
.display-md { font-size: var(--display-md); line-height: 1.12; }
.display-sm { font-size: var(--display-sm); line-height: 1.2; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.grad-text {
  background: linear-gradient(100deg, var(--red) 10%, #ff7a45 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 231, 0.35);
}

/* Micro label: 01 — SERVICES */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
  flex: none;
}
.eyebrow--center {
  justify-content: center;
}
.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
  flex: none;
}
.eyebrow__num {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide {
  max-width: 1420px;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.9rem, 3.6vw, 3.4rem);
}
.section-head > div:first-child {
  max-width: 720px;
}
.section-head .eyebrow {
  margin-bottom: 1.1rem;
}
.section-head--center {
  display: block;
  text-align: center;
}
.section-head--center .lede {
  margin-inline: auto;
}

.hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* Paper (light) section */
.paper {
  background: var(--paper);
  color: var(--ink);
}
.paper .eyebrow { color: var(--ink-2); }
.paper .lede { color: var(--ink-2); }
.paper .hr { border-color: var(--line-ink); }
.paper ::selection { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   6. Buttons + links
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.35s ease,
    color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.btn .btn__arrow {
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn__arrow {
  transform: translate(3px, -3px);
}

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 rgba(230, 46, 36, 0);
}
.btn--red:hover {
  background: var(--red-deep);
  box-shadow: 0 12px 40px -8px var(--red-glow);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: rgba(244, 239, 231, 0.5);
  background: rgba(244, 239, 231, 0.05);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: #000;
}

.btn--lg {
  padding: 1.2rem 2.4rem;
  font-size: 1rem;
}
.btn--sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.82rem;
}

/* Underline link with sliding hover */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 3px;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-line:hover::after {
  transform: scaleX(0);
  transform-origin: left;
  animation: link-line-in 0.45s var(--ease-out) 0.2s forwards;
}
@keyframes link-line-in {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* --------------------------------------------------------------------------
   7. Preloader + page transition
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background: var(--bg);
  transition: opacity 0.55s var(--ease-io), visibility 0.55s;
}
.preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: 74px;
  height: auto;
  animation: preloader-pulse 1.3s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.07); opacity: 1; }
}
.preloader__count {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  width: min(220px, 50vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 2147483300;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.page-curtain.is-active {
  animation: curtain-up 0.5s var(--ease-io) forwards;
}
@keyframes curtain-up {
  to { transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   8. Custom cursor
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483200;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
}
.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(230, 46, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    background-color 0.3s ease, border-color 0.3s ease;
}
.cursor-ring__label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}
.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(230, 46, 36, 0.12);
  border-color: rgba(230, 46, 36, 0.8);
}
.cursor-ring.has-label {
  width: 84px;
  height: 84px;
  background: rgba(230, 46, 36, 0.9);
  border-color: transparent;
}
.cursor-ring.has-label .cursor-ring__label {
  opacity: 1;
}
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor summary,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor label {
  cursor: none;
}

/* --------------------------------------------------------------------------
   9. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  transition: transform 0.5s var(--ease-out), background-color 0.4s ease,
    border-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 9, 8, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
  padding-block: 0.75rem;
}
.nav.is-hidden {
  transform: translateY(-110%);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s ease;
  padding-block: 0.35rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__cta {
  display: inline-flex;
}

/* Burger */
.nav__burger {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nav__burger:hover {
  border-color: rgba(244, 239, 231, 0.45);
  background: rgba(244, 239, 231, 0.05);
}
.nav__burger i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
body.menu-open .nav__burger i:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
body.menu-open .nav__burger i:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Fullscreen overlay menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(11, 9, 8, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: safe center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
  overflow-y: auto;
}
body.menu-open .menu {
  opacity: 1;
  visibility: visible;
}
.menu__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 7rem var(--gutter) 3.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.menu__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 1.1rem;
  width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vh, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  opacity: 0;
  transform: translateY(28px);
  transition: color 0.3s ease;
}
.menu__link small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.menu__link:hover {
  color: var(--red);
}
.menu__aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1px solid var(--line);
  padding-left: 3rem;
  opacity: 0;
  transform: translateY(20px);
}
.menu__aside-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
}
.menu__aside a {
  color: var(--text-2);
  transition: color 0.25s ease;
  display: block;
  padding-block: 0.15rem;
}
.menu__aside a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   10. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
  padding-top: 7rem;
}
.hero__gl,
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero__fallback {
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(230, 46, 36, 0.28), transparent 65%),
    radial-gradient(45% 45% at 18% 75%, rgba(179, 28, 20, 0.22), transparent 70%),
    var(--bg);
  animation: hero-fallback-drift 14s ease-in-out infinite alternate;
}
@keyframes hero-fallback-drift {
  from { background-position: 0% 0%, 0% 0%; filter: hue-rotate(0deg); }
  to { background-position: 6% -4%, -5% 6%; filter: hue-rotate(-8deg); }
}
.hero__portrait {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: 0;
  width: min(62vw, 980px);
  height: 100%;
  pointer-events: none;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, transparent 96%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, transparent 96%);
  opacity: 0.9;
}
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, transparent 36%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 9, 8, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 2rem;
}
.hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px 2px var(--red-glow);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 5.7rem);
  font-weight: 600;
  max-width: 15ch;
  margin-bottom: 1.8rem;
}
.hero__sub {
  max-width: 52ch;
  margin-bottom: 2.4rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__stat-num em {
  font-style: normal;
  color: var(--red);
}
.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}
.hero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px;
  height: 44px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: scroll-drop 1.8s var(--ease-io) infinite;
}
@keyframes scroll-drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   11. Marquees
   -------------------------------------------------------------------------- */
.marquee {
  overflow: clip;
  display: flex;
  user-select: none;
}
.marquee__track {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--marquee-gap, 4rem);
  padding-right: var(--marquee-gap, 4rem);
  animation: marquee-scroll var(--marquee-speed, 30s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee--reverse .marquee__track {
  animation-direction: reverse;
}
@keyframes marquee-scroll {
  to { transform: translateX(-100%); }
}

/* Client logo strip */
.logo-strip {
  border-block: 1px solid var(--line);
  padding-block: 2.2rem;
  background: var(--bg-2);
}
.logo-strip__label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.6rem;
  font-family: var(--font-display);
}
.logo-strip .marquee__track {
  --marquee-gap: 3.5rem;
}
.logo-chip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}
.logo-chip img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(244, 239, 231, 0.06);
  padding: 6px;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.68;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.logo-chip:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
}
.logo-chip span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.logo-chip:hover span {
  color: var(--text);
}

/* Giant word marquee (footer / section breaks) */
.word-marquee .marquee__track {
  --marquee-gap: 3rem;
  --marquee-speed: 38s;
}
.word-marquee__item {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1.1;
}
.word-marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 239, 231, 0.3);
}
.word-marquee__dot {
  width: clamp(12px, 1.4vw, 20px);
  height: clamp(12px, 1.4vw, 20px);
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

/* --------------------------------------------------------------------------
   12. Service rows (home) — numbered list with floating image preview
   -------------------------------------------------------------------------- */
.svc-rows {
  border-top: 1px solid var(--line);
}
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 2.6vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease-out);
}
.svc-row:hover {
  padding-left: clamp(0.6rem, 1.5vw, 1.4rem);
}
.svc-row__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
.svc-row:hover .svc-row__num {
  color: var(--red);
}
.svc-row__title {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.svc-row__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 380px;
}
.svc-row__tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--line);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.svc-row:hover .svc-row__tag {
  color: var(--text-2);
  border-color: rgba(244, 239, 231, 0.3);
}
.svc-row__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, transform 0.45s var(--ease-out);
}
.svc-row:hover .svc-row__arrow {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: rotate(45deg);
}
/* Floating preview image that follows the cursor (positioned by JS) */
.svc-preview {
  position: fixed;
  z-index: 40;
  width: 300px;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) rotate(-3deg);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  will-change: transform, opacity;
}
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.svc-preview img.is-active {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   13. Showreel band
   -------------------------------------------------------------------------- */
.reel {
  position: relative;
  overflow: clip;
}
.reel__frame {
  position: relative;
  border-radius: clamp(14px, 2vw, 26px);
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  background: var(--bg-3);
  transform-style: preserve-3d;
}
.reel__frame video,
.reel__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel__hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(11, 9, 8, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* --------------------------------------------------------------------------
   14. Work gallery — horizontal scroll section
   -------------------------------------------------------------------------- */
.hwork {
  position: relative;
}
.hwork__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
}
.hwork__head {
  padding-top: 5.5rem;
  margin-bottom: 2.6rem;
}
.hwork__track {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  padding-inline: var(--gutter);
  will-change: transform;
  width: max-content;
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: none;
  width: min(78vw, 620px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  transform-style: preserve-3d;
}
.work-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
}
.work-card__media::before {
  /* faux browser chrome */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 2;
  background: #171310;
  border-bottom: 1px solid var(--line-soft);
}
.work-card__media::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 14px 0 0 var(--amber), 28px 0 0 #2ea86f;
}
.work-card__media img {
  position: absolute;
  inset: 30px 0 0 0;
  width: 100%;
  height: calc(100% - 30px);
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease-out);
}
.work-card:hover .work-card__media img {
  transform: scale(1.045);
}
.work-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem 1.2rem;
}
.work-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.work-card__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.15rem;
}
.work-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(230, 46, 36, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}
.hwork__progress {
  margin: 2.4rem var(--gutter) 0;
  height: 1px;
  background: var(--line);
  position: relative;
}
.hwork__progress i {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   15. Impact stats
   -------------------------------------------------------------------------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.impact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.6rem 1.8rem;
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  transform-style: preserve-3d;
  overflow: hidden;
}
.impact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% -20%, rgba(230, 46, 36, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.impact-card:hover::before {
  opacity: 1;
}
.impact-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.impact-card__num em {
  font-style: normal;
  color: var(--red);
}
.impact-card__label {
  color: var(--text-2);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   16. Process — sticky stacking cards
   -------------------------------------------------------------------------- */
.process {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.process-card {
  position: sticky;
  top: calc(5.2rem + var(--stack-offset, 0px));
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  min-height: 320px;
}
.process-card__body {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.process-card__step {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
}
.process-card__title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}
.process-card__text {
  color: var(--text-2);
  max-width: 46ch;
}
.process-card__media {
  position: relative;
  min-height: 240px;
}
.process-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The four step photos come from different shoots and run yellow, red,
     green and electric blue — as a set they read as a swatch book rather than
     one process. Desaturating and grading them warm pulls all four into the
     site's near-black/red world so the section reads as one sequence. The
     tint below finishes the job; neither alone is enough on the blue frame. */
  filter: saturate(0.32) sepia(0.34) hue-rotate(-14deg) contrast(1.06) brightness(0.9);
}
.process-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgba(230, 46, 36, 0.24), rgba(11, 9, 8, 0.12) 55%);
  mix-blend-mode: color;
  pointer-events: none;
}
.process-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, var(--bg-2) 0%, transparent 35%);
}

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.tsm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.tsm-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.1rem 1.8rem 1.8rem;
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transform-style: preserve-3d;
}
.tsm-card__mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--red);
  height: 1.4rem;
}
.tsm-card__stars {
  color: var(--amber);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}
.tsm-card__quote {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-2);
  flex: 1;
}
.tsm-card__who {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.2rem;
}
.tsm-card__avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.tsm-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.tsm-card__role {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   18. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  font-weight: 600;
  transition: color 0.3s ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--red);
}
.faq__icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease,
    border-color 0.3s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.35s var(--ease-out);
}
.faq[open] .faq__icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: rotate(180deg);
}
.faq[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq__body {
  overflow: hidden;
}
.faq__body p {
  padding: 0 3.2rem 1.6rem 0.2rem;
  color: var(--text-2);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   19. Blog
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
}
.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.post-card:hover .post-card__media img {
  transform: scale(1.05);
}
.post-card__body {
  padding: 1.5rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.post-card__date {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-display);
}
.post-card__title {
  font-size: 1.18rem;
  line-height: 1.35;
  transition: color 0.3s ease;
}
.post-card:hover .post-card__title {
  color: var(--red);
}
.post-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-2);
  flex: 1;
}
.post-card__read {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 620px) {
  .post-grid--two { grid-template-columns: 1fr; }
}

/* Featured post (blog index) */
.post-feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  margin-bottom: 2.5rem;
  transition: border-color 0.4s ease;
}
.post-feature:hover {
  border-color: var(--line);
}
.post-feature__media {
  min-height: 320px;
  overflow: hidden;
}
.post-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.post-feature:hover .post-feature__media img {
  transform: scale(1.04);
}
.post-feature__body {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

/* Post reading page */
.prose {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-2);
}
.prose h2 {
  color: var(--text);
  font-size: 1.6rem;
  margin: 2.6rem 0 1rem;
}
.prose h3 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 2.2rem 0 0.8rem;
}
.prose p {
  margin-bottom: 1.4rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1.4rem 1.4rem;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { color: var(--text); }

/* ── Inline post images ── */
.post-inline-img {
  margin: 2rem 0;
  border-radius: 14px;
  overflow: hidden;
}
.post-inline-img img {
  width: 100%;
  display: block;
  border-radius: 14px;
}
.post-inline-img figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-2);
  opacity: 0.75;
  padding: 0.7rem 0 0;
  line-height: 1.4;
}

/* ── Post photo gallery grid ── */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.post-gallery__item {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.post-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-gallery__item:hover img {
  transform: scale(1.03);
}
.post-gallery__item figcaption {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-2);
  opacity: 0.7;
  padding: 0.55rem 0.6rem;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1100;
  background: transparent;
}
.read-progress i {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   20. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
/* Keep intrinsically wide children (selects, nowrap buttons) from
   inflating the tracks past the viewport. */
.contact-grid > * {
  min-width: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease-out);
}
a.contact-line:hover {
  padding-left: 0.6rem;
}
.contact-line__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--red);
}
.contact-line__icon svg {
  width: 18px;
  height: 18px;
}
.contact-line__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-display);
}
.contact-line__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  margin-top: 0.15rem;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-grid .field--full {
  grid-column: 1 / -1;
}
/* Grid items default to min-width:auto, so a select with a long option can
   blow the track past the viewport on small screens. */
.field {
  min-width: 0;
}
.field select {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(244, 239, 231, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f4efe7' stroke-opacity='.5' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.6rem;
}
.field select option {
  background: var(--bg-2);
  color: var(--text);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(230, 46, 36, 0.65);
  box-shadow: 0 0 0 3px rgba(230, 46, 36, 0.14);
  background: rgba(244, 239, 231, 0.06);
}
.form-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.form-error {
  border: 1px solid rgba(230, 46, 36, 0.5);
  background: rgba(230, 46, 36, 0.1);
  color: #ffb4ae;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.map-embed {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(1) invert(0.92) contrast(0.9);
  aspect-ratio: 16 / 6.5;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.prefooter {
  position: relative;
  overflow: clip;
  padding-block: clamp(3.5rem, 9vh, 7rem);
  text-align: center;
}
.prefooter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 65% at 50% 115%, rgba(230, 46, 36, 0.22), transparent 70%);
  pointer-events: none;
}
.prefooter__title {
  font-size: clamp(2.4rem, 6.5vw, 5.6rem);
  max-width: 18ch;
  margin: 0 auto 1.6rem;
}
.prefooter__sub {
  max-width: 52ch;
  margin: 0 auto 2.6rem;
  color: var(--text-2);
}
.prefooter__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow: clip;
}
.footer__marquee {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.footer__brand img {
  height: 36px;
  width: auto;
}
.footer__tagline {
  color: var(--text-2);
  font-size: 0.92rem;
  max-width: 34ch;
  margin-bottom: 1.6rem;
}
.footer__socials {
  display: flex;
  gap: 0.7rem;
}
.footer__social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.4s var(--ease-out);
}
.footer__social:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}
.footer__social svg {
  width: 17px;
  height: 17px;
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.2rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer__link {
  position: relative;
  width: fit-content;
  color: var(--text-2);
  font-size: 0.94rem;
  padding-block: 0.3rem;
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}
.footer__link:hover {
  color: var(--text);
  padding-left: 0.5rem;
}
.footer__link:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}
.footer__contact-item {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-block: 0.3rem;
  display: block;
}
a.footer__contact-item:hover {
  color: var(--text);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer__bottom-links a {
  transition: color 0.25s ease;
}
.footer__bottom-links a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   22. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  /* Top pad clears the fixed nav; the old 20vh floor pushed the headline
     nearly a full screen down on short viewports before anything was read. */
  padding: clamp(7rem, 14vh, 10.5rem) 0 clamp(2.25rem, 5vh, 4rem);
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 80% 0%, rgba(230, 46, 36, 0.14), transparent 65%);
  pointer-events: none;
}
.page-hero__title {
  font-size: var(--display-xl);
  max-width: 16ch;
  margin-block: 1.4rem 1.6rem;
}
.page-hero--center {
  text-align: center;
}
.page-hero--center .page-hero__title {
  margin-inline: auto;
}
.page-hero--center .lede {
  margin-inline: auto;
}

/* Big image band with parallax */
.img-band {
  position: relative;
  border-radius: clamp(14px, 2vw, 26px);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.img-band img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.img-band__caption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  z-index: 2;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(11, 9, 8, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-family: var(--font-display);
}

/* --------------------------------------------------------------------------
   23. Services page cards
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.svc-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  scroll-margin-top: 7rem;
  transition: border-color 0.4s ease;
}
.svc-card:hover {
  border-color: rgba(230, 46, 36, 0.45);
}
.svc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.7rem 1.7rem 0;
}
.svc-card__index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.svc-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(230, 46, 36, 0.12);
  color: var(--red);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.5s var(--ease-out);
}
.svc-card__icon svg {
  width: 24px;
  height: 24px;
}
.svc-card:hover .svc-card__icon {
  background: var(--red);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.svc-card__body {
  padding: 1.3rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.svc-card__title {
  font-size: 1.22rem;
}
.svc-card__desc {
  font-size: 0.93rem;
  color: var(--text-2);
  flex: 1;
}
.svc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.svc-card__tags li {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.svc-card:hover .svc-card__tags li {
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   24. Portfolio
   -------------------------------------------------------------------------- */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.brand-tile {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.2rem;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}
.brand-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 46, 36, 0.4);
}
.brand-tile img {
  width: 62%;
  max-height: 58%;
  object-fit: contain;
  /* Client logos are dark marks on white backgrounds, so a brightness lift
     fades the mark itself — desaturate and let opacity do the muting. */
  filter: grayscale(1) contrast(1.06);
  opacity: 0.72;
  transition: filter 0.45s ease, opacity 0.45s ease, transform 0.5s var(--ease-out);
}
.brand-tile:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}
.brand-tile span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  text-align: center;
  transition: color 0.3s ease;
}
.brand-tile:hover span {
  color: var(--text);
}

/* Showcase grid (websites) */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

/* Build-standards strip (case studies) */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 1080px) {
  .standards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .standards-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   25. Case studies
   -------------------------------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.6rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.case:nth-child(even) .case__media {
  order: 2;
}
.case__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transform-style: preserve-3d;
}
.case__media img {
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease-out);
}
.case__media:hover img {
  transform: scale(1.04);
}
.case__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.case__title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 1.1rem;
}
.case__text {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}
.case__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.case__facts li {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   26. Demo dashboard mock
   -------------------------------------------------------------------------- */
.dash {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
  overflow: hidden;
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  background: #171310;
}
.dash__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}
.dash__bar i:nth-child(2) { background: var(--amber); }
.dash__bar i:nth-child(3) { background: #2ea86f; }
.dash__bar span {
  margin-left: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.dash__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.dash__cell {
  background: var(--bg-2);
  padding: 1.6rem 1.5rem;
  min-height: 150px;
}
.dash__cell--wide {
  grid-column: span 2;
}
.dash__kpi {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dash__kpi em {
  font-style: normal;
  font-size: 0.85rem;
  color: #2ea86f;
  margin-left: 0.5rem;
}
.dash__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-display);
  margin-bottom: 0.7rem;
}
.dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  margin-top: 1rem;
}
.dash__bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(230, 46, 36, 0.25), var(--red));
  min-height: 12%;
  transform-origin: bottom;
}
.dash__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.85rem;
  color: var(--text-2);
}
.dash__row:last-child { border-bottom: 0; }
.dash__pill {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.dash__pill--live { background: rgba(46, 168, 111, 0.15); color: #4cd396; }
.dash__pill--progress { background: rgba(238, 171, 33, 0.14); color: var(--amber); }
.dash__pill--queued { background: rgba(244, 239, 231, 0.08); color: var(--text-2); }

/* --------------------------------------------------------------------------
   27. Values / about
   -------------------------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.value-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}
.value-card:hover {
  border-color: rgba(230, 46, 36, 0.4);
  transform: translateY(-5px);
}
.value-card__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1.1rem;
  display: block;
}
.value-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.value-card__text {
  font-size: 0.92rem;
  color: var(--text-2);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.mv-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
}
.mv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 80% at 85% -10%, rgba(230, 46, 36, 0.16), transparent 60%);
}
.mv-card > * { position: relative; }
.mv-card__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}
.mv-card p {
  color: var(--text-2);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   28. Legal / prose pages, 404
   -------------------------------------------------------------------------- */
.legal-prose {
  max-width: 760px;
  color: var(--text-2);
  line-height: 1.8;
}
.legal-prose h2 {
  color: var(--text);
  font-size: 1.35rem;
  margin: 2.4rem 0 0.9rem;
}
.legal-prose h3 {
  color: var(--text);
  margin: 1.8rem 0 0.7rem;
}
.legal-prose p { margin-bottom: 1.1rem; }
.legal-prose ul {
  list-style: disc;
  margin: 0 0 1.1rem 1.4rem;
}
.legal-prose li { margin-bottom: 0.45rem; }
.legal-prose strong { color: var(--text); }

.err-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: clip;
  padding: 2rem;
}
.err-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 50% at 50% 60%, rgba(230, 46, 36, 0.18), transparent 70%);
}
.err-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 16rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(230, 46, 36, 0.8);
  position: relative;
}

/* --------------------------------------------------------------------------
   29. Reveal resting states (JS-driven; html.js gate keeps no-JS safe)
   -------------------------------------------------------------------------- */
html.js [data-reveal],
html.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(34px);
  will-change: transform, opacity;
}
html.js [data-reveal="left"] { transform: translateX(-40px); }
html.js [data-reveal="right"] { transform: translateX(40px); }
html.js [data-reveal="scale"] { transform: scale(0.92); }
html.js [data-reveal="fade"] { transform: none; }

/* Split-text: JS wraps words in masked spans */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-word > span {
  display: inline-block;
  will-change: transform;
}
html.js [data-split]:not(.split-ready) {
  opacity: 0;
}
html.js [data-split].split-ready .split-word > span {
  transform: translateY(110%);
}

/* Tilt glare */
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px 220px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
  z-index: 5;
}
[data-tilt]:hover .tilt-glare {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   29b. Service detail page
   -------------------------------------------------------------------------- */
a.svc-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}
.svc-card__cta {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.3s ease;
}
.svc-card__cta span {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.svc-card:hover .svc-card__cta {
  color: var(--red);
}
.svc-card:hover .svc-card__cta span {
  transform: translateX(5px);
}

.svc-hero__back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.svc-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.svc-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(230, 46, 36, 0.12);
  color: var(--red);
}
.svc-hero__icon svg {
  width: 26px;
  height: 26px;
}
.svc-hero__badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}
.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* The overview reads as an editorial lead: label, then the opening paragraph
   set larger than the ones under it. An earlier version put the label in a
   sticky 260px sidebar, which stranded it mid-column once the section scrolled
   past and left the whole left third empty — this matches the label-above
   rhythm every other section on the page already uses. */
.svc-detail__prose {
  max-width: 68ch;
  margin-top: 1.6rem;
}
.svc-detail__prose p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text-2);
}
.svc-detail__prose p:first-child {
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.6;
  color: var(--text);
}
.svc-detail__prose p + p {
  margin-top: 1.3rem;
}

.value-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.deliverables {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 2rem;
}
.deliverables__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-ink);
}
.deliverables__check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
}
.deliverables__check svg {
  width: 12px;
  height: 12px;
}
.deliverables__note {
  margin-top: 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 640px;
}
.deliverables__note a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.7rem 1.5rem;
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}
.step:hover {
  border-color: rgba(230, 46, 36, 0.4);
  transform: translateY(-5px);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 46, 36, 0.65);
  display: block;
  margin-bottom: 1rem;
}
.step__title {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}
.step__text {
  font-size: 0.92rem;
  color: var(--text-2);
}

.svc-grid--related .svc-card__title {
  font-size: 1.1rem;
}
.post-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
}

/* --------------------------------------------------------------------------
   30. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wall { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .tsm-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .menu {
    align-items: flex-start;
  }
  .menu__inner {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 2.5rem;
    padding-top: 6rem;
  }
  .menu__link {
    font-size: clamp(1.7rem, 4.6vh, 2.6rem);
  }
  .menu__aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
  }
  .hero__portrait {
    width: 100%;
    right: 0;
    opacity: 0.5;
  }
  .hero__portrait img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 40%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 40%);
  }
  .hero__scroll { display: none; }
  .svc-row {
    grid-template-columns: auto 1fr auto;
  }
  .svc-row__tags { display: none; }
  .process-card {
    grid-template-columns: 1fr;
  }
  .process-card__media {
    order: -1;
    min-height: 200px;
  }
  .process-card__media::after {
    background: linear-gradient(to top, var(--bg-2) 0%, transparent 45%);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature__media { min-height: 240px; }
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .showcase-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .dash__grid { grid-template-columns: 1fr; }
  .dash__cell--wide { grid-column: auto; }
  .img-band { aspect-ratio: 16 / 10; }
  .work-card { width: 84vw; }
  .deliverables { grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.4rem; }
  .post-grid--two { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .impact-card { padding: 1.4rem 1.1rem 1.2rem; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .tsm-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .value-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.2rem 2rem; }
  .section-head { margin-bottom: 2rem; }
  .faq__body p { padding-right: 0.5rem; }
  .step-list { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
  .svc-hero__actions .btn { width: 100%; justify-content: center; }
  .form-card .btn { width: 100%; white-space: normal; text-align: center; }

  /* Touch targets: these sit at 21-27px tall on desktop, which is fine for a
     mouse but under the ~44px comfortable minimum for a thumb. Pad them
     vertically rather than growing the type. */
  .link-line {
    padding-block: 0.55rem;
  }
  .footer__bottom-links {
    gap: 0.4rem 1.5rem;
    flex-wrap: wrap;
  }
  .footer__bottom-links a {
    display: inline-block;
    padding-block: 0.6rem;
  }
  .footer__link {
    padding-block: 0.15rem;
  }
  /* 0.7rem reads as ~11px — too small on a phone for a full-width card. */
  .svc-card__tags li {
    font-size: 0.78rem;
    padding: 0.32rem 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   31. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .marquee__track { animation: none; }
  html.js [data-reveal],
  html.js [data-reveal-group] > *,
  html.js [data-split]:not(.split-ready),
  html.js [data-split].split-ready .split-word > span {
    opacity: 1;
    transform: none;
  }
  .grain { animation: none; }
}
