:root {
  --ink: #1d2a2c;
  --heading: #3c4e50;
  --muted: #54676a;
  --mist: #e9eff0;
  --paper: #f4f8f8;
  --green: #78b829;
  --green-hover: #8ccc48;
  --on-green: #111c1d;
  --accent-text: #507c19;
  --hair: rgba(60, 78, 80, 0.16);
  --hair-strong: rgba(60, 78, 80, 0.32);
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  /* Left and right edge of all content: lines up with the 1320 px column used by every section */
  --edge: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter)));
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
}
.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid #2f89b9;
  outline-offset: 3px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--edge);
  border-bottom: 1px solid var(--hair);
  transition:
    top 0.35s var(--ease),
    left 0.35s var(--ease),
    right 0.35s var(--ease),
    height 0.35s var(--ease),
    padding 0.35s var(--ease),
    border-radius 0.35s var(--ease),
    background-color 0.35s,
    box-shadow 0.35s,
    transform 0.45s var(--ease);
}
/* Once the page moves, the bar floats as frosted glass, readable over light and dark sections */
.nav.is-floating {
  top: 10px;
  left: calc(var(--edge) - 14px);
  right: calc(var(--edge) - 14px);
  height: 60px;
  padding: 0 14px;
  border: 1px solid rgba(60, 78, 80, 0.14);
  border-radius: 14px;
  background: rgba(244, 248, 248, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 34px -16px rgba(17, 28, 29, 0.45);
}
.nav.is-hidden {
  transform: translateY(calc(-100% - 24px));
}
.nav.is-floating .nav__logo {
  width: 120px;
}
.nav__links a[aria-current='true'] {
  color: var(--ink);
}
.nav__links a[aria-current='true']::after {
  transform: scaleX(1);
  background: var(--green);
  height: 2px;
}
.nav__logo {
  display: block;
  width: 138px;
  flex: none;
  transition: width 0.35s var(--ease);
}
.nav__logo svg {
  display: block;
  width: 100%;
  height: auto;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}
.nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Sign in sits in the bar on wide screens and in the menu on small ones */
.nav__links-signin {
  display: none;
}
@media (max-width: 820px) {
  .nav.is-open .nav__links .nav__links-signin {
    display: block;
    font-weight: 600;
    color: var(--accent-text);
    border-bottom: 0;
  }
}
/* The menu button is for small screens only; on wide screens the links are already visible */
.nav .nav__menu {
  display: none;
}
.nav__burger {
  position: relative;
  width: 18px;
  height: 12px;
}
.nav__burger i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s,
    top 0.3s var(--ease);
}
.nav__burger i:nth-child(1) {
  top: 0;
}
.nav__burger i:nth-child(2) {
  top: 5.2px;
}
.nav__burger i:nth-child(3) {
  top: 10.4px;
}
.nav.is-open .nav__burger i:nth-child(1) {
  top: 5.2px;
  transform: rotate(45deg);
}
.nav.is-open .nav__burger i:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__burger i:nth-child(3) {
  top: 5.2px;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font: 500 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.btn--primary {
  background: var(--green);
  color: var(--on-green);
}
.btn--primary:hover {
  background: var(--green-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--lg {
  height: 54px;
  padding: 0 24px;
  font-size: 16px;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}

/* The first screen stays pinned while scrolling moves through the five layers */
.stage {
  position: relative;
  height: 460vh;
}

/* Hero */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  overflow: clip; /* hidden still lets focus scroll the box sideways */
  background: radial-gradient(70% 80% at 68% 52%, #f7fafa 0%, rgba(247, 250, 250, 0) 70%), var(--mist);
  isolation: isolate;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
  cursor: grab;
  touch-action: pan-y;
}
.hero.is-ready canvas {
  opacity: 1;
}
.hero.is-dragging canvas {
  cursor: grabbing;
}

/* Keeps the headline readable whatever the scene shows behind it */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(233, 239, 240, 0.96) 0%,
    rgba(233, 239, 240, 0.9) 26%,
    rgba(233, 239, 240, 0) 50%
  );
}

/* Survey frame with control-point marks in the corners */
.hero__frame {
  position: absolute;
  inset: 92px var(--gutter) 20px;
  pointer-events: none;
  z-index: 1;
}
.hero__frame i {
  position: absolute;
  width: 22px;
  height: 22px;
}
.hero__frame i::before,
.hero__frame i::after {
  content: '';
  position: absolute;
  background: var(--hair-strong);
}
.hero__frame i::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}
.hero__frame i::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}
.hero__frame i:nth-child(1) {
  left: -11px;
  top: -11px;
}
.hero__frame i:nth-child(2) {
  right: -11px;
  top: -11px;
}
.hero__frame i:nth-child(3) {
  left: -11px;
  bottom: -11px;
}
.hero__frame i:nth-child(4) {
  right: -11px;
  bottom: -11px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero__copy {
  max-width: 560px;
  padding-top: 20px;
  margin-top: -40px;
}
.hero__copy a,
.hero__copy button {
  pointer-events: auto;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--green);
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ink);
}
h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
h1 .line:nth-child(2) > span {
  color: var(--accent-text);
  animation-delay: 0.12s;
}
@keyframes rise {
  to {
    transform: none;
  }
}

