/* ============================================================
   origamy.io — full website design system (LIGHT · paper studio)
   Genre: warm paper canvas · butter craft accents · floating
   product cards · rounded bento panels (benchmarked vs Astryx,
   light dialect). Photography-led: origami craft + warm people.
   Type: Bricolage Grotesque (display) · Hanken Grotesk (body)
         · Fragment Mono (labels, chips, code)
   NOTE: --ink-* names are kept for page compatibility but hold
   the light "paper" values. --ink-0 = canvas, --ink-1 = panel,
   --ink-2 = card, --ink-3 = deep cream.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ink-0: #faf6ed;            /* page canvas · warm paper */
  --ink-1: #f1ecdd;            /* section panel · cream */
  --ink-2: #fffdf8;            /* card · warm white */
  --ink-3: #e9e2cf;            /* deep cream */
  --line: rgba(28, 24, 17, .12);
  --line-soft: rgba(28, 24, 17, .07);

  --text-hi: #1c1812;          /* warm ink */
  --text-mid: #57534a;
  --text-low: #8d887c;

  --butter: #ffd93d;           /* Moments · brand lead (fills) */
  --butter-deep: #eab308;      /* butter for text on paper */
  --butter-soft: #ffec6a;
  --butter-dim: rgba(255, 217, 61, .22);
  --coral: #e2503c;            /* Signals (text-safe) */
  --coral-fill: #ff7a6b;
  --peri: #5560e8;             /* Decisions (text-safe) */
  --peri-fill: #93a0ff;
  --mint: #1f9d68;             /* Engagements (text-safe) */
  --mint-fill: #5fd3a5;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;

  --r-panel: 2.5rem;
  --r-card: 1.5rem;
  --r-inner: 1.125rem;

  --shadow-soft: 0 24px 55px -28px rgba(28, 24, 17, .28);
  --shadow-card: 0 16px 40px -24px rgba(28, 24, 17, .22);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-0);
  color: var(--text-mid);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden) so position:sticky heroes still pin */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--butter); color: #171408; }

/* faint paper grain (fixed, non-interactive) */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .12  0 0 0 0 .1  0 0 0 0 .07  0 0 0 .028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--text-hi); font-weight: 700; letter-spacing: -.02em; }
.h-hero {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.04;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: -.025em;
}
.h-hero strong { color: var(--text-hi); font-weight: 750; }
.h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; }
.h3 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; font-weight: 700; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 58ch; }
.small { font-size: 14.5px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--butter);
}
.eyebrow.coral::before { background: var(--coral-fill); }
.eyebrow.peri::before { background: var(--peri-fill); }
.eyebrow.mint::before { background: var(--mint-fill); }

.mono { font-family: var(--mono); }
.butter { color: var(--butter-deep); }

/* ---------- giant wordmark ---------- */
.wordmark-hero {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 87.5%;
  font-size: clamp(56px, 10vw, 140px);
  line-height: .95;
  letter-spacing: -.045em;
  color: var(--butter);
  text-align: center;
  user-select: none;
}

