:root {
  --espresso: #26150b;
  --brown: #403022;
  --warm-brown: #735840;
  --taupe: #a68d77;
  --neutral: #dbddd8;
  --paper: #f8f6f1;
  --white: #ffffff;
  --purple: #7c3aed;
  --deep-purple: #2e1065;
  --ink-soft: rgba(38, 21, 11, 0.72);
  --light-soft: rgba(248, 246, 241, 0.78);
  --line-dark: rgba(64, 48, 34, 0.16);
  --line-light: rgba(219, 221, 216, 0.18);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 21, 11, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 21, 11, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(22px, 3.5vw, 46px);
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(248, 246, 241, 0.88);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.brand {
  width: clamp(190px, 18vw, 244px);
  height: auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(64, 48, 34, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.footer-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--purple);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nav-cta {
  padding: 0 22px;
  color: var(--espresso);
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
}

.button {
  padding: 0 26px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--espresso);
  background: var(--taupe);
  border: 1px solid var(--taupe);
}

.button-secondary {
  color: var(--paper);
  border: 1px solid rgba(166, 141, 119, 0.66);
}

.section-dark,
.section-light,
.section-muted {
  padding: clamp(72px, 9vw, 122px) clamp(20px, 4vw, 56px);
}

.section-dark {
  background: var(--espresso);
  color: var(--paper);
}

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

.section-muted {
  background: var(--neutral);
}

.hero {
  min-height: calc(100vh - 91px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.hero-copy,
.intro-content,
.section-heading,
.approach-grid,
.capability-list,
.difference,
.outcomes,
.closing-inner,
.site-footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.hero-copy {
  justify-self: end;
  margin: 0;
  max-width: 760px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--taupe);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(46px, 7vw, 86px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.8vw, 58px);
}

h3 {
  color: inherit;
  font-size: 22px;
  line-height: 1.22;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--light-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  justify-self: start;
  width: min(100%, 560px);
}

.visual-stage {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(145deg, rgba(219, 221, 216, 0.14), rgba(166, 141, 119, 0.05)),
    var(--brown);
  overflow: hidden;
}

.visual-stage::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(219, 221, 216, 0.18);
}

.visual-stage::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 16%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  transform: rotate(18deg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 34px;
  opacity: 0;
  transform: translateX(18px);
  animation: heroSlide 18s infinite;
}

.slide-brand {
  animation-delay: 0s;
}

.slide-production {
  animation-delay: 6s;
}

.slide-outcome {
  animation-delay: 12s;
}

.slide-brand img {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(76%, 400px);
  transform: translate(-50%, -50%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.signal {
  position: absolute;
  display: grid;
  gap: 8px;
  width: 218px;
  padding: 18px;
  color: var(--paper);
  border: 1px solid rgba(219, 221, 216, 0.22);
  background: rgba(38, 21, 11, 0.72);
  backdrop-filter: blur(12px);
}

.signal span {
  color: var(--taupe);
  font-size: 12px;
  font-weight: 700;
}

.signal strong {
  font-size: 15px;
}

.signal-one {
  top: 52px;
  left: 34px;
}

.signal-two {
  right: 34px;
  bottom: 120px;
}

.signal-three {
  left: 56px;
  bottom: 48px;
}

.code-window {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 116px;
  min-height: 316px;
  color: #f8f6f1;
  border: 1px solid rgba(219, 221, 216, 0.2);
  background: rgba(38, 21, 11, 0.78);
}

.code-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(219, 221, 216, 0.14);
}

.code-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--taupe);
}

.code-window pre {
  margin: 0;
  padding: 28px 24px;
  overflow: hidden;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 15px;
  line-height: 2;
}

.code-window code {
  display: grid;
  gap: 2px;
}

.code-muted {
  color: rgba(248, 246, 241, 0.42);
}

.typing {
  display: block;
  width: 0;
  max-width: max-content;
  overflow: hidden;
  color: #dbddd8;
  border-right: 2px solid var(--taupe);
  white-space: nowrap;
}

