/* Morpho company site — base, shell and shared sections.
   Rule carried from Imago: petal corners mean the AI made it; what a person writes stays square. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-18);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--morpho-sky); color: var(--morpho-navy-deep); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: var(--gutter); top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-md);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────────────────────── */
.display {
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.5rem);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 24ch;
}
.h3 { font-size: var(--t-24); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.h4 { font-size: var(--t-18); line-height: 1.35; font-weight: 600; }
.lede { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.55; color: var(--ink-muted); max-width: 56ch; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--t-14); line-height: 1.5; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--space-2); }
.intro { display: grid; gap: var(--space-3); margin-bottom: clamp(40px, 5vw, 72px); }
.intro-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); }
.code { font-family: var(--font-code); font-size: 0.86em; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-md); border: 2px solid transparent;
  font-size: var(--t-16); font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--morpho-navy); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--morpho-white); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: var(--morpho-white); } }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink-muted); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--t-14); }
.btn:disabled { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more { font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-more:hover { text-decoration: underline; }
.link-more svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.link-more:hover svg { transform: translateX(3px); }

/* ── Header and navigation ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.header-row { display: flex; align-items: center; gap: var(--space-3); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.015em; }
.brand img { height: 30px; width: auto; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-trigger {
  color: var(--ink); text-decoration: none; font-size: var(--t-16);
  padding: 10px 14px; border-radius: var(--radius-md); border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.2;
}
.nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--surface-raised); }
.nav > a[aria-current="page"], .nav-trigger[data-current] { color: var(--accent); font-weight: 500; }
.nav-trigger .chev { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: -8px; z-index: 60; width: 380px;
  padding: 8px; display: grid; gap: 4px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
}
.menu-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 14px; border-radius: var(--radius-md); text-decoration: none; color: var(--ink);
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-raised); }
.menu-item img { width: 36px; height: 36px; margin-top: 2px; }
.menu-item b { display: block; font-weight: 600; font-size: var(--t-16); }
.menu-item > span > span { display: block; color: var(--ink-muted); font-size: var(--t-14); line-height: 1.45; margin-top: 2px; }
.menu-item[aria-current="page"] b { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; background: transparent; border-radius: var(--radius-md); cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--surface-raised); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
.nav .nav-cta { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 49; max-height: calc(100vh - 72px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-4);
    background: var(--surface); border-bottom: 1px solid var(--hairline);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .nav > a, .nav-trigger { font-size: var(--t-18); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--hairline); width: 100%; justify-content: space-between; }
  .nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: transparent; }
  .nav-menu { position: static; width: auto; padding: 4px 0 8px; border: 0; border-radius: 0; background: transparent; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s; }
  .header-cta { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: var(--space-3); border: 0; color: var(--on-accent); }
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-block: clamp(56px, 6vw, 96px); }
.raised { background: var(--surface-raised); }
.band-navy {
  background: var(--morpho-navy); color: var(--morpho-white);
  --ink: var(--morpho-white); --ink-muted: var(--morpho-mist); --accent: var(--morpho-sky);
  --on-accent: var(--morpho-navy-deep); --hairline: rgba(255, 255, 255, .16); --surface-raised: rgba(255, 255, 255, .06);
  --surface: var(--morpho-navy);
}
.band-navy .btn-primary:hover { background: var(--morpho-white); }

/* ── Hero: the butterfly ──────────────────────────────────────────── */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero-copy { display: grid; gap: var(--space-4); }
.hero-copy .actions { margin-top: var(--space-1); }
.hero-hint { font-size: var(--t-14); color: var(--ink-muted); display: flex; align-items: center; gap: 10px; }
.hero-hint::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--morpho-azure); border-radius: 7px 0 7px 0; }

