/* Shared brand treatments for the original landing page. */
@font-face {
  font-family: "FZX Noto SC";
  src: url("assets/fzx-noto-sc-headings.woff2") format("woff2");
  font-style: normal;
  font-weight: 650 800;
  font-display: swap;
}

:root {
  --accent: #ffb858;
  --ink: #171918;
  --coal: #20221e;
  --coal-deep: #171918;
  --paper: #f7f4ec;
  --paper-quiet: #efebe2;
  --paper-warm: #f3e8d6;
  --shell: 1272px;
  --max: calc(var(--shell) + 88px);
  --nav-height: 71px;
  --orange: #f3a344;
  --orange-l: #ffb858;
  --orange-t: #854711;
  --navy: #171918;
  --navy2: #343933;
  --slate: #555a52;
  --violet: #854711;
  --line: #d9d6ca;
  --display-font: "FZX Noto SC", "Noto Sans SC", var(--sans);
  --section-title: clamp(32px, 3.9vw, 58px);
  --radius-small: 4px;
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-frame: 12px;
  --motion-fast: 150ms;
  --motion-ui: 220ms;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-variant-numeric: tabular-nums;
}

html, body { background: var(--paper); }
html { scroll-padding-top: var(--nav-height); }
body::before, body::after { display: none; }
body { color: var(--ink); }
::selection { background: #f9cd87; color: #181814; }
:focus-visible { outline: 2px solid #a56524; outline-offset: 4px; }
:is(#top, main > section)[tabindex="-1"]:focus { outline: none; }
.skip-link {
  position: fixed;
  z-index: 400;
  top: 10px;
  left: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  clip-path: inset(50%);
  transform: translateY(calc(-100% - 14px));
}
.skip-link:focus { clip-path: none; transform: none; }
:is(h1, h2, h3) {
  font-family: var(--display-font);
  font-weight: 740;
  font-synthesis: none;
  letter-spacing: 0;
}
h1 { font-weight: 800; }
h2 { text-wrap: balance; }
.eyebrow { gap: 9px; color: #57554c; font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.eyebrow::before { width: 8px; height: 9px; }
.hl, .sec-dark .hl, .light .hl { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.screen .lead { font-size: clamp(16px, 1.28vw, 18px); text-wrap: pretty; }
.progress { background: var(--accent); box-shadow: none; }

.nav {
  inset: 0 0 auto;
  width: auto;
  transform: none;
  border: 0;
  border-bottom: 1px solid #43443c;
  border-radius: 0;
  background: var(--coal);
  box-shadow: none;
  backdrop-filter: none;
  color: #f5f3ea;
  transition: none;
}
.nav-in { max-width: var(--max); padding: 0 44px; min-height: calc(var(--nav-height) - 1px); gap: clamp(16px, 2.15vw, 34px); }
.fz-wordmark { position: relative; display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.nav .fz-wordmark img, .footer .fz-wordmark img { display: block; width: 122px; height: auto; filter: none; }
/* Keep the supplied orange emblem visible while lightening the lettering on dark surfaces. */
.nav .fz-wordmark::after, .footer .fz-wordmark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/logo-horizontal.png") center / 100% auto no-repeat;
  clip-path: inset(0 0 0 39%);
  filter: brightness(0) invert(.95);
  pointer-events: none;
}
.nav ul { display: flex; align-items: center; gap: clamp(12px, 1.45vw, 24px); margin-inline: auto; color: #dddcd3; font-size: 15px; font-weight: 600; }
.nav ul a { position: relative; display: inline-flex; min-height: 44px; align-items: center; white-space: nowrap; }
.nav ul a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-fast) var(--ease-out);
}
.nav ul a:hover, .nav ul a[aria-current="location"] { color: #fff; }
.nav ul a:hover::after, .nav ul a[aria-current="location"]::after { transform: scaleX(1); }
.nav :focus-visible { outline-color: var(--accent); }
.nav-cta { align-items: center; }
.nav .btn-sm { justify-content: center; min-height: 44px; padding-inline: 20px; border-radius: var(--radius-frame); font-size: 15px; text-align: center; }
.nav-toggle { display: none; }
.btn { min-height: 46px; padding: 10px 16px; gap: 16px; border-radius: var(--radius-control); line-height: 1.35; box-shadow: none; font-weight: 700; transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out); }
.btn .ar { font-family: Arial, sans-serif; }
.btn-primary, .btn-primary:hover { color: #26221a; background: var(--accent); box-shadow: none; }
.btn-primary:hover { background: #ffc77c; }
.btn-line { color: var(--ink); border-color: #bdb9ac; background: transparent; backdrop-filter: none; }
.btn-line:hover { border-color: var(--ink); background: #fff; }
.role-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; margin-top: 8px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.source-note { margin-top: 14px; color: #575951; font-size: 13px; }

/* Hero copy, background and shared portrait details. */
.hero {
  min-height: 100svh;
  padding: 116px 0 92px;
  background: var(--paper);
  color: var(--ink);
}
.hero::before {
  z-index: 0;
  background: radial-gradient(58% 72% at 86% 42%, #e4ccab 0%, #f4e7d7 37%, transparent 78%);
}
.hero::after {
  top: 70px;
  right: 0;
  left: auto;
  bottom: 0;
  width: 58%;
  height: auto;
  transform: none;
  border-radius: 0;
  filter: none;
  background-image: linear-gradient(#493d2c12 1px, transparent 1px), linear-gradient(90deg, #493d2c12 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 62% 49%, #000 8%, transparent 72%);
}
.hero .wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(28px, 4.2vw, 66px); }
.hero-col { padding: 0; }
.hero h1 { color: var(--ink); }
.hero h1 .u { display: block; width: max-content; max-width: 100%; color: #3e4038; background: none; -webkit-text-fill-color: currentColor; }
.hero h1 .u::after { content: none; }
.hero .lead { max-width: 39ch; margin-top: 22px; color: #565951; font-size: clamp(16px, 1.28vw, 18px); line-height: 1.78; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-actions .btn { min-width: 118px; justify-content: space-between; }
.hero-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
  margin-top: 34px;
  padding-top: 16px;
  border-top-color: #d4cfc1;
  justify-content: stretch;
}
.hero-meta div { color: #25251f; letter-spacing: -.02em; white-space: normal; }
.hero-meta strong { display: block; font-family: var(--sans); font-size: clamp(21px, 2.05vw, 30px); font-weight: 800; line-height: 1.04; letter-spacing: -.065em; }
.hero-meta strong span { font-size: .63em; color: #6d5741; letter-spacing: 0; }
.hero-meta b { color: #4f5148; font-size: 12px; font-weight: 600; margin-top: 7px; }
.portraits { position: relative; isolation: isolate; }
.portrait-action { position: absolute; inset: 0; z-index: 3; }
.portrait-action:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.pimg::after { background: linear-gradient(180deg, transparent 47%, #151510db 100%); }
.pname { left: 11px; right: 8px; bottom: 11px; font-size: clamp(14px, 1.64vw, 23px); line-height: 1.05; letter-spacing: -.04em; }
.pname span { font-size: 10px; color: #eeebe0; letter-spacing: 0; }
.pjob { min-height: 62px; padding: 9px 10px 12px; border-top: 1px solid #45463c; color: #e7e3d8; }
.pjob b { color: #ffca84; }
.portrait-note { grid-column: 1 / -1; margin-top: 7px; text-align: right; font-size: 11px; color: #5b5b50; }
.scroll-hint { min-height: 44px; gap: 5px; color: #64594a; bottom: 13px; font-family: var(--sans); font-size: 12px; letter-spacing: .05em; }
.scroll-hint i { height: 20px; background: linear-gradient(#956030, transparent); animation: none; }
.scroll-hint:hover { color: var(--orange-t); }

/* Business scenarios remain a two-sided editorial spread. */
#pain { padding-block: clamp(68px, 8vw, 116px); background: var(--paper-quiet); color: var(--ink); }
#pain h2, #pain .hl { color: var(--ink); font-size: inherit; }
#pain h2, #engine h2 { font-size: var(--section-title); line-height: 1.17; letter-spacing: 0; }
#pain .lead { color: #55574e; }
#pain .split { display: block; overflow: visible; border: 0; border-block: 1px solid #d5d0c4; border-radius: 0; box-shadow: none; }
#pain .side {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: clamp(22px, 4vw, 60px);
  padding: clamp(22px, 3vw, 42px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#pain .side + .side { border-top: 1px solid #d5d0c4; }
#pain .side .lab { color: #705438; opacity: 1; }
#pain .side h3 { margin: 11px 0 7px; color: var(--ink); }
#pain .side .one { margin-bottom: 0; color: #4a4d44; font-size: 15px; opacity: 1; }
#pain .side ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px clamp(16px, 3vw, 46px); }
#pain .side li { padding: 10px 0 0; color: #42463d; border-top-color: #d4d0c4; line-height: 1.7; text-wrap: pretty; }
#pain .side li::before { content: none; }
#pain .side li b { color: var(--ink); font-size: 16px; }

/* The original engine constellation and its role details. */
#engine { padding-block: clamp(52px, 5vw, 72px); background: var(--coal-deep); color: #edede4; }
#engine h2, #engine h2 .hl { color: #faf7ee; }
#engine .eyebrow, #engine .lead { color: #cccdc0; }
#engine .nebula {
  height: clamp(465px, 42vw, 575px);
  margin-top: 34px;
  border: 1px solid #575548;
  border-radius: 9px;
  box-shadow: none;
  background: radial-gradient(ellipse at 51% 47%, #3b3427 0%, transparent 49%), #21221e;
  isolation: isolate;
}
.nebula::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#e0d2af15 1px, transparent 1px), linear-gradient(90deg, #e0d2af15 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse, #000 20%, transparent 84%);
  pointer-events: none;
}
.neb-links line { stroke: #cfb08281; stroke-width: .18; stroke-dasharray: 1 1.4; }
.neb-core {
  width: 106px;
  height: 106px;
  border: 1px solid #be9255;
  color: #f0c782;
  background: radial-gradient(circle at 45% 38%, #4b3d27, #28251d 75%);
  box-shadow: 0 0 48px #f1a7401a;
}
.neb-core i, .neb-core i::after { border-color: #c2924a46; }
.neb-stars i { background: #e0ba7d; }
.neb-tag { color: #f6f2e7; font-weight: 700; }
.neb-tag b, .neb-tag em { color: #d1c7b2; font-weight: 500; }
.neb-node img { object-position: 50% 38%; border-color: #e0d4ba; box-shadow: none; }
.neb-node .nn-ring, .neb-node.leader .nn-ring { inset: -5px; border-color: #99815e; box-shadow: none; }
.neb-node.leader .nn-ring { border-color: #c38b43; }
.neb-node:hover .nn-ring { border-color: #ffca80; }
.neb-node .nn-label { color: #fbf5e8; text-shadow: 0 2px 4px #111; }
.neb-node:focus-visible, .am-close:focus-visible { outline-color: var(--accent); }
#engine .neb-hint { color: #c6c4b7; }
.engine-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.engine-caption .neb-hint { margin: 0; text-align: left; }
.ambient-toggle { min-height: 44px; border: 0; background: none; color: #dedace; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ambient-toggle:focus-visible { outline-color: var(--accent); }
.nebula:is(.ambient-paused, .motion-aware:not(.in-view), .picked) :is(.neb-stars i, .nn-ring, .nd, .nn-links) { animation-play-state: paused; }
.neb-signals { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
.neb-signal { position: absolute; --signal-ink: #ffe1a1; --signal-halo: #ffe0a18c; }
.neb-signal.leader { --signal-ink: #ffbe69; --signal-halo: #ff9d5a89; }
.neb-spark { position: absolute; inset: 0; opacity: 0; }
.neb-spark::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  inset: -12px auto auto -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e6 0 9%, var(--signal-ink) 10% 20%, var(--signal-halo) 23%, transparent 70%);
}

.am-mask { background: #141512c9; backdrop-filter: none; }
.am-card {
  width: min(590px, 100%);
  max-height: calc(100dvh - 42px);
  overflow: auto;
  padding: 16px;
  gap: 24px;
  border: 1px solid #d2cbbd;
  border-radius: 10px;
  background: #fcfaf3;
  box-shadow: 0 28px 66px -24px #0d0e0cd4;
  animation-duration: .26s;
}
.am-imgwrap { width: 184px; }
.am-img { width: 100%; height: 246px; object-position: 50% 36%; border-radius: 6px; }
.am-body { padding: 10px 27px 10px 0; min-width: 0; }
.am-name { margin-top: 11px; color: var(--ink); font-size: 33px; line-height: 1.12; }
.am-role, .am-side { color: #794922; }
.am-job, .am-desc { color: #484a41; }
.am-desc { border-color: #ded7c7; }
.am-close { top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid #cfc8b9; border-radius: 5px; background: #faf8ef; color: #24251e; }
.am-close:hover { background: #f0e5d3; }
.footer .fz-wordmark { color: #f5f3e9; }
.footer-copy { margin-top: 8px; line-height: 1.7; }
.footer-credit { align-self: center; margin-left: auto; font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-col { animation: hero-copy-enter 520ms var(--ease-out) both; }
  .hero-col:focus-within { animation: none; }
  @keyframes hero-copy-enter {
    from { opacity: .5; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  #flow .step .bar i { overflow: hidden; }
  #flow .step.in .bar i::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 30%, #ffda9a 49%, #fff9e3 50%, transparent 72%);
    animation: flow-sheen 920ms var(--ease-out) 90ms both;
  }

  @keyframes flow-sheen {
    0% { opacity: 0; transform: translateX(-100%); }
    24% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .neb-signals { display: block; }
  .neb-spark { animation: signal-travel 4600ms linear infinite both; }
  .neb-core::before, .neb-core::after {
    content: '';
    position: absolute;
    inset: -11px;
    pointer-events: none;
    border: 1px solid #ffca75;
    border-radius: 50%;
    animation: signal-ripple 3400ms var(--ease-out) infinite both;
  }
  .neb-core::after { animation-delay: -1350ms; border-color: #d58e4a; }
  .nebula:is(.ambient-paused, .motion-aware:not(.in-view), .picked) .neb-spark,
  .nebula:is(.ambient-paused, .motion-aware:not(.in-view), .picked) .neb-core::before,
  .nebula:is(.ambient-paused, .motion-aware:not(.in-view), .picked) .neb-core::after { animation-play-state: paused; }

  @keyframes signal-travel {
    0% { opacity: 0; transform: translate(0, 0); }
    6% { opacity: 1; }
    25% { opacity: 1; }
    35%, 100% { opacity: 0; transform: translate(var(--travel-x), var(--travel-y)); }
  }
  @keyframes signal-ripple {
    0% { opacity: .8; transform: scale(.94); }
    54%, 100% { opacity: 0; transform: scale(1.87); }
  }
}

/* The fill travels as a transform, preserving the original stagger. */
#flow .step .bar i, #flow .step.in .bar i { width: 100%; }
#flow .step .bar i { transform: scaleX(0); transform-origin: left; transition: transform 540ms var(--ease-out); }
#flow .step.in .bar i { transform: scaleX(1); }

@media (max-width: 900px) {
  :root { --nav-height: 63px; }
  .nav:not(.menu-ready) { position: absolute; }
  .nav:not(.menu-ready) .nav-in { flex-wrap: wrap; }
  .nav:not(.menu-ready) ul { order: 3; flex-wrap: wrap; width: 100%; }
  .nav.menu-ready ul { display: none; }
  .nav.menu-ready .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #696c62;
    border-radius: var(--radius-frame);
    background: none;
    color: inherit;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .nav .nav-toggle:hover, .nav .nav-toggle[aria-expanded="true"] { border-color: currentColor; }
  .nav.menu-open ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: absolute; inset: 100% 0 auto; align-content: start; gap: 0 14px; margin: 0; padding: 5px 44px 13px; background: var(--coal); border-bottom: 1px solid #42463c; max-height: calc(100dvh - var(--nav-height)); overflow-y: auto; }
  .nav.menu-open ul a { display: inline-flex; width: 100%; }
  .scroll-hint { display: none; }
}

@media (max-width: 900px) {
  #pain .side { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #engine .nebula { height: auto; padding: 18px 16px 20px; }
  #engine .neb-group { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 11px; margin: 0; position: relative; z-index: 1; }
  #engine .neb-group + .neb-group { margin-top: 18px; padding-top: 15px; border-top: 1px solid #575548; }
  #engine .neb-tag { margin-bottom: 0; }
  #engine .neb-node { position: relative; left: auto !important; top: auto !important; min-width: 0; border-radius: 5px; }
  #engine .neb-node img { max-width: 83px; margin-inline: auto; border-width: 1px; }
  #engine .neb-node .nn-label { display: block; position: static; transform: none; margin-top: 5px; text-shadow: none; }
  .engine-caption { padding-top: 8px; }
  .ambient-toggle { display: none; }
}

@media (max-width: 820px) {
  .nav-in, .nav.menu-open ul { padding-inline: 20px; }
  .nav-in { gap: 10px; }
  .nav .fz-wordmark img { width: 108px; }
  .nav-cta { gap: 8px; }
  .nav .btn-sm { padding-inline: 12px; }
  .hero { min-height: auto; padding: 105px 0 62px; }
  .hero::after { width: 100%; }
  .hero .wrap { grid-template-columns: 1fr; gap: 27px; }
  .hero .lead { margin-top: 17px; }
  .hero-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 24px; padding-top: 12px; }
  .hero-meta b { font-size: 11px; }
  .hero-actions { margin-top: 19px; }
  .hero-p .pjob { padding: 7px 7px 8px; }
  .pname { left: 7px; bottom: 7px; flex-wrap: wrap; gap: 4px; }
  .pname span { font-size: 9px; }
  .portrait-note { margin-top: 0; }
  .footer-credit { margin-left: 0; }
}

@media (max-width: 560px) {
  .am-card { gap: 12px; }
  .am-imgwrap { width: 100%; }
  .am-img { height: min(30vh, 205px); object-position: 50% 35%; }
  .am-body { padding: 0 3px 4px; }
  .am-side { font-size: 10px; }
  .am-name { margin-top: 7px; font-size: 28px; }
  .am-job, .am-desc { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  #flow .step .bar i { transform: scaleX(1); }
  .hero-p:hover .pimg img { transform: none; }
}

/* Preserve the source sections while bringing their surfaces into one palette. */
:is(#flow, #brand, #leader, #case, #trust, #cta) {
  --section-rule: #d9d5ca;
  --section-muted: #575953;
  --section-accent: #8a501c;
  padding-block: clamp(68px, 8vw, 116px);
  min-height: auto;
  color: var(--ink, #171918);
}

:is(#flow, #leader, #case, #trust) .lead { color: var(--section-muted); }
:is(#flow, #brand, #leader, #case, #trust, #cta) h2 {
  font-size: var(--section-title);
  line-height: 1.17;
  letter-spacing: 0;
}
:is(#flow, #leader, #case, #trust) h2 { color: var(--ink, #171918); }
:is(#flow, #brand, #leader, #case, #trust, #cta) .eyebrow { color: var(--section-accent); }
:is(#flow, #brand, #case, #trust) .hl {
  color: var(--section-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* The six-step line keeps the source's progress animation. */
#flow { background: var(--paper-quiet); }
#flow .flow {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(36px, 4vw, 58px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
#flow .step { min-width: 0; padding: 0 17px 0 0; background: transparent; }
#flow .step + .step { padding-left: 17px; border-left: 1px solid var(--section-rule); }
#flow .step .no { font-size: 11px; color: var(--section-accent); }
#flow .step.jd .no { color: #64665d; }
#flow .step .t { color: var(--ink, #171918); font-size: 16px; }
#flow .step .d { color: var(--section-muted); font-size: 15px; }
#flow .step .bar { margin: 17px 0 18px; background: #d9d2c2; }
#flow .step .bar i,
#flow .step .bar::after { background: #a75b21; box-shadow: none; }
#flow .step.jd .bar i,
#flow .step.jd .bar::after { background: #888b7b; }
#flow .jd-band {
  display: block;
  max-width: 86ch;
  margin-top: 34px;
  padding: 14px 18px;
  border: 0;
  border-left: 2px solid #ac7136;
  border-radius: 0;
  background: #e9e3d6;
  color: #4c4b41;
  font-size: 14px;
  line-height: 1.7;
}
#flow .jd-band b { color: var(--ink, #171918); }

/* Workbench previews share their frame while showing different workflows. */
#brand {
  --section-accent: var(--accent, #ffb858);
  --section-muted: #c0c1b7;
  --section-rule: #44463d;
  color: #f6f5ed;
  background: var(--coal);
}
#brand h2, #brand .item .h, #brand .hs-items b { color: #f6f5ed; }
#brand h2 .hl, #leader h2 span { display: inline-block; }
#brand .lead, #brand .item .p, #brand .hs-items div { color: var(--section-muted); }
#leader { background: var(--paper-warm); }
#leader h2 span { text-decoration: underline 2px #b66a29; text-underline-offset: .16em; }
#leader .item .h, #leader .hs-items b { color: var(--ink, #171918); }
#leader .item .p, #leader .hs-items div { color: var(--section-muted); }
:is(#brand, #leader) .dual { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(34px, 5.25vw, 76px); align-items: center; }
:is(#brand, #leader) .dual > div { min-width: 0; }
:is(#brand, #leader) .four.tight { gap: 10px; }
:is(#brand, #leader) .four.tight .item {
  display: grid;
  grid-template-columns: minmax(72px, .24fr) 1fr;
  align-items: baseline;
  gap: 14px;
  padding-top: 12px;
  border-color: var(--section-rule);
}
:is(#brand, #leader) .four.tight .item .p { margin-top: 0; }
:is(#brand, #leader) .item .p { font-size: 15px; }
:is(#brand, #leader) .hs { margin-top: clamp(32px, 5vw, 64px); border-color: var(--section-rule); }
:is(#brand, #leader) .hs-lab { color: var(--section-accent); }
:is(#brand, #leader) .hs-items { gap: clamp(18px, 3vw, 36px); }
:is(#brand, #leader) .hs-items div { font-size: 14px; }
:is(#brand, #leader) .hs-items b { margin-bottom: 5px; font-size: 16px; }
.workbench-demo {
  min-width: 0;
  --workbench-padding: clamp(17px, 2.25vw, 28px);
  overflow: hidden;
  border: 1px solid #cfc9bc;
  border-radius: var(--radius-frame);
  background: #fffdfa;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 62px;
  padding: 12px var(--workbench-padding);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.workbench-head h3 { font-size: clamp(18px, 1.64vw, 24px); }
.workbench-label { padding: 3px 8px; border: 1px solid #c9c2b3; border-radius: var(--radius-small); color: #58574e; font-size: 13px; }
.workbench-body { padding: 18px var(--workbench-padding) 21px; }
.workbench-scope { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 12px; }
.workbench-scope :is(strong,h4) { color: var(--ink); font-size: 15px; }
.workbench-scope > span { color: #626259; font-size: 13px; }
.workbench-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 11px; }
.workbench-kpis > div { padding-top: 8px; border-top: 1px solid var(--line); }
.workbench-kpis dt { color: #575a51; }
.workbench-kpis dd { margin-top: 2px; font-size: clamp(19px, 1.92vw, 27px); line-height: 1.25; font-weight: 750; white-space: nowrap; }
.workbench-kpis dd small { margin-left: 2px; font-size: 13px; font-weight: 600; }
.workbench-chart { margin-top: 26px; }
.workbench-plot {
  margin-top: 10px;
  border-bottom: 1px solid #d7d1c5;
  background: repeating-linear-gradient(to bottom, #e5e0d5, #e5e0d5 1px, transparent 1px, transparent 25%);
}
.workbench-plot svg { display: block; width: 100%; height: clamp(92px, 9.5vw, 138px); }
.workbench-legend { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 10px; color: #55584e; font-size: 13px; }
.workbench-legend span { display: inline-flex; align-items: center; gap: 6px; }
.workbench-legend span::before { content: ""; width: 14px; border-top: 2px solid #474b46; }
.workbench-legend span + span::before { border-top: 2px dashed #a75b21; }
.workbench-advice { padding: 13px 14px; border-left: 2px solid #b4773b; background: var(--paper-warm); }
.workbench-advice-product { margin-top: 9px; font-size: 18px; font-weight: 750; }
.workbench-advice p:last-child { margin-top: 4px; }
.workbench-advice b { color: var(--orange-t); }
.workbench-tasks { margin-top: 14px; }
.workbench-tasks > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.workbench-tasks > div:last-child { padding-bottom: 0; border: 0; }
.workbench-tasks dt { font-weight: 700; }
.workbench-tasks dd { color: #565951; }
.workbench-tasks dd span { display: inline-block; }

/* Case photography and project results share a stable slide. */
#case { padding-block: clamp(60px, 6.15vw, 88px); background: var(--paper); }
.case-heading { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); align-items: end; gap: 13px clamp(24px, 5vw, 72px); }
.case-heading h2 { margin-top: 12px; }
#case h2 .hl { display: block; }
#case .case-intro { max-width: 27em; }
.case-gallery { min-width: 0; margin-top: clamp(24px, 2.85vw, 40px); }
.case-film {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  background: var(--paper-quiet);
  border: 1px solid var(--section-rule);
  border-radius: var(--radius-frame);
}
.case-gallery.is-ready .case-film, .case-thumbs { scrollbar-width: none; }
.case-gallery.is-ready .case-film::-webkit-scrollbar, .case-thumbs::-webkit-scrollbar { display: none; }
.case-film:focus-visible { outline-offset: 3px; }
.case-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.case-art { position: relative; min-height: clamp(298px, 28vw, 404px); background: #dfd4c3; }
.case-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-story { display: grid; align-content: center; padding: clamp(20px, 2.8vw, 42px); min-width: 0; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; color: var(--section-muted); font-size: 13px; line-height: 1.35; }
.case-meta span:first-child { color: var(--section-accent); font-weight: 700; }
.case-meta span + span { padding-inline-start: 9px; border-inline-start: 1px solid #b5ad9b; }
.case-story h3 { margin-top: 12px; font-family: var(--sans); font-size: clamp(25px, 2.68vw, 38px); font-weight: 750; line-height: 1.24; }
.case-summary { margin-top: 12px; min-height: 3.35em; max-width: 28em; color: var(--section-muted); font-size: 16px; line-height: 1.68; text-wrap: pretty; }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(8px, 1.05vw, 15px);
  margin-top: clamp(14px, 2.1vw, 29px);
  font-variant-numeric: tabular-nums;
}
.case-metrics > div { display: flex; min-width: 0; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding-top: 9px; border-top: 1px solid var(--section-rule); }
.case-metrics dd { color: var(--ink); font-size: clamp(23px, 2.35vw, 33px); font-weight: 750; line-height: 1.15; letter-spacing: -.018em; white-space: nowrap; }
.case-metrics dt { min-height: 2.8em; color: var(--section-muted); font-size: 13px; line-height: 1.4; text-wrap: balance; }
.case-metrics small { font-size: .55em; }
.case-key dd { color: var(--section-accent); }
.case-browser { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(10px, 2vw, 28px); align-items: center; margin-top: 11px; }
.case-browser[hidden] { display: none; }
.case-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding-block: 3px; }
.case-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: #41443b;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  transition: border-color var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out);
}
.case-thumb img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-small); background: #dfd4c3; }
.case-thumb span { display: block; margin: 5px 3px 2px; line-height: 1.35; }
.case-thumb[aria-current="true"] { border-color: #a87341; background: #eee4d3; color: var(--ink); }
.case-thumb:focus-visible { outline-offset: -1px; }
.case-pager { display: flex; align-items: center; gap: 7px; }
.case-page-count { order: 1; min-width: 51px; color: var(--section-muted); text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.case-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #bdb4a4;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.case-arrow[data-direction="1"] { order: 2; }
.case-arrow span { display: block; width: 8px; height: 8px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.case-arrow[data-direction="-1"] span { transform: rotate(-135deg); }
.case-arrow[aria-disabled="true"] { opacity: .46; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .case-thumb:not([aria-current="true"]):hover, .case-arrow:not([aria-disabled="true"]):hover { border-color: #92744f; background: #fcf9f0; }
}
.case-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#case .source-note { margin-top: 15px; }
#case .case-system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 14px clamp(18px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: clamp(18px, 2.5vw, 30px);
  border-top: 1px solid var(--section-rule);
}
#case .case-system h3 { font-size: clamp(20px, 2.25vw, 28px); line-height: 1.3; }
#case .case-system p { max-width: 680px; color: var(--section-muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
#case .scene-tags { margin-top: 32px; padding-top: 20px; border-color: var(--section-rule); }
#case .scene-tags span { border: 1px solid var(--section-rule); border-radius: var(--radius-small); background: transparent; color: #4a4c44; font-size: 13px; }

/* The distinct dark metrics block carries the original count-up. */
#trust { background: var(--paper-quiet); border-top: 1px solid var(--section-rule); }
#trust .trust-stat .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #42443a;
  border-radius: var(--radius-card);
  background: #42443a;
  box-shadow: none;
}
#trust .trust-stat .stats .stat { min-width: 0; padding: clamp(20px, 3.2vw, 40px) clamp(12px, 2.2vw, 28px); background: var(--coal); }
#trust .stat .v { color: #f9f6eb; font-size: clamp(29px, 4.2vw, 58px); white-space: nowrap; }
#trust .stat .v em { color: var(--accent, #ffb858); }
#trust .stat .pre, #trust .stat .src { color: #bcbfb0; }
#trust .stat .k { color: #ebebdf; }
#trust .trust-stat .src-note { color: var(--section-muted); font-size: 13px; }
#trust .trust-split { color: var(--section-accent); }
#trust .trust-split::after { background: var(--section-rule); }
#trust .trust-grid { gap: clamp(16px, 2.6vw, 34px); margin-top: 22px; }
#trust .trust {
  padding: 20px 0 5px;
  border: 0;
  border-top: 1px solid #c6c1b4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#trust .trust:hover { border-top-color: #a15e28; box-shadow: none; }
#trust .trust .tn { color: var(--section-accent); }
#trust .trust h3 { color: var(--ink, #171918); font-size: 20px; }
#trust .trust p { color: var(--section-muted); font-size: 15px; }

/* An asymmetrical closing frame holds the supplied QR intact. */
#cta {
  --section-accent: var(--accent, #ffb858);
  --orange-l: var(--accent, #ffb858);
  background: var(--coal-deep);
  color: #f7f5ec;
  text-align: left;
}
#cta::before {
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 60% 85% at 73% 48%, #000 10%, transparent 100%);
}
#cta::after { background: radial-gradient(ellipse, #e9891a1c, transparent 64%); }
#cta > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(218px, 28%);
  align-items: center;
  column-gap: 32px;
}
#cta .eyebrow { grid-column: 1; justify-content: start; }
#cta h2 { grid-column: 1; margin-top: 18px; color: #fbf9f1; }
#cta .lead { grid-column: 1; margin: 15px 0 0; color: #cacabd; }
#cta .contact-qr { grid-column: 2; grid-row: 1 / span 3; justify-self: center; display: grid; justify-items: center; }
#cta .qr-box {
  width: 172px;
  padding: 8px;
  margin: 0;
  border-radius: var(--radius-card);
  box-shadow: 0 16px 30px -24px #000;
}
#cta .qr-box img { display: block; height: auto; border-radius: 0; }
#cta .qr-cap { display: grid; gap: 2px; margin: 14px 0 0; color: #cacabd; font-size: 14px; line-height: 1.45; text-align: center; }
#cta .qr-cap strong { color: #f7f5ec; font-size: 15px; }
#cta .qr-cap span { white-space: nowrap; }
.footer { background: var(--coal-deep); color: #b9bcad; border-color: #36382e; }
.footer .wrap > div { display: flex; align-items: center; gap: 26px; }
.footer .wrap > div > div { margin-top: 0 !important; }
:is(#brand, #leader, #case, #trust) :is(.n, .v) { font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  #flow .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  #flow .step:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 1020px) {
  :is(#brand, #leader) .dual { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .workbench-demo { width: min(100%, 690px); }
}

@media (max-width: 1100px) {
  .case-thumb { font-size: 12px; }
}

@media (max-width: 980px) {
  .case-slide { grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr); }
  .case-thumbs { grid-auto-columns: minmax(100px, 1fr); }
  .case-metrics dd { font-size: 22px; }
}

@media (max-width: 880px) {
  #trust .trust-stat .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-heading { grid-template-columns: 1fr; }
  #case .case-system { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .case-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .case-art { min-height: 0; aspect-ratio: 1.78; }
  .case-story { align-content: start; padding: 15px 15px 10px; }
  .case-story h3 { margin-top: 8px; }
  .case-summary { margin-top: 8px; }
  .case-browser { grid-template-columns: minmax(0, 1fr); gap: 5px; margin-top: 7px; }
  .case-thumbs { grid-row: 2; grid-auto-columns: min(32%, 145px); gap: 7px; }
  .case-pager { grid-row: 1; justify-self: end; }
}

@media (max-width: 370px) {
  .case-story { padding-inline: 12px; }
  .case-metrics dd { font-size: 21px; }
}

@media (max-width: 640px) {
  #pain .side ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #pain .side li { padding: 12px 0; }
  #pain .side li:last-child { padding-bottom: 0; }
}

@media (max-width: 560px) {
  :root { --section-title: clamp(29px, 8.4vw, 35px); }
  :is(#flow, #brand, #leader, #case, #trust, #cta) { padding-block: 54px; }
  #case { padding-top: 43px; }
  .case-heading { gap: 10px; }
  .case-summary { min-height: 3.1em; font-size: 15px; line-height: 1.55; }
  .case-gallery { margin-top: 20px; }
  #flow .flow { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  #flow .step, #flow .step + .step { padding: 0; border-left: 0; }
  #flow .step .bar { margin: 10px 0 11px; }
  #flow .step .d { margin-top: 4px; }
  :is(#brand, #leader) .dual { gap: 28px; }
  .workbench-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #trust .trust-grid { gap: 12px; }
  #cta > .wrap { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  #cta :is(.eyebrow, h2, .lead, .contact-qr) { grid-column: 1; grid-row: auto; justify-self: start; }
  #cta .contact-qr { justify-items: start; }
  #cta .qr-box { width: 154px; margin-top: 24px; }
  #cta .qr-cap { text-align: left; }
  .footer .wrap > div { gap: 12px; align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-arrow, .case-thumb { transition: none; }
  #trust .trust:hover, #cta .qr-box:hover { transform: none; }
  #flow .step .bar i, .nav ul a::after, .btn, #trust .trust, #cta .qr-box { transition: none; }
  #flow .step .bar i { transform: none; }
}
