/* =========================================================
   Fluffy AI Apps — site styles
   Porcelain base, pastel aurora, deep plum ink.
   Fraunces (soft) for display, Plus Jakarta Sans for text.
   All brand values live in :root.
   ========================================================= */

@font-face {
  font-family: "Fraunces Soft";
  font-style: normal;
  font-weight: 300 560;
  font-display: swap;
  src: url("../fonts/fraunces-soft.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surfaces */
  --porcelain: #FBF8F5;
  --cream: #F5F0EB;
  --paper: #FFFFFF;
  --plum: #15102A;
  --plum-2: #1E1838;

  /* text */
  --ink: #1A1430;
  --ink-2: #3A3352;
  --muted: #5E5774;
  --faint: #6E6886;
  --on-dark: #F4F1FA;
  --on-dark-muted: #B6AFCB;

  /* lines */
  --line: rgba(26, 20, 48, .09);
  --line-2: rgba(26, 20, 48, .16);
  --line-dark: rgba(255, 255, 255, .1);

  /* pastel palette */
  --peach: #FFB199;
  --rose: #F7A1C4;
  --lilac: #B5A3FF;
  --sky: #93CFFF;
  --mint: #A8E6CF;

  --grad-soft: linear-gradient(120deg, #FFB199 0%, #F7A1C4 32%, #B5A3FF 66%, #93CFFF 100%);
  --grad-ink: linear-gradient(100deg, #E3683F 0%, #D14F92 34%, #7655EE 70%, #2F86DF 100%);
  --danger: #C2324B;
  --ok: #1F8A54;

  --display: "Fraunces Soft", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 32px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(26, 20, 48, .04), 0 8px 24px -8px rgba(26, 20, 48, .08), 0 30px 60px -30px rgba(120, 90, 200, .18);
  --shadow-lift: 0 2px 4px rgba(26, 20, 48, .05), 0 18px 40px -12px rgba(26, 20, 48, .14), 0 40px 80px -30px rgba(160, 110, 230, .28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(96px, 12vw, 168px);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--porcelain);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "ss01";
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: rgba(181, 163, 255, .45); color: var(--ink); }
:focus-visible { outline: 2px solid #7655EE; outline-offset: 3px; border-radius: 8px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-ink);
}
.hero-eyebrow::before { display: none; }
.eyebrow.on-dark { color: var(--on-dark-muted); }

.h2 {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-top: 18px;
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}
.h2.on-dark { color: var(--on-dark); }
.ink-grad {
  font-style: normal;
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: .06em;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.lede.muted { color: var(--muted); }
.lede.on-dark-muted { color: var(--on-dark-muted); }
.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 1px;
}
.link:hover { color: #7655EE; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { --pad-y: 10px; --pad-x: 16px; font-size: 14px; }
.btn-lg { --pad-y: 16px; --pad-x: 26px; font-size: 16px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -8px rgba(26,20,48,.5); }
.btn-ink::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--grad-soft); filter: blur(14px); opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn-ink:hover { transform: translateY(-2px); }
.btn-ink:hover::before { opacity: .85; }
.btn-ink:active { transform: translateY(0) scale(.98); }
.btn-glass {
  background: rgba(255,255,255,.6);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 4px 14px -6px rgba(26,20,48,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: #fff; transform: translateY(-2px); }
.btn-arrow { display: inline-block; transition: transform .35s var(--spring); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(251, 248, 245, .78);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform .6s var(--spring); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-6deg); }
.brand-word {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--display); font-weight: 480; font-size: 25px; letter-spacing: -.02em;
  font-variation-settings: "opsz" 72;
}
.brand-sub {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.nav-list a:hover { background: rgba(26,20,48,.05); color: var(--ink); }
.nav-list a.is-active { color: var(--ink); background: rgba(181,163,255,.2); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--line-2) inset;
}
.menu-bars { position: relative; width: 18px; height: 10px; }
.menu-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 245, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 2px; }
.mobile-menu ul a {
  display: block; padding: 12px 0;
  font-family: var(--display); font-size: 38px; font-weight: 380; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open ul li { animation: menu-in .5s var(--ease-out) both; }
.mobile-menu.is-open ul li:nth-child(2) { animation-delay: .04s; }
.mobile-menu.is-open ul li:nth-child(3) { animation-delay: .08s; }
.mobile-menu.is-open ul li:nth-child(4) { animation-delay: .12s; }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu-mail { color: var(--muted); }
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 112px));
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: clip;
  isolation: isolate;
  text-align: center;
}
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); }
.aurora.soft { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%); }
.blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
}
.b1 { width: 62vmax; height: 62vmax; left: -22vmax; top: -26vmax;
  background: radial-gradient(closest-side, rgba(255,177,153,.55), rgba(255,177,153,0)); animation: drift1 22s var(--ease) infinite alternate; }
