/* ==========================================================================
   XO Medical Solutions — Core Design System
   Palette: white / red / black · Arabic RTL · Mobile-first
   ========================================================================== */

:root {
  --ink: #0b0b0d;
  --ink-soft: #17171b;
  --ink-line: #2a2a30;
  --red: #d21f2b;
  --red-dark: #a8141e;
  --red-soft: #fbeaec;
  --white: #ffffff;
  --paper: #f7f5f2;
  --line: #e6e1dc;
  --muted: #5d595e;
  --muted-light: #6e696f;

  --font-head: "Alexandria", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-mono: "Space Grotesk", "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 28px 70px -34px rgba(11, 11, 13, 0.38);
  --shadow-red: 0 18px 40px -18px rgba(210, 31, 43, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --fs-display: clamp(2.9rem, 7vw, 5rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 4.8rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.4rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.55rem);
  --fs-body: clamp(0.98rem, 1.1vw, 1.06rem);
  --fs-small: 0.85rem;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

img {
  height: auto;
  background: var(--paper);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

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

ul, ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { max-width: 68ch; }

strong { font-weight: 700; }

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

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

.section--ink :focus-visible,
.section--red :focus-visible,
.site-footer :focus-visible,
.contact-panel :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 1rem; }

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

.num,
[dir="ltr"] {
  unicode-bidi: isolate;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: 940px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section--flush-top { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.22;
}

.section-head p {
  color: var(--muted);
  max-width: 50ch;
}

.section--ink .section-head p,
.section--red .section-head p { color: rgba(255, 255, 255, 0.7); }

.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: none;
}

.eyebrow--light { color: #ffffff; }

.lede {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--muted);
  line-height: 1.95;
}

.section--ink .lede,
.section--red .lede { color: rgba(255, 255, 255, 0.7); }

.outline { color: var(--red); }

.accent { color: var(--red); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.82rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow-red);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover { background: var(--red); }

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.section--ink .btn--ghost,
.section--red .btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.section--ink .btn--ghost:hover,
.section--red .btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn--sm {
  min-height: 44px;
  padding: 0.58rem 1.15rem;
  font-size: 0.84rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg { transform: translateX(-4px); }

.rtl-flip { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  direction: ltr;
}

.topbar a { transition: color 0.2s var(--ease); }
.topbar a:hover { color: var(--white); }

.topbar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
}

.topbar__note { color: rgba(255, 255, 255, 0.48); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(11, 11, 13, 0.5); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 250px;
  max-height: 38px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 10px 20px -12px rgba(210, 31, 43, 0.8);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-head);
  font-size: 0.87rem;
  letter-spacing: 0.15em;
}

.brand__text span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.65vw, 1.5rem);
}

.nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.nav a:hover { color: var(--red); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle__box span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease),
    top 0.25s var(--ease);
}

.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 6px; }
.nav-toggle__box span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.2rem var(--gutter) 2rem;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0s linear 0.28s;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0s linear 0s;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}

.mobile-menu__close svg { width: 20px; height: 20px; }

.mobile-menu__nav {
  display: grid;
  gap: 0.15rem;
  padding-block: 1.5rem;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 600;
}

.mobile-menu__nav a span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.08em;
}

.mobile-menu__nav a[aria-current="page"] { color: var(--red); }

