/* ==========================================================================
   3XL Marketing Studio â€” design system
   1. Tokens
   2. Fonts
   3. Reset & base
   4. Typography
   5. Layout
   6. Buttons
   7. Badges, chips & pills
   8. Header & navigation
   9. Hero
   10. Ticker
   11. Cards
   12. Section furniture
   13. Accordion (FAQ)
   14. Forms
   15. Breadcrumbs & pagination
   16. Footer & CTA
   17. Floating utilities
   18. Page shells (inner pages, prose)
   19. Filters & empty states
   20. Motion
   21. Responsive
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  --ink: #171717;
  --ink-800: #1f1f1f;
  --ink-700: #2b2b2b;
  --ink-600: #3a3a3a;
  --ink-500: #4d4d4d;
  --ink-400: #6a6a6a;
  --slate: #6b6b6b;
  --muted: #a3a3a3;

  --paper: #f6f1e8;
  --paper-2: #efe8db;
  --line: #e0d6c4;
  --line-dark: rgba(255, 255, 255, 0.1);

  --white: #ffffff;
  --text: #1c1c1c;
  --text-soft: #4a4a4a;

  --indigo: #e8232a;
  --indigo-600: #c41c22;
  --indigo-700: #a0161b;
  --indigo-100: #fde4e5;
  --aqua: #b8d63d;
  --aqua-600: #4f6609;
  --mint: #34d399;
  --amber: #d0902f;
  --rose: #d94a5e;

  --brand-grad: linear-gradient(135deg, #e8232a 0%, #b91c1c 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(232, 35, 42, 0.12), rgba(185, 28, 28, 0.06));
  --dark-grad: linear-gradient(180deg, #171717 0%, #1f1f1f 100%);

  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --fs-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --fs-sm: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --fs-base: clamp(0.95rem, 0.93rem + 0.14vw, 1.03rem);
  --fs-md: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --fs-lg: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --fs-2xl: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --fs-3xl: clamp(2.3rem, 1.7rem + 3.2vw, 4.2rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.06), 0 1px 3px rgba(11, 13, 18, 0.08);
  --shadow: 0 10px 30px -12px rgba(11, 13, 18, 0.22);
  --shadow-lg: 0 30px 60px -25px rgba(11, 13, 18, 0.35);
  --shadow-brand: 0 12px 28px -16px rgba(232, 35, 42, 0.45);

  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 74px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.35s;
}

/* ---------------------------------------------------------------- 2. Fonts */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Sora'), url('../fonts/sora-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local('Inter'), url('../fonts/inter-var.woff2') format('woff2');
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: var(--indigo-600);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

a:hover {
  color: var(--indigo-700);
}

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

:focus-visible {
  outline: 3px solid rgba(232, 35, 42, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--indigo-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

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

/* ----------------------------------------------------------- 4. Typography */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-3xl);
}
h2 {
  font-size: var(--fs-2xl);
}
h3 {
  font-size: var(--fs-xl);
}
h4 {
  font-size: var(--fs-lg);
}

p {
  margin: 0 0 var(--sp-4);
}

.lead {
  font-size: var(--fs-md);
  color: var(--text-soft);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}

.eyebrow--light {
  color: var(--indigo);
}

.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--text-soft);
}

.mono {
  font-family: var(--font-mono);
}

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

.container--wide {
  max-width: var(--container-wide);
}

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

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.section--dark {
  background: var(--paper-2);
  color: var(--text-soft);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--ink);
}

.section--dark .lead,
.section--dark .muted {
  color: var(--text-soft);
}

.section--paper2 {
  background: var(--paper-2);
}

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

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.center {
  text-align: center;
}

