/* OpenShore for Enterprise (/enterprise/): one light page, the site's own
   paper and ink, the films' sea as the accent. Self-hosted fonts only. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-standard.woff2") format("woff2");
}

:root {
  --paper: #f6f4ef;
  --raised: #fcfbf7;
  --ink: #1c2a33;
  --ink-soft: #4a5961;
  --muted: #606a6f;
  --sea: #2f5a66;
  --sea-soft: rgba(47, 90, 102, 0.1);
  --wave: #4b90a3;
  --rule: rgba(28, 42, 51, 0.12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --shadow: 0 1px 2px rgba(28, 42, 51, 0.05), 0 18px 40px -22px rgba(28, 52, 64, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sea); }
a:focus-visible, .ent-btn:focus-visible, .ent-film:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }

main, .ent-top, .ent-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.ent-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: calc(18px + env(safe-area-inset-top, 0px)) 18px;
}
.ent-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 16px; }
.ent-brand b { font-weight: 650; }
.ent-toplink { font-size: 15px; font-weight: 550; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
@media (hover: hover) { .ent-toplink:hover { color: var(--sea); } }

.ent-hero { padding-block: 72px 56px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ent-hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650; max-width: 14ch; }
.ent-lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.ent-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); font-size: 14px; font-weight: 600; }
.ent-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.ent-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.ent-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); background: rgba(28, 42, 51, 0.07); transition: background-color 180ms ease, transform 180ms ease; }
.ent-btn--primary { background: var(--sea); color: var(--paper); }
.ent-btn:active { transform: scale(0.97); }
@media (hover: hover) { .ent-btn:hover { background: rgba(28, 42, 51, 0.12); } .ent-btn--primary:hover { background: var(--ink); } }

.ent-eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea); }
.ent-h { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; max-width: 26ch; }
.ent-statement { font-size: clamp(22px, 3vw, 30px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 550; max-width: 32ch; }
.ent-body { font-size: 18px; color: var(--ink-soft); max-width: 64ch; }
.ent-body b { color: var(--sea); }
.ent-note { font-size: 14px; color: var(--muted); }

.ent-sec, .ent-films { padding-block: 48px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; }

.ent-film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ent-film { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow), 0 0 0 1px var(--rule); color: var(--ink); text-decoration: none; transition: transform 220ms ease; }
.ent-film img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ent-film-meta { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 16px; font-size: 15px; color: var(--muted); }
.ent-film-meta b { font-size: 17px; color: var(--ink); }
.ent-play { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding-left: 4px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 26px -10px rgba(28, 42, 51, 0.7); }
@media (hover: hover) { .ent-film:hover { transform: translateY(-3px); } .ent-film:hover .ent-play { background: var(--sea); } }

.ent-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ent-card, .ent-worker { background: var(--raised); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow), 0 0 0 1px var(--rule); display: flex; flex-direction: column; gap: 6px; }
.ent-card h4, .ent-worker h4 { font-size: 18px; font-weight: 650; }
.ent-card p, .ent-worker p { font-size: 15.5px; color: var(--ink-soft); }

.ent-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.ent-phases > li { background: var(--raised); border-radius: 16px; padding: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--rule); display: flex; flex-direction: column; gap: 10px; }
.ent-step { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--sea); color: var(--paper); font-size: 13px; font-weight: 600; }
.ent-phases h4 { font-size: 19px; line-height: 1.25; font-weight: 650; }
.ent-phases ul { margin: 0; padding-left: 18px; font-size: 15.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }

.ent-workers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ent-worker--core { background: var(--ink); color: var(--paper); }
.ent-worker--core p { color: #d5dcdc; }

.ent-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.ent-grid2 h4 { font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.ent-grid2 p { font-size: 16px; color: var(--ink-soft); }

.ent-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ent-pills li { padding: 7px 14px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); font-size: 15px; font-weight: 600; }

.ent-cta { margin-block: 0 24px; padding: 48px clamp(22px, 5vw, 56px); border-radius: 24px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ent-cta h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; }
.ent-cta .ent-lede { color: #d5dcdc; }
.ent-cta .ent-badge { background: rgba(127, 184, 200, 0.16); color: #9ccbd8; }
.ent-cta a { color: #9ccbd8; font-weight: 600; word-break: break-word; }

.ent-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.ent-foot a { color: var(--muted); }

@media (max-width: 760px) {
  .ent-film-grid, .ent-three, .ent-phases, .ent-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ent-workers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-hero { padding-block: 44px 36px; }
}
@media (max-width: 440px) {
  .ent-workers { grid-template-columns: minmax(0, 1fr); }
  .ent-brand span { font-size: 15px; }
}

/* One film, full width, and the platform page's lighter sections. */
.ent-film--wide { max-width: 880px; }
.ent-film--wide .ent-play { width: 76px; height: 76px; top: 42%; }
.ent-hero--tight { padding-block: 40px 28px; gap: 16px; }
.ent-back { font-size: 15px; font-weight: 550; text-decoration: none; color: var(--ink-soft); }
@media (hover: hover) { .ent-back:hover { color: var(--sea); } }
.ent-phases--light > li { gap: 12px; }
.ent-phases--light h4 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.ent-pills--workers li { font-size: 16px; padding: 9px 16px; background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }
.ent-pills--workers li.core { background: var(--ink); color: var(--paper); box-shadow: none; }
.ent-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; color: var(--ink-soft); max-width: 70ch; }
.ent-checks li { position: relative; padding-left: 30px; }
.ent-checks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2.4px solid var(--sea); border-bottom: 2.4px solid var(--sea); transform: rotate(-45deg); }
/* The play button sits in the poster's top right corner, clear of its words. */
.ent-play, .ent-film--wide .ent-play { left: auto; right: 18px; top: 18px; transform: none; width: 56px; height: 56px; }
.ent-btn { gap: 8px; }

