/* =========================================================================
   RAD Best Trading — design system
   Tokens first, then base, layout, components, sections, pages.
   Brand: teal #356A79 (from the original theme), black + sky blue (logo),
   warm stone neutrals (from the product photography).
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour: semantic */
  --color-ink: #16191b;            /* primary text, dark surfaces */
  --color-ink-soft: #2a2f32;
  --color-text-muted: #5b574f;     /* 6.4:1 on paper */
  --color-text-on-dark: #f4f1ec;
  --color-text-on-dark-muted: #b9c3c6; /* 7.9:1 on deep */
  --color-surface: #ffffff;
  --color-surface-paper: #f7f4ef;
  --color-surface-stone: #ece6dd;
  --color-surface-deep: #1d3a42;   /* deep brand teal */
  --color-brand: #356a79;          /* 6.1:1 on white */
  --color-brand-strong: #27525e;
  --color-accent-sky: #a9c6e2;     /* logo swoosh, used on dark only */
  --color-border: #ddd6cb;
  --color-border-strong: #bab2a6;
  --color-border-on-dark: rgba(244, 241, 236, 0.18);
  --color-error: #a8261b;
  --color-success: #2f6b3f;
  --color-focus: #356a79;
  --color-focus-on-dark: #a9c6e2;

  /* type */
  --font-display: var(--font-body);
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.875rem;    /* 14 */
  --text-md: 1rem;        /* 16 */
  --text-lg: 1.125rem;    /* 18 */
  --text-h4: 1.25rem;     /* 20 */
  --text-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --text-h2: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
  --text-display: clamp(2.375rem, 1.5rem + 3.4vw, 4.5rem);
  --leading-tight: 1.05;
  --leading-heading: 1.15;
  --leading-body: 1.65;
  --tracking-eyebrow: 0.16em;

  /* space (from design.md scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 80px;
  --space-section: clamp(72px, 6vw + 40px, 136px);
  --gutter: clamp(16px, 4vw, 48px);
  --content-max: 1240px;
  --wide-max: 1440px;

  /* shape + depth */
  --radius-sm: 4px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(22, 25, 27, 0.05);
  --shadow-2: 0 18px 40px -24px rgba(22, 25, 27, 0.35);

  /* motion */
  --duration-instant: 150ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --header-height: 84px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 500;
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}
::selection {
  background: var(--color-accent-sky);
  color: var(--color-ink);
}

/* focus: always visible for keyboard users */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.bg-deep :focus-visible,
.bg-ink :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 2000;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: var(--color-text-on-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: var(--space-4);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide {
  max-width: calc(var(--wide-max) + 2 * var(--gutter));
}
.section {
  padding-block: var(--space-section);
}
.section--tight {
  padding-block: calc(var(--space-section) * 0.7);
}
.bg-paper {
  background: var(--color-surface-paper);
}
.bg-stone {
  background: var(--color-surface-stone);
}
.bg-deep {
  background: var(--color-surface-deep);
  color: var(--color-text-on-dark);
}
.bg-ink {
  background: var(--color-ink);
  color: var(--color-text-on-dark);
}

/* ---------- 4. Typography ---------- */
.display,
.h2,
.h3 {
  font-variant-numeric: lining-nums;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.h3 {
  letter-spacing: -0.015em;
}
.display {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
}
.h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
}
.h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
}
.h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.35;
}
.display em,
.h2 em {
  font-style: normal;
  color: var(--color-brand);
}
.bg-deep .h2 em,
.bg-ink .h2 em,
.site-footer .h2 em {
  color: var(--color-accent-sky);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-brand);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.bg-deep .eyebrow,
.bg-ink .eyebrow {
  color: var(--color-accent-sky);
}
.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 36em;
}
.muted {
  color: var(--color-text-muted);
}
.bg-deep .lead,
.bg-deep .muted,
.bg-ink .lead,
.bg-ink .muted {
  color: var(--color-text-on-dark-muted);
}
.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
  margin-bottom: var(--space-7);
}
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-6);
  }
}

