/* ==========================================================================
   Blaze Computing LTD website stylesheet (site.css)
   Brand rules: 7_Marketing/STYLE_NOT_AI.md sections 0 and 0a
   White ground, Arial Black headings, Arial body, no AI layout patterns.
   ========================================================================== */

:root {
  --bg-canvas: #ffffff;
  --bg-subtle: #f7f7f7;
  --border-line: #d4d4d4;
  --border-hover: #999999;

  --text-heading: #111111;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #666666;

  --blaze-blue: #0066cc;
  --blaze-blue-hover: #0052a3;
  --blaze-green: #76b900;
  --blaze-green-hover: #68a300;
  --blaze-red: #9c0e12;

  --font-head: 'Arial Black', Arial, sans-serif;
  --font-sans: Arial, 'Liberation Sans', Helvetica, sans-serif;

  --container-max: 1260px;
  --header-height: 72px;
  --radius-sm: 3px;
  --radius-md: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  color: var(--text-primary);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blaze-blue);
  text-decoration: none;
}

a:hover {
  color: var(--blaze-blue-hover);
  text-decoration: underline;
}

h1, h2, .hero-title, .section-title, .sec-h2, .brand-text {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--text-heading);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-line);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.25rem;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-cheetah {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  background: #222222;
  padding: 0.38rem 0.68rem;
  border-radius: 3px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
  background: #000000;
  text-decoration: none;
}

.nav-link.active {
  color: #ffffff;
  background: var(--blaze-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary, .btn-cyan {
  background: var(--blaze-blue);
  color: #ffffff;
  border: 1px solid var(--blaze-blue-hover);
}

.btn-primary:hover, .btn-cyan:hover {
  background: var(--blaze-blue-hover);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-heading);
  border: 1px solid #bbbbbb;
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: var(--blaze-blue);
  color: var(--blaze-blue);
}

.btn-emerald {
  background: var(--blaze-green);
  color: #ffffff;
  border: 1px solid var(--blaze-green-hover);
}

.btn-emerald:hover {
  background: var(--blaze-green-hover);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-eval-mobile {
  display: none;
}

/* ==========================================================================
   Layout Containers & Sections
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
  width: 100%;
}

.section {
  padding: 2.5rem 0;
  position: relative;
}

.section + .section {
  padding-top: 0.8rem;
}

.sec-h2 {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-heading);
  margin: 0 0 0.45rem;
}

.sec-h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.4rem;
}

.sec-lead {
  font-size: 1rem;
  line-height: 1.58;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  max-width: 880px;
}

.sec-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.sec-mini {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 2.4rem 0 1.6rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 0.95rem;
  color: var(--text-heading);
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-subline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.hero-video {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
}

.hero-video video, .hero-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video.wide {
  aspect-ratio: 16 / 9;
}

.hero-video.wide video {
  object-fit: contain;
  background: #ffffff;
}

.hero-video.crop-left video {
  transform: scale(1.12);
  transform-origin: 100% 50%;
}

.hero-video.crop-top video {
  transform: scale(1.45);
  transform-origin: 60% 100%;
}

/* BlazeMultiPhysics hero composite */
.hero-prod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.hero-prod .big {
  grid-column: 1 / -1;
}

.hero-prod .im {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.hero-prod .im img, .hero-prod .im video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  display: block;
}

.hero-prod .big .im img {
  object-position: 50% 40%;
}

.hero-prod figcaption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.hero-prod figcaption b {
  color: var(--text-heading);
  margin-right: 0.3rem;
}

/* ==========================================================================
   Plain Data Tables (Scale, Workflow, Capabilities, Metrics, Provenance)
   ========================================================================== */

.plain-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
}

table.plain-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

table.plain-tbl th {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-heading);
  padding: 0.65rem 1rem 0.65rem 0;
  border-top: 1px solid var(--text-heading);
  border-bottom: 1px solid var(--text-heading);
}

table.plain-tbl td {
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-primary);
  line-height: 1.52;
}

table.plain-tbl td.col-key {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--text-heading);
  width: 24%;
}

table.plain-tbl ul {
  margin: 0;
  padding-left: 1.15rem;
}