.lead {
  margin: 26px 0 0;
  max-width: 470px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0;
  animation: fade 0.9s 0.35s ease forwards;
}
.ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fade 0.9s 0.5s ease forwards;
}
@keyframes fade {
  to {
    opacity: 1;
  }
}

/* Layer switcher */
.layers {
  position: absolute;
  z-index: 3;
  left: var(--edge);
  right: var(--edge);
  bottom: 40px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 20px;
  max-width: 980px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.layers button {
  --p: 0;
  position: relative;
  width: 100%;
  min-height: 72px;
  padding: 16px 0 8px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 4px;
  align-content: start;
}
.layers button::before,
.layers button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--hair-strong);
}
.layers button::after {
  height: 2px;
  top: -0.5px;
  background: var(--green);
  transform: scaleX(var(--p));
  transform-origin: left;
}
.layers button.is-on::after {
  transform: scaleX(max(var(--p), 0.04));
}
.layers__n {
  font: 500 12px/20px var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.layers__name {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  transition: color 0.2s;
}
.layers__short,
.layers-now {
  display: none;
}
.layers__fmt {
  grid-column: 2;
  font: 400 12px/16px var(--font-mono);
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.4s,
    transform 0.4s var(--ease);
}
.layers button:hover .layers__name,
.layers button.is-on .layers__name {
  color: var(--ink);
}
.layers button.is-on .layers__n {
  color: var(--accent-text);
}
.layers button.is-on .layers__fmt {
  opacity: 1;
  transform: none;
}

/* Map furniture: north arrow and a live scale bar */
.hud {
  position: absolute;
  z-index: 3;
  right: calc(var(--gutter) + 18px);
  bottom: 48px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--heading);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s 0.6s;
}
.hero.is-ready .hud {
  opacity: 1;
}
.hud__scale {
  display: grid;
  gap: 7px;
  justify-items: start;
}
.hud__bar {
  height: 6px;
  border: 1px solid var(--heading);
  border-top: 0;
  width: 80px;
  transition: width 0.25s linear;
}
.hud__north {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
}
.hud__north svg {
  width: 14px;
  height: 14px;
}

.hero__note {
  position: absolute;
  z-index: 3;
  right: calc(var(--gutter) + 18px);
  top: 112px;
  margin: 0;
  font: 500 11px/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.hero__load {
  position: absolute;
  z-index: 2;
  left: 62%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.5s;
}
.hero__load b {
  font-weight: 500;
  color: var(--ink);
}
.hero.is-ready .hero__load,
.hero.is-static .hero__load {
  opacity: 0;
}

/* No WebGL: keep the copy, show a quiet still of the idea */
.hero.is-static .layers,
.hero.is-static .hud {
  display: none;
}

.after {
  padding: 80px var(--gutter);
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--hair);
}

@media (max-width: 1080px) {
  .nav__links {
    gap: 20px;
  }
  .layers {
    gap: 0 14px;
  }
}