.wings {
  --gap: clamp(6px, 1vw, 10px);
  position: relative;
  display: grid; gap: var(--gap);
  width: 100%; max-width: 620px; justify-self: end;
  aspect-ratio: 1 / 0.94;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.12fr 1fr;
  transition: grid-template-columns .65s var(--ease-out), grid-template-rows .65s var(--ease-out);
}
@media (max-width: 979px) { .wings { justify-self: stretch; max-width: 620px; } }
@media (max-width: 560px) { .wings { aspect-ratio: 1 / 1.22; } }
/* one wing opens to about four fifths; the other three stay wings, smaller */
.wings[data-open="tl"] { grid-template-columns: 3.4fr 1fr; grid-template-rows: 3.4fr 1fr; }
.wings[data-open="tr"] { grid-template-columns: 1fr 3.4fr; grid-template-rows: 3.4fr 1fr; }
.wings[data-open="bl"] { grid-template-columns: 3.4fr 1fr; grid-template-rows: 1fr 3.4fr; }
.wings[data-open="br"] { grid-template-columns: 1fr 3.4fr; grid-template-rows: 1fr 3.4fr; }

.wing {
  --wr: clamp(40px, 8vw, 116px);
  --pad: clamp(14px, 2.2vw, 28px);
  position: relative; overflow: hidden; min-width: 0; min-height: 0; isolation: isolate;
  container: wing / size;
}
/* the mark's corner logic: square at the wing tip and at the body, petal on the other diagonal */
.wing-tl { border-radius: 0 var(--wr) 0 var(--wr); background: var(--morpho-blue); color: var(--morpho-white); }
.wing-tr { border-radius: var(--wr) 0 var(--wr) 0; background: var(--morpho-azure); color: var(--morpho-white); }
.wing-bl { border-radius: var(--wr) 0 var(--wr) 0; background: var(--morpho-navy); color: var(--morpho-white); }
.wing-br { border-radius: 0 var(--wr) 0 var(--wr); background: var(--morpho-sky); color: var(--morpho-navy-deep); }
:root[data-theme="dark"] .wing-bl { background: #424b74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wing-bl { background: #424b74; } }

.wing-hit {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: inherit;
}
.wing-hit:focus-visible { outline: 3px solid var(--morpho-white); outline-offset: -6px; }
.wing-br .wing-hit:focus-visible { outline-color: var(--morpho-navy); }
.wing-glance, .wing-more, .wing-mini { position: absolute; inset: 0; pointer-events: none; }
.wing-glance { padding: var(--pad); transition: opacity .3s; }
.wing-mini { display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.wing-mini svg { width: clamp(20px, 28cqmin, 34px); height: clamp(20px, 28cqmin, 34px); }
.wings[data-open] .wing:not(.is-open) .wing-glance { opacity: 0; }
.wings[data-open] .wing:not(.is-open) .wing-mini { opacity: 1; transition-delay: .25s; }
.wing.is-open .wing-glance { opacity: 0; }
.wing:hover .wing-glance .wing-tag { text-decoration: underline; text-underline-offset: 4px; }

.wing-tag { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(.75rem, 3.6cqi, .9375rem); font-weight: 500; line-height: 1.3; }
.wing-tag svg, .wing-tag img { width: 1.25em; height: 1.25em; flex: none; }

/* the opened wing: text from one square corner, actions in the opposite one */
.wing-more {
  z-index: 2; padding: calc(var(--pad) + 4px);
  display: flex; flex-direction: column; gap: clamp(8px, 2.4cqb, 14px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s;
}
.wing.is-open .wing-more { opacity: 1; visibility: visible; transition: opacity .35s .3s, visibility 0s; }
.wing-more a, .wing-more button { pointer-events: auto; }
.wing-title { font-size: clamp(1.125rem, 6.6cqi, 2.125rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 17ch; text-wrap: balance; }
.wing-text { font-size: clamp(.8125rem, 3.5cqi, 1.0625rem); line-height: 1.5; max-width: 42ch; }
.wing-facts { list-style: none; display: grid; gap: 6px; font-size: clamp(.75rem, 3.1cqi, .9375rem); line-height: 1.4; }
.wing-facts li { display: flex; gap: 10px; align-items: baseline; }
.wing-facts li::before { content: ""; width: .6em; height: .6em; flex: none; border-radius: .3em 0 .3em 0; background: currentColor; opacity: .7; }
.wing-actions { margin-top: auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.wing-tl .wing-actions, .wing-br .wing-actions { justify-content: flex-end; }
.wing-tr .wing-more .wing-tag, .wing-bl .wing-more .wing-tag { align-self: flex-end; }
.wing-go {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500;
  min-height: clamp(38px, 9cqi, 46px); padding: 0 clamp(12px, 4cqi, 18px); border-radius: var(--radius-md);
  font-size: clamp(.8125rem, 3.4cqi, 1rem);
  background: var(--morpho-white); color: var(--morpho-navy-deep);
}
.wing-go svg { width: 1.1em; height: 1.1em; }
.wing-go:hover { background: var(--morpho-mist-100); }
.wing-link { align-self: flex-start; color: inherit; font-weight: 500; font-size: clamp(.8125rem, 3.2cqi, .9375rem); text-underline-offset: 4px; }
.wing-close {
  width: clamp(36px, 9cqi, 44px); height: clamp(36px, 9cqi, 44px); flex: none; border: 0; cursor: pointer;
  border-radius: var(--radius-md); background: rgba(255, 255, 255, .16); color: inherit; display: grid; place-items: center;
}
.wing-close svg { width: 18px; height: 18px; }
.wing-close:hover { background: rgba(255, 255, 255, .28); }
.wing-br .wing-go { background: var(--morpho-navy); color: var(--morpho-white); }
.wing-br .wing-go:hover { background: var(--morpho-navy-deep); }
.wing-br .wing-close { background: rgba(44, 51, 82, .1); }
.wing-br .wing-close:hover { background: rgba(44, 51, 82, .2); }
.wing-tr .wing-more { background: rgba(37, 43, 70, .84); }
@container wing (max-height: 420px) { .wing-facts { display: none; } }
@container wing (max-height: 320px) { .wing-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } }
@container wing (max-height: 360px) { .wing-link { display: none; } }

/* Analytics (top left): a question and the line that answers it */
.wing-tl .wing-glance { display: flex; flex-direction: column; gap: clamp(8px, 3cqi, 14px); }
.g-question {
  align-self: flex-start; max-width: 94%;
  background: rgba(255, 255, 255, .14); padding: .6em .85em; border-radius: 4px;
  font-size: clamp(.72rem, 4.4cqi, 1rem); line-height: 1.4;
}
.g-chart { flex: 1; min-height: 0; position: relative; }
.g-chart svg { width: 100%; height: 100%; overflow: visible; }
.g-chart .line { fill: none; stroke: var(--morpho-sky); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.g-chart .grid { stroke: rgba(255, 255, 255, .18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-answer { position: absolute; inset-inline-end: 0; bottom: 0; font-weight: 600; font-size: clamp(1.1rem, 9cqi, 2rem); letter-spacing: -0.02em; line-height: 1; text-align: end; }
.g-answer small { display: block; font-size: clamp(.68rem, 3cqi, .8125rem); font-weight: 400; letter-spacing: 0; opacity: .85; margin-top: 4px; }
@container wing (max-width: 220px) { .g-answer small { display: none; } }

/* Conversational AI (top right): a portrait masked by the wing */
.wing-tr .portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; z-index: -1; }
.wings[data-open] .wing-tr:not(.is-open) .portrait { object-position: 50% 30%; }
.wing-tr .wing-glance { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.wing-tr .wing-glance .wing-tag { align-self: flex-end; background: rgba(37, 43, 70, .74); padding: .4em .8em; border-radius: var(--radius-pill); }
.speaking { display: inline-flex; align-items: center; gap: 3px; height: 1em; }
.speaking i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; animation: talk 1s ease-in-out infinite; transform-origin: center; }
.speaking i:nth-child(2) { animation-delay: .15s; } .speaking i:nth-child(3) { animation-delay: .3s; } .speaking i:nth-child(4) { animation-delay: .45s; }
@keyframes talk { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.g-caption {
  max-width: 90%; background: rgba(37, 43, 70, .86); color: #fff; padding: .7em 1em;
  border-radius: var(--radius-ai) 2px var(--radius-ai) 2px;
  font-size: clamp(.72rem, 3.9cqi, .975rem); line-height: 1.45;
}
@container wing (max-width: 200px) { .wing-tr .wing-glance .wing-tag .label { display: none; } }

/* Data engineering (bottom left): pipelines that ran */
.wing-bl .wing-glance { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding-inline-end: calc(var(--pad) + var(--wr) * .12); }
.wing-bl .wing-glance .wing-tag { align-self: flex-end; }
.g-rows { list-style: none; display: grid; gap: .3em; font-size: clamp(.7rem, 3.9cqi, .9375rem); }
.g-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: .35em; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.g-rows .ok { color: var(--morpho-sky); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.g-rows svg { width: 1em; height: 1em; }
@container wing (max-width: 210px) { .g-rows li:nth-child(n+4) { display: none; } .g-rows .ok b { display: none; } }

/* Agentic AI (bottom right): an agent at work */
.wing-br .wing-glance { display: flex; flex-direction: column; gap: 10px; padding-inline-end: calc(var(--pad) + var(--wr) * .1); }
.g-steps { list-style: none; display: grid; gap: .55em; font-size: clamp(.7rem, 3.9cqi, .9375rem); line-height: 1.35; margin-block: auto; }
.g-steps li { display: grid; grid-template-columns: 1.1em 1fr; gap: .55em; align-items: start; }
.g-steps li::before { content: ""; width: .8em; height: .8em; margin-top: .25em; border-radius: .4em 0 .4em 0; background: var(--morpho-azure); }
.g-steps li.wait::before { background: transparent; box-shadow: inset 0 0 0 2px var(--morpho-navy); }
.g-steps li.wait { font-weight: 500; }
@container wing (max-width: 210px) { .g-steps li:nth-child(n+4) { display: none; } }

/* one orchestrated entrance: the wings unfold from the body */
.wings.is-intro .wing { animation: unfold .9s var(--ease-out) both; }
.wings.is-intro .wing-tl { transform-origin: 100% 100%; }
.wings.is-intro .wing-tr { transform-origin: 0 100%; animation-delay: .08s; }
.wings.is-intro .wing-bl { transform-origin: 100% 0; animation-delay: .16s; }
.wings.is-intro .wing-br { transform-origin: 0 0; animation-delay: .24s; }
@keyframes unfold { from { transform: scale(.3) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.g-chart .line { stroke-dasharray: 1000; stroke-dashoffset: 0; }
.wings.is-intro .g-chart .line { animation: draw 1.6s .7s var(--ease-out) both; }
.wings.is-intro .g-answer { animation: fade .5s 2.1s both; }
@keyframes draw { from { stroke-dashoffset: 1000; } }
@keyframes fade { from { opacity: 0; } }

/* ── Services as tabs (home) ──────────────────────────────────────── */
.practices { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 980px) { .practices { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.practice-list { display: grid; align-content: start; border-top: 1px solid var(--hairline); }
.practice-tab {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; text-align: start;
  padding: 18px 4px; border: 0; border-bottom: 1px solid var(--hairline); background: transparent; cursor: pointer;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem); font-weight: 500; color: var(--ink-muted);
  transition: color .15s;
}
.practice-tab:hover, .practice-tab[aria-selected="true"] { color: var(--ink); }
.practice-tab .mark { width: 22px; height: 22px; border-radius: 11px 0 11px 0; border: 2px solid var(--hairline); transition: background-color .2s, border-color .2s; }
.practice-tab[aria-selected="true"] .mark { background: var(--accent); border-color: var(--accent); }
.practice-panel { display: grid; gap: var(--space-3); align-content: start; }
.practice-panel .h3 { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; max-width: 26ch; }
.deliverables { display: grid; border-top: 1px solid var(--hairline); margin-top: var(--space-1); }
@media (min-width: 640px) { .deliverables { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); } }
.deliverables div { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.deliverables dt { font-weight: 500; }
.deliverables dd { color: var(--ink-muted); font-size: var(--t-16); margin-top: 4px; }

/* ── From insight to action: a cycle, so numbered ─────────────────── */
.cycle { list-style: none; display: grid; gap: var(--space-4); counter-reset: c; }
@media (min-width: 900px) { .cycle { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); } }
.cycle li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 60px; counter-increment: c; }
.cycle li::before {
  content: counter(c); position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 44px;
  display: grid; place-items: center; font-weight: 600; border-radius: 22px 0 22px 0;
  background: var(--morpho-sky); color: var(--morpho-navy-deep);
}
.cycle li::after { content: ""; position: absolute; top: 21px; inset-inline-start: 58px; inset-inline-end: 0; height: 2px; background: var(--hairline); }
.cycle li:last-child::after { display: none; }
@media (max-width: 899px) { .cycle li::after { display: none; } }
.cycle li.is-act::before { background: var(--morpho-blue); color: #fff; }
.cycle p { color: var(--ink-muted); font-size: var(--t-16); }
.cycle-note { display: flex; align-items: center; gap: 10px; margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--t-16); }
.cycle-note svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ── Agentic AI use cases: list, then an agent you can run ────────── */
.uc { display: grid; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (min-width: 1040px) { .uc { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .uc > .uc-panel { position: sticky; top: 96px; } }
.uc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-3); }
.uc-filter { border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--t-14); cursor: pointer; }
.uc-filter:hover { border-color: var(--accent); }
.uc-filter[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.uc-list { list-style: none; display: grid; gap: 8px; align-content: start; }
.uc-pick {
  width: 100%; text-align: start; padding: 14px 16px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
  display: grid; gap: 2px;
}
.uc-pick b { font-weight: 500; font-size: var(--t-16); }
.uc-pick span { color: var(--ink-muted); font-size: var(--t-14); }
.uc-pick:hover { border-color: var(--accent); }
.uc-pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.uc-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(18px, 2.6vw, 36px); display: grid; gap: 22px; }
.uc-head { display: grid; gap: 10px; }
.uc-head .h3 { font-weight: 600; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); letter-spacing: -0.02em; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-facts { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
@media (min-width: 720px) { .uc-facts { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); } }
.uc-facts div { padding: 14px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 4px; }
.uc-facts dt { font-size: var(--t-14); color: var(--ink-muted); }
.uc-facts dd { font-size: var(--t-16); }
.uc-runbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.uc-runbar .h4 { font-size: var(--t-16); }
.uc-log { list-style: none; display: grid; gap: 0; }
.uc-log > li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 14px; padding: 10px 0; animation: rise .35s var(--ease-out) both; }
.uc-log > li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 7px 0 7px 0; background: var(--morpho-azure); }
.uc-log > li.is-working::before { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); animation: pulse 1s ease-in-out infinite; }
.uc-log > li.trigger::before { border-radius: 2px; background: var(--ink-muted); }
.uc-log .text { font-size: var(--t-16); line-height: 1.5; }
.uc-log .tool { grid-column: 2; justify-self: start; font-size: var(--t-13); color: var(--ink-muted); display: inline-flex; gap: 6px; align-items: center; }
.uc-log .tool svg { width: 14px; height: 14px; }
.uc-approval {
  grid-column: 1 / -1; display: grid; gap: 12px; margin: 8px 0; padding: 16px 18px;
  border: 2px solid var(--ink); border-radius: 4px; background: var(--surface);
}
.uc-log > li.approval::before { display: none; }
.uc-approval .who { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-14); color: var(--ink-muted); }
.uc-approval .who svg { width: 16px; height: 16px; }
.uc-approval p { font-weight: 500; }
.uc-approval .decided { font-size: var(--t-14); color: var(--ink-muted); }
.uc-outcome { padding: 18px 20px; background: var(--surface-raised); border-radius: 32px 4px 32px 4px; display: grid; gap: 6px; animation: rise .4s var(--ease-out) both; }
.uc-outcome b { font-weight: 600; }
.uc-log > li.uc-empty { display: block; color: var(--ink-muted); font-size: var(--t-16); padding: 18px; border: 1px dashed var(--hairline); border-radius: var(--radius-md); animation: none; }
.uc-log > li.uc-empty::before { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ── Product rows and films ───────────────────────────────────────── */
.product-row { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.product-row + .product-row { margin-top: clamp(72px, 9vw, 128px); }
@media (min-width: 980px) {
  .product-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .product-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .product-row.flip > figure { order: -1; }
}
.product-copy { display: grid; gap: var(--space-3); align-content: start; }
.product-name { display: flex; align-items: center; gap: 12px; font-size: var(--t-24); font-weight: 600; letter-spacing: -0.015em; }
.product-name img { width: 40px; height: 40px; }
.product-kind { font-size: var(--t-16); color: var(--ink-muted); }
.product-copy .h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 34px; max-width: 56ch; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 18px; height: 18px; background: var(--morpho-azure); border-radius: 9px 0 9px 0; }
.ticks strong { font-weight: 500; }

/* the film keeps its frame's curves: inner radius = outer radius − frame padding */
.film { display: grid; gap: 12px; }
.film-frame {
  --R: clamp(56px, 7vw, 112px); --r: 18px; --p: clamp(10px, 1.3vw, 16px);
  background: var(--morpho-sky); padding: var(--p);
  border-radius: var(--R) var(--r) var(--R) var(--r);
}
.film-frame.flip { border-radius: var(--r) var(--R) var(--r) var(--R); }
.film-screen {
  --Ri: calc(var(--R) - var(--p)); --ri: max(3px, calc(var(--r) - var(--p)));
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; transform: translateZ(0);
  background: var(--morpho-navy-deep); color: #fff;
  border-radius: var(--Ri) var(--ri) var(--Ri) var(--ri);
}
.film-frame.flip .film-screen { border-radius: var(--ri) var(--Ri) var(--ri) var(--Ri); }
.film-screen video { width: 100%; height: 100%; object-fit: cover; }
.film-screen:fullscreen { border-radius: 0; }
.film-screen:fullscreen video { object-fit: contain; }
.film-start {
  position: absolute; bottom: clamp(12px, 2vw, 22px); inset-inline-start: clamp(12px, 2vw, 22px); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; cursor: pointer;
  border: 0; border-radius: 28px 4px 28px 4px; background: var(--morpho-blue); color: #fff;
  font-size: var(--t-16); font-weight: 500; transition: background-color .15s, transform .2s var(--ease-out);
}
.film-frame.flip .film-start { inset-inline-start: auto; inset-inline-end: clamp(12px, 2vw, 22px); }
.film-start:hover { background: var(--morpho-navy); transform: translateY(-1px); }
.film-start .disc { width: 40px; height: 40px; border-radius: 20px 4px 20px 4px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.film-start svg { width: 18px; height: 18px; margin-inline-start: 2px; }
.film-start .len { font-weight: 400; opacity: .85; }
.film-start:focus-visible, .film-bar button:focus-visible, .film-bar input:focus-visible { outline: 2px solid var(--morpho-sky); outline-offset: 2px; }
.film-bar {
  position: absolute; z-index: 3; bottom: clamp(8px, 1.4vw, 14px);
  inset-inline: max(12px, calc(var(--Ri) * .45));
  display: flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: var(--radius-pill); background: rgba(37, 43, 70, .88); color: #fff;
  transition: opacity .25s, transform .25s;
}
.film-screen.is-idle .film-bar { opacity: 0; transform: translateY(6px); pointer-events: none; }
.film-screen.is-idle { cursor: none; }
.film-bar button { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; }
.film-bar button:hover { background: rgba(255, 255, 255, .14); }
.film-bar button svg { width: 18px; height: 18px; }
.film-bar button[aria-pressed="false"] { opacity: .6; }
.film-seek { flex: 1; min-width: 40px; accent-color: var(--morpho-sky); height: 4px; cursor: pointer; }
.film-time { font-size: var(--t-13); font-variant-numeric: tabular-nums; padding-inline: 6px; white-space: nowrap; }
@media (max-width: 520px) { .film-time { display: none; } .film-bar [data-fs] { display: none; } }
.film-cc {
  position: absolute; z-index: 2; inset-inline: 8%; bottom: clamp(56px, 8vw, 72px); text-align: center; pointer-events: none;
}
.film-cc span {
  display: inline; padding: .2em .55em; line-height: 1.7; background: rgba(37, 43, 70, .88); color: #fff;
  font-size: clamp(.8125rem, .7rem + .45vw, 1.0625rem); -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 4px;
}
.film-screen.is-idle .film-cc { bottom: clamp(16px, 2.4vw, 28px); }
.film-screen:fullscreen .film-cc span { font-size: clamp(1rem, 2vw, 1.75rem); }
.media-caption { font-size: var(--t-14); color: var(--ink-muted); }

/* ── Industries ───────────────────────────────────────────────────── */
.industries { display: grid; border-top: 1px solid var(--hairline); }
@media (min-width: 720px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); } }
@media (min-width: 1180px) { .industries { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--space-4); } }
.industries > div { padding: 24px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 6px; align-content: start; }
.industries dt { font-size: var(--t-18); font-weight: 600; }
.industries dd { color: var(--ink-muted); font-size: var(--t-16); max-width: 40ch; }

/* ── Steps (a real sequence, so numbered) ─────────────────────────── */
.steps { list-style: none; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); } }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 64px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; top: 0; inset-inline-start: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--morpho-sky); color: var(--morpho-navy-deep); font-weight: 600; font-size: var(--t-18);
  border-radius: 22px 0 22px 0;
}
.step::after { content: ""; position: absolute; top: 21px; inset-inline-start: 60px; inset-inline-end: 0; height: 2px; background: var(--hairline); }
.step:last-child::after { display: none; }
@media (max-width: 819px) { .step::after { display: none; } }
.step p { color: var(--ink-muted); font-size: var(--t-16); }