table.plain-tbl li {
  margin-bottom: 0.25rem;
}

/* Robotics section and plain learnt/programmed table (no colour coding) */
.robo-sub {
  margin-top: 2.1rem;
}

.robo-figs {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.robo-figs .im {
  aspect-ratio: 16 / 9;
}

.robo-figs .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

table.plain-tbl.lp-tbl th {
  width: 50%;
}

table.plain-tbl.lp-tbl td {
  width: 50%;
  padding-right: 1.5rem;
}

table.plain-tbl.lp-tbl li {
  margin-bottom: 0.45rem;
}

table.plain-tbl.lp-tbl li:last-child {
  margin-bottom: 0;
}

.lp-para {
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
}

/* Aerospace AM six-stage process image cards (two rows, varied proportions) */
.am-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.am-row {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}

.am-row.a {
  grid-template-columns: 0.9fr 1.15fr 1.3fr;
}

.am-row.b {
  grid-template-columns: 1fr 1.1fr 1.45fr;
}

.am-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.am-im {
  height: 205px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-line);
  overflow: hidden;
  cursor: zoom-in;
  flex-shrink: 0;
}

.am-row.b .am-im {
  height: 190px;
}

.am-im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.am-im.contain img {
  object-fit: contain;
}

.am-im.pad {
  padding: 0.35rem;
}

.am-body {
  padding: 0.72rem 0.9rem 0.82rem;
}

.am-body h4 {
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-heading);
  margin: 0 0 0.25rem;
}

.am-body p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Product Rows (Home Page, Alternating Varied Proportions)
   ========================================================================== */

.prod-list {
  display: flex;
  flex-direction: column;
}

.prod-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.25rem;
  align-items: center;
  padding: 1.65rem 0;
  border-top: 1px solid var(--border-line);
}

.prod-row:last-child {
  border-bottom: 1px solid var(--border-line);
}

.prod-row.flip {
  grid-template-columns: 1fr 1.35fr;
}

.prod-row.w-a2m {
  grid-template-columns: 1.15fr 1fr;
}

.prod-row.w-tab {
  grid-template-columns: 1fr 1.22fr;
}

.prod-media {
  aspect-ratio: 16 / 10;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prod-media.wide {
  aspect-ratio: 16 / 9;
}

.prod-media img, .prod-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-media.dark {
  background: #111111;
  border-color: #222222;
}

.prod-copy h3 {
  font-family: var(--font-head);
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.25rem;
}

.prod-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 0.55rem;
}

.prod-copy p {
  font-size: 0.94rem;
  line-height: 1.56;
  color: var(--text-primary);
  margin: 0 0 0.65rem;
}

.prod-copy .links {
  padding-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.prod-copy .links a {
  color: var(--blaze-blue);
}

/* Physics alternating rows (BlazeMultiPhysics) */
.phys-list {
  display: flex;
  flex-direction: column;
}

.phys-row {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 2.2rem;
  align-items: center;
  padding: 1.45rem 0;
  border-top: 1px solid var(--border-line);
}

.phys-row:last-child {
  border-bottom: 1px solid var(--border-line);
}

.phys-row.flip {
  grid-template-columns: 1fr 1.18fr;
}

.phys-row .im {
  height: 265px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.phys-row .im.dark {
  background: #111111;
  border-color: #222222;
}

.phys-row .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phys-row .im.contain img {
  object-fit: contain;
}

.phys-row h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}

.phys-row ul {
  margin: 0;
  padding-left: 1.15rem;
}

.phys-row li {
  font-size: 0.92rem;
  line-height: 1.54;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.phys-row a.more {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blaze-blue);
}

/* Mill Sim AI: outputs layout (featured figures + plain list) */
.mill-out-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: start;
}

.mill-out-figs {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mill-out-sub {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.1rem;
  align-items: start;
}

.mill-out-figs figure {
  margin: 0;
}

.mill-out-figs .im {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.mill-out-figs .im.lead {
  height: 255px;
}

.mill-out-figs .im.sub {
  height: 185px;
}

.mill-out-figs .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mill-out-figs .im.contain img {
  object-fit: contain;
}

.mill-out-figs figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.mill-out-figs figcaption b {
  color: var(--text-heading);
}

.mill-out-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--text-heading);
}

