:root {
  --blue: #0014e0;
  --red: #f62c08;
  --paper: #f2f3f4;
  --ink: #0c090d;
  --white: #ffffff;
  --line: rgba(12, 9, 13, .14);
  --soft-blue: rgba(0, 20, 224, .10);
  --soft-red: rgba(246, 44, 8, .12);
  --shadow: 12px 12px 0 var(--ink);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 18%, rgba(246, 44, 8, .2), transparent 24rem),
    radial-gradient(circle at 90% 10%, rgba(0, 20, 224, .18), transparent 24rem),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  transition: background .6s ease;
}

body.theme-systems::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 20, 224, .26), transparent 24rem),
    radial-gradient(circle at 90% 18%, rgba(12, 9, 13, .12), transparent 22rem),
    linear-gradient(180deg, #f8f9ff 0%, var(--paper) 100%);
}

body.theme-design::before {
  background:
    radial-gradient(circle at 8% 18%, rgba(246, 44, 8, .28), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(0, 20, 224, .1), transparent 20rem),
    linear-gradient(180deg, #fff7f3 0%, var(--paper) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(16px, 3vw, 42px);
  background: rgba(242, 243, 244, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  position: relative;
  display: block;
  width: min(45vw, 300px);
  min-width: 190px;
}

.logo { width: 100%; transition: opacity .35s ease, transform .35s ease; }
.logo-red { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); }

body.theme-design .logo-blue { opacity: 0; transform: translateY(-8px); }
body.theme-design .logo-red { opacity: 1; transform: translateY(0); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 13px;
}

.nav-links a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .7);
}

.nav-cta {
  background: var(--ink);
  color: var(--white);
}

main { overflow: hidden; }

.intro-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 132px clamp(18px, 5vw, 70px) 76px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 22%, rgba(246, 44, 8, .34), transparent 24rem),
    radial-gradient(circle at 78% 18%, rgba(0, 20, 224, .30), transparent 25rem),
    linear-gradient(135deg, rgba(255,255,255,.94) 0 34%, rgba(242,243,244,.84) 34% 62%, rgba(255,255,255,.96) 62% 100%);
}

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

.intro-hero::before {
  inset: auto -8vw -20vh auto;
  width: min(58vw, 620px);
  aspect-ratio: 1;
  border: clamp(18px, 4vw, 48px) solid var(--blue);
  border-radius: 50%;
  opacity: .12;
  transform: rotate(-14deg);
}

.intro-hero::after {
  inset: 16vh auto auto -12vw;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  background: var(--red);
  opacity: .10;
  transform: rotate(18deg);
  clip-path: polygon(0 0, 100% 12%, 82% 100%, 8% 82%);
}

.hero-center {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
}

.split-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.eyebrow span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 18px 0 0 var(--blue);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: .78;
  letter-spacing: -.075em;
  font-weight: 1000;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 1000;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: .94;
  letter-spacing: -.045em;
}

p {
  color: rgba(12, 9, 13, .72);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 680;
}

.hero-center p {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--white);
  font-weight: 1000;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.button-red { background: var(--red); box-shadow: 7px 7px 0 var(--ink); }
.button-blue { background: var(--blue); box-shadow: 7px 7px 0 var(--ink); }
.button-ink { background: var(--ink); box-shadow: 7px 7px 0 var(--red); }

.universe-panel {
  position: relative;
  display: flex;
  min-height: 86vh;
  flex-direction: column;
  justify-content: flex-end;
  padding: min(16vh, 160px) clamp(18px, 4vw, 60px) clamp(42px, 8vw, 100px);
  overflow: hidden;
  border-right: 2px solid var(--ink);
  transition: flex .5s ease, background .5s ease, color .5s ease;
}

.universe-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .28;
  transition: transform .6s ease, opacity .6s ease;
}

.panel-design {
  background: var(--red);
  color: var(--white);
}

.panel-design::before {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.38) 0 2px, transparent 2px 16px);
}

.panel-systems {
  background: var(--blue);
  color: var(--white);
  border-right: 0;
}