.benefits li::before,
.steps li::before,
.stats strong,
.range-list a::before {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- 5. Buttons & links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.button i {
  font-size: 1rem;
  transition: transform var(--duration-normal) var(--ease-out);
}
.button:hover i {
  transform: translateX(3px);
}
.button:active {
  transform: translateY(1px);
}
.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.button--primary {
  background: var(--color-brand);
  color: #fff;
}
.button--primary:hover {
  background: var(--color-brand-strong);
}
.button--outline {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: transparent;
}
.button--outline:hover {
  background: var(--color-ink);
  color: var(--color-surface);
}
.button--light {
  background: var(--color-surface);
  color: var(--color-ink);
}
.button--light:hover {
  background: var(--color-accent-sky);
}
.button--outline-light {
  border-color: var(--color-border-on-dark);
  color: var(--color-text-on-dark);
}
.button--outline-light:hover {
  border-color: var(--color-text-on-dark);
}
.button--sm {
  min-height: 44px;
  padding: 0 22px;
  font-size: var(--text-sm);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow i {
  transition: transform var(--duration-normal) var(--ease-out);
}
.link-arrow:hover i {
  transform: translateX(4px);
}
.text-link {
  border-bottom: 1px solid var(--color-border-strong);
  transition: border-color var(--duration-fast);
}
.text-link:hover {
  border-color: currentColor;
}

/* ---------- 6. Utility bar ---------- */
.utility-bar {
  background: var(--color-ink);
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-sm);
}
.utility-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 44px;
}
.utility-bar ul {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.utility-bar a:hover {
  color: var(--color-text-on-dark);
}
.utility-bar i {
  margin-right: 6px;
  color: var(--color-accent-sky);
}
.social {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-fast);
}
.social a:hover {
  background: rgba(244, 241, 236, 0.1);
}
.social svg {
  width: 18px;
  height: 18px;
}
.social svg [stroke] {
  stroke: currentColor;
}
.social svg [fill]:not([fill="none"]):not([fill="white"]) {
  fill: currentColor;
}
@media (max-width: 899px) {
  .utility-bar .utility-address,
  .utility-bar .utility-email {
    display: none;
  }
}

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  transition: top var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal);
}
.site-header.scrollHeader {
  box-shadow: var(--shadow-1);
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-height);
}
.brand img {
  height: 34px;
  width: auto;
}
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
}
.primary-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-height);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-ink-soft);
  transition: color var(--duration-fast);
}
.primary-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}
.primary-nav .nav-link:hover,
.primary-nav .nav-link.is-active {
  color: var(--color-ink);
}
.primary-nav .nav-link:hover::after,
.primary-nav .nav-link.is-active::after {
  transform: scaleX(1);
}
.nav-item--mega {
  display: flex;
  align-items: center;
}
.mega-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border: 0;
  background: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.mega-toggle i {
  font-size: 12px;
  transition: transform var(--duration-normal) var(--ease-out);
}
.mega-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    visibility 0s linear var(--duration-normal);
}
.nav-item--mega.is-open .mega,
.nav-item--mega:hover .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.mega-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-7);
  padding-block: var(--space-6);
}
.mega-title {
  margin-bottom: var(--space-4);
}
.mega-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-6);
}
.mega-list a {
  display: grid;
  gap: 2px;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}
.mega-list strong {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.mega-list strong i {
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--duration-normal) var(--ease-out);
  color: var(--color-brand);
}
.mega-list a:hover strong i,
.mega-list a:focus-visible strong i {
  opacity: 1;
  transform: none;
}
.mega-list span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.mega-list a[aria-current="page"] strong {
  color: var(--color-brand);
}
.mega-feature {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}
.mega-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mega-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}
.icon-button:hover {
  border-color: var(--color-ink);
}
.icon-button i {
  font-size: 18px;
}
.menu-button {
  display: none;
}
@media (max-width: 1199px) {
  .primary-nav,
  .header-actions .button {
    display: none;
  }
  .menu-button {
    display: inline-grid;
  }
  :root {
    --header-height: 72px;
  }
}

