/* Public-site layout. Brand tokens and UI primitives live in styles.css. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(255, 216, 0, 0.055), transparent 68%),
    radial-gradient(760px 480px at 8% 4%, rgba(211, 0, 0, 0.11), transparent 65%),
    var(--surface-app);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.site-wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid rgba(58, 55, 66, 0.72);
  background: rgba(16, 15, 18, 0.9);
  backdrop-filter: blur(14px);
}

.site-nav__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.site-brand img { width: 31px; height: 31px; }

.site-brand span {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 14px;
}

.site-nav__links a,
.site-footer__links a { transition: color var(--dur-fast) var(--ease-standard); }
.site-nav__links a:hover,
.site-footer__links a:hover { color: var(--brass-300); }

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: var(--glint-top);
  transition:
    background var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}

.site-button:hover { border-color: var(--brass-400); color: var(--brass-300); }
.site-button:active { transform: translateY(1px); }

.site-button--primary {
  border-color: var(--ember-600);
  background: var(--ember-500);
  color: var(--text-onbrand);
}

.site-button--primary:hover {
  border-color: var(--ember-500);
  background: var(--ember-400);
  color: var(--text-onbrand);
}

.site-button--quiet { background: rgba(35, 33, 40, 0.72); }

.site-eyebrow {
  color: var(--brass-300);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

body > .site-nav + header:not(.site-hero) {
  padding: clamp(52px, 6vw, 78px) 0 38px;
}

body > .site-nav + header:not(.site-hero) h1 {
  max-width: 920px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
}

.site-hero {
  position: relative;
  overflow: clip;
  padding: clamp(62px, 6.5vw, 86px) 0 68px;
}

.site-hero::after {
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -230px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255, 216, 0, 0.055);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 216, 0, 0.017),
    0 0 0 180px rgba(255, 216, 0, 0.011);
  content: "";
}

.site-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: clamp(38px, 5vw, 72px);
  align-items: center;
}

.site-hero h1 {
  max-width: 670px;
  margin: 17px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

.site-hero h1 em { color: var(--ember-500); font-style: normal; }

.site-hero__lede {
  max-width: 52ch;
  margin: 25px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.58;
}

.site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.site-hero__note {
  margin-top: 19px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
}

.product-window {
  position: relative;
  border: 1px solid var(--stone-600);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  box-shadow: var(--shadow-xl), var(--glint-top);
  transform: rotate(0.35deg);
}

.product-window::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 22px 28px 70px rgba(0, 0, 0, 0.42);
  content: "";
}

.product-window__bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid var(--stone-700);
  background: linear-gradient(180deg, var(--stone-800), var(--stone-850));
}

.product-window__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone-500);
}

.product-window__bar i:first-child { background: var(--ember-400); }
.product-window__bar i:nth-child(2) { background: var(--brass-400); }
.product-window__bar i:nth-child(3) { background: var(--ok-400); }

.product-window__bar span {
  margin-left: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.product-window img {
  width: 100%;
  display: block;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}

.product-window__caption {
  position: absolute;
  right: 18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--stone-600);
  border-left: 3px solid var(--brass-400);
  border-radius: var(--radius-sm);
  background: rgba(22, 21, 26, 0.94);
  color: var(--text-muted);
  font-size: 12px;
  box-shadow: var(--shadow-md);
}

.product-window__caption strong { color: var(--text-strong); font-weight: 600; }

.proof-strip {
  border-block: 1px solid var(--stone-800);
  background: rgba(22, 21, 26, 0.78);
}

.proof-strip__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.proof {
  padding: 4px 24px;
  border-left: 1px solid var(--stone-800);
}

.proof:first-child { padding-left: 0; border-left: 0; }

.proof b {
  display: block;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.proof span {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.site-section { padding: clamp(78px, 9vw, 118px) 0; }
.site-section--sunken { border-block: 1px solid var(--stone-800); background: var(--surface-sunken); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.62fr);
  gap: 50px;
  align-items: end;
}

.section-heading h2 {
  max-width: 800px;
  margin: 13px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.04;
  text-transform: uppercase;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 52px;
  border: 1px solid var(--stone-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone-700);
  box-shadow: var(--shadow-md);
}

.workflow__step {
  min-height: 230px;
  padding: 26px 24px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--surface-panel);
}

.workflow__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brass-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.workflow__number::after {
  width: 34px;
  height: 1px;
  background: var(--stone-600);
  content: "";
}

.workflow h3 {
  margin: 38px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.hybrid {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--stone-700);
  background:
    radial-gradient(700px 380px at 4% 50%, rgba(211, 0, 0, 0.12), transparent 70%),
    radial-gradient(620px 340px at 94% 38%, rgba(255, 216, 0, 0.065), transparent 72%),
    var(--stone-900);
}

.hybrid__inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(50px, 8vw, 104px);
  align-items: center;
  padding-block: clamp(74px, 9vw, 112px);
}

.hybrid h2 {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.7vw, 58px);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.01;
  text-transform: uppercase;
}

.hybrid__lede {
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.hybrid__lede strong { color: var(--text-strong); font-weight: 600; }

.hybrid__machine {
  border: 1px solid var(--stone-600);
  border-radius: var(--radius-lg);
  background: rgba(16, 15, 18, 0.72);
  box-shadow: var(--shadow-lg), var(--glint-top);
  overflow: hidden;
}

.hybrid__machine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--stone-700);
  background: linear-gradient(180deg, var(--stone-800), var(--stone-850));
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hybrid__machine-head span:last-child { color: var(--ok-400); }

.hybrid__flow { padding: 10px 22px; }

.hybrid__step {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--stone-800);
}

.hybrid__step:last-child { border-bottom: 0; }

.hybrid__step b {
  color: var(--brass-300);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hybrid__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.hybrid__step strong { color: var(--text-strong); font-weight: 600; }

.hybrid__result {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border-top: 1px solid var(--stone-700);
  background: rgba(35, 33, 40, 0.72);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
}

.hybrid__result strong { color: var(--ok-400); font-weight: 600; }

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(182px, auto);
  gap: 16px;
  margin-top: 50px;
}

.artifact {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
  box-shadow: var(--glint-top);
}

.artifact--wide { grid-column: span 8; }
.artifact--brass { background: linear-gradient(145deg, rgba(255, 216, 0, 0.085), transparent 56%), var(--surface-panel); }
.artifact--ember { background: linear-gradient(145deg, rgba(211, 0, 0, 0.13), transparent 58%), var(--surface-panel); }

.artifact__label {
  color: var(--brass-300);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.artifact h3 {
  max-width: 24ch;
  margin: 28px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.artifact p {
  max-width: 55ch;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.artifact__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.artifact__tags span {
  padding: 5px 7px;
  border: 1px solid var(--stone-600);
  border-radius: var(--radius-xs);
  background: var(--stone-900);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.control-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 7vw, 86px);
  align-items: start;
}

.control-grid h2 {
  margin: 14px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: 0.035em;
  line-height: 1.04;
  text-transform: uppercase;
}

.control-grid__lede {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.control-list { border-top: 1px solid var(--stone-700); }

.control-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid var(--stone-700);
}

.control-item b {
  color: var(--brass-300);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.control-item p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.control-item strong { color: var(--text-strong); font-weight: 600; }

.staff-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--stone-700);
  background: linear-gradient(110deg, var(--stone-900), var(--stone-850));
}

.staff-band::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 240px at 12% 50%, rgba(211, 0, 0, 0.13), transparent 72%);
  content: "";
}

.staff-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 56px;
  align-items: center;
  padding-block: 54px;
}

.staff-band h2 {
  margin: 11px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.staff-band__roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.staff-member {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.staff-member img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--stone-500);
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9);
}

.staff-member b {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.staff-member span {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
}

.closing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
  padding: clamp(72px, 8vw, 104px) 0;
}

.closing h2 {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing: 0.035em;
  line-height: 1.03;
  text-transform: uppercase;
}

.closing__actions { display: flex; gap: 12px; }

.site-footer { border-top: 1px solid var(--stone-800); padding: 34px 0; }

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-faint);
  font-size: 12.5px;
}

.site-footer__links { display: flex; flex-wrap: wrap; gap: 19px; margin-left: auto; color: var(--text-muted); }

@media (max-width: 1040px) {
  .site-nav__links a:nth-last-child(-n + 2) { display: none; }
  .site-hero__grid { grid-template-columns: 1fr; }
  .site-hero__copy { max-width: 760px; }
  .product-window { max-width: 820px; transform: none; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .staff-band__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 780px) {
  .site-wrap { width: min(100% - 32px, 1180px); }
  .site-nav__inner { min-height: 62px; gap: 16px; }
  .site-brand span { display: none; }
  .site-nav__links { gap: 16px; overflow: auto; white-space: nowrap; scrollbar-width: none; }
  .site-nav__links::-webkit-scrollbar { display: none; }
  .site-nav__links a:nth-last-child(-n + 3) { display: none; }
  .site-nav .site-button { min-height: 38px; padding-inline: 13px; }
  .proof-strip__inner { grid-template-columns: repeat(2, 1fr); padding-block: 12px; }
  .proof { padding: 10px 16px; }
  .proof:nth-child(3) { border-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 19px; }
  .layout > main { min-width: 0; }
  .layout section { min-width: 0; max-width: 100%; }
  .layout table { display: block; max-width: 100%; overflow-x: auto; }
  .hybrid__inner { grid-template-columns: 1fr; }
  .artifact, .artifact--wide { grid-column: span 12; }
  .control-grid { grid-template-columns: 1fr; }
  .staff-band__roster { grid-template-columns: repeat(2, 1fr); }
  .closing { grid-template-columns: 1fr; }
  .closing__actions { flex-wrap: wrap; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__links { margin-left: 0; }
}

@media (max-width: 520px) {
  .site-nav__links a { display: none; }
  .site-nav .site-button { width: auto; margin-left: auto; }
  .site-hero { padding-top: 54px; }
  .site-hero h1 { font-size: clamp(41px, 13.4vw, 58px); }
  .site-hero__actions, .closing__actions { flex-direction: column; }
  .site-button { width: 100%; }
  .product-window__caption { position: static; border-width: 1px 0 0; box-shadow: none; }
  .workflow { grid-template-columns: 1fr; }
  .workflow__step { min-height: 0; }
  .hybrid__step { grid-template-columns: 1fr; gap: 7px; }
  .hybrid__result { flex-direction: column; }
  .control-item { grid-template-columns: 1fr; gap: 8px; }
  .staff-band__roster { grid-template-columns: 1fr; }
}

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