:root {
  --ink: #171817;
  --ink-soft: #262825;
  --paper: #f4f0e8;
  --paper-deep: #e6dfd2;
  --brass: #b48a50;
  --brass-light: #d7b77d;
  --red: #a95040;
  --muted: #716f67;
  --line: rgba(23, 24, 23, 0.16);
  --line-light: rgba(244, 240, 232, 0.22);
  --max: 1240px;
}

/* Commerce entry points, city-level factory location and real-material cards. */
.buying-modes {
  border-top: 1px solid var(--line);
  background: #ece7dc;
}

.buying-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.buying-mode-card {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  border: 1px solid rgba(23, 24, 23, 0.22);
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
}

.buying-mode-personal {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--ink);
  color: var(--paper);
}

.buying-mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 14px;
}

.buying-mode-top span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 22px;
}

.buying-mode-personal .buying-mode-top span {
  color: var(--brass-light);
}

.buying-mode-top small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buying-mode-personal .buying-mode-top small,
.buying-mode-personal > p,
.buying-mode-personal li,
.buying-mode-personal .buying-mode-note {
  color: rgba(244, 240, 232, 0.68);
}

.buying-mode-card h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.08;
}

.buying-mode-card > p {
  max-width: 52ch;
  color: var(--muted);
}

.buying-mode-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 34px;
  padding: 0;
  list-style: none;
}

.buying-mode-card li {
  position: relative;
  padding-left: 19px;
  color: #4d4c48;
  font-size: 13px;
}

.buying-mode-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--brass);
  content: "";
}

.buying-mode-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.buying-mode-note {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.factory-image-note {
  margin: 18px 0 0;
  color: rgba(244, 240, 232, 0.56);
  font-size: 11px;
}

.global-presence {
  border-top: 1px solid var(--line-light);
}

.global-presence-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.global-presence-copy h2 {
  margin-bottom: 24px;
}

.global-presence-copy h2 span {
  color: var(--brass-light);
}

.global-presence-copy > p:not(.section-kicker) {
  color: rgba(244, 240, 232, 0.68);
}

.global-facts {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid var(--line-light);
}

.global-facts span {
  border-bottom: 1px solid var(--line-light);
  padding: 13px 0;
  color: rgba(244, 240, 232, 0.74);
  font-size: 12px;
}

.global-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: #07101a;
  aspect-ratio: 3 / 2;
}

.global-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-marker {
  position: absolute;
  top: 46.1%;
  left: 54.2%;
  display: grid;
  min-width: 184px;
  transform: translate(-10px, -10px);
  border-left: 1px solid rgba(215, 183, 125, 0.7);
  background: rgba(7, 16, 26, 0.86);
  padding: 12px 14px 12px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.location-marker-dot {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(169, 80, 64, 0.22);
}

.location-marker strong {
  color: #fff;
  font-size: 13px;
}

.location-marker small {
  margin-top: 3px;
  color: var(--brass-light);
  font-size: 10px;
}

.global-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: rgba(7, 16, 26, 0.76);
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.material-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 56px;
}

.material-card {
  border: 1px solid var(--line);
  background: #f7f4ed;
}

.material-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.material-card > div {
  min-height: 118px;
  padding: 15px 16px 18px;
}

.material-card span {
  color: var(--red);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.material-card h3 {
  margin: 8px 0 7px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.material-card small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 920px) {
  .global-presence-grid {
    grid-template-columns: 1fr;
  }

  .material-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .buying-mode-grid {
    grid-template-columns: 1fr;
  }

  .buying-mode-card {
    min-height: 420px;
    padding: 28px 24px;
  }

  .buying-mode-top {
    margin-bottom: 40px;
  }

  .global-visual {
    margin-right: -19px;
    margin-left: -19px;
    aspect-ratio: 1 / 1;
  }

  .global-visual > img {
    object-position: 54% center;
  }

  .location-marker {
    top: 41%;
    left: 43%;
    min-width: 160px;
  }

  .material-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 44px;
  }

  .material-card > div {
    min-height: 110px;
    padding: 13px 12px 15px;
  }

  .material-card h3 {
    font-size: 15px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

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

.page-width {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 84px;
  padding: 0 32px;
  color: #fff;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(23, 24, 23, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 185px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(215, 183, 125, 0.35);
}

.brand-copy,
.footer-brand > span:last-child {
  display: grid;
  gap: 0;
}

.brand-copy strong,
.footer-brand strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
}

.brand-copy small,
.footer-brand small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a,
.header-cta,
.quiet-link,
.source-links a,
.contact-link,
.back-top {
  font-size: 13px;
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.quiet-link:hover,
.quiet-link:focus-visible {
  color: var(--brass-light);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 5px;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--brass-light);
  border-color: var(--brass-light);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  height: min(900px, 92vh);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("./assets/factory-gate.jpeg");
  background-position: 51% 53%;
  background-size: cover;
  transform: scale(1.015);
}

.hero-overlay {
  background: rgba(11, 14, 13, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: calc(100% - 84px);
  flex-direction: column;
  justify-content: center;
  padding-top: 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--brass-light);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow {
  max-width: 520px;
  padding-left: 16px;
  border-left: 2px solid var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-weight: 500;
  line-height: 1.13;
}

h1 {
  max-width: 750px;
  margin-bottom: 26px;
  font-size: clamp(54px, 7vw, 92px);
  letter-spacing: 0;
}

h1 em {
  color: var(--brass-light);
  font-style: normal;
}

.hero-summary {
  max-width: 520px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-light {
  color: var(--ink);
  background: var(--paper);
}

.button-light:hover,
.button-light:focus-visible {
  color: #fff;
  background: var(--red);
}

.button-dark {
  color: var(--paper);
  background: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--red);
}

.quiet-link {
  color: rgba(255, 255, 255, 0.78);
}

.hero-footer {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  padding-top: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.section-paper,
.section-ink,
.section-brass {
  padding: 122px 0;
}

.section-paper {
  background: var(--paper);
}

.section-ink {
  color: var(--paper);
  background: var(--ink);
}

.section-brass {
  color: var(--ink);
  background: var(--brass);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1.1fr);
  gap: 60px;
}

.intro h2,
.section-heading h2,
.products h2,
.story h2,
.contact h2 {
  margin-bottom: 28px;
  font-size: clamp(38px, 5vw, 65px);
}

h2 span {
  color: var(--brass);
}

.lead-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.rule-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
  color: var(--ink-soft);
  font-size: 14px;
}

.rule-mark {
  width: 42px;
  height: 1px;
  background: var(--red);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 360px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.light-heading .section-kicker,
.brass-heading .section-kicker {
  color: var(--brass-light);
}

.light-heading h2,
.brass-heading h2 {
  color: var(--paper);
}

.light-heading h2 span {
  color: var(--brass-light);
}

.light-heading > p {
  color: rgba(244, 240, 232, 0.65);
}

.brass-heading h2 span {
  color: var(--paper);
}

.brass-heading > p {
  color: rgba(23, 24, 23, 0.72);
}

.factory-gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 345px 240px;
  gap: 18px;
}

.factory-gallery figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #30322e;
}

