:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5b6762;
  --paper: #f7f3ea;
  --paper-strong: #fffaf0;
  --line: rgba(23, 32, 28, 0.14);
  --teal: #0f766e;
  --blue: #2563eb;
  --coral: #e4572e;
  --gold: #d69f30;
  --dark: #111816;
  --shadow: 0 28px 80px rgba(24, 36, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(250deg, rgba(228, 87, 46, 0.12), transparent 30%),
    var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.76);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 42px rgba(23, 32, 28, 0.12);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fffaf0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(23, 32, 28, 0.74);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(15, 118, 110, 0.1);
  outline: none;
}

.nav-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-cta,
.primary-action {
  background: var(--ink);
  color: var(--paper-strong);
}

.secondary-action {
  border: 1px solid rgba(23, 32, 28, 0.18);
  background: rgba(255, 250, 240, 0.55);
}

.primary-action.dark {
  background: #fffaf0;
  color: var(--ink);
}

.hero-section {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: end;
  gap: 28px;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 54px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  min-height: 620px;
  background:
    radial-gradient(circle at 78% 40%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(214, 159, 48, 0.18), transparent 30%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.scanline {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background:
    linear-gradient(180deg, transparent, rgba(247, 243, 234, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(23, 32, 28, 0.035) 10px 11px);
  pointer-events: none;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 790px;
  padding-bottom: 38px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: 5.6rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  color: #33423c;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.object-controls {
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  backdrop-filter: blur(12px);
}

.object-controls button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #34423d;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.object-controls button:hover,
.object-controls button:focus-visible,
.object-controls button.is-active {
  background: var(--ink);
  color: #fffaf0;
  outline: none;
}

.hero-panel {
  align-self: end;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 28px;
  background: rgba(17, 24, 22, 0.82);
  color: #fffaf0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.85rem;
}

.panel-topline strong {
  color: #fffaf0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.metric-grid div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.08);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.metric-grid span {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  min-width: 0;
  padding: 28px;
  background: rgba(255, 250, 240, 0.82);
}

.proof-item span {
  color: var(--coral);
  font-weight: 800;
}

.proof-item strong {
  display: block;
  margin: 12px 0 10px;
  font-size: 1.1rem;
}

.proof-item p,
.case-copy p,
.case-card p,
.lab-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.section-intro {
  width: min(1180px, calc(100% - 48px));
  margin: 120px auto 34px;
}

.section-intro.compact {
  margin-top: 0;
}

.section-intro h2,
.lab-copy h2,
.contact-section h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 3.15rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.work-grid {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 22px;
  margin: 0 auto;
}

.case-feature,
.case-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.case-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.case-card.portrait {
  grid-row: span 2;
  align-content: start;
}

.case-card.split-case {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(210px, 0.72fr);
  align-items: center;
  grid-column: 1 / -1;
}

.case-card.compact-case {
  min-height: 440px;
}

.case-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 22px;
  background: #d9e4df;
}

.case-image.large {
  min-height: 520px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 28px;
  align-items: start;
  padding: 42px;
}

.case-copy > div:first-child {
  min-width: 0;
}

.case-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-feature h3,
.case-card h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
  line-height: 1.15;
}

.case-feature h3 {
  font-size: 2.2rem;
}

.case-copy ul {
  align-self: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.62);
}

.case-feature ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.case-feature li {
  position: relative;
  padding-left: 22px;
  color: #2b3a35;
  font-weight: 700;
}

.case-feature li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--coral);
}

.services-section,
.engagement-section,
.systems-section,
.techstack-section,
.faq-section {
  width: min(1180px, calc(100% - 48px));
  margin: 132px auto;
}

.services-section {
  display: grid;
  gap: 28px;
}

.engagement-section,
.faq-section {
  display: grid;
  gap: 28px;
}

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

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

.service-rail article {
  min-width: 0;
  min-height: 286px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 250, 240, 0.9), rgba(255, 250, 240, 0.58)),
    var(--paper-strong);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.services-section .section-intro h2,
.engagement-section .section-intro h2,
.faq-section .section-intro h2 {
  max-width: 760px;
}

.engagement-grid article,
.faq-grid article {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.66);
  box-shadow: var(--shadow);
}

.service-rail span {
  color: var(--coral);
  font-weight: 800;
}

.engagement-grid span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--blue);
  font-weight: 800;
}

.faq-grid h3,
.engagement-grid h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.faq-grid p,
.engagement-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.service-rail h3 {
  margin: 54px 0 16px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.service-rail p {
  color: var(--muted);
  line-height: 1.7;
}

.systems-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
}

.system-board {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(17, 24, 22, 0.94), rgba(15, 118, 110, 0.74)),
    #111816;
  color: #fffaf0;
  box-shadow: 0 36px 95px rgba(17, 24, 22, 0.28);
}