.mill-out-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-line);
}

.mill-out-row .thumb {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.mill-out-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mill-out-row h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.2rem;
}

.mill-out-row p {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--text-secondary);
  margin: 0;
}

/* Mill Sim AI: wear loop figure panel + plain numbered list */
.wear-loop-layout {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 0.75rem;
}

.wear-figs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  background: #ffffff;
}

.wear-figs-row {
  display: grid;
  gap: 0.85rem;
}

.wear-figs-row.a {
  grid-template-columns: 0.95fr 1.35fr;
}

.wear-figs-row.b {
  grid-template-columns: 1.1fr 1fr;
}

.wear-figs figure {
  margin: 0;
}

.wear-figs .im {
  height: 150px;
  border: 1px solid var(--border-line);
  border-radius: 2px;
  overflow: hidden;
  background: #ffffff;
}

.wear-figs .im img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wear-figs figcaption {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Asymmetric 1-large + 2-stacked figure layout */
.lifter-asym {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.6rem;
}

.lifter-asym .big .im {
  height: 360px;
}

.lifter-asym .big .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifter-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.lifter-stack .im.strip {
  height: 120px;
}

.lifter-stack .im.wide {
  height: 190px;
}

.lifter-stack .im img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Breakage asymmetric pair under featured SPH row */
.breakage-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.6rem;
}

.breakage-pair .im {
  height: 350px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 0.7rem;
}

.breakage-pair .im img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.breakage-pair .im.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100%;
  gap: 2px;
}

.breakage-pair .im.pair img {
  min-height: 0;
}

.prod-row.w-slurry {
  grid-template-columns: 1.6fr 1fr;
}

.prod-media.slurry {
  aspect-ratio: 1080 / 996;
}

.prod-media.slurry video {
  object-fit: contain;
}

.breakage-pair h4 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.35rem;
}

.breakage-pair p {
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--text-primary);
  margin: 0;
}

/* Varied editorial gallery (12-column grid, no equal repeated cards) */
.ed-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem 1.15rem;
  align-items: start;
}

.ed-gallery figure {
  margin: 0;
}

.ed-gallery .sp-7 { grid-column: span 7; }
.ed-gallery .sp-6 { grid-column: span 6; }
.ed-gallery .sp-5 { grid-column: span 5; }
.ed-gallery .sp-4 { grid-column: span 4; }
.ed-gallery .sp-3 { grid-column: span 3; }

.ed-gallery .gallery-thumb, .ed-gallery .vid {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
  cursor: zoom-in;
  height: 210px;
}

.ed-gallery .h-lg { height: 250px; }
.ed-gallery .h-md { height: 215px; }
.ed-gallery .h-sm { height: 185px; }

.ed-gallery .vid {
  cursor: default;
  background: #111111;
}

.ed-gallery img, .ed-gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ed-gallery figcaption {
  font-size: 0.83rem;
  line-height: 1.44;
  color: var(--text-primary);
  margin-top: 0.4rem;
}

.ed-gallery figcaption b {
  display: block;
  color: var(--text-heading);
  font-size: 0.88rem;
}

/* BlazeViewer 2-row asymmetric showcase */
.viewer-asym {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.viewer-row {
  display: grid;
  gap: 0.8rem;
}

.viewer-row.a {
  grid-template-columns: 1.3fr 1fr;
}

.viewer-row.b {
  grid-template-columns: 1fr 1.45fr;
}

.viewer-asym figure {
  margin: 0;
}

.viewer-asym .gallery-thumb {
  height: 135px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
  cursor: zoom-in;
}

.viewer-asym img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-asym figcaption {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0.25rem;
}

/* Atoms to Material: chain table with stage figures & value asymmetric split */
table.chain-tbl {
  width: 100%;
  border-collapse: collapse;
}

table.chain-tbl th {
  text-align: left;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-heading);
  padding: 0.65rem 1rem 0.65rem 0;
  border-top: 1px solid var(--text-heading);
  border-bottom: 1px solid var(--text-heading);
}

