:root {
  --ink: #07112d;
  --muted: #58657c;
  --line: #dce2ea;
  --soft: #f3f6f9;
  --white: #ffffff;
  --lime: #b8ff29;
  --lime-dark: #6a9900;
  --radius: 18px;
  --max: 1420px;
}


/* Preserve the existing light MELTH palette and native CSS, without new dependencies. */
.platform-intro { max-width: 900px; }
.platform-intro > p { max-width: 760px; color: var(--muted); font-size: 20px; }
.platform-stories { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; margin-top: 48px; }
.platform-story { min-width: 0; }
.platform-story h3 { margin: 0; font-size: 34px; letter-spacing: -1px; }
.platform-story > p { color: var(--muted); max-width: 65ch; }
.platform-story .platform-promise { color: var(--ink); font-size: 23px; margin-top: 12px; }
.platform-story > a { margin-top: 18px; }
.platform-availability { max-width: 850px; margin-top: 38px; color: var(--muted); font-size: 15px; }
.platform-questions { max-width: 950px; margin-top: 38px; }
.platform-questions details { padding: 20px 0; border-top: 1px solid var(--line); }
.platform-questions summary { cursor: pointer; font-weight: 650; font-size: 19px; }
.platform-questions details p { color: var(--muted); max-width: 70ch; }
.platform-questions summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (max-width: 768px) {
  .platform-stories { grid-template-columns: 1fr; gap: 42px; margin-top: 32px; }
  .platform-story h3 { font-size: 30px; }
  .platform-intro > p { font-size: 18px; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(7,17,45,.09);
  backdrop-filter: blur(20px);
}
@font-face {
  font-family: "Manrope Logo";
  src: url("assets/manrope-logo-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
.brand {
  width: max-content;
  text-decoration: none;
  font-family: "Manrope Logo", sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -3px;
  line-height: 1;
}
.brand-mark { display: inline-block; width: 28px; height: 28px; margin-left: 6px; color: #6c83ff; vertical-align: top; overflow: visible; }
nav { display: flex; gap: 30px; }
nav a, footer a { text-decoration: none; }
nav a { font-size: 15px; }
nav a:hover, nav a:focus-visible, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { justify-self: end; padding: 10px 18px; border-radius: 999px; background: var(--lime); text-decoration: none; font-weight: 700; font-size: 15px; }

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: stretch;
  max-width: 1600px;
  margin: 0 auto;
}
.hero-copy { align-self: center; padding: clamp(56px, 8vw, 118px) clamp(28px, 6vw, 92px); }
.eyebrow { margin: 0 0 24px; font-size: 13px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { margin-top: 0; line-height: .98; letter-spacing: -.045em; }
h1 { margin-bottom: 28px; font-size: clamp(54px, 6.2vw, 98px); font-weight: 780; }
.hero-lead { max-width: 570px; margin: 0 0 32px; color: var(--muted); font-size: clamp(20px, 2vw, 28px); line-height: 1.35; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 750; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { color: #07112d; background: var(--lime); border-color: var(--lime); }
.button-secondary { background: var(--white); }
.hero-note { margin: 44px 0 0; color: var(--muted); font-size: 15px; }
.hero-media { position: relative; overflow: hidden; min-height: 600px; background: radial-gradient(circle at 66% 20%, rgba(184,255,41,.36), transparent 28%), linear-gradient(145deg, #eef3f7 0%, #dce5ec 100%); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.28), transparent 30%); pointer-events: none; }
.media-label { position: absolute; right: 28px; bottom: 24px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.86); font-size: 14px; backdrop-filter: blur(14px); }
.hero-orbit { position: absolute; left: 50%; bottom: 8%; width: min(72%, 560px); aspect-ratio: 1; border: 1px solid rgba(7,17,45,.1); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 34px rgba(255,255,255,.18), 0 0 0 68px rgba(255,255,255,.1); }
.hero-avatar { position: absolute; z-index: 1; left: 50%; bottom: -3%; width: auto; max-width: none; height: 94%; object-fit: contain; filter: drop-shadow(0 28px 34px rgba(7,17,45,.18)); animation: hero-avatar-float 4.8s ease-in-out infinite; transform-origin: 50% 90%; }
.hero-avatar-3d { width: min(82%, 720px); max-width: 82%; background: transparent; --poster-color: transparent; filter: drop-shadow(0 28px 34px rgba(7,17,45,.18)); cursor: grab; }
.hero-avatar-3d:active { cursor: grabbing; }
.avatar-hint { position: absolute; z-index: 3; left: 22px; top: 22px; padding: 8px 12px; border-radius: 999px; background: rgba(7,17,45,.78); color: #fff; font-size: 12px; letter-spacing: .01em; pointer-events: none; }
.hero-avatar-3d.is-tickled { animation: avatar-tickle .82s cubic-bezier(.2,.75,.25,1); }
@keyframes avatar-tickle {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0); }
  24% { transform: translateX(-50%) translateY(-44px) rotate(-3deg) scale(1.025); }
  48% { transform: translateX(-50%) translateY(0) rotate(2deg) scale(.99); }
  68% { transform: translateX(-50%) translateY(-18px) rotate(-1deg) scale(1.01); }
}
.hero-speech { position: absolute; z-index: 3; top: 9%; right: 5%; width: 260px; padding: 17px 19px; border: 1px solid rgba(7,17,45,.1); border-radius: 22px 22px 5px 22px; background: rgba(255,255,255,.94); box-shadow: 0 18px 48px rgba(7,17,45,.14); backdrop-filter: blur(16px); }
.hero-speech strong, .hero-speech span { display: block; }
.hero-speech strong { margin-bottom: 6px; font-size: 17px; }
.hero-speech span { min-height: 63px; color: var(--muted); font-size: 14px; line-height: 1.5; transition: opacity .25s ease, transform .25s ease; }
.hero-speech span.is-changing { opacity: 0; transform: translateY(5px); }
@keyframes hero-avatar-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-.25deg); }
  50% { transform: translateX(-50%) translateY(-9px) rotate(.4deg); }
}

.section { max-width: var(--max); margin: 0 auto; padding: clamp(92px, 10vw, 150px) 28px; }
.statement { max-width: var(--max); margin: 0 auto; padding: 84px 28px 46px; border-bottom: 1px solid var(--line); }
.statement p { margin: 0 0 8px; color: var(--muted); }
.statement h2 { max-width: 1100px; margin-bottom: 0; font-size: clamp(40px, 5.5vw, 78px); font-weight: 620; }
.section-heading { max-width: 820px; margin-bottom: 58px; }
.section-heading h2, .flow h2, .use-cases h2, .founder h2, .cta h2 { margin-bottom: 22px; font-size: clamp(42px, 5vw, 76px); font-weight: 680; }
.section-heading p, .flow-copy p, .founder-copy > p, .cta-content p { max-width: 650px; color: var(--muted); font-size: 20px; }

.website-journey { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(48px, 8vw, 120px); }
.journey-intro { position: sticky; top: 112px; align-self: start; }
.journey-intro h2 { margin-bottom: 22px; font-size: clamp(42px, 5vw, 74px); font-weight: 680; }
.journey-intro > p:last-child { color: var(--muted); font-size: 20px; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.journey-step { min-height: 238px; padding: 26px 0; border-top: 1px solid var(--line); }
.journey-step span { color: var(--lime-dark); font-weight: 800; }
.journey-step h3 { margin: 24px 0 10px; font-size: 27px; }
.journey-step p { margin: 0; color: var(--muted); }

.services-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(42px, 7vw, 102px); align-items: start; }
.services-image { position: sticky; top: 110px; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.services-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.services-image figcaption { position: absolute; left: 20px; bottom: 20px; padding: 8px 13px; border-radius: 999px; color: var(--white); background: rgba(7,17,45,.78); font-size: 13px; }
.service { display: grid; grid-template-columns: 52px 1fr; padding: 4px 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.service-index { grid-row: 1 / 3; color: var(--lime-dark); font-weight: 800; }
.service h3 { margin-bottom: 10px; font-size: 30px; }
.service p { margin: 0; color: var(--muted); }

.flow { max-width: none; padding-left: max(28px, calc((100vw - var(--max)) / 2)); padding-right: max(28px, calc((100vw - var(--max)) / 2)); background: var(--soft); overflow: hidden; }
.flow-copy { max-width: 720px; }
.flow-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 76px; }
.flow-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 38px; height: 3px; background: linear-gradient(90deg, #cad2dd, var(--lime), #cad2dd); }
.flow-node { position: relative; display: grid; place-items: center; align-content: start; min-height: 178px; text-align: center; }
.flow-node::before { content: ""; z-index: 1; width: 78px; height: 78px; margin-bottom: 20px; border: 1px solid #cbd4df; border-radius: 50%; background: rgba(255,255,255,.88); box-shadow: 0 16px 42px rgba(7,17,45,.08); }
.flow-node-core::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 8px rgba(184,255,41,.35), 0 18px 44px rgba(7,17,45,.17); }
.flow-node strong { font-size: 21px; }
.flow-node span { max-width: 180px; color: var(--muted); font-size: 14px; }

.use-cases { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(46px, 8vw, 120px); align-items: center; }
.cases-visual { overflow: hidden; border-radius: var(--radius); }
.cases-visual img { width: 100%; min-height: 620px; object-fit: cover; }
.case { padding: 28px 0; border-top: 1px solid var(--line); }
.case h3 { margin-bottom: 8px; font-size: 28px; }
.case p { margin: 0; color: var(--muted); }

.founder { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.text-link { display: inline-block; margin-top: 18px; color: var(--ink); font-weight: 780; text-underline-offset: 5px; }
.avatar-stage { position: relative; min-height: 620px; display: grid; place-items: end center; overflow: hidden; border-radius: var(--radius); background: radial-gradient(circle at 65% 20%, rgba(184,255,41,.55), transparent 35%), linear-gradient(155deg,#eef3f7,#d9e1ea); }
.founder-avatar { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 28px rgba(7,17,45,.16)); }
.avatar-caption { position: absolute; left: 22px; bottom: 20px; display: grid; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.avatar-caption span { color: var(--muted); font-size: 14px; }

.cta { position: relative; max-width: none; min-height: 760px; display: grid; place-items: center; overflow: hidden; text-align: center; padding-left: 28px; padding-right: 28px; }
.cta-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 48%, rgba(255,255,255,.35) 100%); }
.cta-content { display: grid; justify-items: center; max-width: 980px; }
.cta-content p { max-width: 720px; margin: 0 0 30px; }

footer { max-width: var(--max); margin: 0 auto; min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 30px 28px; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 14px; }
.footer-contact { justify-self: end; display: grid; gap: 8px; font-style: normal; font-size: 14px; line-height: 1.6; }
.footer-contact > span { color: var(--muted); }
.founder-copy h3 { margin-top: 28px; font-size: 22px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .services-layout, .use-cases, .founder { grid-template-columns: 1fr; }
  .website-journey { grid-template-columns: 1fr; }
  .journey-intro { position: relative; top: auto; }
  .services-image { position: relative; top: auto; }
  .services-image img { aspect-ratio: 16/10; }
  .flow-track { grid-template-columns: 1fr; gap: 26px; margin-top: 52px; }
  .flow-track::before { left: 38px; right: auto; top: 5%; bottom: 5%; width: 3px; height: auto; background: linear-gradient(#cad2dd,var(--lime),#cad2dd); }
  .flow-node { min-height: auto; grid-template-columns: 96px 1fr; justify-items: start; text-align: left; }
  .flow-node::before { grid-row: 1 / 3; margin: 0 18px 0 0; }
  .cases-visual img { min-height: 450px; }
  .avatar-stage { min-height: 540px; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-top: 70px; padding-bottom: 58px; }
  .hero-media { min-height: 520px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { height: 64px; padding: 0 18px; }
  .brand { font-size: 34px; letter-spacing: -2.55px; }
  .brand-mark { width: 24px; height: 24px; margin-left: 5px; }
  .nav-cta { padding: 9px 13px; font-size: 13px; }
  .hero-copy, .section, .statement { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-media { min-height: 380px; }
  .media-label { left: 16px; right: 16px; bottom: 16px; text-align: center; font-size: 12px; }
  .avatar-hint { left: 10px; top: 10px; bottom: auto; font-size: 10px; }
  .hero-avatar { height: 88%; left: 38%; }
  .hero-speech { top: 18px; right: 8px; width: min(168px, 47vw); padding: 11px 12px; }
  .hero-speech strong { font-size: 15px; }
  .hero-speech span { min-height: 54px; font-size: 12px; }
  .service { grid-template-columns: 38px 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
  .service h3 { font-size: 25px; }
  .avatar-stage { min-height: 450px; }
  footer { grid-template-columns: 1fr; align-items: start; padding: 42px 20px; }
  .footer-contact { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
  .hero-avatar { animation: none; transform: translateX(-50%); }
  video { display: block; }
}

/* Character films: preserve the existing brand and copy. */
.scene-video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #f2f2f2; }
.hero-media--film { display: flex; flex-direction: column; justify-content: center; min-height: 0; background: #f2f2f2; }
.hero-media--film::after { display: none; }
.hero-media--film .scene-video { align-self: center; max-height: 720px; width: min(100%, 720px); max-width: 100%; margin-top: 110px; }
.hero-media--film .hero-speech { position: absolute; top: 22px; right: 24px; width: 280px; max-width: calc(100% - 40px); margin: 0; }
.hero-media--film .media-label { position: absolute; z-index: 3; left: 50%; right: auto; bottom: 24px; width: max-content; max-width: calc(100% - 32px); margin: 0; transform: translateX(-50%); text-align: center; }
.services-image--film figcaption { position: static; padding: 16px 20px; border-radius: 0; color: var(--muted); background: var(--soft); }
.avatar-stage--film { display: block; min-height: 0; background: var(--soft); }
.avatar-stage--film .avatar-caption { position: static; margin: 0; padding: 20px 24px; border-radius: 0; background: var(--soft); }
@media (max-width: 640px) {
  .hero-media--film .scene-video { width: 100%; max-height: none; margin-top: 164px; }
  .hero-media--film .hero-speech { top: 16px; right: 16px; width: 280px; padding: 16px; }
  .hero-media--film .hero-speech strong { font-size: 19px; }
  .hero-media--film .hero-speech span { font-size: 14px; }
}
@media (min-width: 761px) {
  .hero-copy { padding: 64px clamp(28px, 4vw, 64px); }
  .hero-copy h1 { font-size: clamp(54px, 5.2vw, 82px); }
}