.typing-one {
  animation: typingLineOne 18s steps(38, end) infinite, caret 900ms steps(1, end) infinite;
}

.typing-two {
  animation: typingLineTwo 18s steps(39, end) infinite, caret 900ms steps(1, end) infinite;
}

.typing-three {
  animation: typingLineThree 18s steps(42, end) infinite, caret 900ms steps(1, end) infinite;
}

.production-note,
.outcome-panel {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  display: grid;
  gap: 10px;
  padding: 22px;
  color: var(--paper);
  border: 1px solid rgba(219, 221, 216, 0.22);
  background: rgba(38, 21, 11, 0.74);
}

.production-note span,
.outcome-panel span {
  color: var(--taupe);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.production-note strong,
.outcome-panel strong {
  font-size: 20px;
  line-height: 1.35;
}

.orbit-map {
  position: absolute;
  inset: 92px 44px 132px;
  border: 1px solid rgba(219, 221, 216, 0.16);
}

.orbit-map::before,
.orbit-map::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(166, 141, 119, 0.3);
  border-radius: 50%;
  animation: orbitSpin 14s linear infinite;
}

.orbit-map::after {
  inset: 31%;
  animation-duration: 10s;
  animation-direction: reverse;
}

.orbit-map span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--paper);
  border: 1px solid rgba(219, 221, 216, 0.18);
  background: rgba(38, 21, 11, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit-core {
  left: 50%;
  top: 50%;
  color: var(--espresso) !important;
  background: var(--taupe) !important;
  transform: translate(-50%, -50%);
}

.orbit-map span:nth-child(2) {
  left: 10%;
  top: 22%;
}

.orbit-map span:nth-child(3) {
  right: 8%;
  top: 30%;
}

.orbit-map span:nth-child(4) {
  left: 18%;
  bottom: 18%;
}

.orbit-map span:nth-child(5) {
  right: 16%;
  bottom: 12%;
}

.slider-progress {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slider-progress span {
  height: 2px;
  background: rgba(219, 221, 216, 0.2);
  overflow: hidden;
}

.slider-progress span::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--taupe);
  transform: scaleX(0);
  transform-origin: left;
  animation: progressFill 18s linear infinite;
}

.slider-progress span:nth-child(2)::before {
  animation-delay: 6s;
}

.slider-progress span:nth-child(3)::before {
  animation-delay: 12s;
}

.intro {
  display: grid;
  grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
}

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
}

.intro h2 {
  color: var(--espresso);
}

.intro-text {
  color: var(--ink-soft);
  font-size: 18px;
}

.intro-text p:last-child,
.closing-inner p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-heading h2 {
  color: var(--espresso);
}