.factory-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.factory-gallery figure:hover img {
  transform: scale(1.035);
}

.gallery-feature {
  grid-row: span 2;
}

.gallery-tall img {
  object-position: 57% center;
}

.gallery-wide {
  grid-column: 2;
}

.gallery-wide img {
  object-position: center 58%;
}

.factory-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 42px 22px 18px;
  background: rgba(12, 14, 13, 0.7);
}

.factory-gallery figcaption span {
  color: var(--brass-light);
  font-size: 11px;
}

.factory-gallery figcaption strong {
  max-width: 420px;
  color: #fff;
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.factory-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  border-top: 1px solid var(--line-light);
}

.factory-signals > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 5px 15px;
  padding-top: 20px;
}

.factory-signals b {
  grid-row: span 2;
  color: var(--brass-light);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.factory-signals span {
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
}

.factory-signals small {
  color: rgba(244, 240, 232, 0.55);
  font-size: 12px;
}

.material-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.filter-button {
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.material-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.material-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 50px;
}

.material-row {
  display: grid;
  grid-template-columns: 116px minmax(110px, 1fr) 30px minmax(95px, 0.8fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.material-row.is-hidden {
  display: none;
}

.material-code {
  color: var(--red);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.material-row strong {
  font-weight: 600;
}

.material-row > span:not(.material-code),
.material-row small {
  color: var(--muted);
  font-size: 12px;
}

.craft-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(23, 24, 23, 0.4);
}

.craft-step {
  position: relative;
  min-height: 220px;
  border-right: 1px solid rgba(23, 24, 23, 0.4);
  padding: 25px 26px 0 0;
}

.craft-step:not(:first-child) {
  padding-left: 26px;
}

.craft-step:last-child {
  border-right: 0;
}

.craft-step b {
  display: block;
  margin-bottom: 22px;
  color: rgba(23, 24, 23, 0.58);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.craft-step h3 {
  margin-bottom: 9px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.craft-step p {
  max-width: 220px;
  margin-bottom: 0;
  color: rgba(23, 24, 23, 0.68);
  font-size: 13px;
}

.products-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.products h2 {
  margin-bottom: 23px;
}

.products .button {
  margin-top: 23px;
}

.product-list {
  border-top: 1px solid var(--line);
}

.product-list article {
  display: grid;
  grid-template-columns: 150px 42px 1fr 30px;
  gap: 20px;
  align-items: center;
  min-height: 170px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.product-list article > .product-visual {
  display: block;
  height: 132px;
  overflow: hidden;
  background: var(--ink);
  color: inherit;
  font-size: 0;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-list article:hover .product-visual img {
  transform: scale(1.025);
}

.product-list article > span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 20px;
}

.product-list h3 {
  margin-bottom: 3px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 26px;
  font-weight: 500;
}

.product-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.product-list article > b {
  color: var(--brass);
  font-size: 22px;
  font-weight: 400;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.story-image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.image-stamp {
  position: absolute;
  right: 17px;
  bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.75);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.story-copy h2 {
  margin-bottom: 23px;
}

.story-copy h2 span {
  color: var(--brass-light);
}

.story-copy > p:not(.section-kicker) {
  max-width: 470px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 15px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.source-links a {
  border-bottom: 1px solid var(--brass-light);
  padding-bottom: 5px;
  color: var(--brass-light);
}

.source-links a:hover,
.source-links a:focus-visible {
  color: #fff;
  border-color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: start;
}

.contact h2 {
  max-width: 12ch;
  font-size: clamp(36px, 4.2vw, 54px);
}

.contact-panel {
  border-top: 2px solid var(--red);
  padding-top: 20px;
}

.contact-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.contact-panel h3 {
  margin-bottom: 28px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.contact-panel > p:not(.contact-label) {
  margin-bottom: 27px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
}

.contact-address {
  max-width: 34rem;
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.75;
}

.contact-link {
  display: inline-flex;
  gap: 11px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

.site-footer {
  padding: 28px 0;
  color: rgba(244, 240, 232, 0.62);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  min-width: 260px;
}

.footer-brand small {
  color: rgba(244, 240, 232, 0.55);
}

.footer-inner > p {
  margin: 0;
  font-size: 11px;
  text-align: center;
}

.back-top {
  min-width: 90px;
  color: var(--brass-light);
  text-align: right;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 22px;
  }

  .site-nav {
    gap: 18px;
  }

  .header-cta {
    display: none;
  }

  .intro-grid,
  .products-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .factory-gallery {
    grid-template-rows: 310px 220px;
  }

  .craft-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .craft-step:nth-child(2) {
    border-right: 0;
  }

  .craft-step:nth-child(n + 3) {
    border-top: 1px solid rgba(23, 24, 23, 0.4);
  }
}

@media (max-width: 640px) {
  .page-width {
    width: min(var(--max), calc(100% - 38px));
  }

  .site-header {
    height: 72px;
    padding: 0 19px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong,
  .footer-brand strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 19px 18px;
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-bottom: 1px solid rgba(244, 240, 232, 0.12);
    padding: 14px 0;
  }

  .hero {
    min-height: 680px;
    height: 88vh;
  }

  .hero-image {
    background-position: 61% center;
  }

  .hero-content {
    height: calc(100% - 75px);
    padding-top: 55px;
  }

  h1 {
    font-size: clamp(46px, 13vw, 56px);
  }

  .hero-summary {
    max-width: 330px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }

  .hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    left: 19px;
    right: auto;
    width: calc(100% - 38px);
    bottom: 18px;
    font-size: 10px;
  }

  .hero-footer span {
    flex: 0 1 auto;
    white-space: nowrap;
    text-align: center;
  }

  .hero-footer span:not(:first-child) {
    display: none;
  }

  .section-paper,
  .section-ink,
  .section-brass {
    padding: 82px 0;
  }

  .intro-grid {
    gap: 23px;
  }

  .section-heading {
    display: block;
    margin-bottom: 37px;
  }

  .section-heading > p {
    margin-top: 22px;
  }

  .factory-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 300px 220px 220px;
  }

  .gallery-feature,
  .gallery-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .factory-signals {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 45px;
  }

  .factory-signals > div {
    border-bottom: 1px solid var(--line-light);
    padding: 16px 0;
  }

  .material-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .material-count {
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }

  .material-list {
    grid-template-columns: 1fr;
  }

  .product-list article {
    grid-template-columns: 42px 1fr 24px;
    gap: 16px;
    min-height: 0;
    padding: 22px 0;
  }

  .product-list article > .product-visual {
    grid-column: 1 / -1;
    width: 100%;
    height: 210px;
  }

  .material-row {
    grid-template-columns: 96px minmax(92px, 1fr) 22px minmax(85px, 0.85fr);
    gap: 7px;
    min-height: 63px;
    font-size: 13px;
  }

  .material-code {
    font-size: 9px;
  }

  .material-row small {
    line-height: 1.35;
  }

  .craft-line {
    grid-template-columns: 1fr;
  }

  .craft-step,
  .craft-step:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 24, 23, 0.4);
    padding: 21px 0;
  }

  .craft-step:nth-child(n + 3) {
    border-top: 0;
  }

  .craft-step:last-child {
    border-bottom: 0;
  }

  .craft-step b {
    display: inline-block;
    width: 46px;
    margin-bottom: 0;
    font-size: 21px;
  }

  .craft-step h3 {
    display: inline-block;
    margin-bottom: 0;
    font-size: 23px;
  }

  .craft-step p {
    margin: 8px 0 0 50px;
  }

  .story-image,
  .story-image img {
    min-height: 280px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-inner > p {
    max-width: 270px;
    text-align: left;
  }

  .back-top {
    text-align: left;
  }
}

/* Public cue configurator: the visitor-facing surface follows the factory
   site's paper, ink and brass language; it is intentionally separate from
   the internal EISCore component styles. */
.configurator-page {
  min-height: 100vh;
  padding: 148px 0 96px;
  background: var(--paper);
}

.configurator-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 42px;
}

.configurator-page-heading h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
}

.configurator-page-heading h1::first-line {
  color: var(--ink);
}

.configurator-page-heading > p:last-child {
  max-width: 430px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px;
}

.configurator-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brass-light);
  font-size: 12px;
  white-space: nowrap;
}

.mobile-configurator-link {
  display: none;
}

.hero-configurator-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(215, 183, 125, .72);
  color: var(--brass-light);
  font-size: 12px;
  white-space: nowrap;
}

.hero-configurator-link:hover,
.hero-configurator-link:focus-visible {
  border-color: var(--paper);
  color: var(--paper);
  background: rgba(215, 183, 125, .14);
}

body.public-configurator-page .site-header {
  background: rgba(23, 24, 23, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.configurator-nav-link:hover,
.configurator-nav-link:focus-visible {
  color: #fff;
}

.product-configure-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.product-configure-link:hover,
.product-configure-link:focus-visible {
  color: var(--brass);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.public-configurator {
  --cue-line: rgba(23, 24, 23, .14);
  --cue-soft: rgba(23, 24, 23, .06);
  color: var(--ink);
}

.cue-module-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: min(620px, calc(100svh - 230px));
  border-top: 1px solid var(--cue-line, rgba(23, 24, 23, .14));
  border-bottom: 1px solid var(--cue-line, rgba(23, 24, 23, .14));
  color: var(--muted);
  font-size: 12px;
}

.cue-module-loading span {
  width: 8px;
  height: 8px;
  background: var(--red);
  animation: cue-loading-pulse 900ms ease-in-out infinite alternate;
}

@keyframes cue-loading-pulse {
  to { opacity: .28; transform: scale(.72); }
}

.cue-lab-bar,
.cue-security-line,
.cue-visual-heading,
.cue-options-head,
.cue-option-heading,
.shot-panel-head,
.shot-controls,
.cue-summary-row,
.cue-summary-specs,
.cue-view-switcher,
.cue-lab-tools {
  display: flex;
  align-items: center;
}

.cue-lab-bar {
  justify-content: space-between;
  gap: 18px;
  min-height: 45px;
  padding: 0 16px;
  border-top: 1px solid var(--cue-line);
  border-bottom: 1px solid var(--cue-line);
  color: var(--muted);
  font: 600 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cue-lab-bar > div:first-child,
.cue-lab-tools {
  gap: 10px;
}

.cue-lab-mark,
.cue-security-mark,
.shot-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(169, 80, 64, .12);
}

.cue-lab-tools button,
.cue-security-line button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.cue-lab-tools button:hover,
.cue-lab-tools button:focus-visible,
.cue-security-line button:hover,
.cue-security-line button:focus-visible {
  color: var(--brass);
}

.cue-lab-divider {
  width: 1px;
  height: 14px;
  background: var(--cue-line);
}

.cue-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, .62fr);
  min-height: 760px;
  border-bottom: 1px solid var(--cue-line);
}

.cue-visual-column {
  min-width: 0;
  padding: 22px 16px 20px;
  background: #20221f;
  color: var(--paper);
}

.cue-options-column {
  min-width: 0;
  padding: 22px 22px 24px;
  background: var(--paper);
  border-left: 1px solid rgba(244, 240, 232, .15);
}

.cue-visual-heading,
.cue-options-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  min-height: 66px;
}

