/* ScanLab SA — Swiss Precision · cool blue · side-rail chrome */
:root {
  --ink: #0B1F2A;
  --ink2: #143041;
  --accent: #1F6F8B;
  --accent-ink: #155A72;
  --highlight: #7AD7F0;
  --surface: #E8EEF2;
  --paper: #F4F7F9;
  --secondary: #94A3B8;
  --mist: #C5D4DE;
  --bg: #E8EEF2;
  --rail-w: 15.5rem;
  --util-h: 2rem;
  --radius: 0.125rem;
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@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;
  }
  .reveal, .reveal-side, .reveal-alt { opacity: 1 !important; transform: none !important; }
  .bg-video { display: none !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 0.975rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(1080px, 92vw); margin-inline: auto; }
.container-wide { width: min(1240px, 94vw); margin-inline: auto; }
.narrow { width: min(720px, 92vw); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.lede {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  max-width: 48ch;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  text-wrap: pretty;
}
.muted { color: color-mix(in srgb, var(--ink) 58%, transparent); font-size: 0.92rem; }
em { font-style: normal; color: var(--accent); }

/* —— Utility + side rail —— */
.util-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--util-h);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  display: flex; align-items: center;
}
.util-bar .util-inner {
  width: 100%;
  padding-inline: 1rem 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.util-bar a { color: var(--highlight); }
.util-bar a:hover { text-decoration: underline; }

.side-rail {
  position: fixed;
  top: var(--util-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 50;
  background: var(--paper);
  border-right: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  display: flex;
  flex-direction: column;
  padding: 1rem 0.85rem 1.25rem;
  overflow-y: auto;
}
.side-rail .logo-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.35rem 0.5rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  margin-bottom: 0.75rem;
}
.side-rail .logo-link .word {
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.02em;
}
.side-rail .logo-link .word span { color: var(--accent); font-weight: 500; }
.side-rail nav {
  display: flex; flex-direction: column; gap: 0.15rem; flex: 1;
}
.side-rail nav a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--ink2);
}
.side-rail nav a:hover,
.side-rail nav a.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink);
}
.side-rail .rail-cta {
  margin-top: auto;
  padding-top: 1rem;
}
.side-rail .rail-meta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--secondary);
  padding-inline: 0.5rem;
}

.nav-toggle {
  display: none;
  position: fixed;
  top: calc(var(--util-h) + 0.55rem);
  right: 0.85rem;
  z-index: 70;
  width: 2.5rem; height: 2.5rem;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: var(--radius);
  flex-direction: column; justify-content: center; align-items: center; gap: 0.28rem;
}
.nav-toggle span {
  display: block; width: 1.1rem; height: 1.5px; background: var(--ink);
}

.site-main {
  margin-left: var(--rail-w);
  margin-top: var(--util-h);
  min-height: calc(100vh - var(--util-h));
}

@media (max-width: 960px) {
  .side-rail {
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    box-shadow: 4px 0 24px color-mix(in srgb, var(--ink) 18%, transparent);
  }
  .side-rail.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .site-main { margin-left: 0; }
  .util-bar .util-hide-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.62rem 1.05rem;
  font-size: 0.84rem; font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-light {
  background: color-mix(in srgb, #fff 88%, transparent);
  color: var(--ink);
  border-color: color-mix(in srgb, #fff 40%, transparent);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }

/* Sections */
.section { padding: 3.25rem 0; }
.section-surface { background: var(--paper); }
.section--contrast {
  background: var(--ink);
  color: var(--surface);
}
.section--contrast .eyebrow { color: var(--highlight); }
.section--contrast .lede,
.section--contrast .muted { color: color-mix(in srgb, var(--surface) 72%, transparent); }
.section--contrast a { color: var(--highlight); }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.page-hero {
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  background: linear-gradient(180deg, var(--paper), var(--bg));
}
.page-hero--bleed { padding-bottom: 2.25rem; }
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--secondary);
  margin-bottom: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
}
.breadcrumbs a:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex; align-items: end;
  padding: 3.5rem 0 3rem;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-video-wrap, .bg-video, .bg-video-poster {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-video-wrap { position: absolute; inset: 0; }
.bg-video { position: absolute; inset: 0; object-fit: cover; }
.bg-video-poster { position: absolute; inset: 0; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--ink) 88%, transparent) 0%, color-mix(in srgb, var(--ink) 45%, transparent) 55%, color-mix(in srgb, var(--accent) 35%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 55%, transparent), transparent 50%);
}
.hero-content { position: relative; z-index: 2; }
.hero .lede { color: color-mix(in srgb, #fff 82%, transparent); }

@media (max-width: 640px) {
  .bg-video { display: none; }
  .hero { min-height: 58vh; }
}

/* Cards — full-bleed images (Big Letters bug fix) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.card-grid--journal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  container-type: inline-size;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  height: auto;
}
.card-body { padding: 0.95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-body .kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  font-weight: 500;
}
.card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* Range atlas — tighter Swiss masonry */
.range-atlas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}
.atlas-tile {
  grid-column: span 4;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
  border-radius: var(--radius);
}
.atlas-tile--wide { grid-column: span 6; }
.atlas-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.atlas-tile .af-body { padding: 0.85rem 0.95rem 1rem; }
@media (max-width: 900px) {
  .atlas-tile, .atlas-tile--wide { grid-column: span 6; }
}
@media (max-width: 560px) {
  .atlas-tile, .atlas-tile--wide { grid-column: span 12; }
}

/* Layout craft */
.split-editorial, .split-asymmetric, .product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split-asymmetric { grid-template-columns: 1.15fr 0.85fr; }
.asymmetric {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .split-editorial, .split-asymmetric, .product-hero-grid, .asymmetric {
    grid-template-columns: 1fr;
  }
}
.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* Spec tables — Swiss denseness */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
  font-family: var(--font-mono);
}
.spec-table th, .spec-table td {
  text-align: start;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spec-table td { font-family: var(--font-body); font-size: 0.9rem; }
.spec-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.spec-rail .spec-item {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
}
.spec-rail .spec-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-ink);
  margin-bottom: 0.2rem;
}
.spec-rail .spec-item span {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 800px) {
  .spec-rail { grid-template-columns: repeat(2, 1fr); }
}

