:root {
  color-scheme: dark;
  --page-bg: #03050a;
  --surface: #070b12;
  --surface-soft: #0a0f18;
  --text: #f4f7fb;
  --text-soft: #9aa6b8;
  --line: rgba(174, 198, 224, 0.17);
  --cyan: #66f7ff;
  --violet: #8a6dff;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 78, 146, 0.1), transparent 34rem),
    var(--page-bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--page-bg);
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.82), rgba(2, 4, 10, 0));
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.home-page .header-inner {
  min-height: 62px;
}

.wordmark {
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.wordmark span:last-child {
  color: var(--cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: #c7cfdb;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    opacity 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(180, 235, 255, 0.2);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 0.34;
}

.main-nav a[aria-current="page"] {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(102, 247, 255, 0.18);
}

.main-nav a[aria-current="page"]::after {
  opacity: 0.5;
}

.main-nav .nav-secondary {
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(174, 198, 224, 0.12);
  color: #7f8b9c;
  font-size: 0.62rem;
}

.language {
  display: inline-flex;
  gap: 6px;
  color: #647084;
}

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

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 470px;
  height: 470px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.08) 48%, rgba(2, 4, 9, 0.72) 100%),
    url("../assets/hero/logo-background.png") center / cover no-repeat,
    #02040a;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(1, 3, 8, 0.34) 100%);
}

.hero::after {
  display: none;
}

.hero-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  margin-top: -12px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.25rem, 3.35vw, 3.55rem);
  font-weight: 280;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  color: #f4f6f9;
  font-weight: 260;
}

.hero-copy h1 strong {
  color: #ffffff;
  font-weight: 620;
}

.hero-pillars {
  width: min(650px, 78vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 11px;
  font-size: clamp(0.62rem, 0.9vw, 0.76rem);
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-rule {
  width: clamp(32px, 5vw, 68px);
  height: 1px;
  flex: 0 1 68px;
}

.hero-rule--cyan {
  background: linear-gradient(90deg, transparent, #28d9ce);
}

.hero-rule--orange {
  background: linear-gradient(90deg, #ff7d30, transparent);
}

.hero-pillar--analyse {
  color: #35ddd3;
}

.hero-pillar--stabilise {
  color: #7189ea;
}

.hero-pillar--act {
  color: #ff8738;
}

.hero-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.hero-dot--cyan {
  color: #3ce6e2;
  background: currentColor;
}

.hero-dot--orange {
  color: #ff7f39;
  background: currentColor;
}

.hero-statement {
  margin: 16px 0 0;
  color: #d2d6dc;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  letter-spacing: 0.01em;
}

.hero-statement em {
  background: linear-gradient(90deg, #7587eb, #b272ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
}

.hero-mark img {
  width: clamp(300px, 26vw, 390px);
  max-width: none;
  filter: drop-shadow(0 0 28px rgba(50, 132, 255, 0.12));
}

.systems-section {
  min-height: 700px;
  padding: 8px 0 120px;
  background:
    radial-gradient(circle at 50% 30%, rgba(13, 58, 104, 0.1), transparent 35rem),
    #03050a;
}

.systems-section > .shell {
  width: min(1440px, calc(100% - 48px));
}

.section-heading {
  margin-bottom: 10px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.35vw, 2.3rem);
  font-weight: 270;
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading h2 span {
  color: #647084;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.system-grid .system-card {
  grid-column: auto;
}

.system-card {
  --system-color: var(--cyan);
  position: relative;
  isolation: isolate;
  min-height: 350px;
  overflow: hidden;
  padding: 21px;
  border: 1px solid color-mix(in srgb, var(--system-color) 38%, transparent);
  background: linear-gradient(
    180deg,
    rgba(16, 25, 39, 0.78) 0%,
    rgba(3, 7, 12, 0.96) 43%,
    #000000 60%,
    #000000 100%
  );
  transition: border-color 180ms ease, transform 180ms ease;
}

.system-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
}

.system-card:hover,
.system-card:focus-visible {
  border-color: var(--system-color);
  transform: translateY(-4px);
}

.card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 30ch;
}

.card-layer {
  margin: 0 0 17px;
  color: var(--system-color);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.system-card h3 {
  order: -1;
  margin: 0 0 5px;
  font-size: clamp(1.2rem, 1.6vw, 1.48rem);
  font-weight: 420;
  letter-spacing: 0.04em;
  line-height: 1.12;
}

.system-card p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.system-card img {
  position: absolute;
  z-index: 0;
  width: 78%;
  max-width: none;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}

.system-card--judgment img {
  width: 80%;
  bottom: 0;
}

.system-card--soren img {
  width: 79%;
  bottom: 0;
}

.system-card--telos img {
  width: 76%;
  bottom: 0;
}

.system-card--cross img {
  width: 79%;
  bottom: 0;
}

.card-badge {
  position: absolute;
  z-index: 3;
  right: 48px;
  top: 21px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--system-color) 55%, transparent);
  color: var(--system-color);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-arrow {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  color: var(--system-color);
  font-size: 1.2rem;
}

@media (max-width: 1040px) {
  .system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quiet-section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: #05070c;
}

.quiet-section + .quiet-section {
  background: var(--page-bg);
}

.quiet-layout {
  display: grid;
  grid-template-columns: minmax(140px, .6fr) minmax(0, 1.4fr);
  gap: clamp(40px, 9vw, 140px);
}

.quiet-layout h2,
.contact-section h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 280;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.quiet-layout p:last-child,
.contact-section p:last-child {
  max-width: 55ch;
  margin: 24px 0 0;
  color: var(--text-soft);
}

.contact-section {
  padding: 120px 0 140px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 50%, rgba(54, 145, 255, 0.12), transparent 28rem),
    #050810;
}

.contact-inner {
  display: grid;
  justify-items: start;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020307;
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: #657184;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* System detail page */
.system-page {
  --system-color: #168dff;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--system-color) 9%, transparent), transparent 35rem),
    var(--page-bg);
}

.system-page .site-header {
  position: relative;
  background: rgba(3, 5, 10, 0.88);
}

/* Quiet information pages */
.info-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.info-page .site-header {
  position: relative;
  background: rgba(3, 5, 10, 0.88);
}

.info-main {
  min-height: calc(100svh - 175px);
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 128px) 0;
}

.info-content h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 220;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.info-content p {
  max-width: 60ch;
  margin: clamp(30px, 5vw, 52px) 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.system-detail {
  padding: clamp(72px, 10vw, 130px) 0 120px;
}

.system-intro {
  margin-bottom: clamp(50px, 8vw, 86px);
}

.system-intro .eyebrow {
  color: var(--system-color);
}

.system-title-lockup {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
}

.system-icon {
  width: clamp(76px, 10vw, 126px);
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 0 auto;
}

.system-divider {
  width: 1px;
  height: clamp(74px, 9vw, 118px);
  flex: 0 0 auto;
  background: linear-gradient(transparent, var(--system-color), transparent);
}

.system-title-lockup h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 220;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--system-color) 70%, transparent);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--system-color) 11%, transparent), transparent 42%),
    #03060b;
  box-shadow: 0 0 30px color-mix(in srgb, var(--system-color) 7%, transparent);
}

