/* Morphes landing.
   Visual language borrowed from the app: ink on paper, pill CTAs with an arrow nub,
   double-shell "bezel" plates, the dashed wave. Colour comes from tissue only.
   Shape rule: buttons and nav are full pills, large plates are 32px with 26px inner, cells are 28px. */

@font-face { font-family: "Geist"; src: url(/assets/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f4f4f2;
  --plate: #ffffff;
  --tray: rgb(10 10 10 / .045);
  --tray-ring: rgb(10 10 10 / .06);
  --ink: #0a0a0a;
  --ink-soft: #55555a;
  --line: rgb(10 10 10 / .10);
  --on-ink: #f4f4f2;
  --ok: #0f7a42;
  --warn: #b45309;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --pad: clamp(16px, 4vw, 40px);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --layer-nav: 50;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --plate: #161616;
    --tray: rgb(255 255 255 / .05);
    --tray-ring: rgb(255 255 255 / .07);
    --ink: #ededea;
    --ink-soft: #a0a0a5;
    --line: rgb(255 255 255 / .12);
    --on-ink: #0a0a0a;
    --ok: #4fc58a;
    --warn: #e0a24a;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.2vw, 5.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.12; letter-spacing: -0.025em; }
p { color: var(--ink-soft); max-width: 62ch; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 44ch; }

.tag {
  display: inline-flex; align-items: center; width: fit-content;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; background: var(--tray); color: var(--ink-soft);
}

/* ---------- morphing blob (the Morphes mark) ---------- */
.blob {
  display: inline-block; background: var(--ink); flex: none;
  border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%;
}
.blob--mark { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .blob { animation: morph 9s ease-in-out infinite; }
  .blob--face { animation-duration: 11s; }
}
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; transform: rotate(0deg); }
  33% { border-radius: 44% 56% 42% 58% / 58% 42% 56% 44%; transform: rotate(6deg); }
  66% { border-radius: 52% 48% 60% 40% / 40% 60% 42% 58%; transform: rotate(-5deg); }
}

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 16px; white-space: nowrap;
  padding: 8px 8px 8px 26px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.pill:active { transform: scale(.98); }