/* The sign-in in front of the platform page: the page itself, blurred past
   reading (a baked image, so nothing readable reaches the browser), and one
   card on top. */
.ent-locked { min-height: 100vh; min-height: 100dvh; }
.ent-locked-bg { position: fixed; inset: 0; background: var(--paper) url("/enterprise/platform-preview.jpg") center top / cover no-repeat; }
.ent-locked-bg::after { content: ""; position: absolute; inset: 0; background: rgba(246, 244, 239, 0.45); }
.ent-lock { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.ent-lock-card { width: 100%; max-width: 420px; background: var(--raised); border-radius: 22px; padding: 30px 28px; box-shadow: 0 2px 6px rgba(28, 42, 51, 0.08), 0 40px 80px -30px rgba(24, 58, 70, 0.55), 0 0 0 1px var(--rule); display: flex; flex-direction: column; gap: 10px; }
.ent-lock-card h1 { font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.ent-lock-card p { font-size: 15.5px; color: var(--ink-soft); }
.ent-lock-card label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.ent-lock-card input { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.ent-lock-card input:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
.ent-lock-card .ent-btn { justify-content: center; margin-top: 10px; border: 0; cursor: pointer; font-family: inherit; }
.ent-lock-error { color: #8a3b12 !important; background: rgba(163, 95, 10, 0.1); padding: 10px 12px; border-radius: 10px; }
.ent-lock-ask { font-size: 14px !important; }

/* ---- The site's home (/), 2026-11-16 -------------------------------- */
/* The product name always sits on one line: it shrinks with the screen
   rather than wrapping. */
.ent-hero .ent-product { font-size: clamp(18px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650; white-space: nowrap; max-width: none; }
/* The byline leans on its last word, One. */
.ent-byline { font-size: clamp(17px, 2.8vw, 28px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; color: var(--ink-soft); }
.ent-byline em { font-style: normal; font-weight: 750; color: var(--sea); }
.ent-hero--home { gap: 18px; }
.ent-card h3 { font-size: 18px; font-weight: 650; }
.ent-grid2 h3 { font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.ent-grid2 h3 a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 4px; }
@media (hover: hover) { .ent-grid2 h3 a:hover { color: var(--sea); } }
.ent-sec--last { padding-bottom: 56px; }
.ent-toplink[aria-current="page"] { color: var(--ink); }
/* The foot line every page carries (sitefoot.njk). */
.sitefoot { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.sitefoot a { color: var(--sea); font-weight: 550; }
.ent-foot { padding-bottom: 12px; }

/* ---- Policy pages (/privacy/, /terms/, /support/), 2026-11-16 -------- */
.ent-doc { border-top: 1px solid var(--rule); padding-block: 40px 56px; max-width: 72ch; display: flex; flex-direction: column; gap: 14px; }
.ent-doc h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; margin-top: 18px; }
.ent-doc h2:first-child { margin-top: 0; }
.ent-doc p, .ent-doc li { font-size: 17px; color: var(--ink-soft); }
.ent-doc b { color: var(--ink); font-weight: 600; }
.ent-doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.ent-doc code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--sea-soft); color: var(--sea); }
.ent-doc a { word-break: break-word; }
.ent-foot nav a[aria-current="page"] { color: var(--ink); }

/* ---- The home's badge on a phone (2026-11-16) -------------------------- */
/* The badge stays on one line so the headline leads the page: where it would
   wrap, its text scrolls slowly in place instead (two copies, so the loop
   has no seam). Reduced motion lets it wrap as before. */
.ent-badge--ticker { max-width: 100%; }
.ent-ticker { overflow: hidden; min-width: 0; white-space: nowrap; }
.ent-ticker-copy { display: none; }
@media (max-width: 480px) {
  .ent-ticker { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 22px), transparent); }
  .ent-ticker-track { display: inline-flex; animation: ent-ticker 16s linear infinite; will-change: transform; }
  .ent-ticker-track > span { padding-right: 2.5em; }
  .ent-ticker-copy { display: inline; }
}
@keyframes ent-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ent-ticker { white-space: normal; -webkit-mask-image: none; mask-image: none; }
  .ent-ticker-track { animation: none; display: inline; }
  .ent-ticker-track > span { padding-right: 0; }
  .ent-ticker-copy { display: none !important; }
}

/* ---- The tabs under the header (2026-11-16) --------------------------- */
.ent-tabs { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.ent-tabs-row { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.ent-tabs-row::-webkit-scrollbar { display: none; }
.ent-tabs a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-block: 10px 12px; font-size: 15px; font-weight: 550; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ent-tabs a[aria-current="page"] { color: var(--ink); }
.ent-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--sea); }
.ent-tab-lock { opacity: 0.6; }
@media (hover: hover) { .ent-tabs a:hover { color: var(--ink); } }
@media (max-width: 440px) { .ent-tabs-row { gap: 22px; } .ent-tabs a { font-size: 14.5px; } }

/* ---- Grow with Us (2026-11-16) ---------------------------------------- */
.ent-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: p; }
.ent-principles li { counter-increment: p; padding: 22px 24px; border-radius: 18px; background: var(--raised); box-shadow: 0 0 0 1px var(--rule); display: flex; flex-direction: column; gap: 8px; }
.ent-principles li::before { content: counter(p, decimal-leading-zero); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; color: var(--sea); }
.ent-principles h3 { font-size: 18px; font-weight: 650; line-height: 1.3; }
.ent-principles p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.ent-founder { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 40px; align-items: start; }
.ent-founder-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
.ent-founder-text { display: flex; flex-direction: column; gap: 14px; }
.ent-founder-role { font-size: 15px; font-weight: 600; color: var(--sea); margin-top: -8px; }
.ent-founder:not(:has(.ent-founder-photo)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .ent-principles { grid-template-columns: minmax(0, 1fr); }
  .ent-founder { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ent-founder-photo { max-width: 148px; }
}
/* The sign-in page carries the header and tabs above its card. */
.ent-top--locked, .ent-tabs--locked { position: relative; z-index: 1; }
.ent-locked .ent-lock { min-height: calc(100dvh - 130px); align-items: flex-start; padding-top: 32px; }

/* The badge on the header row, beside OpenShore (2026-11-16). It takes the
   room the row has left and scrolls where its text would not fit. */
.ent-brand { flex: none; }
.ent-badge--top { min-width: 0; font-size: 13px; padding: 6px 12px; gap: 8px; }
.ent-badge--top .ent-dot { width: 7px; height: 7px; }
@media (max-width: 640px) {
  .ent-top { gap: 14px; }
  .ent-badge--top .ent-ticker { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 18px), transparent); }
  .ent-badge--top .ent-ticker-track { display: inline-flex; animation: ent-ticker 16s linear infinite; will-change: transform; }
  .ent-badge--top .ent-ticker-track > span { padding-right: 2.5em; }
  .ent-badge--top .ent-ticker-copy { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .ent-badge--top .ent-ticker { white-space: nowrap; text-overflow: ellipsis; }
  .ent-badge--top .ent-ticker-track { animation: none; }
  .ent-badge--top .ent-ticker-copy { display: none !important; }
}

