/* =========================================================
   LoneStar Roofing — design tokens
   ========================================================= */
:root {
  --red: #e3232c;
  --red-600: #c81c24;
  --red-50: #fdeced;
  --dark: #16171b;
  --dark-2: #1f2026;
  --dark-3: #2a2b32;
  --ink: #1b1c21;
  --text: #5d6069;
  --line: #e7e8ec;
  --bg-soft: #f5f6f8;
  --white: #fff;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 14px 40px -18px rgba(22, 23, 27, .28);
  --shadow-red: 0 16px 34px -14px rgba(227, 35, 44, .55);

  /* motion tokens (mirrors motion-ui system) */
  --dur-fast: .18s;
  --dur: .35s;
  --dur-slow: .6s;
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
  --ease-sharp: cubic-bezier(.4, 0, .2, 1);
  --dist: 16px;

  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; }
.muted { color: var(--text); }
.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: 12px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; transition: top var(--dur-fast); }
.skip-link:focus { top: 12px; }

.ic { width: 1em; height: 1em; flex: none; }

/* Image placeholder while loading / on failure */
img { background: linear-gradient(135deg, #2a2b32, #3b3c45); }

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ff5a61; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 2px; background: currentColor; }

.title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.title span { color: var(--red); }
.title--light { color: #fff; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform var(--dur-fast) var(--ease-sharp), background-color var(--dur) var(--ease-smooth), box-shadow var(--dur) var(--ease-smooth), color var(--dur);
}
.btn .ic { transition: transform var(--dur) var(--ease-smooth); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--red:hover { background: var(--red-600); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--dark); color: #fff; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--block { width: 100%; }
.btn--sm { padding: 12px 22px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #fff; }
.link-arrow .ic { transition: transform var(--dur) var(--ease-smooth); }
.link-arrow:hover .ic { transform: translateX(5px); }
.link-arrow--red { color: var(--red); }

/* =========================================================
   Top bar + header
   ========================================================= */
.topbar { background: var(--dark); color: #b9bbc3; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 20px; }
.topbar__info { display: flex; gap: 28px; align-items: center; }
.topbar__info li { display: flex; align-items: center; gap: 8px; }
.topbar__info .ic { color: var(--red); }
.topbar__info a:hover { color: #fff; }
.topbar__social { gap: 14px !important; }
.topbar__social a { display: grid; place-items: center; }
.topbar__social .ic { color: #b9bbc3; transition: color var(--dur-fast); }
.topbar__social a:hover .ic { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow var(--dur) var(--ease-smooth);
}
.header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.18); }
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  max-width: 1440px; margin: 0 auto; padding-left: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--red); flex: none; }
.logo__mark { width: 46px; height: 40px; }
.logo__text { font-weight: 800; font-size: 22px; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.logo__text small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text); margin-top: 4px; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text small { color: #9a9ca5; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 10px 14px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  transition: color var(--dur-fast);
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-smooth);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--red); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 18px; height: 100%; }
.header__call { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.25; }
.header__call small { display: block; font-size: 12px; font-weight: 500; color: var(--text); }
.header__call-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red-50); color: var(--red); font-size: 18px; }
.header__cta {
  height: 100%; border-radius: 0; padding: 0 34px 0 50px;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: none;
}
.header__cta:active { transform: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: var(--radius); background: var(--red); color: #fff; font-size: 22px; place-items: center; margin-right: 20px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.55); opacity: 0; transition: opacity var(--dur) var(--ease-smooth); }
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 86vw);
  background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--dur) var(--ease-smooth);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__close { width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; border-radius: var(--radius); background: var(--bg-soft); }
.drawer__list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.drawer__list a:hover { color: var(--red); }
.drawer__phone { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.drawer__phone .ic { color: var(--red); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: min(760px, 92vh);
  display: flex; align-items: center; overflow: hidden; color: #fff;
  isolation: isolate; background: var(--dark);
}
.hero__bg { position: absolute; inset: -60px 0 0; z-index: -2; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease-smooth) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,15,18,.92) 0%, rgba(14,15,18,.7) 45%, rgba(14,15,18,.15) 100%),
    linear-gradient(0deg, rgba(14,15,18,.5), transparent 40%);
}
.hero__content { padding-top: 90px; padding-bottom: 120px; }
.hero__title { color: #fff; font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; max-width: 760px; }
.hero__title span { color: var(--red); }
.hero__lead { max-width: 560px; margin: 24px 0 38px; color: #d2d4da; font-size: 17px; }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.play { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; }
.play__ring {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--red); font-size: 20px;
  transition: transform var(--dur) var(--ease-smooth);
}
.play__ring::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  animation: pulse 2.4s var(--ease-smooth) infinite;
}
.play:hover .play__ring { transform: scale(1.06); }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.hero__badge {
  position: absolute; right: 0; bottom: 0;
  background: var(--red); color: #fff; padding: 26px 40px 26px 60px;
  display: flex; align-items: center; gap: 16px; font-size: 13.5px; line-height: 1.4;
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
}
.hero__badge strong { font-size: 40px; font-weight: 800; line-height: 1; }
.hero__badge strong span { font-size: 18px; opacity: .8; }