.center .eyebrow {
  justify-content: center;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

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

.section-head p {
  color: var(--text-soft);
  margin-bottom: 0;
  font-size: var(--fs-md);
}

.section-head .row {
  margin-top: var(--sp-4);
}

/* -------------------------------------------------------------- 6. Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    background-color var(--speed) var(--ease), color var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(0);
}

.btn__arrow {
  transition: transform var(--speed) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  --btn-bg: var(--indigo-600);
  --btn-bd: var(--indigo-600);
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  --btn-bg: var(--indigo-700);
  --btn-bd: var(--indigo-700);
}

.btn--grad {
  --btn-bg: var(--brand-grad);
  --btn-bd: transparent;
  color: #fff;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(11, 13, 18, 0.22);
}

.btn--ghost:hover {
  --btn-bd: var(--ink);
  background: rgba(11, 13, 18, 0.05);
}

.btn--light {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.3);
  backdrop-filter: none;
}

.btn--light:hover {
  --btn-bg: rgba(255, 255, 255, 0.16);
  --btn-bd: rgba(255, 255, 255, 0.6);
}

/* On light surfaces the "light" button becomes a neutral outline button so
   the label stays readable without a white-on-white fill. */
.hero .btn--light,
.section--dark .btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(23, 23, 23, 0.35);
  backdrop-filter: none;
}

.hero .btn--light:hover,
.section--dark .btn--light:hover {
  --btn-bg: rgba(23, 23, 23, 0.06);
  --btn-bd: var(--ink);
}

.btn--aqua {
  --btn-bg: var(--aqua);
  --btn-bd: var(--aqua);
  --btn-fg: var(--ink);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--fs-base);
}

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

.btn[disabled],
.btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
}

.link-arrow svg {
  transition: transform var(--speed) var(--ease);
}

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

/* --------------------------------------------------- 7. Badges, chips, pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--indigo-100);
  color: var(--indigo-700);
  border: 1px solid rgba(232, 35, 42, 0.3);
  white-space: nowrap;
}

.badge--demo {
  background: rgba(245, 158, 11, 0.14);
  color: #a16207;
  border-color: rgba(245, 158, 11, 0.4);
}

.badge--aqua {
  background: var(--aqua);
  color: var(--ink);
  border-color: rgba(184, 214, 61, 0.55);
}

.badge--dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.chip:hover {
  border-color: var(--indigo);
  color: var(--indigo-600);
}

.chip.is-active,
.chip--active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip__count {
  font-size: 0.72rem;
  opacity: 0.7;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

/* -------------------------------------------------- 8. Header & navigation */
.topbar {
  background: var(--ink);
  color: #e8e2d6;
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 40px;
  flex-wrap: wrap;
  padding-block: 0.3rem;
}

.topbar a {
  color: #e8e2d6;
}

.topbar a:hover {
  color: var(--aqua);
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar__item svg {
  opacity: 0.75;
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease),
    background-color var(--speed) var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(11, 13, 18, 0.55);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

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

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__name strong {
  color: var(--indigo);
  font-weight: 800;
}

.brand__sub {
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.1rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--indigo-600);
}

.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 268px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--speed) var(--ease);
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.nav__dropdown a:hover {
  background: var(--paper-2);
  color: var(--indigo-600);
}

.nav__dropdown a span {
  display: block;
  font-size: 0.74rem;
  color: var(--slate);
  font-weight: 400;
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.icon-btn:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  color: #e5e7eb;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: none;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
  color: #e5e7eb;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.mobile-nav a:hover {
  color: var(--indigo-600);
}

.mobile-nav .btn,
.mobile-nav .btn:hover {
  color: #fff;
}

.mobile-nav .btn--aqua,
.mobile-nav .btn--aqua:hover {
  color: var(--ink);
}

.mobile-nav__section {
  margin-top: var(--sp-5);
}

.mobile-nav__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: var(--sp-6);
}

/* ---------------------------------------------------------------- 9. Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 90px;
  background: transparent;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(23, 23, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 35%, #000 20%, transparent 78%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: var(--sp-5);
}

.hero h1 {
  color: var(--ink);
  margin-bottom: var(--sp-5);
  max-width: 15ch;
}

.hero__text {
  font-size: var(--fs-md);
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: var(--sp-7);
}

.hero__panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  backdrop-filter: none;
  padding: clamp(1.2rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}

.hero__panel h2 {
  font-size: var(--fs-lg);
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

/* Panel forced onto the warm charcoal surface (used on the SEO page). */
.panel--dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d9d4c9;
  box-shadow: var(--shadow);
}

.panel--dark h2 {
  color: #fff;
}

.panel--dark .eyebrow--light {
  color: var(--aqua);
}

.panel--dark .hero__list li {
  color: #d9d4c9;
}

