:root {
  --ink: #071018;
  --paper: #e9eeec;
  --teal: #69d8cc;
  --teal-deep: #11766f;
  --navy: #091a27;
  --surface: #0b1721;
  --surface-raised: #102330;
  --line: rgba(123, 207, 197, 0.17);
  --muted: #93a4a8;
  --gutter: clamp(24px, 5vw, 88px);
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-clearance, 32px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(48px, 7.5vw, 116px);
}

h3 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.12;
}

em {
  font-style: normal;
  color: var(--teal);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 8px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 var(--gutter);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  letter-spacing: -0.06em;
}

.brand img {
  width: 38px;
  height: 45px;
  object-fit: contain;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.36em;
}

.topbar nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
}

.topbar nav a {
  transition: color 0.2s ease;
}

.topbar nav a:hover {
  color: var(--teal);
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0 13px;
  border: 2px solid var(--teal);
  box-shadow: 0 4px 18px #07101866, 0 0 0 2px var(--ink);
  border-radius: 50%;
  background: #091a27;
  color: var(--paper);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: width .24s ease, border-radius .24s ease, opacity .2s ease, transform .2s ease, visibility .2s;
}

.back-to-top svg {
  flex: 0 0 24px;
  width: 24px;
  height: 28px;
  overflow: visible;
  transform: translateY(-1px);
}

.back-to-top-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: max-width .24s ease, opacity .18s ease;
}

.back-to-top.is-expanded {
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 156px;
  border-radius: 28px;
}

.back-to-top.is-expanded .back-to-top-label {
  max-width: 90px;
  opacity: 1;
}

.back-to-top path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
  box-shadow: 0 0 0 8px var(--ink);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  opacity: 1;
  color: var(--teal);
}

.pill {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.pill:hover,
.topbar nav a.pill:hover {
  background: var(--teal);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
  width: min(100%, 1880px);
  min-height: calc(100svh - var(--header-clearance, 76px));
  margin: 0 auto;
  padding: clamp(48px, 5vw, 84px) var(--gutter);
}

.hero-copy {
  min-width: 0;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.hero h1 {
  margin: clamp(42px, 5.5vh, 74px) 0 30px;
  font-size: clamp(68px, 8.2vw, 132px);
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.line {
  display: block;
  overflow: hidden;
  margin-bottom: -0.09em;
  padding-bottom: 0.09em;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}

.hero-bottom p {
  max-width: 560px;
  color: var(--muted);
}

.text-link {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}

.text-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.hero-image {
  position: relative;
  width: 100%;
  height: min(72svh, 740px);
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 40px 120px rgba(1, 9, 17, 0.42);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
}

.image-label,
.image-number {
  position: absolute;
  bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}

.image-label {
  left: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(233, 238, 236, 0.2);
  background: rgba(7, 16, 24, 0.24);
  backdrop-filter: blur(7px);
}

.image-number {
  right: 22px;
}

.section {
  padding: 120px var(--gutter);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px 48px;
  align-items: end;
}

.intro h2 {
  grid-column: 1;
}

.intro-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.intro-copy p {
  color: var(--muted);
}

.word-reveal .word {
  display: inline-block;
  opacity: 0.25;
  transform: translateY(0.35em);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.word-reveal .word.lit {
  opacity: 1;
  transform: none;
}

.use-cases {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  padding: 120px var(--gutter) 0;
}

.sticky-copy {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sticky-copy h2 {
  margin: 16px 0 18px;
  max-width: 520px;
}

.sticky-copy p:last-child {
  max-width: 480px;
  color: var(--muted);
}

.use-case-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.use-case-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 35, 48, 0.84), rgba(9, 26, 39, 0.9));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.use-case-card[data-theme="navy"] {
  background: linear-gradient(180deg, rgba(13, 29, 39, 0.9), rgba(8, 20, 30, 0.96));
}

.use-case-card[data-theme="teal-dark"] {
  background: linear-gradient(180deg, rgba(16, 31, 35, 0.9), rgba(8, 20, 30, 0.96));
}

.card-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(233, 238, 236, 0.16);
  border-radius: 22px;
  background: rgba(7, 16, 24, 0.45);
}

.label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(233, 238, 236, 0.2);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(7, 16, 24, 0.38);
}

.label-secondary {
  top: 18px;
  left: auto;
  right: 18px;
}

.source-lines {
  position: absolute;
  inset: 62px 18px 18px;
  display: grid;
  gap: 14px;
  align-content: end;
}

.source-lines span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(105, 216, 204, 0.3), rgba(105, 216, 204, 0.8));
}