.cue-visual-heading h2,
.cue-options-head h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(24px, 2.8vw, 39px);
  font-weight: 500;
  line-height: 1.08;
}

.cue-options-head h2 {
  color: var(--ink);
}

.cue-kicker {
  margin: 0;
  color: var(--brass-light);
  font: 700 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cue-visual-heading > span,
.candidate-stamp,
.cue-option-heading span {
  color: rgba(244, 240, 232, .54);
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.candidate-stamp,
.cue-option-heading span {
  color: var(--muted);
}

.cue-canvas-wrap {
  position: relative;
  height: 485px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, .17);
  background: #171817;
}

.cue-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.cue-canvas-badge {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  padding: 7px 9px;
  border: 1px solid rgba(215, 183, 125, .34);
  color: var(--brass-light);
  background: rgba(23, 24, 23, .78);
  font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.cue-ball-placement {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  max-width: min(86%, 420px);
  padding: 10px 13px;
  border: 1px solid rgba(215, 183, 125, .7);
  color: var(--ink);
  background: rgba(244, 240, 232, .94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.cue-ball-placement.is-invalid {
  border-color: rgba(178, 74, 55, .82);
  color: #7e2d20;
}

.cue-canvas-fallback {
  position: absolute;
  inset: 50% auto auto 50%;
  color: rgba(244, 240, 232, .3);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cue-canvas-wrap.is-unavailable canvas {
  display: none;
}

.cue-view-switcher {
  gap: 0;
  min-height: 48px;
  border-bottom: 1px solid rgba(244, 240, 232, .16);
}

.cue-view-switcher button,
.shot-reset,
.shot-quick button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, .21);
  color: rgba(244, 240, 232, .65);
  background: transparent;
  cursor: pointer;
  font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cue-view-switcher button:hover,
.cue-view-switcher button:focus-visible,
.cue-view-switcher button.is-active,
.shot-reset:hover,
.shot-reset:focus-visible,
.shot-quick button:hover,
.shot-quick button:focus-visible {
  border-color: var(--brass);
  color: var(--paper);
  background: rgba(180, 138, 80, .15);
}

.cue-shot-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(215, 183, 125, .34);
  background: rgba(23, 24, 23, .42);
}

.shot-panel-head {
  justify-content: space-between;
  gap: 20px;
}

.shot-panel-head h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  font-weight: 500;
}

.shot-panel-head > span,
.cue-physics-note {
  color: rgba(244, 240, 232, .57);
  font-size: 11px;
}

.shot-controls {
  gap: 12px;
  margin-top: 16px;
}

.shot-controls label {
  display: grid;
  flex: 1;
  gap: 6px;
  color: rgba(244, 240, 232, .62);
  font-size: 11px;
}

.shot-controls input {
  width: 100%;
  accent-color: var(--brass);
}

.shot-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--brass);
  color: var(--ink);
  background: var(--brass-light);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.shot-button:hover,
.shot-button:focus-visible {
  background: #f0d39a;
}

.shot-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.shot-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  box-shadow: none;
}

