:root {
  color-scheme: light;
  --red: #ed1c24;
  --red-dark: #b80f16;
  --black: #111111;
  --ink: #202020;
  --muted: #686868;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f5f5f3;
  --radius: 18px;
  font-family: Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; overflow-x: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--black); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.training-banner { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .55rem 1rem; background: var(--red); color: white; text-align: center; font-size: .82rem; letter-spacing: .02em; }
.training-banner strong { letter-spacing: .08em; }
.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 1.25rem 2rem; border-bottom: 1px solid var(--line); }
.site-header p { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.brand { text-decoration: none; color: var(--black); font-weight: 900; letter-spacing: -.04em; font-size: 1.25rem; }
.brand b { color: var(--red); font-size: 1.55rem; font-style: italic; margin-left: .05em; }
main { max-width: 1240px; margin: 0 auto; padding: 0 2rem 4rem; }

.hero { min-height: 510px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 3rem; align-items: center; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 250px; height: 250px; border: 36px solid var(--red); border-radius: 50%; right: 12%; top: 8%; opacity: .06; pointer-events: none; }
.hero.compact { min-height: 390px; }
.eyebrow { margin: 0 0 .65rem; color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 800px; margin: 0; color: var(--black); font-size: clamp(2.7rem, 7vw, 6.2rem); line-height: .93; letter-spacing: -.065em; }
h2 { margin: 0; color: var(--black); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { color: var(--black); }
.lede { max-width: 720px; margin: 1.5rem 0 0; font-size: clamp(1rem, 2vw, 1.25rem); color: #383838; }
.scope-note { max-width: 760px; margin: 1rem 0 0; padding-left: 1rem; border-left: 4px solid var(--red); color: var(--muted); font-size: .9rem; }
.mission-card { position: relative; z-index: 1; background: var(--black); color: white; padding: 2rem; border-radius: var(--radius); box-shadow: 18px 18px 0 var(--red); }
.mission-card p { margin: 0 0 .8rem; color: #bbb; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mission-card h2 { color: white; margin-bottom: 1rem; }
.mission-card small { display: block; margin-top: 1rem; color: #bbb; }
.mission-card .mission-cta { margin: 1rem 0 0; color: white; font-size: .86rem; letter-spacing: 0; text-transform: none; }
.mission-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mission-button { min-height: 48px; border: 1px solid #555; border-radius: 999px; background: transparent; color: white; cursor: pointer; }
.mission-button:hover, .mission-button.is-active { background: var(--red); border-color: var(--red); }
.status-pill { display: inline-block; border: 1px solid #666; border-radius: 999px; padding: .4rem .75rem; color: #ddd; font-size: .8rem; }

.controls, .catalog-section, .workshop-board, .evidence-section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.filter-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)); gap: .8rem; }
label { display: grid; gap: .45rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
input, select { width: 100%; min-height: 48px; border: 1px solid #bdbdbd; border-radius: 10px; background: white; color: var(--black); padding: .65rem .8rem; }
input:hover, select:hover { border-color: var(--black); }
.button { min-height: 44px; border: 0; border-radius: 999px; padding: .65rem 1.1rem; background: var(--red); color: white; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--red-dark); }
.button-secondary { background: var(--black); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #9a9a9a; }
.product-media-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.product-media, .product-placeholder { aspect-ratio: 4 / 3; margin: 0; background: #ececea; overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-media figcaption { position: absolute; bottom: .7rem; left: .7rem; right: .7rem; width: fit-content; }
.product-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #f9f9f7 15%, #e6e6e3 100%); }
.product-placeholder::after { content: ""; position: absolute; width: 70%; height: 70%; border: 1px solid #c4c4c0; border-radius: 50%; }
.stone-shape { z-index: 1; width: 72px; height: 72px; display: grid; place-items: center; border: 2px solid white; transform: rotate(45deg); background: var(--black); color: white; font-size: 1.4rem; }
.stone-shape::first-letter { transform: rotate(-45deg); }
.product-body { padding: 1.25rem; }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.product-id { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.availability { border-radius: 999px; padding: .25rem .55rem; background: #ececec; color: #444; font-size: .7rem; }
.availability-available { background: #daf4e3; color: #176134; }
.availability-reserved { background: #fff0d3; color: #744b00; }
.product-body h3 { margin: .8rem 0 1rem; font-size: 1.3rem; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0; }
.spec-grid div { min-width: 0; padding: .5rem; background: var(--soft); border-radius: 8px; }
.spec-grid dt { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.spec-grid dd { margin: .15rem 0 0; color: var(--black); font-weight: 700; font-size: .82rem; overflow-wrap: anywhere; }
.product-story { min-height: 4.5em; margin: 1rem 0; color: var(--muted); font-size: .86rem; }
.commercial-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.commercial-row span, .concept-label { display: inline-block; border-radius: 999px; padding: .3rem .55rem; background: var(--black); color: white; font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.card-cta { margin: 1rem 0 0; padding: .7rem .85rem; border-left: 3px solid var(--red); background: #f7eeee; color: var(--black); font-size: .78rem; font-weight: 700; }
.empty-state { padding: 4rem 1rem; border: 2px dashed #aaa; border-radius: var(--radius); background: var(--soft); text-align: center; }
.empty-state h3 { margin: 0; }
.empty-state p { color: var(--muted); }

.workshop-grid, .evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.workshop-grid article, .evidence-grid article { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.workshop-grid b, .evidence-grid b { color: var(--red); font-size: 1.6rem; }
.workshop-grid h3, .evidence-grid h3 { margin: .7rem 0 .35rem; }
.workshop-grid p, .evidence-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.evidence-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.75rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem max(2rem, calc((100vw - 1180px) / 2)); background: var(--black); color: white; font-size: .8rem; }
footer strong { color: var(--red); letter-spacing: .08em; }
footer span { color: #aaa; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0; }
  .mission-card { max-width: 560px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-field { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .training-banner { align-items: flex-start; flex-direction: column; gap: 0; text-align: left; }
  .site-header, main { padding-left: 1rem; padding-right: 1rem; }
  .site-header p { max-width: 150px; text-align: right; }
  .hero { min-height: 0; padding: 3rem 0; }
  .hero::before { width: 170px; height: 170px; border-width: 25px; right: -15%; }
  .mission-card { padding: 1.35rem; box-shadow: 8px 8px 0 var(--red); }
  .controls, .catalog-section, .workshop-board, .evidence-section { padding: 3rem 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .filter-grid, .product-grid, .workshop-grid, .evidence-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; padding: 2rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { transition: none; }
}