/* =========================================================
   About
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.about__text > .muted { margin-bottom: 28px; }
.feature { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius-lg); background: var(--bg-soft); border-left: 4px solid var(--red); margin-bottom: 26px; }
.feature__ic { width: 56px; height: 56px; flex: none; border-radius: var(--radius); background: var(--red); color: #fff; display: grid; place-items: center; }
.feature__ic svg { width: 30px; height: 30px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 34px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 14.5px; }
.checks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--red-50); color: var(--red); }

.about__foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.callbox { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 700; color: var(--red); line-height: 1.2; }
.callbox small { display: block; font-size: 13px; color: var(--text); font-weight: 500; }
.callbox__ic { width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--red); display: grid; place-items: center; font-size: 20px; }
.years { display: flex; align-items: center; gap: 12px; background: var(--red); color: #fff; padding: 12px 22px; border-radius: var(--radius); font-size: 13px; line-height: 1.3; font-weight: 500; }
.years strong { font-size: 40px; font-weight: 800; line-height: 1; }

.about__media { position: relative; padding: 0 0 70px 60px; }
.about__img { overflow: hidden; border-radius: var(--radius-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-smooth); }
.about__img:hover img { transform: scale(1.05); }
.about__img--main { aspect-ratio: 4 / 4.2; }
.about__img--small { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid #fff; box-shadow: var(--shadow); }
.about__stamp {
  position: absolute; right: -14px; top: 40px; background: var(--dark); color: #fff;
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; line-height: 1.35; box-shadow: var(--shadow);
}
.about__stamp .ic { font-size: 34px; color: var(--red); }

/* =========================================================
   Services (dark)
   ========================================================= */
.services {
  background:
    radial-gradient(circle at 85% 10%, rgba(227,35,44,.14), transparent 40%),
    var(--dark);
  color: #a9abb4;
}
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.split-head__text { padding-bottom: 22px; }
.split-head--dark .split-head__text { color: var(--text); }

.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 40px 0 6px; margin-top: -40px; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.svc {
  scroll-snap-align: start; background: var(--dark-2); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,.06);
  transition: transform var(--dur) var(--ease-smooth), border-color var(--dur), opacity var(--dur-slow) var(--ease-smooth);
}
.svc:hover { transform: translateY(-6px); border-color: rgba(227,35,44,.5); }
.svc__img { aspect-ratio: 16 / 10.5; overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-smooth); }
.svc:hover .svc__img img { transform: scale(1.07); }
.svc__body { position: relative; padding: 48px 28px 30px; }
.svc__ic {
  position: absolute; top: -34px; left: 28px; width: 66px; height: 66px; border-radius: var(--radius);
  background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-red);
  transition: transform var(--dur) var(--ease-smooth);
}
.svc:hover .svc__ic { transform: rotate(-6deg) scale(1.05); }
.svc__ic svg { width: 34px; height: 34px; }
.svc h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.svc p { font-size: 14.5px; margin-bottom: 18px; }

.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.slider__dot { width: 12px; height: 12px; border-radius: 50%; background: #4a4c55; transition: background-color var(--dur), transform var(--dur) var(--ease-smooth); }
.slider__dot[aria-current="true"] { background: var(--red); transform: scale(1.3); }

/* =========================================================
   Past & Future
   ========================================================= */
.future__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.future__media { position: relative; }
.future__media > img { width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover; border-radius: var(--radius-lg); }
.ring-card {
  position: absolute; right: -30px; bottom: 40px; background: #fff; border-radius: var(--radius-lg);
  padding: 20px 26px; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow);
  border-bottom: 4px solid var(--red);
}
.ring-card h3 { font-size: 17px; }
.ring-card p { font-size: 13px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__track { stroke: var(--red-50); }
.ring__bar {
  stroke: var(--red); stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.6s var(--ease-smooth);
}
.ring__val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 20px; }
.future__text > .muted { margin-bottom: 30px; }

.acc { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; transition: border-color var(--dur), box-shadow var(--dur); }
.acc.is-open { border-color: transparent; box-shadow: var(--shadow); }
.acc__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; text-align: left; font-weight: 600; color: var(--ink); font-size: 15.5px;
}
.acc__head .ic {
  width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--bg-soft); color: var(--ink);
  transition: transform var(--dur) var(--ease-smooth), background-color var(--dur), color var(--dur);
}
.acc.is-open .acc__head { color: var(--red); }
.acc.is-open .acc__head .ic { transform: rotate(45deg); background: var(--red); color: #fff; }
/* grid-rows trick: animates a single small panel without JS height measurement */
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease-smooth); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { padding: 0 22px 20px; font-size: 14.5px; }

/* =========================================================
   CTA strip
   ========================================================= */
