:root {
  --orange: #f7682c;
  --orange-dark: #df4d13;
  --orange-on-light: #b83c0f;
  --ink: #090909;
  --ink-soft: #111111;
  --charcoal: #181818;
  --paper: #f3f1ed;
  --white: #ffffff;
  --grey-100: #e8e5df;
  --grey-300: #706c66;
  --grey-500: #68645f;
  --line-light: rgba(10, 10, 10, 0.13);
  --line-dark: rgba(255, 255, 255, 0.13);
  --shell: min(1240px, calc(100vw - 64px));
  --header-height: 82px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--white);
  background: var(--orange);
}

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

.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: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--orange);
  transform: translateY(-150%);
  transition: transform 0.2s;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(9, 9, 9, 0.7);
  backdrop-filter: blur(18px);
  transition:
    height 0.35s var(--ease),
    background 0.35s var(--ease);
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(9, 9, 9, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 164px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav > a {
  position: relative;
  color: #a6a6a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.site-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav > a:hover,
.site-nav > a.is-active {
  color: var(--white);
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .portal-link {
  padding: 12px 17px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}

.site-nav .portal-link::after {
  display: none;
}

.site-nav .portal-link:hover {
  border-color: var(--orange);
  background: var(--orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 72px) 0 86px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 43%, rgba(247, 104, 44, 0.13), transparent 29%),
    linear-gradient(135deg, #080808 0%, #0c0c0c 60%, #16100d 100%);
}

.hero-grid,
.portal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.036) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-grid::after {
  position: absolute;
  top: 0;
  right: 13%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--orange), transparent);
  content: "";
  opacity: 0.45;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-orbit-one {
  top: 16%;
  right: -18vw;
  width: 62vw;
  height: 62vw;
}

.hero-orbit-two {
  top: 33%;
  right: -4vw;
  width: 36vw;
  height: 36vw;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.client-copy h2,
.contact-copy h2,
.portal-context h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-wrap: balance;
}

.hero h1 em,
.section-heading h2 em,
.client-copy h2 em,
.contact-copy h2 em,
.portal-context h1 em {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 680px;
  margin: 35px 0 0;
  color: #969696;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.25s,
    background 0.25s,
    transform 0.25s;
}

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

.button-primary {
  color: var(--white);
  background: #c94b16;
  box-shadow: 0 15px 38px rgba(247, 104, 44, 0.19);
}

.button-primary:hover {
  background: #af3c0d;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--orange);
  transition: transform 0.25s;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.hero-system {
  position: relative;
  min-height: 545px;
  border: 1px solid var(--line-dark);
  background: rgba(10, 10, 10, 0.54);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.system-topline,
.login-panel-head,
.login-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  color: #717171;
  border-bottom: 1px solid var(--line-dark);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9b9b9b;
}

.live-indicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(247, 104, 44, 0.11);
  animation: status-pulse 2.2s infinite;
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 9px rgba(247, 104, 44, 0); }
}

.system-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 370px;
  overflow: hidden;
}

.system-visual::before,
.system-visual::after {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  content: "";
}

.system-visual::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.system-visual::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.globe {
  position: relative;
  z-index: 2;
  width: 236px;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 104, 44, 0.7);
  border-radius: 50%;
  box-shadow:
    inset 0 0 60px rgba(247, 104, 44, 0.08),
    0 0 60px rgba(247, 104, 44, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-8px); }
}

.globe::before,
.globe::after,
.globe-line {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.globe::before {
  inset: -1px 63px;
}

.globe::after {
  inset: 63px -1px;
}

.globe-line-one {
  inset: 25px 4px;
}

.globe-line-two {
  inset: 4px 25px;
}

.globe-line-three {
  inset: 89px -1px;
}

.node {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border: 2px solid #18120f;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
}

.node-one { top: 42px; left: 62px; }
.node-two { top: 82px; right: 11px; }
.node-three { bottom: 35px; left: 72px; }
.node-four { right: 60px; bottom: 70px; }

.pulse-ring {
  position: absolute;
  z-index: 1;
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 104, 44, 0.13);
  border-radius: 50%;
  animation: ring-pulse 3s infinite;
}