.mobile-menu__foot {
  display: grid;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.mobile-menu__contact {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.mobile-menu__contact a { direction: ltr; font-weight: 600; color: var(--ink); }

.menu-open { overflow: hidden; }

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(2.8rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  overflow: clip;
}

.hero::before {
  content: "XO";
  position: absolute;
  inset-inline-start: -2%;
  top: -6%;
  z-index: -1;
  font-family: var(--font-head);
  font-size: min(31vw, 27rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 11, 13, 0.065);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.hero__title span { display: block; }

.hero__sub {
  max-width: 46ch;
  margin-top: 1.35rem;
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.95;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex: none;
}

.hero__media {
  position: relative;
  isolation: isolate;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: auto -16px -16px 22px;
  z-index: -1;
  border-radius: 24px 24px 120px 24px;
  background: var(--red);
}

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px 24px 120px 24px;
  filter: saturate(0.88) contrast(1.02);
}

.hero__badge {
  position: absolute;
  inset-inline-start: -18px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 250px;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero__badge strong {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

.hero__badge span {
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.hero__side-note {
  position: absolute;
  inset-inline-end: -2.6rem;
  top: 2rem;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* Marquee */

.marquee {
  direction: ltr;
  overflow: hidden;
  padding-block: 0.85rem;
  background: var(--ink);
  color: var(--white);
  border-block: 1px solid var(--ink-line);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline-end: 2rem;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.marquee span::after {
  content: "✦";
  color: var(--red);
  font-size: 0.8rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Stats / manifesto
   ========================================================================== */

.manifesto {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.manifesto__title {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.25;
}

.manifesto__body {
  display: grid;
  gap: 1rem;
  color: var(--muted);
}

.manifesto__body .link-arrow { margin-top: 0.5rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 2px solid var(--red);
}

.stat {
  padding: 1.4rem 1rem 0;
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat__value em {
  font-style: normal;
  color: var(--red);
}

.stat__label {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.section--ink .stat { border-color: var(--ink-line); }
.section--ink .stat__label { color: rgba(255, 255, 255, 0.55); }
.section--ink .stat__value { color: var(--white); }

/* ==========================================================================
   Clients / success partners
   ========================================================================== */

.clients {
  position: relative;
  overflow: hidden;
}

.clients::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(210, 31, 43, 0.2), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(210, 31, 43, 0.08), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 54px 54px, 54px 54px;
  pointer-events: none;
}

.clients .container,
.clients__marquee {
  position: relative;
  z-index: 1;
}

.clients__head {
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.clients__intro {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.clients__intro .lede {
  max-width: 52ch;
}

.clients__marquee {
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.clients__track {
  display: flex;
  width: max-content;
  animation: clients-scroll 46s linear infinite;
  will-change: transform;
}

.clients__list {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0.35rem 0.85rem 0.35rem 0;
  margin: 0;
  list-style: none;
}

.client-logo {
  display: grid;
  place-items: center;
  width: 132px;
  height: 78px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 42px -32px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.client-logo img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (hover: hover) {
  .clients__marquee:hover .clients__track {
    animation-play-state: paused;
  }

  .client-logo:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95);
  }

  .client-logo img {
    filter: grayscale(1) contrast(1.04);
    opacity: 0.78;
  }

  .client-logo:hover img {
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 900px) {
  .clients__head {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .clients__intro {
    justify-items: start;
  }
}

@media (max-width: 600px) {
  .clients__marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .clients__list {
    gap: 0.65rem;
    padding-inline-end: 0.65rem;
  }

  .client-logo {
    width: 116px;
    height: 70px;
    padding: 0.4rem 0.45rem;
    border-radius: 12px;
  }

  .client-logo img {
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
  }

  .clients__marquee {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  .clients__list[aria-hidden="true"] {
    display: none;
  }
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.service-card {
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.service-card:nth-child(3),
.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 4;
  min-height: 285px;
}

.service-card:nth-child(6),
.service-card:nth-child(7) {
  grid-column: span 6;
  min-height: 235px;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.service-card--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.service-card--red:hover { background: var(--red-dark); }

.service-card--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.service-card--ink:hover {
  background: var(--ink-soft);
  border-color: var(--red);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
  flex: none;
}

.service-card__icon svg { width: 23px; height: 23px; }

.service-card--red .service-card__icon,
.service-card--ink .service-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--muted-light);
}

.service-card--red .service-card__num { color: #ffffff; }

.service-card--ink .service-card__num { color: rgba(255, 255, 255, 0.55); }

.service-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 40ch;
}

.service-card--red p { color: #ffffff; }

.service-card--ink p { color: rgba(255, 255, 255, 0.72); }

.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}

.service-card--red .service-card__arrow,
.service-card--ink .service-card__arrow { color: var(--white); }

.service-card__arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.service-card:hover .service-card__arrow svg { transform: translateX(-4px); }

/* ==========================================================================
   Process timeline
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 1.8rem 1.2rem 0 0;
  border-inline-start: 1px solid var(--line);
}

.step:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: -4.5px;
  inset-inline-start: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.step:first-child::before { inset-inline-start: 0; }

.step__num {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}

.step h3 {
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.step p {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--muted);
}

.section--ink .timeline { border-color: var(--ink-line); }
.section--ink .step { border-color: var(--ink-line); }
.section--ink .step p { color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   Work cards
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0.9rem;
}

.work-stack {
  display: grid;
  gap: 0.9rem;
}

.work-card {
  position: relative;
  display: block;
  min-height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.work-card--large { min-height: 620px; }

.work-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 25%, rgba(11, 11, 13, 0.88));
}

.work-card:hover img {
  transform: scale(1.045);
  opacity: 0.95;
}

.work-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.work-card__tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--white);
}

.work-card p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Comparison table
   ========================================================================== */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: start;
}

.compare-table caption {
  padding: 1rem 1.2rem;
  text-align: start;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  text-align: start;
  vertical-align: top;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }

.compare-table thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-table thead th:nth-child(3) { background: var(--red); }

.compare-table tbody th {
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  width: 26%;
}

.compare-table td:nth-child(3) {
  background: var(--red-soft);
  font-weight: 600;
}

.compare-table .yes,
.compare-table .no {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.compare-table .yes svg { color: var(--red); }
.compare-table .no svg { color: var(--muted-light); }
.compare-table svg { width: 15px; height: 15px; flex: none; }

/* ==========================================================================
   Quote / FAQ / CTA
   ========================================================================== */

.quote {
  position: relative;
  padding-block: var(--section);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.quote::before {
  content: "”";
  position: absolute;
  inset-inline-start: 2%;
  top: -6rem;
  font-family: Georgia, serif;
  font-size: clamp(18rem, 34vw, 32rem);
  line-height: 1;
  color: rgba(210, 31, 43, 0.16);
  pointer-events: none;
}

.quote__inner {
  position: relative;
  max-width: 980px;
}

.quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.quote blockquote .accent { color: #ff5b66; }

.quote cite {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.quote cite::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

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

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  font-weight: 600;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding-bottom: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 65ch;
}

.section--ink .faq__list,
.section--ink .faq details { border-color: var(--ink-line); }
.section--ink .faq details p { color: rgba(255, 255, 255, 0.6); }

.cta-band {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

.cta-band::before {
  content: "XO";
  position: absolute;
  inset-inline-end: -1%;
  bottom: -20%;
  font-family: var(--font-head);
  font-size: min(28vw, 22rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.25;
}

.cta-band p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1.1fr;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  padding-bottom: 3rem;
}

.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand .brand__logo { max-height: 42px; max-width: 260px; filter: brightness(0) invert(1); }

.footer__brand .brand__text strong { color: var(--white); }
.footer__brand .brand__text span { color: rgba(255, 255, 255, 0.45); }

.footer__brand p {
  max-width: 34ch;
  font-size: 0.87rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.footer__links {
  display: grid;
  gap: 0.55rem;
}

.footer__links a {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--white);
  padding-inline-start: 4px;
}

.footer__contact {
  display: grid;
  gap: 0.65rem;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.footer__contact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.footer__contact-icon svg {
  width: 15px;
  height: 15px;
}

.footer__contact a.footer__contact-item {
  direction: rtl;
  justify-self: stretch;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}

.footer__contact a.footer__contact-item:hover {
  color: var(--white);
}

.footer__contact a.footer__contact-item:hover .footer__contact-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.footer__contact-text {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.footer__contact-text[dir="ltr"] {
  text-align: right;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.socials a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.socials svg { width: 17px; height: 17px; }

/* Payment methods */
.payments {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.payments__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
}

.payments__head {
  display: grid;
  gap: 0.2rem;
}

.payments__title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.payments__note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.payments__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.payment-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -22px rgba(0, 0, 0, 0.75);
}

.payment-badge__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
}

.payment-badge__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.payment-badge__label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.payment-badge--instapay .payment-badge__label {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #5b2c86;
}

.payment-badge--vodafone .payment-badge__label {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #b00020;
}

.payment-badge--bank .payment-badge__label {
  color: var(--ink);
}

@media (max-width: 900px) {
  .payments__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .payments__list {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .payment-badge {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
}

/* Payments under the footer social icons */
.payments--footer {
  border-top: 0;
  margin-top: 1rem;
}

.payments--footer .payments__title {
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.payments--footer .payments__list {
  gap: 0.4rem;
}

.payments--footer .payment-badge {
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.28rem 0.55rem 0.28rem 0.32rem;
  border-radius: 10px;
}

.payments--footer .payment-badge__icon {
  width: 22px;
  height: 22px;
}

.payments--footer .payment-badge__label {
  font-size: 0.71rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Shared page hero
   ========================================================================== */

.page-hero {
  position: relative;
  padding-block: clamp(3.2rem, 7vw, 6rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}

.page-hero::before {
  content: attr(data-word);
  position: absolute;
  inset-inline-start: -1%;
  bottom: -38%;
  font-family: var(--font-head);
  font-size: min(24vw, 20rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 11, 13, 0.06);
  pointer-events: none;
}

.page-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-hero p {
  max-width: 48ch;
  color: var(--muted);
}

.page-hero__aside {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  padding-bottom: 0.3rem;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-hero__meta span {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.72rem;
  color: var(--muted);
}

.page-hero--ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink-line);
}

.page-hero--ink p { color: rgba(255, 255, 255, 0.65); }
.page-hero--ink .page-hero__meta span {
  background: transparent;
  border-color: var(--ink-line);
  color: rgba(255, 255, 255, 0.6);
}
.page-hero--ink::before { -webkit-text-stroke-color: rgba(255, 255, 255, 0.08); }

.page-hero--red {
  background: var(--red);
  color: var(--white);
  border-color: transparent;
}

.page-hero--red p { color: rgba(255, 255, 255, 0.8); }
.page-hero--red .page-hero__meta span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.page-hero--red .eyebrow { color: rgba(255, 255, 255, 0.8); }
.page-hero--red::before { -webkit-text-stroke-color: rgba(255, 255, 255, 0.18); }

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

.about-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--ink);
  color: var(--white);
  overflow: clip;
}

.about-hero::before {
  content: "ABOUT";
  position: absolute;
  inset-inline-end: -2%;
  top: -12%;
  font-family: var(--font-mono);
  font-size: min(14vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.about-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 5.2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.about-hero p {
  max-width: 46ch;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.65);
}

.about-hero .eyebrow { color: #ff7c84; }

.about-hero__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: start;
}

.about-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.85);
}

.about-hero__media img:first-child {
  margin-top: 2.2rem;
  border-radius: 18px 18px 18px 80px;
}

.about-hero__media img:last-child {
  border-radius: 18px 18px 80px 18px;
}

.about-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-story__media {
  position: relative;
}

.about-story__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px 80px 24px 24px;
}

.about-story__badge {
  position: absolute;
  inset-inline-end: -12px;
  bottom: 24px;
  max-width: 220px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: var(--shadow-red);
}

.about-story__content {
  display: grid;
  gap: 1.1rem;
  color: var(--muted);
}

.about-story__content h2 {
  font-size: var(--fs-h2);
  color: var(--ink);
}

.about-story__content h3 {
  margin-top: 0.4rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.value-card {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.value-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.value-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--red);
}

.value-card h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.1rem;
}

.value-card p {
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--muted);
}

.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}

.role {
  padding: 1.4rem;
  border-top: 2px solid var(--red);
  background: var(--paper);
}

.role h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.role p {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ==========================================================================
   Services page
   ========================================================================== */

.services-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.service-index {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 0.15rem;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--line);
}

.service-index__title {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.service-index a {
  padding: 0.38rem 0;
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}

.service-index a:hover {
  color: var(--red);
  padding-inline-start: 4px;
}

.service-block {
  padding-block: clamp(2rem, 4vw, 3.4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.service-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-block__head {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.service-block__num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
}

.service-block h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.service-block p {
  color: var(--muted);
  max-width: 66ch;
}

.service-block__outcome {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--red);
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.deliverables li {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--white);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tier--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: translateY(-8px);
}

.tier__label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 700;
}

.tier--featured .tier__label {
  background: var(--red);
  color: var(--white);
}

.tier h3 {
  font-size: 1.3rem;
}

.tier__desc {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tier--featured .tier__desc { color: rgba(255, 255, 255, 0.62); }

.tier__meta {
  margin-top: 1.1rem;
  padding-block: 0.8rem;
  border-block: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tier--featured .tier__meta {
  border-color: var(--ink-line);
  color: rgba(255, 255, 255, 0.6);
}

.tier ul {
  display: grid;
  gap: 0.55rem;
  margin-block: 1.1rem 1.5rem;
}

.tier li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

.tier--featured li { color: rgba(255, 255, 255, 0.72); }

.tier li svg {
  width: 15px;
  height: 15px;
  margin-top: 0.25rem;
  flex: none;
  color: var(--red);
}

.tier--featured li svg { color: #ff7c84; }

.tier .btn { margin-top: auto; }

/* ==========================================================================
   Portfolio
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

.filter {
  padding: 0.52rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.project:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.project__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper);
}

.project--wide .project__media {
  aspect-ratio: auto;
  min-height: 340px;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project:hover .project__media img { transform: scale(1.045); }

.project__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
}

.project__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 700;
}

.project h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.project p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted-light);
}

.project__meta span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 0.4rem;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.result-card {
  padding: 1.4rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.result-card h3 {
  font-size: 1rem;
  color: var(--white);
}

.result-card p {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

.commitments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.commitment {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.commitment svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--red);
  margin-top: 0.15rem;
}

.commitment h3 { font-size: 0.95rem; }
.commitment p { font-size: 0.8rem; color: var(--muted); }

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

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 0.9rem;
  border-block: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead strong { color: var(--ink); }

.featured {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.featured__media {
  overflow: hidden;
  border-radius: var(--radius);
}

.featured__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured__body { display: grid; gap: 0.8rem; }

.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.72rem;
  color: var(--muted-light);
}

.featured h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.3;
}

.featured p { color: var(--muted); font-size: 0.92rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

.post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.post:hover { border-color: var(--red); }

.post[open] {
  grid-column: 1 / -1;
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.post summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  cursor: pointer;
  list-style: none;
}

.post summary::-webkit-details-marker { display: none; }

.post__thumb {
  min-height: 190px;
  overflow: hidden;
  background: var(--paper);
}

.post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__summary {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.68rem;
  color: var(--muted-light);
}

.post__summary h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
}

.post__summary p {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--muted);
}

.post__more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
}

.post[open] .post__more { display: none; }

.post__body {
  padding: 0 clamp(1.2rem, 2.5vw, 1.8rem) clamp(1.4rem, 2.5vw, 1.8rem);
  max-width: 82ch;
}

.post__body p,
.post__body li {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--muted);
}

.post__body h4 {
  margin: 1.2rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.post__body ul {
  list-style: disc;
  padding-inline-start: 1.2rem;
}

.post__body li { margin-bottom: 0.4rem; }

.post__body .post__note {
  padding: 0.9rem 1rem;
  border-inline-start: 3px solid var(--red);
  background: var(--paper);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-page { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.2rem, 3.5vw, 3rem);
  align-items: start;
}

.contact-panel {
  position: relative;
  padding: clamp(1.7rem, 3.4vw, 2.8rem);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -90px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.9;
  pointer-events: none;
}

.contact-panel > * { position: relative; z-index: 1; }

.contact-panel h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.contact-panel .lede {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex: none;
}

.contact-item__icon svg {
  width: 17px;
  height: 17px;
  color: #ff7c84;
}

.contact-item small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
}

.contact-item a,
.contact-item span {
  font-size: 0.87rem;
  color: var(--white);
  word-break: break-word;
}

.contact-item a:hover { color: #ff7c84; }

.contact-panel .socials { margin-top: 1.6rem; }
.contact-panel .socials a { border-color: rgba(255, 255, 255, 0.25); }

.contact-panel__hours {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.contact-form-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.contact-form-card > p {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.field { display: grid; gap: 0.3rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
}

.field .req { color: var(--red); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.88rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(0% + 18px) calc(50% + 2px),
    calc(0% + 23px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-start: 2.3rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.8;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #cfc8c2; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff8f8;
}

.field__error {
  display: none;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--red-dark);
}

.field__error.is-visible { display: block; }

.field__hint {
  font-size: 0.72rem;
  color: var(--muted-light);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}

.checkbox input {
  width: 19px;
  height: 19px;
  min-height: 0;
  margin-top: 0.18rem;
  padding: 0;
  accent-color: var(--red);
  flex: none;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted-light);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #f0c4c8;
  border-radius: 10px;
  background: var(--red-soft);
  font-size: 0.82rem;
  color: var(--ink);
}

.form-status.is-visible { display: block; }

.form-result {
  display: none;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-result.is-visible { display: block; }

.form-result h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.form-result p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.form-result__reset {
  margin-top: 0.9rem;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.next-step {
  padding: 1.2rem;
  border-top: 2px solid var(--red);
  background: var(--paper);
}

.next-step__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.1em;
}

.next-step h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 0.98rem;
}

.next-step p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .nav { gap: 0.75rem; }
  .nav a { font-size: 0.84rem; }
  .header__inner { gap: 1rem; }
  .hero__side-note { display: none; }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__inner { min-height: 72px; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__logo { max-height: 34px; max-width: 220px; }
  .brand__text strong { font-size: 0.8rem; }
  .brand__text span { font-size: 0.52rem; }

  .hero__grid { gap: 2rem; }
  .hero__title { font-size: clamp(2.8rem, 6.4vw, 4.6rem); }
  .hero__badge { inset-inline-start: 0; }
}

@media (max-width: 980px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }

  .hero__grid,
  .section-head,
  .manifesto,
  .about-hero__grid,
  .about-story,
  .featured,
  .contact-grid,
  .faq,
  .services-layout {
    grid-template-columns: 1fr;
  }

  .hero__media {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__image { aspect-ratio: 4 / 3.4; }
  .hero__badge { inset-inline-start: 12px; bottom: 18px; }

  .section-head { align-items: start; }
  .section-head p { max-width: 62ch; }

  .manifesto__title { max-width: 20ch; }

  .about-hero__media {
    max-width: 620px;
    margin-top: 1rem;
  }

  .about-hero__media img { aspect-ratio: 4 / 3; }
  .about-hero__media img:first-child { margin-top: 0; }

  .about-story__media { max-width: 560px; }

  .services-layout { gap: 2.5rem; }

  .service-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 0 1rem;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-index__title {
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .service-index a {
    padding: 0.32rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.76rem;
  }

  .service-index a:hover { padding-inline-start: 0.7rem; }

  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier--featured { transform: none; }
  .tier:last-child { grid-column: 1 / -1; }

  .project--wide { grid-template-columns: 1fr; }
  .project--wide .project__media { min-height: 300px; aspect-ratio: 16 / 9; }

  .roles { grid-template-columns: repeat(2, 1fr); }

  .featured__media { max-width: 720px; }

  .contact-panel h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

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

  .service-card,
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6),
  .service-card:nth-child(7) {
    grid-column: span 1;
    min-height: 280px;
  }

  .service-card:last-child { grid-column: 1 / -1; min-height: 220px; }

  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }

  .results-grid { grid-template-columns: repeat(2, 1fr); }

  .next-steps { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { min-height: 460px; }
  .work-stack { grid-template-columns: 1fr 1fr; }
  .work-card { min-height: 260px; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .header__inner { min-height: 66px; }
  .brand__logo { max-height: 30px; max-width: 190px; }
  .footer__brand .brand__logo { max-height: 32px; max-width: 200px; }

  .hero { padding-block: 2.2rem 3.5rem; }
  .hero__title { font-size: clamp(2.55rem, 11vw, 3.6rem); }
  .hero__sub { font-size: 0.98rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__trust { gap: 0.6rem 1rem; font-size: 0.74rem; }
  .hero__badge { position: static; margin-top: 1rem; max-width: none; justify-content: flex-start; }
  .hero__media::before { display: none; }
  .hero__image { border-radius: 20px 20px 90px 20px; }

  .section { padding-block: clamp(3rem, 9vw, 4.5rem); }

  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6),
  .service-card:nth-child(7),
  .service-card:last-child {
    grid-column: auto;
    min-height: 240px;
  }
  .service-card p { max-width: none; }

  .timeline { grid-template-columns: 1fr; border-top: 0; }
  .step,
  .step:nth-child(3) {
    padding: 0 0 1.6rem 1.1rem;
    border-inline-start: 1px solid var(--line);
    border-top: 0;
  }
  .step:first-child { padding-inline-start: 1.1rem; }
  .step::before { top: 0.4rem; }
  .step:first-child::before { inset-inline-start: 0; }
  .step:last-child { padding-bottom: 0; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-inline-start: 0.8rem; }
  .stat:nth-child(2n + 1) { border-inline-start: 0; padding-inline-start: 0; }

  .work-stack { grid-template-columns: 1fr; }
  .work-card--large { min-height: 380px; }

  .values-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }

  .tiers { grid-template-columns: 1fr; }
  .tier:last-child { grid-column: auto; }

  .project-grid { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }

  .featured { gap: 1.2rem; }
  .featured h2 { font-size: 1.65rem; }

  .post-grid { grid-template-columns: 1fr; }
  .post summary { grid-template-columns: 1fr; }
  .post__thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .post[open] summary { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--quick { display: none; }

  .results-grid { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr; }

  .cta-band h2 { font-size: 1.7rem; }
  .cta-band .btn { width: 100%; }

  .page-hero { padding-block: 2.8rem; }
  .page-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .page-hero h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); }

  .about-hero h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); }

  .contact-page { padding-block: 1.5rem 3.5rem; }
  .contact-panel, .contact-form-card { border-radius: 16px; }

  .quote blockquote { font-size: clamp(1.35rem, 5.5vw, 2rem); }
}

@media (max-width: 560px) {
  :root { --gutter: 1.1rem; }

  .brand__text span { display: none; }
  .brand__text strong { font-size: 0.78rem; }
  .header__actions > .btn { display: none; }

  .hero__title { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { flex-direction: column; gap: 0.45rem; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 1.9rem; }

  .service-block__head { grid-template-columns: 1fr; gap: 0.5rem; }
  .service-block__num { font-size: 2rem; }

  .page-hero__meta span { font-size: 0.66rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .about-hero__media { grid-template-columns: 1fr; }
  .about-hero__media img:first-child { margin-top: 0; }
  .about-story__badge { position: static; margin-top: 0.7rem; max-width: none; }

  .hero__badge strong { font-size: 1.2rem; }

  .contact-panel h1 { font-size: 2.1rem; }

  .form-result__actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.15rem; }
  .btn { padding-inline: 1.1rem; }
  .stat__value { font-size: 1.7rem; }
}

/* Hover-capable devices only */
@media (hover: none) {
  .btn:hover { transform: none; }
  .service-card:hover,
  .value-card:hover,
  .project:hover { transform: none; }
}

/* Active section in the services sidebar */
.service-index a[aria-current="location"] {
  color: var(--red);
  font-weight: 700;
  padding-inline-start: 4px;
}


/* Utilities */
.section-foot { margin-top: clamp(1.5rem, 3vw, 2.2rem); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }

/* Blog hero and featured post */
.blog-hero {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.blog-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.blog-title {
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.blog-hero__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted-light);
}

.post--featured {
  grid-column: 1 / -1;
}

.post--featured summary {
  grid-template-columns: 1.02fr 0.98fr;
}

.post--featured .post__thumb {
  min-height: 360px;
}

.post--featured .post__summary {
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.post--featured .post__summary h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.3;
}

.post--featured .post__summary p {
  font-size: 0.92rem;
}

.post--featured[open] summary {
  grid-template-columns: 1.02fr 0.98fr;
}

.about-hero .page-hero__meta span {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 980px) {
  .blog-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .post--featured summary,
  .post--featured[open] summary {
    grid-template-columns: 1fr;
  }

  .post--featured .post__thumb {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .post--featured .post__summary h2 {
    font-size: 1.5rem;
  }
}



/* Mobile action dock */
.mobile-dock { display: none; }

@media (max-width: 760px) {
  .mobile-dock {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 11, 13, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 30px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(120%);
    transition: transform 0.32s var(--ease);
  }

  .mobile-dock.is-visible { transform: translateY(0); }
  body.menu-open .mobile-dock { transform: translateY(120%); }
  body.has-mobile-dock .footer__bottom { padding-bottom: 5.25rem; }

  .mobile-dock__icon {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    min-width: 52px;
    color: var(--white);
    font-size: 0.62rem;
    text-decoration: none;
  }

  .mobile-dock__icon-svg {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
  }

  .mobile-dock__icon-svg svg { width: 16px; height: 16px; }

  .mobile-dock__cta {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
  }
}

/* Form submit states */
.btn.is-loading { opacity: 0.82; cursor: wait; }
.btn__spinner,
.form-status__spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: xo-spin 0.75s linear infinite;
}

.form-status.is-sending { display: flex; align-items: center; gap: 0.6rem; }

@keyframes xo-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .btn__spinner, .form-status__spinner { animation: none; }
}

/* Extra micro-interactions */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(120%);
  transition: transform 0.6s var(--ease);
}
.btn--primary:hover::after { transform: translateX(-120%); }

.post-card,
.value-card,
.contact-form-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.post-card:hover,
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

:focus-visible { outline-offset: 4px; }

/* ==========================================================================
   v1.6 — interactive layer: social gallery, lightbox, chatbot, progress
   ========================================================================== */

/* Scroll progress --------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 130;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff6b73);
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}

/* Header shrink ----------------------------------------------------------- */
.header__inner { transition: min-height 0.3s var(--ease); }
.site-header.is-scrolled .header__inner { min-height: 68px; }
.brand__logo { transition: max-height 0.3s var(--ease); }
.site-header.is-scrolled .brand__logo { max-height: 32px; }

@media (max-width: 760px) {
  .site-header.is-scrolled .header__inner { min-height: 58px; }
}

/* Hero ambient glow ------------------------------------------------------- */
.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: 8%;
  z-index: -1;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(210, 31, 43, 0.18), rgba(210, 31, 43, 0.05) 45%, transparent 70%);
  filter: blur(20px);
  animation: xo-hero-ambient 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes xo-hero-ambient {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

/* Service card spotlight -------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .service-card { isolation: isolate; }

  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(210, 31, 43, 0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
  }

  .service-card:hover::before { opacity: 1; }
  .service-card > * { position: relative; z-index: 1; }

  .service-card--red::before {
    background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.2), transparent 62%);
  }

  .service-card--ink::before {
    background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.13), transparent 62%);
  }
}

/* Design carousel --------------------------------------------------------- */
.social-showcase { position: relative; overflow: hidden; }

.design-carousel { margin-top: clamp(1.4rem, 3vw, 2rem); }

.design-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.design-carousel__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.design-carousel__controls {
  display: flex;
  gap: 0.45rem;
  flex: none;
}

.design-carousel__control {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.design-carousel__control:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.design-carousel__control:disabled { opacity: 0.35; cursor: not-allowed; }
.design-carousel__control svg { width: 18px; height: 18px; }

.design-carousel__viewport {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding: 0.25rem 0.1rem 1.2rem;
}

.design-carousel__viewport::-webkit-scrollbar { display: none; }

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

.design-card {
  flex: 0 0 clamp(250px, 30%, 360px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px -24px rgba(11, 11, 13, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.design-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.design-card__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  color: var(--white);
  font: inherit;
  text-align: center;
  cursor: zoom-in;
}

.design-card__open:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.design-card__open img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  transition: transform 0.5s var(--ease);
}

.design-card__open:hover img,
.design-card__open:focus-visible img { transform: scale(1.015); }

.design-card__overlay {
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-start: 0.6rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.design-card__open:hover .design-card__overlay,
.design-card__open:focus-visible .design-card__overlay { opacity: 1; }

.design-card__zoom {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.design-card__zoom svg { width: 18px; height:18px; }

.design-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.2rem 0.35rem 0.35rem;
}

.design-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.03em;
}

.design-card__body h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.design-card__body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.design-card__body h3 a:hover { color: var(--red); }

.design-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.design-carousel__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.design-carousel__dots span.is-active {
  width: 22px;
  background: var(--red);
}

.social-gallery-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-gallery-intro .eyebrow { margin: 0; flex: none; }

.social-gallery-intro p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.social-gallery__other-title {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

@media (max-width: 900px) {
  .design-card { flex-basis: clamp(230px, 45%, 320px); }

  .social-gallery-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  .design-card { flex-basis: 82%; }
  .design-carousel__hint { font-size: 0.72rem; }
}

/* Lightbox ---------------------------------------------------------------- */
.lightbox[hidden] { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(1100px, 96vw);
  max-height: 94vh;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  max-height: 94vh;
}

.lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  background: #101013;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.lightbox__image.is-loaded { opacity: 1; }

.lightbox__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--white);
  text-align: center;
  font-size: 0.8rem;
}

.lightbox__caption strong { font-size: 0.95rem; }
.lightbox__caption span { color: rgba(255, 255, 255, 0.6); }

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__close { inset-block-start: 1rem; inset-inline-end: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-start: 1rem; }
.lightbox__nav--next { inset-inline-end: 1rem; }

.lightbox__close svg,
.lightbox__nav svg { width: 20px; height: 20px; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 760px) {
  .lightbox { padding: 0.5rem; }
  .lightbox__dialog { width: 100%; max-height: 100vh; }
  .lightbox__image { max-height: 70vh; }
  .lightbox__close { top: 0.5rem; inset-inline-end: 0.5rem; }
  .lightbox__nav { top: auto; bottom: 0.75rem; transform: none; }
  .lightbox__nav--prev { inset-inline-start: 0.75rem; }
  .lightbox__nav--next { inset-inline-end: 0.75rem; }
  .lightbox__caption { padding-inline: 3.5rem; }
}

/* Chatbot ----------------------------------------------------------------- */
.chatbot {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  font-family: var(--font-body);
}

.chatbot__launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.chatbot__launcher:hover {
  transform: translateY(-2px);
  background: var(--red);
}

.chatbot__launcher-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.chatbot__launcher:hover .chatbot__launcher-icon {
  background: var(--white);
  color: var(--red);
}

.chatbot__launcher-icon svg { width: 19px; height: 19px; }

.chatbot__launcher-text { display: none; }

.chatbot__pulse {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39d98a;
  box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.6);
  animation: xo-chat-pulse 2s infinite;
}

@keyframes xo-chat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(57, 217, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 217, 138, 0); }
}

.chatbot__panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 0.7rem);
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 2rem));
  max-height: min(640px, calc(100vh - 7rem));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 32px 90px -34px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: xo-chat-in 0.25s var(--ease);
  transform-origin: bottom left;
}

.chatbot__panel[hidden] { display: none !important; }

@keyframes xo-chat-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.chatbot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.chatbot__identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.chatbot__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.chatbot__avatar svg { width: 20px; height: 20px; }

.chatbot__identity strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}

.chatbot__status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.62);
}

.chatbot__status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39d98a;
}

.chatbot__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.chatbot__close:hover { background: rgba(255, 255, 255, 0.12); }
.chatbot__close svg { width: 16px; height: 16px; }

.chatbot__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 190px;
  max-height: 360px;
  padding: 1rem;
  overflow-y: auto;
  background: var(--paper);
  scrollbar-width: thin;
}

.chatbot__message {
  max-width: 88%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.chatbot__message--bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-start-start-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.chatbot__message--user {
  align-self: flex-end;
  border-start-end-radius: 4px;
  background: var(--red);
  color: var(--white);
}

.chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.chatbot__chip {
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.chatbot__chip:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

.chatbot__typing {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 38px;
}

.chatbot__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: xo-chat-typing 1.1s infinite ease-in-out;
}

.chatbot__typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes xo-chat-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot__handoff-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chatbot__handoff-card p { margin: 0; }

.chatbot__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: #25d366;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.chatbot__whatsapp:hover { background: #1eb85a; color: var(--white); }
.chatbot__whatsapp svg { width: 16px; height: 16px; }

.chatbot__composer {
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chatbot__form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chatbot__form input {
  flex: 1;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
}

.chatbot__form input:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.chatbot__form button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}

.chatbot__form button:hover { background: var(--red-dark); }
.chatbot__form button svg { width: 18px; height: 18px; }

.chatbot__handoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.42rem 0.6rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.chatbot__handoff:hover { border-color: var(--red); color: var(--red); }
.chatbot__handoff svg { width: 14px; height: 14px; }

body.menu-open .chatbot { display: none; }

@media (max-width: 760px) {
  .chatbot {
    inset-inline-end: 0.8rem;
    bottom: 0.8rem;
  }

  body.has-mobile-dock .chatbot {
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  }

  .chatbot__launcher {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
  }

  .chatbot__launcher-text { display: none; }
  .chatbot__pulse { inset-block-start: 4px; inset-inline-end: 4px; }

  .chatbot__panel {
    position: fixed;
    inset-inline: 0.6rem;
    bottom: 0.6rem;
    width: auto;
    max-height: calc(100vh - 1.2rem);
  }

  body.has-mobile-dock .chatbot__panel {
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 7rem);
  }

  .chatbot__body { max-height: none; }
  body.chat-open { overflow: hidden; }
}

/* Back to top ------------------------------------------------------------- */
.to-top {
  position: fixed;
  inset-inline-start: 1.25rem;
  bottom: 1.25rem;
  z-index: 140;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease),
    transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.to-top svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .to-top { display: none; }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress span,
  .chatbot__panel,
  .chatbot__typing span,
  .chatbot__pulse,
  .hero::after,
  .design-card,
  .design-card__open img,
  .to-top {
    animation: none !important;
    transition: none !important;
  }

  .design-carousel__viewport { scroll-behavior: auto; }
}

/* ==========================================================================
   v1.6 polish — unified texture, hero, interactions, contact
   ========================================================================== */

/* Unified section texture + gradient rules --------------------------------- */
.section { position: relative; }

.section--paper { overflow: hidden; }

.section--paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 11, 13, 0.12) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  opacity: 0.55;
}

.section--paper > .container { position: relative; z-index: 2; }

/* Marquee edge fade + pause ------------------------------------------------ */
.marquee { position: relative; }

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Timeline draw + active step ---------------------------------------------- */
.timeline { position: relative; }

.timeline::after {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 0;
  height: 2px;
  width: calc(var(--timeline-progress, 0) * 100%);
  background: var(--red);
  transition: width 0.15s linear;
  pointer-events: none;
  z-index: 2;
}

.step { transition: border-color 0.3s var(--ease); }

.step::before {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step.is-active .step__num {
  color: var(--red);
  -webkit-text-stroke-color: transparent;
}

.step.is-active::before {
  transform: scale(1.5);
  box-shadow: 0 0 0 6px rgba(210, 31, 43, 0.14);
}

.step.is-active h3 { color: var(--red); }

/* Buttons: magnetic + arrow ------------------------------------------------ */
.btn {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { transform: translate(var(--btn-x, 0px), var(--btn-y, -2px)); }

.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }

.btn--ghost { position: relative; overflow: hidden; }

.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(210, 31, 43, 0.09), transparent);
  transform: translateX(120%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.btn--ghost:hover::after { transform: translateX(-120%); }

/* FAQ accordion ------------------------------------------------------------ */
.faq details {
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq details[open] {
  background: var(--paper);
  border-inline-start: 3px solid var(--red);
  padding-inline-start: 1rem;
}

.faq summary { transition: color 0.25s var(--ease); }
.faq details[open] summary { color: var(--red); }

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}

.faq details[open] .faq__answer { max-height: var(--faq-h, 800px); }

.section--ink .faq details[open] { background: var(--ink-soft); }

/* Carousel filters + drag -------------------------------------------------- */
.design-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.design-filter {
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.design-filter:hover { border-color: var(--red); color: var(--red); }

.design-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.design-card[hidden] { display: none; }
.design-carousel__viewport { cursor: grab; }
.design-carousel__viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.design-card:hover { transform: translateY(-4px) rotate(-0.35deg); }

/* Hero: badge float, scroll cue, stat pop ---------------------------------- */
.hero__badge { animation: xo-badge-float 9s ease-in-out infinite alternate; }

@keyframes xo-badge-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.hero__image { will-change: transform; }

.stat__value.is-counted { animation: xo-stat-pop 0.5s var(--ease); }

@keyframes xo-stat-pop {
  from { transform: scale(0.92); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

/* Contact: copy phone + toast + success ------------------------------------ */
.contact-phone-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-phone {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.copy-phone:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.06);
}

.copy-phone svg { width: 15px; height: 15px; }

.toast[hidden] { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.form-status--success {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  animation: xo-success-in 0.45s var(--ease);
}

.form-status__check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
}

.form-status__check svg { width: 16px; height: 16px; }

@keyframes xo-success-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .toast { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__badge,
  .stat__value.is-counted,
  .toast,
  .form-status--success,
  .step.is-active::before,
  .faq__answer {
    animation: none !important;
    transition: none !important;
  }
}

/* Project gallery + layout tweaks ----------------------------------------- */
.project-single .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.project-single .gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.project-single .gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.project-single .gallery-item a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.project-single .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.project-single .gallery-item:hover img { transform: scale(1.04); }

.project-single .gallery-caption { display: none; }

.about-hero__grid { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .project-single .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.design-card__count {
  position: absolute;
  inset-block-end: 0.6rem;
  inset-inline-end: 0.6rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.72);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.design-card__thumbs {
  display: flex;
  gap: 0.35rem;
  padding-inline: 0.7rem;
}

.design-card__thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  cursor: zoom-in;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.design-card__thumb:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.design-card__thumb:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.design-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .hero__media { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .project-single .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before,
  .step.is-active::before { display: none; }
  .footer__col--services { display: none; }
}