.strip { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.strip::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px);
}
.strip__inner { position: relative; display: flex; align-items: center; gap: 40px; padding-top: 38px; padding-bottom: 38px; }
.strip__left { display: flex; align-items: center; gap: 16px; flex: none; }
.strip__left small { display: block; font-size: 13px; opacity: .9; }
.strip__left a { font-size: 26px; font-weight: 800; }
.strip__ic { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 22px; }
.strip__text { flex: 1; font-size: 16px; opacity: .95; }

/* =========================================================
   Projects
   ========================================================= */
.center-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
  padding: 10px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px; color: var(--ink);
  background: var(--bg-soft); transition: background-color var(--dur), color var(--dur), transform var(--dur-fast) var(--ease-sharp);
}
.filter:hover { color: var(--red); }
.filter:active { transform: scale(.96); }
.filter.is-active { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; gap: 24px; }
.proj {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
  transition: opacity var(--dur) var(--ease-smooth), transform var(--dur) var(--ease-smooth);
}
.proj--wide { grid-column: span 2; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-smooth); }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,15,18,.85) 0%, rgba(14,15,18,0) 55%); }
.proj:hover img { transform: scale(1.08); }
.proj__info { position: absolute; left: 24px; bottom: 22px; right: 80px; z-index: 1; }
.proj__info small { display: block; font-size: 12.5px; color: #ff6b71; font-weight: 600; margin-bottom: 4px; }
.proj__info strong { font-size: 20px; font-weight: 700; }
.proj__go {
  position: absolute; right: 22px; bottom: 22px; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; font-size: 18px;
  transform: translateY(12px) scale(.8); opacity: 0;
  transition: transform var(--dur) var(--ease-smooth), opacity var(--dur);
}
.proj:hover .proj__go, .proj:focus-visible .proj__go { transform: none; opacity: 1; }
.proj.is-hidden { display: none; }
.proj.is-entering { opacity: 0; transform: scale(.96); }

/* =========================================================
   Stats
   ========================================================= */
.stats {
  padding: 90px 0;
  background: linear-gradient(180deg, #fff 50%, var(--dark) 50%);
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: 38px 24px;
  text-align: center; box-shadow: var(--shadow-red); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease-smooth), opacity var(--dur-slow) var(--ease-smooth);
}
.stat::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; top: -60px; }
.stat:hover { transform: translateY(-6px); }
.stat__ic { width: 54px; height: 54px; margin: 0 auto 16px; color: #fff; }
.stat strong { display: block; font-size: 42px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; opacity: .9; }

/* =========================================================
   Team
   ========================================================= */
.team { background: var(--dark); color: #a9abb4; padding-top: 30px; }
.team .title { color: #fff; }
.team .eyebrow { color: #ff5a61; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member { border-radius: var(--radius-lg); overflow: hidden; background: var(--dark-2); }
.member__img { aspect-ratio: 4 / 4.3; overflow: hidden; }
.member__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--dur-slow) var(--ease-smooth); }
.member:hover .member__img img { transform: scale(1.05); }
.member__bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--red); color: #fff; }
.member__bar h3 { color: #fff; font-size: 18px; }
.member__bar p { font-size: 13px; opacity: .9; }
.member__share { position: relative; }
.member__share > button { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 17px; }
.member__social {
  position: absolute; bottom: calc(100% + 10px); left: 0; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden;
  transition: opacity var(--dur) var(--ease-smooth), transform var(--dur) var(--ease-smooth), visibility var(--dur);
}
.member__social a { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); transition: background-color var(--dur-fast), color var(--dur-fast); }
.member__social a:hover { background: var(--dark); color: #fff; }
.member__share:hover .member__social, .member__share:focus-within .member__social, .member__share.is-open .member__social { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }

/* =========================================================
   Testimonials + form
   ========================================================= */
.testi { background: var(--bg-soft); }
.testi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.quotes { position: relative; display: grid; margin-top: 10px; }
.quote {
  grid-area: 1 / 1; margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity var(--dur) var(--ease-smooth), transform var(--dur) var(--ease-smooth), visibility var(--dur);
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.quote__mark { width: 42px; height: 42px; color: var(--red); margin-bottom: 12px; }
.quote blockquote { margin: 0 0 24px; font-size: 16px; color: var(--ink); line-height: 1.75; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption small { font-size: 13px; }
.stars { margin-left: auto; color: #f5a623; letter-spacing: 2px; }
.quotes__nav { display: flex; gap: 12px; margin-top: 26px; }
.qbtn { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow); transition: background-color var(--dur), color var(--dur), transform var(--dur-fast) var(--ease-sharp); }
.qbtn:hover { background: var(--red); color: #fff; }
.qbtn:active { transform: scale(.94); }

.formcard {
  background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: 46px 42px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-red);
}
.formcard::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); right: -110px; top: -110px; }
.formcard .eyebrow--light { color: #fff; }
.formcard h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 28px; }
.form { display: grid; gap: 14px; position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--radius); border: 2px solid transparent;
  background: #fff; color: var(--ink); outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--dark); box-shadow: 0 0 0 4px rgba(0,0,0,.15); }
.form [aria-invalid="true"], .help__form [aria-invalid="true"] { border-color: #ffd23f; }
.form__msg { min-height: 1.4em; font-size: 14px; font-weight: 500; color: #fff; }
.form__msg.is-err { color: #ffe27a; }

/* =========================================================
   Partners
   ========================================================= */
.partners { padding: 60px 0; border-bottom: 1px solid var(--line); }
.partners__row { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.partner {
  width: 150px; height: 150px; border-radius: 50%; border: 2px dashed #cfd1d7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #9a9ca5; letter-spacing: .04em;
  transition: color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-smooth), opacity var(--dur-slow) var(--ease-smooth);
}
.partner small { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.js .partner.reveal.is-in:hover, .partner:hover { color: var(--red); border-color: var(--red); transform: rotate(-6deg); }

/* =========================================================
   Blog
   ========================================================= */
.blog__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.post { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--dur) var(--ease-smooth), opacity var(--dur-slow) var(--ease-smooth); }
.js .post.reveal.is-in:hover, .post:hover { transform: translateY(-6px); }
.post__img { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-smooth); }
.post:hover .post__img img { transform: scale(1.06); }
.post__date { position: absolute; left: 18px; bottom: 0; background: var(--red); color: #fff; padding: 8px 14px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2; border-radius: var(--radius) var(--radius) 0 0; }
.post__date b { display: block; font-size: 22px; }
.post__body { padding: 24px 26px 28px; }
.post__meta { font-size: 12.5px; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.post h3 { font-size: 18.5px; line-height: 1.4; margin-bottom: 10px; }
.post h3 a, .mini h3 a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size var(--dur) var(--ease-smooth), color var(--dur); }
.post h3 a:hover, .mini h3 a:hover { color: var(--red); background-size: 100% 2px; }
.post .muted { font-size: 14.5px; margin-bottom: 16px; }
.blog__list { display: grid; gap: 18px; }
.mini { background: #fff; border-radius: var(--radius-lg); padding: 24px 26px; border-left: 4px solid var(--red); box-shadow: var(--shadow); }
.mini h3 { font-size: 17px; line-height: 1.45; }

/* =========================================================
   Help CTA
   ========================================================= */
.help { background: var(--red); position: relative; margin-top: 60px; }
.help::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px); }
.help__inner { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: end; }
.help__person { align-self: stretch; margin-top: -60px; }
.help__person img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.help__text { padding: 56px 0; color: #fff; }
.help__text .eyebrow--light { color: #fff; }
.help__text h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 26px; }
.help__form { display: flex; gap: 12px; flex-wrap: wrap; }
.help__form label { flex: 1 1 200px; }
.help__form input { width: 100%; padding: 15px 18px; border-radius: var(--radius); border: 2px solid transparent; outline: none; color: var(--ink); }
.help__form input:focus { border-color: var(--dark); }
.form__msg--light { margin-top: 12px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--dark); color: #9a9ca5; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 50px; padding-top: 90px; padding-bottom: 70px; }
.footer h4 { color: #fff; font-size: 19px; margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--red); }
.footer__about p { margin: 22px 0 24px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: var(--dark-3); display: grid; place-items: center; color: #fff; transition: background-color var(--dur), transform var(--dur) var(--ease-smooth); }
.footer__social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer__contact .ic { color: var(--red); margin-top: 5px; }
.footer a:hover { color: #fff; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color var(--dur), transform var(--dur) var(--ease-smooth); }
.footer__links a::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.footer__links a:hover { transform: translateX(4px); }
.footer__hours { margin-bottom: 22px; }
.footer__hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #34353d; }
.footer__hours b { color: #fff; font-weight: 600; }
.footer__bottom { border-top: 1px solid #2a2b32; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; }

.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-red);
  opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden;
  transition: opacity var(--dur) var(--ease-smooth), transform var(--dur) var(--ease-smooth), background-color var(--dur), visibility var(--dur);
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.totop:hover { background: var(--dark); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(8,8,10,.8); opacity: 0; transition: opacity var(--dur) var(--ease-smooth); }
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal__box { position: relative; width: min(900px, 100%); transform: scale(.95); transition: transform var(--dur) var(--ease-smooth); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 20px; }
.modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; color: #ccc; text-align: center; padding: 20px; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__frame code { color: #ff6b71; }

/* =========================================================
   Motion: scroll reveal (transform + opacity only)
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(var(--dist));
  transition: opacity var(--dur-slow) var(--ease-smooth), transform var(--dur-slow) var(--ease-smooth);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* after the reveal, drop the delay so hover transforms respond instantly */
.js .reveal.is-done { transition-delay: 0s; }
/* Low-end devices: shorter durations (class set by main.js) */
.low-end { --dur-slow: .3s; --dur: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { transform: none; transition: opacity .2s; transition-delay: 0s; }
  .hero__bg img, .play__ring::before { animation: none; }
  .svc:hover, .stat:hover, .post:hover, .partner:hover,
  .js .post.reveal.is-in:hover, .js .partner.reveal.is-in:hover { transform: none; }
  .ring__bar { transition: none; }
  .slider__track { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .header__call { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
  .header__cta { height: 46px; clip-path: none; border-radius: var(--radius); padding: 0 20px; }
  .about__grid, .future__grid, .testi__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__media, .future__media { max-width: 620px; }
  .ring-card { right: 16px; }
  .split-head { grid-template-columns: 1fr; gap: 10px; }
  .slider__track { grid-auto-columns: calc((100% - 30px) / 2); }
  .pgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { background: linear-gradient(180deg, #fff 25%, var(--dark) 25%); }
  .blog__grid { grid-template-columns: 1fr 1fr; }
  .blog__list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .help__inner { grid-template-columns: 260px 1fr; }
  .strip__inner { flex-wrap: wrap; gap: 20px; }
  .strip__text { flex-basis: 100%; order: 3; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  :root { --header-h: 72px; }
  .section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .topbar__info:first-child li:last-child, .topbar__info:last-child li:first-child { display: none; }
  .header__inner { padding-left: 16px; }
  .header__cta { display: none; }
  .burger { margin-right: 16px; }
  .logo__text { font-size: 20px; }
  .hero { min-height: 640px; }
  .hero__content { padding-top: 70px; padding-bottom: 150px; }
  .hero__badge { padding: 18px 22px 18px 44px; }
  .about__media { padding: 0 0 50px 30px; }
  .about__stamp { right: 0; top: 16px; }
  .checks { grid-template-columns: 1fr; }
  .slider__track { grid-auto-columns: 86%; gap: 16px; }
  .pgrid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .proj--wide { grid-column: auto; }
  .team__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .blog__grid, .blog__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .formcard { padding: 34px 22px; }
  .partner { width: 120px; height: 120px; font-size: 17px; }
  .partners__row { justify-content: center; }
  .help { margin-top: 0; }
  .help__inner { grid-template-columns: 1fr; gap: 0; }
  .help__person { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 70px; }
  .ring-card { position: relative; right: auto; bottom: auto; margin: -50px 16px 0; }
  .stars { display: none; }
  .stats { background: var(--dark); }
}
@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; }
  .quote { padding: 26px 22px; }
  .strip__left a { font-size: 22px; }
}

/* =========================================================
   MULTI-PAGE COMPONENTS
   ========================================================= */

/* ---------- Nav dropdowns ---------- */
.nav__dd { position: relative; }
.nav__dd > a { display: flex; align-items: center; gap: 4px; }
.nav__dd > a .ic { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-smooth); }
.nav__dd:hover > a .ic, .nav__dd:focus-within > a .ic { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 18px); left: 0; min-width: 230px; z-index: 60;
  background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px -18px rgba(0,0,0,.3);
  border-top: 3px solid var(--red); padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease-smooth), transform var(--dur) var(--ease-smooth), visibility var(--dur);
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 21px; } /* hover bridge */
.nav__dd:hover .nav__sub, .nav__dd:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 22px; font-weight: 500; font-size: 14px; color: var(--ink); transition: color var(--dur-fast), transform var(--dur) var(--ease-smooth); }
.nav__sub a::after { display: none; }
.nav__sub a:hover { color: var(--red); transform: translateX(4px); }

.drawer__list details summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.drawer__list details summary::-webkit-details-marker { display: none; }
.drawer__list details summary .ic { transition: transform var(--dur) var(--ease-smooth); }
.drawer__list details[open] summary .ic { transform: rotate(180deg); }
.drawer__list details[open] summary { color: var(--red); }
.drawer__list details ul { padding: 4px 0 8px 14px; border-left: 2px solid var(--red-50); margin: 8px 0; }
.drawer__list details ul a { border-bottom: 0; padding: 8px 0; font-weight: 500; font-size: 14.5px; }

/* ---------- Page hero / breadcrumb ---------- */
.phero { position: relative; overflow: hidden; background: var(--dark); color: #fff; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease-smooth) both; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,15,18,.92), rgba(14,15,18,.6)); }
.phero::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 38%; height: 12px; background: var(--red);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}
.phero__inner { padding-top: 120px; padding-bottom: 120px; }
.phero__title { color: #fff; font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.phero__title--long { font-size: clamp(28px, 3.6vw, 46px); max-width: 860px; line-height: 1.2; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 10px 20px; background: rgba(255,255,255,.08); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; width: fit-content; font-size: 14.5px; font-weight: 500; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: #ff6b71; }
.crumbs li + li::before { content: "/"; color: #8d8f98; }
.crumbs a { color: #fff; transition: color var(--dur-fast); }
.crumbs a:hover { color: #ff6b71; }

/* ---------- Generic helpers ---------- */
.section--soft { background: var(--bg-soft); }
.center-cta { text-align: center; margin-top: 50px; }
.container--narrow { max-width: 860px; }
.lead { font-size: 17.5px; color: var(--ink); margin-bottom: 22px; line-height: 1.7; }
.text-link { color: var(--red); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size var(--dur) var(--ease-smooth); }
.text-link:hover { background-size: 0 1px; }
.checks--light li { color: #fff; }
.checks--light .ic { background: rgba(255,255,255,.12); color: #fff; }
.stats--plain { background: #fff; }
.center-head > p:last-child { max-width: 620px; margin: 0 auto; }

/* ---------- Values ---------- */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.vcard {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease-smooth), opacity var(--dur-slow) var(--ease-smooth);
}
.vcard::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-smooth); }
.vcard:hover::after { transform: scaleX(1); }
.js .vcard.reveal.is-in:hover, .vcard:hover { transform: translateY(-6px); }
.vcard__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 20px; transition: background-color var(--dur), color var(--dur); }
.vcard:hover .vcard__ic { background: var(--red); color: #fff; }
.vcard__ic svg { width: 32px; height: 32px; }
.vcard h3 { font-size: 19px; margin-bottom: 8px; }
.vcard p { font-size: 14.5px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-1px); }
.timeline__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-bottom: 34px; align-items: center; }
.timeline__item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--red); transform: translate(-50%, -50%); }
.timeline__year { font-size: 44px; font-weight: 800; color: var(--red); text-align: right; line-height: 1; }
.timeline__card { background: var(--bg-soft); padding: 22px 26px; border-radius: var(--radius-lg); border-left: 4px solid var(--red); }
.timeline__card h3 { font-size: 18px; margin-bottom: 4px; }
.timeline__card p { font-size: 14.5px; }
.timeline__item:nth-child(even) .timeline__year { order: 2; text-align: left; }
.timeline__item:nth-child(even) .timeline__card { order: 1; border-left: 0; border-right: 4px solid var(--red); text-align: right; }

/* ---------- Why choose us ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why__item { display: flex; gap: 18px; padding: 28px; background: var(--dark-2); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.06); transition: border-color var(--dur), opacity var(--dur-slow) var(--ease-smooth), transform var(--dur-slow) var(--ease-smooth); }
.why__item:hover { border-color: rgba(227,35,44,.5); }
.why__ic { flex: none; width: 58px; height: 58px; border-radius: var(--radius); background: var(--red); color: #fff; display: grid; place-items: center; }
.why__ic svg { width: 30px; height: 30px; }
.why__item h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.why__item p { font-size: 14.5px; }

/* ---------- Service grid (light) ---------- */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.scard { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform var(--dur) var(--ease-smooth), opacity var(--dur-slow) var(--ease-smooth); }
.js .scard.reveal.is-in:hover, .scard:hover { transform: translateY(-6px); }
.scard__img { display: block; aspect-ratio: 16 / 10.5; overflow: hidden; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-smooth); }
.scard:hover .scard__img img { transform: scale(1.07); }
.scard__body { position: relative; padding: 48px 28px 30px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.scard:hover .svc__ic { transform: rotate(-6deg) scale(1.05); }
.scard h3 { font-size: 20px; margin-bottom: 10px; }
.scard h3 a:hover { color: var(--red); }
.scard p { font-size: 14.5px; margin-bottom: 18px; flex: 1; }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 34px 26px 30px; box-shadow: var(--shadow); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 62px; right: -24px; width: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px); }
.step__num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 18px; box-shadow: var(--shadow-red); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }

/* ---------- Duo cards ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.duo__card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 40px; border-top: 4px solid var(--red); }
.duo__card .feature__ic { margin-bottom: 20px; }
.duo__card h3 { font-size: 24px; margin-bottom: 12px; }
.duo__card p { margin-bottom: 22px; }
.duo__card .checks { grid-template-columns: 1fr; margin-bottom: 0; }
.duo__card--dark { background: var(--dark); color: #a9abb4; }
.duo__card--dark h3 { color: #fff; }

/* ---------- Testimonial cards ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tcard { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-bottom: 4px solid transparent; transition: border-color var(--dur), opacity var(--dur-slow) var(--ease-smooth), transform var(--dur-slow) var(--ease-smooth); }
.tcard:hover { border-bottom-color: var(--red); }
.tcard blockquote { margin: 0 0 24px; color: var(--ink); flex: 1; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; }
.tcard figcaption img, .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); flex: none; }
.avatar { display: grid; place-items: center; background: var(--dark); color: #fff; font-weight: 700; font-size: 16px; }
.quote figcaption .avatar { width: 56px; height: 56px; }
.tcard figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.tcard figcaption small { font-size: 12.5px; }
.tcard .stars { font-size: 13px; }
.quotes__nav { align-items: center; }
.quotes__nav .link-arrow { margin-left: 12px; }

.rating { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); background: var(--dark); color: #fff; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 80px; }
.rating > div { padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-left: 1px solid rgba(255,255,255,.08); }
.rating strong { font-size: 38px; font-weight: 800; line-height: 1; }
.rating span:not(.stars) { font-size: 13.5px; color: #a9abb4; }
.rating__score { background: var(--red); border-left: 0 !important; }
.rating__score span:not(.stars) { color: #fff; opacity: .9; }
.rating__score .stars { margin: 0; color: #fff; }

/* ---------- Two-column with sidebar ---------- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 50px; align-items: start; }
.with-side--left { grid-template-columns: 320px minmax(0, 1fr); }
.sidebar { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-box { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 30px; }
.side-title { font-size: 19px; margin-bottom: 20px; padding-bottom: 12px; position: relative; }
.side-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--red); }
.side-list li + li { margin-top: 8px; }
.side-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 18px; background: #fff; border-radius: var(--radius); font-weight: 600; font-size: 14.5px; color: var(--ink);
  transition: background-color var(--dur), color var(--dur);
}
.side-list a span { font-size: 12.5px; min-width: 28px; height: 24px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); color: var(--text); transition: background-color var(--dur), color var(--dur); }
.side-list a .ic { transition: transform var(--dur) var(--ease-smooth); }
.side-list a:hover, .side-list a.is-active { background: var(--red); color: #fff; }
.side-list a:hover span, .side-list a.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.side-list a:hover .ic { transform: translateX(4px); }
.side-box--red { background: var(--red); color: #fff; text-align: center; position: relative; overflow: hidden; }
.side-box--red::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px); pointer-events: none; }
.side-box--red > * { position: relative; }
.side-box--red h3 { color: #fff; font-size: 21px; margin: 14px 0 8px; }
.side-box--red p { font-size: 14.5px; opacity: .92; margin-bottom: 14px; }
.side-box__ic { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--red); display: inline-grid; place-items: center; font-size: 24px; }
.side-box__phone { display: block; font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.footer__hours--light li { border-bottom-color: var(--line); }
.footer__hours--light b { color: var(--ink); }
.footer__hours--light { margin-bottom: 0; }

.side-search { display: flex; background: #fff; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; transition: border-color var(--dur-fast); }
.side-search:focus-within { border-color: var(--red); }
.side-search input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; outline: none; color: var(--ink); }
.side-search button { width: 52px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 18px; }
.recent li + li { margin-top: 16px; }
.recent a { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.4; transition: color var(--dur-fast); }
.recent a:hover { color: var(--red); }
.recent img { width: 76px; height: 70px; border-radius: var(--radius); object-fit: cover; flex: none; }
.recent small { display: block; color: var(--red); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags a, .tags span { padding: 7px 14px; background: #fff; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--ink); transition: background-color var(--dur), color var(--dur); }
.tags a:hover { background: var(--red); color: #fff; }
.tags strong { color: var(--ink); margin-right: 4px; }

/* ---------- Service detail ---------- */
.sd__hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px; aspect-ratio: 16 / 8.5; }
.sd__hero img { width: 100%; height: 100%; object-fit: cover; }
.sd__hero .post__date { left: 26px; }
.sd__features { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 30px; margin: 34px 0; border-left: 4px solid var(--red); }
.sd__features h3 { font-size: 20px; margin-bottom: 18px; }
.sd__features .checks { margin-bottom: 0; }
.sd__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 44px; }
.sd__gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.sd__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-smooth); }
.sd__gallery figure:hover img { transform: scale(1.06); }
.sd__gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font-size: 13.5px; font-weight: 600; background: linear-gradient(0deg, rgba(14,15,18,.85), transparent); }
.sd__subtitle { font-size: 24px; margin-bottom: 20px; }

