/* ============================================================
   STAUSSTECH — Corporate Site
   Colour tokens sourced from the official brand asset package:
   05_WEB_IMPLEMENTATION/stausstech-brand-tokens.css
     Obsidian Black  #060607
     Signal White    #F8F8F9
     Aerospace Silver#C8C9CC
     Soft Graphite   #2A2B2E
   ============================================================ */

:root {
  /* brand core */
  --obsidian: #060607;
  --signal-white: #F8F8F9;
  --silver: #C8C9CC;
  --graphite: #2A2B2E;

  /* dark surfaces */
  --dark-bg: #060607;
  --dark-elevated: #0B0C0E;   /* alternating section surface */
  --dark-surface: #101114;    /* cards */
  --dark-fg: #F8F8F9;
  --dark-muted: #8E9196;
  --dark-line: rgba(200, 201, 204, 0.14);

  /* light surfaces */
  --light-bg: #F2F2F0;
  --light-surface: #FFFFFF;
  --light-fg: #0A0A0B;
  --light-muted: #5A5C60;
  --light-line: rgba(10, 10, 11, 0.14);

  --font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-w: 1400px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-space: clamp(80px, 11vw, 168px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

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

body {
  margin: 0;
  background: var(--dark-bg);
  color: var(--dark-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  /* never let a flex/grid parent stretch an image off its aspect ratio */
  align-self: flex-start;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
p, li, a { overflow-wrap: break-word; word-break: break-word; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal-white);
  color: var(--obsidian);
  padding: 12px 20px;
  z-index: 300;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  overflow-wrap: break-word;
  hyphens: auto;
}

.display-xl { font-size: clamp(2.5rem, 7vw, 5.6rem); text-transform: uppercase; }
.display-l  { font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
.display-m  { font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; }

.body-l { font-size: clamp(0.98rem, 1.15vw, 1.08rem); line-height: 1.65; }
.body-m { font-size: 0.95rem; line-height: 1.7; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
}

/* section label:  "01 —— COMPANY" */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}
.section-label .num { opacity: 0.75; }
.section-label .rule {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  flex: none;
}

/* line-prefixed link:  "——  Explore our products  →" */
.line-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  transition: gap 0.25s ease;
}
.line-link::before {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transition: width 0.25s ease, opacity 0.25s ease;
}
.line-link .arrow { transition: transform 0.25s ease; display: inline-block; }
.line-link:hover::before, .line-link:focus-visible::before { width: 68px; opacity: 1; }
.line-link:hover .arrow, .line-link:focus-visible .arrow { transform: translateX(5px); }

/* ---------- Sections ---------- */
.section { padding: var(--section-space) 0; position: relative; }

/* All sections are dark. Rhythm comes from a very subtle surface step
   (--dark-bg vs --dark-elevated) plus a hairline, not from light/dark flips. */
.section--dark,
.section--alt { color: var(--dark-fg); border-top: 1px solid var(--dark-line); }

.section--dark { background: var(--dark-bg); }
.section--alt { background: var(--dark-elevated); }

.section--dark .muted,
.section--alt .muted { color: var(--dark-muted); }
.section--dark .hairline,
.section--alt .hairline { background: var(--dark-line); }

.hairline { height: 1px; width: 100%; border: 0; }

.reveal { opacity: 0; transform: translateY(20px); }
.js .reveal { transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible, html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(6, 6, 7, 0.94);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(200, 201, 204, 0.10);
  color: var(--dark-fg);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: clamp(24px, 2.1vw, 30px); width: auto; }

.nav-links {
  display: none;
  gap: clamp(22px, 2.6vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .container { justify-content: space-between; }
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--dark-muted);
  transition: color 0.2s ease;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--dark-fg); }

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(200, 201, 204, 0.30);
  border-radius: 999px;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--signal-white);
  color: var(--obsidian);
  border-color: var(--signal-white);
}
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid rgba(200, 201, 204, 0.24);
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav.is-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-line);
  padding: 24px var(--gutter) 30px;
  gap: 20px;
}
.nav.is-open .nav-links a { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-fg);
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(140px, 18vw, 190px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}

/* brand-derived atmosphere: horizon glow + ST signet + fine grid.
   No photography — per brand briefing sections 7 & 25. */
.hero-atmos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-atmos .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(200,201,204,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,201,204,0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 90% at 20% 40%, black 20%, transparent 78%);
}

