/* ==========================================================================
   CNBAI-005 · Visual system
   Deep optical field for headers, calm light surfaces for reading.
   Loaded last: it overrides tokens and presentation only, never layout logic.
   ========================================================================== */

:root {
  --ink: #2A2117;
  --muted: #796A57;
  --line: #E6D9C3;
  --paper: #F9F2E5;
  --teal: #885226;
  --cyan: #C29953;
  --blue: #392A1C;

  --void: #2A1D13;
  --void-2: #32241B;
  --steel: #483724;
  --glow: #DCB177;
  --amber: #F2B369;
  --hair: rgba(58, 38, 22, 0.05);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-padding-top: 96px; }

body {
  background: #FDFAF3;
  overflow-x: hidden;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #E9DBC4; color: #2C2119; }

/* ---------------------------------------------------------------- top bar */
.top {
  background: var(--void);
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: #A69179;
}
.top .wrap { padding-top: 9px; padding-bottom: 9px; }
.top a { color: #C0B29C; }
.top a:hover { color: var(--glow); }

/* ---------------------------------------------------------------- header */
header {
  background: rgba(253, 250, 243, 0.41);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header { height: 78px; }
.brand img { width: 50px; max-height: 40px; filter: saturate(1.05); }
.brand b { font-size: 17px; letter-spacing: .08em; font-weight: 650; }
.brand small { font-size: 8.5px; letter-spacing: .22em; color: #AC9983; }

nav { font-size: 12.5px; font-weight: 550; gap: 18px; }
nav > a { position: relative; padding: 6px 0; color: #3C3022; }
nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--teal); transition: right .3s var(--ease);
}
nav > a:hover::after, nav > a[aria-current="page"]::after, nav > a.active::after { right: 0; }
nav > a:hover { color: var(--teal); }

.languages { display: inline-flex; gap: 2px; padding: 3px; background: #F5F2ED; border-radius: 999px; }
.languages .langlink { padding: 4px 9px; border-radius: 999px; font-size: 10.5px; letter-spacing: .06em; color: #88735A; }
.languages .langlink[aria-current="true"] { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 3px rgba(39, 30, 23, 0.05); }

/* resources dropdown */
.navdrop { position: relative; display: inline-flex; }
.navdrop-btn {
  border: 0; background: none; font: inherit; color: #3C3022; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 5px; font-weight: 550;
}
.navdrop-btn i { font-style: normal; font-size: 8px; color: #AC9983; transform: translateY(-1px); }
.navdrop-btn:hover, .navdrop.open .navdrop-btn { color: var(--teal); }
.navmenu {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 196px; z-index: 40;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 5px; padding: 7px;
  box-shadow: 0 26px 54px -28px rgba(46, 34, 25, 0.27);
  display: none; animation: navin .18s var(--ease);
}
.navmenu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px;
}
.navdrop:hover .navmenu, .navdrop.open .navmenu { display: block; }
.navmenu a { display: block; padding: 9px 12px; border-radius: 3px; font-size: 12.5px; font-weight: 500; color: #534030; }
.navmenu a:hover { background: #FAF7F1; color: var(--teal); }
.navmenu a::after { display: none; }
@keyframes navin { from { opacity: 0; transform: translateY(-5px); } }

/* search trigger inside the nav */
.navsearch {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  border: 1px solid var(--line); background: #FFFFFF; border-radius: 999px;
  padding: 7px 10px 7px 12px; font-size: 12px; color: #927B60; font-weight: 500;
}
.navsearch:hover { border-color: #C7B69C; color: var(--teal); }
.navsearch kbd {
  font-family: var(--mono); font-size: 9.5px; color: #AC9983;
  border: 1px solid #E6D9C3; border-radius: 4px; padding: 1px 4px; background: #FBF8F4;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #F6F2EB;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(202, 104, 47, 0.11), transparent 62%),
    radial-gradient(700px 420px at 12% 92%, rgba(108, 81, 58, 0.14), transparent 66%),
    linear-gradient(168deg, #2A1D13 0%, #32241B 52%, #392A1D 100%);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(151, 95, 53, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(151, 95, 53, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #231A13 30%, transparent 78%);
}
/* a single grazing beam across the field */
.hero::after {
  content: ""; position: absolute; left: -20%; top: 34%; width: 140%; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(224, 178, 115, 0.27), rgba(224, 178, 115, 0.05), transparent);
  transform: rotate(-6deg);
  animation: sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 100% { opacity: .35; transform: rotate(-6deg) translateY(-14px); }
  50% { opacity: .9; transform: rotate(-6deg) translateY(14px); }
}

.hero-grid { min-height: 640px; position: relative; z-index: 1; grid-template-columns: 1.06fr .94fr; }
.hero .eyebrow { color: var(--glow); opacity: .9; }
.hero h1 {
  font-size: clamp(38px, 4.15vw, 62px);
  line-height: 1.1; letter-spacing: -.038em; font-weight: 600;
  margin: 0 0 26px; color: #FAF7F3;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #E7C38D 8%, #BF7A41 52%, #E0B780 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #BDAD9B; font-size: 15.5px; line-height: 1.95; max-width: 500px; }
.hero .microline { color: #847058; letter-spacing: .18em; }

.hero .button {
  background: linear-gradient(180deg, #AB4831, #913624);
  border-color: transparent; color: #201813; font-weight: 650;
  box-shadow: 0 10px 30px -12px rgba(179, 92, 42, 0.39);
}
.hero .button:hover { background: linear-gradient(180deg, #BC5838, #9B3D27); color: #201813; }
.hero .button.light {
  background: rgba(58, 38, 22, 0.04); border-color: rgba(58, 38, 22, 0.13); color: #F4F0E8;
  box-shadow: none;
}
.hero .button.light:hover { border-color: var(--glow); color: var(--glow); background: rgba(224, 178, 115, 0.05); }

/* instrument image: a deliberate product card on the dark field */
.hero-visual {
  margin: 30px 0 20px; padding: 22px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F9F6F1 58%, #F3EFE7 100%);
  border: 1px solid rgba(58, 38, 22, 0.24);
  border-radius: 10px;
  box-shadow: 0 44px 90px -34px rgba(58, 38, 22, 0.37), 0 0 0 1px rgba(224, 178, 115, 0.08) inset;
}
.hero-visual img {
  mix-blend-mode: multiply;
  filter: saturate(1.04) contrast(1.02);
  border-radius: 4px;
  transform: rotate(-2deg);
}
.hero-visual::before, .hero-visual::after { display: none; }
.visual-label {
  background: rgba(39, 29, 21, 0.4); color: #CDBEA6;
  border-left: 2px solid var(--glow); backdrop-filter: blur(6px);
  border-radius: 0 3px 3px 0; right: -6px; bottom: 12px;
}
.beam {
  background: linear-gradient(90deg, transparent, rgba(170, 88, 40, 0.37), transparent);
  box-shadow: 0 0 12px rgba(170, 88, 40, 0.17);
  top: 58%; left: 4%; width: 78%;
}

/* --------------------------------------------------------- path bar */
.pathbar {
  background: #32241B; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.pathbar .wrap { grid-template-columns: repeat(4, 1fr); }
.pathbar a {
  color: #D5C9B7; border-right: 1px solid var(--hair); padding: 24px 14px;
  font-size: 12.5px; letter-spacing: .02em; transition: background .25s, color .25s;
}
.pathbar a:first-child { padding-left: 0; }
.pathbar a:hover { background: rgba(224, 178, 115, 0.04); color: var(--glow); }
.pathbar span { color: var(--glow); font-family: var(--mono); font-size: 11px; opacity: .8; }

/* --------------------------------------------------------- page hero */
.pagehero {
  position: relative; overflow: hidden; color: #F8F4EE;
  padding: 62px 0 58px; border-bottom: 0;
  background:
    radial-gradient(760px 300px at 86% 0%, rgba(202, 104, 47, 0.09), transparent 66%),
    linear-gradient(160deg, #2A1D13, #32241B 72%, #3F2E1F);
}
.pagehero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(151, 95, 53, 0.05) 1px, transparent 1px);
  background-size: 72px 100%;
  mask-image: linear-gradient(to right, #231A13, transparent 82%);
}
.pagehero .wrap { position: relative; }
.pagehero .crumb { color: #9A8266; font-size: 11px; letter-spacing: .04em; }
.pagehero .crumb a { color: #BDAD9B; }
.pagehero .crumb a:hover { color: var(--glow); }
.pagehero .eyebrow { color: var(--glow); opacity: .85; margin-bottom: 14px; }
.pagehero h1 {
  color: #FBF8F4; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18;
  letter-spacing: -.03em; font-weight: 600; margin: 10px 0 16px;
}
.pagehero p { color: #BDAD9B; max-width: 760px; font-size: 14.5px; line-height: 1.85; }

/* --------------------------------------------------------- section rhythm */
section { padding: 92px 0; }
h2, .sectionhead h2 { letter-spacing: -.032em; font-weight: 600; line-height: 1.24; }
.sectionhead h2, h2 { font-size: clamp(26px, 2.6vw, 36px); }
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  color: var(--teal); font-weight: 600; margin-bottom: 16px;
}
.textlink {
  font-size: 12.5px; border-bottom: 1px solid #C3B7A4; padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.textlink:hover { color: var(--teal); border-color: var(--teal); }

/* --------------------------------------------------------- task grid */
.tasks { border: 1px solid var(--line); background: #FFFFFF; border-radius: 3px; overflow: hidden; }
.tasks a { border-right: 1px solid var(--line); transition: background .25s, transform .25s; }
.tasks a:hover { background: linear-gradient(180deg, #FAF7F3, #F6F2EB); }
.tasks b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tasks small { font-family: var(--mono); letter-spacing: .1em; color: #B09D88; }
.tasks svg { opacity: .85; transition: opacity .25s; }
.tasks a:hover svg { opacity: 1; }

/* --------------------------------------------------------- feature block */
.feature { background: linear-gradient(150deg, #F8F5F0, #FAF8F4 60%, #F7F3ED); border: 1px solid var(--line); border-radius: 4px; }
.feature .optics { filter: saturate(1.05); }

/* --------------------------------------------------------- product cards */
.products { gap: 26px 24px; }
.product { border: 0; padding: 0; }
.product .pic {
  height: 236px; background: linear-gradient(170deg, #FAF8F4, #F6F3ED);
  border: 1px solid var(--line); border-radius: 3px; margin-bottom: 16px;
  transition: border-color .3s, box-shadow .3s;
}
.product:hover .pic { border-color: #D8CAB5; box-shadow: 0 18px 36px -26px rgba(48, 37, 28, 0.22); }
.product .pic img { padding: 10px; }
.product small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; }
.product h3 { font-size: 16.5px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; margin: 8px 0 6px; }
.product .model { font-family: var(--mono); font-size: 12px; color: #745942; letter-spacing: .02em; }
.compare-btn { font-size: 11.5px; color: #937C62; border-bottom: 1px dashed #D0C6B6; }
.compare-btn:hover { color: var(--teal); border-color: var(--teal); }

/* --------------------------------------------------------- dark band */
.dark {
  position: relative; overflow: hidden; color: #F8F4EE;
  background:
    radial-gradient(900px 420px at 82% 0%, rgba(202, 104, 47, 0.07), transparent 64%),
    linear-gradient(155deg, #2A1D13, #2E2016 70%, #3A2A1D);
}
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(151, 95, 53, 0.05) 1px, transparent 1px);
  background-size: 80px 100%;
  mask-image: linear-gradient(to right, #231A13, transparent 70%);
}
.dark > * { position: relative; }
.dark .eyebrow { color: var(--glow); }
.dark h2 { color: #FBF8F4; }
.dark p { color: #BDAD9B; }
.dark .button.light { border-color: rgba(58, 38, 22, 0.11) !important; color: #F4F0E8 !important; background: rgba(58, 38, 22, 0.03); }
.dark .button.light:hover { border-color: var(--glow) !important; color: var(--glow) !important; background: rgba(224, 178, 115, 0.05); }
.industry-list a { border-bottom: 1px solid rgba(58, 38, 22, 0.05); transition: padding-left .25s, color .25s; }
.industry-list a:hover { padding-left: 6px; }
.industry-list a span { font-weight: 550; letter-spacing: -.01em; }
.industry-list small { font-family: var(--mono); color: #8D775E; }
.engineering { opacity: .55; }

/* --------------------------------------------------------- workflow */
.workflow article { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.workflow .num { font-family: var(--mono); font-size: 11px; color: var(--teal); letter-spacing: .1em; }
.workflow h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* --------------------------------------------------------- teased formula */
.tool-teaser { background: linear-gradient(135deg, #F5F1E9, #FBF8F4 55%, #F3EEE5); border: 1px solid #E7DFD1; border-radius: 4px; }
.tool-teaser .formula { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.02em; color: #433326; }

/* --------------------------------------------------------- generic cards */
.cards { gap: 20px; }
.card {
  position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 4px;
  background: #FFFFFF; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--cyan));
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: #E0D5C4; box-shadow: 0 26px 50px -34px rgba(47, 36, 28, 0.24); }
.card:hover::after { transform: scaleY(1); }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.018em; line-height: 1.4; }
.card p { font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.card .eyebrow { margin-bottom: 10px; }
.card .textlink { margin-top: 16px; display: inline-block; }

/* --------------------------------------------------------- buttons */
.button {
  border-radius: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  padding: 13px 22px; gap: 18px; transition: background .22s, color .22s, border-color .22s, transform .22s;
}
.button:hover { transform: translateY(-1px); }
.button.light { border-color: #D7CEC0; color: #3C3022; }
.button.light:hover { border-color: var(--teal); color: var(--teal); background: #FAF7F2; }

/* --------------------------------------------------------- article body */
.content { padding-top: 56px; padding-bottom: 88px; }
/* single-column reading pages: keep a comfortable measure but centre the block */
.wrap.content.article, .wrap.content:not(.two-col):not(.wizard) { max-width: 1100px; }
.wrap.content.two-col { max-width: 1200px; }
.wrap.content.article .article p, .wrap.content.article p { max-width: 860px; }
.two-col { grid-template-columns: 220px minmax(0, 1fr); gap: 62px; }
.sidebar a {
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: #634C39;
  padding: 10px 0; transition: color .2s, padding-left .2s;
}
.sidebar a:hover { color: var(--teal); padding-left: 4px; }
.sidebar { border-top: 2px solid var(--ink); padding-top: 4px; }
.article h2 { font-size: 24px; letter-spacing: -.022em; margin: 42px 0 16px; scroll-margin-top: 100px; }
.article h2::before {
  content: ""; display: block; width: 22px; height: 3px; background: var(--cyan);
  margin-bottom: 14px; border-radius: 2px;
}
.article p { color: #473628; line-height: 1.92; font-size: 15px; }
.article li { color: #473628; }
.steps li { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 14px; }
.steps li::before { top: 18px; }
.steps li::before { font-family: var(--mono); color: var(--teal); font-size: 12px; }
table { font-size: 13px; }
th { background: #F7F4EF; font-weight: 600; letter-spacing: .01em; }
td { border-bottom: 1px solid #F1EDE6; }
td:first-child { color: #927B60; font-size: 12.5px; }

.formula-text {
  font-family: var(--mono); background: #32241B; color: #E9DAC3;
  padding: 18px 22px; border-radius: 3px; font-size: 14px; letter-spacing: .01em;
  overflow-x: auto;
}
.formula-text p { color: #E9DAC3; margin: 0; }

.note {
  background: #FAF7F3; border-left: 2px solid #B4A38F; color: #7A5D44;
  font-size: 12.5px; line-height: 1.85; padding: 14px 18px; border-radius: 0 3px 3px 0;
}
.callout {
  background: linear-gradient(135deg, #392A1D, #30261E); color: #F3EDE3;
  border-left: 2px solid var(--glow); padding: 20px 24px; border-radius: 0 3px 3px 0;
  font-size: 14px; line-height: 1.85;
}
.callout b { color: var(--glow); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 8px; }

/* --------------------------------------------------------- chips & filters */
.chip {
  border: 1px solid var(--line); background: #FFFFFF; border-radius: 999px;
  padding: 8px 16px; font-size: 12.5px; color: #6B523C; transition: all .2s;
}
.chip:hover { border-color: #D1C1A7; color: var(--teal); }
.chip.active, .chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 550;
}
.filterbar { gap: 8px; }
.wizard .step { border-top: 1px solid var(--line); padding-top: 20px; }
.wizard-status b { font-family: var(--mono); font-size: 30px; color: var(--teal); letter-spacing: -.02em; }

/* --------------------------------------------------------- footer */
footer {
  background: #2A1D13; color: #D5C9B7; border-top: 1px solid var(--hair);
  padding: 62px 0 24px; position: relative; overflow: hidden;
}
footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 12% 0%, rgba(202, 104, 47, 0.05), transparent 62%);
}
footer .wrap { position: relative; }
footer .footgrid h2 { color: #FAF7F3; font-size: 26px; letter-spacing: -.03em; }
footer .eyebrow { color: var(--glow); opacity: .75; }
footer .footgrid p { color: #A69179; font-size: 12px; }
footer .footgrid b { color: #EFE7DA; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--mono); display: block; margin-bottom: 12px; }
footer .footgrid a { color: #BDAD9B; font-size: 12.5px; margin: 8px 0; transition: color .2s; }
footer .footgrid a:hover { color: var(--glow); }
footer .copyright { color: #847058; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
footer .copyright a { color: #A69179; }
footer .copyright .beian { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
footer .copyright .beian a { color: #847058; text-decoration: none; }
footer .copyright .beian a:hover { color: var(--glow); }
@media (max-width: 720px) { footer .copyright .beian { margin-left: 0; } }

/* --------------------------------------------------------- small things */
.comparebar { background: #392A1D; border: 1px solid rgba(224, 178, 115, 0.14); color: #F3EDE3; border-radius: 3px; }
.toast { background: #392A1D; border: 1px solid rgba(224, 178, 115, 0.14); }
.searchbox input { border-radius: 2px; border-color: #D7CEC0; }
.searchbox input:focus { border-color: var(--teal); outline: 2px solid rgba(140, 82, 34, 0.08); }
.panel { border: 1px solid var(--line); border-radius: 4px; background: #FFFFFF; }
.result { background: #F9F6F0; border-radius: 3px; }
.result output { font-family: var(--mono); color: var(--teal); }

/* ================================================================ NEW BLOCKS */

/* hero metric strip */
.hero-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--hair); margin-top: 44px; padding-top: 0;
}
.hero-metrics div { padding: 20px 22px 4px 0; border-right: 1px solid var(--hair); }
.hero-metrics div:last-child { border-right: 0; }
.hero-metrics b {
  display: block; font-family: var(--mono); font-size: 30px; font-weight: 500;
  color: #FBF8F3; letter-spacing: -.02em; line-height: 1.1;
}
.hero-metrics b span { font-size: 13px; color: var(--glow); margin-left: 3px; }
.hero-metrics small {
  display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: #9A8266;
}

/* application atlas */
.atlas-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 18px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.atlas-bar .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: #AC9983; margin-right: 6px; min-width: 52px;
}
.atlas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acard {
  display: flex; flex-direction: column; gap: 0; padding: 24px 24px 20px;
  border: 1px solid var(--line); border-radius: 4px; background: #FFFFFF;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.acard::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--cyan));
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.acard:hover { transform: translateY(-3px); border-color: #DDD1BF; box-shadow: 0 24px 46px -34px rgba(47, 36, 28, 0.24); }
.acard:hover::before { transform: scaleY(1); }
.acard .meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: #AC9983; margin-bottom: 12px;
}
.acard .meta .ind { color: var(--teal); }
.acard h3 { font-size: 16.5px; line-height: 1.45; letter-spacing: -.014em; margin: 0 0 10px; font-weight: 600; }
.acard p { font-size: 12.8px; line-height: 1.78; color: var(--muted); margin: 0 0 16px; flex: 1; }
.acard .foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #F5F2ED; padding-top: 12px;
  font-size: 11.5px; color: #A28C73;
}
.acard .foot b { color: var(--teal); font-weight: 600; }
.atlas-empty { padding: 40px 0; color: var(--muted); font-size: 14px; }

/* case cards, richer */
.casecard {
  display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 4px; background: #FFFFFF;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.casecard:hover { transform: translateY(-3px); border-color: #DDD1BF; box-shadow: 0 26px 50px -34px rgba(47, 36, 28, 0.24); }
.casecard .idx {
  font-family: var(--mono); font-size: 34px; line-height: 1; color: #E8E1D4;
  letter-spacing: -.04em; padding-top: 3px;
}
.casecard h3 { font-size: 17px; line-height: 1.5; letter-spacing: -.018em; margin: 4px 0 7px; font-weight: 600; }
.casecard p { font-size: 12.8px; line-height: 1.75; color: var(--muted); margin: 0 0 12px; }
.cards[style*="grid-template-columns:1fr"] { gap: 12px; }
.casecard .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.casecard .tags span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #847058; border: 1px solid #EDE9E1; border-radius: 999px; padding: 3px 9px;
}

/* section: split statement */
.statement {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.statement .big {
  font-size: clamp(24px, 2.5vw, 34px); line-height: 1.42; letter-spacing: -.028em;
  font-weight: 500; color: var(--ink);
}
.statement .big em { font-style: normal; color: var(--teal); }
.statement dl { margin: 0; }
.statement dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #AC9983; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px;
}
.statement dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.statement dd { margin: 6px 0 0; font-size: 13.5px; line-height: 1.8; color: #634C39; }

/* spec strip used on product / case pages */
.specstrip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #FFFFFF;
}
.specstrip div { padding: 16px 18px; border-right: 1px solid var(--line); }
.specstrip div:last-child { border-right: 0; }
.specstrip small {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #AC9983; margin-bottom: 6px;
}
.specstrip b { font-size: 14px; font-weight: 600; color: var(--ink); }

/* reading progress */
.readbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan)); z-index: 80;
  transition: width .1s linear;
}

/* command palette */
.cmdk {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(43, 29, 18, 0.3); backdrop-filter: blur(6px);
  padding: 12vh 20px 20px;
}
.cmdk.open { display: block; }
.cmdk-box {
  max-width: 680px; margin: 0 auto; background: #FFFFFF; border-radius: 6px;
  box-shadow: 0 40px 90px -20px rgba(58, 38, 22, 0.29); overflow: hidden;
  border: 1px solid #DFD8CC;
}
.cmdk-input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 22px;
  font-size: 16px; outline: none; border-radius: 0;
}
.cmdk-input::placeholder { color: #BBAB99; }
.cmdk-list { max-height: 52vh; overflow: auto; padding: 6px; }
.cmdk-item {
  display: block; padding: 12px 16px; border-radius: 4px; cursor: pointer;
}
.cmdk-item .t { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.cmdk-item .u { font-family: var(--mono); font-size: 10.5px; color: #BBAB99; margin-top: 3px; }
.cmdk-item[aria-selected="true"], .cmdk-item:hover { background: #F9F6F1; }
.cmdk-item[aria-selected="true"] .t { color: var(--teal); }
.cmdk-hint {
  border-top: 1px solid var(--line); padding: 10px 18px; font-family: var(--mono);
  font-size: 10px; color: #BBAB99; letter-spacing: .08em; display: flex; gap: 16px;
}
.cmdk-empty { padding: 26px 18px; color: var(--muted); font-size: 13px; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .atlas-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics b { font-size: 25px; }
}
@media (max-width: 1000px) {
  .header { height: 72px; }
  .navsearch { display: none; }
  .statement { grid-template-columns: 1fr; gap: 30px; }
  .casecard { grid-template-columns: 64px 1fr; gap: 16px; }
  .two-col { grid-template-columns: 176px minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 720px) {
  .navdrop { display: block; width: 100%; }
  .navdrop-btn { width: 100%; justify-content: space-between; padding: 10px 0; }
  .navmenu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .navdrop.open .navmenu { display: block; }
  .navmenu::before { display: none; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 26px; }
  .hero-visual { max-width: 100%; padding: 14px; margin: 8px 0 18px; }
  .hero-visual img { transform: none; }
  .visual-label { position: static; display: inline-block; margin-top: 10px; right: auto; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); letter-spacing: -.035em; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .hero-metrics div { padding: 14px 12px 4px 0; border-bottom: 1px solid var(--hair); }
  .hero-metrics div:nth-child(2n) { border-right: 0; }
  .hero-metrics b { font-size: 22px; }
  section { padding: 56px 0; }
  .pagehero { padding: 40px 0 36px; }
  .atlas-grid { grid-template-columns: 1fr; }
  .acard { padding: 20px; }
  .casecard { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .casecard .idx { font-size: 24px; }
  .specstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specstrip div { padding: 13px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .specstrip div:last-child { border-bottom: 0; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { margin-bottom: 26px; }
  .pathbar .wrap { grid-template-columns: repeat(2, 1fr); }
  .atlas-bar .label { flex: 1 0 100%; margin: 0 0 4px; }
  .cmdk { padding: 6vh 12px 12px; }
}
