/* ============================================================================
   site.css - the Cornerstone website layer.

   Loaded by every real site page (home, capabilities, industries, about,
   request-a-quote, projects index, blog). The four interactive demos under
   /projects/ keep their own stylesheets (viewer.css, experience.css) and only
   share core.css.

   Depends on core.css for tokens. Nothing here hardcodes a brand colour.
   ========================================================================== */

/* ---- Page scaffolding ---------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--cs-secondary); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

.sec { padding-block: clamp(2.75rem, 7vw, 5rem); }
.sec--tight { padding-block: clamp(2rem, 4.5vw, 3rem); }
.sec--panel { background: var(--cs-panel); }
.sec--paper { background: var(--cs-gray-100); }
.sec--ink { background: var(--cs-secondary); color: #EDE8E0; }
.sec--ink h1, .sec--ink h2, .sec--ink h3, .sec--ink h4 { color: #fff; }
.sec--ink a { color: var(--cs-primary-on-dark); }
.sec--rule { border-top: 1px solid var(--cs-line); }

.sec__head { max-width: 68ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec__head p { color: var(--cs-info); font-size: 1.02rem; margin-bottom: 0; }
.sec--ink .sec__head p { color: #C9C2B8; }
.sec__head--center { margin-inline: auto; text-align: center; }

/* A short rust rule used above headings */
.rule { display: block; width: 46px; height: 3px; background: var(--cs-primary); margin: 0 0 1.15rem; border: 0; }
.sec__head--center .rule { margin-inline: auto; }

/* ---- Utility strip ------------------------------------------------------- */
.util {
  background: var(--cs-secondary);
  color: #C9C2B8;
  font-family: var(--cs-font-mono);
  font-size: 12px;
  letter-spacing: .02em;
}
.util__in { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .55rem; }
.util a { color: #EDE8E0; text-decoration: none; }
.util a:hover { color: var(--cs-primary-on-dark); text-decoration: underline; }
.util__est { color: var(--cs-primary-on-dark); font-weight: 600; }
.util__grp { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }

/* ---- Header -------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--cs-line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.hdr__logo { display: inline-flex; flex: 0 0 auto; }
.hdr__logo img { display: block; height: 34px; width: auto; }
@media (min-width: 900px) { .hdr__logo img { height: 40px; } }

.hdr__burger {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .4rem .7rem;
  background: transparent; border: 1.5px solid var(--cs-line); border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--cs-dark);
  cursor: pointer;
}
.hdr__burger svg { width: 18px; height: 18px; }
.hdr__burger .ico-x { display: none; }
.hdr__burger[aria-expanded="true"] .ico-x { display: block; }
.hdr__burger[aria-expanded="true"] .ico-bars { display: none; }

.hdr__nav { display: none; }
.hdr__nav.is-open { display: block; }

/* Mobile drawer */
@media (max-width: 899px) {
  .hdr__nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--cs-line);
    box-shadow: var(--cs-shadow-2);
    max-height: calc(100dvh - 100%); overflow-y: auto;
    padding: .5rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  }
  .hdr__nav ul { list-style: none; margin: 0; padding: 0; }
  .hdr__nav > ul > li { border-bottom: 1px solid var(--cs-gray-200); }
  .hdr__nav a, .hdr__sub-toggle {
    display: block; width: 100%; text-align: left;
    padding: .95rem .25rem; font-family: var(--cs-font-display); font-weight: 600; font-size: 1.02rem;
    color: var(--cs-dark); text-decoration: none; background: none; border: 0; cursor: pointer;
  }
  .hdr__nav a[aria-current="page"] { color: var(--cs-primary-ink); }
  .hdr__sub { padding: 0 0 .75rem .9rem; border-left: 2px solid var(--cs-primary-soft); margin-left: .25rem; }
  .hdr__sub a { padding: .55rem .25rem; font-weight: 500; font-size: .95rem; color: var(--cs-body); }
  .hdr__cta { margin-top: 1rem; }
  .hdr__cta .btn { width: 100%; }
}