/* the lit limb — a large sphere edge, echoing the brand's aerospace tone */
.hero-atmos .limb {
  position: absolute;
  top: -34%;
  right: -22%;
  width: min(88vw, 1000px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 62%,
      rgba(248,248,249,0.19) 0%,
      rgba(200,201,204,0.07) 24%,
      rgba(11,12,14,0.96) 52%,
      #08090A 70%);
  box-shadow: inset 0 0 120px rgba(0,0,0,0.9);
}
.hero-atmos .limb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 201, 204, 0.16);
  mask-image: linear-gradient(215deg, black 8%, transparent 46%);
}

/* ST signet as a large, partially cropped background element
   (brand briefing section 25). Smoothing happens at render time via the
   #signetSmooth filter defined in the page; the artwork stays untouched.
   See the comment next to that filter for why it is needed. */
.hero-atmos .signet {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 780px);
  opacity: 0.075;
  filter: url(#signetSmooth);
}

.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 64px; }
}

.hero-copy { max-width: 640px; }
.hero-copy .eyebrow { color: var(--dark-muted); margin-bottom: 26px; display: block; }
.hero-copy h1 { margin-bottom: 30px; }
.hero-copy .lead { color: var(--silver); margin-bottom: 44px; max-width: 480px; }

/* right rail — small caps notes divided by hairlines */
.hero-rail { display: none; }
@media (min-width: 1080px) {
  .hero-rail {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dark-muted);
    line-height: 1.9;
  }
  .hero-rail .rail-item { padding-left: 22px; border-left: 1px solid var(--dark-line); }
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: clamp(48px, 7vw, 86px);
  padding-top: 26px;
  border-top: 1px solid var(--dark-line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-muted);
  position: relative;
  z-index: 2;
}
.hero-status strong { color: var(--dark-fg); font-weight: 500; }

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Editorial two-column block ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .editorial { grid-template-columns: 1.05fr 0.95fr; gap: clamp(48px, 6vw, 110px); }
}
.editorial__head { align-self: start; }
.editorial__body { align-self: start; max-width: 460px; }
.editorial__body p + p { margin-top: 18px; }
.editorial__body .line-link { margin-top: 40px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.section-head .tagline {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 940px) { .products-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 380px;
  padding: clamp(30px, 3.4vw, 46px);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark-surface);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.product-card:hover { border-color: rgba(200,201,204,0.3); transform: translateY(-3px); }

/* abstract, brand-derived card visuals (no stock imagery) */
.product-card__visual { position: absolute; inset: 0; pointer-events: none; }

.visual--mesasnap {
  background:
    radial-gradient(90% 120% at 88% 12%, rgba(248,248,249,0.10) 0%, rgba(248,248,249,0.02) 38%, transparent 68%),
    linear-gradient(160deg, #101114 0%, #08090B 62%);
}
.visual--mesasnap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(200,201,204,0.05) 0px,
    rgba(200,201,204,0.05) 1px,
    transparent 1px,
    transparent 22px
  );
  mask-image: radial-gradient(70% 80% at 90% 10%, black, transparent 72%);
}

.visual--korax {
  background:
    radial-gradient(80% 120% at 82% 90%, rgba(248,248,249,0.10) 0%, rgba(200,201,204,0.02) 40%, transparent 70%),
    linear-gradient(200deg, #101114 0%, #08090B 60%);
}
.visual--korax svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  height: auto;
  opacity: 0.55;
}

.capability-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.capability-list li {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 6px 12px;
}

.product-card > *:not(.product-card__visual) { position: relative; z-index: 1; }

.product-card .brand-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 26px;
}

/* Optically matched, not box-matched: MesaSnap's wordmark fills ~82% of its
   file height, KORAX's "KORAX" line only ~36% (it carries the ANALYTICS line
   below). 32 / 40 px makes both brand names read at the same size. At 40px
   KORAX renders 221px wide — just above the 220px minimum its brand guide
   specifies for the primary lockup. */
.product-logo {
  width: auto;
  align-self: flex-start;
  display: block;
  /* last-resort guarantee: if any container ever squeezes the box,
     the artwork letterboxes instead of stretching */
  object-fit: contain;
}
.product-logo.mesasnap { height: 32px; }
.product-logo.korax { height: 40px; }