.b2 { width: 58vmax; height: 58vmax; right: -24vmax; top: -18vmax;
  background: radial-gradient(closest-side, rgba(147,207,255,.55), rgba(147,207,255,0)); animation: drift2 26s var(--ease) infinite alternate; }
.b3 { width: 50vmax; height: 50vmax; left: 18%; top: 22%;
  background: radial-gradient(closest-side, rgba(181,163,255,.45), rgba(181,163,255,0)); animation: drift3 30s var(--ease) infinite alternate; }
.b4 { width: 40vmax; height: 40vmax; right: 6%; top: 46%;
  background: radial-gradient(closest-side, rgba(247,161,196,.42), rgba(247,161,196,0)); animation: drift1 24s var(--ease) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-9vw, 10vh, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(-6vw, -8vh, 0) scale(1.15); } }
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px var(--line) inset;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  letter-spacing: .08em; font-size: 12px; color: var(--ink-2);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad-ink);
  box-shadow: 0 0 0 4px rgba(181,163,255,.25);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(181,163,255,.08); } }
.hero-title {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 360;
  font-size: clamp(46px, 8.6vw, 112px);
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero-title .ink-grad { font-weight: 440; }
.hero-lede {
  margin-top: 28px; max-width: 640px;
  font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); line-height: 1.6;
  text-wrap: pretty;
}
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Load-in choreography */
.load-in { animation: rise 1s var(--ease-out) both; }
.load-in.d1 { animation-delay: .08s; }
.load-in.d2 { animation-delay: .18s; }
.load-in.d3 { animation-delay: .28s; }
.load-in.d4 { animation-delay: .4s; animation-duration: 1.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* ---------- Hero stage: orbit + phone ---------- */
.stage {
  --rx: min(calc(50vw - 88px), 470px);
  --ry: 92px;
  position: relative;
  height: clamp(440px, 52vw, 600px);
  margin-top: clamp(24px, 4vw, 48px);
  perspective: 1200px;
}
.orbit-ring {
  position: absolute; left: 50%; top: 52%;
  width: calc(var(--rx) * 2); height: calc(var(--ry) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(118, 85, 238, .18);
}
.orbit-ring.r2 {
  width: calc(var(--rx) * 2.5); height: calc(var(--ry) * 2.9);
  border-color: rgba(118, 85, 238, .08); border-style: dashed;
}
.phone {
  position: absolute; left: 50%; top: 50%;
  width: clamp(220px, 21vw, 270px); aspect-ratio: 9 / 19;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.phone-body {
  width: 100%; height: 100%;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(145deg, #2A2342, #120E22);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.12) inset,
    0 2px 0 rgba(255,255,255,.18) inset,
    0 50px 90px -30px rgba(70, 40, 140, .55),
    0 30px 60px -20px rgba(26, 20, 48, .4);
  transform: rotateX(var(--tx, 8deg)) rotateY(var(--ty, -10deg));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
  animation: float 7s var(--ease) infinite alternate;
}
@keyframes float { to { translate: 0 -14px; } }
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  padding: 44px 16px 0;
  background:
    radial-gradient(120% 70% at 10% 0%, rgba(255,177,153,.55), transparent 60%),
    radial-gradient(120% 70% at 100% 30%, rgba(147,207,255,.5), transparent 60%),
    radial-gradient(120% 80% at 40% 100%, rgba(181,163,255,.5), transparent 60%),
    #FBF8F5;
  display: flex; flex-direction: column; gap: 12px;
}
.ps-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 14px; background: #0B0816; }
.ps-status { position: absolute; top: 15px; left: 20px; right: 20px; display: flex; justify-content: space-between; }
.ps-status span { width: 24px; height: 8px; border-radius: 4px; background: rgba(26,20,48,.55); }
.ps-status span:last-child { width: 30px; }
.ps-hello { display: grid; gap: 7px; padding-top: 6px; }
.ps-hello span { height: 10px; border-radius: 5px; background: rgba(26,20,48,.75); }
.ps-hello .w60 { width: 62%; height: 14px; }
.ps-hello .w35 { width: 38%; background: rgba(26,20,48,.25); }
.ps-card {
  position: relative; height: 32%;
  border-radius: 22px; overflow: hidden;
  background: var(--grad-ink);
  box-shadow: 0 14px 30px -12px rgba(118,85,238,.6);
}
.ps-mark {
  position: absolute; top: 14px; left: 14px; width: 40px; height: 40px;
  filter: brightness(0) invert(1); opacity: .95;
  animation: breathe 4s var(--ease) infinite alternate;
}
@keyframes breathe { to { transform: scale(1.08) translateY(-2px); } }
.ps-wave { position: absolute; left: 0; right: 0; bottom: 10px; width: 100%; height: 44%; }
.ps-wave path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 2.4s .9s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ps-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 16%; }
.ps-tiles span { border-radius: 18px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(26,20,48,.05) inset; }
.ps-tiles span:first-child { background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(168,230,207,.6)); }
.ps-list { display: grid; gap: 8px; }
.ps-list span { height: 30px; border-radius: 12px; background: rgba(255,255,255,.7); }
.ps-tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 46px;
  border-radius: 23px; background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -10px rgba(26,20,48,.3);
  display: flex; justify-content: space-around; align-items: center;
}
.ps-tabbar i { width: 18px; height: 18px; border-radius: 7px; background: rgba(26,20,48,.18); }
.ps-tabbar i.on { background: var(--ink); }