.policy-grid {
  position: absolute;
  inset: 70px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}

.rule {
  display: block;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(105, 216, 204, 0.6), rgba(105, 216, 204, 0.2));
}

.rule-a {
  height: 52%;
}

.rule-b {
  height: 74%;
}

.rule-c {
  height: 88%;
}

.proof-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ring-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(105, 216, 204, 0.75);
  box-shadow: 0 0 0 18px rgba(105, 216, 204, 0.08), 0 0 0 36px rgba(105, 216, 204, 0.04);
}

.card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-copy .eyebrow {
  color: var(--muted);
}

.card-copy h3 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 2.7vw, 42px);
}

.card-copy p:last-child {
  color: var(--muted);
}

.venture {
  padding-top: 110px;
}

.section-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-label > span {
  color: var(--muted);
}

.venture-details {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  color: var(--muted);
}

.status {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}

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

.columns p {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.metrics strong {
  display: block;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--teal);
}

.metrics span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.boundary-note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-top: 50px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}

.boundary-note p {
  color: var(--muted);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 32px;
  align-items: end;
  margin: 0 0 60px;
}

.split-heading h2 {
  max-width: 560px;
}

.split-heading p {
  max-width: 560px;
  color: var(--muted);
}

.protocol-section {
  --stack-top: var(--header-clearance, 16px);
  --stack-label-height: clamp(48px, 6.5vh, 68px);
  padding: clamp(64px, 7vw, 100px) var(--gutter) 88px;
  background: var(--paper);
  color: var(--ink);
}

.protocol-header {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 28px 5vw;
  align-items: start;
  padding-bottom: clamp(40px, 5vh, 64px);
}

.protocol-header h2 {
  max-width: 900px;
}

.protocol-header > p:last-child {
  grid-column: 2;
  max-width: 560px;
  color: #3c5259;
}

.protocol-stages {
  position: relative;
}

.protocol-stage-wrap {
  position: relative;
  height: auto;
  margin: 0 0 10px;
}

.protocol-stage-wrap:nth-child(1) { --stage: 0; }
.protocol-stage-wrap:nth-child(2) { --stage: 1; }
.protocol-stage-wrap:nth-child(3) { --stage: 2; }
.protocol-stage-wrap:nth-child(4) { --stage: 3; }
.protocol-stage-wrap:last-child { margin-bottom: 0; }

.protocol-stage {
  position: relative;
  z-index: 0;
  min-height: min(54vh, 520px);
  padding: 0 clamp(24px, 4vw, 60px) 32px;
  border: 1px solid #07101824;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 -12px 32px #07101812;
}

.is-stacked .protocol-stack-window {
  position: sticky;
  top: var(--stack-top);
  overflow: clip;
}

.is-stacked .protocol-stage-wrap {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  z-index: calc(var(--stage) + 1);
  will-change: transform;
}

.stage-heading {
  display: flex;
  align-items: center;
  min-height: var(--stack-label-height);
  padding: 0 0 8px;
  border-bottom: 1px solid #07101840;
}