/* On very narrow cards the 221px-wide KORAX lockup would hit max-width and
   get squeezed, so step both logos down together — keeping their 32:40 ratio
   and therefore the optical match. */
@media (max-width: 400px) {
  .product-logo.mesasnap { height: 29px; }
  .product-logo.korax { height: 36px; }
}

.product-logo-link {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}
.product-logo-link:hover, .product-logo-link:focus-visible { opacity: 0.78; }

.product-card .kicker {
  margin-top: 18px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}
.product-card .desc {
  margin-top: 20px;
  color: var(--dark-muted);
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.7;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: auto;
  padding-top: 34px;
}
.product-card__footer .status {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.product-card__footer .status .dot { background: var(--silver); }
.product-card__footer .line-link { font-size: 0.88rem; }
.product-card__footer .line-link::before { width: 26px; }
.product-card__footer .line-link:hover::before { width: 40px; }

.korax-disclaimer {
  margin-top: 22px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--dark-muted);
  opacity: 0.85;
}

/* ---------- Verticals ---------- */
.verticals { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--dark-line); }
.section--dark .verticals { border-color: var(--dark-line); }
.vertical-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dark-line);
}
.vertical-row .name {
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  letter-spacing: -0.01em;
}
.vertical-row .state {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.statement {
  margin-top: clamp(56px, 7vw, 96px);
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(44px, 5vw, 72px);
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { background: var(--dark-bg); padding: clamp(28px, 3vw, 44px); }
.principle .num {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dark-muted);
  margin-bottom: 18px;
}
.principle h3 {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.principle p { color: var(--dark-muted); font-size: 0.92rem; line-height: 1.7; max-width: 38ch; }

/* ---------- Vision closing visual ---------- */
.vision-visual {
  position: relative;
  height: clamp(220px, 30vw, 420px);
  margin-top: clamp(56px, 7vw, 96px);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark-bg);
}
.vision-visual .ridge { position: absolute; inset: 0; width: 100%; height: 100%; }
.vision-visual .caption {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 44px);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark-fg);
  text-align: right;
  line-height: 1.9;
  z-index: 2;
}

/* ---------- Closing ---------- */
/* .closing__inner sits on the .container element itself, so it must not
   shrink+centre it — cap the content width from the inside instead. */
.closing__inner > * { max-width: 820px; }
.closing h2 { margin-bottom: 26px; }
.closing p { color: var(--dark-muted); margin-bottom: 44px; max-width: 520px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid var(--signal-white);
  background: var(--signal-white);
  color: var(--obsidian);
  font-size: 0.92rem;
  transition: background 0.22s ease, color 0.22s ease;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--signal-white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-fg); padding: clamp(56px, 7vw, 88px) 0 40px; border-top: 1px solid var(--dark-line); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--dark-muted); font-size: 0.86rem; max-width: 280px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(34px, 6vw, 84px); }
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.88rem; color: var(--dark-muted); transition: color 0.2s ease; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--dark-fg); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  font-size: 0.8rem;
  color: var(--dark-muted);
}
.footer-bottom a:hover { color: var(--dark-fg); }

/* ---------- Legal pages ---------- */
.legal-page {
  background: var(--dark-bg);
  color: var(--dark-fg);
  padding: clamp(140px, 16vw, 200px) 0 var(--section-space);
}
.legal-page .container { max-width: 900px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; margin-bottom: 14px; }
.legal-meta { color: var(--dark-muted); font-size: 0.85rem; margin-bottom: clamp(44px, 6vw, 72px); }
.legal-page h2 {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 52px;
  margin-bottom: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--dark-line);
}
.legal-page h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-page p, .legal-page li { color: var(--dark-muted); font-size: 0.95rem; line-height: 1.78; }
.legal-page p + p { margin-top: 14px; }
.legal-page ul { padding-left: 20px; margin: 14px 0; }
.legal-page li + li { margin-top: 6px; }
.legal-page strong { color: var(--dark-fg); font-weight: 600; }
.legal-page a.inline-link { color: var(--dark-fg); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .callout {
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 20px 0;
}
.legal-page .callout p { color: var(--dark-fg); }
.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(52px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--dark-line);
  width: 100%;
  font-size: 0.9rem;
  color: var(--dark-muted);
}
.legal-page .back-link:hover { color: var(--dark-fg); }