.pill--ink { background: var(--ink); color: var(--on-ink); }
.pill--ink:hover { background: color-mix(in srgb, var(--ink) 85%, transparent); }
.pill--paper { background: var(--plate); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.pill--paper:hover { background: color-mix(in srgb, var(--plate) 92%, var(--ink)); }
.pill--sm { padding: 5px 5px 5px 20px; font-size: 14px; gap: 12px; }
.pill--lg { font-size: 17px; padding: 10px 10px 10px 32px; gap: 20px; }
.nub {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, currentColor 12%, transparent);
  transition: transform .5s var(--ease);
}
.pill--sm .nub { width: 32px; height: 32px; }
.pill--lg .nub { width: 48px; height: 48px; }
.pill:hover .nub { transform: translate(2px, -1px) scale(1.06); }
.arrow { width: 16px; height: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; inset: 14px 0 auto; z-index: var(--layer-nav); padding-inline: var(--pad); pointer-events: none; }
.nav {
  pointer-events: auto; max-width: 980px; margin-inline: auto; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a { transition: color .3s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- bezel (double shell) ---------- */
.bezel { padding: 6px; border-radius: 32px; background: var(--tray); box-shadow: 0 0 0 1px var(--tray-ring); }
.bezel > * { border-radius: 26px; }

/* ---------- hero ---------- */
.hero { min-height: 100dvh; display: flex; align-items: center; padding: 96px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .lede { margin-top: -4px; }
.hero-visual { margin-right: calc(var(--pad) * -1); }
.slide {
  --x: 62%; --y: 58%; --r: 150px;
  position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #fff; cursor: none; touch-action: pan-y;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ai {
  position: absolute; inset: 0;
  -webkit-clip-path: circle(var(--r) at var(--x) var(--y)); clip-path: circle(var(--r) at var(--x) var(--y));
}
.lens-ring {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgb(10 10 10 / .55), 0 18px 50px -12px rgb(10 10 10 / .5);
}
.slide-caption { display: flex; align-items: center; gap: 14px; padding: 12px 18px 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.slide-caption .wave { width: 64px; height: 14px; flex: none; }
.wave path { stroke-dasharray: 2 8; }
.wave--live path { stroke-dasharray: 14 10; }
@media (prefers-reduced-motion: no-preference) { .wave--live path { animation: wave 1.4s linear infinite; } }
@keyframes wave { to { stroke-dashoffset: -48; } }

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-right: 0; }
  .slide { --r: 90px; cursor: default; }
}

/* ---------- statement ---------- */
.statement { padding: clamp(90px, 14vw, 190px) 0; }
.statement-text { font-size: clamp(1.9rem, 4.6vw, 4.1rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; color: var(--ink); margin-left: 0; }
@media (min-width: 960px) { .statement-text { max-width: 24ch; margin-left: 16.6%; } }
.statement-text .w { opacity: .16; transition: opacity .5s var(--ease); }
.statement-text .w.on { opacity: 1; }
.no-js .statement-text .w, .statement-text.static .w { opacity: 1; }

/* ---------- products accordion ---------- */
.products { padding-bottom: clamp(90px, 12vw, 160px); }
.products .wrap:first-child { display: grid; gap: 18px; justify-items: start; margin-bottom: 40px; }
.panels { display: flex; gap: 14px; height: min(640px, 78dvh); min-height: 520px; }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 28px; isolation: isolate; color: #f6f6f4;
  background: #1a1a1a var(--img) center / cover; cursor: pointer;
  transition: flex-grow .8s var(--ease);
}
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(8 8 8 / .88) 8%, rgb(8 8 8 / .35) 55%, rgb(8 8 8 / .5)); transition: opacity .6s; }
.panel.is-open { flex-grow: 2.6; cursor: default; }
.panel-head { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 22px 0 28px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: inherit; }
.panel-name { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.nub--glass { background: rgb(255 255 255 / .16); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.panel .nub .arrow { transition: transform .6s var(--ease); }
.panel.is-open .nub .arrow { transform: rotate(45deg); }
.panel-body { position: absolute; left: 0; bottom: 0; width: min(560px, 100%); padding: 0 28px 30px; display: grid; gap: 16px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.panel.is-open .panel-body { opacity: 1; transform: none; pointer-events: auto; transition-delay: .18s; }
.panel-body p, .panel-body li { color: rgb(246 246 244 / .82); }
.panel-for { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.panel-body h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.04; }
.panel-list { display: grid; gap: 8px; font-size: 15.5px; }
.panel-list li { padding-left: 18px; position: relative; }
.panel-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: currentColor; }
.mark { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgb(255 255 255 / .94); white-space: nowrap; }
.mark--ok { color: #0f7a42; } .mark--warn { color: #9a4a06; }
@media (max-width: 860px) {
  .panels { flex-direction: column; height: auto; min-height: 0; }
  .panel, .panel.is-open { flex: none; min-height: 440px; cursor: default; }
  .panel-body { opacity: 1; transform: none; pointer-events: auto; }
  .panel .nub { display: none; }
}

/* ---------- how it works ---------- */
.how { padding-bottom: clamp(80px, 10vw, 140px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.how-steps h2 { margin-bottom: clamp(28px, 6vw, 80px); }
.step { min-height: 56vh; display: grid; align-content: start; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.step:last-child { min-height: 40vh; }
.how-stage-wrap { position: sticky; top: 96px; }
.stage-view { position: relative; overflow: hidden; aspect-ratio: 4 / 3.4; background: #fff; }
.stage-zoom { position: absolute; inset: 0; transform-origin: 48% 66%; transition: transform 1.3s var(--ease); }
.stage-zoom img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 100%; width: auto; max-width: none; aspect-ratio: 3 / 2; object-fit: cover; }
.stage-ai { opacity: 0; transition: opacity 1s var(--ease); }
.stage-grid {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 100%; aspect-ratio: 3 / 2; opacity: 1; transition: opacity .8s var(--ease);
  background-image: linear-gradient(rgb(10 10 10 / .55) 1px, transparent 1px), linear-gradient(90deg, rgb(10 10 10 / .55) 1px, transparent 1px);
  background-size: 12.5% 16.66%;
}
.stage-roi {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 100%; aspect-ratio: 3 / 2; opacity: 0; transition: opacity .8s .5s var(--ease);
}
.stage-roi::after { content: ""; position: absolute; left: 36%; top: 52%; width: 22%; height: 40%; border: 1.5px dashed #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgb(10 10 10 / .55); }
.how-stage[data-step="0"] .stage-grid { opacity: 1; }
.how-stage:not([data-step="0"]) .stage-grid { opacity: 0; }
.how-stage[data-step="1"] .stage-ai { opacity: 1; }
.how-stage[data-step="2"] .stage-ai { opacity: .55; }
.how-stage[data-step="2"] .stage-zoom { transform: scale(2.3); }
.how-stage[data-step="2"] .stage-roi, .how-stage[data-step="3"] .stage-roi { opacity: 1; }
.how-stage[data-step="3"] .stage-ai { opacity: .35; }
.stage-status { display: flex; align-items: center; gap: 14px; padding: 12px 18px 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.stage-status .wave { width: 64px; height: 14px; flex: none; }
@media (max-width: 960px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-stage-wrap { position: sticky; top: 76px; z-index: 2; order: -1; }
  .stage-view { aspect-ratio: 16 / 9; }
  .step { min-height: 38vh; background: var(--bg); }
  .how-steps h2 { margin-bottom: 24px; }
}

/* ---------- platform bento ---------- */
.platform { padding-bottom: clamp(90px, 12vw, 170px); }
.platform h2 { margin-bottom: 44px; max-width: 16ch; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 14px; }
.cell { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--plate); box-shadow: 0 0 0 1px var(--line); isolation: isolate; }
.cell p { font-size: 15.5px; }
.cell--viewer { grid-column: span 5; grid-row: span 2; justify-content: flex-end; color: #fff; background: #222 var(--img) center / cover; box-shadow: none; }
.cell--tools { grid-column: span 7; background: var(--ink); color: var(--on-ink); box-shadow: none; justify-content: space-between; }
.cell--tools p { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.cell--tools h3 { max-width: 20ch; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.wave--big { width: 100%; height: 44px; margin-top: auto; color: var(--on-ink); opacity: .85; }
.cell--reports { grid-column: span 4; }
.cell--assistant { grid-column: span 3; justify-content: flex-end; color: #fff; background: #222 var(--img) 62% 62% / 240% auto; box-shadow: none; }
.cell--privacy { grid-column: span 12; min-height: 0; grid-auto-rows: auto; flex-direction: row; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; padding: 34px 36px;
  background: linear-gradient(115deg, var(--plate) 0%, color-mix(in srgb, var(--plate) 86%, var(--ink)) 100%); }
.cell--privacy h3 { max-width: 22ch; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.cell--privacy p { max-width: 54ch; }
.cell--viewer::before, .cell--assistant::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(8 8 8 / .86), rgb(8 8 8 / .1) 70%); }
.cell--viewer p, .cell--assistant p { color: rgb(255 255 255 / .85); }
.cell--viewer h3, .cell--assistant h3 { color: #fff; }
.cell--viewer h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); max-width: 14ch; }
.cell-text { display: grid; gap: 10px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .cell, .cell--viewer, .cell--tools, .cell--reports, .cell--assistant, .cell--privacy { grid-column: auto; grid-row: auto; min-height: 280px; }
  .cell--privacy { flex-direction: column; align-items: flex-start; min-height: 0; }
}

/* ---------- team ---------- */
.team { padding-bottom: clamp(90px, 12vw, 170px); }
.team .wrap { display: grid; gap: 18px; justify-items: start; }
.people { width: 100%; margin-top: clamp(30px, 6vw, 70px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.person { display: grid; gap: 2px; justify-items: start; }
.person:nth-child(even) { margin-top: clamp(28px, 5vw, 72px); }
.person strong { font-weight: 500; letter-spacing: -0.02em; margin-top: 16px; }
.person span:last-child { color: var(--ink-soft); font-size: 14.5px; }
.blob--face {
  width: 100%; aspect-ratio: 1; background: #ddd url(/assets/liver.jpg) var(--bx) var(--by) / 320% auto;
  box-shadow: inset 0 0 0 1px rgb(10 10 10 / .08);
}
.person:nth-child(2) .blob--face { background-image: url(/assets/skin.jpg); background-size: 420% auto; animation-delay: -3s; }
.person:nth-child(3) .blob--face { animation-delay: -6s; }
.person:nth-child(4) .blob--face { background-image: url(/assets/skin.jpg); background-size: 420% auto; animation-delay: -2s; }
.person:nth-child(5) .blob--face { animation-delay: -8s; }
@media (max-width: 860px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .person:nth-child(even) { margin-top: 0; }
}

/* ---------- contact + footer ---------- */
.contact { padding: 0 var(--pad) 28px; }
.contact-inner {
  display: grid; justify-items: center; text-align: center; gap: 24px; padding: clamp(64px, 10vw, 120px) var(--pad);
  background: var(--ink); color: var(--on-ink); border-radius: 36px; max-width: calc(1320px - 2 * var(--pad)); overflow: hidden;
}
.contact-inner h2 { color: var(--on-ink); font-size: clamp(2.6rem, 6.6vw, 6rem); letter-spacing: -0.045em; }
.contact-inner .lede { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.contact-inner .pill--paper { background: var(--on-ink); color: var(--ink); box-shadow: none; }
.contact-inner .pill--paper:hover { background: color-mix(in srgb, var(--on-ink) 88%, var(--ink)); }
.blob--big { width: clamp(70px, 9vw, 110px); height: clamp(70px, 9vw, 110px); background: var(--on-ink); }
.footer { padding: 28px 0 44px; color: var(--ink-soft); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer .brand { color: var(--ink); }
.footer p { flex: 1 1 320px; max-width: 58ch; font-size: 14px; }
.footer a:not(.brand):hover { color: var(--ink); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage-zoom, .stage-ai, .panel, .panel-body { transition: none; }
}

/* team photos: real portraits inside the morphing blob */
.people .person .blob--photo { background: #1a1a1a; background-image: none; overflow: hidden; }
.blob--photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .blob--photo { animation-name: morph-flat; }
}
@keyframes morph-flat {
  0%, 100% { border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; }
  33% { border-radius: 44% 56% 42% 58% / 58% 42% 56% 44%; }
  66% { border-radius: 52% 48% 60% 40% / 40% 60% 42% 58%; }
}