/* Desktop bar */
@media (min-width: 900px) {
  .hdr__burger { display: none; }
  .hdr__nav { display: block !important; }
  .hdr__nav > ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .hdr__nav > ul > li { position: relative; }
  .hdr__nav > ul > li > a, .hdr__sub-toggle {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .65rem .7rem; border-radius: var(--cs-radius-sm);
    font-family: var(--cs-font-display); font-weight: 600; font-size: .95rem;
    color: var(--cs-dark); text-decoration: none; background: none; border: 0; cursor: pointer;
  }
  .hdr__nav > ul > li > a:hover, .hdr__sub-toggle:hover { background: var(--cs-primary-soft); color: var(--cs-primary-ink); }
  .hdr__nav > ul > li > a[aria-current="page"] { color: var(--cs-primary-ink); box-shadow: inset 0 -3px 0 var(--cs-primary); border-radius: 0; }
  .hdr__sub {
    position: absolute; left: 0; top: calc(100% + .35rem);
    min-width: 280px; padding: .5rem;
    background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow-2); list-style: none; margin: 0;
  }
  .hdr__sub[hidden] { display: none; }
  .hdr__sub a {
    display: block; padding: .55rem .7rem; border-radius: var(--cs-radius-sm);
    font-size: .93rem; font-weight: 500; color: var(--cs-body); text-decoration: none;
  }
  .hdr__sub a:hover { background: var(--cs-primary-soft); color: var(--cs-primary-ink); }
  .hdr__sub a[aria-current="page"] { color: var(--cs-primary-ink); font-weight: 600; }
  .hdr__cta { margin-left: .5rem; }
}
.hdr__chev { width: 12px; height: 12px; transition: transform .15s ease; }
.hdr__sub-toggle[aria-expanded="true"] .hdr__chev { transform: rotate(180deg); }

/* ---- Breadcrumbs --------------------------------------------------------- */
.crumbs { font-family: var(--cs-font-mono); font-size: 12px; letter-spacing: .04em; color: var(--cs-info); padding-block: .9rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .35rem; color: var(--cs-gray-400); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--cs-info); text-decoration: none; }
.crumbs a:hover { color: var(--cs-primary-ink); text-decoration: underline; }

/* ---- Heroes -------------------------------------------------------------- */
/* Home hero: white ground, big type, part render bleeding in from the right */
.hero-home { border-bottom: 1px solid var(--cs-line); overflow: hidden; }
.hero-home__in { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .hero-home__in { grid-template-columns: 1.05fr .95fr; } }
.hero-home h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.03; margin: 0 0 1.1rem; max-width: 16ch; }
.hero-home h1 .accent { color: var(--cs-primary); }
.hero-home__lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--cs-body); max-width: 54ch; margin: 0 0 1.75rem; }
.hero-home__acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-home__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.75rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--cs-line); font-family: var(--cs-font-mono); font-size: 12.5px; color: var(--cs-info); }
.hero-home__facts b { color: var(--cs-dark); font-weight: 600; }
.hero-home__art { position: relative; }

/* Page hero: compact warm panel */
.hero-pg { background: var(--cs-panel); border-bottom: 1px solid var(--cs-line); }
.hero-pg__in { padding-block: clamp(1.75rem, 5vw, 3.25rem); }
.hero-pg h1 { margin: 0 0 .85rem; max-width: 20ch; }
.hero-pg__lede { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; color: var(--cs-body); max-width: 62ch; margin: 0; }
.hero-pg__acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero-pg--split .hero-pg__in { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
@media (min-width: 900px) { .hero-pg--split .hero-pg__in { grid-template-columns: 1fr 1fr; } }

/* ---- Generic grids ------------------------------------------------------- */
.cols { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.cols--2 { grid-template-columns: 1fr; }
.cols--3 { grid-template-columns: 1fr; }
.cols--4 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .cols--2 { grid-template-columns: repeat(2, 1fr); } .cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } .cols--4 { grid-template-columns: repeat(4, 1fr); } }
.cols--split { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .cols--split { grid-template-columns: 1fr 1fr; } }
.cols--aside { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 980px) { .cols--aside { grid-template-columns: minmax(0,1fr) 340px; } }