@keyframes ring-pulse {
  50% { width: 330px; opacity: 0; }
}

.system-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 120px;
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.system-stats div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-right: 1px solid var(--line-dark);
}

.system-stats div:last-child {
  border-right: 0;
}

.system-stats dt {
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.system-stats dd {
  margin: 2px 0 0;
  color: #676767;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #6a6a6a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.scroll-cue i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--orange);
  content: "";
  animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
  to { top: 100%; }
}

.section {
  padding: clamp(100px, 11vw, 165px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.55fr 0.45fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(58px, 7vw, 96px);
}

.section-heading h2,
.client-copy h2,
.contact-copy h2 {
  font-size: clamp(48px, 6vw, 82px);
}

.section-heading > p {
  max-width: 360px;
  margin: 0 0 7px;
  color: var(--grey-500);
  font-size: 15px;
  line-height: 1.75;
}

.section-heading.light {
  color: var(--white);
}

.section-heading.light > p {
  color: #737373;
}

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

.services-section .eyebrow,
.services-section .section-heading h2 em,
.team-section .eyebrow,
.team-section .section-heading h2 em,
.team-section .card-kicker {
  color: var(--orange-on-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.service-card {
  position: relative;
  min-height: 535px;
  padding: 42px 38px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition:
    color 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.service-card:hover {
  z-index: 2;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-8px);
}

.card-number {
  color: var(--grey-300);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.service-icon {
  width: 66px;
  margin: 60px 0 42px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.service-card h3 {
  max-width: 260px;
  margin: 0 0 22px;
  font-size: 27px;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.service-card p {
  margin: 0;
  color: var(--grey-500);
  font-size: 13px;
  line-height: 1.8;
  transition: color 0.4s;
}

.service-card:hover p {
  color: #8f8f8f;
}

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

.technology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.technology-card {
  position: relative;
  overflow: hidden;
  background: #101010;
}

.technology-card::after {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  content: "";
  pointer-events: none;
  transition: border-color 0.35s;
}

.technology-card:hover::after {
  border-color: var(--orange);
}

.technology-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(0.78) contrast(1.08);
  opacity: 0.72;
  transition:
    filter 0.45s var(--ease),
    opacity 0.45s var(--ease),
    transform 0.65s var(--ease);
}

.technology-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.035);
}

.technology-card > div {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85px;
  padding: 0 24px;
  background: #101010;
}

.technology-card span {
  color: #8a8a8a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.technology-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.team-section {
  background: #eae7e1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: var(--paper);
}

.team-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.team-image {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--ink);
}

.team-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.74));
  content: "";
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.72) contrast(1.04);
  transition:
    filter 0.55s var(--ease),
    transform 0.75s var(--ease);
}

.team-card:hover .team-image img {
  filter: grayscale(0);
  transform: scale(1.035);
}

.team-image span {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 58px);
}

.card-kicker {
  margin: 0 0 28px;
  color: var(--orange);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-copy h3 {
  margin: 0 0 25px;
  font-size: clamp(25px, 3vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.team-copy > p:not(.card-kicker) {
  margin: 0;
  color: var(--grey-500);
  font-size: 13px;
  line-height: 1.8;
}

.hiring-card {
  color: var(--white);
  border-color: var(--orange);
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 255, 255, 0.14), transparent 38%),
    var(--orange);
}

.hiring-card .card-kicker,
.hiring-card .team-copy > p:not(.card-kicker),
.hiring-card .text-link span {
  color: rgba(255, 255, 255, 0.74);
}

.hiring-card .text-link {
  margin-top: 28px;
}

.client-section {
  position: relative;
  padding: clamp(110px, 13vw, 190px) 0;
  overflow: hidden;
  color: var(--white);
  background: #101010;
}

.network-lines {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(circle at 72% 52%, rgba(247, 104, 44, 0.24), transparent 24%),
    repeating-radial-gradient(circle at 72% 52%, transparent 0 58px, rgba(255, 255, 255, 0.055) 59px 60px);
}

.network-lines::before,
.network-lines::after {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 25px var(--orange);
  content: "";
}

.network-lines::before {
  top: 28%;
  right: 20%;
  width: 8px;
  height: 8px;
}

.network-lines::after {
  right: 31%;
  bottom: 27%;
  width: 6px;
  height: 6px;
}

.client-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
  align-items: center;
}