/* ---------- nav (Astryx-style slim full-width bar) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center;
  padding: 12px clamp(16px, 2.4vw, 26px);
  background: transparent;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
  white-space: nowrap;
}
/* once the page scrolls past the hero, give the bar a readable frosted backing */
.nav.scrolled {
  background: rgba(250, 246, 237, .8);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(28, 24, 17, .06);
}
.nav-logo { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.nav-logo img { width: 26px; height: 26px; }
.nav-logo span {
  font-family: var(--display); font-weight: 800; font-size: 17.5px;
  letter-spacing: -.03em; color: var(--text-hi);
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14.5px; font-weight: 550; color: var(--text-mid);
  padding: 8px 13px; border-radius: 999px;
  transition: color .35s var(--ease), background .35s var(--ease);
}
.nav-links > a:hover, .nav-drop > button:hover { color: var(--text-hi); background: rgba(28, 24, 17, .05); }
.nav-drop { position: relative; }
.nav-drop > button::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
}
.nav-drop:hover > button::after, .nav-drop:focus-within > button::after { transform: rotate(225deg); margin-top: 3px; }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 270px;
  background: rgba(255, 253, 248, .97);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 8px;
  opacity: 0; visibility: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -20px rgba(28, 24, 17, .3);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.nav-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 13px;
  transition: background .3s var(--ease);
}
.nav-menu a:hover { background: rgba(28, 24, 17, .05); }
.nav-menu .dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.nav-menu b { display: block; color: var(--text-hi); font-weight: 650; font-size: 14.5px; }
.nav-menu span { display: block; font-size: 12.5px; color: var(--text-low); line-height: 1.35; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 10px;
  background: var(--text-hi);
  color: var(--ink-0);
  font-weight: 650; font-size: 14.5px;
  padding: 9px 19px; border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: #000; box-shadow: 0 10px 26px -12px rgba(28, 24, 17, .5); }
.nav-cta:active { transform: scale(.98); }

/* hamburger (mobile) */
.nav-burger { display: none; position: relative; width: 38px; height: 38px; border-radius: 999px; }
.nav-burger i {
  position: absolute; left: 10px; right: 10px; height: 1.8px;
  background: var(--text-hi); border-radius: 2px;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.nav-burger i:nth-child(1) { top: 14px; }
.nav-burger i:nth-child(2) { top: 22px; }
body.menu-open .nav-burger i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-burger i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(250, 246, 237, .94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.mobile-menu a {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 8vw, 44px); letter-spacing: -.03em;
  color: var(--text-hi); padding: 10px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu a.sub { font-size: clamp(20px, 5.4vw, 26px); color: var(--text-mid); font-weight: 600; padding: 6px 0; }
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: .06s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .1s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .14s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .18s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: .22s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: .26s; }
body.menu-open .mobile-menu a:nth-child(7) { transition-delay: .3s; }
body.menu-open .mobile-menu a:nth-child(8) { transition-delay: .34s; }
body.menu-open .mobile-menu a:nth-child(9) { transition-delay: .38s; }
body.menu-open .mobile-menu a:nth-child(10) { transition-delay: .42s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--butter); color: #171408;
  font-weight: 700; font-size: 16px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  box-shadow: inset 0 -2px 0 rgba(28, 24, 17, .14);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn .orb {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(23, 20, 8, .14);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
}
.btn .orb svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 -2px 0 rgba(28, 24, 17, .14), 0 16px 38px -14px rgba(234, 179, 8, .5); }
.btn:hover .orb { transform: translate(2px, -1px) scale(1.06); }
.btn:active { transform: scale(.98); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  color: var(--text-hi); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--ink-2);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-ghost:hover { border-color: rgba(28, 24, 17, .28); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-ghost:active { transform: scale(.98); }

/* Astryx light-mode button pair: solid ink primary · quiet neutral secondary */
.btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--text-hi); color: var(--ink-0);
  font-weight: 650; font-size: 15.5px;
  padding: 13px 28px; border-radius: 999px;
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-ink:hover { transform: translateY(-2px); background: #000; box-shadow: 0 16px 34px -16px rgba(28, 24, 17, .55); }
.btn-ink:active { transform: scale(.98); }
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #eae4d3; color: var(--text-hi);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 28px; border-radius: 999px;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.btn-soft:hover { transform: translateY(-2px); background: #e3dcc7; }
.btn-soft:active { transform: scale(.98); }

/* decorative hero carousel dots */
.hero-dots { display: flex; gap: 8px; justify-content: center; align-items: center; }
.hero-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(28, 24, 17, .18); transition: all .4s var(--ease); }
.hero-dots i.on { width: 28px; background: var(--text-hi); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-hi); font-weight: 650; font-size: 15px;
}
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); color: var(--butter-deep); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- sections / panels ---------- */
.section { padding: clamp(90px, 11vw, 150px) 0; position: relative; }

.page-hero { position: relative; }

/* sub-page background: soft, airy, page-wide gradient mesh (premium light aesthetic).
   Set --pg / --pg2 per page to steer the two lead hues; coral + mint round it out. */
