:root {
  color-scheme: dark;
  --bg: #0a0509;
  --surface: #150910;
  --surface-raised: #1b0c15;
  --line: #2a1521;
  --line-strong: #4b2137;
  --text: #f1e7e1;
  --text-muted: #ac8c99;
  --magenta: #e5197d;
  --wine: #7e1a3c;
  --wine-readable: #d14a84;
  --success: #78c69a;
  --warning: #f1c27d;
  --danger: #ff829f;
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(126, 26, 60, 0.19), transparent 27rem),
    radial-gradient(circle at 4% 42%, rgba(229, 25, 125, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(42, 21, 33, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 21, 33, 0.18) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(229, 25, 125, 0.035) 58% 58.2%, transparent 58.2%),
    linear-gradient(35deg, transparent 0 22%, rgba(241, 231, 225, 0.025) 22% 22.15%, transparent 22.15%);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--magenta);
  color: var(--bg);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--magenta);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(42, 21, 33, 0.84);
  background: rgba(10, 5, 9, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

.personal-mark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  text-decoration: none;
}

.personal-mark__symbol {
  width: 31px;
  height: 25px;
  object-fit: contain;
}

.personal-mark__copy {
  display: grid;
  gap: 1px;
}

.personal-mark__name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.personal-mark__role {
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.desktop-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--magenta);
  content: "";
  transition: transform 180ms ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
  background: rgba(241, 231, 225, 0.04);
}

.button--primary {
  border-color: var(--magenta);
  background: var(--magenta);
  color: var(--bg);
}

.button--primary:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.button--quiet {
  border-color: transparent;
  color: var(--text-muted);
}

.button--quiet:hover {
  color: var(--text);
}

.button__arrow {
  font-family: var(--font-technical);
  font-size: 10px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle span {
  margin-block: 4px;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__inner {
  display: grid;
  padding-block: 20px 26px;
  gap: 4px;
}

.mobile-menu a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
  font-weight: 550;
  text-decoration: none;
}

.mobile-menu a::after {
  content: "";
}

.hero {
  position: relative;
  display: grid;
  min-height: min(910px, 100svh);
  align-items: center;
  padding: 104px 0 48px;
}

.hero::before {
  position: absolute;
  top: 16%;
  right: -18%;
  width: min(57vw, 760px);
  aspect-ratio: 1.28;
  opacity: 0.07;
  background: url("../brand/atsurri-symbol-magenta.svg") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  background: var(--magenta);
  content: "";
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.6vw, 74px);
  font-weight: 550;
  letter-spacing: -0.066em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 380;
}

.hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 380;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
  gap: 12px;
}