.orbit-label {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  color: rgba(255, 250, 240, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-lines {
  position: absolute;
  inset: 54px 28px 28px;
  width: calc(100% - 56px);
  height: calc(100% - 82px);
}

.system-lines path {
  fill: none;
  stroke: rgba(255, 250, 240, 0.32);
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.system-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 118px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.1);
  color: #fffaf0;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(14px);
}

.system-node:hover {
  background: rgba(255, 250, 240, 0.18);
  transform: translateY(-3px);
}

.main-node {
  top: 45%;
  left: 50%;
  min-width: 168px;
  min-height: 78px;
  background: #fffaf0;
  color: var(--ink);
  transform: translate(-50%, -50%);
}

.node-a {
  top: 24%;
  left: 10%;
}

.node-b {
  top: 26%;
  right: 9%;
}

.node-c {
  bottom: 17%;
  left: 12%;
}

.node-d {
  right: 10%;
  bottom: 17%;
}

.node-e {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.techstack-section {
  display: grid;
  gap: 28px;
}

.tech-marquee {
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 12px;
}

.tech-marquee article {
  min-width: 0;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 48px rgba(24, 36, 32, 0.08);
  transform-style: preserve-3d;
}

.tech-marquee img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tech-marquee strong,
.tech-marquee span {
  display: block;
}

.tech-marquee strong {
  margin-top: auto;
  font-size: 0.98rem;
}

.tech-marquee span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.proof-lab {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
  margin: 0 auto 132px;
}

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

.lab-stack {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 18px;
}

.lab-stack figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.lab-stack figure:first-child {
  grid-row: span 2;
}

.lab-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lab-stack figure:first-child img {
  height: 100%;
  aspect-ratio: auto;
}

.lab-stack figcaption {
  padding: 14px 16px 18px;
  color: #33423c;
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-section {
  width: min(1180px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 34px;
  padding: 42px;
  border-radius: 36px;
  background: var(--dark);
  color: #fffaf0;
  box-shadow: 0 36px 95px rgba(17, 24, 22, 0.28);
}

.contact-section .eyebrow {
  color: #8bd8ce;
}

.contact-section h2 {
  max-width: 760px;
  font-size: 2.45rem;
}

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

@media (max-width: 980px) {
  .topbar {
    top: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: 900px;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 128px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-panel {
    width: 100%;
    margin-bottom: 0;
  }

  .proof-strip,
  .work-grid,
  .case-feature,
  .case-copy,
  .case-card.split-case,
  .service-rail,
  .engagement-grid,
  .faq-grid,
  .systems-section,
  .proof-lab {
    grid-template-columns: 1fr;
  }

  .tech-marquee {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .systems-section,
  .services-section,
  .engagement-section,
  .techstack-section,
  .faq-section,
  .proof-lab {
    gap: 26px;
    margin-top: 88px;
    margin-bottom: 88px;
  }

  .system-board {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 9px;
    border-radius: 19px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    display: none;
  }

  .hero-section {
    min-height: 860px;
    padding: 116px 18px 30px;
  }

  .hero-media,
  #hero-canvas {
    min-height: 860px;
  }

  h1 {
    font-size: 3.02rem;
    line-height: 0.98;
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

  .proof-strip,
  .section-intro,
  .work-grid,
  .services-section,
  .engagement-section,
  .systems-section,
  .techstack-section,
  .faq-section,
  .proof-lab,
  .contact-section {
    width: calc(100% - 28px);
  }

  .proof-item {
    padding: 22px;
  }

  .proof-strip {
    margin-top: 10px;
    border-radius: 24px;
  }

  .engagement-grid article,
  .faq-grid article {
    padding: 22px;
  }

  .section-intro h2,
  .lab-copy h2,
  .contact-section h2 {
    max-width: 100%;
  }

  .case-feature {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .case-feature .case-image.large {
    min-height: 220px;
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .case-feature .case-copy {
    grid-template-columns: 1fr;
    padding: 24px 20px 22px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: rgba(255, 250, 240, 0.88);
    box-shadow: var(--shadow);
  }

  .case-copy ul {
    padding: 18px 18px 18px 22px;
    margin: 0;
  }

  .service-rail,
  .engagement-grid,
  .faq-grid {
    gap: 14px;
  }

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

  .tech-marquee article {
    min-height: 128px;
    padding: 16px;
  }

  .proof-lab {
    gap: 18px;
  }

  .proof-lab .lab-copy {
    order: 1;
  }

  .proof-lab .lab-stack {
    order: 2;
  }

  .section-intro {
    margin-top: 72px;
  }

  .section-intro h2,
  .lab-copy h2 {
    font-size: 2.15rem;
  }

  .case-copy {
    padding: 24px;
  }

  .case-image.large {
    min-height: 270px;
  }

  .case-feature h3 {
    font-size: 1.65rem;
  }

  .case-card.compact-case,
  .service-rail article {
    min-height: auto;
  }

  .object-controls {
    width: 100%;
    justify-content: center;
  }

  .object-controls button {
    flex: 1;
    padding: 0 8px;
  }

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

  .tech-marquee article {
    min-height: 138px;
  }

  .system-board {
    min-height: 560px;
  }

  .system-node {
    min-width: 104px;
    font-size: 0.78rem;
  }

  .node-a {
    top: 22%;
    left: 5%;
  }

  .node-b {
    top: 22%;
    right: 5%;
  }

  .node-c {
    bottom: 14%;
    left: 6%;
  }

  .node-d {
    right: 6%;
    bottom: 14%;
  }

  .lab-stack {
    grid-template-columns: 1fr;
  }

  .lab-stack figure:first-child {
    grid-row: auto;
  }

  .contact-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .contact-section h2 {
    font-size: 2rem;
  }
}