body:has(.page-hero) {
  background:
    radial-gradient(48% 36% at 10% -2%, color-mix(in srgb, var(--pg, var(--butter)) 17%, transparent), transparent 72%),
    radial-gradient(46% 34% at 94% 2%, color-mix(in srgb, var(--pg2, var(--peri-fill)) 15%, transparent), transparent 72%),
    radial-gradient(56% 46% at 102% 46%, color-mix(in srgb, var(--coral-fill) 9%, transparent), transparent 72%),
    radial-gradient(52% 42% at -4% 60%, color-mix(in srgb, var(--mint-fill) 8%, transparent), transparent 72%),
    radial-gradient(60% 40% at 50% 100%, color-mix(in srgb, var(--pg, var(--butter)) 8%, transparent), transparent 74%),
    var(--ink-0);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.section-head { max-width: 720px; display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .lede { color: var(--text-mid); }

.panel {
  background: var(--ink-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  overflow: hidden;
  position: relative;
}

/* double-bezel card: .card is the shell, .card-core the machined inner */
.card {
  background: rgba(28, 24, 17, .045);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 7px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-core {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-inner);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  padding: clamp(22px, 2.6vw, 30px);
  height: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
.card-core p { font-size: 15.5px; color: var(--text-mid); }
.card-core .link-arrow { margin-top: auto; padding-top: 10px; font-size: 14.5px; }

/* ---------- chips / labels ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-hi);
  background: rgba(255, 253, 248, .9);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 6px 18px -8px rgba(28, 24, 17, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-fill); flex: none; }
.chip .dot.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.honesty {
  display: inline-flex; align-items: flex-start; gap: 9px;
  font-family: var(--mono); font-size: 12px; line-height: 1.55;
  color: var(--text-low);
  border: 1px dashed rgba(28, 24, 17, .22);
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 62ch;
}
.honesty::before { content: "✳"; color: var(--butter-deep); flex: none; }

.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tag.butter { background: var(--butter-dim); color: #8a6d00; }
.tag.coral { background: rgba(255, 122, 107, .16); color: var(--coral); }
.tag.peri { background: rgba(147, 160, 255, .18); color: var(--peri); }
.tag.mint { background: rgba(95, 211, 165, .18); color: var(--mint); }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink-2);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; gap: 56px; width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker-track span {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-low);
  display: inline-flex; align-items: center; gap: 14px;
  white-space: nowrap;
}
.ticker-track span::after { content: "·"; color: var(--butter-deep); font-size: 18px; }
.ticker-track b { color: var(--text-hi); font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- media frames (generated-image slots) ---------- */
.media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink-3); /* flat warm cream — no gradient */
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}
.media::before {  /* folded dog-ear, top right */
  content: "";
  position: absolute; top: 0; right: 0; z-index: 3;
  border-style: solid; border-width: 0 34px 34px 0;
  border-color: transparent var(--ink-0) transparent transparent;
}
.media::after {
  content: "";
  position: absolute; top: 0; right: 0; z-index: 4;
  border-style: solid; border-width: 34px 34px 0 0;
  border-color: rgba(28, 24, 17, .14) transparent transparent transparent;
}
.media > img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s var(--ease);
}
.media > img.loaded { opacity: 1; }
.media .ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px;
}
.media .ph img.crane { position: static; width: 46px; height: 46px; opacity: .5; }
.media .ph .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-low); }
.media .chip { position: absolute; z-index: 5; }

.ar-45 { aspect-ratio: 4 / 5; }
.ar-54 { aspect-ratio: 5 / 4; }
.ar-11 { aspect-ratio: 1 / 1; }
.ar-169 { aspect-ratio: 16 / 9; }
.ar-32 { aspect-ratio: 3 / 2; }
.ar-219 { aspect-ratio: 21 / 9; }

/* full-width photo band */
.photo-band { position: relative; }
.photo-band .media { border-radius: var(--r-panel); }

/* ---------- product-UI mock primitives ---------- */
.ui {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .85);
  overflow: hidden;
  font-size: 13px;
}
.ui-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-low);
}
.ui-head .dots { display: flex; gap: 5px; margin-right: 4px; }
.ui-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(28, 24, 17, .14); }
.ui-body { padding: 15px; display: grid; gap: 10px; }
.ui-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: rgba(28, 24, 17, .035);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  color: var(--text-mid);
}
.ui-row .mono { font-size: 11px; }
.ui-row b { color: var(--text-hi); font-weight: 650; }
.ui-bar { height: 5px; border-radius: 99px; background: rgba(28, 24, 17, .1); overflow: hidden; }
.ui-bar i { display: block; height: 100%; width: 60%; border-radius: 99px; background: var(--butter); }