/* ── Commitments: a definition list, not a card grid ──────────────── */
.commitments { display: grid; border-top: 1px solid var(--hairline); }
@media (min-width: 820px) { .commitments { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); } }
.commitments > div { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--hairline); align-content: start; }
.commitments dt { font-size: var(--t-24); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.commitments dd { color: var(--ink-muted); max-width: 50ch; }

/* ── Closing call to action, with a butterfly of four unequal wings ── */
.cta { background: var(--surface-raised); overflow: hidden; }
.cta-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.cta-inner { display: grid; gap: var(--space-4); max-width: 640px; }
.cta-wings {
  container-type: inline-size;
  width: min(100%, 420px); justify-self: center; aspect-ratio: 1 / .92;
  display: grid; gap: 10px; grid-template-columns: 1.06fr 1fr; grid-template-rows: 1.14fr .86fr;
}
@media (max-width: 899px) { .cta-wings { width: min(72%, 300px); justify-self: start; } }
.cta-wings i { display: block; min-width: 0; min-height: 0; }
.cta-wings i:nth-child(1) { width: 100%; height: 100%; justify-self: end; align-self: end; background: var(--morpho-blue); border-radius: 0 23cqi 0 23cqi; }
.cta-wings i:nth-child(2) { width: 92%; height: 86%; justify-self: start; align-self: end; background: var(--morpho-azure); border-radius: 21cqi 0 21cqi 0; }
.cta-wings i:nth-child(3) { width: 74%; height: 88%; justify-self: end; align-self: start; background: var(--petal-deep); border-radius: 16cqi 0 16cqi 0; }
.cta-wings i:nth-child(4) { width: 80%; height: 92%; justify-self: start; align-self: start; background: var(--morpho-sky); border-radius: 0 19cqi 0 19cqi; }

/* ── Page hero for inner pages ────────────────────────────────────── */
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: hidden; }
.page-hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.page-hero .display { font-size: clamp(2.375rem, 1.3rem + 3.4vw, 4rem); }
.page-hero-copy { display: grid; gap: var(--space-4); }
.page-hero-copy.narrow { max-width: 900px; }
.endorse { display: flex; align-items: center; gap: 12px; font-size: var(--t-16); color: var(--ink-muted); }
.endorse img { height: 36px; width: auto; }

