/* Layout concept: left-aligned editorial column with one big animated flask as the hero's signature; services sit as labeled jars on a shelf; contact pairs a filling mini-flask with the form. */
:root {
  --bg: #F4F2FC;          /* lilac mist */
  --surface: #FFFFFF;
  --ink: #251640;         /* plum ink */
  --ink-soft: #5B4E78;
  --line: #DCD5F0;
  --teal: #0E9C8E;
  --magenta: #D3367F;
  --gold: #E9A52A;
  --lilac: #9B86E8;
  --glass: #251640;
  --shelf: #C9B98F;
  --on-accent: #FFFFFF;
  --focus: #0E9C8E;
  --band: #251640;        /* always-dark section bands */
  --band-ink: #F1ECFF;
  --shadow: 0 18px 40px -24px rgba(37, 22, 64, .45);

  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.8rem, 7.4vw, 5.6rem);
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #170F29; --surface: #221839; --ink: #F1ECFF; --ink-soft: #B9AED6; --line: #3A2E57;
    --teal: #3FD6C4; --magenta: #FF6FAE; --gold: #FFC85A; --lilac: #B7A6FF; --glass: #E6DEFF;
    --shelf: #6E5E3E; --on-accent: #170F29; --focus: #3FD6C4; --band: #0D0819; --band-ink: #F1ECFF; --shadow: 0 18px 40px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #170F29; --surface: #221839; --ink: #F1ECFF; --ink-soft: #B9AED6; --line: #3A2E57;
  --teal: #3FD6C4; --magenta: #FF6FAE; --gold: #FFC85A; --lilac: #B7A6FF; --glass: #E6DEFF;
  --shelf: #6E5E3E; --on-accent: #170F29; --focus: #3FD6C4; --band: #0D0819; --band-ink: #F1ECFF; --shadow: 0 18px 40px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.08; margin: 0; text-wrap: balance; font-weight: 700; }
