:root {
  --bg: #050607;
  --bg-elev: #0c0e11;
  --surface: #12151a;
  --ink: #f2f4f6;
  --mute: #9aa3ad;
  --line: #242a32;
  --gent: #3dffb5;
  --gent-deep: #2ad49a;
  --on-gent: #06110c;
  --cool: #7dd3c7;
  --display: "Syne", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-cursor,
body.has-cursor * {
  cursor: none !important;
}

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

:focus-visible {
  outline: 2px solid var(--gent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--gent);
  color: var(--on-gent);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.accent {
  color: var(--gent);
}

/* Loader */
.ed-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: var(--bg);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

body:not(.is-loading) .ed-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ed-loader-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--gent);
  text-align: center;
  letter-spacing: -0.06em;
}

.ed-loader-bar {
  width: 120px;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.ed-loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gent);
  animation: load 0.9s ease-in-out infinite;
}

@keyframes load {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* Custom cursor */
.ed-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--gent);
  pointer-events: none;
  z-index: 250;
  opacity: 0;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s;
}

.ed-cursor i {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(61, 255, 181, 0.55);
  border-radius: 50%;
  transform: scale(0.6);
  opacity: 0.7;
  transition: transform 0.25s var(--ease);
}

body.has-cursor .ed-cursor {
  opacity: 1;
}

body.is-hover-grow .ed-cursor {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
}

body.is-hover-grow .ed-cursor i {
  transform: scale(1.35);
}

/* FX */
.fx-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fx-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(61, 255, 181, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(125, 211, 199, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(61, 255, 181, 0.06), transparent 55%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  to {
    transform: translate3d(2%, -1%, 0) scale(1.05);
  }
}

.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.fx-orb-a {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 12vh;
  background: rgba(61, 255, 181, 0.22);
  animation: orb-float 12s ease-in-out infinite;
}

.fx-orb-b {
  width: 320px;
  height: 320px;
  left: -60px;
  top: 55vh;
  background: rgba(125, 211, 199, 0.14);
  animation: orb-float 16s ease-in-out infinite reverse;
}

@keyframes orb-float {
  50% {
    transform: translate3d(20px, -30px, 0);
  }
}

.fx-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.fx-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.fx-spotlight {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 255, 181, 0.12) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.is-pointer .fx-spotlight {
  opacity: 1;
}

/* Chrome */
.ed-top {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--pad);
}

.ed-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.ed-top-cta {
  background: var(--gent);
  color: var(--on-gent);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.25s var(--ease);
}

.ed-top-cta:hover {
  background: var(--gent-deep);
}

.ed-chapters {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.75rem var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  scrollbar-width: none;
}

.ed-chapters::-webkit-scrollbar {
  display: none;
}

.ed-chapters.is-solid {
  border-bottom-color: var(--line);
}

.ed-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.ed-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gent));
  box-shadow: 0 0 12px rgba(61, 255, 181, 0.45);
}

.ed-chapters a {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.ed-chapters a:hover {
  color: var(--ink);
}

.ed-chapters a.is-active {
  color: var(--on-gent);
  background: var(--gent);
}

main {
  position: relative;
  z-index: 1;
}

/* Hero */
.ed-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 2.5rem;
}

.ed-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool);
}

.ed-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gent);
  box-shadow: 0 0 0 0 rgba(61, 255, 181, 0.55);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.ed-hero h1,
.ed-chapter-head h2,
.ed-cases h2,
.ed-final h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.ed-hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 7.2vw, 4.6rem);
  max-width: 13ch;
}

.ed-hero-sub {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  color: var(--mute);
  font-size: 1.1rem;
}

.ed-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s,
    box-shadow 0.25s;
}

.ed-btn-primary {
  background: var(--gent);
  color: var(--on-gent);
  box-shadow: 0 0 0 0 rgba(61, 255, 181, 0.35);
}

.ed-btn-primary:hover {
  background: var(--gent-deep);
  box-shadow: 0 10px 30px rgba(61, 255, 181, 0.18);
}

.ed-btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.ed-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}

.ed-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ed-stats strong {
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  color: var(--gent);
}

.ed-stats span {
  color: var(--mute);
  font-size: 0.82rem;
}

/* Marquee */
.ed-marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.ed-marquee-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--bg),
    transparent 12%,
    transparent 88%,
    var(--bg)
  );
}

.ed-marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  color: var(--mute);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* Chapters */
.ed-chapter {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem var(--pad) 2rem;
  scroll-margin-top: 4.5rem;
  position: relative;
}

.ed-cut {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.7;
}

.ed-chapter.in .ed-cut {
  animation: cut 0.9s var(--ease) forwards;
}

@keyframes cut {
  to {
    transform: scaleX(1);
  }
}

.ed-chapter-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.ed-chapter-label {
  margin: 0 0 0.65rem;
  color: var(--gent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ed-chapter-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
}

.ed-chapter-head p {
  margin: 0;
  color: var(--mute);
  max-width: 48ch;
}

/* Stagger words */
[data-stagger] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-stagger].is-shown .w {
  opacity: 1;
  transform: none;
}