.orbit { position: absolute; left: 50%; top: 52%; width: 0; height: 0; }
.pill {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.8) inset, 0 0 0 1px var(--line), 0 12px 28px -12px rgba(26,20,48,.25);
  font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  translate: -50% -50%;
  will-change: transform, opacity;
}
.pd {
  width: 10px; height: 10px; border-radius: 50%;
  background: hsl(var(--h, 260) 85% 68%);
  box-shadow: 0 0 0 3px hsl(var(--h, 260) 85% 68% / .22);
}

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding-block: var(--section-y); }
.section-head { max-width: 760px; display: grid; gap: 22px; }
.section-head .h2 { margin-top: 0; }

/* About */
.about { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 104px); }
.about-head { max-width: 980px; }
.about-head .h2 { font-size: clamp(36px, 5.8vw, 76px); }
.about-body {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; gap: 20px;
  margin-left: auto; max-width: 720px;
}
.beliefs {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.belief {
  padding: 32px 28px;
  border-radius: var(--r-m);
  background: rgba(255,255,255,.6);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform .5s var(--spring), box-shadow .4s var(--ease), background-color .3s;
}
.belief:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-soft); }
.belief-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--cream); }
.belief-ico svg { width: 30px; height: 30px; }
.belief h3 { margin-top: 22px; font-family: var(--display); font-weight: 450; font-size: 24px; letter-spacing: -.015em; line-height: 1.2; font-variation-settings: "opsz" 48; }
.belief p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Expertise bento */
.expertise { padding-top: clamp(72px, 8vw, 120px); background: linear-gradient(180deg, var(--porcelain), var(--cream) 30%, var(--cream) 70%, var(--porcelain)); }
.bento {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line) inset, 0 1px 2px rgba(26,20,48,.03);
  transition: transform .6s var(--spring), box-shadow .5s var(--ease);
  grid-column: span 2;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-lift); }