/* ---- Tiles / cards ------------------------------------------------------- */
.tile {
  background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-radius);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  display: flex; flex-direction: column;
}
.sec--panel .tile { border-color: #DCD3C4; }
.tile__ico { width: 40px; height: 40px; color: var(--cs-primary); margin-bottom: .85rem; }
.tile h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.tile p { color: var(--cs-info); font-size: .96rem; margin: 0 0 1rem; }
.tile__more { margin-top: auto; font-family: var(--cs-font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cs-primary-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.tile__more:hover { text-decoration: underline; }
a.tile { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.tile:hover { border-color: var(--cs-primary); box-shadow: var(--cs-shadow-2); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.tile:hover { transform: none; } }

/* Numbered process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: st; }
@media (min-width: 820px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 1.25rem 1.25rem 1.35rem; background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); counter-increment: st; }
.steps li::before {
  content: counter(st, decimal-leading-zero);
  display: block; font-family: var(--cs-font-mono); font-weight: 600; font-size: 12px;
  letter-spacing: .1em; color: var(--cs-primary); margin-bottom: .55rem;
}
.steps h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.steps p { margin: 0; color: var(--cs-info); font-size: .95rem; }

/* Key/value spec rail */
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.rail li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--cs-line); font-size: .93rem; }
.rail li:last-child { border-bottom: 0; }
.rail dt, .rail .k { color: var(--cs-info); }
.rail dd, .rail .v { margin: 0; font-family: var(--cs-font-mono); font-weight: 600; color: var(--cs-dark); text-align: right; }

/* Ticked list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.65rem; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--cs-primary);
}
.sec--ink .ticks li::before { background: var(--cs-primary-on-dark); }

/* Stat figures */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); }
.sec--ink .stat { background: #24282D; border-color: #343A40; }
.stat__n { font-family: var(--cs-font-mono); font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--cs-primary-ink); line-height: 1.1; }
.sec--ink .stat__n { color: var(--cs-primary-on-dark); }
.stat__l { font-size: .86rem; color: var(--cs-info); margin: .35rem 0 0; }
.sec--ink .stat__l { color: #C9C2B8; }

/* Callout / note */
.note {
  border-left: 3px solid var(--cs-primary); background: var(--cs-primary-soft);
  padding: 1rem 1.15rem; border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0;
  font-size: .95rem; color: var(--cs-gray-700);
}
.note strong { color: var(--cs-dark); }
.note--sand { border-left-color: var(--cs-accent-2); background: var(--cs-gray-200); }
.label-illus {
  display: inline-block; font-family: var(--cs-font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cs-warning-ink);
  background: var(--cs-warning); border-radius: 999px; padding: .18em .7em;
}

/* ---- Interactive: tabs --------------------------------------------------- */
.tabs { border: 1px solid var(--cs-line); border-radius: var(--cs-radius); background: #fff; overflow: hidden; }
.tabs__list { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--cs-line); background: var(--cs-gray-100); scrollbar-width: thin; }
.tabs__btn {
  flex: 0 0 auto; appearance: none; background: none; border: 0; cursor: pointer;
  padding: .9rem 1.1rem; font-family: var(--cs-font-display); font-weight: 600; font-size: .93rem;
  color: var(--cs-info); border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs__btn:hover { color: var(--cs-dark); }
.tabs__btn[aria-selected="true"] { color: var(--cs-primary-ink); border-bottom-color: var(--cs-primary); background: #fff; }
.tabs__panel { padding: clamp(1.15rem, 3vw, 1.75rem); }
.tabs__panel[hidden] { display: none; }

/* ---- Interactive: chips / filters --------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.chip {
  appearance: none; cursor: pointer;
  min-height: 40px; padding: .45rem .95rem;
  background: #fff; border: 1.5px solid var(--cs-line); border-radius: 999px;
  font-family: var(--cs-font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  color: var(--cs-gray-700); transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--cs-primary); color: var(--cs-primary-ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--cs-primary); border-color: var(--cs-primary); color: #fff; }

/* ---- Interactive: tool panel (calculators, explorers) -------------------- */
.tool {
  background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow-1); overflow: hidden;
}
.tool__head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--cs-line); background: var(--cs-gray-100); }
.tool__head h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.tool__head p { margin: 0; font-size: .87rem; color: var(--cs-info); }
.tool__body { padding: clamp(1.1rem, 3vw, 1.5rem); display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .tool__body--split { grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); } }
.tool__out { background: var(--cs-panel); border-radius: var(--cs-radius-sm); padding: 1.1rem 1.25rem; }
.tool__foot { padding: .8rem 1.25rem; border-top: 1px solid var(--cs-line); font-size: .84rem; color: var(--cs-info); background: var(--cs-gray-100); }