h2 { font-size: var(--step-3); letter-spacing: -.02em; }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--bg);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.bm-glass { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.bm-liquid { fill: var(--teal); animation: brew 16s ease-in-out infinite; }
.bm-bubble { fill: #fff; opacity: 0; animation: fizz 2.4s ease-in infinite; }
.bm-bubble + .bm-bubble { animation-delay: -1.1s; animation-duration: 2s; }
.bm-spark { fill: var(--gold); transform-origin: 24px 5px; animation: twinkle 3.2s ease-in-out infinite; }
.brand-word { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; font-variation-settings: "wdth" 88; }
.brand-llc { font-size: .62em; font-weight: 600; color: var(--ink-soft); margin-left: 4px; vertical-align: .35em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: 999px;
  transition: background-color .2s;
}
.site-nav a:hover { background: color-mix(in srgb, var(--lilac) 22%, transparent); }
.site-nav .nav-cta { background: var(--ink); color: var(--bg); margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--magenta); color: var(--on-accent); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; width: auto;
    background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px;
    padding: 6px 14px; font: 600 .95rem var(--font); cursor: pointer;
  }
  .nt-bar { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 2px solid var(--line);
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
  }
  .site-nav[data-open="false"] { display: none; }
  .site-nav a { padding: 12px 14px; font-size: 1.1rem; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* Our Apps dropdown: hover or click on desktop, always listed inside the mobile menu */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px; font: 550 var(--step-0) var(--font); color: inherit;
  background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background-color .2s;
}
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--lilac) 22%, transparent); }
.nav-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: rotate .2s; }
.nav-drop-btn[aria-expanded="true"] .nav-chev { rotate: 180deg; }
.nav-drop-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; width: 270px;
  background: var(--surface); border: 2px solid var(--glass); border-radius: 16px; box-shadow: 6px 6px 0 var(--lilac);
  display: none; z-index: 25;
}
.nav-drop-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
.nav-drop:hover .nav-drop-menu, .nav-drop-btn[aria-expanded="true"] + .nav-drop-menu { display: block; }
.site-nav .nav-drop-menu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; }
.nav-drop-menu strong { font-weight: 700; }
.nav-drop-menu span { font-size: var(--step--1); color: var(--ink-soft); font-weight: 450; }
@media (max-width: 900px) {
  .nav-drop-btn { pointer-events: none; padding: 12px 14px 4px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
  .nav-chev { display: none; }
  .nav-drop-menu { display: block; position: static; translate: none; width: auto; border: 0; box-shadow: none; padding: 0 0 0 10px; background: none; }
  .nav-drop-menu::before { display: none; }
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1.02rem var(--font); text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--ink);
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 4px 4px 0 var(--magenta); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--magenta); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--gold) 30%, transparent); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-copy { min-width: 0; display: grid; gap: 22px; }
.hero-kicker { font-weight: 600; color: var(--teal); font-size: var(--step-0); }
.hero-title {
  font-size: var(--step-4); font-weight: 800; letter-spacing: -.012em; line-height: .98;
  font-variation-settings: "wdth" 100, "opsz" 96;
}
.ht-line { display: block; }
.ht-chaos {
  color: var(--magenta);
  font-variation-settings: "wdth" 100, "opsz" 96;
  font-weight: 300;
  font-style: normal;
  letter-spacing: .02em;
}
.ht-chaos .wob { display: inline-block; animation: wobble 2.8s ease-in-out infinite; }
.ht-chaos .wob:nth-child(2) { animation-delay: -1.1s; animation-duration: 3.4s; }
.ht-gold {
  background: linear-gradient(100deg, var(--gold), #F7D27A 40%, var(--gold) 60%, #C9851A);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
.hero-lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

.hero-art { min-width: 0; }
.flask-scene { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.glow-in { stop-color: var(--lilac); stop-opacity: .45; }
.glow-out { stop-color: var(--lilac); stop-opacity: 0; }
.flask-glow { animation: breathe 5s ease-in-out infinite; transform-origin: 220px 290px; }

.glass { fill: none; stroke: var(--glass); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.glass-shine { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; opacity: .5; }
.rim { fill: var(--surface); stroke: var(--glass); stroke-width: 5; }
.tick { stroke: var(--glass); stroke-width: 3; stroke-linecap: round; opacity: .5; }
.liquid-back { fill: var(--teal); opacity: .6; animation: brew 16s ease-in-out -1.2s infinite; }
.liquid { fill: var(--teal); animation: brew 16s ease-in-out infinite; }
.wave-track { animation: wave 3.6s linear infinite; }
.bub { fill: #fff; opacity: .85; animation: rise 3.2s ease-in infinite; }
.b2 { animation-delay: -.8s; animation-duration: 2.6s; }
.b3 { animation-delay: -1.6s; animation-duration: 3.8s; }
.b4 { animation-delay: -2.2s; }
.b5 { animation-delay: -.3s; animation-duration: 2.9s; }

.spark { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.s2 { animation-delay: -.8s; }
.s3 { animation-delay: -1.5s; }

/* ingredients drop into the flask neck, one after another */
.ing { transform-box: view-box; animation: drop 8s cubic-bezier(.5,0,.75,.4) infinite; opacity: 0; }
.ing-1 { animation-delay: 0s; }
.ing-2 { animation-delay: -6s; }
.ing-3 { animation-delay: -4s; }
.ing-4 { animation-delay: -2s; }
.ing-spin { animation: spin 6s linear infinite; }
.ing-gear { fill: var(--gold); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ing-hole { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.ing-chip { fill: var(--magenta); stroke: var(--ink); stroke-width: 2; }
.ing-code { fill: var(--on-accent); font: 800 17px var(--font); }
.ing-head, .ing-body { fill: var(--lilac); stroke: var(--ink); stroke-width: 2; }
.ing-card { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.ing-check { stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }

.shipped { animation: bob 4s ease-in-out infinite; }
.app { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.app-bar { fill: var(--ink); }
.app-bar-fix { fill: var(--ink); }
.app-dot { fill: var(--bg); }
.app-line { fill: var(--line); }
.app-ok { fill: var(--teal); }
.app-ok-tick { fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.shipped-label { fill: var(--ink-soft); font: 600 15px var(--font); animation: bob 4s ease-in-out infinite; }

@keyframes drop {
  0%   { transform: translate(var(--x0, 220px), -30px) rotate(0deg); opacity: 0; }
  6%   { opacity: 1; }
  22%  { transform: translate(var(--x1, 220px), 70px) rotate(25deg) scale(1); opacity: 1; }
  30%  { transform: translate(220px, 150px) rotate(40deg) scale(.4); opacity: 0; }
  100% { transform: translate(220px, 150px) scale(.4); opacity: 0; }
}
.ing-1 { --x0: 120px; --x1: 196px; }
.ing-2 { --x0: 330px; --x1: 236px; }
.ing-3 { --x0: 90px;  --x1: 206px; }
.ing-4 { --x0: 360px; --x1: 228px; }

/* liquid slowly cycles through the brand colors */
@keyframes brew {
  0%, 100% { fill: var(--teal); }
  25% { fill: var(--magenta); }
  50% { fill: var(--gold); }
  75% { fill: var(--lilac); }
}
@keyframes fizz {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: translateY(-5px); opacity: 0; }
}
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-120px); } }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-170px); opacity: 0; }
}
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0deg); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-.08em) rotate(-8deg); } 60% { transform: translateY(.04em) rotate(6deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }

/* ---------- Section heads ---------- */
.services, .process, .who, .contact { padding-block: clamp(56px, 9vw, 110px); }
.sec-head { display: grid; gap: 14px; max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Services: jars on a shelf ---------- */
.services { background: var(--surface); border-block: 2px solid var(--line); }
.shelf {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px;
}
.jar-item { display: grid; gap: 12px; align-content: start; min-width: 0; }
.jar {
  position: relative; height: 170px; width: 128px;
  border: 4px solid var(--glass); border-radius: 30px 30px 26px 26px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 14px 0 -6px var(--shelf);
}
.jar::before { /* glass highlight */
  content: ""; position: absolute; left: 12px; top: 28px; width: 8px; height: 70px; border-radius: 8px;
  background: var(--surface); opacity: .8; z-index: 2;
}
.jar-cork {
  position: absolute; left: 50%; top: -4px; width: 56px; height: 20px; translate: -50% 0;
  background: var(--shelf); border-bottom: 4px solid var(--glass); z-index: 3;
}
.jar-fill {
  position: absolute; inset: auto 0 0 0; height: 62%;
  transition: height .5s cubic-bezier(.3,1.5,.5,1);
}
.jar-fill::before { /* surface wobble */
  content: ""; position: absolute; left: -10%; right: -10%; top: -8px; height: 16px; border-radius: 50%;
  background: inherit;
}
.jar-fill i {
  position: absolute; bottom: 10px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); opacity: 0;
}
.jar-fill i:nth-child(1) { left: 28%; }
.jar-fill i:nth-child(2) { left: 55%; width: 7px; height: 7px; }
.jar-fill i:nth-child(3) { left: 70%; width: 12px; height: 12px; }
.jar-item:hover .jar-fill { height: 74%; }
.jar-item:hover .jar-fill i { animation: rise-sm 1.4s ease-in infinite; }
.jar-item:hover .jar-fill i:nth-child(2) { animation-delay: .4s; }
.jar-item:hover .jar-fill i:nth-child(3) { animation-delay: .8s; }
@keyframes rise-sm { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-90px); opacity: 0; } }