/* ---------- Prose (article/legal) ---------- */
.prose { color: var(--text); font-size: 16px; line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.8em 0; padding: 28px 32px 28px 90px; background: var(--dark); color: #fff; font-size: 18px; font-weight: 500; line-height: 1.6;
  border-radius: var(--radius-lg); position: relative;
}
.prose blockquote::before { content: "\201C"; position: absolute; left: 26px; top: 12px; font-size: 80px; line-height: 1; color: var(--red); font-family: Georgia, serif; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.post .post__img { display: block; }
.post.is-hidden { display: none; }
.blog-filter { margin-bottom: 26px; padding: 14px 20px; background: var(--bg-soft); border-left: 4px solid var(--red); border-radius: var(--radius); color: var(--ink); font-weight: 500; }
.blog-filter[hidden], .no-results[hidden] { display: none; }
.no-results { padding: 40px; text-align: center; background: var(--bg-soft); border-radius: var(--radius-lg); }
.article .post__meta { margin-bottom: 18px; font-size: 14px; }
.article__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 26px 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article__foot .tags a { background: var(--bg-soft); }
.share { display: flex; align-items: center; gap: 8px; }
.share strong { color: var(--ink); margin-right: 4px; }
.share a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; transition: background-color var(--dur), color var(--dur); }
.share a:hover { background: var(--red); color: #fff; }
.author { display: flex; gap: 24px; align-items: center; margin: 40px 0; padding: 30px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.author img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid var(--red); }
.author small { color: var(--red); font-weight: 600; font-size: 13px; }
.author h3 { font-size: 20px; margin: 2px 0 6px; }
.author p { font-size: 14.5px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav__link { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); font-weight: 600; color: var(--ink); line-height: 1.45; transition: border-color var(--dur), color var(--dur); }
.post-nav__link small { display: flex; align-items: center; gap: 6px; color: var(--red); font-size: 13px; margin-bottom: 6px; }
.post-nav__link--next { text-align: right; }
.post-nav__link--next small { justify-content: flex-end; }
.post-nav__link:hover { border-color: var(--red); color: var(--red); }

/* ---------- Team page ---------- */
.team__grid--bios { row-gap: 40px; }
.member__bio { padding: 18px 24px 22px; font-size: 14px; color: var(--text); background: #fff; }
.section:not(.team) .member { box-shadow: var(--shadow); }
.careers__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.careers__media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius-lg); }
.jobs li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--bg-soft); border-radius: var(--radius); border-left: 4px solid var(--red); }
.jobs li + li { margin-top: 12px; }
.jobs h3 { font-size: 16.5px; }
.jobs small { font-size: 13px; }