/* ---------- appshot: realistic product-screenshot mock (CEP imagery, not a photo) ---------- */
.appshot {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.appshot-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink-1);
}
.appshot-bar .dots { display: flex; gap: 6px; }
.appshot-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(28, 24, 17, .16); }
.appshot-bar .url {
  flex: 1; max-width: 340px; margin: 0 auto;
  font-family: var(--mono); font-size: 11px; color: var(--text-low);
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 5px 12px; text-align: center;
}
.appshot-body { display: grid; grid-template-columns: 176px 1fr; min-height: 320px; }
.appshot-nav { border-right: 1px solid var(--line-soft); padding: 14px 12px; display: grid; gap: 3px; align-content: start; background: var(--ink-1); }
.appshot-nav .brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; }
.appshot-nav .brand img { width: 18px; }
.appshot-nav .brand b { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--text-hi); letter-spacing: -.02em; }
.appshot-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 9px;
  font-size: 12.5px; color: var(--text-mid); font-weight: 500;
}
.appshot-nav a .ic { width: 14px; height: 14px; border-radius: 4px; background: rgba(28,24,17,.14); flex: none; }
.appshot-nav a.on { background: var(--butter-dim); color: var(--text-hi); font-weight: 650; }
.appshot-nav a.on .ic { background: var(--butter); }
.appshot-main { padding: clamp(16px, 2vw, 24px); display: grid; gap: 12px; align-content: start; }
.appshot-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.appshot-h h4 { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--text-hi); }
.appshot-pill { font-family: var(--mono); font-size: 10.5px; color: var(--text-mid); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.appshot-btn { background: var(--text-hi); color: var(--ink-0); font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 6px 13px; }
@media (max-width: 640px) { .appshot-body { grid-template-columns: 1fr; } .appshot-nav { display: none; } }

/* journey-canvas node graph inside an appshot */
.jflow { display: grid; gap: 10px; }
.jnode {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-1); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 11px 13px;
  position: relative;
}
.jnode.trig { border-color: rgba(255,122,107,.4); }
.jnode.msg { border-color: rgba(255,217,61,.5); }
.jnode.waitn { border-color: rgba(95,211,165,.4); }
.jnode b { color: var(--text-hi); font-weight: 650; font-size: 13px; }
.jnode .mono { font-size: 10.5px; color: var(--text-low); margin-left: auto; }
.jnode .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; flex: none; }
.jnode.trig .ic { background: rgba(255,122,107,.16); }
.jnode.msg .ic { background: var(--butter-dim); }
.jnode.waitn .ic { background: rgba(95,211,165,.16); }
.jbranch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jconnect { height: 12px; width: 1px; background: var(--line); margin: 0 auto; }

/* stat tiles row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--ink-1); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.stat .n { font-family: var(--display); font-weight: 750; font-size: clamp(20px, 2vw, 26px); color: var(--text-hi); letter-spacing: -.02em; }
.stat .l { font-size: 11.5px; color: var(--text-low); margin-top: 2px; }
.stat .d { font-family: var(--mono); font-size: 10px; margin-top: 6px; }
.stat .d.up { color: var(--mint); }
/* mini sparkbars */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 8px; }
.spark i { flex: 1; background: var(--butter); border-radius: 3px 3px 0 0; opacity: .85; }

