:root {
  --bg: #08100f;
  --bg-deep: #040807;
  --surface: rgba(10, 20, 18, 0.76);
  --surface-strong: rgba(18, 31, 29, 0.92);
  --line: rgba(236, 226, 201, 0.13);
  --line-strong: rgba(236, 226, 201, 0.24);
  --text: #f2ecdd;
  --muted: #b9b29f;
  --accent: #d57a33;
  --accent-soft: #f2bc74;
  --sage: #8da98f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --header-height: 5.25rem;
  --hero-shift: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(213, 122, 51, 0.14), transparent 28%),
    radial-gradient(circle at 16% 18%, rgba(141, 169, 143, 0.14), transparent 26%),
    linear-gradient(180deg, #0d1715 0%, var(--bg) 40%, var(--bg-deep) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(circle at center, black 34%, transparent 88%);
  opacity: 0.32;
  pointer-events: none;
}

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

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

main {
  overflow: clip;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem clamp(1.2rem, 2vw, 2rem);
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6, 11, 10, 0.9), rgba(6, 11, 10, 0.22));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand,
.hero h1,
.section-heading h2,
.insight-quote p,
.platform-step h3,
.contact-panel h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.brand {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: rgba(242, 236, 221, 0.82);
  font-size: 0.96rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
}