/* ---------- FAQ page ---------- */
.faq-group { margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group h3 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.faq-group h3::before { content: ""; width: 26px; height: 3px; background: var(--red); }

/* ---------- Contact ---------- */
.cinfo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cinfo__card { text-align: center; background: #fff; border-radius: var(--radius-lg); padding: 44px 30px 36px; box-shadow: var(--shadow); border-bottom: 4px solid var(--red); transition: transform var(--dur) var(--ease-smooth), opacity var(--dur-slow) var(--ease-smooth); }
.js .cinfo__card.reveal.is-in:hover, .cinfo__card:hover { transform: translateY(-6px); }
.cinfo__ic { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: var(--shadow-red); }
.cinfo__card h3 { font-size: 20px; margin-bottom: 8px; }
.cinfo__card p { margin-bottom: 14px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact__grid { align-items: start; }
.contact__side { display: grid; gap: 24px; }
.contact__side .side-box { background: #fff; }
.contact__side .tags span { background: var(--bg-soft); }
.map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
#quote { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- 404 ---------- */
.nf { text-align: center; }
.nf__inner { max-width: 680px; }
.nf__code { font-size: clamp(110px, 20vw, 200px); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; margin-bottom: 10px; }
.nf__code span { color: var(--red); }
.nf__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Reduced motion for new components ---------- */
@media (prefers-reduced-motion: reduce) {
  .phero__bg img { animation: none; }
  .vcard:hover, .scard:hover, .cinfo__card:hover,
  .js .vcard.reveal.is-in:hover, .js .scard.reveal.is-in:hover, .js .cinfo__card.reveal.is-in:hover { transform: none; }
}

/* ---------- Responsive: new components ---------- */
@media (max-width: 1200px) {
  .nav__list a { padding: 10px 10px; }
  .nav__list a::after { left: 10px; right: 10px; }
}
@media (max-width: 1080px) {
  .vgrid, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .why__grid, .sgrid, .tgrid { grid-template-columns: repeat(2, 1fr); }
  .with-side, .with-side--left { grid-template-columns: minmax(0, 1fr); }
  .with-side--left .sidebar { order: 2; }
  .sidebar { position: static; }
  .rating { grid-template-columns: repeat(2, 1fr); }
  .rating > div:nth-child(3) { border-left: 0; }
  .careers__grid { grid-template-columns: 1fr; gap: 50px; }
  .careers__media { max-width: 620px; }
  .cinfo { gap: 18px; }
  .phero__inner { padding-top: 90px; padding-bottom: 90px; }
}
@media (max-width: 760px) {
  .vgrid, .steps, .why__grid, .sgrid, .tgrid, .duo, .post-grid, .cinfo, .sd__gallery, .post-nav { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; padding-left: 50px; }
  .timeline__item::before { left: 18px; top: 14px; }
  .timeline__year, .timeline__item:nth-child(even) .timeline__year { order: 0; text-align: left; font-size: 34px; }
  .timeline__item:nth-child(even) .timeline__card { order: 1; text-align: left; border-right: 0; border-left: 4px solid var(--red); }
  .duo__card { padding: 30px 24px; }
  .side-box { padding: 24px; }
  .rating { margin-bottom: 56px; }
  .rating > div { padding: 22px 12px; }
  .rating strong { font-size: 30px; }
  .author { flex-direction: column; text-align: center; }
  .post-nav__link--next { text-align: left; }
  .post-nav__link--next small { justify-content: flex-start; }
  .phero__inner { padding-top: 70px; padding-bottom: 70px; }
  .phero::after { width: 60%; }
  .prose blockquote { padding: 60px 22px 22px; }
  .jobs li { flex-direction: column; align-items: flex-start; }
}