table.chain-tbl td {
  vertical-align: middle;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.5;
}

table.chain-tbl td.col-fig {
  width: 185px;
}

table.chain-tbl .stage-im {
  width: 170px;
  height: 102px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-line);
  background: #111111;
}

table.chain-tbl .stage-im.light {
  background: #ffffff;
}

table.chain-tbl .stage-im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

table.chain-tbl .stage-im.contain img {
  object-fit: contain;
}

table.chain-tbl td.col-stage {
  width: 26%;
}

table.chain-tbl .stage-name {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-heading);
}

table.chain-tbl .stage-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

table.chain-tbl ul {
  margin: 0;
  padding-left: 1.1rem;
}

table.chain-tbl li + li {
  margin-top: 0.2rem;
}

.val-split {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.val-lead .im {
  height: 295px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-line);
  background: #111111;
  margin-bottom: 0.85rem;
}

.val-lead .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.val-lead h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.35rem;
}

.val-lead p {
  font-size: 0.94rem;
  line-height: 1.56;
  color: var(--text-primary);
  margin: 0;
}

.val-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-line);
}

.val-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border-line);
}

.val-item .im {
  height: 92px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-line);
  background: #111111;
}

.val-item .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.val-item h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.2rem;
}

.val-item p {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--text-primary);
  margin: 0;
}

/* Unified multi-frame scientific figure panel (TabletSimAI compaction & strength test) */
.panel-strip {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  align-items: start;
}

.panel-strip figure {
  margin: 0;
}

.panel-strip .im {
  border-radius: 2px;
  overflow: hidden;
  background: #ffffff;
}

.panel-strip img {
  width: 100%;
  height: auto;
  display: block;
}

.panel-strip figcaption {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0.35rem;
}

.tablet-asym {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 1.5rem;
  align-items: start;
}

.tablet-pair-frame {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  background: #ffffff;
}

.tablet-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.tablet-asym .gallery-thumb {
  height: 235px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
  cursor: zoom-in;
}

.tablet-pair-grid .gallery-thumb {
  height: 215px;
}

.tablet-asym img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tablet-asym figcaption {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0.35rem;
}

/* Horizontal brochure list (Contact & Downloads) */
.doc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-line);
}

.doc-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-line);
}

.doc-row.lead {
  grid-template-columns: 390px 1fr;
}

.doc-row .im {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.doc-row .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-row h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.2rem;
}

.doc-row .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.doc-row p {
  font-size: 0.93rem;
  line-height: 1.54;
  color: var(--text-primary);
  margin: 0;
}

.doc-row .acts {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Mill Sim AI window overlay */
.msa-media {
  position: relative;
}

.msa-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
}

.msa-media .msa-win {
  position: absolute;
  left: 6%;
  bottom: 10%;
  width: 82%;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.22);
}

.msa-media .msa-win span {
  display: block;
  height: 9px;
  background: #f0f0f0;
  border-bottom: 1px solid var(--border-line);
}

.msa-media .msa-win img {
  width: 100%;
  height: auto;
  display: block;
}

/* BlazeMultiPhysics composite media */
.bmp-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #e5e5e5;
}

.bmp-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
}

.bmp-media .q {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  min-height: 0;
}

.bmp-media figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  min-height: 0;
}

.bmp-media figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bmp-media figure:nth-child(3) img {
  object-position: 40% 60%;
}

.bmp-media figcaption {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.78);
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ==========================================================================
   Two-Column Split, Figures, Lists, and Varied Feature Grids
   ========================================================================== */

.sec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.sec-split.t {
  align-items: start;
}

.sec-split.w {
  grid-template-columns: 1.25fr 1fr;
}

.sec-split p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

/* Figure-led grids (no identical boxed cards) */
.feat-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem 2rem;
}

.feat-grid.c3 {
  grid-template-columns: 1fr 1.05fr 1.15fr;
  gap: 1.5rem;
}

.feat-grid.c2 {
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feat-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 1.1rem;
}