.panel--dark .hero__list svg {
  color: var(--aqua);
}

.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.hero__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.hero__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--indigo);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  color: var(--indigo-600);
  line-height: 1.2;
}

.hero__stat span {
  font-size: 0.74rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------- 9b. Hero photo slider */
.hero-slider {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 768;
  min-height: 280px;
  max-height: min(78vh, 820px);
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
  z-index: 0;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 7s linear;
}

.hero-slider__slide.is-active img {
  transform: scale(1);
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(0.85rem, 2.5vw, 1.6rem);
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 2;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(23, 23, 23, 0.42);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-slider__dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-slider__dot:hover,
.hero-slider__dot:focus-visible {
  background: #fff;
  transform: scale(1.15);
  outline: none;
}

.hero-slider__dot.is-active {
  background: var(--indigo);
  box-shadow: 0 0 0 3px rgba(232, 35, 42, 0.28);
}

@media (max-width: 900px) {
  .hero-slider__viewport {
    aspect-ratio: auto;
    height: calc(100vw / 2.5);
    min-height: 0;
    max-height: none;
  }

  .hero-slider__slide img {
    object-fit: contain;
    background: var(--ink);
  }
}

/* --------------------------------------------------------------- 10. Ticker */
.ticker {
  background: var(--brand-grad);
  color: #fff;
  overflow: hidden;
  padding-block: 0.85rem;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
}

.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  flex: none;
}

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

/* -------------------------------------------------------------- 11. Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 35, 42, 0.35);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-500));
}

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

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.1em;
  background: radial-gradient(circle at 30% 20%, rgba(232, 35, 42, 0.7), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(184, 214, 61, 0.5), transparent 55%), var(--ink-700);
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.card__body {
  padding: clamp(1rem, 2vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card__kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
}

.card__title a {
  color: inherit;
}

.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card__text {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  color: var(--slate);
  border-top: 1px dashed var(--line);
}

/* Service card — tall vertical layout: full photo on top, details below. */
.svc-card {
  position: relative;
  padding: 0;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all var(--speed) var(--ease);
  overflow: hidden;
  isolation: isolate;
}

/* Full-width photo header — real <img> so iOS/WebKit always paints it. */
.svc-card__photo {
  position: relative;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Subtle bottom fade only — keeps photo clean and visible */
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 180px, var(--white) 280px);
  z-index: 0;
  pointer-events: none;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand-grad);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--speed) var(--ease);
  z-index: 2;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 35, 42, 0.3);
}

.svc-card:hover::before {
  transform: scaleY(1);
}

.svc-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-grad-soft);
  color: var(--indigo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin: -24px 0 0 clamp(1.1rem, 2vw, 1.6rem);
  position: relative;
  z-index: 1;
}

.svc-card h3 {
  font-size: var(--fs-base);
  margin: 0.7rem clamp(1.1rem, 2vw, 1.6rem) 0;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}

.svc-card h3 a {
  color: var(--ink);
}

.svc-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.svc-card p {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin: 0.45rem clamp(1.1rem, 2vw, 1.6rem) 0;
  position: relative;
  z-index: 1;
}

.svc-card__meta {
  margin-top: auto;
  padding: 0.7rem clamp(1.1rem, 2vw, 1.6rem) clamp(1.1rem, 2vw, 1.6rem);
  font-size: var(--fs-xs);
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.svc-card--dark {
  border-color: var(--line);
  color: var(--text);
}

.svc-card--dark h3,
.svc-card--dark h3 a {
  color: var(--ink);
}

.svc-card--dark p {
  color: var(--text-soft);
}

.svc-card--dark:hover {
  border-color: rgba(232, 35, 42, 0.45);
  box-shadow: var(--shadow);
}

.svc-card__icon--dark {
  background: var(--indigo-100);
  color: var(--indigo-600);
  box-shadow: none;
}

/* Brand-coloured icon badge — lighter background so brand colours show */
.svc-card__icon--brand {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step--dark {
  background: var(--white);
  border-color: var(--line);
}

.step--dark h3 {
  color: var(--ink);
}

.step--dark p {
  color: var(--text-soft);
}

/* Testimonial */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  position: relative;
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--indigo);
  opacity: 0.28;
}

.quote-card blockquote {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: 1.75;
}