.jar-tag {
  position: absolute; left: 50%; top: 48px; translate: -50% 0; rotate: -4deg; z-index: 2;
  background: var(--surface); color: var(--ink); border: 2px solid var(--glass);
  font-weight: 800; font-size: .95rem; padding: 4px 12px; border-radius: 6px;
  font-variation-settings: "wdth" 80;
}
.jar-teal .jar-fill { background: var(--teal); }
.jar-magenta .jar-fill { background: var(--magenta); }
.jar-gold .jar-fill { background: var(--gold); }
.jar-lilac .jar-fill { background: var(--lilac); }
.jar-magenta .jar-tag { rotate: 3deg; }
.jar-gold .jar-tag { rotate: -2deg; }
.jar-lilac .jar-tag { rotate: 5deg; }
.jar-item p { color: var(--ink-soft); }

/* ---------- Process pipeline ---------- */
.pipeline {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.pipeline::before, .pipeline::after { /* the glass tube and the liquid that flows through it */
  content: ""; position: absolute; left: 36px; right: 36px; top: 30px; height: 12px; border-radius: 12px;
}
.pipeline::before { background: var(--surface); border: 3px solid var(--glass); top: 27px; height: 18px; }
.pipeline::after {
  background: linear-gradient(90deg, var(--teal), var(--magenta), var(--gold), var(--lilac));
  transform-origin: left center; transform: scaleX(1);
}
.pipeline.is-waiting::after { transform: scaleX(0); }
.pipeline.is-pouring::after { animation: pour 2.2s cubic-bezier(.6,.05,.3,1) both; }
@keyframes pour { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step-bulb {
  position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--glass); background: var(--surface);
  display: grid; place-items: center; margin-bottom: 6px;
}
.step-num { font-weight: 800; font-size: 1.6rem; font-variation-settings: "wdth" 80; }
.step:nth-child(1) .step-bulb { background: var(--teal); color: var(--on-accent); }
.step:nth-child(2) .step-bulb { background: var(--magenta); color: var(--on-accent); }
.step:nth-child(3) .step-bulb { background: var(--gold); color: #251640; }
.step:nth-child(4) .step-bulb { background: var(--lilac); color: #251640; }
.step p { color: var(--ink-soft); }

/* ---------- Who we help ---------- */
.who { background: var(--band); color: var(--band-ink); border-block: 2px solid var(--line); }
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.who-intro { display: grid; gap: 18px; }
.who-intro p { opacity: .85; font-size: 1.1rem; }
.who-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.who-col { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 3px dashed color-mix(in srgb, var(--band-ink) 35%, transparent); }
.who-col p { opacity: .82; }
.who-icon { width: 52px; height: 52px; }
.wi-a { fill: #FFC85A; stroke: var(--band-ink); stroke-width: 2; stroke-linejoin: round; }
.wi-b { fill: var(--band); stroke: var(--band-ink); stroke-width: 2; }
.wi-c { fill: none; stroke: var(--band-ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.who-col:nth-child(2) .wi-a { fill: #3FD6C4; }
/* gold line sits on a dark blob that slowly wobbles, so it reads in light and dark mode */
.who-local {
  grid-column: 1 / -1; justify-self: start; position: relative; isolation: isolate;
  font-weight: 650; color: #FFC85A; padding: 16px 30px; margin-top: 8px;
}
.who-local::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #170F29; border: 2px solid color-mix(in srgb, #FFC85A 45%, transparent);
  border-radius: 30px 38px 26px 34px / 34px 26px 38px 30px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
  animation: blob 7s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 30px 38px 26px 34px / 34px 26px 38px 30px; transform: rotate(-.8deg) scale(1, 1); }
  33% { border-radius: 40px 24px 36px 28px / 26px 40px 28px 36px; transform: rotate(.6deg) scale(1.02, .94); }
  66% { border-radius: 26px 36px 40px 24px / 38px 30px 24px 40px; transform: rotate(-.3deg) scale(.99, 1.06); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-side { display: grid; gap: 22px; }
.contact-side > p { color: var(--ink-soft); font-size: 1.1rem; }

.mini-flask { display: flex; align-items: center; gap: 18px; }
.mini-flask svg { width: 96px; flex: none; }
.mf-glass { fill: none; stroke: var(--glass); stroke-width: 4; stroke-linejoin: round; }
.mf-rim { fill: var(--surface); stroke: var(--glass); stroke-width: 4; }
.mf-liquid {
  fill: var(--mf-color, var(--line));
  transform: translateY(var(--mf-level, 128px));
  transition: transform .7s cubic-bezier(.3,1.5,.5,1), fill .5s;
}
.mf-bub { fill: var(--surface); opacity: 0; }
.mini-flask.is-brewing .mf-bub { animation: rise-mini 1.6s ease-in infinite; }
.mini-flask.is-brewing .mf-bub2 { animation-delay: .7s; }
@keyframes rise-mini { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-60px); opacity: 0; } }
.mf-label { font-weight: 600; color: var(--ink-soft); min-width: 0; }

.reach { margin: 0; display: grid; gap: 18px; padding-top: 22px; border-top: 2px solid var(--line); }
.reach div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.reach dt { font-weight: 700; color: var(--teal); }
.reach dd { margin: 0; }
.reach address { font-style: normal; }
.reach a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--magenta); }
.dir-link { display: inline-block; margin-top: 6px; }

.contact-form {
  min-width: 0;
  background: var(--surface); border: 3px solid var(--glass); border-radius: 22px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 10px 10px 0 var(--lilac);
  display: grid; gap: 18px;
}
.ingredients { border: 0; margin: 0; padding: 0; min-width: 0; }
.ingredients legend { font-weight: 700; padding: 0; margin-bottom: 10px; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid var(--line); background: var(--bg);
  transition: transform .2s cubic-bezier(.3,1.8,.5,1), background-color .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip input:checked + span { transform: translateY(-2px) rotate(-1.5deg); border-color: var(--ink); color: var(--on-accent); }
.chip-teal input:checked + span { background: var(--teal); }
.chip-magenta input:checked + span { background: var(--magenta); }
.chip-gold input:checked + span { background: var(--gold); color: #251640; }
.chip-lilac input:checked + span { background: var(--lilac); color: #251640; }
.chip-plain input:checked + span { background: var(--ink); color: var(--bg); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 650; font-size: .98rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--magenta); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn-send[disabled] { opacity: .7; cursor: progress; }
.form-status { font-weight: 600; min-width: 0; flex: 1 1 220px; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-err { color: var(--magenta); }

/* keyboard focus stays visible on the dark bands in light mode */
.who :focus-visible, .app-band :focus-visible { outline-color: #3FD6C4; }

/* ---------- Footer ---------- */
.site-foot { border-top: 2px solid var(--line); padding-block: 36px 44px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot-brand { font-weight: 800; }
.foot-brand span { font-weight: 400; color: var(--ink-soft); }
.foot-addr, .foot-small { color: var(--ink-soft); }
.foot-addr a { color: var(--ink); font-weight: 600; }
.foot-small { align-self: end; }
.foot-apps { display: grid; gap: 2px; align-content: start; }
.foot-apps span { font-weight: 800; }
.foot-apps a { color: var(--ink-soft); text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.foot-apps a:hover { color: var(--ink); }

/* ---------- App pages (/apps/*) ---------- */
.crumbs { font-size: var(--step--1); color: var(--ink-soft); }
.crumbs a { text-underline-offset: 3px; }
.app-hero { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 88px); overflow: hidden; }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.app-hero-copy { display: grid; gap: 20px; min-width: 0; }
.app-title { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; font-variation-settings: "wdth" 84, "opsz" 96; }
.app-lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 36em; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; border: 2px solid var(--ink); background: var(--surface); }
.badge-teal { background: var(--teal); color: var(--on-accent); }
.badge-gold { background: var(--gold); color: #251640; }
.badge-magenta { background: var(--magenta); color: var(--on-accent); }
.badge-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ext-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* device frames */
.phone-frame { border: 5px solid var(--glass); border-radius: 30px; overflow: hidden; background: var(--glass); box-shadow: var(--shadow); }
.phone-frame img { width: 100%; height: auto; border-radius: 24px; }
.browser-frame { border: 3px solid var(--glass); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 8px 8px 0 var(--lilac); }
.browser-frame::before { content: ""; display: block; height: 22px; background:
  radial-gradient(circle at 14px 50%, var(--magenta) 4px, transparent 4.5px),
  radial-gradient(circle at 28px 50%, var(--gold) 4px, transparent 4.5px),
  radial-gradient(circle at 42px 50%, var(--teal) 4px, transparent 4.5px), var(--line); border-bottom: 2px solid var(--glass); }
.browser-frame img { width: 100%; height: auto; }
.duo { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 460px; margin-inline: auto; }
.duo .phone-frame:nth-child(1) { rotate: -4deg; translate: 0 18px; animation: bob 5s ease-in-out infinite; }
.duo .phone-frame:nth-child(2) { rotate: 3deg; animation: bob 5s ease-in-out -2.5s infinite; }
.duo-spark { position: absolute; width: 34px; fill: var(--gold); animation: twinkle 2.6s ease-in-out infinite; }
.duo-spark.a { top: -18px; left: 46%; }
.duo-spark.b { bottom: 4%; right: -14px; width: 24px; animation-delay: -1.2s; }

/* feature lists */
.app-sec { padding-block: clamp(56px, 9vw, 104px); }
.app-sec.alt { background: var(--surface); border-block: 2px solid var(--line); }
.feat-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.feat-card { background: var(--bg); border: 3px solid var(--glass); border-radius: 22px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; align-content: start; }
.feat-card:nth-child(1) { box-shadow: 8px 8px 0 var(--teal); }
.feat-card:nth-child(2) { box-shadow: 8px 8px 0 var(--magenta); }
.feat-card h3 { font-size: var(--step-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 4px var(--teal), inset 0 0 0 6px var(--surface); }
.feat-card:nth-child(2) .checks li::before { background: var(--magenta); box-shadow: inset 0 0 0 4px var(--magenta), inset 0 0 0 6px var(--surface); }

/* screenshot gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.gallery figure { margin: 0; display: grid; gap: 14px; }
.gallery figcaption { display: grid; gap: 2px; }
.gallery figcaption strong { font-size: 1.05rem; }
.gallery figcaption span { color: var(--ink-soft); font-size: .95rem; }
.gallery li:nth-child(even) figure { padding-top: 34px; }

/* alternating feature rows */
.rows { display: grid; gap: clamp(56px, 8vw, 96px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.row:nth-child(even) .row-copy { order: 2; }
.row-copy { display: grid; gap: 14px; }
.row-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.kicker { font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1); }
.row-art { min-width: 0; }
.row-art .phone-frame { max-width: 270px; margin-inline: auto; rotate: 2deg; }
.row:nth-child(even) .row-art .phone-frame { rotate: -2deg; }

/* audiences */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.aud div { border-top: 4px solid var(--teal); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.aud div:nth-child(2) { border-color: var(--magenta); }
.aud div:nth-child(3) { border-color: var(--gold); }
.aud div:nth-child(4) { border-color: var(--lilac); }
.aud p { color: var(--ink-soft); }

.steps4 { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps4 li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps4 li::before { content: counter(s); width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--glass); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; background: var(--gold); color: #251640; }
.steps4 p { color: var(--ink-soft); }

/* closing band */
.app-band { background: var(--band); color: var(--band-ink); padding-block: clamp(56px, 8vw, 96px); }
.app-band-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; }
.app-band p { opacity: .85; font-size: 1.1rem; margin-top: 12px; max-width: 38em; }
.app-band .btn-primary { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); box-shadow: 4px 4px 0 #FFC85A; }
.app-band .btn-primary:hover { box-shadow: 6px 6px 0 #FFC85A; }
.app-band .btn-ghost { color: var(--band-ink); border-color: var(--band-ink); }
.app-band .btn-ghost:hover { background: color-mix(in srgb, var(--band-ink) 14%, transparent); }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud, .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-band-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .app-hero-grid, .row, .feat-cols { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row-copy { order: 0; }
  .duo { max-width: 340px; }
}
@media (max-width: 560px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; margin-inline: -20px; padding-inline: 20px; }
  .gallery li { flex: 0 0 68%; scroll-snap-align: center; }
  .gallery li:nth-child(even) figure { padding-top: 0; }
  .aud, .steps4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .pipeline::before, .pipeline::after { display: none; }
}
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 340px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .shelf, .pipeline, .who-cols, .field-row { grid-template-columns: minmax(0, 1fr); }
  .jar { height: 140px; width: 110px; }
  .jar-item { grid-template-columns: 110px minmax(0, 1fr); column-gap: 18px; }
  .jar-item .jar { grid-row: span 2; }
  .step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .step-bulb { width: 56px; height: 56px; grid-row: span 2; margin: 0; }
  .contact-form { box-shadow: 6px 6px 0 var(--lilac); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ing { opacity: 0; }
  /* a slow color fade isn't motion, so the flasks still change color */
  .liquid, .bm-liquid { animation: brew 16s ease-in-out infinite !important; }
  .liquid-back { animation: brew 16s ease-in-out -1.2s infinite !important; }
}

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; place-content: center; justify-items: start; gap: 18px; padding-block: 60px; max-width: 40rem; }
.nf-flask { width: 90px; rotate: -18deg; }
.nf h1 { font-size: var(--step-3); }
.nf p { color: var(--ink-soft); }