.panel-systems::before {
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255,255,255,.28) 47% 53%, transparent 53%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.24) 0 1px, transparent 1px 32px);
}

.universe-panel:hover::before {
  transform: rotate(-8deg) scale(1.06);
  opacity: .4;
}

.panel-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 1000;
}

.universe-panel h2,
.universe-panel p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: inherit;
}

.universe-panel p { opacity: .82; }

.transition-band {
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee span {
  padding: 16px 22px;
  font-size: clamp(22px, 3vw, 48px);
  font-weight: 1000;
  letter-spacing: -.05em;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.universe-section {
  min-height: 100vh;
  padding: clamp(82px, 12vw, 150px) clamp(18px, 5vw, 70px);
}

.section-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.section-kicker {
  width: fit-content;
  margin-bottom: 20px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.design-section {
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(246, 44, 8, .08) 47% 53%, transparent 53%),
    var(--paper);
}

.systems-section {
  background:
    linear-gradient(0deg, transparent 0 48%, rgba(0, 20, 224, .08) 48% 52%, transparent 52%),
    #f8f9ff;
}

.universe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.universe-grid.flipped {
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.05fr);
}

.lead {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(20px, 2.2vw, 28px);
}

.orbit-card {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--ink);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orbit-card img {
  width: min(72%, 330px);
  opacity: .95;
  animation: floatMark 7s ease-in-out infinite;
}

.orbit-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: inherit;
  font-size: 28px;
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 1000;
}

.red-card {
  background: var(--red);
  color: var(--white);
}

.blue-card {
  background: var(--blue);
  color: var(--white);
}

@keyframes floatMark {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(20px, -18px) rotate(3deg); }
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(34px, 6vw, 72px);
}

.service-strip article {
  min-height: 270px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 24px;
  box-shadow: 7px 7px 0 rgba(12, 9, 13, .1);
}

.service-strip span {
  display: inline-flex;
  margin-bottom: 42px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 1000;
}

.systems-strip span { color: var(--blue); }

.wipe-zone {
  min-height: 86vh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 10vw, 140px) 18px;
  background: var(--ink);
  color: var(--white);
}

.bridge-card {
  width: min(980px, 100%);
  border: 2px solid var(--white);
  background:
    linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50% 100%);
  padding: clamp(26px, 5vw, 56px);
  box-shadow: 14px 14px 0 rgba(255,255,255,.18);
}

.bridge-card span {
  display: inline-flex;
  margin-bottom: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.bridge-card h2,
.bridge-card p {
  max-width: 880px;
  color: var(--white);
}

.final-cta {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 10vw, 140px) 18px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(246, 44, 8, .22), transparent 22rem),
    radial-gradient(circle at 76% 20%, rgba(0, 20, 224, .22), transparent 22rem),
    var(--paper);
}

.final-cta > div {
  width: min(980px, 100%);
}

.final-cta p {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(19px, 2vw, 24px);
}

.portfolio-hero {
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: 132px clamp(18px, 5vw, 70px) 76px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 24%, rgba(246, 44, 8, .52), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(0, 20, 224, .58), transparent 25rem),
    linear-gradient(135deg, #0c090d 0%, #160d22 48%, #070819 100%);
}

.portfolio-hero > div {
  width: min(1060px, 100%);
}

.portfolio-hero p {
  max-width: 760px;
  margin-inline: auto;
  color: rgba(255,255,255,.76);
  font-size: clamp(19px, 2vw, 24px);
}

.portfolio-intro {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 70px);
  background: var(--ink);
  color: var(--white);
}

.portfolio-statement {
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 2px solid var(--white);
  background:
    linear-gradient(135deg, rgba(246, 44, 8, .92) 0 48%, rgba(0, 20, 224, .92) 48% 100%);
  padding: clamp(26px, 5vw, 58px);
  box-shadow: 14px 14px 0 rgba(255,255,255,.18);
}

