:root {
  --bg: #000000;
  --surface: #050505;
  --surface-soft: #0b0b0b;
  --text: #f5f5f7;
  --muted: #b6b6b8;
  --quiet: #767676;
  --line: rgba(245, 245, 247, 0.16);
  --line-soft: rgba(245, 245, 247, 0.09);
  --accent: #f5f5f7;
  --blue: #a8c7ff;
  --green: #8df0cf;
  --max: 1220px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.45;
  letter-spacing: 0;
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.52), 0 3px 12px rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 140ms ease, height 140ms ease, background 140ms ease, opacity 140ms ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-hovering {
  width: 14px;
  height: 14px;
  background: #ffffff;
}

.custom-cursor.is-active {
  width: 8px;
  height: 8px;
  background: #ffffff;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 24% 9%, rgba(112, 145, 255, 0.25), transparent 28rem),
    radial-gradient(circle at 76% 24%, rgba(141, 240, 207, 0.16), transparent 36rem),
    linear-gradient(180deg, #030303 0%, #000000 36%, #030303 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.082) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.072) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 58%);
  pointer-events: none;
}

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

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

.site-ribbon {
  position: relative;
  z-index: 30;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: #000000;
  border-bottom: 2px solid var(--line-soft);
  color: rgba(245, 245, 247, 0.78);
}

.site-ribbon p,
.mono-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.62));
  border-bottom: 2px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
}

.brand,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
}

.hero-kicker {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(29, 155, 240, 0.22);
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.13);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #1d9bf0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-logo {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  max-width: min(62vw, 560px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-section-title {
  color: rgba(245, 245, 247, 0.48);
}

.site-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  justify-content: stretch;
  gap: 0;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2)) 30px;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--line-soft);
  color: rgba(245, 245, 247, 0.76);
  font-size: 1.16rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.nav-open .site-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: #ffffff;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.nav-toggle {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  top: calc(50% - 5px);
  left: 50%;
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: top 180ms ease, transform 180ms ease, width 180ms ease;
}

.nav-toggle span + span {
  top: calc(50% + 5px);
  margin-top: 0;
}

body.nav-open .nav-toggle span:first-child {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
  padding: 138px 0 76px;
  background:
    radial-gradient(circle at 22% 8%, rgba(112, 145, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(141, 240, 207, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46%);
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-lead {
  max-width: 920px;
  margin: 0;
  color: rgba(245, 245, 247, 0.74);
  font-size: clamp(1.35rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

.section-pad {
  padding: 124px 0;
}

.mission,
.services,
.development,
.process,
.consulting {
  background: #000000;
}

.mission h2 {
  max-width: 1100px;
  margin: 0 0 78px;
  color: var(--text);
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  font-weight: 500;
  line-height: 1.04;
}

.mission h2 span {
  color: transparent;
  background:
    linear-gradient(90deg, #ffffff, #a8c7ff 34%, #8df0cf 66%, #ffffff),
    var(--text);
  background-clip: text;
}

.statement-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.statement-row > p:last-child,
.statement-row > h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.08;
}

.collaborators {
  overflow: hidden;
  padding: 10px 0 100px;
  background: #000000;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 247, 0.42), transparent);
}

.collaborator-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-top: 44px;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.logo-marquee * {
  user-select: none;
  -webkit-user-select: none;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 42px;
  animation: logo-scroll 54s linear infinite;
}

.logo-slot {
  display: grid;
  width: 240px;
  height: 108px;
  place-items: center;
  border: 1px solid rgba(245, 245, 247, 0.1);
  border-radius: 14px;
  background: rgba(245, 245, 247, 0.035);
}

.logo-image {
  display: block;
  width: auto;
  max-width: 178px;
  max-height: 62px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.12) brightness(1.14);
  opacity: 0.82;
  pointer-events: none;
  -webkit-user-drag: none;
}

.logo-mvp {
  max-width: 126px;
  max-height: 78px;
  opacity: 0.88;
}

.logo-pga {
  max-width: 182px;
  max-height: 46px;
  filter: grayscale(1) contrast(1.2) brightness(1.75);
}

.logo-sirha {
  max-width: 192px;
  max-height: 60px;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.9;
}

.logo-chb {
  max-width: 190px;
  max-height: 48px;
  filter: grayscale(1) contrast(1.08) brightness(1.2);
  opacity: 0.9;
}

.logo-pte {
  max-width: 188px;
  max-height: 54px;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.92;
}

.logo-mvvg {
  max-width: 164px;
  max-height: 70px;
  filter: grayscale(1) contrast(1.12) brightness(1.85);
  opacity: 0.94;
}

.logo-darlington {
  max-width: 188px;
  max-height: 72px;
  filter: grayscale(1) contrast(1.08) brightness(1.08);
  opacity: 0.9;
}

.logo-enerotrade {
  max-width: 202px;
  max-height: 36px;
  filter: grayscale(1) contrast(1.05) brightness(1.08);
  opacity: 0.9;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  max-width: 860px;
  margin-bottom: 58px;
}

.section-heading h2,
.contact h2 {
  margin: 16px 0 0;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.02;
}

.section-heading p:not(.mono-label),
.contact p {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 88% 12%, rgba(168, 199, 255, 0.14), transparent 18rem),
    #050505;
}

.service-card {
  grid-column: span 2;
}

.service-card:nth-child(-n + 2) {
  grid-column: span 3;
}

.service-card.accent {
  background:
    radial-gradient(circle at 30% 0, rgba(141, 240, 207, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012)),
    #050505;
}

.service-card > span,
.service-card-top span {
  display: block;
  margin-bottom: auto;
  color: rgba(245, 245, 247, 0.62);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: auto;
  min-height: 34px;
}

.service-card-top span {
  margin-bottom: 0;
}

.service-reference-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 247, 0.28);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(245, 245, 247, 0.82);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.service-reference-link:hover {
  border-color: rgba(245, 245, 247, 0.58);
  background: rgba(245, 245, 247, 0.06);
  color: #ffffff;
}

.service-card h3 {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.service-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1fr);
  gap: 72px;
  align-items: start;
}

.code-window {
  overflow-x: auto;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line-soft);
  background: #050505;
  color: #f5f5f7;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  line-height: 1.7;
}

