:root {
  --bg: #07090b;
  --bg-soft: #0f1317;
  --panel: #141a20;
  --panel-2: #1a222b;
  --line: #3d3124;
  --text: #ebe5db;
  --muted: #c2b6a3;
  --bronze: #b77b3c;
  --bronze-bright: #d89d60;
  --steel: #7f8b96;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Chakra Petch", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 75% -15%, rgba(183, 123, 60, 0.2), transparent 65%),
    linear-gradient(180deg, #05070a, #0a0d11 32%, #07090b 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--panel-2);
  border: 1px solid var(--bronze-bright);
  color: var(--text);
  padding: 8px 12px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 14, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.kicker,
h1,
h2,
h3,
.button,
.value-pill,
.site-nav a,
.menu-toggle,
.category-card,
.worker-badge {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.brand span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
  padding: 8px 10px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bronze-bright);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 0.88rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-bronze {
  background: linear-gradient(180deg, #d19a62, #9c6731);
  color: #25170a;
  border-color: #e0ad73;
}

.button-steel {
  background: linear-gradient(180deg, #475462, #2e3741);
  border-color: #6e7c89;
}

.button-ghost {
  background: rgba(13, 18, 24, 0.7);
  border-color: var(--line);
}

main {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
  padding: 22px 0 30px;
}

.hero {
  position: relative;
  min-height: 88vh;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(3, 4, 6, 0.48) 0%, rgba(3, 4, 6, 0.18) 46%, rgba(3, 4, 6, 0.56) 100%),
    linear-gradient(180deg, rgba(3, 4, 6, 0.06) 0%, rgba(3, 4, 6, 0.54) 100%),
    url("assets/images/hero-stone-bridge-emblem.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(216, 157, 96, 0.16), transparent 32%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 42px;
  max-width: 780px;
  background: linear-gradient(90deg, rgba(7, 9, 11, 0.54), rgba(7, 9, 11, 0.18));
  border-left: 3px solid rgba(216, 157, 96, 0.78);
}

.hero-mark {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.eyebrow {
  color: var(--bronze-bright);
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
}

.hero-content p {
  font-size: 1.02rem;
  color: #ded7cb;
  margin: 12px 0;
}

.hero-secondary {
  color: var(--bronze-bright);
  font-weight: 600;
}

.hero-rally {
  max-width: 680px;
  color: #f0e7da;
  border-top: 1px solid rgba(216, 157, 96, 0.32);
  padding-top: 14px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.values-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #12181f, #0c1015);
}

.value-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid var(--line);
  min-height: 62px;
  font-size: 1rem;
  padding: 8px;
  text-align: center;
}

.value-pill:last-child {
  border-right: 0;
}

.value-pill:hover,
.value-pill:focus-visible {
  color: var(--bronze-bright);
}

.value-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: min(260px, 86vw);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 10px;
  text-transform: none;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.value-pill:hover::after,
.value-pill:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.content-section,
.page-shell,
.product-card,
.cart-panel,
.final-cta,
.site-footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 24, 31, 0.94), rgba(11, 15, 20, 0.98));
}

.content-section,
.page-shell,
.cart-panel {
  padding: 30px 24px;
}

.emphasis-section {
  position: relative;
  overflow: hidden;
}

.emphasis-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(183, 123, 60, 0.08), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(127, 139, 150, 0.12), transparent 34%);
  pointer-events: none;
}

.emphasis-section > * {
  position: relative;
  z-index: 1;
}

.kicker {
  color: var(--bronze-bright);
  margin: 0 0 4px;
  font-size: 0.9rem;
}

h2 {
  margin: 0 0 12px;
  line-height: 1;
  font-size: clamp(1.8rem, 4.8vw, 3.2rem);
}

h3 {
  margin: 0 0 6px;
  line-height: 1.1;
  font-size: 1.4rem;
}

.note-line {
  border-left: 3px solid var(--bronze);
  margin-top: 16px;
  padding-left: 12px;
}

.definition-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 14px;
}

.definition-card-strong {
  border-color: rgba(216, 157, 96, 0.58);
  background: linear-gradient(180deg, rgba(26, 34, 43, 0.96), rgba(13, 18, 24, 0.96));
  box-shadow: inset 0 0 0 1px rgba(216, 157, 96, 0.08);
}

.workers-grid,
.principles-grid,
.prompt-grid,
.category-grid,
.product-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.workers-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.worker-card {
  border: 1px solid #2d3640;
  background: var(--panel);
  overflow: hidden;
}

.worker-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center top;
}

.worker-card h3,
.worker-card p {
  padding: 0 14px;
}

.worker-card h3 {
  margin-top: 14px;
}

.worker-card p {
  margin-bottom: 16px;
  color: #d5ccbf;
}

.worker-card-text {
  padding: 18px 0 2px;
  background:
    linear-gradient(180deg, rgba(26, 34, 43, 0.98), rgba(12, 17, 23, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(183, 123, 60, 0.18), transparent 34%);
}

.worker-badge {
  display: inline-flex;
  margin: 0 14px 12px;
  padding: 5px 8px;
  border: 1px solid rgba(216, 157, 96, 0.45);
  color: var(--bronze-bright);
  font-size: 0.78rem;
}

.principles-grid,
.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.principles-grid article,
.prompt-grid article,
.product-card,
.category-card {
  border: 1px solid #313c48;
  background: var(--panel);
}

.principles-grid article,
.prompt-grid article {
  padding: 14px;
}

.prompt-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.category-card {
  text-decoration: none;
  text-align: center;
  padding: 16px 10px;
  font-size: 1.2rem;
}

.category-card:hover,
.category-card:focus-visible {
  color: var(--bronze-bright);
  border-color: var(--bronze);
}

.final-cta {
  padding: 38px 24px;
  text-align: center;
}

.site-footer {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 18px 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  line-height: 1;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--bronze-bright);
}

.page-shell {
  width: min(1000px, calc(100% - 28px));
  margin: 24px auto;
}

.page-shell h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.standard-section {
  border: 1px solid #313c48;
  background: var(--panel);
  padding: 16px;
  margin-top: 12px;
}

.page-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.product-card {
  padding: 16px;
}

.product-meta {
  color: var(--muted);
  margin-bottom: 10px;
}

.product-controls {
  display: grid;
  gap: 8px;
}

.product-controls label {
  font-size: 0.92rem;
}

select,
input[type="number"] {
  width: 100%;
  background: #0f141a;
  color: var(--text);
  border: 1px solid #3b4652;
  padding: 8px;
  font-family: inherit;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.cart-item {
  border: 1px solid #36424e;
  background: var(--panel);
  padding: 12px;
}

.notice {
  border: 1px solid var(--bronze);
  background: rgba(183, 123, 60, 0.12);
  padding: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "cta cta";
  }

  .brand {
    grid-area: brand;
  }

  .menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    padding-top: 6px;
    display: none;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .header-cta {
    grid-area: cta;
    justify-self: start;
  }

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

  .value-pill {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-content {
    padding: 56px 20px;
  }
}

@media (max-width: 620px) {
  main,
  .site-footer,
  .page-shell {
    width: calc(100% - 16px);
  }

  .button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .values-bar {
    grid-template-columns: 1fr;
  }

  .worker-card img {
    height: 220px;
  }

  .hero-mark {
    width: 74px;
    height: 74px;
  }
}