.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.video-frame::before {
  inset: 0;
  opacity: .45;
  background:
    linear-gradient(90deg, transparent 49.95%, color-mix(in srgb, var(--system-color) 15%, transparent) 50%, transparent 50.05%),
    linear-gradient(transparent 49.9%, color-mix(in srgb, var(--system-color) 15%, transparent) 50%, transparent 50.1%);
}

.video-frame::after {
  width: min(22vw, 260px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--system-color) 24%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 80px color-mix(in srgb, var(--system-color) 11%, transparent);
}

.video-placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.video-placeholder strong {
  color: var(--system-color);
  font-size: clamp(1.35rem, 3vw, 2.7rem);
  font-weight: 420;
  letter-spacing: .12em;
}

.video-placeholder span {
  color: var(--text-soft);
  font-size: clamp(.62rem, 1.2vw, .8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.system-copy {
  width: min(760px, 100%);
  margin: clamp(60px, 9vw, 100px) auto 0;
}

.system-copy p {
  margin: 0 0 24px;
  color: #b8c2cf;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
}

.system-copy .closing-line {
  margin: 50px 0 0;
  padding-left: 22px;
  border-left: 1px solid var(--system-color);
  color: var(--system-color);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.4;
}

.system-actions {
  width: min(760px, 100%);
  margin: 64px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.system-detail--stub {
  min-height: calc(100vh - 175px);
}

.system-detail--stub .system-intro {
  margin-bottom: 44px;
}

.system-detail--stub .system-title-lockup h1 {
  font-size: clamp(2.8rem, 7vw, 7rem);
  line-height: .9;
}

.stub-note {
  width: min(540px, 100%);
  margin: 0;
  color: var(--text-soft);
}

.system-detail--stub .system-actions {
  width: min(540px, 100%);
  margin: 56px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #c8d1dd;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.back-link span {
  color: var(--system-color);
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.back-link:hover span,
.back-link:focus-visible span {
  transform: translateX(-4px);
}

@media (max-width: 840px) {
  :root {
    --shell: min(100% - 32px, 700px);
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    background: transparent;
    color: var(--text);
  }

  .nav-toggle > span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
  }

  .main-nav {
    position: absolute;
    inset: 86px 0 auto;
    display: none;
    padding: 26px max(24px, calc((100% - 700px) / 2));
    align-items: flex-start;
    flex-direction: column;
    background: rgba(3, 5, 10, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-secondary {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .hero {
    min-height: 560px;
    height: auto;
    background-position: center, center;
  }

  .hero-layout {
    min-height: 560px;
    padding-top: 88px;
    padding-bottom: 38px;
  }

  .hero-mark {
    position: relative;
    width: auto;
    min-height: 0;
    right: auto;
    top: auto;
    opacity: 1;
  }

  .hero-mark img {
    width: min(70vw, 360px);
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-grid .system-card,
  .system-grid .system-card:nth-child(4),
  .system-grid .system-card:nth-child(5) {
    grid-column: auto;
  }

  .system-grid .system-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, calc((100% - 16px) / 2));
    justify-self: center;
  }

  .system-page .main-nav {
    inset-block-start: 86px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 72px;
  }

  .main-nav {
    inset-block-start: 72px;
  }

  .hero-copy h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.75rem);
  }

  .hero-pillars {
    width: 100%;
    gap: 7px;
    font-size: clamp(0.48rem, 2.5vw, 0.6rem);
    letter-spacing: 0.08em;
  }

  .hero-rule {
    display: none;
  }

  .hero-statement {
    margin-top: 14px;
    font-size: 0.92rem;
  }

  .systems-section {
    padding: 54px 0 110px;
  }

  .system-card {
    min-height: 450px;
  }

  .system-card img,
  .system-card--judgment img,
  .system-card--soren img,
  .system-card--telos img,
  .system-card--cross img {
    width: 106%;
  }

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

  .system-grid .system-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .quiet-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-inner {
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .system-title-lockup {
    gap: 16px;
  }

  .system-icon {
    width: 70px;
  }

  .system-divider {
    height: 64px;
  }

  .system-title-lockup h1 {
    font-size: clamp(2.8rem, 19vw, 4.7rem);
  }

  .video-frame::after {
    width: 35vw;
  }
}

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

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