.code-window code {
  display: block;
  min-width: 520px;
}

.code-muted {
  color: #8df0cf;
}

.code-keyword {
  color: #a8c7ff;
}

.code-number {
  color: #f8d28a;
}

.code-string {
  color: #ffb0a3;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.timeline article {
  min-height: 260px;
  padding: 26px;
  background: #050505;
}

.timeline span {
  display: block;
  margin-bottom: 70px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.timeline h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 500;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.consulting-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.consulting-list div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 84px;
  padding: 26px;
  background: #050505;
}

.consulting-list span {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
}

.consulting-list p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.contact {
  padding: 132px 0;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 18% 20%, rgba(168, 199, 255, 0.12), transparent 26rem),
    #000000;
}

.contact .container {
  display: grid;
  gap: 28px;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 247, 0.16);
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #f5f5f7;
  color: #000000;
}

.site-footer {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line-soft);
  color: var(--quiet);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.site-footer a,
.footer-action {
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

.footer-action {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 120;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 24px;
  width: min(100%, 980px);
  padding: 22px;
  border: 1px solid rgba(245, 245, 247, 0.18);
  background: rgba(6, 6, 6, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  pointer-events: auto;
}

.cookie-copy h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
}

.cookie-copy p:not(.mono-label) {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cookie-copy a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--text);
  font-weight: 600;
}

.cookie-toggle {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #1d9bf0;
}

.cookie-toggle strong,
.cookie-toggle small {
  display: block;
}

.cookie-toggle strong {
  font-weight: 600;
}

.cookie-toggle small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
  justify-content: flex-end;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.not-found {
  display: grid;
  min-height: calc(100vh - 200px);
  align-items: center;
  padding: 112px 0;
  background:
    radial-gradient(circle at 20% 8%, rgba(112, 145, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 74% 18%, rgba(141, 240, 207, 0.12), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    #000000;
}

.not-found .container {
  display: grid;
  gap: 24px;
}

.not-found-code {
  margin: 0;
  color: transparent;
  background:
    linear-gradient(90deg, #ffffff, #a8c7ff 42%, #8df0cf 74%, #ffffff),
    var(--text);
  background-clip: text;
  font-size: clamp(5.5rem, 18vw, 16rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.82;
}

.not-found h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
  line-height: 0.98;
}

.not-found p:not(.mono-label):not(.not-found-code) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.references-page {
  background: #000000;
}

.references-showcase {
  position: relative;
  min-height: calc(100vh * 8);
  background:
    radial-gradient(circle at 20% 10%, rgba(112, 145, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 78% 24%, rgba(141, 240, 207, 0.14), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    #000000;
}

.references-showcase::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.082) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.072) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
  pointer-events: none;
}

.references-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 116px 24px 72px;
}

.references-heading {
  position: absolute;
  top: 116px;
  left: max(24px, calc((100vw - var(--max)) / 2));
  z-index: 2;
  max-width: 42vw;
  color: rgba(245, 245, 247, 0.72);
}

.references-links {
  position: absolute;
  top: 116px;
  right: max(24px, calc((100vw - var(--max)) / 2));
  z-index: 2;
  display: grid;
  max-width: 42vw;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: right;
}

.references-links a {
  grid-area: 1 / 1;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(245, 245, 247, 0.64);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(4px);
  transition: color 180ms ease, opacity 220ms ease, transform 220ms ease;
}

.references-links a.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.references-links a:hover,
.references-links a:focus-visible {
  color: rgba(245, 245, 247, 0.96);
}

.references-links span {
  color: rgba(245, 245, 247, 0.34);
  font-size: 0.62rem;
}

.references-stage {
  position: relative;
  width: min(86vw, 1200px, calc((100svh - 260px) * 1.333984375));
  max-height: calc(100svh - 260px);
  aspect-ratio: 2732 / 2048;
}

.reference-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 620ms ease, transform 760ms ease;
  will-change: opacity, transform;
}