.stage-heading span {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stage-content {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 350px;
  padding-top: 26px;
}

.stage-content p {
  max-width: 460px;
  color: #3c5259;
  line-height: 1.65;
}

.stage-content img {
  width: 100%;
  height: clamp(260px, 39vh, 430px);
  border-radius: 3px;
  object-fit: cover;
  filter: saturate(.55);
}

.wide-photo {
  position: relative;
  min-height: 560px;
  margin: 120px var(--gutter) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
}

.wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-photo p {
  position: absolute;
  left: clamp(20px, 4vw, 52px);
  bottom: clamp(18px, 4vw, 40px);
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.research {
  padding-top: 120px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 52px;
}

.research-grid article {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.research-grid img {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 24px;
  object-fit: cover;
}

.research-grid p {
  color: var(--muted);
}

.principles {
  padding-top: 120px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 52px;
}

.principle-grid article {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(12, 25, 34, 0.6);
}

.principle-grid span {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.principle-grid h3 {
  margin-top: 24px;
}

.principle-grid p {
  margin-top: 14px;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 120px;
  padding: 42px var(--gutter) 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.js .hero .line > span {
  display: block;
  transform: translateY(115%);
  animation: rise 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.js .hero .line:nth-child(2) > span {
  animation-delay: 0.14s;
}

@keyframes rise {
  from {
    transform: translateY(115%);
  }

  to {
    transform: translateY(0);
  }
}

.boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}

.boot-sequence.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.boot-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--navy);
  transition: transform .78s cubic-bezier(.76, 0, .24, 1);
}

.boot-curtain-left { left: 0; }
.boot-curtain-right { right: 0; }

.boot-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .2s ease;
}

.boot-brand {
  gap: clamp(16px, 2.2vw, 28px);
  font-size: clamp(30px, 5vw, 64px);
  color: var(--paper);
  opacity: 0;
  transition: opacity .32s ease;
}

.boot-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(68px, 8vw, 104px);
  aspect-ratio: 180 / 280;
  background: var(--paper);
  -webkit-mask: url("assets/tree-logo2.svg") center / contain no-repeat;
  mask: url("assets/tree-logo2.svg") center / contain no-repeat;
}

.boot-mark::after {
  position: absolute;
  inset: 0;
  background: var(--teal);
  content: "";
  transform: scaleY(var(--boot-fill, 0));
  transform-origin: center bottom;
}

.boot-brand .brand-sub {
  font-size: clamp(11px, 1vw, 16px);
  letter-spacing: .36em;
}

.is-visible .boot-brand {
  opacity: 1;
}

.boot-progress {
  position: absolute;
  top: calc(50% + clamp(92px, 12vw, 132px));
  left: 50%;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  transform: translateX(-50%);
}

.boot-skip {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  transition: opacity .2s ease;
}

.is-opening .boot-curtain-left { transform: translateX(-101%); }
.is-opening .boot-curtain-right { transform: translateX(101%); }
.boot-sequence.is-opening { pointer-events: none; }
.is-opening .boot-content,
.is-opening .boot-skip,
.is-opening .boot-progress { opacity: 0; }
.boot-sequence.is-skipping .boot-curtain { transition: none; }

.intro-active { overflow: hidden; }

@media (pointer: fine) {
  body,
  a,
  button {
    cursor: url('assets/dot-cursor.svg') 12 12, auto;
  }

  a:hover,
  button:hover {
    cursor: url('assets/dot-cursor.svg') 12 12, pointer;
  }
}

@media (max-width: 900px) {
  .use-cases,
  .intro,
  .split-heading,
  .research-grid,
  .principle-grid,
  .boundary-note {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .use-case-card {
    grid-template-columns: 1fr;
  }

  .card-visual {
    min-height: 220px;
  }

  .venture-details {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .protocol-header {
    grid-template-columns: 1fr;
    padding-bottom: 55px;
  }

  .protocol-header > p:last-child {
    grid-column: 1;
  }

  .protocol-stage {
    min-height: 0;
    padding: 20px;
  }

  .stage-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stage-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stage-content img {
    height: 300px;
  }

}

@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
    padding: 20px 0;
  }

  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .pill {
    padding: 12px 16px;
  }

  .hero-top > .eyebrow:last-child {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    margin-top: 45px;
    font-size: clamp(76px, 17vw, 140px);
  }

  .hero-bottom {
    display: block;
    margin: 32px 0;
  }

  .hero-bottom .text-link {
    display: inline-block;
    margin-top: 26px;
  }

  .hero-image {
    height: 440px;
  }

  .section {
    padding: 80px var(--gutter);
  }

  .intro h2 {
    font-size: clamp(43px, 8vw, 72px);
  }

  .sticky-copy {
    position: relative;
    top: auto;
  }

  .research-grid img {
    height: 330px;
  }

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

  .wide-photo {
    height: 65vh;
  }

  .image-label,
  .image-number {
    bottom: 22px;
  }

  .image-label {
    left: 20px;
  }

  .image-number {
    right: 20px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .hero .line > span {
    animation: none;
    transform: none;
  }

  .boot-sequence {
    display: none;
  }

  .use-case-card,
  .boot-curtain,
  .boot-content {
    transition: none !important;
  }

  body,
  a,
  button {
    cursor: auto;
  }
}

@media (max-height: 720px) {
  .protocol-header { padding-bottom: 48px; }
  .protocol-stage { min-height: 0; padding: 0 28px 20px; }
  .stage-content { min-height: 280px; padding-top: 12px; }
  .example-graphic { min-height: 220px; }
}

.hero-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: min(100%, 900px);
}

.hero-offer > p:first-child {
  max-width: 660px;
  color: var(--paper);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
}

.hero-offer .hero-audience {
  max-width: 660px;
  color: var(--muted);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: fit-content;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}

.button-link:hover {
  background: var(--teal);
  color: var(--ink);
}

.button-link span {
  font-size: 18px;
}

.customer-needs {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 28px 6vw;
  align-items: end;
}

.customer-needs > .eyebrow,
.customer-needs > h2,
.needs-list {
  grid-column: 1 / -1;
}

.customer-needs > h2 {
  max-width: 980px;
}

.needs-intro {
  grid-column: 2;
  max-width: 600px;
  color: var(--muted);
}

.needs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.needs-list article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.needs-list article > span {
  color: var(--teal);
  font-size: 12px;
}

.needs-list h3 {
  margin: 25px 0 12px;
  font-size: clamp(23px, 2.5vw, 34px);
}

.needs-list p,
.eligent-columns p,
.ai-disclosure {
  color: var(--muted);
}

.eligent-statement {
  max-width: 1050px;
  font-size: clamp(48px, 7vw, 100px);
}

.eligent-deck {
  margin-top: 22px;
  color: var(--paper);
  font-size: clamp(22px, 2.4vw, 32px);
}

.eligent-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1050px;
}