@media (max-width: 820px) {
  .nav {
    height: 64px;
    gap: 12px;
  }
  .nav__logo {
    width: 112px;
  }
  .nav__links {
    display: none;
  }
  .nav__actions {
    margin-left: auto;
  }
  .nav__signin {
    display: none !important;
  }
  .nav .nav__menu {
    display: inline-flex;
    width: 44px;
    padding: 0;
  }
  .nav.is-open .nav__links {
    display: grid;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
  }
  .nav.is-open .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--hair);
  }
  .hero {
    min-height: 640px;
  }
  .hero__frame {
    display: none;
  }
  .hero__veil {
    background: linear-gradient(
      180deg,
      rgba(233, 239, 240, 0.96) 0%,
      rgba(233, 239, 240, 0.9) 40%,
      rgba(233, 239, 240, 0) 58%
    );
  }
  .hero__inner {
    align-items: flex-start;
    padding-top: 96px;
  }
  .hero__copy {
    margin-top: 0;
    padding-top: 0;
  }
  .eyebrow {
    margin-bottom: 16px;
  }
  .lead {
    font-size: 16px;
    margin-top: 16px;
  }
  .ctas {
    margin-top: 22px;
  }
  .btn--lg {
    height: 48px;
    padding: 0 18px;
  }
  .layers {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    left: 0;
    right: 0;
    bottom: 18px;
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .layers::-webkit-scrollbar {
    display: none;
  }
  .layers li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .layers button {
    width: auto;
    min-width: 136px;
    min-height: 64px;
  }
  .hud {
    display: none;
  }
  .hero__note {
    display: none;
  }
  .hero__load {
    left: 50%;
    top: 68%;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 .line > span,
  .lead,
  .ctas {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .hero canvas {
    transition: none;
  }
}

/* The GeoVerse wordmark, outlined, behind the site */
.hero__mark {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(118vw, 1900px);
  transform: translate(-36%, -52%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s 0.4s ease;
}
.hero.is-ready .hero__mark,
.hero.is-static .hero__mark {
  opacity: 1;
}
.mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.mark path {
  fill: none;
  stroke: rgba(60, 78, 80, 0.16);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.mark .mark__v {
  stroke: rgba(120, 184, 41, 0.55);
}

/* Loading: a counter and the real steps, inside the scene area only */
.boot {
  position: absolute;
  z-index: 2;
  right: calc(var(--gutter) + 40px);
  bottom: 140px;
  display: grid;
  justify-items: end;
  gap: 18px;
  pointer-events: none;
  transition:
    opacity 0.6s 0.5s ease,
    transform 0.9s 0.5s var(--ease);
}
.boot__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 11px/1.9 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.boot__steps li {
  animation: fade 0.4s ease both;
}
.boot__n {
  font-weight: 600;
  font-size: clamp(72px, 10vw, 168px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero.is-ready .boot {
  opacity: 0;
  transform: translateY(-16px);
}

/* Survey crosshair that follows the mouse, with site coordinates */
.xhair {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.xhair.is-on {
  opacity: 1;
}
.xhair__h,
.xhair__v {
  position: absolute;
  background: rgba(60, 78, 80, 0.28);
}
.xhair__h {
  left: 0;
  right: 0;
  height: 1px;
  top: var(--y, 0);
}
.xhair__v {
  top: 0;
  bottom: 0;
  width: 1px;
  left: var(--x, 0);
}
.xhair__label {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  transform: translate(12px, 10px);
  padding: 5px 8px;
  background: rgba(244, 248, 248, 0.88);
  border: 1px solid var(--hair);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.hero.is-dragging .xhair {
  opacity: 0;
}

/* Scroll ruler on the right edge */
.ruler {
  position: absolute;
  z-index: 3;
  right: calc(var(--gutter) - 2px);
  top: 50%;
  height: 34vh;
  transform: translateY(-50%);
  width: 1px;
  background: var(--hair-strong);
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  pointer-events: none;
}
.ruler i {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleY(var(--scroll, 0));
  transform-origin: top;
}
.ruler span {
  position: relative;
  font: 500 10px/1 var(--font-mono);
  color: var(--muted);
  transform: translateX(-28px);
}
.ruler span::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 4px;
  width: 7px;
  height: 1px;
  background: var(--hair-strong);
}
.hero[data-layer='ortho'] .ruler span:nth-of-type(1),
.hero[data-layer='points'] .ruler span:nth-of-type(2),
.hero[data-layer='mesh'] .ruler span:nth-of-type(3),
.hero[data-layer='bim'] .ruler span:nth-of-type(4),
.hero[data-layer='gis'] .ruler span:nth-of-type(5) {
  color: var(--accent-text);
}

@media (max-width: 820px) {
  .stage {
    height: 400vh;
  }
  .hero__mark {
    width: 220vw;
    top: 72%;
    transform: translate(-40%, -50%);
  }
  .boot {
    right: var(--gutter);
    bottom: 120px;
  }
  .boot__n {
    font-size: 72px;
  }
  .ruler,
  .xhair {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot,
  .hero__mark {
    transition: none;
  }
}

/* Phones: compact copy, the scene in the space between, all five layers on one row */
@media (max-width: 820px) {
  .hero__inner {
    padding-top: 84px;
  }
  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }
  h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
  .lead {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 12px;
    max-width: 36ch;
  }
  .ctas {
    margin-top: 18px;
    gap: 10px;
  }
  .ctas .btn {
    height: 46px;
    padding: 0 16px;
    font-size: 15px;
  }
  .layers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 6px;
    overflow: visible;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 46px;
    padding: 0;
  }
  .layers li {
    flex: none;
  }
  .layers button {
    min-width: 0;
    min-height: 48px;
    padding: 12px 0 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .layers__name,
  .layers__fmt {
    display: none;
  }
  .layers__short {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--muted);
  }
  .layers button.is-on .layers__short {
    color: var(--ink);
  }
  .layers__n {
    font-size: 10px;
    line-height: 14px;
  }
  .layers-now {
    display: block;
    position: absolute;
    z-index: 3;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 18px;
    margin: 0;
    font: 500 11px/1.4 var(--font-mono);
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero__mark {
    width: 180vw;
    top: 66%;
    opacity: 0.7;
  }
  .boot {
    bottom: 130px;
  }
}

@media (max-width: 820px) and (max-height: 700px) {
  .lead {
    display: none;
  }
}

/* Why GeoVerse: a dark, pinned section. Scrolling strikes through the old way, then gathers it into one link */
.why {
  --bedrock: #111c1d;
  --panel: #1a2729;
  --on-dark: #e9eff0;
  --on-dark-muted: #9fb2b4;
  --line-dark: rgba(233, 239, 240, 0.12);
  position: relative;
  height: 320vh;
  background: var(--bedrock);
  color: var(--on-dark);
}
.why__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-left: max(var(--edge), env(safe-area-inset-left, 0px));
  padding-right: max(var(--edge), env(safe-area-inset-right, 0px));
  overflow: hidden;
  overflow: clip;
}
.eyebrow--dark {
  color: var(--on-dark-muted);
}
.why__text,
.why__now {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(30px, 3.5vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.why__text {
  font-weight: 400;
}
.strike {
  color: rgb(233 239 240 / calc(1 - var(--k, 0) * 0.6));
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 60% / calc(var(--k, 0) * 100%) 0.09em;
}
.why__now {
  margin-top: 28px;
  font-weight: 600;
  color: var(--green);
  opacity: var(--c, 0);
  transform: translateY(calc((1 - var(--c, 0)) * 24px));
}

.why__stage {
  position: relative;
  height: min(560px, 72svh);
  font-size: 13px;
}
.old {
  position: absolute;
  opacity: calc((1 - var(--k, 0) * 0.55) * (1 - var(--c, 0)));
  filter: grayscale(var(--k, 0));
}
.old--link {
  top: 2%;
  left: 2%;
  width: min(300px, 64%);
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  transform: translate(calc(var(--c, 0) * 110px), calc(var(--c, 0) * 170px)) rotate(-2deg);
}
.old__tag,
.file em {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-style: normal;
}
.old__url {
  font: 500 14px/1.3 var(--font-mono);
  color: var(--on-dark);
  overflow-wrap: anywhere;
}
.old__timer {
  font-size: 13px;
  color: var(--on-dark-muted);
}
.old__timer b {
  font: 500 15px/1 var(--font-mono);
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.old--files {
  top: 26%;
  right: 0;
  width: min(360px, 74%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  transform: translate(calc(var(--c, 0) * -130px), calc(var(--c, 0) * 50px));
}
.file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  font: 500 12px/1.3 var(--font-mono);
  overflow-wrap: anywhere;
  transform: rotate(var(--r));
}
.file b {
  grid-row: span 2;
  padding: 6px 7px;
  border-radius: 3px;
  background: rgba(233, 239, 240, 0.1);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
}
.file em {
  grid-column: 2;
  text-transform: none;
  letter-spacing: 0;
}
.old--mail {
  bottom: 2%;
  left: 6%;
  width: min(320px, 68%);
  display: grid;
  transform: translate(calc(var(--c, 0) * 110px), calc(var(--c, 0) * -150px));
}
.inbox__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.inbox__head svg {
  width: 16px;
  height: 16px;
}
.inbox__head em {
  font-style: normal;
  padding: 3px 6px;
  border-radius: 10px;
  background: rgba(233, 239, 240, 0.12);
  color: var(--on-dark);
  text-transform: none;
  letter-spacing: 0;
}
.mail {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.7);
}
.mail::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--green);
}
.mail + .mail {
  margin-top: -6px;
}
.mail:nth-of-type(2) {
  margin-left: 18px;
  transform: rotate(1.5deg);
}
.mail:nth-of-type(3) {
  margin-left: 6px;
  transform: rotate(-1deg);
}
.mail i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font: 600 13px/1 var(--font-sans);
  font-style: normal;
}
.mail p {
  display: grid;
  gap: 2px;
  margin: 0;
  min-width: 0;
}
.mail b {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
}
.mail span {
  font-size: 12px;
  color: var(--on-dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail time {
  align-self: start;
  font: 500 11px/1.4 var(--font-mono);
  color: var(--on-dark-muted);
}

.project {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, 96%);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfdfd;
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 120px -20px rgba(120, 184, 41, 0.35);
  opacity: var(--c, 0);
  transform: translate(-50%, -50%) scale(calc(0.9 + var(--c, 0) * 0.1));
}
.project__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #eef3f3;
  border-bottom: 1px solid var(--hair);
}
.project__lights {
  display: flex;
  gap: 6px;
  flex: none;
}
.project__lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9d4d5;
}
.project__addr {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--hair);
  font: 500 12px/1 var(--font-mono);
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
}
.project__addr svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--accent-text);
}
.project__cover {
  position: relative;
  height: 150px;
  overflow: hidden;
}
.project__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  transform: scale(1.06);
}
.project__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 28, 29, 0) 35%, rgba(17, 28, 29, 0.78) 100%);
}
.project__rel {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 20px;
  background: rgba(17, 28, 29, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 600 11px/1 var(--font-mono);
}
.project__rel i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(120, 184, 41, 0.3);
}
.project__name {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 12px;
  display: grid;
  gap: 2px;
  color: #fff;
}
.project__name b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.project__name span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}
.project__body {
  display: grid;
  gap: 16px;
  padding: 16px;
}
.project__layers,
.project__log {
  margin: 0;
  padding: 0;
  list-style: none;
}
.project__layers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project__layers li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 20px;
  background: #f0f4f4;
  border: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 500;
}
.project__layers li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.project__log {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 18px;
}
.project__log::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--hair-strong);
}
.project__log li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}
.project__log li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--hair-strong);
  box-sizing: border-box;
}
.project__log li.is-now::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(120, 184, 41, 0.25);
}
.project__log li.is-now {
  color: var(--ink);
}
.project__log b {
  font: 600 11px/1.6 var(--font-mono);
  color: var(--ink);
}
.project__log time {
  font: 500 11px/1.6 var(--font-mono);
  color: var(--muted);
}
.project__open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: 6px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  font-size: 15px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.project__open svg {
  width: 16px;
  height: 16px;
}
.project__note {
  margin-top: -6px;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .why {
    height: 300vh;
  }
  .why__pin {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding-top: 84px;
    padding-bottom: 24px;
  }
  .why__text,
  .why__now {
    font-size: clamp(24px, 6.6vw, 32px);
  }
  .why__now {
    margin-top: 14px;
  }
  .why__stage {
    height: 100%;
    font-size: 12px;
  }
  .old--mail {
    left: 0;
    bottom: 0;
    width: 86%;
  }
  .old--files {
    top: 26%;
    width: 80%;
    gap: 8px;
  }
  .file {
    padding: 9px;
    font-size: 11px;
  }
  .file em {
    display: none;
  }
  .project__cover {
    height: 110px;
  }
  .project__body {
    gap: 12px;
    padding: 12px;
  }
  .project__log li:last-child {
    display: none;
  }
}

/* "Now your client opens one project link": words arrive one by one, the link arrives last as a real link */
.why__now .w,
.why__link {
  display: inline-block;
  opacity: clamp(0, calc(var(--c, 0) * 6 - var(--i) * 0.9), 1);
  transform: translateY(calc((1 - clamp(0, calc(var(--c, 0) * 6 - var(--i) * 0.9), 1)) * 0.45em));
}
.why__now {
  color: #fff;
}
.why__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-top: 0.12em;
  padding: 0.04em 0.36em 0.1em 0.28em;
  border-radius: 0.22em;
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 0.3em 0.9em -0.3em rgba(120, 184, 41, 0.75);
  white-space: nowrap;
}
.why__link svg {
  width: 0.72em;
  height: 0.72em;
  flex: none;
}

/* Short phones: the project card must fit under the copy at the end of Why GeoVerse */
@media (max-width: 820px) and (max-height: 720px) {
  .project__cover {
    height: 76px;
  }
  .project__name b {
    font-size: 16px;
  }
  .project__body {
    gap: 10px;
    padding: 10px 12px;
  }
  .project__open {
    height: 40px;
  }
  .project__note {
    display: none;
  }
}
