/* ==========================================================================
   WebrixLab — style.css
   All custom styling for the site lives in this one file.
   Media queries live in css/responsive.css
   ========================================================================== */

/* ===== 1. TOKENS ===== */
:root {
  --accent:      #2BC5B4;
  --accent-dark: #1FA396;
  --ink:         #111111;
  --ink-soft:    #232323;
  --body:        #6B7280;
  --line:        #E5E7EB;
  --surface:     #F7F8F8;
  --white:       #FFFFFF;

  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1240px;
  /* fluid so nothing needs a media query to stop overflowing */
  --gutter: clamp(18px, 3.4vw, 32px);
  --pad-y: clamp(56px, 8.2vw, 120px);
  --pad-y-sm: clamp(44px, 6vw, 84px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 84px;

  --shadow-card: 0 18px 44px rgba(17, 17, 17, 0.07);
  --shadow-pop: 0 10px 30px rgba(43, 197, 180, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== 2. RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 0.35vw + 14.2px, 16px);
  overflow-wrap: break-word;
  word-break: normal;
  font-weight: 400;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5.2vw, 66px); }
h2 { font-size: clamp(24px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 1.6vw, 26px); }
h4 { font-size: clamp(17px, 1.2vw, 20px); }
h5 { font-size: 16px; }

p { margin: 0 0 18px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
/* wide, un-shrinkable content must scroll inside its own box, never the page */
.scroll-x { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--white);
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ===== 3. LAYOUT PRIMITIVES ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 860px; }

.section { padding: var(--pad-y) 0; position: relative; }
.section--tight { padding: var(--pad-y-sm) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink-soft); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255, 255, 255, 0.66); }

.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
/* minmax(0,1fr) tracks can always shrink below their content width */
.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)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid > * { min-width: 0; }

.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.row > *, .stack > * { min-width: 0; }

/* ===== 4. TYPE HELPERS ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: block;
}
.eyebrow--plain::before { display: none; }

.lead { font-size: 19px; line-height: 1.7; }
.display { font-size: clamp(32px, 5.6vw, 78px); text-transform: uppercase; letter-spacing: -0.03em; }
.text-ink { color: var(--ink); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== 5. BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  text-align: center; white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-soft); color: var(--white); }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); color: var(--white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); color: var(--white); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.btn-link:hover { color: var(--accent); }
.btn-link .icon { transition: transform .22s var(--ease); }
.btn-link:hover .icon { transform: translate(3px, -3px); }

.icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* Circular accent arrow badge (from the reference layout) */
.arrow-badge {
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white);
  border: 0; flex: 0 0 auto;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.arrow-badge:hover { background: var(--accent-dark); transform: rotate(45deg); }
.arrow-badge--outline {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.arrow-badge--outline:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.arrow-badge--sm { width: 44px; height: 44px; }
.arrow-badge .icon { width: 20px; height: 20px; }

/* ===== 6. HEADER / NAV ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%;
}
.header.is-solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(17, 17, 17, 0.06);
  height: 72px;
}
.header--static { position: sticky; background: var(--white); box-shadow: 0 1px 0 var(--line); }

.brand {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--white); text-transform: none;
}
.brand:hover { color: var(--white); }
.brand__dot { color: var(--accent); }
.header.is-solid .brand, .header--static .brand { color: var(--ink); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.86);
}
.nav__link:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.nav__link.is-active { color: var(--white); font-weight: 700; }
.header.is-solid .nav__link, .header--static .nav__link { color: var(--body); }
.header.is-solid .nav__link:hover, .header--static .nav__link:hover {
  color: var(--ink); background: var(--surface);
}
.header.is-solid .nav__link.is-active, .header--static .nav__link.is-active { color: var(--ink); }
.nav__link .caret { width: 10px; height: 10px; transition: transform .22s var(--ease); }
.nav__item--has-menu.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 10;
  min-width: 276px; padding: 12px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item--has-menu.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--body);
}
.dropdown a:hover { background: var(--surface); color: var(--ink); }
.dropdown a.is-active { color: var(--accent); font-weight: 700; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  align-items: center; justify-content: center;
}
.header.is-solid .hamburger, .header--static .hamburger { background: var(--surface); }
.hamburger__bars { position: relative; width: 20px; height: 12px; display: block; }
.hamburger__bars span,
.hamburger__bars::before,
.hamburger__bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.hamburger__bars::before { top: 0; }
.hamburger__bars span { top: 5px; }
.hamburger__bars::after { top: 10px; }
.header.is-solid .hamburger__bars span,
.header.is-solid .hamburger__bars::before,
.header.is-solid .hamburger__bars::after,
.header--static .hamburger__bars span,
.header--static .hamburger__bars::before,
.header--static .hamburger__bars::after { background: var(--ink); }

/* Mobile slide-in panel.
   The shell is a fixed, full-viewport clipping box so the off-canvas panel can
   never contribute to the document's scrollable width at any viewport size. */
.mobile-nav-shell {
  position: fixed; inset: 0; z-index: 120;
  overflow: hidden; pointer-events: none;
}
.mobile-nav {
  position: absolute; top: 0; right: 0; bottom: 0;
  pointer-events: auto;
  width: min(360px, 88vw);
  background: var(--white);
  box-shadow: -20px 0 60px rgba(17, 17, 17, 0.18);
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 24px;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav__head .brand { color: var(--ink); }
.mobile-nav__close {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.mobile-nav__list { list-style: none; margin: 0 0 24px; padding: 0; }
.mobile-nav__list li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav__list a {
  display: block; padding: 14px 4px; font-size: 17px; font-weight: 700; color: var(--ink);
}
.mobile-nav__list a:hover, .mobile-nav__list a.is-active { color: var(--accent); }
.mobile-nav__sub { list-style: none; margin: 0 0 12px; padding: 0 0 8px 14px; }
.mobile-nav__sub li { border: 0; }
.mobile-nav__sub a { font-size: 15px; font-weight: 500; color: var(--body); padding: 10px 4px; }
.mobile-nav__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 4px; background: none; border: 0;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.mobile-nav__toggle .caret { width: 12px; height: 12px; transition: transform .22s var(--ease); }
.mobile-nav__group.is-open .caret { transform: rotate(180deg); }
.mobile-nav__group .mobile-nav__sub { display: none; }
.mobile-nav__group.is-open .mobile-nav__sub { display: block; }

.overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* ===== 7. HERO ===== */
.hero {
  position: relative;
  min-height: clamp(520px, 74vh, 760px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 80px) 0 96px;
  background: var(--ink-soft);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.82) 0%, rgba(35,35,35,.7) 45%, rgba(17,17,17,.88) 100%);
}
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; min-width: 0; }
.hero__title { color: var(--white); font-size: clamp(30px, 5.4vw, 74px); text-transform: uppercase; letter-spacing: -0.03em; }
.hero__sub { color: rgba(255, 255, 255, 0.74); font-size: clamp(15px, 1.1vw, 18px); max-width: 620px; margin: 0 auto 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Compact page hero used on all inner pages */
.hero--page { min-height: clamp(360px, 52vh, 520px); padding: calc(var(--header-h) + clamp(44px, 7vw, 96px)) 0 clamp(48px, 7vw, 90px); }
.hero--page .hero__title { font-size: clamp(27px, 4.2vw, 58px); }
.hero__breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  list-style: none; margin: 26px 0 0; padding: 0;
  font-size: 14px; color: rgba(255, 255, 255, 0.6);
}
.hero__breadcrumb li { margin: 0; }
.hero__breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.hero__breadcrumb a { color: rgba(255, 255, 255, 0.86); }
.hero__breadcrumb a:hover { color: var(--accent); }