.ai-disclosure {
  max-width: 880px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.practical-cases {
  padding-top: 80px;
}

.cases-title {
  margin-top: 70px;
  font-size: clamp(54px, 8vw, 112px);
}

.cases-intro {
  max-width: 720px;
  margin: 26px 0 50px;
  color: var(--muted);
}

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

.case-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 35, 48, .82), rgba(9, 26, 39, .9));
}

.case-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  height: 142px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(105, 216, 204, .32);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.case-mark i {
  display: block;
  width: 63%;
  height: 5px;
  background: rgba(105, 216, 204, .5);
}

.case-mark i:nth-of-type(2) { width: 82%; }
.case-mark i:nth-of-type(3) { width: 48%; }

.signature-mark b {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 16px;
  font-weight: 400;
}

.eligibility-mark b {
  position: absolute;
  right: 18px;
  bottom: 17px;
  color: var(--teal);
  font-weight: 400;
}

.case-card > .eyebrow {
  color: var(--teal);
}

.case-card h3 {
  margin: 14px 0 18px;
  font-size: clamp(28px, 3vw, 40px);
}

.case-card > p:not(.eyebrow) {
  color: var(--muted);
}

.case-card .case-boundary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--paper);
  font-size: 15px;
}

.case-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
}

.case-invitation p {
  max-width: 750px;
  color: var(--muted);
}

.protocol-section em {
  color: var(--teal-deep);
}

.stage-content h3 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 56px);
}

.example-graphic {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 300px;
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(7, 16, 24, .18);
  background: #dce5e2;
}

.example-graphic figcaption {
  margin-bottom: 20px;
  color: #3c5259;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.record-line,
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(7, 16, 24, .16);
  font-size: 14px;
}