.client-copy > p:last-child {
  max-width: 380px;
  margin: 32px 0 0;
  color: #7d7d7d;
}

.client-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  background: rgba(9, 9, 9, 0.4);
}

.client-stats div {
  min-height: 178px;
  padding: 36px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.client-stats dt {
  color: var(--orange);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.client-stats dd {
  margin: 15px 0 0;
  color: #727272;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 50%, rgba(247, 104, 44, 0.12), transparent 27%),
    var(--ink);
  border-top: 1px solid var(--line-dark);
}

.contact-layout {
  display: block;
}

.contact-copy {
  max-width: 850px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 38px 0;
  color: #747474;
  font-size: 15px;
  line-height: 1.9;
}

.contact-email {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 28px;
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.contact-email span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-form > label,
.recovery-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #808080;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-form input,
.recovery-form input {
  width: 100%;
  padding: 15px 0;
  color: var(--white);
  border: 0;
  border-bottom: 1px solid #303030;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.25s;
}

.login-form input:focus,
.recovery-form input:focus {
  border-color: var(--orange);
}

.site-footer {
  color: #898989;
  border-top: 1px solid var(--line-dark);
  background: #060606;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
  min-height: 120px;
}

.footer-inner p,
.footer-inner a {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner a {
  color: #9a9a9a;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.service-card:nth-child(2),
.technology-card:nth-child(2n),
.team-card:nth-child(2) {
  transition-delay: 0.08s;
}

.service-card:nth-child(3),
.technology-card:nth-child(3n),
.team-card:nth-child(3) {
  transition-delay: 0.16s;
}

.technology-card:nth-child(4n),
.team-card:nth-child(4) {
  transition-delay: 0.24s;
}

/* Client portal */
.portal-page {
  min-height: 100svh;
  color: var(--white);
  background: #080808;
}

.portal-header {
  background: rgba(8, 8, 8, 0.86);
}

.portal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8e8e8e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.portal-back span {
  color: var(--orange);
}

.portal-back:hover {
  color: var(--white);
}

.portal-main {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  padding: calc(var(--header-height) + 62px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 40%, rgba(247, 104, 44, 0.12), transparent 27%),
    #090909;
}

.portal-glow {
  position: absolute;
  top: 16%;
  right: -13vw;
  width: 50vw;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 104, 44, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 85px rgba(255, 255, 255, 0.012),
    0 0 0 170px rgba(255, 255, 255, 0.009);
}

.portal-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.65fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  width: var(--shell);
  margin: auto;
}

.portal-context h1 {
  font-size: clamp(68px, 8vw, 116px);
}

.portal-context > p:not(.eyebrow) {
  max-width: 490px;
  margin: 38px 0;
  color: #7f7f7f;
  font-size: 17px;
}

.portal-security {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 420px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.portal-security svg {
  flex: 0 0 36px;
  width: 36px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
}

.portal-security div {
  display: flex;
  flex-direction: column;
}

.portal-security strong {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.portal-security span {
  margin-top: 3px;
  color: #626262;
  font-size: 12px;
}

.login-panel {
  border: 1px solid var(--line-dark);
  background: rgba(14, 14, 14, 0.86);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(15px);
}

.login-panel-body {
  padding: clamp(38px, 5vw, 62px);
}

.login-kicker {
  margin: 0 0 13px;
  color: var(--orange);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-panel h2 {
  margin: 0;
  font-size: 42px;
  letter-spacing: -0.055em;
  line-height: 1;
}

.login-intro {
  margin: 14px 0 37px;
  color: #717171;
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-panel-head,
.login-panel-foot {
  font-size: 12px;
}

.login-form > label,
.recovery-form label {
  font-size: 12px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 55px;
}

.password-field button {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: grid;
  min-width: 48px;
  min-height: 32px;
  padding: 0 6px;
  place-items: center;
  color: #737373;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.login-options {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

.checkbox-label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #707070;
  font-size: 12px;
  cursor: pointer;
}

.checkbox-label input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--orange);
}

.link-button {
  padding: 0;
  color: #929292;
  border: 0;
  background: none;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.25s;
}

.link-button:hover {
  color: var(--orange);
}

.login-status {
  min-height: 19px;
  margin: -6px 0;
  color: #d87b58;
  font-size: 12px;
  line-height: 1.5;
}

.login-button {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.login-button i {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.login-button.is-loading span {
  visibility: hidden;
}

.login-button.is-loading i {
  position: absolute;
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-help {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 28px;
  color: #5f5f5f;
  font-size: 12px;
}

.login-help .link-button {
  color: #a2a2a2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-panel-foot {
  min-height: 44px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 0;
}

.portal-footer {
  color: #898989;
  border-top: 1px solid var(--line-dark);
  background: #060606;
}

.portal-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-footer a {
  color: #929292;
}

.error-shell {
  grid-template-columns: 1fr 0.7fr;
}

.error-code {
  color: transparent;
  font-size: clamp(160px, 23vw, 340px);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(247, 104, 44, 0.36);
}

.recovery-dialog {
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  color: var(--white);
  border: 1px solid #333;
  background: #101010;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.recovery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.recovery-form {
  position: relative;
  padding: 48px;
}

.recovery-form h2 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.recovery-form > p:not(.eyebrow, .recovery-status) {
  margin: 0 0 28px;
  color: #777;
  font-size: 13px;
}

.recovery-form .button {
  width: 100%;
  margin-top: 24px;
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 20px;
  padding: 0;
  color: #757575;
  border: 0;
  background: none;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.recovery-status {
  min-height: 19px;
  margin: 17px 0 0;
  color: #b7b7b7;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 19px;
  }

  .hero-layout {
    grid-template-columns: 1fr 380px;
    gap: 55px;
  }

  .hero-system {
    min-height: 490px;
  }

  .system-visual {
    min-height: 315px;
  }

  .globe {
    width: 200px;
  }

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

  .team-card-large {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 40px, 720px);
    --header-height: 72px;
  }

  .brand img {
    width: 144px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100svh - var(--header-height));
    padding: 30px 20px;
    visibility: hidden;
    background: #090909;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.25s,
      transform 0.25s,
      visibility 0.25s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav > a {
    padding: 18px 8px;
    border-bottom: 1px solid var(--line-dark);
    font-size: 15px;
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav .portal-link {
    justify-content: space-between;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--orange);
    background: var(--orange);
  }

  .hero {
    padding-top: calc(var(--header-height) + 75px);
  }

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

  .hero-copy {
    max-width: 720px;
  }

  .hero-system {
    min-height: 480px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-icon {
    margin: 45px 0 32px;
  }

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

  .team-card-large {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .client-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .portal-shell {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 45px;
  }

  .portal-context {
    max-width: 650px;
  }

  .error-code {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .hero {
    min-height: auto;
    padding-bottom: 120px;
  }

  .hero h1,
  .portal-context h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-system {
    min-height: 0;
  }

  .system-visual {
    min-height: 300px;
  }

  .system-stats {
    min-height: 100px;
  }

  .system-stats div {
    padding: 14px;
  }

  .system-stats dt {
    font-size: 20px;
  }

  .scroll-cue {
    bottom: 22px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading h2,
  .client-copy h2,
  .contact-copy h2 {
    font-size: clamp(43px, 13vw, 61px);
  }

  .service-card {
    padding: 34px 28px 39px;
  }

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

  .team-copy {
    padding: 36px 28px;
  }

  .client-stats {
    grid-template-columns: 1fr 1fr;
  }

  .client-stats div {
    min-height: 135px;
    padding: 26px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    padding: 40px 0;
  }

  .footer-inner p:first-of-type {
    display: none;
  }

  .portal-back {
    font-size: 12px;
  }

  .portal-main {
    padding-bottom: 70px;
  }

  .portal-shell {
    padding-top: 20px;
  }

  .portal-context > p:not(.eyebrow) {
    font-size: 14px;
  }

  .login-panel-body {
    padding: 35px 26px;
  }

  .login-options,
  .login-help {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-footer .shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .recovery-form {
    padding: 45px 26px 30px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
