:root {
  --ink: #10251f;
  --ink-soft: #28443a;
  --moss: #2ea86b;
  --moss-deep: #176543;
  --leaf: #8ccf9f;
  --clay: #9a6a43;
  --copper: #c88955;
  --cream: #f7f4ec;
  --paper: #fffdf7;
  --line: rgba(16, 37, 31, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(16, 37, 31, 0.13);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button {
  font: inherit;
}

.scroll-meter {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--moss), var(--copper));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--white);
  transition: background 260ms ease, box-shadow 260ms ease, padding 260ms ease, color 260ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 15px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 10px 35px rgba(16, 37, 31, 0.1);
  backdrop-filter: blur(18px);
}

.brand img,
.footer-brand img {
  width: 146px;
  height: auto;
}

.site-header:not(.is-scrolled):not(.is-open) .brand img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 64px) 58px;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-shade,
.hero-data-layer,
.hero-photons {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.9;
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 26, 21, 0.95) 0%, rgba(8, 26, 21, 0.8) 38%, rgba(8, 26, 21, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 26, 21, 0.84) 0%, rgba(8, 26, 21, 0.08) 44%);
}

.hero-data-layer {
  opacity: 0.18;
  background:
    radial-gradient(circle at 71% 46%, rgba(140, 207, 159, 0.2) 0 2px, transparent 4px),
    radial-gradient(circle at 83% 34%, rgba(200, 137, 85, 0.2) 0 2px, transparent 4px),
    radial-gradient(circle at 62% 58%, rgba(140, 207, 159, 0.16) 0 1.5px, transparent 4px);
  background-size: 100% 100%;
  mix-blend-mode: screen;
  animation: dataShimmer 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-photons {
  z-index: 1;
  pointer-events: none;
}

.hero-photons::before,
.hero-photons::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 87% 31%, rgba(255, 244, 205, 0.9) 0 1.5px, rgba(140, 207, 159, 0.28) 2px, transparent 7px),
    radial-gradient(circle at 79% 44%, rgba(200, 137, 85, 0.74) 0 1px, rgba(140, 207, 159, 0.18) 2px, transparent 6px),
    radial-gradient(circle at 73% 53%, rgba(255, 244, 205, 0.78) 0 1px, rgba(140, 207, 159, 0.2) 2px, transparent 6px),
    radial-gradient(circle at 64% 49%, rgba(200, 137, 85, 0.58) 0 1px, transparent 6px),
    radial-gradient(circle at 56% 61%, rgba(255, 244, 205, 0.62) 0 1px, transparent 5px);
  content: "";
  filter: blur(0.2px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: photonFlow 7.2s ease-in-out infinite;
}

.hero-photons::after {
  background:
    radial-gradient(circle at 82% 61%, rgba(255, 244, 205, 0.72) 0 1px, rgba(140, 207, 159, 0.2) 2px, transparent 6px),
    radial-gradient(circle at 74% 57%, rgba(200, 137, 85, 0.68) 0 1.5px, transparent 7px),
    radial-gradient(circle at 66% 63%, rgba(255, 244, 205, 0.66) 0 1px, transparent 5px),
    radial-gradient(circle at 58% 52%, rgba(140, 207, 159, 0.54) 0 1px, transparent 5px);
  animation-delay: -2.7s;
  animation-duration: 9.4s;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--leaf);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  font-weight: 500;
  line-height: 0.94;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  font-weight: 500;
  line-height: 1;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-actions,
.contact-shell .button {
  display: inline-flex;
}

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

.button {
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--moss);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--moss-deep);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-status {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 28px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(610px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-status span {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(16, 37, 31, 0.38);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--cream);
}

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

.signal-track:hover {
  animation-play-state: paused;
}

.signal-group {
  display: flex;
  flex: 0 0 auto;
}

.signal-group span {
  padding: 20px 42px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(82px, 11vw, 150px) clamp(20px, 5vw, 64px);
}

.intro,
.platform,
.partners {
  max-width: calc(var(--max) + 128px);
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.intro-copy {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.intro-copy p + p {
  margin-top: 22px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

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

.workflow-step {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.workflow-step:hover {
  z-index: 1;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.step-number {
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
}

.workflow-step p,
.partner-card p,
.case-copy p,
.contact-shell p,
.science-copy p {
  color: var(--ink-soft);
}

.science {
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 64px);
  background: var(--ink);
}

.science-panel {
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  margin-inline: auto;
  color: var(--white);
}

.science-copy p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.06rem;
}

.science-copy .eyebrow {
  color: var(--leaf);
}

.science-map {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.map-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.map-row span {
  color: var(--leaf);
  font-weight: 900;
  text-transform: uppercase;
}

.map-row strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
}

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

.partner-card {
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--cream);
  transition: transform 220ms ease, background 220ms ease;
}

.partner-card:hover {
  background: var(--paper);
  transform: translateY(-5px);
}

.case-study {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 7vw, 94px);
  align-items: center;
  padding: clamp(78px, 10vw, 140px) clamp(20px, 5vw, 64px);
  background: #e7ddd0;
}

.case-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(16, 37, 31, 0.2);
  overflow: hidden;
  margin: 0;
  background: #fffdf7;
  box-shadow: 0 24px 70px rgba(16, 37, 31, 0.14);
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 700ms ease;
}

.case-visual:hover img {
  transform: scale(1.025);
}

.case-copy {
  max-width: 760px;
}

.contact {
  background: var(--paper);
}

.contact-shell {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.contact-shell h2 {
  max-width: 850px;
}

.contact-shell p {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 32px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--cream);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms ease, transform 760ms ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(1.8%, -1.4%, 0);
  }
}

@keyframes dataShimmer {
  from {
    transform: translate3d(-1.5%, 0, 0);
    opacity: 0.2;
  }
  to {
    transform: translate3d(1.5%, -0.6%, 0);
    opacity: 0.36;
  }
}

@keyframes photonFlow {
  0% {
    opacity: 0;
    transform: translate3d(4vw, -1.5vh, 0) scale(0.98);
  }
  22% {
    opacity: 0.46;
  }
  68% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translate3d(-18vw, 7vh, 0) scale(1.02);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::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;
  }
}

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 2px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    color: var(--ink);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px;
  }

  .intro-grid,
  .science-panel,
  .case-study {
    grid-template-columns: 1fr;
  }

  .hero-status {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 18px 18px;
  }

  .brand img,
  .footer-brand img {
    width: 126px;
  }

  .hero {
    min-height: 80svh;
    padding: 106px 18px 28px;
  }

  .hero-status {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .hero-status span {
    min-height: 58px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .workflow,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step,
  .partner-card {
    min-height: auto;
  }

  .map-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-visual {
    min-height: auto;
  }

  .case-visual img {
    min-height: auto;
  }
}