.reference-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.references-progress {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 42px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.references-progress span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.28);
  transition: width 220ms ease, background 220ms ease;
}

.references-progress span.is-active {
  width: 28px;
  background: rgba(245, 245, 247, 0.86);
}

.legal-hero {
  padding: 88px 0 56px;
  background:
    radial-gradient(circle at 20% 4%, rgba(112, 145, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 80% 14%, rgba(141, 240, 207, 0.1), transparent 30rem),
    #000000;
}

.legal-hero h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.legal-hero p:not(.mono-label) {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.legal-content {
  padding: 0 0 126px;
  background: #000000;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 64px;
  padding: 46px 0;
  border-top: 1px solid var(--line-soft);
}

.legal-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
}

.legal-body {
  max-width: 860px;
  color: var(--muted);
}

.legal-body p,
.legal-body ul {
  margin: 0;
}

.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p,
.legal-body .data-table + p {
  margin-top: 18px;
}

.legal-body li + li {
  margin-top: 10px;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.data-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.data-table div {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: #050505;
}

.data-table dt {
  color: var(--text);
  font-weight: 600;
}

.data-table dd {
  margin: 0;
}

@media (max-width: 980px) {
  .split,
  .statement-row,
  .collaborator-layout,
  .legal-section {
    grid-template-columns: 1fr;
  }

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

  .service-card,
  .service-card:nth-child(-n + 2) {
    grid-column: span 1;
  }

}

@media (max-width: 720px) {
  body.nav-open {
    overflow: hidden;
  }

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

  .site-ribbon {
    justify-content: flex-start;
  }

  .site-ribbon p {
    font-size: 0.68rem;
  }

  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 52px;
  }

  .hero .container {
    gap: 30px;
  }

  h1 {
    font-size: clamp(3.5rem, 20vw, 5.2rem);
  }

  .hero-lead {
    font-size: clamp(1.35rem, 7.5vw, 2.4rem);
  }

  .section-pad {
    padding: 82px 0;
  }

  .mission h2 {
    margin-bottom: 48px;
  }

  .statement-row {
    gap: 24px;
    padding-top: 32px;
  }

  .collaborators {
    padding-bottom: 78px;
  }

  .logo-track {
    gap: 24px;
  }

  .logo-slot {
    width: 188px;
    height: 88px;
  }

  .logo-image {
    max-width: 146px;
    max-height: 52px;
  }

  .logo-mvp {
    max-width: 106px;
    max-height: 64px;
  }

  .logo-pga {
    max-width: 150px;
    max-height: 38px;
  }

  .logo-sirha {
    max-width: 156px;
    max-height: 48px;
  }

  .logo-chb {
    max-width: 154px;
    max-height: 40px;
  }

  .logo-pte {
    max-width: 154px;
    max-height: 44px;
  }

  .logo-mvvg {
    max-width: 134px;
    max-height: 56px;
  }

  .logo-darlington {
    max-width: 154px;
    max-height: 58px;
  }

  .logo-enerotrade {
    max-width: 162px;
    max-height: 30px;
  }

  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

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

  .service-card-top {
    align-items: flex-start;
  }

  .service-reference-link {
    min-height: 30px;
    padding-inline: 12px;
    font-size: 0.62rem;
  }

  .references-showcase {
    min-height: calc(100vh * 8);
  }

  .references-sticky {
    padding: 96px 16px 70px;
  }

  .references-heading {
    top: 88px;
    left: 16px;
    max-width: 42vw;
    font-size: 0.62rem;
  }

  .references-links {
    top: 88px;
    right: 16px;
    gap: 4px;
    max-width: 46vw;
    font-size: 0.54rem;
    letter-spacing: 0.02em;
  }

  .references-links a {
    gap: 6px;
  }

  .references-links span {
    font-size: 0.48rem;
  }

  .references-stage {
    width: min(96vw, 760px, calc((100svh - 210px) * 1.333984375));
    max-height: calc(100svh - 210px);
  }

  .references-progress {
    right: 16px;
    bottom: 28px;
  }

  .code-window code {
    min-width: 500px;
  }

  .timeline article {
    min-height: 220px;
  }

  .timeline span {
    margin-bottom: 42px;
  }

  .button {
    width: 100%;
  }

  .not-found {
    min-height: auto;
    padding: 82px 0;
  }

  .not-found-actions {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .legal-hero {
    padding-top: 82px;
  }

  .legal-section {
    gap: 22px;
    padding: 34px 0;
  }

  .data-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

@media (pointer: coarse) {
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }
}