/* mobile drawer (Bootstrap offcanvas provides behaviour) */
.drawer.offcanvas {
  width: min(420px, 100vw);
  background: var(--color-surface);
  border-left: 0;
}
.drawer .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--gutter);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-height);
}
.drawer .offcanvas-header img {
  height: 30px;
  width: auto;
}
.drawer .offcanvas-body {
  padding: var(--space-4) var(--gutter) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.drawer-nav > li {
  border-bottom: 1px solid var(--color-border);
}
.drawer-nav > li > a,
.drawer-nav > li > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}
.drawer-nav > li > button i {
  font-size: 14px;
  transition: transform var(--duration-normal) var(--ease-out);
}
.drawer-nav > li > button[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.drawer-sub {
  padding-bottom: var(--space-4);
}
.drawer-sub a {
  display: block;
  padding: 10px 0 10px var(--space-4);
  border-left: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 500;
}
.drawer-sub a[aria-current="page"],
.drawer-sub a:hover {
  color: var(--color-brand);
  border-left-color: var(--color-brand);
}
.drawer-contact {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.drawer-contact strong {
  color: var(--color-ink);
}
.drawer .social a {
  border: 1px solid var(--color-border);
  color: var(--color-ink);
}
.offcanvas-backdrop.show {
  opacity: 0.4;
}

/* search panel */
.search-panel.offcanvas {
  height: auto;
  border: 0;
  background: var(--color-surface);
}
.search-panel .wrap {
  padding-block: var(--space-6);
}
.search-form {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-ink);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
}
.search-form input:focus-visible {
  outline: none;
}
.search-form:focus-within {
  border-bottom-color: var(--color-brand);
  box-shadow: 0 1px 0 var(--color-brand);
}
.search-results {
  display: grid;
  margin-top: var(--space-4);
}
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.search-results a:hover,
.search-results a:focus-visible {
  color: var(--color-brand);
}
.search-results small {
  color: var(--color-text-muted);
}
.search-hint {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.search-close {
  position: absolute;
  top: var(--space-4);
  right: var(--gutter);
}

/* ---------- 8. Media helpers ---------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-stone);
}
.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame--contain {
  background: var(--color-surface);
}
.frame--contain img {
  object-fit: contain;
  padding: 6%;
}
.hover-zoom img {
  transition: transform 0.8s var(--ease-out);
}
.hover-zoom:hover img {
  transform: scale(1.035);
}

/* ---------- 9. Home: hero ---------- */
.home-hero {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: var(--space-section);
  background: var(--color-surface-paper);
}
.home-hero .wrap {
  display: grid;
  gap: var(--space-6);
}
.home-hero-copy {
  display: grid;
  gap: var(--space-5);
  align-content: center;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-2);
}
.home-hero-actions .call {
  font-weight: 600;
}
.home-hero-actions .call span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.home-hero-media {
  position: relative;
}
.home-hero-media .frame {
  aspect-ratio: 4 / 5;
}
.slideshow {
  isolation: isolate;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.slideshow .slide.is-active {
  opacity: 1;
  z-index: 1;
}
.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s linear;
}
.slideshow .slide.is-active img {
  transform: scale(1);
}
.slideshow-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(to top, rgba(22, 25, 27, 0.45), transparent);
}
.slideshow-dots {
  display: flex;
  gap: var(--space-2);
}
.slideshow-dots button {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.slideshow-dots button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color var(--duration-normal);
}
.slideshow-dots button[aria-pressed="true"]::before {
  background: #fff;
}
.slideshow-pause {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
}
.slideshow-pause i {
  width: 10px;
  height: 12px;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}