.feat-item .im {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.feat-item .im.dark {
  background: #111111;
  border-color: #222222;
}

.feat-item .im img, .feat-item .im video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feat-item .im.contain img {
  object-fit: contain;
}

.feat-item h4 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.3rem;
}

.feat-item .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.feat-item p, .feat-item li {
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--text-primary);
  margin: 0;
}

.feat-item ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.feat-item li + li {
  margin-top: 0.25rem;
}

.feat-item a.more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blaze-blue);
}

/* Flow figure grid (varied proportions, no card chrome) */
.flow-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.95fr 1.05fr 1.25fr;
  gap: 1.25rem;
  align-items: start;
}

.flow-grid.val {
  grid-template-columns: 1.05fr 1fr 0.95fr 1.05fr;
}

.flow-item .im {
  height: 155px;
  background: #111111;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.flow-item .im.light {
  background: #ffffff;
}

.flow-item .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flow-item .im.contain img {
  object-fit: contain;
}

.flow-item h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.15rem;
}

.flow-item .role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.flow-item p, .flow-item li {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--text-primary);
}

.flow-item ul {
  margin: 0.2rem 0 0;
  padding-left: 1.05rem;
}

/* Five questions / four wear figures */
.qrow {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr 0.95fr 0.95fr;
  gap: 1.1rem;
  align-items: start;
}

.qrow.c4 {
  grid-template-columns: repeat(4, 1fr);
}

.qfig {
  margin: 0;
}

.qfig .im {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.qfig .im.r43 {
  aspect-ratio: 4 / 3;
}

.qfig .im img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qfig .im.cov img {
  object-fit: cover;
}

.qfig h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-heading);
  margin: 0 0 0.25rem;
}

.qfig p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* Industrial mosaic (varied widths, two asymmetric rows) */
.ind-mosaic {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.ind-pair {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

.ind-pair.a {
  grid-template-columns: 1.5fr 1fr;
}

.ind-pair.b {
  grid-template-columns: 1fr 1.5fr;
}

.ind-fig {
  margin: 0;
}

.ind-fig .im {
  height: 300px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
}

.ind-fig .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ind-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-primary);
}

/* Thumbnail grid (lightbox) */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.thumb-grid.c4 {
  grid-template-columns: repeat(4, 1fr);
}

.thumb-grid.c3 {
  grid-template-columns: repeat(3, 1fr);
}

.thumb-grid figure {
  margin: 0;
}

.thumb-grid .gallery-thumb, .thumb-grid .vid {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
  cursor: zoom-in;
}

.thumb-grid .vid {
  cursor: default;
  background: #111111;
}

.thumb-grid img, .thumb-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-grid figcaption {
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--text-primary);
  margin-top: 0.35rem;
}

.thumb-grid figcaption b {
  display: block;
  color: var(--text-heading);
  font-size: 0.86rem;
}

/* Compact figure frame */
.sec-fig {
  margin: 0;
}

.sec-fig .im {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
}

.sec-fig .im.dark {
  background: #111111;
  border-color: #222222;
}

.sec-fig .im img, .sec-fig .im video {
  width: 100%;
  height: auto;
  display: block;
}

.sec-fig .im.fit {
  aspect-ratio: 16 / 10;
}

.sec-fig .im.fit.p34 {
  aspect-ratio: 4 / 3;
}

.sec-fig .im.fit img, .sec-fig .im.fit video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sec-fig figcaption {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-top: 0.45rem;
}

.fig-frame {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fig-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Crop window and crystal shapes */
.img-crop {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
  background: #111111;
}

.img-crop img {
  width: 100%;
  max-width: none;
  display: block;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: #111111;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.shape-grid .img-crop {
  aspect-ratio: 1.1;
  border-color: #222222;
}

.shape-grid span {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #cccccc;
  margin-top: 0.3rem;
}

/* Bullet list */
.sec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}

.sec-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.94rem;
  line-height: 1.52;
  color: var(--text-primary);
}

.sec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-heading);
}

.sec-list.sm li {
  font-size: 0.88rem;
}

/* Call to action strip */
.sec-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
}

.sec-cta b {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-heading);
}