.ctrl { display: block; margin-bottom: 1.15rem; }
.ctrl:last-child { margin-bottom: 0; }
.ctrl__lab { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .45rem; }
.ctrl__lab span:first-child { font-family: var(--cs-font-display); font-weight: 600; font-size: .93rem; color: var(--cs-dark); }
.ctrl__val { font-family: var(--cs-font-mono); font-weight: 600; font-size: .93rem; color: var(--cs-primary-ink); }

input[type="range"].ctrl__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"].ctrl__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--cs-gray-300); }
input[type="range"].ctrl__range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--cs-gray-300); }
input[type="range"].ctrl__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cs-primary); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(26,29,33,.3);
}
input[type="range"].ctrl__range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cs-primary); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(26,29,33,.3);
}
input[type="range"].ctrl__range:focus-visible { outline: 3px solid var(--cs-focus); outline-offset: 4px; border-radius: 6px; }

.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button {
  flex: 1 1 auto; min-height: 42px; padding: .5rem .8rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--cs-line); border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-display); font-weight: 600; font-size: .9rem; color: var(--cs-gray-700);
}
.seg button:hover { border-color: var(--cs-primary); color: var(--cs-primary-ink); }
.seg button[aria-pressed="true"] { background: var(--cs-secondary); border-color: var(--cs-secondary); color: #fff; }

.readout { display: grid; gap: .55rem; }
.readout__row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.readout__k { font-size: .89rem; color: var(--cs-info); }
.readout__v { font-family: var(--cs-font-mono); font-weight: 600; color: var(--cs-dark); }
.readout__big { font-family: var(--cs-font-mono); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--cs-primary-ink); line-height: 1.1; }

/* Horizontal meter */
.meter { height: 10px; border-radius: 999px; background: var(--cs-gray-300); overflow: hidden; }
.meter__fill { height: 100%; background: var(--cs-primary); border-radius: 999px; transition: width .25s ease; }
.meter__fill--alt { background: var(--cs-accent-2); }
@media (prefers-reduced-motion: reduce) { .meter__fill { transition: none; } }