/* ===== 8. CLIENT LOGO STRIP ===== */
.logo-strip { padding: clamp(30px, 4vw, 46px) 0; border-bottom: 1px solid var(--line); }
.logo-strip__list {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px); align-items: center;
}
.logo-strip__list > * { min-width: 0; }
.logo-strip__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center;
  color: #A3A9B2;
  filter: grayscale(1);
  opacity: .72;
  transition: opacity .22s var(--ease);
}
.logo-strip__item:hover { opacity: 1; }
.logo-strip__name { font-size: 19px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.logo-strip__meta { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ===== 9. PULL QUOTE ===== */
.pullquote { padding: var(--pad-y) 0; }
.pullquote__text {
  margin: 0; font-size: clamp(19px, 2.9vw, 40px); font-weight: 500; line-height: 1.38;
  letter-spacing: -0.02em; color: var(--ink); max-width: 1000px;
}
.pullquote__cite {
  display: block; margin-top: 28px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--body); font-style: normal;
}

/* ===== 10. SECTION HEADER ===== */
.section__head {
  display: flex; align-items: flex-end; gap: 28px;
  padding-bottom: 26px; margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.section__title { margin: 0; font-size: clamp(24px, 3.2vw, 42px); min-width: 0; text-transform: uppercase; letter-spacing: -0.02em; }
.section__desc { margin: 0 auto 0 0; font-size: 15px; max-width: 330px; line-height: 1.55; }
.section--dark .section__head { border-color: rgba(255, 255, 255, 0.14); }
.section__head--center {
  display: block; text-align: center; border: 0; padding: 0; margin-bottom: 56px;
}
.section__head--center .section__desc { margin: 0 auto; max-width: 620px; font-size: 17px; }
.section__head--stack { display: block; }

/* ===== 11. PROJECT CARD ===== */
.project-card { display: block; color: inherit; }
.project-card__frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
}
.project-card__frame img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px;
  transition: transform .5s var(--ease);
}
.project-card:hover .project-card__frame img { transform: scale(1.04); }
.project-card__badge { position: absolute; right: 22px; bottom: 22px; z-index: 2; }
.project-card__body { padding: 18px 4px 0; }
.project-card__title { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: var(--ink); }
.project-card__meta { margin: 0; font-size: 14px; color: var(--body); }
.project-card:hover .project-card__title { color: var(--accent); }