.system-map {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(229, 25, 125, 0.06), transparent 44%),
    rgba(21, 9, 16, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-map::before,
.system-map::after {
  position: absolute;
  background: var(--line);
  content: "";
}

.system-map::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.system-map::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.system-map__label {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 3;
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.system-map__network {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.system-map__network path {
  fill: none;
  stroke: rgba(229, 25, 125, 0.64);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.system-map__network circle {
  fill: var(--surface);
  stroke: var(--magenta);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.system-map__fragment,
.system-map__core,
.system-map__result {
  position: absolute;
  z-index: 2;
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(10, 5, 9, 0.94);
  color: var(--text-muted);
  font-family: var(--font-technical);
  text-align: left;
}

.system-map__fragment small,
.system-map__result small,
.system-map__core small {
  display: block;
  margin-bottom: 4px;
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 6px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.system-map__fragment strong,
.system-map__result strong {
  color: var(--text);
  font-family: var(--font-technical);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.system-map__fragment em,
.system-map__result em {
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.system-map__fragment--one {
  top: 84px;
  left: 18.33%;
  width: 132px;
  transform: translateX(-50%);
}

.system-map__fragment--two {
  top: 236px;
  left: 20%;
  width: 132px;
  transform: translateX(-50%);
}

.system-map__fragment--three {
  left: 81.67%;
  bottom: 48px;
  width: 136px;
  transform: translateX(-50%);
}

.system-map__core {
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 136px;
  min-height: 136px;
  align-items: center;
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: var(--magenta);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  box-shadow: 0 0 40px rgba(229, 25, 125, 0.1);
}

.system-map__core span {
  transform: rotate(-45deg);
}

.system-map__core small {
  margin-bottom: 7px;
  font-size: 5.5px;
}

.system-map__result {
  top: 76px;
  left: 81.67%;
  width: 136px;
  transform: translateX(-50%);
  border-color: var(--line-strong);
}

.system-map__loop {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 5.5px;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.system-map__loop i {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--magenta));
}

.proof-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(21, 9, 16, 0.76);
  overflow: hidden;
}

.proof-item {
  min-height: 100px;
  padding: 22px;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-item span {
  display: block;
  margin-bottom: 9px;
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  max-width: 260px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.section {
  position: relative;
  padding: clamp(84px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.section--compact {
  padding-block: clamp(70px, 8vw, 110px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
  align-items: end;
  margin-bottom: 52px;
  gap: 42px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

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

.featured-case {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(229, 25, 125, 0.045), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--text);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  content: "";
}

.status--development::before {
  background: var(--warning);
}

.status--concept::before {
  background: var(--text-muted);
}

.status--live::before {
  background: var(--success);
}

.case-index {
  margin: auto 0 22px;
  padding-top: 50px;
  color: var(--wine-readable);
  font-family: var(--font-technical);
  font-size: 42px;
  letter-spacing: -0.05em;
}

.case-copy h3 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.case-lead {
  margin: 22px 0 30px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.case-facts {
  display: grid;
  margin: 0 0 32px;
  gap: 0;
}

.case-facts div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  gap: 14px;
}

.case-facts dt {
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.case-demo {
  min-width: 0;
  padding: clamp(24px, 4vw, 46px);
  background: rgba(10, 5, 9, 0.56);
}

.demo-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 18px;
}

.demo-topline strong {
  font-size: 15px;
  font-weight: 600;
}

.demo-topline span {
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.scenario-controls {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 22px;
  gap: 8px;
}

.scenario-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.scenario-button:hover,
.scenario-button.is-active {
  border-color: var(--magenta);
  color: var(--text);
}

.scenario-button.is-active {
  background: rgba(229, 25, 125, 0.12);
}

.case-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  gap: 9px;
}

.case-kpi {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  background: var(--surface);
}

.case-kpi span {
  display: block;
  min-height: 26px;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.25;
}

.case-kpi strong {
  font-family: var(--font-technical);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 400;
}

.case-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 14px;
}

.funnel,
.diagnostic-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--surface);
}

.panel-label {
  display: block;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.funnel-row + .funnel-row {
  margin-top: 12px;
}

.funnel-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.funnel-copy strong {
  color: var(--text);
}

.funnel-track {
  height: 5px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.funnel-track span {
  display: block;
  width: var(--funnel-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine), var(--magenta));
  transition: width 260ms ease;
}

.diagnosis {
  border-left: 2px solid var(--magenta);
  padding-left: 13px;
}

.diagnosis span {
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnosis p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.diagnosis--critical {
  border-left-color: var(--danger);
}

.diagnosis--warning {
  border-left-color: var(--warning);
}

.diagnosis--ok {
  border-left-color: var(--success);
}

.findings {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.findings li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.findings li::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--magenta);
  transform: rotate(45deg);
  content: "";
}

.demo-disclaimer {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

.project-card::after {
  position: absolute;
  right: -44px;
  bottom: -42px;
  width: 120px;
  height: 96px;
  opacity: 0.08;
  background: url("../brand/atsurri-symbol-magenta.svg") center / contain no-repeat;
  content: "";
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.project-card__number {
  margin: 34px 0 22px;
  color: var(--wine-readable);
  font-family: var(--font-technical);
  font-size: 24px;
}

.project-card h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.project-card__problem {
  margin: 16px 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.project-card__proof {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
}

.project-card__proof span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  margin: 22px 0 26px;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 6.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.text-link::after {
  content: "";
}

.text-link:hover {
  color: var(--magenta);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.method-step {
  position: relative;
  min-height: 260px;
  padding: 28px 22px;
}

.method-step + .method-step {
  border-left: 1px solid var(--line);
}

.method-step::after {
  position: absolute;
  top: 42px;
  right: -5px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--magenta);
  border-right: 1px solid var(--magenta);
  transform: rotate(45deg);
  background: var(--surface);
  content: "";
}

.method-step:last-child::after {
  display: none;
}

.method-step span {
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 9px;
}

.method-step h3 {
  margin: 46px 0 14px;
  font-size: 19px;
  font-weight: 600;
}

.method-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.capability-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
}

.capability-intro {
  align-self: start;
}

.capability-intro h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 530;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.capability-intro p {
  margin: 25px 0 0;
  color: var(--text-muted);
  font-size: 16px;
}

.capability-list {
  display: grid;
  gap: 0;
}

.capability-item {
  display: grid;
  grid-template-columns: 64px 0.7fr 1.3fr;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  gap: 22px;
}

.capability-item:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-item > span {
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 8px;
}

.capability-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

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

.archive {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.archive summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.archive summary::-webkit-details-marker {
  display: none;
}

.archive summary::after {
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 18px;
  content: "+";
}

.archive[open] summary::after {
  content: "−";
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.archive-card {
  min-height: 210px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-card:nth-child(2n) {
  border-right: none;
}

.archive-card h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.archive-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.archive-card a {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.career-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(270px, 0.62fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(126, 26, 60, 0.16), transparent 42%),
    var(--surface);
  overflow: hidden;
}

.career-copy {
  padding: clamp(36px, 5vw, 64px);
}

.career-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.career-copy p {
  max-width: 650px;
  margin: 26px 0 32px;
  color: var(--text-muted);
  font-size: 17px;
}

.career-aside {
  display: grid;
  align-content: start;
  border-left: 1px solid var(--line);
  padding: clamp(28px, 3.5vw, 42px);
  gap: 30px;
}

.career-aside__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.career-aside__head > div {
  display: grid;
  gap: 8px;
}

.career-aside__head span {
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.career-aside__head strong {
  max-width: 180px;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.35;
}

.career-aside__head img {
  width: 88px;
  margin: 0;
  opacity: 0.58;
}

.career-aside__statement {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.career-aside dl {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.career-aside dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.career-aside dt {
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-aside dd {
  margin: 0;
  font-size: 13px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
}

.path-card__index {
  color: var(--magenta);
  font-family: var(--font-technical);
  font-size: 9px;
}

.path-card h3 {
  max-width: 440px;
  margin: 70px 0 18px;
  font-size: clamp(29px, 3.4vw, 44px);
  font-weight: 530;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.path-card p {
  max-width: 500px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 15px;
}

.path-card__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  gap: 10px;
}

.site-footer {
  position: relative;
  padding: 80px 0 38px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  padding-bottom: 70px;
  gap: 50px;
}

.footer-main h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.footer-links {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--magenta);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  gap: 20px;
  color: var(--text-muted);
  font-family: var(--font-technical);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

.footer-signature img {
  width: 24px;
  height: 20px;
}

.reveal-ready [data-reveal] {
  transform: translateY(22px);
  opacity: 0;
  transition:
    opacity 540ms ease,
    transform 540ms ease;
}

.reveal-ready [data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .nav-actions .button {
    display: none;
  }

  .nav-actions .button.page-back {
    display: inline-flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .system-map {
    min-height: 420px;
  }

  .featured-case,
  .capability-layout {
    grid-template-columns: 1fr;
  }

  .case-copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .case-index {
    margin-top: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    min-height: 390px;
  }

  .method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .method-step {
    min-height: 220px;
    border-bottom: 1px solid var(--line);
  }

  .method-step:nth-child(odd) {
    border-left: none;
  }

  .method-step::after {
    display: none;
  }

  .capability-layout {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-shell {
    min-height: 68px;
  }

  .personal-mark__role {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 42px;
  }

  .hero::before {
    top: 10%;
    right: -48%;
    width: 104vw;
  }

  .hero h1 {
    font-size: clamp(43px, 13.4vw, 66px);
    letter-spacing: -0.058em;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .system-map {
    min-height: 390px;
  }

  .system-map__fragment--one {
    top: 74px;
    left: 18.33%;
  }

  .system-map__fragment--two {
    top: 212px;
    left: 20%;
  }

  .system-map__fragment--three {
    right: auto;
    bottom: 38px;
    left: 81.67%;
  }

  .system-map__result {
    top: 70px;
    right: auto;
    left: 81.67%;
  }

  .proof-strip,
  .section-heading,
  .case-demo-grid,
  .project-grid,
  .method-grid,
  .archive-grid,
  .career-panel,
  .path-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
    border-left: none;
  }

  .section {
    padding-block: 82px;
  }

  .section-heading {
    align-items: start;
    margin-bottom: 34px;
    gap: 22px;
  }

  .section-heading h2,
  .capability-intro h2 {
    font-size: 39px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .case-copy,
  .case-demo {
    padding: 25px 20px;
  }

  .case-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .project-card,
  .project-card:last-child {
    min-height: 0;
    grid-column: auto;
  }

  .method-step {
    min-height: 0;
    border-left: none;
  }

  .method-step h3 {
    margin-top: 28px;
  }

  .capability-item {
    grid-template-columns: 42px 1fr;
  }

  .capability-item p {
    grid-column: 2;
  }

  .archive-card,
  .archive-card:nth-child(2n) {
    border-right: none;
  }

  .career-copy,
  .career-aside {
    padding: 28px 22px;
  }

  .career-aside {
    border-top: 1px solid var(--line);
    border-left: none;
  }

  .career-aside__head img {
    width: 82px;
  }

  .path-card {
    min-height: 330px;
  }

  .path-card h3 {
    margin-top: 50px;
  }

  .footer-main {
    align-items: start;
  }

  .footer-links {
    justify-items: start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .personal-mark__name {
    font-size: 14px;
  }

  .menu-toggle {
    width: 43px;
    height: 43px;
  }

  .system-map {
    min-height: 350px;
  }

  .system-map__fragment,
  .system-map__result {
    width: 108px;
    min-height: 60px;
    padding: 8px 10px;
  }

  .system-map__fragment em,
  .system-map__result em {
    font-size: 8px;
  }

  .system-map__fragment--one {
    top: 68px;
  }

  .system-map__fragment--two {
    top: 190px;
  }

  .system-map__fragment--three {
    bottom: 38px;
    width: 116px;
  }

  .system-map__result {
    top: 62px;
    width: 116px;
  }

  .system-map__core {
    width: 112px;
    min-height: 112px;
    font-size: 7px;
  }

  .case-facts div,
  .career-aside dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-kpi {
    padding: 12px 10px;
  }

  .scenario-button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-ready [data-reveal] {
    transform: none;
    opacity: 1;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .scenario-controls,
  .hero-actions,
  .path-grid,
  .footer-links {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section,
  .featured-case,
  .project-card,
  .method-grid,
  .archive,
  .career-panel {
    border-color: #bbb;
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  .hero {
    min-height: auto;
  }
}