/* ---- Interactive: 3D part embed ----------------------------------------- */
.part3d {
  border: 1px solid var(--cs-line); border-radius: var(--cs-radius);
  background: linear-gradient(180deg, #fff 0%, var(--cs-gray-100) 100%);
  overflow: hidden;
}
/* Before cs-part-embed.js enhances it, the host holds only a <noscript> and so
   collapses to a ~2px sliver. An IntersectionObserver can then scroll straight
   past it and the model never loads. Reserve the space up front: it fixes the
   race AND removes the layout shift when the viewer appears.
   cs-part-embed.js sets data-cs-ready="1" once it has built the real element. */
.part3d:not([data-cs-ready]) { min-height: 340px; }
@media (min-width: 620px) { .part3d:not([data-cs-ready]) { min-height: 440px; } }
.part3d__stage { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--cs-gray-100); }
@media (min-width: 620px) { .part3d__stage { aspect-ratio: 16 / 10; } }
.part3d model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.part3d__poster { width: 100%; height: 100%; object-fit: contain; background: var(--cs-gray-100); }
.part3d__load {
  position: absolute; inset: auto 0 0 0; padding: .5rem .9rem;
  font-family: var(--cs-font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cs-info);
}
.part3d__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.part3d__bar span { display: block; height: 100%; width: 0; background: var(--cs-primary); transition: width .2s ease; }
.part3d__ar { position: absolute; right: .75rem; bottom: .75rem; }
.part3d__hint {
  position: absolute; left: .75rem; top: .75rem;
  font-family: var(--cs-font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cs-info); background: rgba(255,255,255,.85); border: 1px solid var(--cs-line);
  border-radius: 999px; padding: .25rem .7rem; pointer-events: none;
}
.part3d__meta { padding: 1rem 1.15rem 1.15rem; border-top: 1px solid var(--cs-line); background: #fff; }
.part3d__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin: 0 0 .6rem; }
.part3d__title h3 { margin: 0; font-size: 1.05rem; }
.part3d__title .badge { flex: 0 0 auto; }
.part3d__specs { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: 0 0 .85rem; padding: 0; list-style: none; }
.part3d__specs li {
  font-family: var(--cs-font-mono); font-size: 11.5px; color: var(--cs-gray-700);
  background: var(--cs-gray-100); border: 1px solid var(--cs-line); border-radius: 999px; padding: .22rem .65rem;
}
.part3d__acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.part3d__note { margin: .8rem 0 0; font-size: .82rem; color: var(--cs-info); }
.part3d__fallback { padding: 1.15rem; font-size: .92rem; color: var(--cs-info); }

/* Numbered engineering callouts on the geometry (AS9102 ballooned-drawing idiom) */
.part3d__hs {
  display: grid; place-content: center;
  width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: help;
  background: var(--cs-primary); color: #fff; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(26,29,33,.35);
  font-family: var(--cs-font-mono); font-weight: 600; font-size: 12px; line-height: 1;
}
.part3d__hs:hover { background: var(--cs-primary-ink); }
.part3d__legend { margin: 0 0 .9rem; padding-left: 1.35rem; display: grid; gap: .5rem; font-size: .89rem; color: var(--cs-info); }
.part3d__legend strong { color: var(--cs-dark); }
.part3d__legend::marker { font-family: var(--cs-font-mono); }
.part3d__pick { display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem 1.15rem; border-top: 1px solid var(--cs-line); background: var(--cs-gray-100); }