.slideshow-pause[aria-pressed="true"] i {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.slideshow :focus-visible {
  outline-color: #fff;
}
.home-hero-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.category-index {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-5);
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.category-index a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}
.category-index a:hover {
  color: var(--color-brand);
}
@media (min-width: 900px) {
  .home-hero .wrap {
    grid-template-columns: 7fr 5fr;
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
  }
}
@media (max-width: 899px) {
  .home-hero-media .frame {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 10. Home: about ---------- */
.about-grid {
  display: grid;
  gap: var(--space-7);
}
.about-media .frame {
  aspect-ratio: 4 / 5;
}
.about-copy {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.benefits {
  counter-reset: benefit;
  margin-top: var(--space-4);
}
.benefits li {
  counter-increment: benefit;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.benefits li:last-child {
  border-bottom: 1px solid var(--color-border);
}
.benefits li::before {
  content: counter(benefit, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-brand);
}
.benefits p {
  color: var(--color-text-muted);
}
@media (max-width: 899px) {
  .about-media .frame {
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: clamp(48px, 7vw, 120px);
    align-items: start;
  }
  .about-media {
    position: sticky;
    top: calc(var(--header-height) + 32px);
  }
}

/* ---------- 11. Home: product grid (3 x 3) ---------- */
.product-grid {
  display: grid;
  gap: var(--space-5);
}
.product-grid > li {
  display: flex;
}
.product-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}
.product-tile .frame {
  aspect-ratio: 4 / 3;
}
.tile-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  padding: var(--space-5);
}
.product-tile .num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-brand);
  font-variant-numeric: lining-nums tabular-nums;
}
.product-tile .name {
  font-size: var(--text-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.product-tile .desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
}
.tile-link i {
  transition: transform var(--duration-normal) var(--ease-out);
}
.product-tile:hover {
  border-color: var(--color-ink);
}
.product-tile:hover .name {
  color: var(--color-brand);
}
.product-tile:hover .tile-link i {
  transform: translateX(4px);
}
.product-tile--cta {
  display: grid !important;
  gap: var(--space-6);
  align-content: space-between;
  padding: clamp(24px, 3vw, 40px);
  background: var(--color-surface-deep);
  color: var(--color-text-on-dark);
}
.product-tile--cta .eyebrow {
  color: var(--color-accent-sky);
  margin-bottom: var(--space-4);
}
.product-tile--cta .h3 {
  margin-bottom: var(--space-3);
}
.product-tile--cta p:not(.eyebrow) {
  color: var(--color-text-on-dark-muted);
  max-width: 30em;
}
.product-tile--cta :focus-visible {
  outline-color: var(--color-focus-on-dark);
}
@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-tile--cta {
    grid-column: span 2;
  }
}
@media (min-width: 900px) {
  /* 7 products + a quote tile spanning two cells = a full 3 x 3 grid */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 12. Home: featured mosaic ---------- */
.mosaic {
  display: grid;
  gap: var(--space-5);
}
.mosaic figure {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.mosaic .frame {
  aspect-ratio: 4 / 5;
}
.mosaic figcaption {
  display: grid;
  gap: 2px;
}
.mosaic figcaption small {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.mosaic figcaption a {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.mosaic figcaption a:hover {
  color: var(--color-brand);
}
/* large portrait left; wide landscape top-right; two squares beneath it */
@media (min-width: 900px) {
  .mosaic {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-5);
    row-gap: var(--space-6);
  }
  .mosaic figure:first-child {
    grid-row: span 2;
    grid-template-rows: 1fr auto;
  }
  .mosaic figure:first-child .frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 520px;
  }
  .mosaic figure:first-child figcaption a {
    font-size: 1.375rem;
  }
  .mosaic figure:nth-child(2) {
    grid-column: span 2;
  }
  .mosaic figure:nth-child(2) .frame {
    aspect-ratio: 2 / 1;
  }
  .mosaic figure:nth-child(n + 3) .frame {
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 899px) {
  .mosaic {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-3);
    scrollbar-width: thin;
  }
  .mosaic figure {
    scroll-snap-align: start;
  }
}

/* ---------- 13. Process ---------- */
.steps {
  display: grid;
  gap: var(--space-6) var(--space-5);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-on-dark);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-accent-sky);
}
.steps p {
  color: var(--color-text-on-dark-muted);
  font-size: 0.9375rem;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 14. Testimonials + stats ---------- */
.testimonial-grid {
  display: grid;
  gap: var(--space-7);
}
.testimonial-media .frame {
  aspect-ratio: 4 / 5;
}
.quote-slider {
  position: relative;
  display: grid;
  gap: var(--space-6);
  align-content: center;
}
.quote-slide[hidden] {
  display: none;
}
.quote-slide {
  animation: quote-in var(--duration-slow) var(--ease-out);
}
@keyframes quote-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.quote-slide blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote-slide blockquote::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  font-size: 4em;
  line-height: 1;
  color: var(--color-brand);
}
.quote-slide figcaption {
  margin-top: var(--space-5);
  display: grid;
  gap: 2px;
}
.quote-slide figcaption strong {
  font-weight: 600;
}
.quote-slide figcaption span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.quote-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.quote-controls .count {
  min-width: 4ch;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border-strong);
}
.stats div {
  padding: var(--space-5) var(--space-4) 0 0;
}
.stats strong {
  display: block;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats span {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (min-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 4fr 7fr;
    gap: clamp(48px, 7vw, 120px);
    align-items: center;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats div + div {
    padding-left: var(--space-5);
    border-left: 1px solid var(--color-border);
  }
}
@media (max-width: 899px) {
  .testimonial-media .frame {
    aspect-ratio: 16 / 10;
  }
  .stats div {
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
  }
}

/* ---------- 15. Contact + form ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-7);
}
.contact-copy {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.contact-list {
  display: grid;
  margin-top: var(--space-3);
}
.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.contact-list dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-top: 3px;
}
.contact-list dd {
  margin: 0;
  font-weight: 500;
}
.contact-list a:hover {
  color: var(--color-brand);
}
.quote-form {
  display: grid;
  gap: var(--space-5);
  padding: clamp(24px, 4vw, 48px);
  background: var(--color-surface-paper);
  border: 1px solid var(--color-border);
}
.field-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label:not(.error) {
  font-size: var(--text-sm);
  font-weight: 600;
}
.field label .req {
  color: var(--color-brand);
}
.field input,
.field select,
.field textarea,
.newsletter input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-ink);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316191b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8a847a;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--color-ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(53, 106, 121, 0.22);
}
/* jQuery Validate states */
.field input.error,
.field select.error,
.field textarea.error {
  border-color: var(--color-error);
}
.field label.error {
  font-size: var(--text-sm);
  color: var(--color-error);
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.form-foot p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
/* loading + result messages added by main.js */
.send-wrap {
  position: relative;
}
.send-wrap .loading {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.flat-alert {
  position: relative;
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4);
  border-left: 3px solid currentColor;
  background: var(--color-surface);
  font-weight: 500;
}
.flat-alert.msg-success {
  color: var(--color-success);
}
.flat-alert.msg-error {
  color: var(--color-error);
}
.flat-alert .close {
  position: absolute;
  top: 50%;
  right: var(--space-4);
  transform: translateY(-50%);
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(48px, 6vw, 104px);
  }
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-text-on-dark-muted);
  font-size: 0.9375rem;
}
.footer-cta {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border-on-dark);
}
.footer-cta .h2 {
  color: var(--color-text-on-dark);
  max-width: 18ch;
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (min-width: 900px) {
  .footer-cta {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.footer-main {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-7);
}
.footer-main h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-on-dark);
}
.footer-main li + li {
  margin-top: 10px;
}
.footer-main a {
  transition: color var(--duration-fast);
}
.footer-main a:hover {
  color: var(--color-text-on-dark);
}
.footer-brand {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  max-width: 22rem;
}
.footer-brand img {
  height: 34px;
  width: auto;
}
.footer-brand .social {
  margin-left: -8px;
}
.footer-brand .social a {
  color: var(--color-text-on-dark);
}
.newsletter {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.newsletter h2 {
  margin-bottom: var(--space-1);
}
.newsletter form {
  display: flex;
  border-bottom: 1px solid var(--color-border-on-dark);
}
.newsletter input {
  border: 0;
  background: transparent;
  color: var(--color-text-on-dark);
  padding-inline: 0;
  border-radius: 0;
}
.newsletter input::placeholder {
  color: var(--color-text-on-dark-muted);
}
.newsletter button {
  border: 0;
  background: none;
  color: var(--color-text-on-dark);
  width: 48px;
  cursor: pointer;
}
.newsletter form:focus-within {
  border-bottom-color: var(--color-accent-sky);
}
.newsletter input:focus-visible {
  outline: none;
}
.newsletter p {
  font-size: var(--text-sm);
}
@media (min-width: 640px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border-on-dark);
  font-size: var(--text-sm);
}
.footer-bottom ul {
  display: flex;
  gap: var(--space-5);
}
.footer-bottom a:hover {
  color: var(--color-text-on-dark);
}