/* ===== 12. NUMBERED SERVICES LIST ===== */
.services-showcase {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.services-showcase > * { min-width: 0; }
.services-showcase__media { position: relative; }
.services-showcase__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.services-showcase__note {
  margin: 18px 0 0; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em; color: var(--body);
}
.services-list { list-style: none; margin: 0; padding: 0; }
.services-list li { margin: 0; }
.service-row {
  display: grid; grid-template-columns: 54px 1fr 54px;
  gap: 20px; align-items: start;
  width: 100%; text-align: left;
  padding: 26px 4px;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--body);
}
.service-row__num { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: #C4C8CE; padding-top: 8px; }
.service-row__title { margin: 0 0 6px; font-size: clamp(18px, 2.1vw, 30px); font-weight: 700; color: #C4C8CE; letter-spacing: -0.02em; transition: color .22s var(--ease); }
.service-row__desc { margin: 0; font-size: 14px; line-height: 1.6; max-width: 560px; }
.service-row .arrow-badge { align-self: center; }
.service-row.is-active .service-row__num { color: var(--accent); }
.service-row.is-active .service-row__title { color: var(--ink); }
.service-row:hover .service-row__title { color: var(--ink); }

/* ===== 13. GENERIC CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.card--flat:hover { transform: none; box-shadow: none; }
.card__title { margin: 0 0 10px; font-size: 21px; }
.card__text { margin: 0; font-size: 15px; }
.card--dark { background: var(--ink-soft); border-color: transparent; }
.card--dark .card__title { color: var(--white); }
.card--dark .card__text { color: rgba(255, 255, 255, 0.66); }

.card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(43, 197, 180, 0.12); color: var(--accent);
  margin-bottom: 22px;
}
.card__icon .icon { width: 26px; height: 26px; }

.industry-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 340px; display: flex; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.industry-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.05) 30%, rgba(17,17,17,.86) 100%);
}
.industry-card:hover img { transform: scale(1.06); }
.industry-card__body { position: relative; z-index: 2; margin-top: auto; padding: 28px; }
.industry-card__title { margin: 0 0 6px; color: var(--white); font-size: 21px; }
.industry-card__text { margin: 0; color: rgba(255, 255, 255, 0.74); font-size: 14px; }

.step {
  border-top: 3px solid var(--line);
  padding-top: 26px;
  transition: border-color .26s var(--ease);
}
.step:hover { border-color: var(--accent); }
.step__num {
  display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--accent); margin-bottom: 14px;
}
.step__title { margin: 0 0 10px; font-size: 24px; }
.step__text { margin: 0; font-size: 15px; }

.value {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.value__mark {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white);
}
.value__mark .icon { width: 18px; height: 18px; }
.value__title { margin: 0 0 6px; font-size: 19px; }
.value__text { margin: 0; font-size: 15px; }

/* Stats / counters */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 28px); }
.stats > * { min-width: 0; }
.stat { padding: 8px 0; border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 26px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font-size: clamp(36px, 4.2vw, 60px); font-weight: 800; line-height: 1; color: var(--white); letter-spacing: -0.03em; }
.stat__label { display: block; margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.stats--light .stat { border-left-color: var(--line); }
.stats--light .stat__num { color: var(--ink); }
.stats--light .stat__label { color: var(--body); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(20px, 2.6vw, 34px); }
.checklist > li { min-width: 0; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start; margin: 0;
  font-size: 16px; color: var(--body);
}
.checklist__tick {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; margin-top: 3px;
  background: rgba(43, 197, 180, 0.14); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.checklist__tick .icon { width: 14px; height: 14px; }
.checklist--single { grid-template-columns: 1fr; }

/* Process (numbered vertical) */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li {
  display: grid; grid-template-columns: 84px 1fr; gap: 28px;
  margin: 0; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.process li:first-child { border-top: 1px solid var(--line); }
.process__num { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); padding-top: 6px; }
.process__title { margin: 0 0 8px; font-size: 22px; }
.process__text { margin: 0; font-size: 15px; }

/* ===== 14. PRICING ===== */
.price-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.price-card--featured { background: var(--ink-soft); border-color: transparent; }
.price-card__tag {
  align-self: flex-start; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.price-card__name { margin: 0 0 6px; font-size: 22px; }
.price-card__for { margin: 0 0 22px; font-size: 14px; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.price-card__amount { font-size: clamp(32px, 3.4vw, 46px); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.price-card__unit { font-size: 14px; color: var(--body); }
.price-card__note { margin: 0 0 24px; font-size: 13px; color: var(--body); }
.price-card__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.price-card__list > li { min-width: 0; }
.price-card__list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 15px; }
.price-card__list .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 5px; flex: 0 0 auto; }
.price-card .btn { margin-top: auto; }
.price-card--featured .price-card__name,
.price-card--featured .price-card__amount { color: var(--white); }
.price-card--featured .price-card__for,
.price-card--featured .price-card__note,
.price-card--featured .price-card__unit,
.price-card--featured .price-card__list li { color: rgba(255, 255, 255, 0.7); }

.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius); }
.compare {
  width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px;
  background: var(--white);
}
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  background: var(--surface); color: var(--ink); font-weight: 800;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare td { color: var(--body); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 700; }

/* ===== 15. BLOG ===== */
.post-card { display: block; color: inherit; }
.post-card__media { border-radius: var(--radius); overflow: hidden; background: var(--surface); position: relative; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__badge { position: absolute; right: 18px; bottom: 18px; z-index: 2; }
.post-card__body { padding: 20px 2px 0; }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.post-card__meta span { color: var(--body); font-weight: 500; letter-spacing: 0.04em; }
.post-card__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.post-card:hover .post-card__title { color: var(--accent); }

.post-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center;
  background: var(--surface); border-radius: var(--radius-lg); padding: 22px;
}
.post-featured__media { border-radius: var(--radius); overflow: hidden; }
.post-featured__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.post-featured__body { padding: 20px 26px 20px 0; }
.post-featured__title { font-size: clamp(21px, 2.6vw, 34px); }
.post-featured > * { min-width: 0; }

.article { font-size: 17px; line-height: 1.85; }
.article h2 { font-size: 30px; margin-top: 46px; }
.article h3 { font-size: 22px; margin-top: 34px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 10px; }
.article figure { margin: 40px 0; }
.article figure img { border-radius: var(--radius); }
.article figcaption { margin-top: 12px; font-size: 14px; color: var(--body); }
.article blockquote {
  margin: 40px 0; padding: 8px 0 8px 28px;
  border-left: 3px solid var(--accent);
  font-size: 22px; line-height: 1.5; color: var(--ink); font-weight: 500;
}
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(32px, 4vw, 64px); align-items: start; }
.article__layout > * { min-width: 0; }
.article pre, .article table { max-width: 100%; overflow-x: auto; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 26px; font-size: 14px; color: var(--body);
}
.sidebar { position: sticky; top: 104px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.sidebar > * { min-width: 0; }
.sidebar__box { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.sidebar__title { margin: 0 0 16px; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.sidebar__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sidebar__list li { margin: 0; min-width: 0; }
.sidebar__list a { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; display: block; }
.sidebar__list a:hover { color: var(--accent); }

/* ===== 16. TEAM ===== */
.team-card { text-align: left; }
.team-card__media {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  aspect-ratio: 4 / 5;
}
.team-card__body { padding: 18px 2px 0; text-align: center; }
.team-card__name { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: var(--ink); }
.team-card__role { margin: 0; font-size: 14px; }

/* Marked image placeholder (team, logos, map) */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    135deg, rgba(17,17,17,.045) 0 10px, rgba(17,17,17,0) 10px 20px);
  border: 1px dashed var(--line);
  border-radius: inherit;
  text-align: center; padding: 20px;
}
.ph__label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9AA0A8; line-height: 1.6;
}
.ph--map { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.ph--tall { aspect-ratio: 4 / 5; }

/* ===== 17. TESTIMONIALS ===== */
.quote-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 38px;
  display: flex; flex-direction: column; gap: 22px; height: 100%;
}
.quote-card__mark { font-size: 46px; line-height: .6; color: var(--accent); font-weight: 800; }
.quote-card__text { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink); }
.quote-card__who { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote-card__avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.quote-card__name { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.quote-card__role { margin: 0; font-size: 13px; }

/* ===== 18. CAROUSEL (plain JS) ===== */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; margin: 0 -6px; padding: 6px; }
.carousel__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  transition: transform .5s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}
.carousel.is-dragging .carousel__track { transition: none; cursor: grabbing; }
.carousel__slide { flex: 0 0 var(--slide-w, 33.333%); max-width: 100%; min-width: 0; user-select: none; }
.carousel__controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  margin-top: clamp(26px, 3vw, 44px);
}
.carousel__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.carousel__arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.carousel__arrow[disabled] { opacity: .35; cursor: default; }
.carousel__arrow[disabled]:hover { background: var(--white); color: var(--ink); border-color: var(--line); }
.carousel__dots { display: flex; align-items: center; gap: 10px; }
.carousel__dot {
  position: relative;
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); transition: background .2s var(--ease), width .2s var(--ease);
}
/* keeps the dot visually small while giving it a 44px-tall touch target */
.carousel__dot::after { content: ""; position: absolute; inset: -18px -5px; }
.carousel__dot.is-active { background: var(--accent); width: 28px; border-radius: 999px; }
.section--dark .carousel__arrow { background: transparent; border-color: rgba(255,255,255,.24); color: var(--white); }
.section--dark .carousel__dot { background: rgba(255,255,255,.24); }
.section--dark .carousel__dot.is-active { background: var(--accent); }