.c-android, .c-ios, .c-ua, .c-money { grid-column: span 3; }
.card-art {
  position: relative; height: 200px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: 18px;
  overflow: hidden;
}
.card-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 100%, var(--tint, rgba(181,163,255,.28)), transparent 70%);
}
.card-art svg { position: relative; height: 100%; width: auto; max-width: 100%; transition: transform .8s var(--ease-out); }
.card:hover .card-art svg { transform: translateY(-6px) scale(1.03); }
.c-android { --tint: rgba(168,230,207,.5); }
.c-ios { --tint: rgba(147,207,255,.4); }
.c-flutter { --tint: rgba(147,207,255,.32); }
.c-design { --tint: rgba(255,177,153,.38); }
.c-aso { --tint: rgba(181,163,255,.38); }
.c-ua { --tint: rgba(247,161,196,.34); }
.c-money { --tint: rgba(255,200,150,.36); }
.card-copy { padding: 4px 30px 30px; display: grid; gap: 10px; }
.card h3 { font-family: var(--display); font-weight: 460; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.1; font-variation-settings: "opsz" 72; }
.card p { color: var(--muted); font-size: 16px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li {
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--cream);
}

/* Approach — the one dark chapter */
.approach {
  background: var(--plum);
  color: var(--on-dark);
  overflow: clip;
  border-radius: clamp(28px, 4vw, 56px);
  margin-inline: clamp(8px, 1.4vw, 20px);
}
.approach-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 0% 0%, rgba(255,177,153,.22), transparent 70%),
    radial-gradient(45% 55% at 100% 30%, rgba(147,207,255,.16), transparent 70%),
    radial-gradient(50% 50% at 30% 100%, rgba(181,163,255,.22), transparent 70%);
}
.approach-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.approach-side { position: sticky; top: calc(var(--header-h) + 48px); display: grid; gap: 22px; justify-items: start; }
.approach-side .h2 { margin-top: 0; }
.approach-progress { width: 100%; max-width: 280px; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line-dark); overflow: hidden; }
.approach-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--grad-soft); }
.principles { display: grid; gap: 16px; }
.principle {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 0 0 1px var(--line-dark) inset;
  transition: background-color .4s, box-shadow .4s;
}
.principle.is-current { box-shadow: 0 0 0 1px rgba(181,163,255,.45) inset, 0 30px 60px -30px rgba(181,163,255,.35); }
.p-num {
  font-family: var(--display); font-size: 20px; font-weight: 400;
  background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-top: 6px;
}
.principle h3 { font-family: var(--display); font-weight: 420; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.02em; line-height: 1.1; font-variation-settings: "opsz" 96; }
.principle p { margin-top: 12px; color: var(--on-dark-muted); max-width: 54ch; }
.p-points { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-points li {
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--on-dark);
  background: rgba(255,255,255,.07); box-shadow: 0 0 0 1px var(--line-dark) inset;
}

