@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --cream: #fbf6ec;
  --ink: #1b1813;
  --ink-2: #4a443b;
  --line: rgba(27, 24, 19, .14);
  --shape: #fff9ee;
  --accent: #f26b3a;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

[data-app="mesh"] { --c: #d6cab8; }
[data-app="savorly"] { --c: #ffd27a; }
[data-app="morse"] { --c: #a5bdff; }
[data-app="dipper"] { --c: #f49ea2; }
[data-app="mixer"] { --c: #ffa173; }
[data-app="incant"] { --c: #c6b8ff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 500 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--cream); font-weight: 700; text-decoration: none;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); transition: box-shadow .3s var(--ease); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(70, 50, 20, .35); }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; text-decoration: none; }
.brand-seed { width: 32px; height: 32px; fill: var(--ink); }
.nav-links { display: flex; gap: clamp(24px, 4vw, 48px); }
.nav-links a { font-size: 17px; font-weight: 600; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-links a[aria-current] { text-decoration-color: var(--accent); }
.nav-cta { justify-self: end; font-size: 17px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-cta:hover { text-decoration-color: var(--accent); }

/* Hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.hero-title { font-size: clamp(2.6rem, 5.3vw, 5.1rem); font-weight: 900; line-height: .98; letter-spacing: -.045em; }
.hero-title > span { display: block; white-space: nowrap; }
.hero-title .hl { position: relative; display: inline-block; }
.squiggle { position: absolute; left: -1%; bottom: -.17em; width: 102%; height: .22em; color: var(--accent); overflow: visible; }
.has-motion .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lede { max-width: 25em; margin-top: 24px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.hero-lede span { display: block; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; margin-top: 34px; padding: 0 26px;
  border-radius: 18px; background: var(--ink); color: var(--cream);
  font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 6px 0 #000, 0 18px 30px -12px rgba(27, 24, 19, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 22px; height: 22px; color: var(--accent); transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #000, 0 22px 34px -12px rgba(27, 24, 19, .5); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #000, 0 10px 20px -12px rgba(27, 24, 19, .5); }

/* The hero blocks: each app's real icon as a chunky toy block. */
.blocks {
  position: relative; width: 100%; aspect-ratio: 1.18;
  transform: perspective(1100px) rotateX(calc(var(--py, 0) * -6deg)) rotateY(calc(var(--px, 0) * 8deg));
  transition: transform .6s var(--ease);
}
.blocks::before {
  content: ""; position: absolute; z-index: 0; inset: 4% 6% 14%; border-radius: 50%; filter: blur(34px); opacity: .75;
  background:
    radial-gradient(circle at 26% 35%, #c6b8ff, transparent 52%),
    radial-gradient(circle at 52% 24%, #f49ea2, transparent 48%),
    radial-gradient(circle at 76% 35%, #ffd27a, transparent 50%),
    radial-gradient(circle at 52% 78%, #d6cab8, transparent 58%);
}
.block {
  position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 30%; aspect-ratio: 1;
  rotate: var(--r); border-radius: 24%;
  box-shadow: 0 14px 0 var(--side), 0 36px 40px -14px rgba(70, 50, 20, .38);
  transition: scale .3s var(--ease), rotate .3s var(--ease), box-shadow .3s var(--ease);
}
.block:nth-of-type(-n + 3) { z-index: 1; }
.block img, .block-mixer { display: block; width: 100%; height: 100%; border-radius: 24%; }
.block-mixer { display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #262c36, #11151b 55%); }
.block-mixer img { width: 82%; height: auto; border-radius: 0; transform: translateY(6%); }
.block::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 42%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.block:hover, .block:focus-visible { scale: 1.05; rotate: calc(var(--r) * -.5); box-shadow: 0 18px 0 var(--side), 0 44px 46px -14px rgba(70, 50, 20, .42); }
.block:focus-visible { outline-offset: 8px; border-radius: 26%; }
.blocks-floor {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: 2%; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 70, 30, .2), transparent);
}
.has-motion .block {
  animation: drop .95s cubic-bezier(.34, 1.45, .64, 1) both, bob 3.2s ease-in-out;
  animation-delay: calc(var(--i) * 110ms + .15s), calc(var(--i) * 110ms + 1.1s);
}
@keyframes drop { from { transform: translateY(-150%) rotate(-12deg); opacity: 0; } 35% { opacity: 1; } }
@keyframes bob { 50% { translate: 0 -8px; } }

/* App cards */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 20px; }
.app {
  position: relative; isolation: isolate; overflow: hidden; display: flex;
  grid-column: span 3; min-height: 280px; padding: clamp(26px, 3vw, 40px);
  border-radius: 30px; background: var(--c);
  --edge: color-mix(in srgb, var(--c), #2b1d05 26%);
  box-shadow: 0 8px 0 var(--edge);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.app:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--edge); }
.app:has(.app-link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 5px; }
.app-big { grid-column: span 4; min-height: 330px; }
.app-big + .app { grid-column: span 2; }
.app-copy { display: flex; flex-direction: column; align-items: flex-start; }
.app-copy > * { z-index: 1; }
.app-big .app-copy { max-width: 48%; }
.app:not(.app-big) .app-copy { max-width: 56%; }
.app-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.app-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pill-live::before { background: #138a52; box-shadow: 0 0 0 3px rgba(19, 138, 82, .18); }
.pill-dev::before { background: #d4521d; box-shadow: 0 0 0 3px rgba(212, 82, 29, .16); }
.app h3 { margin-top: 18px; font-size: clamp(38px, 3.6vw, 50px); font-weight: 900; line-height: .95; letter-spacing: -.045em; }
.app-big h3 { font-size: clamp(48px, 5vw, 68px); }
.app-text { margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.app-big .app-text { font-size: 21px; }
.app-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px;
  font-size: 17px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.app-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.app:hover .app-link svg { transform: translateX(4px); }
.app-link::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit; }
.app-link:focus-visible { outline: none; }

.app-mark { position: absolute; z-index: 0; color: var(--shape); fill: currentColor; transition: transform .6s var(--ease); }
.app:hover .app-mark { transform: rotate(-4deg) scale(1.04); }
[data-app="mesh"] .app-mark { right: 6%; top: 50%; width: auto; height: 70%; aspect-ratio: 100 / 80.81; translate: 0 -50%; }
[data-app="savorly"] .app-mark { right: -3%; bottom: 2%; width: 42%; height: auto; aspect-ratio: 1; }
[data-app="morse"] .app-mark { right: 6%; bottom: 4%; width: clamp(96px, 24%, 156px); height: auto; aspect-ratio: 1; }
[data-app="dipper"] .app-mark { right: 4%; bottom: 6%; width: clamp(104px, 31%, 210px); height: auto; aspect-ratio: 50 / 42; }
[data-app="incant"] .app-mark { right: -3%; bottom: -14%; width: clamp(190px, 44%, 275px); height: auto; aspect-ratio: 1; }
.app-mark-flick {
  right: -3%; bottom: -12%; width: clamp(195px, 45%, 280px); aspect-ratio: 1; background: var(--shape);
  -webkit-mask: url("../img/apps/mixer-flick.webp") center / contain no-repeat;
  mask: url("../img/apps/mixer-flick.webp") center / contain no-repeat;
}

/* Approach */
.approach { padding-top: clamp(80px, 10vw, 140px); }
.section-title { font-size: clamp(28px, 2.8vw, 36px); font-weight: 900; letter-spacing: -.035em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-top: 40px; }
.steps li { position: relative; }
.step-n {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 14px;
  background: var(--c); box-shadow: 0 5px 0 color-mix(in srgb, var(--c), #2b1d05 26%);
  font-size: 22px; font-weight: 900;
}
.has-motion.has-reveal .step-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.has-motion .steps.is-in .step-arrow path { animation: draw .6s var(--ease) forwards; animation-delay: .7s; }
.has-motion .steps.is-in li:nth-child(2) .step-arrow path { animation-delay: 1.1s; }
.has-motion .steps.is-in .step-arrow path + path { animation-delay: 1.15s; }
.has-motion .steps.is-in li:nth-child(2) .step-arrow path + path { animation-delay: 1.55s; }
.steps h3 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 900; line-height: .95; letter-spacing: -.045em; }
.steps p { max-width: 17em; margin-top: 20px; font-size: 19px; color: var(--ink-2); }
.step-arrow { position: absolute; top: 34%; right: calc(clamp(32px, 6vw, 96px) / -2 - 32px); width: 64px; color: var(--accent); }

/* What we care about */
.care { padding-top: clamp(80px, 10vw, 140px); }
.cares { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px clamp(24px, 2.6vw, 40px); margin-top: 40px; }
.care-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--c); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 70%, #000); }
.care-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cares h3 { margin-top: 22px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.cares p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
@media (max-width: 1180px) {
  .cares { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app, .app-big, .app-big + .app { grid-column: span 1; }
  .app-big { min-height: 280px; }
  .app-big .app-copy { max-width: 58%; }
  .app-big h3 { font-size: clamp(38px, 3.6vw, 50px); }
  .app-big .app-text { font-size: 18px; }
  [data-app="mesh"] .app-mark { top: auto; right: -4%; bottom: 2%; width: clamp(150px, 46%, 220px); height: auto; translate: 0 0; }
}

/* Lately */
.lately { padding-top: clamp(80px, 10vw, 140px); }
.log { margin-top: 28px; border-top: 2px solid var(--ink); }
.log li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.log time { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.log a { display: flex; align-items: center; gap: 18px; padding: 18px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.015em; text-decoration: none; }
.log a b { font-weight: 800; }
.log img { width: 40px; height: 40px; flex: none; border-radius: 11px; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); transition: transform .2s var(--ease); }
.log a:hover img { transform: rotate(-6deg) scale(1.08); }
.log a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* About and contact */
.about { padding: clamp(80px, 10vw, 140px) 0; }
.about-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding-top: 48px; }
.about-in::before, .foot-in::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 2px; background: var(--ink); }
.about-title { font-size: clamp(32px, 3.6vw, 48px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.about-text { max-width: 30em; margin-top: 20px; font-size: 19px; color: var(--ink-2); }
.contact {
  padding: clamp(28px, 3.4vw, 44px); border-radius: 30px; background: var(--ink); color: var(--cream);
  box-shadow: 0 8px 0 #000, 0 34px 50px -26px rgba(27, 24, 19, .55);
}
.contact-seed { width: 44px; height: 44px; margin-bottom: 22px; fill: #bdf75f; }
.contact-k { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(251, 246, 236, .72); }
.contact-mail {
  display: inline-block; margin-top: 12px; font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: -.035em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--accent); overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-color: #bdf75f; }
.contact :focus-visible { outline-color: var(--cream); }
.contact-note { margin-top: 14px; font-size: 17px; color: rgba(251, 246, 236, .72); }

/* Footer */
.foot { padding-bottom: 40px; }
.foot-in { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; }
.foot-in::before { height: 1px; background: var(--line); }
.foot .brand { font-size: 20px; }
.foot .brand-seed { width: 28px; height: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.foot-links a { font-size: 15px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links .nav-cta { font-size: 15px; }
.foot-base { margin-top: 24px; font-size: 14px; color: var(--ink-2); }

.has-motion.has-reveal [data-reveal] { opacity: 0; translate: 0 26px; }
.has-motion.has-reveal [data-reveal].is-in { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.has-motion.has-reveal .app.is-in { transition: opacity .8s var(--ease), translate .8s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .blocks { max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .cares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-arrow { top: auto; bottom: -50px; right: auto; left: 2px; rotate: 90deg; width: 44px; }
  .about-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in { grid-template-columns: 1fr auto; height: 68px; }
  .brand { font-size: 19px; }
  .brand-seed { width: 28px; height: 28px; }
  .nav-cta { font-size: 16px; }
  .hero { padding-top: 12px; padding-bottom: 48px; }
  .hero-title { font-size: min(11.4vw, 3.4rem); }
  .hero-lede { font-size: 18px; margin-top: 18px; }
  .btn { height: 52px; margin-top: 26px; padding: 0 22px; font-size: 17px; border-radius: 15px; }
  .blocks { width: min(100%, 360px); margin: 8px auto 0; aspect-ratio: 1.26; }
  .block { box-shadow: 0 9px 0 var(--side), 0 24px 28px -12px rgba(70, 50, 20, .36); }
  .cares { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 14px; }
  .log a { padding: 6px 0 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .app { min-height: 240px; }
  .app-big .app-copy { max-width: 68%; }
  .app .app-copy, .app:not(.app-big) .app-copy { max-width: 72%; }
  [data-app="mesh"] .app-mark { top: auto; right: -8%; bottom: 0; width: 58%; height: auto; translate: 0 12%; }
  [data-app="dipper"] .app-mark { right: -2%; bottom: 5%; width: 34%; }
  [data-app="incant"] .app-mark { right: -8%; bottom: -16%; width: 58%; }
  .app-mark-flick { right: -8%; bottom: -14%; width: 60%; }
  .foot-links { gap: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