.record-line span,
.history-row span { color: #3c5259; }
.record-line strong,
.history-row strong { color: var(--ink); font-weight: 600; text-align: right; }

.rule-stamp,
.outcome-result {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-left: 4px solid var(--teal-deep);
  background: var(--paper);
}

.rule-stamp span,
.outcome-result span,
.outcome-result small {
  color: #3c5259;
  font-size: 12px;
}

.rule-stamp strong,
.outcome-result strong { font-size: 24px; font-weight: 500; }
.rule-stamp b { color: var(--teal-deep); font-size: 13px; font-weight: 600; }
.rules-graphic > p { margin-top: 18px; color: #3c5259; font-size: 14px; }
.outcome-result { max-width: 420px; }
.history-row.is-later { background: rgba(17, 118, 111, .08); }

.protocol-caption {
  max-width: 800px;
  margin: 42px auto 0;
  color: #263b41;
  font-size: clamp(22px, 3vw, 36px);
  text-align: center;
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.research-copy > h3 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 52px);
}

.research-copy > p,
.research-pair > div > p:last-child {
  color: var(--muted);
}

.research-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.research-pair .eyebrow { margin-bottom: 10px; color: var(--teal); }
.operational-link { display: inline-flex; margin-top: 32px; }

.readiness-example {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.readiness-top,
.readiness-states,
.readiness-detail > div > p:not(.eyebrow) {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.readiness-top { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.readiness-top > span:last-child { color: var(--paper); font-size: 13px; }
.readiness-top .eyebrow { color: var(--muted); }
.readiness-states { margin: 18px 0 26px; }
.readiness-states span { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.readiness-states b { color: var(--paper); font-size: 21px; font-weight: 500; }
.state-ready b { color: #79c9a5; }
.state-risk b { color: #e4c875; }
.state-blocked b { color: #e78e83; }
.readiness-detail { display: grid; gap: 20px; }
.readiness-detail > div { padding-top: 15px; border-top: 1px solid var(--line); }
.readiness-detail .eyebrow { margin-bottom: 9px; color: var(--teal); }
.readiness-detail > div > p:not(.eyebrow) { color: var(--paper); font-size: 13px; line-height: 1.5; }
.readiness-note { margin-top: 22px; color: var(--muted); font-size: 12px; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px 8vw;
  align-items: end;
  border-top: 1px solid var(--line);
}

.about-heading h2 { margin-top: 32px; font-size: clamp(48px, 6.5vw, 90px); }
.about-copy { display: grid; gap: 18px; max-width: 650px; }
.about-copy p { color: var(--muted); }
.about-copy .text-link { width: fit-content; margin-top: 10px; }

.contact-section {
  display: grid;
  grid-template-columns: minmax(160px, .45fr) minmax(0, 1fr);
  gap: 5vw;
  padding: 120px var(--gutter);
  background: var(--navy);
}

.contact-section > .eyebrow { color: var(--teal); }
.contact-content { max-width: 860px; }
.contact-content h2 { font-size: clamp(56px, 8vw, 112px); }
.contact-content > p { max-width: 650px; margin: 28px 0; color: var(--muted); }
.contact-content .button-link { margin-bottom: 24px; }
.contact-email { display: block; width: fit-content; color: var(--teal); font-size: clamp(20px, 2.4vw, 30px); text-decoration: underline; text-underline-offset: 5px; }

footer .footer-actions { display: flex; align-items: center; gap: 28px; }
footer .footer-actions > a:first-child { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

.contact-content > .form-privacy-note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.enquiry-form {
  display: grid;
  gap: 18px;
  max-width: 700px;
  margin: 34px 0 28px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 24, .38);
}

.enquiry-form h3 {
  margin-bottom: 4px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.enquiry-form h3:focus {
  outline: none;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.form-field label span[aria-hidden="true"] {
  color: var(--teal);
}

.field-optional {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 238, 236, .32);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a9b8bb;
  opacity: 1;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-trap input {
  width: 1px;
  min-width: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
}

.form-submit {
  justify-self: start;
  min-height: 48px;
  margin-bottom: 0;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--paper);
  font-size: 15px;
}

.form-status[data-state="success"] {
  color: var(--teal);
}

.form-status[data-state="error"] {
  color: #ffd1c7;
}

.contact-section,
#enquiry-form,
[id="eligent"],
[id="use-cases"],
[id="research"],
[id="about"],
[id="proof-flow"] {
  scroll-margin-top: var(--header-clearance, 76px);
}

@media (max-width: 900px) {
  .customer-needs,
  .about,
  .contact-section { grid-template-columns: minmax(0, 1fr); }
  .needs-intro { grid-column: 1; }
  .needs-list { grid-template-columns: 1fr; }
  .eligent-columns,
  .research-layout { grid-template-columns: minmax(0, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .case-invitation { align-items: flex-start; flex-direction: column; }
  .research-layout { gap: 42px; }
}

@media (max-width: 800px) {
  .topbar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 14px 18px;
    font-size: 13px;
  }

  .hero-offer { grid-template-columns: minmax(0, 1fr); }
  .hero-offer .button-link { grid-column: 1; }
  .hero-bottom { margin-bottom: 34px; }
  .practical-cases { padding-top: 64px; }
  .cases-title { margin-top: 42px; }
  .case-card { padding: 22px; }
  .protocol-section { padding-top: 80px; padding-bottom: 90px; }
  .protocol-stage { padding: 22px; }
  .stage-content { grid-template-columns: minmax(0, 1fr); }
  .example-graphic { min-height: 240px; }
  .research-pair { grid-template-columns: 1fr; }
  .contact-section { padding-top: 80px; padding-bottom: 80px; }
}

@media (max-width: 390px) {
  .intro-copy,
  .columns,
  .needs-list,
  .research-pair { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(68px, 21vw, 82px); }
  .hero-image { height: 360px; min-height: 360px; }
  .hero-offer .button-link { width: 100%; }
  .case-mark { height: 116px; }
  .readiness-states { gap: 10px; }
  .readiness-states span { font-size: 11px; }
  .record-line,
  .history-row { flex-direction: column; gap: 5px; }
  .record-line strong,
  .history-row strong { text-align: left; }
  footer .footer-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
}

html:not(.js) .reveal { opacity: 1; transform: none; }

@media (max-width: 390px) {
  .protocol-section { padding: 64px var(--gutter) 72px; }
  .protocol-header { padding-bottom: 32px; }
  .protocol-stage { padding: 18px; }
  .example-graphic { min-height: 220px; padding: 16px; }
}

/* Keep the floating control outside the reading column on narrow screens. */
@media (max-width: 600px) {
  :root { --gutter: 24px; }
  main .section,
  main .hero,
  main .protocol-section,
  main .contact-section,
  footer { padding-right: var(--gutter); }
  .back-to-top { right: 12px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  .word-reveal .word { opacity: 1; transform: none; transition: none; }
}
html:not(.js) .back-to-top { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 36px;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: 840px;
  }

  .hero h1 {
    margin: 34px 0 24px;
    font-size: clamp(72px, 10vw, 112px);
  }

  .hero-offer {
    width: min(100%, 760px);
  }

  .hero-image {
    height: min(58svh, 540px);
    min-height: 340px;
  }

  .image-label,
  .image-number {
    display: none;
  }
}

@media (max-width: 800px) {
  .hero {
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .hero h1 {
    margin: 30px 0 20px;
    font-size: clamp(64px, 11vw, 92px);
  }

  .hero-bottom {
    display: block;
  }

  .hero-image {
    height: min(54svh, 440px);
    min-height: 300px;
    border-radius: 22px;
  }

  .hero-offer > p:first-child {
    font-size: clamp(19px, 4vw, 23px);
  }
}

@media (max-width: 600px) {
  main .hero,
  main .contact-section {
    padding-right: var(--gutter);
  }

  .hero {
    gap: 24px;
  }

  .hero-top > .eyebrow:last-child {
    display: none;
  }

  .hero h1 {
    margin-top: 26px;
    font-size: clamp(55px, 14vw, 82px);
  }

  .hero-image {
    height: clamp(280px, 48svh, 390px);
    min-height: 280px;
  }

  .hero-offer .button-link {
    width: fit-content;
  }

  .back-to-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0 9px;
  }

  .back-to-top.is-expanded {
    width: 148px;
  }

  .back-to-top svg {
    flex-basis: 22px;
    width: 22px;
    height: 26px;
  }

  .enquiry-form {
    gap: 16px;
    padding: 20px 16px;
  }

  .form-submit {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 54px;
  }

  .cases-title {
    font-size: clamp(40px, 12.5vw, 48px);
  }

  .hero-offer .button-link {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top-label {
    transition: none;
  }
}

/* Contact scene: a full-height, separate closing scene. */
.contact-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  min-height: 100svh;
  padding-top: clamp(96px, 14vh, 150px);
  padding-bottom: clamp(96px, 14vh, 150px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 85% 12%, rgba(105, 216, 204, 0.16), transparent 70%),
    radial-gradient(50% 50% at 5% 100%, rgba(17, 118, 111, 0.28), transparent 70%),
    linear-gradient(180deg, #050c13 0%, var(--navy) 38%, #06121b 100%);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--teal), transparent);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  column-gap: clamp(40px, 7vw, 120px);
  align-items: start;
  max-width: none;
  width: 100%;
}

.contact-content > :not(.enquiry-form) { grid-column: 1; }
.contact-content > .enquiry-form {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .contact-section { min-height: 0; }
  .contact-content { grid-template-columns: minmax(0, 1fr); }
  .contact-content > :not(.enquiry-form),
  .contact-content > .enquiry-form { grid-column: 1; grid-row: auto; }
  .contact-content > .enquiry-form { margin: 8px 0 28px; }
}