/* back to top (progress ring driven by main.js) */
.progress-wrap {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration-normal) var(--ease-out);
}
.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.progress-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--color-ink);
  border-top: 2px solid var(--color-ink);
  transform: translateY(2px) rotate(45deg);
}
.progress-wrap svg path {
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 3;
}

/* ---------- 17. Product pages ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.crumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--color-border-strong);
}
.crumbs a:hover {
  color: var(--color-brand);
}
.crumbs [aria-current] {
  color: var(--color-ink);
}

.p-hero {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: var(--space-section);
}
.p-hero-copy {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.p-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* gallery (main image + thumbnails) */
.gallery {
  display: grid;
  gap: var(--space-3);
}
.gallery-main {
  position: relative;
}
.gallery-main img {
  transition: opacity var(--duration-normal) var(--ease-out);
}
.gallery-main img.is-swapping {
  opacity: 0;
}
.gallery-thumbs {
  display: flex;
  gap: var(--space-3);
}
.gallery-thumbs button {
  position: relative;
  flex: 0 0 auto;
  width: clamp(64px, 12vw, 104px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: var(--color-surface-stone);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}
.gallery-thumbs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
}
.gallery-thumbs button:hover,
.gallery-thumbs button[aria-pressed="true"] {
  opacity: 1;
}
.gallery-thumbs button[aria-pressed="true"]::after {
  transform: scaleX(1);
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery--contain .gallery-thumbs img {
  object-fit: contain;
  padding: 6px;
  background: var(--color-surface);
}

/* variant A: interiors — headline row, then wide image */
.p-hero--wide .p-hero-top {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.p-hero--wide .gallery-main {
  aspect-ratio: 21 / 9;
}
@media (min-width: 900px) {
  .p-hero--wide .p-hero-top {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-7);
    align-items: end;
  }
}
@media (max-width: 899px) {
  .p-hero--wide .gallery-main {
    aspect-ratio: 4 / 3;
  }
}

/* variant B: surfaces — copy left, tall image right */
.p-hero--split .wrap {
  display: grid;
  gap: var(--space-6);
}
.p-hero--split .gallery-main {
  aspect-ratio: 4 / 5;
}
@media (min-width: 900px) {
  .p-hero--split .wrap {
    grid-template-columns: 6fr 5fr;
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
  }
  .p-hero--split .p-hero-copy {
    order: -1;
  }
}

/* variant C: products — object on stone, copy right */
.p-hero--object .wrap {
  display: grid;
  gap: var(--space-6);
}
.p-hero--object .gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
}
@media (min-width: 900px) {
  .p-hero--object .wrap {
    grid-template-columns: 5fr 6fr;
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
  }
}