/* ===== 19. ACCORDION ===== */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 26px 4px;
  background: none; border: 0; text-align: left;
  font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.4;
}
.accordion__btn:hover { color: var(--accent); }
.accordion__sign {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
.accordion__sign::before, .accordion__sign::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.accordion__sign::before { width: 12px; height: 2px; }
.accordion__sign::after { width: 2px; height: 12px; }
.accordion__item.is-open .accordion__sign { background: var(--accent); border-color: var(--accent); }
.accordion__item.is-open .accordion__sign::before,
.accordion__item.is-open .accordion__sign::after { background: var(--white); }
.accordion__item.is-open .accordion__sign::after { transform: scaleY(0); }
.accordion__panel {
  overflow: hidden; height: 0;
  transition: height .3s var(--ease);
}
.accordion__panel-inner { padding: 0 60px 28px 4px; font-size: 16px; }

/* ===== 20. FILTER TABS ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.filter-btn {
  min-height: 44px; padding: 10px 24px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--body);
  font-size: 15px; font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.filter-empty { display: none; padding: 40px 0; font-size: 16px; }
.filter-empty.is-visible { display: block; }
[data-filter-item].is-hidden { display: none; }

/* ===== 21. FORMS ===== */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form__row > * { min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field__label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 18px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: #A3A9B2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43, 197, 180, 0.14);
}
.field__error { font-size: 13px; font-weight: 600; color: #D64545; min-height: 0; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D64545; }
.field.has-error .field__error { display: block; }
.form__note { font-size: 13px; }
.form__success {
  display: none; gap: 16px; align-items: flex-start;
  padding: 26px; border-radius: var(--radius);
  background: rgba(43, 197, 180, 0.1); border: 1px solid var(--accent);
}
.form__success.is-visible { display: flex; }
.form__success .icon { width: 24px; height: 24px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.form__success p { margin: 0; font-size: 15px; }
.form__success strong { display: block; margin-bottom: 4px; font-size: 17px; }

.contact-detail { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-detail__icon {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  background: rgba(43, 197, 180, 0.12); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-detail__label { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body); }
.contact-detail__value { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.contact-detail__value a { color: var(--ink); }
.contact-detail__value a:hover { color: var(--accent); }

/* ===== 22. DARK CTA ===== */
.cta { padding: 0 0 var(--pad-y); }
.cta__panel {
  position: relative;
  background: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(32px, 5.4vw, 88px) clamp(24px, 4.6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 3.4vw, 48px);
}
.cta__panel > * { min-width: 0; }
.cta__body { max-width: 760px; }
.cta__title {
  margin: 0 0 16px; color: var(--white);
  font-size: clamp(24px, 3.9vw, 52px); text-transform: uppercase; letter-spacing: -0.02em;
}
.cta__text { margin: 0 0 32px; color: rgba(255, 255, 255, 0.62); font-size: 16px; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__badge { margin-left: auto; flex: 0 0 auto; }

.spin-badge { position: relative; width: clamp(104px, 11vw, 152px); aspect-ratio: 1; height: auto; }
.spin-badge__ring {
  position: absolute; inset: 0; animation: spin 18s linear infinite;
}
.spin-badge__disc {
  position: absolute; inset: 26px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.spin-badge__disc .icon { width: 26px; height: 26px; }
.spin-badge text { fill: var(--accent); font-size: 9.4px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 23. FOOTER ===== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: clamp(52px, 6.4vw, 84px) 0 0; }
.footer__top {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(28px, 3.4vw, 44px); padding-bottom: clamp(34px, 4.4vw, 56px);
}
.footer__top > * { min-width: 0; }
.footer__brand .brand { color: var(--white); margin-bottom: 18px; }
.footer__blurb { margin: 0 0 26px; font-size: 15px; max-width: 320px; color: rgba(255, 255, 255, 0.6); }
.footer__col-title {
  margin: 0 0 20px; color: var(--white);
  font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.footer__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.footer__list li { margin: 0; min-width: 0; }
/* long unbreakable strings (emails, URLs) must never widen a grid track */
.footer__list a, .contact-detail__value a, .sidebar__list a { overflow-wrap: anywhere; }
.footer__list a { font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.footer__list a:hover { color: var(--accent); }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer__social .icon { width: 17px; height: 17px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: rgba(255, 255, 255, 0.6); }
.footer__legal a:hover { color: var(--accent); }

/* ===== 24. BACK TO TOP ===== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s, background .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }

/* ===== 25. SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spin-badge__ring { animation: none; }
  .carousel__track { transition: none; }
  .btn:hover, .card:hover, .price-card:hover { transform: none; }
  * { animation-duration: .001s !important; }
}

/* Home hero: left aligned with value props, matching the agreed reference.
   Scoped to #hero so the inner-page heroes stay centred. */
#hero .hero__inner { text-align: left; margin: 0; max-width: 880px; }
#hero .hero__actions { justify-content: flex-start; align-items: center; gap: 24px; }
.hero__brand {
  color: var(--accent); margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.01em;
}
.hero__points {
  list-style: none; margin: 28px 0 36px; padding: 0;
  display: grid; gap: 15px; max-width: 740px;
}
.hero__points li {
  display: flex; gap: 13px; align-items: flex-start; min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.05vw, 16.5px); line-height: 1.55;
}
.hero__points svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.hero__points strong { color: var(--white); font-weight: 700; }
.hero__phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 700; font-size: clamp(15px, 1.2vw, 19px);
  text-decoration: underline; text-underline-offset: 5px;
}
.hero__phone svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 600px) {
  #hero .hero__actions { gap: 16px; }
  .hero__points { gap: 13px; margin: 24px 0 30px; }
}
/* Home hero presented as an inset rounded card, per the agreed reference.
   The fixed header sits transparently on top of it and only turns solid on scroll. */
#hero {
  margin: 14px 14px 0;
  border-radius: 30px;
  overflow: hidden;
}
@media (max-width: 900px) {
  #hero { margin: 10px 10px 0; border-radius: 22px; }
}
@media (max-width: 560px) {
  #hero { margin: 8px 8px 0; border-radius: 18px; }
}

/* --- hero corrections ---------------------------------------------------
   The earlier `margin: 0` killed .container's auto-centring, which pushed the
   hero text out to the card edge while the logo stayed in the container.
   Keep the container centred and left-align the content inside it instead. */
#hero .hero__inner { text-align: left; margin: 0 auto; max-width: var(--container); }
#hero .hero__title { font-size: clamp(27px, 3.9vw, 54px); max-width: 900px; }
#hero .hero__points { max-width: 640px; }

/* the fixed header sat hard against the page top, outside the rounded card.
   Drop it by the card inset so it reads as part of the card. */
.header:not(.is-solid) { top: 14px; }
@media (max-width: 900px) { .header:not(.is-solid) { top: 10px; } }
@media (max-width: 560px) { .header:not(.is-solid) { top: 8px; } }

/* project thumbnails are portrait UI mockups, matching the agreed reference */
.project-card__frame img { aspect-ratio: 4 / 5; }

/* ===== PRICING CARDS - reworked to the agreed reference, in the light theme =====
   Staircase stagger peaking at the featured plan, handwritten plan name,
   rule under the price, and hairline separators between the feature rows. */
.grid--4 { align-items: start; }
.grid--4 .price-card:nth-child(1) { transform: translateY(34px); }
.grid--4 .price-card:nth-child(2) { transform: translateY(-6px); }
.grid--4 .price-card:nth-child(3) { transform: translateY(14px); }
.grid--4 .price-card:nth-child(4) { transform: translateY(24px); }
.grid--4 .price-card:hover { transform: translateY(-2px); }

.price-card {
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
}

/* the highlighted plan stays white - it is only ringed and lifted */
.price-card--featured {
  background: var(--white);
  border: 2px solid var(--accent);
  box-shadow: 0 26px 60px rgba(43, 197, 180, 0.20);
  z-index: 2;
}
.price-card--featured .price-card__name { color: var(--accent); }
.price-card--featured .price-card__amount { color: var(--ink); }
.price-card--featured .price-card__for { color: var(--ink); }
.price-card--featured .price-card__note,
.price-card--featured .price-card__unit { color: var(--body); }
.price-card--featured .price-card__list li { color: var(--ink); }

.price-card__name {
  font-family: 'Caveat', cursive;
  font-size: 40px; font-weight: 700; line-height: 1;
  color: var(--accent); margin: 0 0 12px;
}
.price-card__for {
  font-size: 12px; font-weight: 800; line-height: 1.5;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 16px; min-height: 36px;
}
.price-card__price { align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price-card__amount { font-size: clamp(30px, 3vw, 42px); }
.price-card__unit { font-size: 13px; font-weight: 600; }
.price-card__note {
  margin: 0; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.price-card__list { margin: 16px 0 26px; gap: 0; }
.price-card__list li {
  padding: 11px 0; font-size: 13.5px; line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.price-card__list li:last-child { border-bottom: 0; }
.price-card__list .icon { margin-top: 3px; }
.price-card__tag { margin-bottom: 14px; }

@media (max-width: 980px) {
  .grid--4 .price-card:nth-child(1),
  .grid--4 .price-card:nth-child(2),
  .grid--4 .price-card:nth-child(3),
  .grid--4 .price-card:nth-child(4) { transform: none; }
}
/* the unit label wrapped awkwardly beside the figure - drop it to its own line */
.price-card__price { flex-wrap: wrap; }
.price-card__unit { width: 100%; margin-top: 4px; }

/* ===== CTA + FOOTER AS ONE CARD =====
   The reference runs the call to action and the footer together inside a single
   rounded dark block, with a hairline between them - not two separate slabs. */
.cta { padding-bottom: 0; }
.cta__panel {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding-bottom: clamp(26px, 3.6vw, 52px);
}
.footer {
  background: transparent;
  padding: 0 0 clamp(26px, 3.4vw, 48px);
}
.footer__card {
  background: var(--ink);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0 clamp(24px, 4.6vw, 72px);
}
.footer__top {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: clamp(34px, 4.4vw, 56px);
}

/* The CTA/footer card was container-width while the hero card runs almost
   edge to edge. Match the hero: same 14px inset, with the inner content still
   centred on the container so text lines up with the header and hero. */
.cta > .container,
.footer > .container { width: auto; max-width: none; padding: 0; margin: 0 14px; }
.cta__panel,
.footer__card {
  padding-left: max(24px, calc((100% - var(--container)) / 2));
  padding-right: max(24px, calc((100% - var(--container)) / 2));
}
@media (max-width: 900px) {
  .cta > .container,
  .footer > .container { margin: 0 10px; }
}
@media (max-width: 560px) {
  .cta > .container,
  .footer > .container { margin: 0 8px; }
}

/* ===== PRICING CARDS - dark, exactly as the supplied reference ===== */
.price-card {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 26px 24px 30px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.14);
  color: rgba(255, 255, 255, 0.72);
}
.price-card--featured {
  background: #000;
  border: 2px solid var(--accent);
  box-shadow: 0 26px 60px rgba(43, 197, 180, 0.28);
}
.price-card__name {
  font-family: 'Caveat', cursive;
  font-size: 40px; font-weight: 700; line-height: 1;
  color: var(--accent); margin: 0 0 10px;
}
.price-card__for {
  font-size: 11.5px; font-weight: 800; line-height: 1.5;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--white); margin: 0 0 12px; min-height: 34px;
}
.price-card__price {
  display: flex; align-items: baseline; flex-wrap: nowrap; gap: 2px;
  margin: 0 0 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.price-card__amount {
  font-size: clamp(26px, 2.6vw, 36px); font-weight: 800;
  color: var(--white); letter-spacing: -0.03em; line-height: 1;
}
.price-card__unit { width: auto; margin: 0; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.62); }
.price-card__list { list-style: none; margin: 0; padding: 0; display: block; }
.price-card__list li {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 0; margin: 0;
  font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.price-card__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-card__list .icon { width: 13px; height: 13px; color: var(--accent); margin-top: 3px; flex: 0 0 auto; }

/* staircase: peaks on the highlighted third plan, as in the reference */
.grid--4 { align-items: start; }
.grid--4 .price-card:nth-child(1) { transform: translateY(56px); }
.grid--4 .price-card:nth-child(2) { transform: translateY(28px); }
.grid--4 .price-card:nth-child(3) { transform: translateY(0); z-index: 2; }
.grid--4 .price-card:nth-child(4) { transform: translateY(20px); }
@media (max-width: 980px) {
  .grid--4 .price-card:nth-child(1),
  .grid--4 .price-card:nth-child(2),
  .grid--4 .price-card:nth-child(3),
  .grid--4 .price-card:nth-child(4) { transform: none; }
}
/* the earlier light-theme rules left the highlighted card's text near-black,
   which is invisible now that the card itself is black */
.price-card--featured .price-card__name { color: var(--accent); }
.price-card--featured .price-card__for,
.price-card--featured .price-card__amount { color: var(--white); }
.price-card--featured .price-card__unit { color: rgba(255,255,255,.62); }
.price-card--featured .price-card__list li { color: rgba(255,255,255,.80); }
.price-card--featured .price-card__note { color: rgba(255,255,255,.55); }

/* Tighten the pricing cards to the reference's density: the cards were running
   taller and looser than the original, which wrapped more rows and pushed the
   staircase apart. */
#packages .grid--4,
.packages-grid.grid--4 { gap: 14px; }
.price-card { padding: 20px 18px 22px; border-radius: 18px; }
.price-card__name { font-size: 33px; margin: 0 0 8px; }
.price-card__for { font-size: 10.5px; letter-spacing: .04em; margin: 0 0 10px; min-height: 30px; }
.price-card__price { margin: 0 0 11px; padding-bottom: 11px; }
.price-card__amount { font-size: clamp(22px, 2vw, 30px); }
.price-card__unit { font-size: 11px; }
.price-card__list li { padding: 6.5px 0; font-size: 11px; line-height: 1.4; gap: 7px; }
.price-card__list .icon { width: 11px; height: 11px; margin-top: 3px; }

/* smaller steps so the group reads as one block, like the reference */
.grid--4 .price-card:nth-child(1) { transform: translateY(38px); }
.grid--4 .price-card:nth-child(2) { transform: translateY(19px); }
.grid--4 .price-card:nth-child(3) { transform: translateY(0); }
.grid--4 .price-card:nth-child(4) { transform: translateY(13px); }
@media (max-width: 980px) {
  .grid--4 .price-card:nth-child(1),
  .grid--4 .price-card:nth-child(2),
  .grid--4 .price-card:nth-child(3),
  .grid--4 .price-card:nth-child(4) { transform: none; }
}

/* Reference has no gap between the package cards - they sit edge to edge and the
   highlighted one overlaps its neighbours. Gap comes back on narrow screens. */
#packages .grid--4,
.grid--4:has(.price-card) { gap: 0; align-items: start; }
.price-card { position: relative; }
.grid--4 .price-card:nth-child(1) { z-index: 1; }
.grid--4 .price-card:nth-child(2) { z-index: 2; }
.grid--4 .price-card:nth-child(3) { z-index: 4; margin-inline: -12px; }
.grid--4 .price-card:nth-child(4) { z-index: 3; }
@media (max-width: 980px) {
  #packages .grid--4,
  .grid--4:has(.price-card) { gap: 16px; }
  .grid--4 .price-card:nth-child(3) { margin-inline: 0; }
}

/* Package names in the site's own font (Manrope) instead of the handwritten
   Caveat borrowed from the reference. Size drops because Manrope reads much
   larger than Caveat at the same px. */
.price-card__name {
  font-family: var(--font);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
}

/* Spinning "get started" badge: solid brand-teal disc with dark text running
   around it and a dark arrow in the middle, matching the supplied reference. */
.spin-badge { background: var(--accent); border-radius: 50%; }
.spin-badge text { fill: var(--ink); font-size: 12px; letter-spacing: 0; }
.spin-badge__ring { inset: 5px; }  /* pull the arc inside the disc */
.spin-badge__disc { inset: 0; background: transparent; color: var(--ink); }
.spin-badge__disc .icon { width: 30px; height: 30px; stroke-width: 2.4; }



/* Inner-page heroes: the title and buttons follow the left-aligned home hero,
   but .hero__sub was still auto-centred and the breadcrumb still centre-justified,
   so the block read as three different alignments. Pull them all to the left. */
.hero--page .hero__sub { margin-left: 0; margin-right: 0; }
.hero--page .hero__breadcrumb { justify-content: flex-start; }

/* Real WebrixLab wordmark in place of the text brand. Two files ship: the
   white mark for dark backgrounds (transparent header, footer) and the black
   one for light backgrounds (scrolled header, static header, mobile menu). */
.brand { gap: 0; }
.brand__img { display: block; width: auto; height: 30px; }
.brand__img--dark { display: none; }
.header.is-solid .brand__img--light,
.header--static .brand__img--light,
.mobile-nav__head .brand__img--light { display: none; }
.header.is-solid .brand__img--dark,
.header--static .brand__img--dark,
.mobile-nav__head .brand__img--dark { display: block; }
.footer__brand .brand__img { height: 32px; }
@media (max-width: 560px) {
  .brand__img { height: 26px; }
  .footer__brand .brand__img { height: 28px; }
}

/* ===== ONE SHELL FOR HEADER, HERO, CTA AND FOOTER =====================
   The reference sits the logo close to the card edge rather than on a 1240px
   container. Everything that has to line up with it - header, hero copy,
   CTA panel, footer columns - now uses the same inset from the card edge. */
:root { --card-pad: clamp(22px, 3.6vw, 52px); }

.header > .container {
  /* .header is a flex row, so the container needs to grow - width:auto alone
     would shrink-wrap it and pull the button in off the right edge. */
  flex: 1 1 auto; min-width: 0;
  width: auto; max-width: none; margin: 0 14px;
  padding-left: var(--card-pad); padding-right: var(--card-pad);
}
#hero .hero__inner {
  width: auto; max-width: none; margin: 0;
  padding-left: var(--card-pad); padding-right: var(--card-pad);
}
.cta__panel,
.footer__card {
  padding-left: var(--card-pad);
  padding-right: var(--card-pad);
}
@media (max-width: 900px) {
  .header > .container { margin: 0 10px; }
}
@media (max-width: 560px) {
  .header > .container { margin: 0 8px; }
}

/* ===== DISPLAY TYPEFACE =================================================
   Headings move to Archivo. Manrope stays for body copy. The old look was
   Manrope caps at -0.03em tracking - negative tracking on uppercase pushes
   the letters into each other, which is what made it read as cheap. Archivo
   caps sit at -0.012em instead. */
:root { --font-display: "Archivo", "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif; }

h1, h2, h3, h4, h5,
.display,
.hero__title,
.section__title,
.cta__title,
.price-card__name,
.project-card__title { font-family: var(--font-display); }

.hero__title,
.display { letter-spacing: -0.012em; }
.section__title,
.cta__title { letter-spacing: -0.012em; }

/* Archivo 800 reads much heavier than Manrope 800 did - drop the headings to 700. */
h1, h2, h3, h4, h5,
.display,
.hero__title,
.section__title,
.cta__title,
.price-card__name,
.project-card__title { font-weight: 700; }

/* Project cards: the screenshot sits on a rounded grey panel and bleeds to its
   bottom edge, and the carousel shows part of the next card so it reads as a
   row that continues - both from the supplied reference. */
.project-card__frame {
  background: #E9ECEE;
  border: 0;
  border-radius: 26px;
  padding: 18px 18px 0;
}
.project-card__frame img {
  aspect-ratio: 4 / 5;
  border-radius: 14px 14px 0 0;
}
.project-card__badge { right: 26px; bottom: 26px; }

/* CTA badge: the reference sits it level with the heading, not centred on the
   whole block, and runs it a little smaller against a bigger headline. */
.cta__panel { align-items: flex-start; }
.cta__badge { margin-left: auto; margin-top: 2px; }
.spin-badge { width: clamp(94px, 9vw, 132px); }
.spin-badge text { font-size: 12.5px; }
.spin-badge__ring { inset: 4px; }
.spin-badge__disc .icon { width: 34px; height: 34px; stroke-width: 2.2; }
.cta__title { font-size: clamp(26px, 4.4vw, 60px); }
@media (max-width: 900px) {
  .cta__panel { align-items: center; }
}
/* the bigger CTA headline needs more room or it wraps to three lines */
.cta__body { max-width: 920px; }

/* CTA stripped to the reference: headline plus one small uppercase line, no
   buttons. The badge is the action now, so give it a hover state. */
.cta__text {
  margin: 0;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.6; max-width: 720px;
  color: rgba(255, 255, 255, 0.66);
}
.cta__title { margin: 0 0 14px; }
.cta__badge { display: block; transition: transform .3s var(--ease); }
.cta__badge:hover { transform: scale(1.04); }

/* Reference CTA: bigger sub-line, and the headline carries a left-to-right
   grey-to-white gradient instead of flat white. Guarded so browsers without
   background-clip:text keep plain white text. */
.cta__text { font-size: 16px; letter-spacing: 0.045em; max-width: 820px; }

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .cta__title {
    background: linear-gradient(to top, #8E8E8E 0%, #C9C9C9 30%, #FFFFFF 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Card 1 sat beside card 2 with its right rounded corner showing. Tuck it under
   its neighbour - card 2 has the higher z-index, so the corner disappears. */
.grid--4 .price-card:nth-child(1) { margin-right: -22px; }
@media (max-width: 980px) {
  .grid--4 .price-card:nth-child(1) { margin-right: 0; }
}

/* Honeypot: off-screen rather than display:none, since some bots skip hidden fields. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Form send states */
.form.is-sending .btn[type="submit"] { opacity: .6; pointer-events: none; }
.form__error {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
  background: #FDECEC; color: #A32020; font-size: 14px; font-weight: 600;
}

/* Legal pages use the article layout without the blog sidebar. */
.article__layout--solo { display: block; }
.article__layout--solo .article { max-width: 860px; margin: 0 auto; }