/* ── Feature index: rows with a rule ──────────────────────────────── */
.feature-index { display: grid; border-top: 1px solid var(--hairline); }
.feature-index > div { display: grid; gap: 10px 48px; padding: 28px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 820px) { .feature-index > div { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.feature-index dt { font-size: var(--t-24); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.feature-index dd { color: var(--ink-muted); max-width: 60ch; }

/* ── Proof figures, each next to its source ───────────────────────── */
.figures { display: grid; border-top: 1px solid var(--hairline); }
@media (min-width: 720px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); } }
@media (min-width: 1100px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figures > div { padding: 28px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 8px; align-content: start; }
.figures .fig { font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.figures p { font-size: var(--t-16); color: var(--ink-muted); max-width: 30ch; }
.footnote { margin-top: var(--space-3); font-size: var(--t-14); color: var(--ink-muted); max-width: 80ch; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--surface-raised); border-top: 1px solid var(--hairline); padding-block: var(--space-8) var(--space-4); font-size: var(--t-16); }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1.2fr 1fr 1fr; } }
.footer-grid h2 { font-size: var(--t-14); font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.footer-grid h2.footer-h2-gap { margin-top: var(--space-4); }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about { display: grid; gap: 16px; align-content: start; max-width: 38ch; color: var(--ink-muted); }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: var(--space-8); padding-top: var(--space-3); border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: var(--t-14); }