/* code / terminal card — deliberate dark island on the paper page */
.term {
  background: #16130d;
  border: 1px solid rgba(28, 24, 17, .5);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(28, 24, 17, .5);
}
.term .ui-head { color: #8f8a7d; border-bottom-color: rgba(255, 251, 240, .1); }
.term .ui-head .dots i { background: rgba(255, 251, 240, .18); }
.term pre {
  padding: 20px 22px;
  font-family: var(--mono); font-size: 12.75px; line-height: 1.75;
  color: #d8d3c6;
  overflow-x: auto;
}
.term .c-key { color: #ff9a8a; }
.term .c-str { color: #8fe3b8; }
.term .c-num { color: #ffd93d; }
.term .c-typ { color: #a7b1ff; }
.term .c-com { color: #756f61; font-style: italic; }

/* ---------- reveal choreography ---------- */
.rv {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(7px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
}
.rv.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.rv-stagger > * { transition-delay: 0s; }
.rv-stagger > *:nth-child(2) { transition-delay: .08s; }
.rv-stagger > *:nth-child(3) { transition-delay: .16s; }
.rv-stagger > *:nth-child(4) { transition-delay: .24s; }
.rv-stagger > *:nth-child(5) { transition-delay: .32s; }
.rv-stagger > *:nth-child(6) { transition-delay: .4s; }

/* ---------- finale / waitlist ---------- */
.finale-panel {
  background: var(--ink-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  padding: clamp(64px, 8vw, 110px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.finale-panel > * { position: relative; z-index: 1; }

/* sub-page finale: clean cream panel (base) — awaiting Hightouch reference to
   finalise the design. A soft colour edge keeps it from reading empty. */
body:has(.page-hero) .finale-panel {
  box-shadow: var(--shadow-soft);
}
body:has(.page-hero) .finale-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 0;
  background: linear-gradient(90deg, var(--butter) 0 25%, var(--coral-fill) 25% 50%, var(--peri-fill) 50% 75%, var(--mint-fill) 75% 100%);
}
.finale-panel .wordmark-inline {
  font-family: var(--display); font-weight: 800; font-stretch: 87.5%;
  color: var(--butter-deep); letter-spacing: -.04em;
}
.wl-form {
  display: flex; gap: 8px;
  max-width: 460px; margin: 34px auto 0;
  padding: 7px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.wl-form input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--text-hi);
  font: 500 15.5px var(--body);
  padding: 0 10px 0 16px;
}
.wl-form input::placeholder { color: var(--text-low); }
.wl-form button {
  background: var(--butter); color: #171408;
  font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: inset 0 -2px 0 rgba(28, 24, 17, .14);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.wl-form button:hover { transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(28, 24, 17, .14), 0 12px 30px -12px rgba(234, 179, 8, .55); }
.wl-note { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--text-low); }
.wl-ok { color: var(--mint); font-weight: 650; margin-top: 18px; display: none; }

/* ---------- footer (beautified: rounded cream panel + brand hairline) ---------- */
footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(52px, 6vw, 84px) 0 32px;
  background: #f3eee1;
  border-top: 1px solid var(--line-soft);
  border-radius: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) 0 0;
  font-size: 14px;
  overflow: hidden;
}
/* colourful brand hairline across the very top edge */
footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--butter) 0 25%, var(--coral-fill) 25% 50%,
    var(--peri-fill) 50% 75%, var(--mint-fill) 75% 100%);
}
/* giant faint wordmark watermark, bottom-right */
footer::after {
  content: "origamy";
  position: absolute; right: clamp(-8px, 1vw, 24px); bottom: -.28em;
  font-family: var(--display); font-weight: 800; font-stretch: 87.5%;
  font-size: clamp(90px, 17vw, 260px); letter-spacing: -.05em;
  line-height: 1; color: rgba(28, 24, 17, .04);
  pointer-events: none; user-select: none;
}
footer .wrap { position: relative; z-index: 1; }
.foot-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 26px;
  padding-bottom: 32px; flex-wrap: wrap;
}
/* footer uses the full long logo (crane + wordmark) */
.foot-mark {
  display: block; width: clamp(142px, 16vw, 178px); height: 46px;
  background: url(assets/brand/logo-long.png) left center / contain no-repeat;
}
.foot-mark img, .foot-mark span { display: none; }
.foot-links { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.foot-links a { position: relative; padding: 8px 13px; border-radius: 999px; color: var(--text-mid); font-weight: 550; transition: color .3s var(--ease), background .3s var(--ease); }
.foot-links a:hover { color: var(--text-hi); background: rgba(28, 24, 17, .06); }
.foot-icons { display: flex; gap: 10px; }
.foot-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink-2); border: 1px solid var(--line-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  transition: transform .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.foot-icons a:hover { transform: translateY(-3px); color: var(--text-hi); border-color: rgba(28, 24, 17, .16); box-shadow: var(--shadow-card); }
.foot-icons svg { width: 17px; height: 17px; }
.foot-legal {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  font-family: var(--mono); font-size: 12px; color: var(--text-low);
}
.foot-legal .links { display: flex; gap: 20px; }
.foot-legal a { transition: color .3s var(--ease); }
.foot-legal a:hover { color: var(--text-hi); }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-fill); animation: pulse 2.4s infinite; }

/* ---------- decision feed (home hero component) ---------- */
.feed-card { width: 320px; }
.feed-sig { display: flex; align-items: center; justify-content: space-between; }
.feed-ms { font-family: var(--mono); font-size: 11px; color: var(--text-low); }
.feed-ms b { color: var(--butter-deep); font-weight: 600; }
.feed-progress { height: 4px; border-radius: 99px; background: rgba(28, 24, 17, .1); overflow: hidden; }
.feed-progress i {
  display: block; height: 100%; width: 0%;
  background: var(--butter);
  border-radius: 99px;
  transition: width .12s linear;
}
.feed-actions { display: grid; gap: 7px; }
.feed-actions .ui-row { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.feed-actions .ui-row.on { opacity: 1; transform: translateY(0); }
.feed-audit {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-low);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  opacity: 0; transition: opacity .5s var(--ease);
}
.feed-audit.on { opacity: 1; }
.tick { color: var(--mint); }

/* ---------- misc ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }

.blob { width: 34px; height: 34px; border-radius: 12px 14px 10px 16px; margin-bottom: 18px; box-shadow: inset 0 -3px 0 rgba(28, 24, 17, .15); }
.blob.butter { background: var(--butter); }
.blob.coral { background: var(--coral-fill); }
.blob.peri { background: var(--peri-fill); }
.blob.mint { background: var(--mint-fill); }

.divider-fold {
  height: 1px; border: 0;
  border-top: 1px dashed rgba(28, 24, 17, .16);
  margin: 0 var(--gutter);
}

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--butter); color: #171408;
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.skip:focus { left: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-float { display: none !important; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .grid-2, .grid-3, .grid-4, .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; filter: none; }
}