/* Bento */
.ed-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.ed-bento-alt {
  grid-template-columns: 1fr 1.35fr;
}

.ed-bento-stack {
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 860px) {
  .ed-bento,
  .ed-bento-alt,
  .ed-bento-stack {
    grid-template-columns: 1fr;
  }
}

.ed-card {
  position: relative;
  padding: 1.35rem 1.3rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ed-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.14),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.ed-card:hover,
.ed-case:hover {
  border-color: color-mix(in srgb, var(--gent) 40%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gent) 12%, transparent),
    0 24px 60px rgba(0, 0, 0, 0.35);
}

.ed-card:hover .ed-glare,
.ed-case:hover .ed-glare {
  opacity: 1;
}

.ed-card-lg {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 280px;
}

.ed-card-wide {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .ed-card-lg {
    grid-template-columns: 1fr;
  }
}

.ed-card-featured {
  border-color: color-mix(in srgb, var(--gent) 45%, var(--line));
  background:
    radial-gradient(circle at 90% 10%, rgba(61, 255, 181, 0.14), transparent 45%),
    var(--surface);
}

.ed-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--gent);
  color: var(--on-gent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ed-card h3,
.ed-case-tag {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.ed-card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.ed-price {
  color: var(--gent) !important;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem !important;
  margin-bottom: 0.4rem !important;
}

.ed-card-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gent);
  font-weight: 700;
  font-size: 0.92rem;
}

.ed-card-link::after {
  content: " →";
}

.ed-card-copy {
  position: relative;
  z-index: 1;
}

/* Before / after */
.ed-ba-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ed-ba-toggle {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: #0a0d11;
  border: 1px solid var(--line);
}

.ed-ba-toggle button {
  border: 0;
  background: transparent;
  color: var(--mute);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ed-ba-toggle button.is-active {
  background: var(--gent);
  color: var(--on-gent);
}

.ed-ba-panel {
  display: none;
}

.ed-ba-panel.is-active {
  display: block;
}

.ed-ba-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--mute);
}

.ed-ba-panel li {
  margin-bottom: 0.35rem;
}

/* Player / demos */
.ed-player {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #070a0e;
  border: 1px solid #24303c;
}

.ed-player .ed-demo {
  opacity: 0.35;
  filter: saturate(0.7);
  transition: opacity 0.35s, filter 0.35s;
}

.ed-player.is-playing .ed-demo {
  opacity: 1;
  filter: none;
}

.ed-play {
  position: absolute;
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--gent);
  color: var(--on-gent);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, opacity 0.25s;
}

.ed-play span {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--on-gent);
  margin-left: 3px;
}

.ed-player.is-playing .ed-play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.ed-player.is-playing:hover .ed-play {
  opacity: 1;
  pointer-events: auto;
}

.ed-player.is-playing .ed-play span {
  width: 12px;
  height: 12px;
  border: 0;
  background: linear-gradient(
    90deg,
    var(--on-gent) 0 4px,
    transparent 4px 8px,
    var(--on-gent) 8px
  );
  margin: 0;
}

.ed-scrub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.ed-scrub i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gent);
}

.ed-player.is-playing .ed-scrub i {
  animation: scrub 8s linear infinite;
}

@keyframes scrub {
  to {
    width: 100%;
  }
}

.ed-demo {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.demo-window {
  width: min(100%, 360px);
  border-radius: 16px;
  background: #0a0d11;
  border: 1px solid #2a323c;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #222933;
  background: #0e1218;
}

.demo-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4450;
}

.demo-bar span:nth-child(1) {
  background: #ff5f57;
}
.demo-bar span:nth-child(2) {
  background: #febc2e;
}
.demo-bar span:nth-child(3) {
  background: #28c840;
}

.demo-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.7rem;
  color: #6b7582;
}

.demo-rows {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #12171e;
  border: 1px solid #24303c;
  font-size: 0.85rem;
}

.demo-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a5563;
}

.ed-player.is-playing .demo-row.is-done i {
  background: var(--gent);
  box-shadow: 0 0 10px rgba(61, 255, 181, 0.6);
}

.ed-player.is-playing .demo-row.is-active {
  border-color: color-mix(in srgb, var(--gent) 45%, #24303c);
  animation: row-glow 2.4s ease-in-out infinite;
}

.demo-row.is-active i {
  background: #febc2e;
}

.demo-row span {
  color: var(--mute);
  font-size: 0.78rem;
}

@keyframes row-glow {
  50% {
    box-shadow: 0 0 24px rgba(61, 255, 181, 0.12);
  }
}

.demo-pulse {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gent);
}

.ed-player.is-playing .demo-pulse {
  animation: ping 1.8s ease-out infinite;
}

.demo-mail {
  width: min(100%, 340px);
  padding: 1rem;
  border-radius: 16px;
  background: #0a0d11;
  border: 1px solid #2a323c;
}

.demo-mail-from {
  font-size: 0.78rem;
  color: var(--mute);
  margin-bottom: 0.65rem;
}

.demo-mail-draft {
  min-height: 4.5rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #12171e;
  border: 1px solid #24303c;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.demo-mail-actions {
  display: flex;
  gap: 0.45rem;
}

.pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--gent);
  color: var(--on-gent);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill.ghost {
  background: transparent;
  color: var(--mute);
  border: 1px solid var(--line);
}

.ed-mini-viz {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.chip-ok {
  background: color-mix(in srgb, var(--gent) 18%, transparent);
  color: var(--gent);
  border: 1px solid color-mix(in srgb, var(--gent) 35%, transparent);
}

.chip-warn {
  background: rgba(254, 188, 46, 0.12);
  color: #febc2e;
  border: 1px solid rgba(254, 188, 46, 0.3);
}

.ed-bars {
  align-items: flex-end;
  height: 72px;
  gap: 0.35rem;
}

.ed-bars i {
  display: block;
  width: 18px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--gent), transparent);
  opacity: 0.85;
  animation: bar-bounce 2.8s ease-in-out infinite;
}

.ed-bars i:nth-child(2) {
  animation-delay: 0.15s;
}
.ed-bars i:nth-child(3) {
  animation-delay: 0.3s;
}
.ed-bars i:nth-child(4) {
  animation-delay: 0.45s;
}
.ed-bars i:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes bar-bounce {
  50% {
    transform: scaleY(0.82);
    transform-origin: bottom;
  }
}

.ed-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: #0a0d11;
  border: 1px solid var(--line);
}

.ed-flow span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.ed-flow .accent-pill {
  background: var(--gent);
  color: var(--on-gent);
  border-color: var(--gent);
}

.ed-flow i {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gent), transparent);
  animation: dash 1.6s linear infinite;
  background-size: 200% 100%;
}

@keyframes dash {
  to {
    background-position: -200% 0;
  }
}

.ed-logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ed-logo-cloud span {
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: #0a0d11;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  animation: logo-pop 4s ease-in-out infinite;
}

.ed-logo-cloud span:nth-child(odd) {
  animation-delay: 0.4s;
}

@keyframes logo-pop {
  50% {
    border-color: color-mix(in srgb, var(--gent) 50%, var(--line));
    box-shadow: 0 0 20px rgba(61, 255, 181, 0.12);
  }
}

/* Cases */
.ed-cases {
  padding: 3rem var(--pad) 1rem;
}

.ed-cases-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.ed-cases h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.ed-cases-note {
  margin: 0 0 1.5rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.ed-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 860px) {
  .ed-cases-grid {
    grid-template-columns: 1fr;
  }
}

.ed-case {
  position: relative;
  padding: 1.35rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.ed-case-tag {
  color: var(--cool);
  font-size: 0.85rem !important;
}

.ed-case-metric {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  color: var(--gent);
  line-height: 1;
}

.ed-case-unit {
  margin: 0.25rem 0 0.75rem !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.ed-case p:last-child {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

/* Booking */
.ed-final {
  padding: 5rem var(--pad) 2rem;
}

.ed-final-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 3vw, 2rem);
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--gent) 30%, var(--line));
  background:
    radial-gradient(circle at 85% 20%, rgba(61, 255, 181, 0.16), transparent 45%),
    var(--surface);
}

.ed-final h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

.ed-final > .ed-final-inner > p {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  color: var(--mute);
}

.ed-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  max-width: 640px;
}

.ed-book label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
}

.ed-book-full {
  grid-column: 1 / -1;
}

.ed-book input,
.ed-book select {
  border: 1px solid var(--line);
  background: #0a0d11;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.ed-book input:focus,
.ed-book select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gent) 55%, var(--line));
}

.ed-book-alt {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--mute);
  font-weight: 400;
}

.ed-book-alt a {
  color: var(--gent);
}

@media (max-width: 640px) {
  .ed-book {
    grid-template-columns: 1fr;
  }
}

/* Footer hero */
.ed-foot-hero {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 5rem var(--pad) 3.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.ed-foot-mark {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 30%, rgba(61, 255, 181, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ed-foot-line {
  margin: 0 0 1.5rem;
  color: var(--mute);
  font-size: 1.15rem;
}

.ed-foot-meta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: 0.9rem;
}

.ed-foot-meta a:hover {
  color: var(--gent);
}

/* Reveal */
.ed-chapter,
.ed-hero,
.ed-final-inner,
.ed-cases,
.ed-marquee,
.ed-foot-hero {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.ed-chapter.in,
.ed-hero.in,
.ed-final-inner.in,
.ed-cases.in,
.ed-marquee.in,
.ed-foot-hero.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-mesh,
  .fx-orb,
  .ed-kicker-dot,
  .ed-bars i,
  .ed-flow i,
  .ed-logo-cloud span,
  .ed-marquee-track,
  .ed-loader-bar i,
  .ed-player.is-playing .ed-scrub i {
    animation: none !important;
  }

  .ed-chapter,
  .ed-hero,
  .ed-final-inner,
  .ed-cases,
  .ed-marquee,
  .ed-foot-hero,
  [data-stagger] .w {
    opacity: 1 !important;
    transform: none !important;
  }

  .fx-spotlight,
  .fx-particles,
  .ed-cursor {
    display: none !important;
  }

  body.has-cursor,
  body.has-cursor * {
    cursor: auto !important;
  }
}