.check-list { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.45rem; }
.check-list li {
  padding-inline-start: 1.1rem;
  position: relative;
  font-size: 0.92rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 0.45rem; height: 0.45rem;
  background: var(--accent);
  border-radius: 1px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.chip {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 999px;
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.proof-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.proof-item {
  padding: 1.1rem 1.15rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
}
@media (max-width: 700px) { .proof-rail { grid-template-columns: 1fr; } }

.journal-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}
.journal-section { margin-bottom: 1.5rem; }
.journal-section h2 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.byline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--secondary);
  margin-top: 0.75rem;
}
.soft-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-left: 3px solid var(--highlight);
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 3.5rem 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}
.cta-video-wrap { position: absolute; inset: 0; opacity: 0.35; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band .lede { margin-inline: auto; color: color-mix(in srgb, #fff 78%, transparent); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 3rem 0 1.5rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-link { color: #fff; margin-bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-brand p { max-width: 36ch; color: var(--secondary); margin-top: 0.5rem; }
.footer-company { margin-top: 1rem !important; font-size: 0.82rem; }
.footer-company a { color: var(--highlight); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 0.22rem 0;
  color: var(--mist);
}
.footer-col a:hover { color: var(--highlight); }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--secondary);
}
.footer-bottom a { color: var(--highlight); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Scroll reveals — varied */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 35%;
    }
    .reveal-side {
      animation: reveal-side linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .reveal-alt {
      animation: reveal-fade linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 45%;
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-side {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--highlight); z-index: 80;
  transform-origin: left;
}

/* Clear am.co.za/js/3.js floating widgets (Eric 2026-09-22):
   WhatsApp = bottom-right; Ask AI launchers = bottom-left.
   Rail CTAs must not sit under those fixed controls. */
.side-rail {
  padding-bottom: max(6.5rem, calc(24px + 56px + 1.25rem + env(safe-area-inset-bottom, 0px)));
}
.side-rail .rail-cta {
  position: relative;
  z-index: 1;
  margin-bottom: 0.25rem;
}

/* Content depth blocks (2026-09-22) */
.depth-block { padding-block: clamp(2.5rem, 5vw, 4rem); }
.depth-block .article-prose { max-width: 68ch; }
.depth-block .article-prose p { margin-bottom: 1.15rem; font-size: 1.05rem; line-height: 1.75; text-wrap: pretty; }
.depth-block .article-prose h2 { margin: 2.25rem 0 0.9rem; font-size: clamp(1.45rem, 2.2vw, 1.85rem); text-wrap: balance; }
.depth-block .article-prose h3 { margin: 1.75rem 0 0.7rem; font-size: 1.2rem; }
.depth-block .article-prose ul { margin: 0.75rem 0 1.25rem 1.15rem; }
.depth-block .article-prose li { margin-bottom: 0.45rem; line-height: 1.55; }
.depth-block .article-prose a { text-decoration: underline; text-underline-offset: 3px; }
.depth-aside {
  margin-top: 2rem; padding: 1.35rem 1.5rem; border-radius: 0.85rem;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  max-width: 68ch;
}
.depth-aside h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.depth-aside ul { margin: 0.4rem 0 0 1.1rem; }
.depth-split {
  display: grid; gap: 1.75rem; align-items: start;
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 2rem; max-width: 1100px;
}
.depth-split img { width: 100%; height: auto; border-radius: 1rem; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 800px) { .depth-split { grid-template-columns: 1fr; } }

/* ── Parker craft 2026-10-05 ───────────────────────────────────────────── */
/* Scroll progress: compositor-driven scroll timeline animating transform only
   (no per-scroll width/layout writes). main.js keeps an rAF scaleX fallback. */
.scroll-progress { width: 100%; transform: scaleX(0); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  @keyframes parker-scroll-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .scroll-progress { animation: parker-scroll-progress linear both; animation-timeline: scroll(root block); }
}

/* Nav no-wrap lock 2026-10-06: header menu labels never wrap (Fancy design-system rule) */
header nav a, header nav li, .site-header nav a, nav[aria-label="Primary"] a, .nav-links a, .nav-cluster a { white-space: nowrap; }

/* parker-am-reviews-20261006 */
.am-reviews {
  padding: 3.5rem 0 2.5rem;
}
.am-reviews .container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.am-reviews h2 {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.am-reviews .amr-root {
  --amr-bg: #E8EEF2;
  --amr-card-border: #C5D4DE;
  --amr-text: #0B1F2A;
  --amr-muted: #667085;
  --amr-star: #f5c518;
  --amr-link: #1F6F8B;
  --amr-radius: 0.125rem;
  --amr-font: inherit;
}
@media (max-width: 420px) {
  .am-reviews { padding: 2.5rem 0 1.75rem; }
  .am-reviews .container { width: calc(100% - 1.25rem); }
  .am-reviews .amr-root { --amr-pad: 1rem 1.05rem; --amr-photo-size: 40px; }
}