.header-cta,
.button-primary {
  color: #1c1309;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 16px 36px rgba(213, 122, 51, 0.22);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.hero,
.insight,
.platform,
.industries,
.contact {
  padding-left: clamp(1.2rem, 5vw, 4.25rem);
  padding-right: clamp(1.2rem, 5vw, 4.25rem);
}

.hero {
  min-height: calc(100svh - var(--header-height) - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(24rem, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2.5rem;
}

.hero-copy {
  max-width: 40rem;
}

.eyebrow,
.section-label,
.platform-caption-label {
  margin: 0 0 1.1rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3.3rem, 8vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(242, 236, 221, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-signals {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(242, 236, 221, 0.74);
  line-height: 1.5;
}

.hero-signals span::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--sage));
  box-shadow: 0 0 0 6px rgba(213, 122, 51, 0.08);
}

.hero-visual {
  position: relative;
  min-height: clamp(30rem, 70vh, 44rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.7;
}

.hero-glow-1 {
  width: 18rem;
  height: 18rem;
  background: rgba(213, 122, 51, 0.18);
  top: 5%;
  right: 10%;
}

.hero-glow-2 {
  width: 16rem;
  height: 16rem;
  background: rgba(141, 169, 143, 0.14);
  left: 4%;
  bottom: 10%;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(242, 236, 221, 0.12);
  border-radius: 50%;
  transform-origin: center;
  animation: spin 18s linear infinite;
}

.hero-orbit-1 {
  width: min(40vw, 29rem);
  height: min(40vw, 29rem);
}

.hero-orbit-2 {
  width: min(50vw, 36rem);
  height: min(26vw, 19rem);
  animation-duration: 26s;
  animation-direction: reverse;
}

.hero-plate {
  position: relative;
  width: min(100%, 46rem);
  border: 1px solid rgba(242, 236, 221, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(6, 11, 10, 0.56);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(calc(var(--hero-shift) * -0.25)) rotate(-6deg);
}

.hero-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
  transform: translateX(-100%);
  animation: sweep 7.5s ease-in-out infinite;
}

.hero-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  max-width: 17rem;
  padding: 1rem 1.2rem;
  color: rgba(242, 236, 221, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(7, 11, 10, 0.68), transparent);
}

.insight,
.platform,
.industries,
.contact {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.section-heading {
  max-width: 56rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 3rem;
  align-items: start;
}

.insight-quote p {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: rgba(242, 236, 221, 0.94);
}

.insight-points {
  display: grid;
  gap: 1.35rem;
}

.insight-point,
.industry-row,
.platform-step,
.contact-panel {
  border-top: 1px solid var(--line);
}

.insight-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.6rem;
  padding-top: 1.2rem;
}

.insight-point span,
.step-index {
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.insight-point h3,
.industry-name {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.insight-point p,
.industry-copy,
.platform-step p:not(.step-index),
.platform-caption p,
.contact-copy {
  margin: 0;
  color: rgba(242, 236, 221, 0.74);
  font-size: 1rem;
  line-height: 1.75;
}

.insight-point h3 + p {
  margin-top: 0.6rem;
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(19rem, 0.92fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3rem;
}

.platform-visual {
  position: sticky;
  top: calc(var(--header-height) + 1.4rem);
  min-height: 34rem;
  align-self: start;
}

.context-stack {
  position: relative;
  min-height: 27rem;
  perspective: 1400px;
}

.context-layer {
  position: absolute;
  left: 0;
  right: 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(242, 236, 221, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(9, 17, 15, 0.7);
  box-shadow: var(--shadow);
  transition:
    transform 400ms ease,
    opacity 300ms ease,
    border-color 300ms ease;
}

.context-layer span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.context-layer p {
  margin: 0;
  max-width: 18rem;
  color: rgba(242, 236, 221, 0.75);
  line-height: 1.6;
}

.layer-geometry {
  top: 2.25rem;
  transform: translateY(0) rotateX(57deg) rotateZ(-12deg);
}

.layer-relationships {
  top: 6.9rem;
  transform: translateX(1.1rem) rotateX(57deg) rotateZ(-12deg);
}

.layer-intent {
  top: 11.55rem;
  transform: translateX(2.2rem) rotateX(57deg) rotateZ(-12deg);
}

.layer-decisions {
  top: 16.2rem;
  transform: translateX(3.3rem) rotateX(57deg) rotateZ(-12deg);
}

.platform-visual[data-active-step="geometry"] .layer-geometry,
.platform-visual[data-active-step="relationships"] .layer-relationships,
.platform-visual[data-active-step="intent"] .layer-intent,
.platform-visual[data-active-step="decisions"] .layer-decisions {
  opacity: 1;
  border-color: rgba(213, 122, 51, 0.55);
  transform: translateX(0) rotateX(57deg) rotateZ(-12deg) translateZ(48px);
}

.platform-visual[data-active-step="geometry"] .layer-relationships,
.platform-visual[data-active-step="geometry"] .layer-intent,
.platform-visual[data-active-step="geometry"] .layer-decisions,
.platform-visual[data-active-step="relationships"] .layer-geometry,
.platform-visual[data-active-step="relationships"] .layer-intent,
.platform-visual[data-active-step="relationships"] .layer-decisions,
.platform-visual[data-active-step="intent"] .layer-geometry,
.platform-visual[data-active-step="intent"] .layer-relationships,
.platform-visual[data-active-step="intent"] .layer-decisions,
.platform-visual[data-active-step="decisions"] .layer-geometry,
.platform-visual[data-active-step="decisions"] .layer-relationships,
.platform-visual[data-active-step="decisions"] .layer-intent {
  opacity: 0.46;
}

.platform-caption {
  max-width: 25rem;
  padding-top: 1rem;
}

.platform-steps {
  display: grid;
  gap: 1.7rem;
}

.platform-step {
  min-height: 16rem;
  padding-top: 1.2rem;
  transition: transform 220ms ease;
}

.platform-step.is-active {
  transform: translateX(0.55rem);
}

.platform-step h3 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.platform-step h3 + p {
  max-width: 32rem;
  margin-top: 0.8rem;
}

.industry-list {
  margin-top: 3rem;
}

.industry-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
  transition:
    background-color 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.industry-row:hover,
.industry-row:focus-within {
  transform: translateX(0.5rem);
  border-color: rgba(213, 122, 51, 0.46);
  background: linear-gradient(90deg, rgba(213, 122, 51, 0.08), transparent 42%);
}

.contact {
  padding-bottom: 5.5rem;
}

.contact-panel {
  max-width: 56rem;
  padding-top: 1.45rem;
}

.contact-panel h2 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.contact-copy {
  max-width: 38rem;
  margin-top: 1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js-motion [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes sweep {
  0%,
  15% {
    transform: translateX(-110%);
  }

  50%,
  100% {
    transform: translateX(110%);
  }
}

@media (max-width: 1080px) {
  .hero,
  .insight-layout,
  .platform-layout,
  .industry-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2.5rem);
  }

  .hero h1,
  .contact-panel h2 {
    max-width: none;
  }

  .hero-copy,
  .section-heading,
  .contact-panel {
    max-width: none;
  }

  .platform-visual {
    position: relative;
    top: auto;
  }
}

@media (max-width: 840px) {
  .site-header {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .site-nav {
    display: none;
  }

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

  .button,
  .header-cta {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 7rem;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    text-align: center;
  }

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

  .hero-visual {
    min-height: 24rem;
  }

  .hero-caption {
    position: static;
    margin-top: 1rem;
    padding-left: 0;
    border-left: 0;
    background: none;
  }

  .context-stack {
    min-height: 24rem;
  }

  .context-layer {
    padding: 1rem;
  }

  .layer-geometry {
    top: 1.1rem;
  }

  .layer-relationships {
    top: 5rem;
  }

  .layer-intent {
    top: 8.9rem;
  }

  .layer-decisions {
    top: 12.8rem;
  }
}

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

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