/*
 * FORGE//OS visual layer
 * Industrial software engineering art direction for Module Forge.
 */

:root {
  --ink: #090a09;
  --ink-2: #0f110f;
  --ink-3: #171917;
  --paper: #e1ddd3;
  --paper-2: #cbc9c1;
  --white: #f1ede4;
  --muted: #969b95;
  --muted-dark: #4f554f;
  --line: rgba(231, 226, 215, 0.18);
  --line-dark: rgba(9, 10, 9, 0.2);
  --teal: #ff4f1f;
  --teal-dark: #9c290b;
  --violet: #a8b0aa;
  --lime: #76df86;
  --coral: #ff4f1f;
  --gold: #d6d0bd;
  --signal: #ff4f1f;
  --steel: #7c827c;
  --max: 1360px;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --shadow: 16px 16px 0 rgba(0, 0, 0, 0.22);
  --font-sans: "Segoe UI Variable", "Aptos", "Segoe UI", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Aptos Display", Inter, "Segoe UI", Arial, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html,
body {
  background: var(--ink);
}

body {
  color: var(--white);
}

body::before {
  position: fixed;
  z-index: 1999;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.008) 0, rgba(255, 255, 255, 0.008) 1px, transparent 1px, transparent 3px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.018) 0 1px, transparent 1.4px);
  background-size: auto, 11px 13px;
  content: "";
  opacity: 0.5;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

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

.container {
  width: min(calc(100% - 64px), var(--max));
}

.section {
  padding: 144px 0;
  border-top: 1px solid var(--line);
}