.section-dark .section-heading h2 {
  color: var(--paper);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.approach-grid article {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(248, 246, 241, 0.34);
}

.approach-grid span {
  display: block;
  margin-bottom: 74px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
}

.approach-grid h3,
.capability-list h3,
.difference-grid h3 {
  margin-bottom: 14px;
  color: var(--espresso);
}

.approach-grid p,
.capability-list p,
.difference-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.capability-list article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.capability-list article:nth-child(1),
.capability-list article:nth-child(2) {
  grid-column: span 3;
}

.capability-list article:nth-child(n + 3) {
  grid-column: span 2;
}

.difference {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
}

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

.difference-grid article {
  min-height: 210px;
  padding: 28px;
  background: var(--espresso);
}

.difference-grid h3 {
  color: var(--paper);
}

.difference-grid p {
  color: var(--light-soft);
}

.outcomes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.85fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.outcomes h2 {
  color: var(--espresso);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.metrics div {
  min-height: 156px;
  padding: 26px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(248, 246, 241, 0.38);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--purple);
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1;
}

.metrics span {
  margin-top: 12px;
  color: var(--warm-brown);
  font-weight: 600;
}

.closing {
  text-align: center;
}

.closing-inner {
  max-width: 920px;
}

.closing h2 {
  color: var(--espresso);
  margin-bottom: 24px;
}

.closing p:not(.eyebrow) {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 19px;
}

.company-address {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--warm-brown);
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px clamp(20px, 4vw, 56px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: top;
}

.footer-brand p {
  margin: 0;
  color: var(--warm-brown);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-brand address {
  max-width: 470px;
  margin-top: 8px;
  color: rgba(64, 48, 34, 0.68);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: rgba(64, 48, 34, 0.78);
  font-size: 14px;
  font-weight: 700;
}

@keyframes heroSlide {
  0%,
  27% {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
  }

  33%,
  94% {
    opacity: 0;
    transform: translateX(-18px);
    z-index: 1;
  }

  95%,
  100% {
    opacity: 0;
    transform: translateX(18px);
    z-index: 1;
  }
}

@keyframes typingLineOne {
  0%,
  36% {
    width: 0;
  }

  46%,
  66% {
    width: 100%;
  }

  70%,
  100% {
    width: 0;
  }
}

@keyframes typingLineTwo {
  0%,
  42% {
    width: 0;
  }

  52%,
  66% {
    width: 100%;
  }

  70%,
  100% {
    width: 0;
  }
}

@keyframes typingLineThree {
  0%,
  48% {
    width: 0;
  }

  58%,
  66% {
    width: 100%;
  }

  70%,
  100% {
    width: 0;
  }
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

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

@keyframes progressFill {
  0% {
    transform: scaleX(0);
  }

  27%,
  33.32% {
    transform: scaleX(1);
  }

  33.33%,
  100% {
    transform: scaleX(0);
  }
}

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

  .hero-slide,
  .typing,
  .orbit-map::before,
  .orbit-map::after,
  .slider-progress span::before {
    animation: none;
  }

  .hero-slide {
    opacity: 0;
    transform: none;
  }

  .slide-brand {
    opacity: 1;
  }

  .typing {
    width: 100%;
    border-right: 0;
  }
}

@media (max-width: 1080px) {
  .hero,
  .intro-content,
  .section-heading,
  .difference,
  .outcomes {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual {
    margin-inline: auto;
  }

  .hero-visual {
    width: min(100%, 680px);
  }

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

  .capability-list article:nth-child(n) {
    grid-column: span 3;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    align-items: flex-start;
    grid-template-columns: 1fr auto;
    flex-wrap: wrap;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    padding-top: 4px;
  }

  .hero {
    min-height: auto;
  }

  .visual-stage {
    min-height: 520px;
  }

  .signal {
    width: 190px;
  }

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

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list article:nth-child(n) {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    width: 172px;
  }

  .brand img {
    width: 100%;
  }

  .nav-cta {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 13px;
  }

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

  .button {
    width: 100%;
  }

  .visual-stage {
    min-height: 460px;
  }

  .visual-stage::before {
    inset: 18px;
  }

  .slide-brand img {
    width: 82%;
  }

  .signal {
    width: min(210px, 58vw);
    padding: 14px;
  }

  .signal-one {
    top: 26px;
    left: 18px;
  }

  .signal-two {
    right: 18px;
    bottom: 92px;
  }

  .signal-three {
    left: 18px;
    bottom: 24px;
  }

  .hero-slide {
    padding: 18px;
  }

  .code-window {
    left: 18px;
    right: 18px;
    top: 76px;
    min-height: 276px;
  }

  .code-window pre {
    padding: 22px 16px;
    font-size: 11px;
  }

  .production-note,
  .outcome-panel {
    left: 18px;
    right: 18px;
    bottom: 34px;
    padding: 16px;
  }

  .production-note strong,
  .outcome-panel strong {
    font-size: 16px;
  }

  .orbit-map {
    inset: 72px 18px 128px;
  }

  .orbit-map span {
    min-width: 72px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .slider-progress {
    left: 18px;
    right: 18px;
  }

  .approach-grid,
  .difference-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .approach-grid article {
    min-height: 260px;
  }

  .approach-grid span {
    margin-bottom: 42px;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}