.quote-card__stars {
  color: var(--amber);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

.quote-card__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}

.quote-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  flex: none;
}

.quote-card__name {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.quote-card__role {
  font-size: var(--fs-xs);
  color: var(--slate);
}

/* Stat / trust */
.stat {
  text-align: center;
  padding: clamp(1rem, 2vw, 1.5rem) 0.8rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--indigo-600);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section--dark .stat__value {
  color: var(--aqua);
}

.stat__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.4rem;
}

/* Industry tile */
.industry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--speed) var(--ease);
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* Photo strip — real <img> so iOS/WebKit always paints it. */
.industry__photo {
  position: relative;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

.industry__photo + .industry__icon,
.industry__photo ~ .industry__body,
.industry__photo ~ .industry__icon {
  position: relative;
  z-index: 1;
}

/* Soft fade under the photo so text stays readable */
.industry::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 100px, var(--white) 170px);
  z-index: 0;
  pointer-events: none;
}

.industry:hover {
  border-color: var(--indigo);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.industry__icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--indigo-600);
  margin: -20px 0 0 1.1rem;
}

.industry__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  display: block;
  margin: 0.5rem 1.1rem 0;
}

.industry__text {
  font-size: 0.76rem;
  color: var(--slate);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.3rem 1.1rem 1.1rem;
}
}

/* Process step */
.step {
  position: relative;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.45rem;
}

.step p {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin: 0;
}

/* Feature list with checks */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.check-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--mint);
}

.section--dark .check-list li {
  color: var(--text-soft);
}

/* ------------------------------------------------- 12. Section furniture */
.icon-tile {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
  flex: none;
}