.shot-quick {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cue-physics-note {
  margin: 12px 0 0;
}

.cue-option-list {
  display: grid;
  gap: 22px;
  max-height: 570px;
  padding: 7px 0 18px;
  overflow: auto;
  scrollbar-color: var(--brass) transparent;
}

.cue-option-group {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cue-line);
}

.cue-option-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cue-option-heading strong {
  font-size: 13px;
  font-weight: 700;
}

.cue-choice-grid {
  display: grid;
  gap: 7px;
}

.cue-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 7px 9px;
  border: 1px solid var(--cue-line);
  color: var(--ink);
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
  text-align: left;
}

.cue-choice:hover,
.cue-choice:focus-visible,
.cue-choice.is-selected {
  border-color: var(--brass);
  background: rgba(180, 138, 80, .12);
}

.cue-choice.is-selected {
  box-shadow: inset 3px 0 0 var(--brass);
}

.choice-swatch {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  background: var(--choice-color);
  border: 1px solid rgba(23, 24, 23, .2);
}

.choice-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.cue-choice strong,
.cue-choice small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-choice strong {
  font-size: 11px;
  font-weight: 700;
}

.cue-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.cue-custom-field {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cue-line);
}

.cue-custom-field label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.cue-custom-field label small {
  color: var(--muted);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.cue-custom-field input,
.cue-form-grid input,
.cue-form-wide textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--cue-line);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .34);
  outline: none;
  font: inherit;
}

.cue-custom-field input:focus,
.cue-form-grid input:focus,
.cue-form-wide textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(180, 138, 80, .14);
}

.cue-custom-size,
.cue-artwork-picker {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--cue-line);
}

.cue-custom-size output {
  color: var(--muted);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cue-custom-field input[type="range"] {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--brass);
}

.cue-artwork-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cue-artwork-label strong {
  font-size: 12px;
}

.cue-artwork-label small {
  color: var(--muted);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.cue-custom-field .cue-artwork-upload-button {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font-size: 10px;
}

.cue-custom-field input.sr-only {
  width: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
}

.cue-artwork-preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 6px;
  border: 1px solid var(--cue-line);
  background: rgba(255, 255, 255, .28);
}

.cue-artwork-preview[hidden] {
  display: none;
}

.cue-artwork-preview img {
  width: 54px;
  height: 38px;
  object-fit: contain;
  background: #fff;
}