/* the range */
.range-grid {
  display: grid;
  gap: var(--space-6);
}
.range-list {
  counter-reset: range;
}
.range-list a {
  counter-increment: range;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-weight: 500;
  transition: color var(--duration-fast), padding var(--duration-normal) var(--ease-out);
}
.range-list li:last-child a {
  border-bottom: 1px solid var(--color-border);
}
.range-list a::before {
  content: counter(range, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-brand);
}
.range-list a span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--duration-normal) var(--ease-out);
}
.range-list a:hover,
.range-list a:focus-visible {
  color: var(--color-brand);
}
.range-list a:hover span,
.range-list a:focus-visible span {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .range-list a span {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 900px) {
  .range-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(48px, 7vw, 120px);
  }
  .range-grid--columns {
    grid-template-columns: 1fr;
  }
  .range-grid--columns .section-head {
    max-width: 40rem;
  }
  .range-grid--columns .range-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-7);
  }
  .range-grid--columns .range-list li:nth-last-child(2) a {
    border-bottom: 1px solid var(--color-border);
  }
}
/* range as a matrix (variant C) */
.range-matrix {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
.range-matrix a {
  display: grid;
  gap: var(--space-5);
  align-content: space-between;
  min-height: 150px;
  padding: var(--space-5);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-normal);
}
.range-matrix a strong {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}
.range-matrix a span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.range-matrix a:hover {
  background: var(--color-surface);
}
.range-matrix a:hover span {
  color: var(--color-brand);
}