.portfolio-statement span {
  display: inline-flex;
  margin-bottom: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.portfolio-statement h2 {
  max-width: 980px;
  color: var(--white);
}

.portfolio-section {
  padding: clamp(84px, 12vw, 150px) clamp(18px, 5vw, 70px);
  color: var(--white);
  background:
    radial-gradient(circle at 16% 10%, rgba(246, 44, 8, .26), transparent 22rem),
    radial-gradient(circle at 86% 18%, rgba(0, 20, 224, .26), transparent 24rem),
    var(--ink);
}

.systems-portfolio {
  background:
    radial-gradient(circle at 86% 10%, rgba(0, 20, 224, .18), transparent 24rem),
    var(--ink);
}

.portfolio-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.portfolio-heading h2 {
  color: var(--white);
}

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

.portfolio-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--ink);
  padding: 24px;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, .14);
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .16;
  background: repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 18px);
  transform: rotate(-8deg);
}

.portfolio-card span,
.portfolio-card h3,
.portfolio-card small,
.portfolio-card p {
  position: relative;
  z-index: 1;
}

.portfolio-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 42px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 1000;
}

.portfolio-card small {
  display: block;
  margin-bottom: 18px;
  font-weight: 1000;
  text-transform: uppercase;
  opacity: .72;
}

.portfolio-card p {
  margin: 0;
  color: inherit;
}

.portfolio-red {
  background: var(--red);
  color: var(--white);
}

.portfolio-blue {
  background: var(--blue);
  color: var(--white);
}

.portfolio-split {
  background:
    linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50% 100%);
  color: var(--white);
}

.footer {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(16px, 4vw, 54px);
  border-top: 2px solid var(--ink);
  background: var(--white);
  font-weight: 850;
}

.footer-logo { width: 100%; }
.footer p { margin: 0; font-size: 15px; }
.footer a { color: var(--blue); }

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

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

.form-hero {
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding: 130px clamp(18px, 5vw, 70px) 62px;
}

.form-hero > div,
.form-section {
  width: min(1120px, 100%);
}

.form-note {
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  padding: 26px;
  box-shadow: 10px 10px 0 var(--red);
}

.form-note strong {
  display: block;
  color: var(--white);
  font-size: 96px;
  line-height: .8;
  letter-spacing: -.08em;
}

.form-note p {
  margin: 20px 0 0;
  color: rgba(255,255,255,.78);
}

.form-section {
  margin: 0 auto;
  padding: 40px 18px 110px;
}

.message {
  margin-bottom: 24px;
  border: 2px solid var(--ink);
  padding: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}

.message h2 { font-size: clamp(38px, 5vw, 72px); }
.message.success { background: var(--blue); color: var(--white); }
.message.error { background: var(--red); color: var(--white); }
.message p { color: inherit; }

.discovery-form {
  display: grid;
  gap: 18px;
}

fieldset {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 24px;
  box-shadow: 7px 7px 0 rgba(12, 9, 13, .1);
}

legend {
  padding: 0 10px;
  background: var(--red);
  color: var(--white);
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.15;
}

label.full { grid-column: 1 / -1; }
label span {
  color: rgba(12, 9, 13, .65);
  font-size: 13px;
  font-weight: 780;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  font-weight: 720;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 20, 224, .18);
}

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

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 10px;
  font-weight: 850;
}

.check input {
  width: auto;
  accent-color: var(--blue);
}

@media (max-width: 960px) {
  .split-hero,
  .universe-grid,
  .universe-grid.flipped,
  .service-strip,
  .portfolio-grid,
  .form-hero {
    grid-template-columns: 1fr;
  }

  .split-hero {
    min-height: auto;
  }

  .hero-center {
    width: min(100%, 860px);
  }

  .universe-panel {
    min-height: 70vh;
  }

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

  .footer-logo {
    max-width: 280px;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
  }

  .brand-lockup {
    min-width: 160px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: clamp(48px, 16vw, 76px);
    line-height: .84;
  }

  h2 {
    font-size: clamp(42px, 14vw, 68px);
  }

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

  .button {
    width: 100%;
  }

  .universe-panel {
    min-height: 62vh;
    padding-inline: 18px;
  }

  .orbit-card {
    min-height: 360px;
  }

  .field-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  fieldset {
    padding: 18px;
  }
}

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