/* ── Shared bits ──────────────────────────────────────────────────── */
.ai-surface { border-radius: var(--radius-ai) 2px var(--radius-ai) 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--t-13); font-weight: 500; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--hairline); }
.pill svg { width: 14px; height: 14px; }
.sample-note { font-size: var(--t-13); color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
.intro-text { display: grid; gap: var(--space-3); }
.uc-note { margin-top: var(--space-2); }
.footer-base a { color: inherit; text-decoration: none; }
.footer-base a:hover { color: var(--ink); text-decoration: underline; }

/* a logo drawn for light grounds, swapped for its white version on the dark theme */
.for-dark { display: none !important; }
:root[data-theme="dark"] .for-light { display: none !important; }
:root[data-theme="dark"] .for-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .for-light { display: none !important; }
  :root:not([data-theme="light"]) .for-dark { display: block !important; }
}
/* "Coming soon": a status, so a quiet pill beside the name it qualifies */
.soon {
  display: inline-flex; align-items: center; margin-inline-start: 10px; padding: 2px 10px;
  border-radius: var(--radius-pill); background: var(--morpho-sky); color: var(--morpho-navy-deep);
  font-size: var(--t-13); font-weight: 500; font-style: normal; letter-spacing: 0; line-height: 1.5;
  vertical-align: middle; white-space: nowrap;
}
.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ── Cookie consent: navy card at the bottom; Accept and Decline carry equal weight ── */
.cookie-banner {
  position: fixed; z-index: 70; display: grid; gap: 14px;
  left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 460px; padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--morpho-navy); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  font-size: var(--t-14); line-height: 1.55; animation: rise .3s var(--ease-out) both;
}
:root[data-theme="dark"] .cookie-banner { background: #222842; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cookie-banner { background: #222842; } }
.cookie-banner b { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn { flex: 1; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cookie-btn:hover { background: #fff; color: var(--morpho-navy-deep); border-color: #fff; }
.cookie-btn:focus-visible { outline-color: var(--morpho-sky); }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-link:hover { color: var(--ink); text-decoration: underline; }