.section--paper {
  background:
    linear-gradient(rgba(9, 10, 9, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 10, 9, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

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

.section--deep {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
}

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

.eyebrow,
.hero__status,
.brand__descriptor,
.service-card__number,
.work-card__type,
.delivery-step__number,
.language-link,
.footer-column h2 {
  font-family: var(--font-mono);
}

.eyebrow {
  gap: 12px;
  margin-bottom: 24px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.section--deep .eyebrow,
.section--ink-2 .eyebrow,
.hero .eyebrow {
  color: var(--signal);
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
}

.display-title,
.section-title,
.card-title {
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.section-title {
  max-width: 980px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 0.97;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}

.skip-link {
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  line-height: 1.55;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: end;
  margin-bottom: 78px;
}

.section-head__aside {
  padding: 18px 0 0 22px;
  border-left: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Language gate */
.language-gate {
  display: none;
}

html.language-pending {
  overflow: hidden;
}

html.language-pending .language-gate {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 280px;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
  color: var(--white);
}

.language-gate::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
}

.language-gate__topline {
  display: flex;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.language-gate__intro {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(26px, 4vh, 54px) 4vw;
}

.language-gate__intro img {
  width: 52px;
  height: 52px;
}

.language-gate__code {
  display: block;
  margin-bottom: 5px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.language-gate__intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 66px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}

.language-gate__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.language-choice {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 5vw, 80px);
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.language-choice:last-child {
  border-right: 0;
}

.language-choice::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 6px;
  background: var(--signal);
  content: "";
  transition: width 260ms ease;
}

.language-choice:hover,
.language-choice:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.language-choice:hover::before,
.language-choice:focus-visible::before {
  width: 100%;
}

.language-choice__index {
  position: absolute;
  top: 24px;
  left: clamp(28px, 5vw, 80px);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.language-choice__primary {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.4vw, 118px);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 0.84;
}

.language-choice__secondary {
  margin-top: 22px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: 0.14em;
}

.language-choice__action {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: clamp(38px, 7vh, 86px);
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.language-choice__action b {
  color: var(--signal);
  font-size: 18px;
  line-height: 0.7;
}

.language-choice:hover .language-choice__action b,
.language-choice:focus-visible .language-choice__action b {
  color: var(--ink);
}

.language-gate__note {
  margin: 0;
  padding: 18px 28px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-gate[data-closing] .language-choice {
  opacity: 0.12;
}

.language-gate[data-closing="hu"] [data-language-choice="hu"],
.language-gate[data-closing="en"] [data-language-choice="en"] {
  z-index: 2;
  background: var(--signal);
  color: var(--ink);
  opacity: 1;
  transform: scale(1.04);
}

#hero-title:focus {
  outline: 0;
}

/* Navigation */
.site-header {
  top: 0;
}

.nav-shell {
  width: 100%;
  min-height: 82px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(9, 10, 9, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.site-header.scrolled .nav-shell {
  border-color: rgba(231, 226, 215, 0.24);
  background: rgba(9, 10, 9, 0.98);
}

.brand {
  gap: 13px;
}

.brand__mark {
  width: 38px;
  height: 38px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand__descriptor {
  color: var(--steel);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.nav-cluster {
  gap: 22px;
}

.nav-links {
  gap: 28px;
}

.nav-links a {
  color: #aeb2ac;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a::after {
  bottom: 3px;
  height: 2px;
  background: var(--signal);
}

.language-link {
  width: 44px;
  height: 44px;
  border-color: var(--line);
  border-radius: 0;
  color: var(--white);
}

.language-link:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.button {
  min-height: 50px;
  padding: 0 23px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button--primary {
  background: var(--signal);
  box-shadow: 6px 6px 0 rgba(255, 79, 31, 0.18);
  color: var(--ink);
}

.button--primary:hover {
  box-shadow: 8px 8px 0 rgba(255, 79, 31, 0.25);
}

.button--secondary {
  border-color: rgba(231, 226, 215, 0.35);
  background: transparent;
}

.button--secondary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

/* Hero */
.hero--forge {
  min-height: 100svh;
  padding: 148px 0 102px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(115deg, #090a09 0 57%, #111311 57% 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.hero--forge::before {
  inset: 82px 0 0;
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 79, 31, 0.25) 50%, transparent calc(50% + 1px));
  mask-image: none;
}

.hero--forge::after {
  right: -10vw;
  bottom: auto;
  left: auto;
  top: 18%;
  width: 34vw;
  height: 34vw;
  transform: none;
  border: 1px solid rgba(255, 79, 31, 0.13);
  border-radius: 0;
}

.hero__rail {
  position: absolute;
  z-index: 2;
  top: 98px;
  right: 24px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: clamp(48px, 6vw, 100px);
}

.hero__status {
  margin-bottom: 34px;
  color: #b8bbb5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--lime);
  box-shadow: none;
}

.status-dot::after {
  inset: -4px;
  border-color: rgba(118, 223, 134, 0.42);
  border-radius: 0;
}

.hero__title,
.hero__title--hu {
  max-width: 850px;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: clamp(68px, 7.7vw, 112px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero__title--hu {
  font-size: clamp(62px, 6.8vw, 98px);
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__title .accent {
  margin-top: 0.12em;
  background: none;
  color: var(--signal);
  -webkit-text-fill-color: var(--signal);
}

.hero__lede {
  max-width: 680px;
  margin-bottom: 38px;
  padding-left: 18px;
  border-left: 2px solid var(--signal);
  color: #b4b8b1;
  font-size: clamp(17px, 1.55vw, 21px);
}

.hero__actions {
  margin-bottom: 42px;
}

.hero__trust {
  gap: 14px 26px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__trust li::before {
  width: 12px;
  height: 2px;
  border-radius: 0;
  background: var(--signal);
}

.engineering-core {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(231, 226, 215, 0.22);
  background: #0d0f0d;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.26);
}

.engineering-core::before {
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid rgba(231, 226, 215, 0.08);
  border-radius: 0;
  content: "";
  transform: none;
}

.engineering-core__top,
.engineering-core__bottom {
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.engineering-core__top {
  top: 0;
}

.engineering-core__top span:last-child {
  color: var(--lime);
}

.engineering-core__top i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: currentColor;
}

.engineering-core__bottom {
  bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.engineering-core__bottom span {
  position: relative;
}

.engineering-core__bottom span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 18px);
  width: 4px;
  height: 4px;
  background: var(--signal);
  content: "";
}

.engineering-core__drawing {
  position: absolute;
  inset: 42px 0;
  width: 100%;
  height: calc(100% - 84px);
}

.core-guides {
  fill: none;
  stroke: rgba(231, 226, 215, 0.09);
  stroke-width: 1;
}

.core-face {
  stroke: var(--signal);
  stroke-width: 1.5;
}

.core-face--back {
  fill: rgba(255, 79, 31, 0.03);
}

.core-face--side {
  fill: rgba(231, 226, 215, 0.035);
}

.core-face--front {
  fill: rgba(255, 79, 31, 0.09);
}

.core-edge,
.core-module,
.core-port {
  fill: none;
  stroke: #9da19b;
  stroke-width: 1.3;
}

.core-module {
  stroke: var(--white);
}

.core-lock {
  fill: var(--signal);
  stroke: var(--white);
  stroke-width: 2;
}

.core-labels {
  fill: var(--steel);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.engineering-core__stamp {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 68px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.68;
}

.engineering-core__stamp span {
  display: block;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-align: right;
}

html.js .core-assembly {
  transform: translate(16px, -12px);
  opacity: 0;
  animation: core-lock-in 850ms 260ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero__ticker {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero__ticker div {
  width: max-content;
  padding: 10px 0;
  animation: ticker-drift 28s linear infinite;
}

.hero__ticker i {
  margin: 0 24px;
  font-style: normal;
}

/* Capability ribbon */
.proof-ribbon {
  border-color: rgba(9, 10, 9, 0.25);
  background: var(--paper-2);
  color: var(--ink);
}

.proof-ribbon__inner {
  min-height: 118px;
}

.proof-ribbon__intro {
  background: var(--ink);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.proof-ribbon__item {
  border-color: rgba(9, 10, 9, 0.2);
}

.proof-ribbon__item strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.proof-ribbon__item span {
  color: #424640;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* Cards become engineering plates */
.problem-grid {
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.problem-card {
  min-height: 340px;
  padding: 34px;
  border: 0;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.problem-card:hover {
  transform: none;
  border-color: var(--line-dark);
  background: rgba(255, 79, 31, 0.07);
  box-shadow: none;
}

.problem-card__index {
  width: auto;
  height: auto;
  margin-bottom: 66px;
  place-items: start;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 11px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.problem-card__outcome {
  right: 34px;
  bottom: 28px;
  left: 34px;
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 9px;
}

.problem-card__outcome::before {
  width: 12px;
  height: 2px;
  border-radius: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  display: grid;
  min-height: 290px;
  grid-template-columns: 112px minmax(260px, 0.95fr) minmax(260px, 1fr) minmax(250px, 0.92fr);
  grid-template-rows: auto 1fr;
  gap: 26px 38px;
  padding: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
}

.service-card::before {
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 4px;
  height: auto;
  background: var(--service-color);
}

.service-card::after {
  display: none;
}

.service-card:hover {
  transform: none;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.service-card--integration {
  --service-color: var(--signal);
}

.service-card--ai {
  --service-color: var(--steel);
}

.service-card--product {
  --service-color: var(--white);
}

.service-card__top {
  grid-column: 1;
  grid-row: 1 / 3;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 30px;
  margin: 0;
}

.service-card__number {
  font-size: 10px;
}

.service-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 0;
}

.service-card h3 {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 360px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 2.65vw, 42px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}

.service-card > p {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  color: #aeb3ad;
  font-size: 14px;
  line-height: 1.55;
}

.service-list {
  grid-column: 4;
  grid-row: 1 / 3;
  align-self: start;
  gap: 12px;
  margin: 0;
}

.service-list li {
  align-items: flex-start;
  color: #d0d2cd;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
}

.service-list li::before {
  width: 10px;
  height: 2px;
  margin-top: 7px;
  border-radius: 0;
}

.text-link {
  grid-column: 3;
  grid-row: 2;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Automation system panel */
.ai-lab {
  grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
}

.principle {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.principle__mark {
  border-radius: 0;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
}

.ai-demo {
  border-radius: 0;
  background: #0b0d0b;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.28);
}

.ai-demo__header {
  gap: 0;
  padding: 0;
}

.flow-tab {
  min-height: 54px;
  flex: 1;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.flow-tab:last-child {
  border-right: 0;
}

.flow-tab[aria-selected="true"] {
  border-color: var(--line);
  background: var(--signal);
  color: var(--ink);
}

.ai-demo__canvas {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    #0b0d0b;
  background-size: 36px 36px;
}

.flow-state,
.flow-step,
.flow-step__index,
.flow-step__tag {
  border-radius: 0;
}

.flow-state {
  border-color: rgba(118, 223, 134, 0.45);
  background: transparent;
  font-family: var(--font-mono);
}

.flow-step {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.flow-step__index {
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
}

/* Process, work, fit and studio */
.delivery-chain {
  border: 1px solid var(--line-dark);
  border-radius: 0;
}

.delivery-step {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
}

.delivery-step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.delivery-step__number {
  color: var(--teal-dark);
  font-size: 9px;
}

.delivery-step__arrow {
  border-radius: 0;
  background: var(--ink);
  color: var(--signal);
}

.capability-grid {
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.capability {
  border: 0;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
}

.capability__mark {
  border-radius: 0;
  background: var(--signal);
}

.work-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.work-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.022);
}

.work-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
}

.work-card__visual {
  border-radius: 0;
  border-color: rgba(231, 226, 215, 0.16);
  background: #101210;
}

.work-ui {
  border-radius: 0;
  background: rgba(9, 10, 9, 0.9);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.26);
}

.work-ui__bar i,
.work-ui__row i,
.work-ui__row span,
.work-ui__row b {
  border-radius: 0;
}

.work-ui__bar i:first-child,
.work-ui__row b {
  background: var(--signal);
}

.work-ui__row i {
  background: rgba(255, 79, 31, 0.18);
}

.work-ui__row span {
  background: #3e433e;
}

.visual-orbit {
  border-color: rgba(231, 226, 215, 0.28);
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.visual-orbit::before {
  border-color: rgba(255, 79, 31, 0.48);
  border-radius: 0;
}

.visual-orbit::after {
  border-radius: 0;
  background: var(--signal);
  box-shadow: none;
}

.visual-stack i,
.visual-stack i:nth-child(2),
.visual-stack i:nth-child(3) {
  border-radius: 0;
  background: #3d423d;
}

.visual-stack i:nth-child(2) {
  background: var(--signal);
}

.visual-stack i:nth-child(3) {
  background: #7c827c;
}

.work-card h3 {
  font-family: var(--font-display);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.tag-list li {
  border-radius: 0;
  font-family: var(--font-mono);
}

.fit-note,
.fit-item,
.studio-card,
.studio-value {
  border-radius: 0;
}

.fit-note {
  border-left: 4px solid var(--signal);
  background: rgba(9, 10, 9, 0.08);
}

.fit-item {
  border-color: var(--line-dark);
  background: transparent;
}

.fit-item__icon {
  border-radius: 0;
  background: var(--ink);
  color: var(--signal);
}

.studio-card {
  border-color: var(--line);
  background: #0b0d0b;
}

.studio-card__grid {
  background-size: 38px 38px;
}

.studio-core {
  border-radius: 0;
  background: var(--signal);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-core::before,
.studio-core::after {
  border-radius: 0;
}

.studio-node {
  width: 128px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-transform: uppercase;
}

.studio-node span {
  display: block;
  max-width: 100%;
}

.studio-node span + span {
  margin-top: 1px;
}

.studio-node--one { top: 42px; left: 42px; }
.studio-node--two { top: 42px; right: 42px; }
.studio-node--three { right: 42px; bottom: 42px; }
.studio-node--four { bottom: 42px; left: 42px; }

.studio-value {
  border-color: var(--line);
  background: transparent;
}

.studio-value strong {
  font-size: 14px;
  line-height: 1.3;
}

.studio-value span {
  font-size: 12px;
  line-height: 1.5;
}

/* Final release gate */
.contact-section {
  border-top: 1px solid var(--ink);
  background: var(--signal);
  color: var(--ink);
}

.contact-section .eyebrow,
.contact-section .section-intro,
.contact-section .response-note {
  color: var(--ink);
}

.contact-section .eyebrow::before {
  background: var(--ink);
}

.contact-copy .section-title {
  font-size: clamp(46px, 4.7vw, 70px);
  line-height: 0.98;
}

.contact-direct {
  display: grid;
  gap: 5px;
  margin: -8px 0 26px;
  padding: 16px 0;
  border-top: 1px solid rgba(9, 10, 9, 0.28);
  border-bottom: 1px solid rgba(9, 10, 9, 0.28);
}

.contact-direct span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-direct a {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: clamp(14px, 4.2vw, 20px);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-direct a:hover,
.contact-direct a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.response-note {
  border-color: rgba(9, 10, 9, 0.28);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-mono);
}

.lead-form {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  box-shadow: 14px 14px 0 rgba(9, 10, 9, 0.22);
  color: var(--white);
}

.field label,
.consent,
.form-status {
  font-family: var(--font-mono);
}

.field label {
  font-size: 12px;
}

.consent {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.55;
}

.field input,
.field select,
.field textarea {
  border-radius: 0;
  background: #131513;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal);
  box-shadow: none;
}

.lead-form .button--primary {
  border-color: var(--signal);
}

.site-footer {
  border-top-color: rgba(9, 10, 9, 0.34);
  color: var(--ink);
}

.site-footer .brand,
.site-footer .brand__descriptor,
.site-footer .footer-statement,
.site-footer .footer-column a,
.site-footer .footer-bottom {
  color: var(--ink);
}

.footer-column h2 {
  color: rgba(9, 10, 9, 0.65);
}

.footer-column a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes core-lock-in {
  0% { opacity: 0; transform: translate(16px, -12px); }
  70% { opacity: 1; transform: translate(-2px, 2px); }
  100% { opacity: 1; transform: none; }
}

@keyframes ticker-drift {
  to { transform: translateX(-35%); }
}

@media (max-width: 1120px) {
  .nav-links { gap: 15px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr); }
  .hero__title { font-size: clamp(64px, 8vw, 92px); }
  .hero__title--hu { font-size: clamp(58px, 6.8vw, 80px); }
  .engineering-core { min-height: 550px; }
  .ai-lab { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 100px minmax(220px, 0.8fr) 1fr; }
  .service-list { grid-column: 3; grid-row: 2; margin-top: 10px; }
  .text-link { grid-column: 2; }
}

@media (max-width: 940px) {
  .container { width: min(calc(100% - 40px), var(--max)); }
  .nav-shell {
    min-height: calc(70px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
    background: var(--ink);
    backdrop-filter: none;
  }
  .brand { min-height: 44px; }
  .nav-toggle { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 0; background: transparent; }
  .nav-cluster {
    inset: calc(70px + env(safe-area-inset-top)) 0 0;
    min-height: calc(100dvh - 70px - env(safe-area-inset-top));
    max-height: calc(100dvh - 70px - env(safe-area-inset-top));
    align-content: start;
    gap: 20px;
    padding: 20px max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overscroll-behavior: contain;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--ink);
    box-shadow: none;
  }
  body.nav-open { overflow: hidden; }
  .nav-links { gap: 0; }
  .nav-links a {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-cluster .button { min-height: 56px; font-size: 11px; }
  .language-link { position: static; width: 48px; height: 48px; justify-self: start; }
  .hero--forge { padding: calc(142px + env(safe-area-inset-top)) 0 96px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 840px; }
  .hero__visual { width: min(100%, 680px); min-height: 620px; }
  .hero--forge::before { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__aside { max-width: 560px; }
  .service-card { grid-template-columns: 100px 1fr 1fr; }
  .service-card h3 { grid-column: 2 / 4; grid-row: 1; }
  .service-card__top { grid-row: 1 / 4; }
  .service-card > p { grid-column: 2; grid-row: 2; }
  .service-list { grid-column: 3; grid-row: 2 / 4; }
  .text-link { grid-column: 2; grid-row: 3; }
  .ai-lab { grid-template-columns: 1fr; }
  .studio-copy { order: 1; }
  .studio-card { order: 2; }
}

@media (max-width: 700px) {
  .language-gate::before { display: none; }
  .language-gate__topline { padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)); }
  .language-gate__topline span:last-child { display: none; }
  .language-gate__intro { gap: 14px; padding: 22px 18px; }
  .language-gate__intro img { width: 40px; height: 40px; }
  .language-gate__intro h2 { font-size: 30px; }
  .language-gate__choices { grid-template-columns: 1fr; }
  .language-choice {
    min-height: 0;
    padding: 48px 22px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .language-choice:last-child { border-bottom: 0; }
  .language-choice__index { top: 14px; left: 22px; }
  .language-choice__primary { font-size: clamp(50px, 16vw, 74px); line-height: 0.82; }
  .language-choice__secondary { margin-top: 12px; font-size: 11px; }
  .language-choice__action { margin-top: 24px; }
  .language-gate__note { padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); font-size: 9px; }
}

@media (max-width: 640px) {
  .container,
  .legal-shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.02; }
  .section-title,
  .service-card h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .section-head { margin-bottom: 44px; }
  .section-head__aside { font-size: 11px; line-height: 1.55; }
  .hero--forge { padding: calc(118px + env(safe-area-inset-top)) 0 76px; }
  .hero__rail { top: calc(82px + env(safe-area-inset-top)); right: 14px; left: 14px; }
  .hero__rail span:last-child { display: none; }
  .hero__title { font-size: clamp(44px, 13.2vw, 60px); line-height: 0.92; letter-spacing: -0.04em; }
  .hero__title--hu { font-size: clamp(34px, 12.2vw, 56px); line-height: 1; letter-spacing: -0.03em; }
  .hero__lede { padding-left: 14px; font-size: 16px; line-height: 1.55; }
  .hero__actions { gap: 12px; }
  .hero__actions .button { min-height: 54px; }
  .hero__visual { min-height: 390px; }
  .engineering-core { min-height: 390px; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.26); }
  .engineering-core__drawing { inset: 46px 0; height: calc(100% - 92px); }
  .engineering-core__bottom { padding: 0 12px; font-size: 7px; }
  .engineering-core__bottom span:not(:last-child)::after { display: none; }
  .engineering-core__stamp { right: 18px; bottom: 58px; font-size: 36px; }
  .proof-ribbon__inner { grid-template-columns: 1fr; }
  .proof-ribbon__intro { grid-column: auto; padding: 18px; }
  .proof-ribbon__item { padding: 18px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: 260px; padding: 24px; }
  .problem-card__index { margin-bottom: 45px; }
  .problem-card__outcome { right: 26px; left: 26px; }
  .service-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 22px;
    padding: 26px 22px 28px;
  }
  .service-card__top { grid-column: 1 / 3; grid-row: auto; }
  .service-card h3 { grid-column: 1 / 3; grid-row: auto; font-size: 30px; line-height: 1.08; }
  .service-card > p { grid-column: 1 / 3; grid-row: auto; }
  .service-list { grid-column: 1 / 3; grid-row: auto; gap: 11px; }
  .service-list li { font-size: 12.5px; line-height: 1.55; }
  .text-link {
    width: 100%;
    min-height: 44px;
    grid-column: 1 / 3;
    grid-row: auto;
    justify-content: space-between;
    margin-top: 4px;
    line-height: 1.4;
    white-space: normal;
  }
  .ai-demo { box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28); }
  .ai-demo__header { display: grid; }
  .flow-tab { min-height: 56px; border-right: 0; border-bottom: 1px solid var(--line); font-size: 11px; }
  .flow-tab:last-child { border-bottom: 0; }
  .ai-demo__canvas { min-height: 520px; padding: 20px; }
  .studio-grid { gap: 48px; }
  .studio-copy { order: 1; }
  .studio-card { min-height: clamp(360px, 104vw, 410px); order: 2; }
  .studio-node { width: 124px; min-height: 58px; padding: 8px 9px; font-size: 10px; line-height: 1.25; }
  .studio-node--one { top: 28px; left: 18px; }
  .studio-node--two { top: 28px; right: 18px; }
  .studio-node--three { right: 18px; bottom: 28px; }
  .studio-node--four { bottom: 28px; left: 18px; }
  .studio-value { padding: 16px 18px; }
  .footer-column a { display: flex; min-height: 44px; align-items: center; font-size: 13px; }
  .footer-column ul { gap: 0; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .button,
  .text-link { font-size: 11px; }
  .consent { min-height: 44px; grid-template-columns: 22px 1fr; font-size: 12px; line-height: 1.55; }
  .consent input { width: 22px; height: 22px; margin-top: 1px; }
  .consent a { display: inline-block; margin-block: -10px; padding-block: 10px; }
  .form-status { font-size: 12px; line-height: 1.5; }
  .lead-form { box-shadow: 8px 8px 0 rgba(9, 10, 9, 0.22); }
  .form-footer { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .form-footer .button { width: 100%; min-width: 0; }
  .contact-copy .section-title { font-size: clamp(38px, 11vw, 48px); line-height: 0.98; letter-spacing: -0.03em; }
  .footer-bottom { padding-bottom: env(safe-area-inset-bottom); }
  body::before { opacity: 0.28; }
}

@media (max-height: 600px) and (min-width: 520px) {
  html.language-pending .language-gate { height: 100dvh; min-height: 0; }
  .language-gate__intro { padding-block: 12px; }
  .language-gate__choices { grid-template-columns: 1fr 1fr; }
  .language-choice { padding: 34px 22px 18px; border-right: 1px solid var(--line); border-bottom: 0; }
  .language-choice__index { top: 10px; left: 22px; }
  .language-choice__primary { font-size: 48px; }
  .language-choice__secondary { margin-top: 8px; }
  .language-choice__action { margin-top: 16px; }
  .language-gate__note { display: none; }
}

@media (max-width: 360px) and (max-height: 620px) {
  .language-gate__topline { padding-block: calc(10px + env(safe-area-inset-top)) 10px; }
  .language-gate__intro { padding-block: 12px; }
  .language-gate__intro img { width: 34px; height: 34px; }
  .language-gate__intro h2 { font-size: 25px; }
  .language-choice { padding: 38px 18px 14px; }
  .language-choice__secondary { margin-top: 7px; }
  .language-choice__action { margin-top: 12px; padding-top: 10px; }
  .language-gate__note { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
}

@media (orientation: landscape) and (max-height: 480px) and (max-width: 940px) {
  .nav-cluster {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 10px max(20px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .nav-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav-links a { min-height: 44px; justify-content: center; padding: 8px 4px; font-size: 12px; text-align: center; }
  .language-link { grid-column: 1; grid-row: 2; width: 48px; height: 48px; }
  .nav-cluster .button { min-height: 48px; grid-column: 2; grid-row: 2; }
  .hero--forge { padding-top: calc(104px + env(safe-area-inset-top)); padding-bottom: 64px; }
  .hero__rail { top: calc(78px + env(safe-area-inset-top)); }
  .hero__status { margin-bottom: 20px; }
  .hero__title { margin-bottom: 22px; font-size: clamp(48px, 8vw, 62px); }
  .hero__title--hu { font-size: clamp(42px, 6.5vw, 56px); line-height: 0.98; }
  .hero__visual,
  .engineering-core { min-height: 420px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .text-link,
  .footer-column a { display: flex; min-height: 44px; align-items: center; }
  .button,
  .text-link { font-size: 11px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .consent { min-height: 44px; grid-template-columns: 22px 1fr; align-items: center; font-size: 12px; line-height: 1.55; }
  .consent input { width: 22px; height: 22px; margin-top: 0; }
  .consent a { display: inline-block; margin-block: -10px; padding-block: 10px; }
  .form-status { font-size: 12px; line-height: 1.5; }
  html.language-pending .language-gate { height: 100dvh; min-height: 0; }
  .language-gate__topline { padding-block: calc(6px + env(safe-area-inset-top)) 6px; }
  .language-gate__intro { padding-block: 8px; }
  .language-gate__intro img { width: 32px; height: 32px; }
  .language-gate__intro h2 { font-size: 24px; }
  .language-choice { padding: 30px 18px 10px; }
  .language-choice__index { top: 8px; left: 18px; }
  .language-choice__primary { font-size: 42px; }
  .language-choice__secondary { margin-top: 6px; }
  .language-choice__action { margin-top: 8px; padding-top: 8px; }
}

@media (max-width: 360px) {
  .container,
  .legal-shell { width: min(calc(100% - 24px), var(--max)); }
  .nav-shell { padding-right: 12px; padding-left: 12px; }
  .section-title { font-size: clamp(32px, 10.8vw, 38px); }
  .hero__title { font-size: clamp(40px, 13vw, 47px); }
  .hero__title--hu { font-size: clamp(32px, 12vw, 42px); }
  .hero__lede { font-size: 15.5px; }
  .service-card { padding: 24px 20px 26px; }
  .service-card h3 { font-size: 28px; }
  .lead-form { padding: 20px; }
  .form-footer .button { padding-inline: 14px; }
  .language-gate__intro { padding: 18px 14px; }
  .language-gate__intro h2 { font-size: 28px; }
  .language-choice { padding-right: 18px; padding-left: 18px; }
  .language-choice__index { left: 18px; }
}

@media (max-width: 300px) {
  .brand { gap: 8px; }
  .brand__name { font-size: 13px; }
  .brand__mark { width: 32px; height: 32px; }
  .hero__status { font-size: 9px; letter-spacing: 0.08em; }
  .hero__title--hu { font-size: 32px; }
  .button { padding-inline: 14px; }
  .service-card h3 { font-size: 27px; }
  .service-list li { font-size: 12px; }
  .studio-card { min-height: 380px; }
  .studio-core { width: 104px; height: 104px; }
  .studio-node { width: 94px; min-height: 54px; padding: 7px; font-size: 9px; }
  .studio-node--one { top: 20px; left: 14px; }
  .studio-node--two { top: 20px; right: 14px; }
  .studio-node--three { right: 14px; bottom: 20px; }
  .studio-node--four { bottom: 20px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .core-assembly { transform: none; opacity: 1; animation: none; }
  .hero__ticker div { animation: none; }
  .language-gate[data-closing] .language-choice { transform: none; }
}