@media (min-width: 560px) {
  .range-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .range-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* related collections */
.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
}
.related a {
  display: grid;
  gap: var(--space-3);
}
.related .frame {
  aspect-ratio: 1 / 1;
}
.related strong {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.related a:hover strong {
  color: var(--color-brand);
}
@media (min-width: 640px) {
  .related {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .related {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* closing call to action */
.cta-band {
  display: grid;
  gap: var(--space-5);
  align-items: end;
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- 17b. Home motion: about + services ---------- */
/* About photo: wipe reveal, settles from a slight zoom, gentle parallax (--parallax set by JS) */
.about-media {
  position: relative;
}
.about-media .frame img {
  scale: 1.12;
  translate: 0 var(--parallax, 0px);
  transition: scale 1.6s var(--ease-out);
}
.js .about-media.reveal {
  opacity: 1;
  transform: none;
}
.js .about-media.reveal .frame {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out);
}
.js .about-media.reveal.is-visible .frame {
  clip-path: inset(0 0 0 0);
}
.about-media.is-visible .frame img,
html:not(.js) .about-media .frame img {
  scale: 1.06;
}
.about-badge {
  position: absolute;
  right: calc(var(--space-5) * -1);
  bottom: var(--space-6);
  display: grid;
  gap: 2px;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-left: 3px solid var(--color-brand);
  box-shadow: var(--shadow-2);
  opacity: 0;
  translate: 24px 0;
  transition: opacity 0.6s var(--ease-out) 0.7s, translate 0.8s var(--ease-out) 0.7s;
}
.about-badge strong {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-brand);
}
.about-badge span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.about-media.is-visible .about-badge,
html:not(.js) .about-badge {
  opacity: 1;
  translate: 0 0;
}
@media (max-width: 899px) {
  .about-badge {
    right: var(--space-4);
    bottom: var(--space-4);
  }
}

/* Benefits: divider draws in from the left; hover nudges the item */
.benefits li {
  position: relative;
  border-top: 0;
  transition: padding-left var(--duration-normal) var(--ease-out);
}
.benefits li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--color-border);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) var(--reveal-delay, 0ms);
}
.benefits li.is-visible::after,
html:not(.js) .benefits li::after {
  transform: scaleX(1);
}
.benefits li::before {
  transition: color var(--duration-normal), transform var(--duration-normal) var(--ease-out);
}
.benefits li:hover {
  padding-left: var(--space-3);
}
.benefits li:hover::before {
  color: var(--color-ink);
  transform: translateX(2px);
}

/* Services: soft light following the pointer (--mx/--my set by JS) */
[data-spotlight] {
  position: relative;
  isolation: isolate;
}
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(169, 198, 226, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity var(--duration-slow);
  pointer-events: none;
}
[data-spotlight].is-lit::before {
  opacity: 1;
}

/* Services: progress line that fills while the section scrolls (--progress 0..1) */
.steps-progress {
  display: none;
}
@media (min-width: 1100px) {
  .steps-progress {
    display: block;
    position: relative;
    height: 2px;
    margin-bottom: -2px;
    z-index: 1;
  }
  .steps-progress span {
    position: absolute;
    inset: 0;
    background: var(--color-accent-sky);
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
  }
}

/* Steps: numbers rise in one after another; hover lifts the step */
.steps li {
  transition: transform var(--duration-normal) var(--ease-out);
}
.steps li::before {
  display: inline-block;
  transition: color var(--duration-normal), transform 0.8s var(--ease-out) var(--reveal-delay, 0ms);
}
.js .steps li.reveal::before {
  transform: translateY(14px);
}
.js .steps li.reveal.is-visible::before {
  transform: none;
}
.steps li:hover {
  transform: translateY(-4px);
}
.steps li:hover::before {
  color: var(--color-text-on-dark);
}

/* ---------- 18. Reveal motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .about-media.reveal .frame {
    clip-path: none;
  }
  .about-badge {
    opacity: 1;
    translate: 0 0;
  }
  .js .steps li.reveal::before {
    transform: none;
  }
  .benefits li::after {
    transform: scaleX(1);
  }
  .about-media .frame img {
    scale: 1;
    translate: 0 0;
  }
  .steps-progress span {
    transform: scaleX(1);
  }
}