/* Click-to-load shell for the heavy Babylon module */
.heavy3d { position: relative; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); overflow: hidden; background: var(--cs-gray-100); }
.heavy3d__stage { position: relative; width: 100%; aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .heavy3d__stage { aspect-ratio: 16 / 9; } }
.heavy3d canvas { width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.heavy3d__gate { position: absolute; inset: 0; display: grid; place-content: center; gap: .9rem; justify-items: center; text-align: center; padding: 1.5rem; background: var(--cs-panel); }
.heavy3d__gate p { margin: 0; max-width: 42ch; color: var(--cs-info); font-size: .93rem; }
.heavy3d__ui { display: grid; gap: .9rem; padding: 1rem 1.15rem; border-top: 1px solid var(--cs-line); background: #fff; }
.heavy3d__status { font-family: var(--cs-font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--cs-info); }
.heavy3d__stepname { font-family: var(--cs-font-display); font-weight: 700; font-size: 1.02rem; color: var(--cs-dark); margin: 0; }
.heavy3d__stepdesc { margin: .25rem 0 0; font-size: .92rem; color: var(--cs-info); }

/* ---- Accordion (FAQ, disclosures) ---------------------------------------- */
.acc { border: 1px solid var(--cs-line); border-radius: var(--cs-radius); overflow: hidden; background: #fff; }
.acc details { border-bottom: 1px solid var(--cs-line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.15rem; position: relative;
  font-family: var(--cs-font-display); font-weight: 600; font-size: 1rem; color: var(--cs-dark);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 1.15rem; top: 1.35rem;
  width: 10px; height: 10px; border-right: 2px solid var(--cs-primary); border-bottom: 2px solid var(--cs-primary);
  transform: rotate(45deg); transition: transform .15s ease;
}
.acc details[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
.acc summary:hover { background: var(--cs-primary-soft); }
.acc__body { padding: 0 1.15rem 1.15rem; color: var(--cs-body); font-size: .96rem; }
.acc__body p:last-child { margin-bottom: 0; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--cs-secondary); color: #EDE8E0; }
.cta-band__in { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
@media (min-width: 860px) { .cta-band__in { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 0; color: #C9C2B8; max-width: 56ch; }
.cta-band__acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }

/* ---- Footer -------------------------------------------------------------- */
.ftr { background: var(--cs-secondary); color: #ADA69D; font-size: .92rem; }
.ftr__in { display: grid; gap: 2rem; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
@media (min-width: 760px) { .ftr__in { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .ftr__in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ftr__logo { height: 30px; width: auto; margin-bottom: 1rem; }
.ftr h2 { font-family: var(--cs-font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #EDE8E0; margin: 0 0 .9rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ftr a { color: #D6D0C8; text-decoration: none; }
.ftr a:hover { color: var(--cs-primary-on-dark); text-decoration: underline; }
.ftr address { font-style: normal; line-height: 1.7; color: #C9C2B8; }
.ftr__phone { font-family: var(--cs-font-mono); font-size: 1.05rem; font-weight: 600; color: #fff; text-decoration: none; }
.ftr__legal { border-top: 1px solid #33383E; padding-block: 1.25rem; font-size: .82rem; line-height: 1.7; color: #8D877F; }
.ftr__legal a { color: #ADA69D; }

/* ---- Blog ---------------------------------------------------------------- */
.post { max-width: 74ch; }
.post__meta { font-family: var(--cs-font-mono); font-size: 12px; letter-spacing: .04em; color: var(--cs-info); margin: 0 0 1rem; }
.post h2 { margin-top: 2.25rem; }
.post h3 { margin-top: 1.75rem; font-size: 1.15rem; }
.post p, .post li { font-size: 1.02rem; line-height: 1.72; }
.post ul, .post ol { padding-left: 1.3rem; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.post figure { margin: 2rem 0; }
.post figure svg, .post figure img { display: block; width: 100%; height: auto; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); background: #fff; }
.post figcaption { margin-top: .6rem; font-size: .85rem; color: var(--cs-info); }
.post__toc { background: var(--cs-gray-100); border: 1px solid var(--cs-line); border-radius: var(--cs-radius); padding: 1.15rem 1.35rem; margin: 0 0 2rem; }
.post__toc h2 { font-family: var(--cs-font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-info); margin: 0 0 .7rem; }
.post__toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; font-size: .95rem; }
.post .spec-table-wrap { margin: 1.75rem 0; }
.post__aside { position: sticky; top: 96px; }

.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__thumb { aspect-ratio: 16 / 9; width: 100%; background: var(--cs-gray-100); border-bottom: 1px solid var(--cs-line); }
.post-card__thumb svg { display: block; width: 100%; height: 100%; }

/* ---- Misc ---------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.divider { border: 0; border-top: 1px solid var(--cs-line); margin: clamp(2rem, 5vw, 3rem) 0; }
.nowrap { white-space: nowrap; }

/* Anything that could exceed the viewport scrolls inside its own box */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