.icon-tile--soft {
  background: var(--brand-grad-soft);
  color: var(--indigo);
  box-shadow: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.divider {
  height: 1px;
  background: var(--line);
  margin-block: clamp(1.6rem, 4vw, 2.6rem);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.marquee-note {
  font-size: var(--fs-xs);
  color: var(--slate);
  text-align: center;
  padding-block: 0.7rem;
}

/* --------------------------------------------------- 13. Accordion (FAQ) */
.accordion {
  border-top: 1px solid var(--line);
}

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

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color var(--speed) var(--ease);
}

.accordion__btn:hover {
  color: var(--indigo-600);
}

.accordion__icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: all var(--speed) var(--ease);
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.accordion__icon::before {
  width: 12px;
  height: 2px;
}

.accordion__icon::after {
  width: 2px;
  height: 12px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.accordion__btn[aria-expanded='true'] .accordion__icon {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.accordion__btn[aria-expanded='true'] .accordion__icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.accordion__panel.is-open {
  grid-template-rows: 1fr;
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__panel p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin: 0 0 1.15rem;
  max-width: 72ch;
}

/* --------------------------------------------------------------- 14. Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(232, 35, 42, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #97918a;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--rose);
}

.field__hint {
  font-size: 0.74rem;
  color: var(--slate);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--text-soft);
  line-height: 1.55;
}

.check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--indigo);
  flex: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.form-grid .span-2 {
  grid-column: span 2;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--slate);
}

.alert {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  border: 1px solid transparent;
}

.alert--success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
}

.alert--error {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.35);
  color: #9f1239;
}

.alert--info {
  background: rgba(232, 35, 42, 0.09);
  border-color: rgba(232, 35, 42, 0.3);
  color: var(--indigo-600);
}

.form-status {
  margin-top: var(--sp-4);
  display: none;
}

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

.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}

.captcha-box strong {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--ink);
}

.captcha-box input {
  width: 92px;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Newsletter inline */
.newsletter {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 480px;
}

.newsletter input[type='email'],
.newsletter input[type='text'] {
  flex: 1 1 190px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: var(--fs-sm);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--indigo);
}

/* ------------------------------------------------ 15. Breadcrumbs & pager */
.breadcrumbs {
  font-size: var(--fs-xs);
  color: var(--slate);
  padding-block: 1.1rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 0.45rem;
  opacity: 0.5;
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--slate);
}

.breadcrumbs a:hover {
  color: var(--indigo-600);
}

.breadcrumbs [aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding-inline: 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.pagination a:hover {
  border-color: var(--indigo);
  color: var(--indigo-600);
}

.pagination .is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ------------------------------------------------- 16. Footer & CTA band */
.cta-band {
  position: relative;
  background: var(--ink);
  color: #f2eee6;
  border: 1px solid var(--ink);
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #c9c3b6;
  max-width: 62ch;
  margin-inline: auto;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: var(--sp-5);
}

.footer {
  background: var(--ink);
  color: #cbc5b9;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  font-size: var(--fs-sm);
}

.footer a {
  color: #cbc5b9;
}

.footer a:hover {
  color: var(--aqua);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.footer h4 {
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer__brand .brand__name {
  color: #fff;
}

.footer__about {
  margin-top: var(--sp-4);
  max-width: 42ch;
  color: #a8a297;
}

.footer__contact {
  display: grid;
  gap: 0.7rem;
}

.footer__contact a,
.footer__contact span {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer__contact svg {
  flex: none;
  margin-top: 3px;
  color: var(--aqua);
}

.socials {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e8e2d6;
  transition: all var(--speed) var(--ease);
}

.socials a:hover {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #97918a;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ----------------------------------------------- 17. Floating utilities */
.fab-stack {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.fab:hover {
  transform: translateY(-4px) scale(1.04);
}

.fab--whatsapp {
  background: #25d366;
  color: #fff;
}

.fab--top {
  background: var(--ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
}

.fab--top.is-visible {
  opacity: 1;
  visibility: visible;
}

.fab--top svg {
  transition: transform var(--speed) var(--ease);
}

.fab--top:hover svg {
  transform: translateY(-3px);
}

.cookie {
  position: fixed;
  left: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  z-index: 96;
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.2rem;
  display: none;
}

.cookie.is-visible {
  display: block;
  animation: rise 0.45s var(--ease);
}

.cookie p {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  top: 90px;
  transform: translate(-50%, -20px);
  z-index: 120;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------ 18. Page shells & prose text */
.page-hero {
  position: relative;
  background: var(--paper-2);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3.4rem) clamp(2rem, 5vw, 3.2rem);
  overflow: hidden;
}

.page-hero h1 {
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.page-hero p {
  color: var(--text-soft);
  max-width: 66ch;
  margin: 0;
  font-size: var(--fs-md);
}

.page-hero .breadcrumbs,
.page-hero .breadcrumbs a,
.page-hero .breadcrumbs [aria-current='page'] {
  color: var(--slate);
}

.page-hero .breadcrumbs [aria-current='page'] {
  color: var(--ink);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--sp-4);
}

.prose {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text-soft);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: var(--fs-lg);
  margin-top: 2.2rem;
}

.prose h3 {
  font-size: var(--fs-md);
  margin-top: 1.8rem;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.3rem;
  border-left: 3px solid var(--indigo);
  background: var(--paper-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

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

.prose img {
  border-radius: var(--radius);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: var(--fs-xs);
  color: var(--slate);
  padding-block: 0.9rem;
  border-block: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  margin-top: var(--sp-6);
}

.author-box__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-4);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: var(--paper-2);
  border-radius: var(--radius);
}

.detail-grid dt {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.25rem;
}

.detail-grid dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-sm);
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}

.pager-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.pager-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 46%;
}

.pager-nav__link span {
  font-size: var(--fs-xs);
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pager-nav__link strong {
  font-family: var(--font-display);
  color: var(--ink);
}

.pager-nav__link:hover strong {
  color: var(--indigo-600);
}

.pager-nav__link--next {
  text-align: right;
  margin-left: auto;
}

/* Two-column article layout with sidebar */
.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.35rem);
  margin-bottom: var(--sp-4);
}

.widget h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.widget li a {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  padding: 0.3rem 0;
}

.widget li a:hover {
  color: var(--indigo-600);
}

.widget .count {
  color: var(--slate);
  font-size: var(--fs-xs);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.search-form input:focus {
  outline: none;
  border-color: var(--indigo);
}

/* ------------------------------------------------ 19. Filters & empties */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.filter-bar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-bar__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-right: 0.2rem;
}

.empty {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.empty h3 {
  margin-bottom: 0.5rem;
}

.empty p {
  color: var(--text-soft);
  margin-bottom: var(--sp-4);
}

.result-count {
  font-size: var(--fs-sm);
  color: var(--slate);
  margin-bottom: var(--sp-4);
}

/* ------------------------------------------------------------- 20. Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] {
  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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

/* ---------------------------------------------------------- 21. Responsive */
@media (max-width: 1080px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 640px;
  }

  .grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav,
  .header__actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    color: var(--ink);
  }

  .mobile-nav {
    display: block;
  }

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

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 64px;
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__group--secondary {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

  .form-grid .span-2 {
    grid-column: span 1;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .pager-nav__link {
    max-width: 100%;
  }

  .brand__sub {
    display: none;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ------------------------------------------- Site Editor mobile tweaks */
@media (max-width: 680px) {
  body[data-mt-hide-ticker="1"] .ticker {
    display: none;
  }

  body[data-mt-hide-topbar="1"] .topbar__group--secondary,
  body[data-mt-hide-topbar="1"] .topbar__group .topbar__sep,
  body[data-mt-hide-topbar="1"] .topbar__group .topbar__loc {
    display: none;
  }

  body[data-mt-compact-hero="1"] .hero-slider__viewport {
    height: calc(100vw / 3.2);
  }

  body[data-mt-full-cta="1"] .hero__actions .btn,
  body[data-mt-full-cta="1"] .cta-band .btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .btn {
    width: 100%;
  }

  .row .btn {
    width: auto;
  }

  .fab {
    width: 48px;
    height: 48px;
  }
}

/* ------------------------------------------------------------------ Print */
@media print {
  .header,
  .topbar,
  .footer,
  .fab-stack,
  .cookie,
  .cta-band,
  .newsletter,
  .ticker {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero,
  .page-hero {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .page-hero h1 {
    color: #000 !important;
  }
}

/* ------------------------------------------- 21. Demo previews & viewer */
.card__actions {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card__actions .btn {
  flex: 0 1 auto;
}

.card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.74);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}

.card__play:hover,
.card__play:focus-visible {
  background: var(--indigo);
  border-color: var(--indigo);
  transform: translate(-50%, -50%) scale(1.07);
}

.card:hover .card__play {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Browser-framed preview (portfolio detail) */
.demo-frame {
  position: relative;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 70px -40px rgba(17, 17, 17, 0.55);
}

.demo-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem;
  background: #f2efe9;
  border-bottom: 1px solid var(--line);
}

.demo-frame__dots i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d2c6;
  margin-right: 6px;
}

.demo-frame__url {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.95rem;
  font-size: var(--fs-xs);
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-frame__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  white-space: nowrap;
}

.demo-frame__screen {
  position: relative;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-500));
}

.demo-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.demo-frame__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.84);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.7);
  transition: all var(--speed) var(--ease);
}

.demo-frame__play:hover,
.demo-frame__play:focus-visible {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.04);
}

