/* ==========================================================================
   Designium — style.css
   Organised by section. Colours, fonts and spacing live in :root variables.
   ========================================================================== */

/* ---------- 0. Design tokens ---------- */
:root {
  /* Brand palette sampled from the Designium logo (maroon → brick-red gradient) */
  --primary: #B01A12;
  --primary-hover: #8A120C;
  --primary-soft: #FBECEA;
  --ink: #1F0A08;
  --text: #5A4E4C;
  --bg: #FFFFFF;
  --bg-light: #FBF6F5;
  --border: #EFE3E1;
  --brand-gradient: linear-gradient(135deg, #3D0505 0%, #6E0F0A 55%, #A3200F 100%);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1280px;
  --gutter: 32px;
  --header-h: 76px;
  --section-y: 112px;

  --radius: 6px;
  --radius-card: 8px;
  --shadow-sm: 0 2px 12px rgba(31, 10, 8, 0.06);
  --shadow-md: 0 18px 40px -16px rgba(31, 10, 8, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 1. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.1;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- 2. Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.text-primary { color: var(--primary); }

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }

/* Line icons — inherit stroke from currentColor */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--primary { color: var(--primary); }

/* ---------- 3. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.2s var(--ease); }
.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(176, 26, 18, 0.6);
}
.btn:hover .icon { transform: translateX(3px); }

.btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn--outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.link-arrow .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--primary); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 4. Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__mark { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.logo__text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.logo__text span { color: var(--primary); }

/* ==========================================================================
   SECTION 1 — Sticky navbar
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(31, 10, 8, 0.18); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; gap: 40px; }

.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--primary); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta-mobile { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.nav-toggle .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ==========================================================================
   SECTION 2 — Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 80px;
}

.hero__title {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero__text {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 40px;
}

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 520px;
}
.hero__contact li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero__contact a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.hero__contact a:hover { color: var(--primary); }

/* --- Abstract visual --- */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
}

.hero__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(176, 26, 18, 0.16), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(176, 26, 18, 0.12), transparent 55%);
  filter: blur(20px);
}

.hero__globe {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(176, 26, 18, 0.25);
}
.hero__ring--outer { inset: 0; animation: spin 80s linear infinite; }
.hero__ring--inner { inset: 14%; border-style: solid; border-color: rgba(176, 26, 18, 0.1); }

/* Glassmorphism stat cards */
.stat-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 44px -18px rgba(31, 10, 8, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.stat-card strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}
.stat-card small { display: block; font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; }

.stat-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.stat-card__icon .icon { width: 22px; height: 22px; }

.stat-card--1 { top: 12%; left: 0; }
.stat-card--2 { top: 44%; right: 0; animation-delay: -2s; }
.stat-card--3 { bottom: 10%; left: 8%; animation-delay: -4s; }

/* Small floating icon badges */
.badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(176, 26, 18, 0.7);
  animation: float 5s ease-in-out infinite;
}
.badge .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.badge--code { top: 4%; right: 16%; animation-delay: -1s; }
.badge--pen { bottom: 4%; right: 22%; animation-delay: -3s; }
.badge--chart { top: 38%; left: 8%; width: 40px; height: 40px; background: #fff; color: var(--primary); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.badge--chart .icon { width: 18px; height: 18px; }

/* Thin gradient line under the hero */
.hero__line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 25%, rgba(176, 26, 18, 0.35) 75%, transparent);
  opacity: 0.7;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   SECTION 3 — About / founder story
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.about__story {
  padding-right: 64px;
  border-right: 1px solid var(--border);
}
.about__story .section-title { margin-bottom: 28px; }
.about__story p:not(.label) { max-width: 720px; font-size: 17px; }
.about__story p + p { margin-top: 20px; }

.about__info { padding-left: 56px; }

.info-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
}

.info-list li {
  display: flex;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}
.info-list li:first-child { padding-top: 0; }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { margin-top: 2px; }
.info-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.info-list span,
.info-list a,
.info-list address {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}
.info-list a:hover { color: var(--primary); }

/* ==========================================================================
   SECTION 4 — Services
   ========================================================================== */
.services { background: var(--bg-light); }

/* Flex so an incomplete last row stays centred */
.services__grid {
  --cols: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.service {
  width: calc(100% / var(--cols));
  padding: 12px 28px 16px;
  text-align: center;
}
/* Vertical dividers between columns (desktop: 5-up) */
.service:not(:last-child) { border-right: 1px solid var(--border); }

.service__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 24px;
  color: var(--primary);
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease);
}
.service__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s var(--ease);
}
.service p { font-size: 14px; line-height: 1.65; }

.service:hover .service__icon { transform: translateY(-6px); }
.service:hover .service__title { color: var(--primary); }

/* ==========================================================================
   SECTION 5 — Selected work
   ========================================================================== */
.work .section-head { margin-bottom: 32px; }
.work .label { margin-bottom: 0; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.work-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card:hover { box-shadow: var(--shadow-md); }

.work-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-light);
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.06); }