/* A page that opens straight on a section: the tabs carry the rule above it. */
.ent-sec--first { border-top: 0; padding-top: 56px; }
@media (max-width: 760px) { .ent-sec--first { padding-top: 40px; } }
.ent-founder-links a { font-size: 15px; font-weight: 600; color: var(--sea); }
.ent-principles-lede { max-width: 64ch; }

/* ---- Why we build it: the two charts on Grow with Us (2026-11-16) ------ */
.ent-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 6px; }
.ent-chart { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ent-chart-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 18px; font-weight: 650; color: var(--ink); }
.ent-chart-frame { border-radius: 18px; background: var(--raised); box-shadow: 0 0 0 1px var(--rule); padding: 12px 8px 4px; }
.ent-chart svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.ent-chart .ent-body { font-size: 16px; }
.ent-tag { font-size: 11px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea); padding: 3px 9px; border-radius: 999px; box-shadow: 0 0 0 1px var(--rule); }
.c-axis { stroke: var(--rule); stroke-width: 1.5; }
.c-guide { stroke: rgba(28, 42, 51, 0.18); stroke-width: 1.2; stroke-dasharray: 3 5; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-line--sea { stroke: var(--sea); }
.c-wedge { fill: rgba(162, 106, 67, 0.1); }
.c-halo { fill: var(--raised); stroke: rgba(47, 90, 102, 0.35); stroke-width: 1.5; }
.c-dot { fill: var(--sea); }
.c-leader { stroke: var(--muted); stroke-width: 1.2; }
.c-phase { font-size: 13px; letter-spacing: 0.14em; fill: var(--muted); }
.c-crisis { font-size: 16px; font-weight: 600; fill: #9a5f36; }
.c-note { font-size: 15px; fill: var(--muted); }
.c-mark { font-size: 16px; font-weight: 650; fill: var(--ink); }
.c-label { font-size: 16px; font-weight: 650; fill: var(--ink); }
.c-wedge-text { font-size: 14.5px; fill: #8a5532; }
.ent-why-close { margin-top: 10px; max-width: 40ch; }
.ent-source { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 72ch; }
@media (max-width: 760px) { .ent-charts { grid-template-columns: minmax(0, 1fr); } }

/* The charts draw themselves (charts.js adds .c-anim; until then, and with
   Reduce Motion, they stay still and complete). A lit point travels each
   line, and each key part arrives as the point reaches it. */
.ent-chart-frame { position: relative; }
.ent-replay { margin-left: auto; min-height: 32px; padding: 6px 13px; border: 0; border-radius: 999px; background: var(--sea-soft); color: var(--sea); font: 600 12.5px var(--sans); letter-spacing: 0.02em; cursor: pointer; transition: transform 160ms ease, background-color 200ms ease; }
.ent-replay[hidden] { display: none; }
.ent-replay:active { transform: scale(0.96); }
.ent-replay:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
@media (hover: hover) { .ent-replay:hover { background: rgba(47, 90, 102, 0.18); } }
.c-head { fill: var(--ink); opacity: 0; transition: opacity 400ms ease; }
.c-head--sea { fill: var(--sea); }
.c-head-glow { fill: var(--ink); opacity: 0; transition: opacity 400ms ease; transform-box: fill-box; transform-origin: center; }
.c-head-glow.c-head--sea { fill: var(--sea); }
.c-run .c-head { opacity: 1; }
.c-run .c-head-glow { opacity: 0.16; animation: c-breathe 1.3s ease-in-out infinite; }
.c-anim .c-rv { opacity: 0; transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.c-anim .c-rv.on { opacity: 1; }
.c-anim .c-pop { transform: translateY(7px); }
.c-anim .c-pop.on { transform: none; }
.c-anim .c-late.on { transition-delay: 380ms; }
.c-anim .c-dim { opacity: 0.28; transition: opacity 700ms ease, fill 700ms ease; }
.c-anim .c-dim.on { opacity: 1; }
.c-anim .c-dot { transform-box: fill-box; transform-origin: center; transform: scale(0.2); }
.c-anim .c-dot.on { transform: none; transition-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1); }
.c-ripple { fill: none; stroke: var(--sea); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.c-anim .c-ripple.on { animation: c-ripple 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) 2; }
.c-done .c-wedge { animation: c-wedge 2s ease-in-out 1; }
@keyframes c-breathe { 0%, 100% { transform: scale(0.8); } 50% { transform: scale(1.25); } }
@keyframes c-ripple { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes c-wedge { 0%, 100% { fill: rgba(162, 106, 67, 0.1); } 45% { fill: rgba(162, 106, 67, 0.24); } }
@media (prefers-reduced-motion: reduce) {
  .c-head, .c-head-glow, .c-ripple { display: none; }
  .c-done .c-wedge { animation: none; }
}
@media (max-width: 760px) {
  .ent-chart-title { flex-wrap: nowrap; font-size: 17px; line-height: 1.3; }
  .ent-chart-title .ent-tag, .ent-replay { flex: none; }
}

/* The first chart's snap (2026-11-17): the usual dips stay as faint ghosts,
   and an arrow from Where we come in to the second crisis says why the line
   climbs straight. Without the script these show as the finished state. */
.c-ghost { fill: none; stroke: rgba(154, 95, 54, 0.55); stroke-width: 2; stroke-dasharray: 3 4; stroke-linejoin: round; stroke-linecap: round; }
.c-arc { fill: none; stroke: var(--sea); stroke-width: 1.6; }
.c-arrowhead { fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-arc-label { font-size: 15px; font-weight: 600; fill: var(--sea); }
.c-anim [data-after]:not(.c-arc):not(.c-ripple) { opacity: 0; transition: opacity 700ms ease 200ms, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms; }
.c-anim [data-after].on:not(.c-arc):not(.c-ripple) { opacity: 1; }
.c-anim .c-arc { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1100ms cubic-bezier(0.4, 0, 0.2, 1) 350ms, opacity 200ms ease 350ms; }
.c-anim .c-arc.on { stroke-dashoffset: 0; opacity: 1; }
.c-anim .c-arc-label.on, .c-anim .c-arrowhead.on { transition-delay: 1300ms; }
.c-ripple--again { stroke: var(--sea); }
.c-anim .c-ripple--again.on { animation: c-ripple 1.3s cubic-bezier(0.2, 0.7, 0.3, 1) 1; }

/* The hero's headline and its why line (2026-11-17). */
.ent-hero .ent-h1--wide { max-width: 16ch; }
.ent-hero-why { max-width: 60ch; margin-top: -6px; }

/* The mockup on the Product Tour page (2026-11-18): the founder's
   commission scene, drawn in the app's own colours, labelled a mockup. */
.pv { border-radius: 18px; background: var(--raised); box-shadow: var(--shadow), 0 0 0 1px var(--rule); overflow: hidden; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.pv p { margin: 0; }
.pv-bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--rule); background: #ebe6db; }
.pv-dots { display: inline-flex; gap: 6px; flex: none; }
.pv-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(28, 42, 51, 0.2); }
.pv-search { flex: 1; max-width: 300px; margin: 0 auto; padding: 4px 12px; border-radius: 8px; background: rgba(28, 42, 51, 0.07); font-size: 12.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-app { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.pv-side { padding: 14px 10px; background: #ece8de; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.pv-org { display: flex; flex-direction: column; padding: 0 8px 10px; }
.pv-org b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pv-org span { font-size: 12px; color: var(--muted); }
.pv-nav { padding: 4px 8px; border-radius: 7px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.pv-nav--on { background: var(--raised); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--rule); }
.pv-nav--chan { background: rgba(28, 42, 51, 0.08); color: var(--ink); font-weight: 600; }
.pv-group { padding: 10px 8px 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pv-dm { width: 8px; height: 8px; border-radius: 50%; background: var(--sea); flex: none; }
.pv-dm--w { width: 16px; height: 16px; border-radius: 4px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pv-main { display: flex; flex-direction: column; min-width: 0; }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.pv-head b { font-size: 16px; }
.pv-head span { font-size: 12.5px; color: var(--muted); }
.pv-model { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sea-soft); color: var(--sea) !important; font-weight: 600; white-space: nowrap; }
.pv-model i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pv-thread { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.pv-msg { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding-left: 28px; }
.pv-step { position: absolute; left: 0; top: 5px; width: 19px; height: 19px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sea); color: var(--paper); font-size: 11px; font-weight: 650; }
.pv-step--blank { display: none; }
.pv-av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e6dfd2; box-shadow: 0 0 0 1px var(--rule); color: var(--ink-soft); font-size: 11.5px; font-weight: 600; }
.pv-av--worker { border-radius: 8px; background: var(--ink); box-shadow: none; }
.pv-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-name { font-weight: 650; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.pv-name span { font-weight: 500; font-size: 12px; color: var(--muted); }
.pv-badge { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); background: rgba(28, 42, 51, 0.08); padding: 1px 6px; border-radius: 5px; }
.pv-name .pv-badge { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }
.pv-mention { color: var(--sea); font-weight: 600; background: var(--sea-soft); padding: 0 4px; border-radius: 4px; }
.pv-card { margin-top: 6px; border-radius: 12px; padding: 10px 12px; background: var(--paper); box-shadow: 0 0 0 1px rgba(47, 90, 102, 0.35); display: flex; flex-direction: column; gap: 7px; }
.pv-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.pv-card-head b { font-weight: 650; }
.pv-ok { font-size: 12px; font-weight: 600; color: #2f6a4f; background: rgba(47, 106, 79, 0.12); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pv-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-soft); }
.pv-checks span::before { content: ""; display: inline-block; width: 8px; height: 4px; margin: 0 6px 3px 0; border-left: 1.6px solid var(--sea); border-bottom: 1.6px solid var(--sea); transform: rotate(-45deg); }
.pv-done { color: var(--sea); font-weight: 600; }
.pv-compose { margin: 8px 16px 16px; padding: 10px 14px; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); background: var(--raised); font-size: 13px; color: var(--muted); }
.pv-stamp { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: -2px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.pv-stamp i { width: 7px; height: 7px; border-radius: 50%; background: #9ccbd8; }
@media (max-width: 760px) {
  .pv-app { grid-template-columns: minmax(0, 1fr); }
  .pv-side { display: none; }
}
@media (max-width: 520px) {
  .pv-thread { padding: 14px 12px 6px; }
  .pv-head { padding: 10px 12px; flex-wrap: wrap; row-gap: 4px; }
  .pv-model { margin-left: 0; }
  .pv-compose { margin: 6px 12px 12px; }
  .pv-msg { padding-left: 26px; }
}


.mk { margin: 6px 0 0; display: flex; flex-direction: column; gap: 14px; }
.mk-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.mk-stage { position: relative; padding: 28px 28px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 236px; align-items: end; border-radius: 24px; background: linear-gradient(140deg, #2f5a66 0%, #24454f 55%, #1c2a33 100%); overflow: hidden; }
.mk-desk { min-width: 0; align-self: start; }
.mk-desk .pv { box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 40px 80px -30px rgba(0,0,0,.6); }
.ph { position: relative; z-index: 1; margin-left: -20px; margin-bottom: -12px; width: 256px; padding: 9px; border-radius: 40px; background: #10181d; box-shadow: 0 2px 6px rgba(0,0,0,.2), 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.ph-screen { border-radius: 32px; overflow: hidden; background: var(--raised); display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.ph p { margin: 0; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 4px; font-size: 11.5px; font-weight: 650; }
.ph-isl { width: 62px; height: 18px; border-radius: 999px; background: #10181d; }
.ph-bat { width: 20px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.3px var(--ink); padding: 2px; display: inline-flex; }
.ph-bat i { flex: 1; border-radius: 1px; background: var(--ink); }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid var(--rule); }
.ph-head b { display: block; font-size: 14px; }
.ph-head span { font-size: 11px; color: var(--muted); }
.ph-back { font-size: 24px; line-height: 1; color: var(--sea); }
.ph-thread { padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 12px; }
.ph-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
.ph-msg .pv-av { width: 26px; height: 26px; font-size: 9.5px; }
.ph-msg .pv-av--worker { border-radius: 7px; }
.ph-name { font-weight: 650; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.ph-name span { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.ph-name .pv-badge { font-size: 9.5px; }
.ph-card { margin-top: 6px; padding: 7px 9px; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px rgba(47, 90, 102, 0.35); display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; }
.ph-card .pv-ok { align-self: flex-start; font-size: 10.5px; }
.ph-compose { margin: 6px 12px 16px; padding: 8px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--rule); font-size: 11.5px; color: var(--muted); }
.mk .pv-stamp { margin-top: -30px; position: relative; }
.mk-three { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mk-three li { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.mk-three b { font-size: 16.5px; font-weight: 650; color: var(--ink); }
@media (max-width: 960px) {
  .mk-stage { padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
  .mk-desk { width: 100%; }
  .ph { width: 250px; margin: 0; }
}
@media (max-width: 760px) {
  .mk-three { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