/* Contact */
.contact { overflow: clip; }
.aurora.soft { opacity: .7; }
.aurora.soft .b2 { top: auto; bottom: -30vmax; right: -20vmax; }
.aurora.soft .b3 { top: 10%; left: -20vmax; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-intro { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--header-h) + 48px); }
.contact-intro .h2 { margin-top: 0; }
.contact-facts { margin-top: 12px; display: grid; gap: 0; width: 100%; }
.contact-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-facts div:last-child { border-bottom: 1px solid var(--line); }
.contact-facts dt { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.contact-facts dd { font-weight: 500; overflow-wrap: anywhere; }

.form-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-l);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-lift);
}
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { color: var(--faint); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgba(26,20,48,.28); }
.field input:focus, .field textarea:focus { outline: none; border-color: #7655EE; box-shadow: 0 0 0 4px rgba(118,85,238,.16); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194,50,75,.1); }
.field-error { min-height: 0; font-size: 13.5px; font-weight: 500; color: var(--danger); }
.field-error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.count { margin-left: auto; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--cream);
  box-shadow: 0 0 0 1px transparent inset;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .3s var(--spring);
}
.chip:hover span { background: #EEE7F7; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:checked + span::before { content: "✓"; font-size: 12px; }
.chip input:focus-visible + span { outline: 2px solid #7655EE; outline-offset: 2px; }
.chip input:active + span { transform: scale(.96); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.consent input {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px;
  border: 1.5px solid var(--line-2); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.consent input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--spring); }
.consent input:checked { background: var(--ink); border-color: var(--ink); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent.has-error input { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--faint); max-width: 30ch; }
.form-status { font-size: 14.5px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-success { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 8px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-mark { width: 72px; height: 72px; animation: breathe 2.4s var(--ease) infinite alternate; }
.form-success h3 { font-family: var(--display); font-weight: 420; font-size: 30px; letter-spacing: -.02em; }
.form-success p { color: var(--muted); max-width: 40ch; }
.form-success .btn { margin-top: 10px; }

/* Footer */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.footer-tag { margin-top: 14px; color: var(--muted); font-family: var(--display); font-size: 19px; font-weight: 380; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--ink-2); font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: #7655EE; }
.footer-mail { font-weight: 600; }
.footer-base {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  font-size: 13px; color: var(--faint);
}
.footer-base p:last-child { max-width: 70ch; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal / simple pages ---------- */
.page { isolation: isolate; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 var(--section-y); position: relative; }
.page .aurora { opacity: .55; }
.prose { max-width: 720px; }
.prose h1 { font-family: var(--display); font-weight: 380; font-size: clamp(40px, 6vw, 68px); letter-spacing: -.03em; line-height: 1.02; font-variation-settings: "opsz" 144; }
.prose .updated { margin-top: 16px; color: var(--faint); font-size: 14px; }
.prose h2 { margin-top: 44px; font-family: var(--display); font-weight: 450; font-size: 26px; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 14px; display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose a { color: #6343E0; text-decoration: underline; text-underline-offset: 3px; }
.page-404 { isolation: isolate; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter); position: relative; overflow: clip; }
.page-404 .brand-mark { width: 96px; height: 96px; margin: 0 auto 24px; animation: float 4s var(--ease) infinite alternate; }
.page-404 h1 { font-family: var(--display); font-weight: 380; font-size: clamp(40px, 7vw, 80px); letter-spacing: -.03em; line-height: 1; }
.page-404 p { margin: 18px auto 32px; color: var(--muted); max-width: 40ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .card, .c-android, .c-ios, .c-ua, .c-money { grid-column: span 3; }
  .c-aso { grid-column: span 6; }
  .c-aso { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .c-aso .card-copy { padding: 30px; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .beliefs { grid-template-columns: 1fr; }
  .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .approach-side, .contact-intro { position: static; }
  .approach-progress { display: none; }
  .stage { --ry: 74px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card, .c-android, .c-ios, .c-ua, .c-money, .c-aso { grid-column: auto; }
  .c-aso { display: flex; }
  .c-aso .card-copy { padding: 4px 24px 26px; }
  .card-art { height: 170px; }
  .card-copy { padding: 4px 24px 26px; }
  .field-row { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-facts div { grid-template-columns: 1fr; gap: 4px; }
  .stage { --rx: calc(50vw - 74px); --ry: 64px; height: 470px; }
  .phone { width: 196px; }
  .phone-body { border-radius: 36px; padding: 7px; }
  .phone-screen { border-radius: 30px; padding: 40px 12px 0; gap: 10px; }
  .pill { font-size: 13px; padding: 8px 12px 8px 10px; gap: 7px; }
  .pd { width: 8px; height: 8px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .form-foot .btn { width: 100%; }
  .form-note { max-width: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ps-wave path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .aurora, .grain, .stage, .form-card { display: none !important; }
  .approach { background: none; color: var(--ink); }
}

/* Simple pages: header back link */
.back-link { margin-left: auto; }
.site-footer.slim { padding: 28px 0 32px; }
.slim .footer-base { margin-top: 0; padding-top: 0; border-top: 0; }
