/* EvoLab research-infrastructure visual system
   Loaded after the legacy stylesheet so the orbit component can stay intact. */

:root {
  --paper: #fff;
  --paper-soft: #f7f8f7;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --green: #2f7d6d;
  --green-dark: #175f54;
  --coral: #dc7357;
  --line: #d9dedb;
  --line-strong: #c5cdc8;
}

html { scroll-padding-top: 74px; }

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.page-shell { background: var(--paper); }

.wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }

.brand span {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--green-dark); }

.site-nav {
  gap: 8px;
}

.site-nav a {
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.site-nav a.is-active {
  border-color: rgba(47, 125, 109, .28);
  color: var(--green-dark);
  background: rgba(47, 125, 109, .07);
}

.language-switcher {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: none;
}

.language-switcher button {
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.language-switcher button.is-active,
.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--green-dark);
  box-shadow: none;
}

.hero {
  min-height: 0;
  grid-template-columns: minmax(0, .94fr) minmax(520px, 1.06fr);
  gap: 68px;
  padding-block: 80px 88px;
}

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

.eyebrow {
  margin: 0 0 22px;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .025em;
  text-transform: none;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(48px, 4.4vw, 64px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.hero h1 em {
  display: inline;
  color: var(--green);
  font-style: normal;
  font-weight: inherit;
}

.hero-lede {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.product-section,
.carriers-section { padding-block: 112px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: end;
  gap: 90px;
  margin-bottom: 48px;
}

.section-heading h2,
.carriers-intro h2,
.architecture-copy h2 {
  margin: 0;
  font-size: clamp(40px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.section-heading > p,
.carriers-intro > p:last-child,
.architecture-copy > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
}

.frame-bar {
  min-height: 48px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper-soft);
  font-size: 12px;
  letter-spacing: .045em;
}

.frame-state { color: var(--green-dark); }
.product-frame img { display: block; width: 100%; }

.product-caption {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
}

.product-caption i { width: 28px; height: 1px; background: var(--line-strong); }

.motion-enabled .product-frame,
.motion-enabled .product-frame:hover { transform: none; box-shadow: none; }

.carriers-section {
  display: grid;
  grid-template-columns: minmax(270px, .38fr) minmax(0, .62fr);
  align-items: start;
  gap: 90px;
  border-top: 1px solid var(--line);
}

.carriers-intro {
  position: sticky;
  top: 112px;
  max-width: 400px;
}

.carriers-intro > p:last-child { margin-top: 28px; }
.carrier-stack { border-top: 1px solid var(--line-strong); }

.carrier-stack article {
  min-height: 0;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 38px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.carrier-stack article:hover { transform: none; background: var(--paper-soft); }

.carrier-mark {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper-soft);
  box-shadow: none;
  transform: scale(.76);
  transform-origin: top left;
}

.carrier-stack article:hover .carrier-mark { transform: scale(.76); }

.carrier-stack small {
  display: block;
  margin-bottom: 11px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
}

.carrier-stack h3 {
  margin: 0;
  font-size: 29px;
  font-weight: 690;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.carrier-stack article:hover h3 { color: var(--ink); }

.carrier-stack article > div:last-child > p {
  max-width: 760px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.architecture-section {
  padding-block: 104px;
  border-block: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-soft);
}

.architecture-grid {
  grid-template-columns: minmax(300px, .42fr) minmax(0, .58fr);
  gap: 100px;
}

.architecture-copy .eyebrow { color: var(--green-dark); }
.architecture-copy > p:last-child { margin-top: 28px; }

.architecture-map {
  display: grid;
  grid-template-columns: 1fr 154px 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
}

.architecture-map article {
  min-height: 220px;
  padding: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.architecture-map article small { color: var(--green-dark); }
.architecture-map article h3 { margin-top: 36px; font-size: 23px; }
.architecture-map article p { color: var(--ink-soft); }

.connection {
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-inline: 1px solid var(--line);
  color: var(--ink-faint);
  background: var(--paper-soft);
}

.connection span { width: 1px; height: 26px; background: var(--line-strong); }

.connection b {
  max-width: 126px;
  text-align: center;
  font-size: 9px;
  line-height: 1.45;
  white-space: normal;
}

.closing-section {
  min-height: 0;
  padding-block: 108px;
  text-align: left;
}

.closing-symbol { width: 46px; height: 46px; margin: 0 0 32px; }

.closing-section > p {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .025em;
}

.closing-section h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.closing-meta {
  justify-content: flex-start;
  margin-top: 34px;
  color: var(--ink-faint);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.footer-inner { min-height: 110px; }
.footer-brand img { width: 28px; height: 28px; filter: none; }
.footer-brand span { font-size: 17px; }
.footer-inner p,
.footer-inner small { color: var(--ink-faint); }

.footer-context {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-context p { margin: 0; }

.footer-affiliation-label {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-faint);
  font-size: 12px;
}

.footer-lab-link {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-lab-link:hover,
.footer-lab-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 760px; }
  .hero-orbit { justify-self: center; }

  .section-heading,
  .architecture-grid { grid-template-columns: 1fr; gap: 34px; }

  .carriers-section { grid-template-columns: 1fr; gap: 54px; }
  .carriers-intro { position: static; max-width: 720px; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 36px), 1240px); }

  .site-header,
  .site-header::before { min-height: 64px; height: 64px; }

  .site-nav { display: flex; }
  .header-end { gap: 12px; }
  .brand img { width: 30px; height: 30px; }

  .hero { padding-block: 58px 64px; }
  .hero h1 { font-size: clamp(42px, 12vw, 52px); }
  .hero-lede { margin-top: 24px; font-size: 17px; }
  .product-section,
  .carriers-section,
  .architecture-section,
  .closing-section { padding-block: 76px; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 34px;
  }

  .section-heading h2,
  .carriers-intro h2,
  .architecture-copy h2 { font-size: 39px; }

  .product-caption { flex-wrap: wrap; overflow: visible; white-space: normal; }

  .carriers-section { gap: 42px; }

  .carrier-stack article {
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .carrier-mark,
  .carrier-stack article:hover .carrier-mark { transform: scale(.58); }
  .carrier-stack h3 { font-size: 25px; }
  .carrier-stack article > div:last-child > p { font-size: 15px; }

  .architecture-map { grid-template-columns: 1fr; }
  .architecture-map article { min-height: 180px; }

  .connection {
    min-height: 78px;
    flex-direction: row;
    border: 0;
    border-block: 1px solid var(--line);
  }

  .connection span { width: 28px; height: 1px; }
  .closing-section h2 { font-size: 43px; }
  .footer-inner { min-height: 150px; }
  .footer-context { align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; }
}

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

/* Spatial evolution system: anchored HUD labels around the EvoLab loop. */
.hero-orbit {
  isolation: isolate;
  perspective: 900px;
}

.orbit-grid {
  display: block;
  position: absolute;
  inset: 12% 8%;
  z-index: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(23, 95, 84, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 95, 84, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 70%);
  pointer-events: none;
}

.orbit-symbol { z-index: 1; }

.orbit-symbol img {
  opacity: .9;
  transition: opacity 800ms ease;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring-large {
  width: 450px;
  height: 450px;
  border: 1px solid rgba(23, 95, 84, .2);
  transform: translate(-50%, -50%);
}

.orbit-ring-small {
  width: 356px;
  height: 356px;
  border: 1px dashed rgba(63, 111, 150, .18);
  transform: translate(-50%, -50%);
}

.orbit-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border: 1px solid rgba(23, 95, 84, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
}

.orbit-ring-small::before {
  width: 4px;
  height: 4px;
  border-color: rgba(63, 111, 150, .62);
}

.orbit-core { z-index: 4; }

.orbit-node,
.orbit-node:nth-of-type(even) {
  --node-link: rgba(23, 95, 84, .34);
  --link-w: 1px;
  --link-h: 34px;
  z-index: 5;
  min-width: 156px;
  min-height: 0;
  padding: 10px 14px 11px;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 3px;
  overflow: visible;
  border: 1px solid rgba(23, 95, 84, .14);
  border-left: 1px solid rgba(23, 95, 84, .34);
  border-radius: 8px;
  background: rgba(248, 251, 250, .62);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.node-run {
  top: 24px;
  right: auto;
  bottom: auto;
  left: 50%;
  translate: -50% 0;
}

.node-capture {
  top: 50%;
  right: -4px;
  bottom: auto;
  left: auto;
  translate: 0 -50%;
}

.node-evolve {
  top: auto;
  right: auto;
  bottom: 20px;
  left: 50%;
  translate: -50% 0;
}

.node-continue {
  top: 50%;
  right: auto;
  bottom: auto;
  left: -4px;
  translate: 0 -50%;
}

.motion-enabled .orbit-node {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  will-change: translate;
  transition:
    scale 420ms cubic-bezier(.2, .75, .2, 1),
    border-color 320ms ease,
    background-color 320ms ease;
}

.motion-enabled .node-run { top: 24px; left: 50%; }
.motion-enabled .node-capture { top: 50%; right: -4px; }
.motion-enabled .node-evolve { bottom: 20px; left: 50%; }
.motion-enabled .node-continue { top: 50%; left: -4px; }

.orbit-node span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(17, 24, 39, .86);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: .09em;
}

.orbit-node span::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(23, 95, 84, .58);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
}

.orbit-node small {
  display: block;
  padding: 0 0 0 13px;
  border: 0;
  color: rgba(75, 85, 99, .72);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .01em;
}

.orbit-node::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: var(--link-w);
  height: var(--link-h);
  background: var(--node-link);
  box-shadow: none;
}

.orbit-node::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(23, 95, 84, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
}

.node-run::before { top: 100%; left: 50%; }
.node-run::after { top: calc(100% + 31px); left: calc(50% - 2px); }

.node-capture::before {
  --link-w: 38px;
  --link-h: 1px;
  top: 50%;
  right: 100%;
}
.node-capture::after { top: calc(50% - 2px); right: calc(100% + 35px); }

.node-evolve::before { right: 50%; bottom: 100%; }
.node-evolve::after { right: calc(50% - 2px); bottom: calc(100% + 31px); }

.node-continue::before {
  --link-w: 38px;
  --link-h: 1px;
  top: 50%;
  left: 100%;
}
.node-continue::after { top: calc(50% - 2px); left: calc(100% + 35px); }

.motion-enabled .orbit-node:hover {
  z-index: 8;
  scale: 1.045;
  border-color: rgba(23, 95, 84, .3);
  background: rgba(250, 252, 251, .82);
  box-shadow: none;
}

.motion-enabled .orbit-node:hover::before { width: var(--link-w); }
.hero-orbit.is-interacting .orbit-node { animation-play-state: paused; }

@keyframes spatial-flow-clockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spatial-flow-counterclockwise {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes spatial-float-run {
  0%, 100% { translate: -50% -2px; }
  50% { translate: -50% 3px; }
}

@keyframes spatial-float-side {
  0%, 100% { translate: -2px -50%; }
  50% { translate: 3px -50%; }
}

@keyframes spatial-float-evolve {
  0%, 100% { translate: -50% 2px; }
  50% { translate: -50% -3px; }
}

.motion-enabled .orbit-ring-large { animation: spatial-flow-clockwise 22s linear infinite; }
.motion-enabled .orbit-ring-small { animation: spatial-flow-counterclockwise 32s linear infinite; }
.motion-enabled .node-run { animation: spatial-float-run 7.5s ease-in-out infinite; }
.motion-enabled .node-capture { animation: spatial-float-side 8.5s ease-in-out infinite; }
.motion-enabled .node-evolve { animation: spatial-float-evolve 8s ease-in-out infinite; }
.motion-enabled .node-continue { animation: spatial-float-side 9s ease-in-out -2s infinite reverse; }

@media (max-width: 760px) {
  .orbit-grid { inset: 13% 2%; background-size: 36px 36px; }
  .orbit-ring-large { width: 382px; height: 382px; }
  .orbit-ring-small { width: 302px; height: 302px; }

  .orbit-node,
  .orbit-node:nth-of-type(even) {
    min-width: 140px;
    padding: 9px 11px 10px;
    border-radius: 7px;
  }

  .motion-enabled .node-run,
  .node-run { top: 8px; left: 50%; }

  .motion-enabled .node-capture,
  .node-capture { top: 49%; right: -18px; }

  .motion-enabled .node-evolve,
  .node-evolve { bottom: 4px; left: 50%; }

  .motion-enabled .node-continue,
  .node-continue { top: 51%; left: -18px; }

  .orbit-node span { gap: 6px; font-size: 11px; }
  .orbit-node small { padding-left: 11px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring,
  .orbit-node { animation: none !important; }
}

/* Ferris-wheel motion: larger spatial nodes travel around the loop while staying upright. */
.orbit-node,
.orbit-node:nth-of-type(even) {
  min-width: 220px;
  padding: 16px 20px 17px;
  gap: 5px;
  border-radius: 10px;
}

.orbit-node span {
  gap: 10px;
  font-size: 15px;
  letter-spacing: .085em;
}

.orbit-node span::before {
  width: 6px;
  height: 6px;
}

.orbit-node small {
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.motion-enabled .orbit-node,
.motion-enabled .node-run,
.motion-enabled .node-capture,
.motion-enabled .node-evolve,
.motion-enabled .node-continue {
  right: auto;
  bottom: auto;
  translate: 0;
  transform: none;
  animation: none;
  will-change: left, top, scale;
}

.motion-enabled .orbit-node::before {
  top: var(--link-y);
  left: var(--link-x);
  width: var(--link-length);
  height: 1px;
  transform: rotate(var(--link-angle));
  transform-origin: 0 50%;
}

.motion-enabled .orbit-node::after {
  top: calc(var(--dot-y) - 3px);
  right: auto;
  bottom: auto;
  left: calc(var(--dot-x) - 3px);
}

.motion-enabled .orbit-node:hover {
  scale: 1.07;
}

.hero-orbit.is-interacting .orbit-ring {
  animation-play-state: paused;
}

@media (max-width: 760px) {
  .orbit-node,
  .orbit-node:nth-of-type(even) {
    min-width: 164px;
    padding: 12px 14px 13px;
  }

  .orbit-node span {
    gap: 7px;
    font-size: 12.5px;
  }

  .orbit-node small {
    padding-left: 13px;
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-node,
  .orbit-node:nth-of-type(even) {
    min-width: 184px;
  }
}

/* Keep orbiting states visually independent from the circular track. */
.orbit-node::before,
.orbit-node::after {
  display: none;
}

/* The C-shaped EvoLab mark is the only outer loop. */
.orbit-ring-large {
  display: none;
}

/* Minimal homepage statement after removing the orbit illustration. */
.hero {
  min-height: clamp(460px, calc(100vh - 73px), 720px);
  padding-block: 96px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
}

.hero-copy {
  width: 100%;
  max-width: 1180px;
}

.hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 76px;
  margin-top: 56px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  padding: 10px 2px;
  border: 0;
  color: var(--ink);
  background: none;
  font-size: 32px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: .06em;
  text-decoration: none;
  transition:
    transform 320ms cubic-bezier(.2, .75, .2, 1),
    color 220ms ease,
    opacity 220ms ease;
}

.hero-links a span {
  color: var(--green);
  font-size: 36px;
  transition: color 220ms ease, transform 320ms cubic-bezier(.2, .75, .2, 1);
}

.hero-links a:hover,
.hero-links a:focus-visible {
  color: var(--green-dark);
  background: none;
  box-shadow: none;
  transform: translateY(-4px) scale(1.045);
}

.hero-links a:hover span,
.hero-links a:focus-visible span {
  color: var(--green);
  transform: translate(5px, -5px);
}

@media (max-width: 760px) {
  .hero {
    min-height: 520px;
    padding-block: 80px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
    white-space: normal;
  }

  .hero-links {
    gap: 34px;
    margin-top: 42px;
  }

  .hero-links a {
    min-width: 0;
    padding: 8px 0;
    font-size: 23px;
  }

  .hero-links a span {
    font-size: 27px;
  }
}

/* Calm, staged entrance for the homepage statement. */
.hero h1 {
  animation: hero-title-enter 1050ms cubic-bezier(.2, .75, .2, 1) 80ms both;
}

.hero h1 strong {
  position: relative;
  display: inline-block;
  color: var(--green-dark);
  font: inherit;
  animation: hero-stronger-enter 900ms cubic-bezier(.16, .82, .2, 1) 680ms both;
}

.hero-links {
  animation: hero-links-enter 720ms cubic-bezier(.2, .75, .2, 1) 1180ms both;
}

@keyframes hero-title-enter {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes hero-stronger-enter {
  from {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(14px) scale(.92);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-links-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero h1 strong,
  .hero-links {
    animation: none !important;
    filter: none;
    opacity: 1;
    transform: none;
  }
}

.product-frame img {
  cursor: default;
  transform-origin: center;
  transition: none;
}

.motion-enabled .product-frame:hover img {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-frame img,
  .product-frame:hover img {
    transform: none;
    transition: none;
  }
}

/* Keep the homepage statement and product preview in one visual sequence. */
.home-page .hero {
  min-height: 0;
  padding-block: clamp(72px, 7vw, 96px) 44px;
}

.home-page .hero-links {
  margin-top: 44px;
}

.home-page .product-section {
  padding-block: 20px clamp(88px, 9vw, 120px);
}

/* Preserve the product screenshot's native 1672:941 ratio at every viewport. */
.home-page .product-frame {
  aspect-ratio: 1672 / 941;
  box-shadow: 0 24px 64px rgba(17, 24, 39, .1);
}

.home-page .product-frame > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .home-page .hero h1 {
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 60px;
  }

  .page-shell {
    overflow-x: clip;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .site-header,
  .site-header::before {
    min-height: 60px;
    height: 60px;
  }

  .site-header {
    gap: 12px;
  }

  .brand span {
    font-size: 18px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .home-page .hero {
    min-height: 0;
    place-items: start;
    padding-block: 48px 28px;
    text-align: left;
  }

  .home-page .hero h1 {
    max-width: 12ch;
    font-size: clamp(40px, 12.2vw, 52px);
    line-height: 1.03;
    letter-spacing: -.048em;
  }

  .home-page .hero h1 em {
    display: block;
    margin-top: .12em;
  }

  .home-page .hero-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 34px;
  }

  .home-page .hero-links a {
    gap: 12px;
    font-size: 20px;
  }

  .home-page .hero-links a span {
    font-size: 24px;
  }

  .home-page .product-section {
    padding-block: 12px 64px;
  }

  .home-page .product-frame {
    aspect-ratio: 1672 / 941;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, .08);
  }

  .home-page .product-frame > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
    cursor: default;
    object-fit: contain;
    object-position: center;
    transform: none;
    transition: none;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .site-header {
    gap: 8px;
  }

  .brand span {
    font-size: 17px;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .home-page .hero {
    padding-block: 44px 24px;
  }

  .home-page .hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .home-page .hero-links {
    gap: 20px;
    margin-top: 30px;
  }

  .home-page .hero-links a {
    font-size: 18px;
  }
}