.sec-cta span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.sec-cta .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* References, recognition, publications */
.sec-refs {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sec-refs li {
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

.sec-refs strong {
  color: var(--text-heading);
}

.sec-badges {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sec-badge {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.sec-badge .tile {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  flex: 0 0 auto;
}

.sec-badge .tile img {
  width: auto;
  display: block;
}

.sec-badge p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
}

.sec-badge p strong {
  color: var(--text-heading);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2.25rem;
}

.pub-list li {
  break-inside: avoid;
  font-size: 0.88rem;
  line-height: 1.44;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}

.pub-list a {
  color: var(--text-heading);
  font-weight: 700;
}

.pub-list a:hover {
  color: var(--blaze-blue);
}

.pub-list span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ==========================================================================
   Comparison Matrix Table (BlazeMultiPhysics)
   ========================================================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  margin: 0.5rem 0 1.5rem;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border-line);
  border-right: 1px solid var(--border-line);
  vertical-align: top;
}

.matrix-table th:last-child, .matrix-table td:last-child {
  border-right: none;
}

.matrix-table th {
  background: var(--bg-subtle);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.88rem;
}

.matrix-table th.col-blaze {
  background: #222222;
  color: #ffffff;
}

.matrix-table td.col-blaze {
  background: #f2f7fc;
  color: var(--text-heading);
}

.status-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}

.st-yes {
  color: #3d6b00;
}

.st-partial {
  color: var(--text-secondary);
}

.st-no {
  color: var(--blaze-red);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(17, 17, 17, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img, .lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  max-width: 800px;
  background: #111111;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  color: #ffffff;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

.lightbox-close:hover {
  color: #cccccc;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-line);
  padding: 2.5rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.25rem;
}

.footer-brand h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-heading);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--blaze-blue);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1500px) {
  .nav-container { padding: 0 1rem; }
  .nav-links { gap: 0.28rem; }
  .nav-link { padding: 0.3rem 0.45rem; font-size: 0.78rem; }
  .nav-actions { gap: 0.4rem; }
  .nav-actions .btn { padding: 0.38rem 0.7rem; font-size: 0.76rem; }
  .brand-text { font-size: 0.96rem; }
}

@media (max-width: 1320px) {
  .nav-actions .btn-outline { display: none; }
}