/* Full-screen demo viewer */
.demo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2.5vw, 1.6rem);
}

.demo-viewer[hidden] {
  display: none;
}

.demo-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.88);
}

.demo-viewer__dialog {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  transition: max-width 0.3s var(--ease);
}

.demo-viewer__dialog.is-tablet {
  max-width: 880px;
}

.demo-viewer__dialog.is-phone {
  max-width: 430px;
}

.demo-viewer__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.8rem;
  background: #171a21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-viewer__dots i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3c4250;
  margin-right: 6px;
}

.demo-viewer__url {
  flex: 1;
  min-width: 0;
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.95rem;
  font-size: 0.75rem;
  color: #98a1b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-viewer__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-viewer__sizes {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
}

.demo-viewer__sizes button {
  border: 0;
  background: transparent;
  color: #98a1b3;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.demo-viewer__sizes button.is-active {
  background: #fff;
  color: #171717;
}

.demo-viewer__sizes button:not(.is-active):hover {
  color: #fff;
}

.demo-viewer__ext {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd2e0;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  transition: all var(--speed) var(--ease);
}

.demo-viewer__ext:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.demo-viewer__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}

.demo-viewer__close:hover {
  background: var(--indigo);
}

.demo-viewer__screen {
  flex: 1;
  min-height: 0;
  background: #fff;
}

.demo-viewer__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

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

  .demo-frame__label {
    display: none;
  }
}
