/* ==========================================================================
   Soloft Industries — Landing
   Designed & developed by Soloft Digital
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand: #fb0025;
  --brand-600: #d4001f;
  --brand-glow: rgba(251, 0, 37, 0.35);
  --brand-soft: rgba(251, 0, 37, 0.12);

  /* Surfaces */
  --bg: #070708;
  --bg-raised: #0c0c0e;
  --surface: #111114;
  --surface-2: #16161a;

  /* Text */
  --text: #f4f4f5;
  --text-soft: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #7c7c86;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.8vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.2rem + 5.6vw, 5.5rem);
  --fs-display: clamp(2.75rem, 1rem + 7.4vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 1200px;

  /* Shape & motion */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: var(--fs-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Mono label used as section eyebrow */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.label__index {
  color: var(--brand);
}
.label__index::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: var(--line-strong);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff2a49 0%, var(--brand) 45%, var(--brand-600) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(251, 0, 37, 0.6),
    0 8px 24px -8px var(--brand-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(251, 0, 37, 0.8),
    0 12px 32px -8px rgba(251, 0, 37, 0.55);
}
.btn--ghost {
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 7, 8, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}

.brand {
  display: block;
  flex-shrink: 0;
  margin-left: -4px;
}
.brand__logo {
  width: auto;
  height: 40px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__link:hover,
.site-nav__link[aria-current="true"] { color: var(--text); }
.site-nav__link:hover::after,
.site-nav__link[aria-current="true"]::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Language selector */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang__toggle:hover,
.lang__toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.lang__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang__chevron {
  color: var(--text-dim);
  transition: transform 0.25s var(--ease);
}
.lang__toggle[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 17, 20, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  animation: menu-in 0.2s var(--ease);
}
.lang__menu[hidden] { display: none; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.lang__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: left;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lang__option:hover,
.lang__option:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline-offset: -2px;
}
.lang__name { flex: 1; }
.lang__short {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.lang__option[aria-checked="true"] { color: var(--text); }
.lang__option[aria-checked="true"] .lang__short { color: var(--brand); }
.lang__option[aria-checked="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.menu-toggle__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__bar:first-child { top: 15px; }
.menu-toggle__bar:last-child { top: 22px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { top: 18.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { top: 18.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7rem));
  overflow: hidden;
  isolation: isolate;
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -5%, rgba(255, 255, 255, 0.13), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(55% 45% at 50% 28%, #000 10%, transparent 75%);
  mask-image: radial-gradient(55% 45% at 50% 28%, #000 10%, transparent 75%);
}
.hero__beam {
  position: absolute;
  top: -20%;
  width: 38%;
  height: 90%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
}
.hero__beam--l { left: 4%; transform: skewX(24deg); }
.hero__beam--r { right: 4%; transform: skewX(-24deg); }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: var(--fs-xs);
  color: var(--text-soft);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.pill:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}
.pill__dot:first-child {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft), 0 0 10px var(--brand-glow);
}

.hero__eyebrow {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__title {
  margin-top: var(--space-4);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title-line { display: block; }
.hero__title-line--dim {
  background: linear-gradient(180deg, #e4e4e7 10%, #71717a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero__lead {
  max-width: 48rem;
  margin-top: var(--space-5);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-soft);
  text-wrap: balance;
}
.hero__copy {
  max-width: 41rem;
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero__copy p + p { margin-top: var(--space-2); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---------- Status console (hero stage) ---------- */
.stage {
  position: relative;
  margin-top: clamp(4rem, 2.5rem + 6vw, 7rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.stage__glow {
  position: absolute;
  left: 50%;
  top: -70px;
  width: min(760px, 90%);
  height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 255, 255, 0.22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.console {
  position: relative;
  padding: clamp(6px, 0.4rem + 0.4vw, 12px);
  border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.console::before {
  /* thin highlight along the top edge */
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}
.console__screen {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 75% 40%, rgba(255, 255, 255, 0.03), transparent 70%),
    linear-gradient(180deg, #101013, #09090b);
}
.console__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.8rem clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.console__mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.console__crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.console__sep { color: var(--line-strong); }
.console__crumb-current { color: var(--text-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(251, 0, 37, 0.35);
  border-radius: 999px;
  background: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b80;
  white-space: nowrap;
}
.chip__dot,
.spec__live {
  position: relative;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
}
.chip__dot::after,
.spec__live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

.console__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.console__info {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
}
.console__title {
  margin-top: var(--space-4);
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.console__text {
  margin-top: var(--space-4);
  max-width: 34rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

.spec {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.spec__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}
.spec dt {
  text-transform: uppercase;
  color: var(--text-dim);
}
.spec dd {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-soft);
}

.console__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.blueprint {
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
}
.blueprint .bp-dot { fill: rgba(255, 255, 255, 0.16); }
.blueprint .bp-line,
.blueprint .bp-thin,
.blueprint .bp-dash,
.blueprint .bp-ticks,
.blueprint .bp-dim,
.blueprint .bp-star,
.blueprint .bp-accent { fill: none; vector-effect: non-scaling-stroke; }
.blueprint .bp-line { stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.2; }
.blueprint .bp-thin { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.blueprint .bp-dash { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; stroke-dasharray: 2 6; }
.blueprint .bp-ticks { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.blueprint .bp-dim { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.blueprint .bp-dim .bp-ext { stroke-dasharray: 3 4; stroke: rgba(255, 255, 255, 0.14); }
.blueprint .bp-star { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; fill: rgba(255, 255, 255, 0.06); }
.blueprint .bp-accent { stroke: var(--brand); stroke-width: 1.6; }
.blueprint .bp-accent-fill { fill: var(--brand); }
.blueprint .bp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: rgba(255, 255, 255, 0.55);
}
.blueprint .bp-label--dim { fill: rgba(255, 255, 255, 0.3); }
.blueprint .bp-orbit {
  transform-origin: 240px 190px;
  animation: orbit-drift 18s ease-in-out infinite alternate;
}
@keyframes orbit-drift {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "title intro";
  align-items: end;
  column-gap: var(--space-7);
  row-gap: var(--space-5);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section-head .label { grid-area: label; }
.section-title {
  grid-area: title;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-intro {
  grid-area: intro;
  justify-self: end;
  max-width: 24rem;
  font-size: var(--fs-md);
  color: var(--text-muted);
  text-align: right;
}

/* ---------- Disciplines ---------- */
.disciplines {
  border-top: 1px solid var(--line);
}
.disciplines::before {
  /* subtle red hairline marking the section transition */
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(240px, 40%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.disc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.disc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 60%);
  transition: background-color 0.4s var(--ease);
}
.disc::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 1px);
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.disc:hover { background-color: rgba(255, 255, 255, 0.02); }
.disc:hover::before { transform: scaleX(1); }

.disc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.disc__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.disc:hover .disc__index { color: var(--brand); }
.disc__icon {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.disc__icon .thin { stroke: rgba(255, 255, 255, 0.25); }
.disc__icon .accent { stroke: rgba(255, 255, 255, 0.7); transition: stroke 0.4s var(--ease); }
.disc__icon .dot { fill: var(--brand); stroke: none; }
.disc:hover .disc__icon .accent { stroke: var(--brand); }

.disc__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.disc__text {
  margin-top: var(--space-3);
  max-width: 32rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- Approach ---------- */
.approach {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
    var(--bg-raised);
  border-block: 1px solid var(--line);
}
.approach__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-7) clamp(2rem, 1rem + 5vw, 6rem);
  align-items: end;
}
.approach__title {
  margin-top: var(--space-5);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.approach__title > span { display: block; }
.approach__title > span:nth-child(2) { color: #d4d4d8; }
.approach__title > span:nth-child(3) { color: #a1a1aa; }
.approach__title-accent { color: var(--text-dim); }
.approach__dot { color: var(--brand); }
.approach__copy {
  font-size: var(--fs-md);
  color: var(--text-muted);
  text-wrap: pretty;
}
.approach__copy p + p { margin-top: var(--space-4); }
.approach__emph {
  padding-left: var(--space-4);
  border-left: 1px solid var(--brand);
  color: var(--text-soft);
}

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
  padding-top: var(--space-6);
}
.process::before {
  /* connecting rail */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 80%, var(--brand));
}
.process__step { position: relative; }
.process__node {
  position: absolute;
  top: calc(var(--space-6) * -1 - 4px);
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--bg-raised);
}
.process__node--accent {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft), 0 0 14px var(--brand-glow);
}
.process__key {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.process__key-index { color: var(--text-muted); margin-right: 0.35rem; }
.process__title {
  margin-top: var(--space-3);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.process__text {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 17rem;
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  padding-block: clamp(6rem, 3rem + 10vw, 12rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.closing__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 50% 100%, rgba(251, 0, 37, 0.12), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.closing__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center bottom;
  -webkit-mask-image: radial-gradient(50% 60% at 50% 100%, #000, transparent 75%);
  mask-image: radial-gradient(50% 60% at 50% 100%, #000, transparent 75%);
}
.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing__title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 0.8rem + 6.4vw, 7rem);
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.closing__title > span { display: block; }
.closing__title-dim {
  background: linear-gradient(180deg, #e4e4e7 0%, #52525b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.05em;
}
.closing__dot {
  color: var(--brand);
  -webkit-text-fill-color: var(--brand);
}
.closing__text {
  max-width: 36rem;
  margin-top: var(--space-6);
  font-size: var(--fs-md);
  color: var(--text-muted);
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 40% at 100% 0%, rgba(251, 0, 37, 0.06), transparent 70%),
    var(--bg-raised);
}

/* Contact call-out */
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-6) var(--space-7);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.footer-cta__title {
  margin-top: var(--space-5);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.footer-cta__text {
  max-width: 30rem;
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  color: var(--text-muted);
  text-wrap: pretty;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 100%;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.125rem, 0.85rem + 1.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.mail-link__text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mail-link__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mail-link:hover { border-color: var(--brand); }
.mail-link:hover .mail-link__icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: rotate(45deg);
}

/* Columns */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: var(--space-7) var(--space-6);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.footer-brand__logo {
  width: auto;
  height: 44px;
  margin-left: -5px;
}
.footer-brand__tagline {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.footer-brand__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-3);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.footer-col__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-col__list {
  display: grid;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}
.footer-col__list a {
  display: inline-block;
  padding-block: 0.2rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.footer-col__list a:hover { color: var(--text); }
.footer-col--end { justify-self: end; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.to-top__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.to-top:hover { color: var(--text); }
.to-top:hover .to-top__icon { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5) var(--space-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.credit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease);
}
.credit:hover { opacity: 1; }
.credit__logo {
  width: auto;
  height: 26px;
}

/* ---------- Reveal on scroll (JS only) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .disc-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .disc-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .disc-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .hero__inner .reveal:nth-child(2) { transition-delay: 0.05s; }
.js .hero__inner .reveal:nth-child(3) { transition-delay: 0.1s; }
.js .hero__inner .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .hero__inner .reveal:nth-child(5) { transition-delay: 0.24s; }
.js .hero__inner .reveal:nth-child(6) { transition-delay: 0.3s; }
.js .stage.reveal { transition-delay: 0.4s; transform: translateY(40px); }
.js .stage.reveal.is-visible { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .console__body { grid-template-columns: 1fr; }
  .console__visual {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-block: var(--space-6);
  }
  .blueprint { max-width: 420px; }

  .approach__head { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-7); }
  .process::before { display: none; }
  .process__step { padding-top: var(--space-5); border-top: 1px solid var(--line-strong); }
  .process__node { top: -5px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  /* Floating frosted-glass header */
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    top: 10px;
    left: 10px;
    right: 10px;
    height: var(--header-h);
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Glass lives on a pseudo-element so the nav panel can blur the page itself */
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30, 30, 36, 0.62), rgba(14, 14, 18, 0.55));
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 32px -12px rgba(0, 0, 0, 0.7);
  }
  .site-header__inner { padding-inline: 14px 8px; }
  .brand { margin-left: 0; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: var(--space-2) var(--space-5) var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30, 30, 36, 0.7), rgba(14, 14, 18, 0.66));
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 48px -16px rgba(0, 0, 0, 0.8);
    /* Reveal with clip-path, not opacity: animating opacity on a
       backdrop-filter element renders the blur without its content in Chrome. */
    visibility: hidden;
    clip-path: inset(0 0 100% 0 round 16px);
    transition: clip-path 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .site-nav.is-open {
    visibility: visible;
    clip-path: inset(0 0 -40px 0 round 16px);
    transition: clip-path 0.35s var(--ease), visibility 0s;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__link {
    display: block;
    padding: 1rem 0;
    font-size: var(--fs-lg);
    color: var(--text-soft);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav__list li:last-child .site-nav__link { border-bottom: 0; }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="true"] { color: var(--text); }
  .site-nav__link[aria-current="true"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: var(--brand);
    vertical-align: middle;
  }

  .section-head {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "title" "intro";
  }
  .section-intro { justify-self: start; text-align: left; }

  .footer-cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--end { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
  .disc-grid { grid-template-columns: 1fr; }
  .disc__top { padding-bottom: var(--space-6); }
}

@media (max-width: 520px) {
  :root { --header-h: 60px; }
  .brand__logo { height: 30px; }
  .lang__toggle { padding-inline: 0.6rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .console__bar { gap: var(--space-3); }
  .console__crumbs > span:first-child,
  .console__crumbs .console__sep { display: none; }
  .process { grid-template-columns: 1fr; row-gap: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .chip__dot::after,
  .spec__live::after { display: none; }
}