.cue-artwork-preview span {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-artwork-preview button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--cue-line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.cue-artwork-hint,
.cue-artwork-status {
  min-height: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.cue-artwork-status:not(:empty) {
  color: var(--red);
}

.cue-summary {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.cue-summary-row {
  justify-content: space-between;
  gap: 16px;
}

.cue-summary-row span,
.cue-summary-specs span {
  color: var(--muted);
  font: 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cue-summary-row strong {
  font: 700 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cue-summary-specs {
  flex-wrap: wrap;
  gap: 7px 12px;
  padding-top: 3px;
}

.cue-summary p {
  margin: 3px 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.cue-request-button,
.cue-submit-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.cue-request-button:hover,
.cue-request-button:focus-visible,
.cue-submit-button:hover,
.cue-submit-button:focus-visible {
  border-color: var(--red);
  background: var(--red);
}

.cue-security-line {
  flex-wrap: wrap;
  gap: 10px 15px;
  min-height: 56px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.cue-security-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--paper);
  background: var(--red);
  font-size: 11px;
}

.cue-security-line > span:nth-child(2) {
  flex: 1;
  min-width: 220px;
}

.cue-security-line > span:nth-child(3) {
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.cue-security-line button {
  font-size: 11px;
}

.cue-modal[hidden] {
  display: none;
}

.cue-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.cue-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 23, .72);
}

.cue-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(215, 183, 125, .5);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

.cue-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.cue-modal-panel h2 {
  margin: 8px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 34px;
  font-weight: 500;
}

.cue-modal-intro {
  max-width: 590px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.cue-modal-config {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.cue-modal-config span,
.cue-modal-config strong {
  padding: 6px 8px;
  border: 1px solid var(--cue-line);
  font-size: 11px;
}

.cue-modal-config strong {
  margin-left: auto;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cue-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cue-form-grid label,
.cue-form-wide {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}

.cue-form-wide {
  margin-top: 14px;
}

.cue-form-wide textarea {
  min-height: 84px;
  resize: vertical;
}

.cue-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.cue-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--red);
}

.cue-form-status {
  min-height: 22px;
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
}

.cue-submit-button {
  width: 100%;
}

body.cue-modal-open {
  overflow: hidden;
}

@media (max-width: 1050px) {
  .cue-workbench {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  }

  .cue-canvas-wrap {
    height: 430px;
  }

  .configurator-nav-link {
    display: none;
  }
}

@media (max-width: 760px) {
  .configurator-page {
    padding-top: 108px;
    padding-bottom: 52px;
  }

  .configurator-page-heading {
    display: block;
    margin-bottom: 28px;
  }

  .configurator-page-heading h1 {
    font-size: 42px;
  }

  .configurator-page-heading > p:last-child {
    margin-top: 18px;
  }

  .cue-lab-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 11px;
  }

  .cue-lab-tools {
    width: 100%;
    justify-content: space-between;
  }

  .cue-workbench {
    display: block;
    min-height: 0;
  }

  .cue-visual-column,
  .cue-options-column {
    padding: 17px 0;
  }

  .cue-visual-heading,
  .cue-options-head,
  .cue-option-list,
  .cue-custom-field,
  .cue-summary {
    margin-right: 0;
    margin-left: 0;
  }

  .cue-visual-heading,
  .cue-options-head,
  .cue-visual-column > .cue-view-switcher,
  .cue-shot-panel,
  .cue-physics-note,
  .cue-options-column > .cue-option-list,
  .cue-custom-field,
  .cue-summary {
    width: calc(100% - 32px);
    margin-right: auto;
    margin-left: auto;
  }

  .cue-canvas-wrap {
    height: 350px;
    margin-top: 3px;
  }

  .cue-ball-placement {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    padding: 9px 10px;
    text-align: center;
  }

  .cue-view-switcher {
    overflow-x: auto;
  }

  .cue-view-switcher button {
    flex: 0 0 auto;
  }

  .cue-shot-panel {
    padding: 13px;
  }

  .shot-panel-head,
  .shot-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .shot-controls label,
  .shot-button,
  .shot-reset {
    width: 100%;
  }

  .cue-option-list {
    max-height: none;
    overflow: visible;
  }

  .cue-options-column {
    border-top: 1px solid var(--cue-line);
    border-left: 0;
  }

  .cue-security-line {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .cue-security-line > span:nth-child(2) {
    min-width: 0;
  }

  .cue-security-line > span:nth-child(3) {
    margin-top: 4px;
  }

  .cue-modal {
    padding: 10px;
  }

  .cue-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 27px 17px 20px;
  }

  .cue-modal-panel h2 {
    font-size: 29px;
  }

  .cue-form-grid {
    grid-template-columns: 1fr;
  }

  .cue-modal-config strong {
    margin-left: 0;
  }
}

/* Public configurator refinement: a compact commerce layout with one choice
   category at a time and a dedicated mobile options sheet. */
.configurator-page {
  padding: 116px 0 72px;
}

.configurator-page-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 32px;
  margin-bottom: 26px;
}

.configurator-page-heading h1 {
  margin-top: 7px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
}

body.public-configurator-page .sales-agent {
  display: none;
}

.mobile-login-link {
  display: none;
}

.cue-workbench {
  grid-template-columns: minmax(0, 1.5fr) minmax(350px, .62fr);
  grid-template-rows: minmax(0, 1fr);
  height: min(720px, calc(100vh - 170px));
  min-height: 620px;
}

.cue-visual-column,
.cue-options-column {
  min-height: 0;
}

.cue-visual-column {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  overflow: hidden;
}

.cue-options-column {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  overflow: hidden;
}

.cue-visual-heading,
.cue-options-head {
  align-items: center;
  min-height: 48px;
}

.cue-visual-heading h2,
.cue-options-head h2 {
  margin: 0;
  font-size: 27px;
}

.cue-canvas-wrap {
  flex: 1 1 auto;
  height: auto;
  min-height: 350px;
}

.cue-view-switcher {
  flex: 0 0 auto;
}

.cue-shot-panel {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 12px;
}

.shot-panel-head h3 {
  font-size: 19px;
}

.shot-controls {
  margin-top: 10px;
}

.cue-physics-note {
  flex: 0 0 auto;
  margin: 9px 0 0;
}

.cue-options-close,
.cue-mobile-config-bar,
.cue-options-backdrop {
  display: none;
}

.cue-option-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
  margin: 5px 0 14px;
  border-bottom: 1px solid var(--cue-line);
}

.cue-option-tabs button {
  min-height: 40px;
  padding: 0 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.cue-option-tabs button:hover,
.cue-option-tabs button:focus-visible,
.cue-option-tabs button.is-active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.cue-option-list {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0 3px 10px 0;
  overflow-y: auto;
}

.cue-option-group {
  padding: 0 0 14px;
  margin-bottom: 14px;
}

.cue-choice-grid {
  grid-template-columns: 1fr;
}

.cue-option-group[data-option-group="baseModel"] .cue-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cue-choice {
  min-height: 54px;
}

.cue-custom-field {
  flex: 0 0 auto;
  padding: 12px 0;
}

.cue-custom-field[hidden] {
  display: none;
}

.cue-summary {
  flex: 0 0 auto;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--cue-line);
}

.cue-summary-specs {
  max-height: 30px;
  overflow: hidden;
}

.cue-summary p {
  margin: 0;
}

.cue-request-button {
  min-height: 42px;
}

.cue-modal {
  z-index: 130;
}

body.cue-options-open {
  overflow: hidden;
}

@media (max-width: 1050px) and (min-width: 761px) {
  .cue-workbench {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  }

  .cue-choice-grid {
    grid-template-columns: 1fr;
  }

  .cue-option-group[data-option-group="baseModel"] .cue-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .configurator-page {
    padding: 92px 0 42px;
  }

  .configurator-page-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 20px;
  }

  .configurator-page-heading h1 {
    margin-top: 5px;
    font-size: 34px;
  }

  .configurator-page-heading > p:last-child {
    margin: 0;
    font-size: 13px;
  }

  .cue-lab-bar {
    align-items: center;
    flex-direction: row;
    min-height: 42px;
    padding: 0 12px;
  }

  .cue-lab-tools {
    width: auto;
  }

  .cue-lab-divider,
  .cue-lab-tools [data-design-id] {
    display: none;
  }

  .cue-workbench {
    display: block;
    height: auto;
    min-height: 0;
  }

  .cue-visual-column {
    display: flex;
    padding: 14px 0 0;
    overflow: visible;
  }

  .cue-visual-heading,
  .cue-visual-column > .cue-view-switcher,
  .cue-shot-panel,
  .cue-physics-note,
  .cue-mobile-config-bar {
    width: calc(100% - 24px);
  }

  .cue-visual-heading h2 {
    font-size: 23px;
  }

  .cue-visual-heading > span {
    max-width: 108px;
    text-align: right;
  }

  .cue-canvas-wrap {
    flex: none;
    height: min(48svh, 390px);
    min-height: 310px;
    margin-top: 0;
  }

  .cue-view-switcher {
    min-height: 46px;
  }

  .cue-view-switcher button {
    padding-inline: 10px;
  }

  .cue-shot-panel {
    max-height: 255px;
    overflow: auto;
  }

  .shot-panel-head,
  .shot-controls {
    flex-direction: row;
    align-items: center;
  }

  .shot-controls {
    flex-wrap: wrap;
  }

  .shot-controls label {
    flex-basis: 100%;
  }

  .shot-button,
  .shot-reset {
    flex: 1 1 0;
    width: auto;
  }

  .cue-physics-note {
    display: none;
  }

  .cue-mobile-config-bar {
    position: sticky;
    z-index: 20;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px auto 14px;
    padding: 11px 12px;
    border: 1px solid rgba(23, 24, 23, .12);
    color: var(--ink);
    background: rgba(244, 240, 232, .97);
    box-shadow: 0 10px 28px rgba(23, 24, 23, .18);
  }

  .cue-mobile-config-bar > div {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .cue-mobile-config-bar span {
    color: var(--muted);
    font-size: 10px;
  }

  .cue-mobile-config-bar strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cue-mobile-config-bar button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-size: 11px;
    font-weight: 700;
  }

  .cue-options-column {
    position: fixed;
    z-index: 112;
    inset: auto 0 0;
    display: flex;
    width: 100%;
    height: clamp(330px, 46svh, 430px);
    min-height: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    overflow: hidden;
    border-top: 1px solid var(--brass);
    border-left: 0;
    background: var(--paper);
    box-shadow: 0 -18px 48px rgba(23, 24, 23, .26);
    transform: translateY(105%);
    transition: transform 220ms ease;
  }

  .cue-options-column.is-open {
    transform: translateY(0);
  }

  .cue-options-head {
    width: 100%;
    min-height: 34px;
  }

  .cue-options-head h2 {
    font-size: 20px;
  }

  .cue-options-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 24px;
  }

  .cue-option-tabs {
    width: 100%;
    margin: 0 0 8px;
  }

  .cue-option-tabs button {
    min-height: 38px;
    font-size: 10px;
  }

  .cue-options-column > .cue-option-list,
  .cue-custom-field,
  .cue-summary {
    width: 100%;
    margin-inline: 0;
  }

  .cue-option-list {
    max-height: none;
    padding-bottom: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .cue-choice-grid {
    grid-template-columns: 1fr;
  }

  .cue-option-group {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .cue-choice {
    min-height: 48px;
  }

  .cue-option-group[data-option-group="baseModel"] .cue-choice-grid {
    grid-template-columns: 1fr;
  }

  .cue-summary p,
  .cue-summary-specs {
    display: none;
  }

  .cue-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px;
    padding-top: 7px;
  }

  .cue-summary-row {
    min-width: 0;
  }

  .cue-summary-row strong {
    font-size: 13px;
  }

  .cue-request-button {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .cue-options-backdrop:not([hidden]) {
    position: fixed;
    z-index: 111;
    inset: 0 0 clamp(330px, 46svh, 430px);
    display: block;
    background: rgba(23, 24, 23, .14);
  }

  .cue-security-line {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .cue-security-line > span:nth-child(2) {
    display: none;
  }

  .cue-security-line > span:nth-child(3) {
    margin: 0 auto 0 0;
  }
}

@media (max-width: 760px) {
  body.cue-options-open .cue-canvas-wrap {
    height: 190px;
    min-height: 180px;
  }

  body.cue-options-open .cue-view-switcher,
  body.cue-options-open .cue-mobile-config-bar,
  body.cue-options-open .cue-physics-note {
    visibility: hidden;
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }

  body.cue-play-mode .cue-canvas-wrap {
    height: 238px;
    min-height: 228px;
  }

  body.cue-play-mode .cue-mobile-config-bar {
    display: none;
  }

  body.cue-play-mode .cue-shot-panel {
    width: calc(100% - 24px);
    max-height: none;
    margin: 10px auto 12px;
    padding: 11px;
    overflow: visible;
  }

  body.cue-play-mode .shot-panel-head .cue-kicker {
    display: none;
  }

  body.cue-play-mode .shot-panel-head h3 {
    margin: 0;
    font-size: 17px;
  }

  body.cue-play-mode .shot-controls,
  body.cue-play-mode .shot-quick {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
  }

  .brand-copy {
    min-width: 0;
    overflow: hidden;
  }

  .brand-copy strong,
  .brand-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-tools {
    flex: 0 0 auto;
  }

  .header-tools .login-link {
    display: none;
  }

  .site-nav .mobile-login-link {
    display: block;
    color: var(--brass-light);
  }

  .site-nav .mobile-configurator-link {
    display: block;
    color: var(--paper);
  }
}

@media (max-width: 420px) {
  .locale-picker-label {
    display: none;
  }
}

@media (max-width: 380px) {
  .locale-picker-label {
    display: none;
  }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-loading,
.site-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.site-error h1 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 56px);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.login-link,
.locale-picker select {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.locale-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.locale-picker-label {
  white-space: nowrap;
}

.login-link:hover,
.login-link:focus-visible {
  color: var(--brass-light);
}

.locale-picker select {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  outline: 0;
  background: transparent;
  padding: 4px 2px;
  color: inherit;
}

.locale-picker option {
  color: var(--ink);
}

.hero h1 span {
  color: var(--brass-light);
}

.product-list article > a {
  color: var(--brass);
  font-size: 22px;
}

.product-list article > a:hover,
.product-list article > a:focus-visible {
  color: var(--red);
}

.product-meta {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.detail-hero {
  padding: 170px 0 96px;
  color: var(--paper);
  background: var(--ink);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: center;
}

.detail-image {
  min-height: 420px;
  overflow: hidden;
  background: var(--ink-soft);
}

.detail-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 78px);
}

.detail-copy h1 span {
  color: var(--brass-light);
}

.detail-summary {
  max-width: 590px;
  color: rgba(244, 240, 232, 0.72);
  font-size: 17px;
}

.detail-label {
  margin-bottom: 9px;
  color: var(--brass-light);
  font-size: 11px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 32px 0;
  border-top: 1px solid var(--line-light);
}

.detail-list div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line-light);
  padding: 14px 0;
}

.detail-list dt {
  color: rgba(244, 240, 232, 0.5);
  font-size: 11px;
}

.detail-list dd {
  margin: 0;
  color: var(--paper);
  font-size: 13px;
}

.detail-section {
  padding: 105px 0;
  background: var(--paper);
}

.detail-section h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-section p {
  max-width: 720px;
  color: var(--muted);
}

.solution-grid,
.case-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-item,
.case-item {
  min-height: 230px;
  border-top: 1px solid var(--line-light);
  padding: 22px 20px 18px 0;
}

.solution-item > span,
.case-item > span {
  color: var(--brass-light);
  font-size: 11px;
}

.solution-item h3,
.case-item h3 {
  margin: 28px 0 9px;
  color: var(--paper);
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.solution-item p,
.case-item p,
.case-item small {
  display: block;
  max-width: 300px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 13px;
}

.solution-item a {
  display: inline-flex;
  gap: 9px;
  margin-top: 23px;
  border-bottom: 1px solid var(--brass-light);
  padding-bottom: 5px;
  color: var(--brass-light);
  font-size: 12px;
}

.case-item {
  border-color: var(--line);
}

.case-item > span {
  color: var(--red);
}

.case-item h3 {
  color: var(--ink);
}

.case-item p,
.case-item small {
  color: var(--muted);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid details {
  border-top: 1px solid rgba(23, 24, 23, 0.4);
  padding: 19px 0;
}

.faq-grid summary {
  cursor: pointer;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
}

.faq-grid details p {
  max-width: 520px;
  margin: 13px 0 0;
  color: rgba(23, 24, 23, 0.7);
  font-size: 13px;
}

.resources-section {
  padding: 105px 0;
}

.resource-list {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .35fr);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.resource-row-dark {
  border-color: var(--line-light);
}

.resource-label {
  display: block;
  margin-bottom: 9px;
  color: var(--red);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-row-dark .resource-label {
  color: var(--brass-light);
}

.resource-row h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 26px;
  font-weight: 500;
}

.resource-row p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.resource-row-dark h3 {
  color: var(--paper);
}

.resource-row-dark p {
  color: rgba(244, 240, 232, .68);
}

.resource-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.resource-meta div {
  display: grid;
  gap: 4px;
}

.resource-meta dt {
  color: var(--muted);
  font-size: 10px;
}

.resource-meta dd {
  margin: 0;
  font-size: 12px;
}

.resource-action {
  justify-self: end;
  border-bottom: 1px solid var(--red);
  padding-bottom: 6px;
  color: var(--red);
  font-size: 12px;
}

.resource-row-dark .resource-action {
  border-color: var(--brass-light);
  color: var(--brass-light);
}

.resource-empty {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.resource-empty-dark {
  border-color: var(--line-light);
  color: rgba(244, 240, 232, .68);
}

.contact-panel {
  display: grid;
  justify-items: start;
  gap: 0;
}

.contact-form-wrap {
  border-top: 2px solid var(--red);
  padding-top: 20px;
}

.form-title {
  margin-bottom: 4px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 26px;
}

.form-description {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.form-field-wide,
.consent-field,
.contact-form > button,
.form-status {
  grid-column: 1 / -1;
}

.sales-agent {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  width: min(400px, calc(100vw - 32px));
  transition: opacity 160ms ease, transform 160ms ease;
}

body.contact-in-view .sales-agent {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.sales-agent-toggle {
  position: relative;
  z-index: 92;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid rgba(215, 183, 125, 0.7);
  border-radius: 0;
  background: var(--ink);
  padding: 0 16px;
  color: var(--paper);
  cursor: pointer;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(23, 24, 23, 0.24);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sales-agent-toggle:hover,
.sales-agent-toggle:focus-visible {
  border-color: var(--brass-light);
  background: var(--red);
  transform: translateY(-1px);
}

.sales-agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-light);
}

.sales-agent-toggle-arrow {
  color: var(--brass-light);
  font-size: 15px;
  line-height: 1;
}

.sales-agent-panel {
  position: absolute;
  z-index: 91;
  right: 0;
  bottom: 60px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  width: 100%;
  height: 480px;
  min-height: 0;
  max-height: min(480px, calc(100dvh - 112px));
  overflow: hidden;
  border: 1px solid rgba(23, 24, 23, 0.18);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 22px 64px rgba(8, 11, 10, 0.28);
}

.sales-agent-panel[hidden] {
  display: none;
}

.sales-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: var(--ink);
  padding: 14px 16px;
  color: var(--paper);
}

.sales-agent-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sales-agent-kicker {
  color: var(--brass-light);
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.sales-agent-heading strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-agent-close {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 0 11px;
  color: var(--paper);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.sales-agent-close span:first-child {
  color: var(--brass-light);
  font-size: 20px;
  line-height: 0.8;
}

.sales-agent-close:hover,
.sales-agent-close:focus-visible {
  border-color: var(--brass-light);
  background: rgba(215, 183, 125, 0.14);
  outline: 0;
}

.sales-agent-messages {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 10px;
  height: auto;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: #eee8dc;
}

.agent-message {
  max-width: 90%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.agent-message-assistant {
  justify-self: start;
  background: #fffdf8;
  box-shadow: 0 3px 10px rgba(23, 24, 23, 0.04);
}

.agent-message-user {
  justify-self: end;
  border-color: var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
}

.agent-citations {
  color: var(--muted);
  font-size: 10px;
}

.agent-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 16px 8px;
  color: var(--muted);
  font-size: 10px;
}

.agent-consent input {
  margin-top: 3px;
  accent-color: var(--red);
}

.sales-agent-form {
  display: block;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  background: var(--paper);
}

.sales-agent-composer {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 58px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.sales-agent-composer textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 56px;
  max-height: 104px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 12px 52px 11px 13px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  overflow-y: auto;
}

.sales-agent-composer:focus-within {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.sales-agent-composer textarea:focus {
  outline: 0;
}

.sales-agent-send {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  padding: 0;
  color: var(--paper);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.sales-agent-send:hover,
.sales-agent-send:focus-visible {
  border-color: var(--red);
  background: var(--red);
  outline: 0;
}

.sales-agent-send:disabled {
  cursor: wait;
  opacity: 0.55;
}

.agent-handoff {
  display: inline-flex;
  gap: 8px;
  margin: 0 16px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  color: var(--red);
  font-size: 11px;
}

.agent-status {
  min-height: 24px;
  margin: 0;
  padding: 0 16px 9px;
  color: var(--red);
  font-size: 10px;
  line-height: 1.5;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  outline: 0;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.consent-field input {
  margin-top: 4px;
  accent-color: var(--red);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
}

body.login-modal-open {
  overflow: hidden;
}

.login-dialog {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-dialog[hidden] {
  display: none;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 10, 0.72);
  backdrop-filter: blur(10px);
}

.login-modal {
  position: relative;
  width: min(100%, 470px);
  max-height: min(720px, calc(100svh - 48px));
  overflow-y: auto;
  border-top: 3px solid var(--brass);
  background: var(--paper);
  padding: 34px;
  color: var(--ink);
  box-shadow: 0 28px 76px rgba(8, 11, 10, 0.34);
}

.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.login-close:hover,
.login-close:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.login-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.login-modal-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  object-fit: contain;
}

.login-kicker {
  margin-bottom: 9px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-modal h2 {
  margin-bottom: 11px;
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 500;
  line-height: 1.1;
}

.login-lead,
.login-footnote {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.login-lead {
  max-width: 360px;
  margin-bottom: 26px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.48);
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.login-field input:focus {
  border-color: var(--red);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(169, 80, 64, 0.12);
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.login-remember input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.login-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  border-color: var(--red);
  background: var(--red);
  transform: translateY(-1px);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
}

.login-message.is-success {
  color: #47744f;
}

.login-footnote {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 11px;
}

@media (max-width: 920px) {
  .header-tools {
    gap: 10px;
  }

  .header-tools .header-cta {
    display: none;
  }

  .solution-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
  }

  .header-tools {
    gap: 8px;
  }

  .login-link {
    font-size: 10px;
  }

  .solution-grid,
  .case-grid,
  .faq-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding-top: 125px;
  }

  .detail-image,
  .detail-image img {
    min-height: 260px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .solution-item,
  .case-item {
    min-height: 0;
  }

  .form-field-wide,
  .consent-field,
  .contact-form > button,
  .form-status {
    grid-column: auto;
  }

  .sales-agent {
    right: 19px;
    bottom: 18px;
  }

  .sales-agent-panel {
    bottom: 57px;
    max-height: calc(100vh - 96px);
  }
}

/* Responsive detail layer: keep the editorial look while making the dynamic
   sections comfortable across fluid desktop, tablet and mobile widths. */
html {
  scroll-padding-top: 84px;
}

.page-width {
  width: min(var(--max), calc(100% - clamp(38px, 8vw, 64px)));
}

.site-header {
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}

.site-header.is-scrolled {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(23, 24, 23, 0.88);
}

.hero {
  height: min(900px, max(760px, 92svh));
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.76) 0%, rgba(8, 11, 10, 0.36) 48%, rgba(8, 11, 10, 0.64) 100%),
    linear-gradient(180deg, rgba(8, 11, 10, 0.2) 0%, rgba(8, 11, 10, 0.08) 55%, rgba(8, 11, 10, 0.58) 100%);
}

.hero-content {
  padding-bottom: 82px;
}

h1,
h2,
h3,
.section-heading > p,
.lead-copy,
.detail-summary,
.form-description {
  text-wrap: balance;
}

.button {
  min-width: 124px;
  letter-spacing: 0.04em;
}

.button-light {
  box-shadow: 0 10px 24px rgba(23, 24, 23, 0.12);
}

.factory-gallery figure,
.story-image,
.detail-image {
  border: 1px solid rgba(244, 240, 232, 0.08);
  border-radius: 0;
  box-shadow: 0 16px 34px rgba(8, 11, 10, 0.12);
}

.factory-gallery figcaption {
  background: linear-gradient(180deg, rgba(12, 14, 13, 0) 0%, rgba(12, 14, 13, 0.78) 52%, rgba(12, 14, 13, 0.88) 100%);
}

.factory-signals > div,
.product-list article,
.material-row,
.solution-item,
.case-item {
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.factory-signals > div:hover,
.material-row:hover {
  background: rgba(180, 138, 80, 0.08);
}

.product-list article:hover {
  background: rgba(180, 138, 80, 0.06);
  padding-inline: 10px;
}

.filter-button {
  min-height: 40px;
  white-space: nowrap;
}

.solution-item:hover,
.case-item:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.faq-grid details[open] {
  border-color: var(--red);
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.22);
}

.sales-agent-toggle {
  min-height: 48px;
}

@media (min-width: 1200px) {
  .hero-content {
    padding-top: 92px;
  }

  .hero h1 {
    max-width: 820px;
    letter-spacing: -0.02em;
  }

  .section-paper,
  .section-ink,
  .section-brass {
    padding-block: clamp(96px, 9vw, 136px);
  }
}

@media (max-width: 920px) {
  .site-header {
    padding-inline: 22px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .products-grid,
  .story-grid,
  .contact-grid {
    gap: 48px;
  }

  .material-list {
    column-gap: 24px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 72px;
  }

  .page-width {
    width: calc(100% - 38px);
  }

  .site-header {
    padding-inline: 19px;
  }

  .hero {
    height: min(760px, 94svh);
    min-height: 680px;
  }

  .hero-content {
    min-height: 100%;
    padding-top: 48px;
    padding-bottom: 58px;
  }

  .hero h1 {
    max-width: 15ch;
    letter-spacing: -0.025em;
  }

  .hero-summary {
    margin-bottom: 25px;
  }

  .hero-actions {
    width: min(100%, 330px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .quiet-link {
    padding: 8px 0;
  }

  .material-toolbar {
    margin-right: -19px;
    margin-left: -19px;
    padding-right: 19px;
    padding-left: 19px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .material-toolbar::-webkit-scrollbar {
    display: none;
  }

  .material-row {
    padding-inline: 0;
  }

  .product-list article:hover {
    padding-inline: 0;
  }

  .form-field input,
  .form-field select,
  .form-field textarea,
  .contact-form > button {
    font-size: 16px;
  }

  .sales-agent {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }

  .sales-agent-panel {
    bottom: 62px;
    height: 480px;
    min-height: 0;
    max-height: min(480px, calc(100svh - 104px));
  }

  .sales-agent-form {
    display: block;
  }
}

@media (max-width: 380px) {
  .page-width {
    width: calc(100% - 32px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .hero-footer {
    left: 16px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .login-dialog {
    place-items: end center;
    padding: 12px;
  }

  .login-modal {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 28px 20px 22px;
  }

  .login-modal-brand {
    margin-bottom: 24px;
  }

  .resources-section {
    padding: 76px 0;
  }

  .resource-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .resource-action {
    justify-self: start;
  }

  .resource-meta {
    max-width: 260px;
  }
}