.work-card__body { padding: 24px 24px 28px; }
.work-card__body h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.work-card__body p { font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   SECTION 6 — CTA / contact strip
   ========================================================================== */
.cta {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding-block: 88px;
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
}

.cta__col { padding-inline: 48px; }
.cta__col:first-child { padding-left: 0; }
.cta__col:last-child { padding-right: 0; }
.cta__col + .cta__col { border-left: 1px solid var(--border); }

.cta__intro .section-title { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 16px; }
.cta__intro p { font-size: 15px; max-width: 400px; }

.cta__info { display: grid; gap: 18px; }
.cta__info li { display: flex; gap: 14px; align-items: flex-start; }
.cta__info .icon { margin-top: 3px; }
.cta__info a,
.cta__info address {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cta__info address { color: var(--text); }
.cta__info a { font-weight: 500; transition: color 0.2s var(--ease); }
.cta__info a:hover { color: var(--primary); }

.cta__actions { display: grid; gap: 14px; }

/* ==========================================================================
   SECTION 7 — Footer
   ========================================================================== */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 32px;
}
.footer .logo__text { font-size: 22px; }
.footer__tagline { font-size: 14px; font-weight: 500; color: var(--ink); text-align: center; }
.footer__copy { font-size: 14px; text-align: right; }

/* ==========================================================================
   SECTION 8 — Floating chat button
   ========================================================================== */
.chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat__btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(176, 26, 18, 0.35), 0 14px 30px -10px rgba(31, 10, 8, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat__btn .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.chat__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 5px var(--primary), 0 18px 34px -10px rgba(31, 10, 8, 0.55);
}

.chat__bubble {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 260px;
  padding: 14px 12px 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--shadow-md);
  animation: bubble-in 0.35s var(--ease);
}
.chat__bubble[hidden] { display: none; }
.chat__bubble p { font-size: 14px; line-height: 1.5; color: var(--ink); }

.chat__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}
.chat__close:hover { background: var(--bg-light); color: var(--ink); }
.chat__close .icon { width: 16px; height: 16px; stroke-width: 2; }

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

/* ==========================================================================
   Scroll reveal (only hidden when JS is running)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Laptop (≤1280) */
@media (max-width: 1280px) {
  :root { --section-y: 96px; }
  .nav__list { gap: 32px; }
  .service { padding-inline: 20px; }
  .cta__col { padding-inline: 36px; }
}

/* Below desktop nav (≤1100): 3-up services */
@media (max-width: 1100px) {
  .services__grid { --cols: 3; row-gap: 0; }
  .service { padding-block: 32px; }
  .service:not(:last-child) { border-right: 1px solid var(--border); }
  .service:nth-child(3n) { border-right: 0; }
  .service:nth-child(n + 4) { border-top: 1px solid var(--border); }
}

/* Tablet & below (<992): hamburger, stacked hero/about */
@media (max-width: 991px) {
  :root { --gutter: 24px; --header-h: 68px; --section-y: 80px; }

  .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 20px;
    padding: 16px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px rgba(31, 10, 8, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--border); }
  .nav__link { padding: 14px 0; font-size: 16px; }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; width: 100%; }

  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; padding-bottom: 64px; }
  .hero__visual { margin-inline: auto; max-width: 520px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__story { padding-right: 0; padding-bottom: 48px; border-right: 0; border-bottom: 1px solid var(--border); }
  .about__info { padding-left: 0; padding-top: 48px; }

  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

  /* CTA: heading on top, info + buttons side by side */
  .cta { padding-block: 72px; }
  .cta__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; align-items: start; }
  .cta__intro { grid-column: 1 / -1; padding: 0; }
  .cta__intro p { max-width: 520px; }
  .cta__col + .cta__col { border-left: 0; }
  .cta__info { padding-left: 0; padding-right: 32px; }
  .cta__actions { padding-left: 32px; border-left: 1px solid var(--border) !important; align-self: center; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .footer__copy { text-align: center; }
}

/* Small tablet (≤767): 2-up services */
@media (max-width: 767px) {
  .services__grid { --cols: 2; }
  .service:nth-child(n) { border-right: 0; border-top: 0; } /* reset 3-up dividers */
  .service:nth-child(odd):not(:last-child) { border-right: 1px solid var(--border); }
  .service:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* Mobile (≤639) */
@media (max-width: 639px) {
  :root { --gutter: 16px; --section-y: 64px; }

  .label { font-size: 11px; }
  .section-head { margin-bottom: 40px; }

  .hero { padding-top: 40px; }
  .hero__text { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { gap: 4px; }
  .hero__contact { flex-direction: column; }

  /* Scale the visual's floating parts */
  .stat-card { gap: 10px; padding: 10px 14px 10px 10px; border-radius: 12px; }
  .stat-card strong { font-size: 18px; }
  .stat-card small { font-size: 11px; }
  .stat-card__icon { width: 34px; height: 34px; border-radius: 8px; }
  .stat-card__icon .icon { width: 18px; height: 18px; }
  .stat-card--3 { left: 2%; }
  .badge { width: 38px; height: 38px; }
  .badge .icon { width: 18px; height: 18px; }
  .badge--chart { width: 34px; height: 34px; left: 2%; }

  .about__story { padding-bottom: 40px; }
  .about__info { padding-top: 40px; }

  .work__grid { grid-template-columns: 1fr; }

  .cta { padding-block: 64px; }
  .cta__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .cta__info { padding: 0 0 32px; border-bottom: 1px solid var(--border); }
  .cta__actions { padding-left: 0; border-left: 0 !important; }

  .chat { right: 16px; bottom: 16px; }
  .chat__btn { width: 54px; height: 54px; }
  .chat__bubble { max-width: calc(100vw - 32px); }
}

/* Small phones (≤519): 1-up services */
@media (max-width: 519px) {
  .services__grid { --cols: 1; }
  .service,
  .service:nth-child(odd):not(:last-child) { border-right: 0; }
  .service { padding: 28px 8px; }
  .service:nth-child(n + 2) { border-top: 1px solid var(--border); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