@media (max-width: 1100px) {
  .qrow { grid-template-columns: repeat(2, 1fr); }
  .flow-grid, .flow-grid.val { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .thumb-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .prod-row, .prod-row.flip, .prod-row.w-a2m, .prod-row.w-tab, .prod-row.w-slurry,
  .phys-row, .phys-row.flip,
  .mill-out-grid, .wear-loop-layout, .lifter-asym, .breakage-pair,
  .val-split, .tablet-asym, .doc-row, .doc-row.lead,
  .feat-grid, .feat-grid.c3, .feat-grid.c2, .sec-split, .sec-split.w, .qrow.c4 {
    grid-template-columns: 1fr;
  }
  .prod-row.flip .prod-media, .phys-row.flip .im { order: -1; }
  .ind-pair.a, .ind-pair.b { grid-template-columns: 1fr; gap: 1.1rem; }
  .am-row.a, .am-row.b { grid-template-columns: 1fr; }
  .am-im, .am-row.b .am-im { height: auto; aspect-ratio: 16 / 10; }
  .am-im.wide-ui, .am-row.b .am-im.wide-ui { aspect-ratio: 16 / 7; }
  .ind-fig .im { height: auto; aspect-ratio: 4 / 3; }
  .breakage-pair .im.pair { aspect-ratio: 2 / 1; }
  .phys-row .im, .lifter-asym .big .im, .lifter-stack .im.strip, .lifter-stack .im.wide,
  .mill-out-figs .im.lead, .mill-out-figs .im.sub, .breakage-pair .im, .val-lead .im,
  .tablet-asym .gallery-thumb, .tablet-pair-grid .gallery-thumb {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .ed-gallery { grid-template-columns: repeat(2, 1fr); }
  .ed-gallery .sp-7, .ed-gallery .sp-6, .ed-gallery .sp-5, .ed-gallery .sp-4, .ed-gallery .sp-3 {
    grid-column: span 1;
  }
  .ed-gallery .gallery-thumb, .ed-gallery .vid,
  .ed-gallery .h-lg, .ed-gallery .h-md, .ed-gallery .h-sm {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .pub-list { columns: 1; }
  .hero-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-line);
    gap: 0.9rem;
  }
  .mobile-toggle { display: block; padding: 0.2rem 0.4rem; }
  .nav-eval-mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 0.35rem;
    padding: 0.32rem 0.6rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .brand-sub { display: none; }
  .brand-text { font-size: 0.86rem; }
  .brand-cheetah { height: 30px; }
  .nav-container { padding: 0 0.5rem; gap: 0.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
}

@media (max-width: 600px) {
  .table-wrapper { border: 0; background: none; overflow: visible; }
  .matrix-table, .matrix-table tbody, .matrix-table tr, .matrix-table td { display: block; width: 100%; }
  .matrix-table thead { display: none; }
  .matrix-table tr { border: 1px solid var(--border-line); border-radius: 3px; margin-bottom: 1rem; background: #ffffff; overflow: hidden; }
  .matrix-table td { border: 0; border-bottom: 1px solid #e6e6e6; padding: 0.7rem 0.9rem; }
  .matrix-table td:last-child { border-bottom: 0; }
  .matrix-table td:first-child { background: #f3f3f3; }
  .matrix-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
  }
  .matrix-table td.col-blaze::before { color: var(--text-heading); }
  table.plain-tbl.lp-tbl, table.plain-tbl.lp-tbl tbody, table.plain-tbl.lp-tbl tr, table.plain-tbl.lp-tbl td { display: block; width: 100%; }
  table.plain-tbl.lp-tbl thead { display: none; }
  table.plain-tbl.lp-tbl td { padding: 0.85rem 0; border-top: 1px solid var(--text-heading); border-bottom: 1px solid var(--border-line); }
  table.plain-tbl.lp-tbl td + td { margin-top: 0.75rem; }
  table.plain-tbl.lp-tbl td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-line);
  }
}

@media (max-width: 560px) {
  .thumb-grid, .thumb-grid.c4, .thumb-grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .ed-gallery, .mill-out-sub, .wear-figs-row.a, .wear-figs-row.b,
  .viewer-row.a, .viewer-row.b, .panel-strip, .tablet-pair-grid,
  .flow-grid, .flow-grid.val, .qrow { grid-template-columns: 1fr; }
  .val-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .val-item .im { height: auto; aspect-ratio: 16 / 10; }
  .mill-out-row { align-items: flex-start; }
  .mill-out-row .thumb { width: 76px; height: 76px; flex: 0 0 76px; }
  .wear-figs .im, .viewer-asym .gallery-thumb { height: auto; aspect-ratio: 16 / 10; }
  table.chain-tbl, table.chain-tbl tbody, table.chain-tbl tr, table.chain-tbl td { display: block; width: 100%; }
  table.chain-tbl thead { display: none; }
  table.chain-tbl tr { border-bottom: 1px solid var(--border-line); padding: 0.9rem 0; }
  table.chain-tbl td { border-bottom: 0; padding: 0.3rem 0; }
  table.chain-tbl td.col-fig, table.chain-tbl td.col-stage { width: 100%; }
  table.chain-tbl .stage-im { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .flow-item .im { height: auto; aspect-ratio: 16 / 9; }
  #scales table.plain-tbl { table-layout: fixed; }
  #scales table.plain-tbl th, #scales table.plain-tbl td { font-size: 0.76rem; padding: 0.5rem 0.4rem 0.5rem 0; word-wrap: break-word; }
  .section { padding: 1.8rem 0; }
}

@media (max-width: 420px) {
  .nav-container { padding: 0 0.35rem; gap: 0.2rem; }
  .brand-text { font-size: 0.8rem; }
  .brand-cheetah { height: 26px; }
  .nav-eval-mobile { padding: 0.28rem 0.45rem; font-size: 0.66rem; margin-right: 0.15rem; }
  .mobile-toggle { padding: 0.15rem 0.3rem; }
}
