/* Form & Matter — site styles.
   Same materials as the portfolio: a dark optical bench, smoked-glass surfaces with a faint spectral rim,
   and solid milk pieces (pills, panels, demo screens). The page is a sheet that lifts off an immersive
   footer; an interactive pattern sits under everything. */

/* Fonts, self-hosted: latin subsets only, the ampersand face cut down to a single glyph */
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; 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; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-display: swap; 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; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; 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; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("../fonts/instrument-serif-amp.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+26; }

:root {
  color-scheme: dark;

  /* Ground and ink (from the portfolio) */
  --ground: #0a0b0d;
  --ground-2: #121419;
  --bg: var(--ground);
  --ink: #eceae4;            /* 16:1 on ground */
  --ink-2: #b4b4af;          /* 9.5:1 */
  --ink-3: #8a8c91;          /* 5.9:1 on ground, 5.3:1 on glass */
  --soft: rgba(236, 234, 228, 0.05);
  --soft-2: rgba(236, 234, 228, 0.09);
  --edge: rgba(236, 234, 228, 0.1);
  --milk: #f3f2ee;
  --milk-2: #e4e3de;
  --carbon: #0c0c0d;
  --carbon-2: #5d5e61;

  /* Ultraviolet stays as the accent inside interface demos */
  --accent: #5b3df5;
  --accent-2: #4a2ee0;
  --accent-soft: rgba(91, 61, 245, 0.16);
  --accent-lite: #b9a8ff;
  --dark: #0b0b12;
  --dark-2: #15151e;
  --dark-3: #20202c;
  --on-dark: #f4f4f8;
  --on-dark-2: #a6a6b3;

  /* Service colours: fill, ink for light surfaces, light tone for dark */
  --coral: #ff5a36;   --coral-ink: #c2380f;   --coral-lite: #ff7a5c;
  --mint: #12b886;    --mint-ink: #087f5b;    --mint-lite: #34d399;
  --amber: #f5a524;   --amber-ink: #945a00;   --amber-lite: #fbbf24;
  --sky: #1c9bef;     --sky-ink: #0a6ba8;     --sky-lite: #38bdf8;
  --pink: #e64d9a;    --pink-ink: #b02a6e;    --pink-lite: #f472b6;

  /* Materials */
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -34px rgba(0, 0, 0, 0.9);
  --spectrum: conic-gradient(from var(--rim, 120deg), rgba(255, 120, 120, 0.55), rgba(255, 220, 120, 0.2), rgba(120, 255, 190, 0.5), rgba(120, 200, 255, 0.25), rgba(190, 130, 255, 0.55), rgba(255, 120, 120, 0.55));

  /* Type (from the portfolio) */
  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --h1: clamp(2.9rem, 1.2rem + 6vw, 6.8rem);
  --h2: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem);
  --h3: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  --lead: clamp(1.08rem, 1rem + 0.3vw, 1.25rem);

  /* Space and shape */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 80rem;
  --section: clamp(5rem, 3rem + 7vw, 9rem);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -14px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.25), 0 40px 90px -30px rgba(0, 0, 0, 0.8);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Solid milk surfaces carry their own light palette, so anything inside
   (demo screens, the mega menu, the drawer, the CTA) reads dark-on-light. */
.card-ui, .mega, .drawer, .illo, .fan-card, .folder-paper, .plan.is-featured, .name-card.is-form {
  color-scheme: light;
  --ink: #0c0c0d;
  --ink-2: #3d3e41;
  --ink-3: #5d5e61;
  --soft: #e7e6e1;
  --soft-2: #dcdbd6;
  --edge: rgba(12, 12, 13, 0.1);
  --accent-soft: #e9e4ff;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--ground); }
body { position: relative; margin: 0; background: #07080a; color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
/* The page is a sheet over the footer. clip-path keeps its fixed backdrop and pattern inside it. */
.page { position: relative; z-index: 1; background: var(--ground); margin-bottom: var(--footer-h, 0px);
  clip-path: inset(0 0 0 0 round 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px)); }
.page::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 22% 28%, rgba(120, 140, 170, 0.08), transparent 70%),
    radial-gradient(30% 26% at 78% 64%, rgba(150, 130, 190, 0.07), transparent 70%),
    radial-gradient(60% 55% at 50% 45%, #15171c, var(--ground) 78%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
::selection { background: rgba(160, 220, 255, 0.35); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -60px; z-index: 200; padding: 8px 14px; border-radius: 99px; background: var(--milk); color: var(--carbon); }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: var(--h1); letter-spacing: -0.05em; line-height: 0.96; }
h2 { font-size: var(--h2); letter-spacing: -0.045em; }
h3 { font-size: var(--h3); letter-spacing: -0.025em; line-height: 1.12; }
.lead { font-size: var(--lead); color: var(--ink-2); line-height: 1.55; max-width: 36em; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.02em; text-transform: lowercase; color: var(--ink-3); }
[data-c] .feature-copy .kicker { color: var(--c-lite); }
.accent { color: var(--accent-lite); }

/* ---------- Brand (the portfolio's glass orb and wordmark) ---------- */
.logo, .brand-lockup { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { position: relative; display: inline-block; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 9%, rgba(255, 255, 255, 0) 26%), radial-gradient(circle at 60% 70%, #232730, #0c0d10 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 10px rgba(0, 0, 0, 0.5);
}
.brand-mark::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.6px;
  background: conic-gradient(from 210deg, #ff8f8f, #ffe08a, #8fffc4, #8ad4ff, #c38fff, #ff8f8f);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.75; transition: transform 1.2s var(--ease), opacity 0.4s;
}
.logo:hover .brand-mark::before { transform: rotate(200deg); opacity: 1; }
.brand-word { font: 500 18px/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand-word em { font: italic 400 1.12em/1 var(--serif); letter-spacing: 0; }

/* ---------- Buttons: solid milk pills and glass pills, on a spring ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0 1.35em; border-radius: 99px;
  font-weight: 500; font-size: 0.95rem; text-transform: lowercase; white-space: nowrap;
  transition: transform 0.5s var(--spring), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover { transform: scale(1.05); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.93); transition-duration: 0.12s; }
/* Solid: the portfolio's menu button */
.btn-primary, .btn-light { background: var(--milk); color: var(--carbon); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.35); }
.btn-primary:hover, .btn-light:hover { background: #fff; }
/* Solid colour: the second call to action */
.btn-accent { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 8px 26px -6px rgba(91, 61, 245, 0.65); }
.btn-accent:hover { background: #6d52ff; }
/* Glass: the portfolio's view-switch lens */
.btn-secondary { position: relative; color: var(--ink);
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 18px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px) saturate(1.5); backdrop-filter: blur(8px) saturate(1.5);
}
.btn-secondary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; }
/* On milk surfaces, the solid flips to carbon (the portfolio's close button) and glass becomes an outline */
.card-ui .btn-primary, .mega .btn-light, .drawer .btn-primary, .plan.is-featured .btn-light { background: var(--carbon); color: var(--milk); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45); }
.drawer .btn-secondary { background: none; color: var(--carbon); box-shadow: inset 0 0 0 1px rgba(12, 12, 13, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.drawer .btn-secondary::after { display: none; }
.btn-sm { min-height: 40px; padding: 0 1.15em; font-size: 0.9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 500; color: var(--ink); text-transform: lowercase; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .arrow { transition: transform 0.4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Sliding glass lens (header nav, demo tabs, services sub-nav) ---------- */
[data-lens] { position: relative; }
.lens {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 99px; pointer-events: none; opacity: 0;
  transform: translate(var(--lx, 0), var(--ly, 0)); width: var(--lw, 0); height: var(--lh, 0);
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.55s var(--spring), width 0.55s var(--spring), height 0.3s var(--ease), opacity 0.3s;
}
.lens::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; }
.lens.is-on { opacity: 1; }
[data-lens] > :not(.lens) { position: relative; z-index: 1; }

/* ---------- Header and mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding: 12px var(--gutter) 0; pointer-events: none; }
.header-inner { pointer-events: auto; display: flex; align-items: center; gap: 2rem; height: 64px; max-width: calc(var(--max) - 2 * var(--gutter) + 36px); padding: 0 10px 0 18px; border-radius: 99px;
  transition: background-color 0.4s, box-shadow 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s; }
.site-header.is-scrolled .header-inner { background: rgba(16, 17, 21, 0.62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 44px -12px rgba(0, 0, 0, 0.6); }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; padding: 4px; border-radius: 99px; }
.nav > a, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 99px; font-size: 0.93rem; text-transform: lowercase; color: var(--ink-3); transition: color 0.35s; }
.nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--ink); }
.nav > a[aria-current="page"], .nav-item.is-current .nav-trigger { color: var(--ink); }
.nav-trigger .chev { width: 10px; height: 10px; transition: transform 0.3s var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-item { position: relative; }
/* The mega menu is the portfolio's milky glass panel */
.mega {
  position: absolute; top: calc(100% + 12px); left: -12px; width: min(780px, 92vw); z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr 15rem; gap: 4px; padding: 12px;
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(165deg, rgba(248, 247, 244, 0.985), rgba(233, 232, 228, 0.975));
  -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 30px 80px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: 20% 0;
  transition: opacity 0.2s, transform 0.45s var(--spring), visibility 0s 0.3s;
}
.mega::before, .drawer::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.45s var(--spring); }
.mega-link { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 12px; border-radius: 16px; transition: background-color 0.2s; }
.mega-link:hover { background: rgba(12, 12, 13, 0.05); }
.mega-link .swatch { grid-row: span 2; }
.mega-link strong { font: 500 1.02rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.mega-link span:last-child { font-size: 0.88rem; color: var(--ink-3); line-height: 1.4; }
.mega-promo { position: relative; grid-row: 1 / 4; grid-column: 3; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 18px; border-radius: 18px; background: var(--carbon); color: var(--milk); }
.mega-promo p { color: #a9aaa6; font-size: 0.9rem; }
.mega-promo strong { display: block; font: 500 1.2rem/1.15 var(--font-display); letter-spacing: -0.02em; color: #fff; margin-bottom: 6px; }
.mega-promo .btn-light { background: var(--milk); color: var(--carbon); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .text-link { padding: 0 10px; font-size: 0.93rem; text-transform: lowercase; color: var(--ink-3); transition: color 0.3s; }
.header-actions .text-link:hover, .header-actions .text-link[aria-current="page"] { color: var(--ink); }
.burger { display: none; height: 40px; padding: 0 20px; border-radius: 99px; background: var(--milk); color: var(--carbon); font-size: 14px; font-weight: 500; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.35); transition: transform 0.5s var(--spring); }
.burger:hover { transform: scale(1.05); }
.burger:active { transform: scale(0.93); transition-duration: 0.12s; }
.burger span { display: none; }
.burger::before { content: "menu"; }

/* Swatches: small tinted tiles with a simple glyph, used for services */
.swatch { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.swatch svg { width: 20px; height: 20px; }
[data-c="coral"] { --c: var(--coral); --c-ink: var(--coral-ink); --c-lite: var(--coral-lite); }
[data-c="mint"] { --c: var(--mint); --c-ink: var(--mint-ink); --c-lite: var(--mint-lite); }
[data-c="amber"] { --c: var(--amber); --c-ink: var(--amber-ink); --c-lite: var(--amber-lite); }
[data-c="sky"] { --c: var(--sky); --c-ink: var(--sky-ink); --c-lite: var(--sky-lite); }
[data-c="pink"] { --c: var(--pink); --c-ink: var(--pink-ink); --c-lite: var(--pink-lite); }
[data-c="violet"] { --c: var(--accent); --c-ink: var(--accent); --c-lite: var(--accent-lite); }
[data-c] { --c-soft: color-mix(in srgb, var(--c) 18%, transparent); }

/* Mobile drawer: the portfolio's menu, full screen */
.drawer {
  position: fixed; inset: 10px; z-index: 150; border-radius: 30px; padding: 84px clamp(20px, 5vw, 36px) 28px; overflow: auto;
  display: flex; flex-direction: column; gap: 1.6rem;
  background: linear-gradient(165deg, #f8f7f4, #e9e8e4);
  box-shadow: inset 0 1px 0 #fff, 0 30px 80px rgba(0, 0, 0, 0.6);
  clip-path: inset(0 0 calc(100% - 56px) calc(100% - 110px) round 28px); opacity: 0;
  transition: clip-path 0.7s var(--ease), opacity 0.2s;
}
.drawer[hidden] { display: none; }
.drawer.is-open { clip-path: inset(0 0 0 0 round 30px); opacity: 1; }
.drawer-close { position: absolute; top: 16px; right: 16px; height: 40px; padding: 0 20px; border-radius: 99px; background: var(--carbon); color: var(--milk); font-size: 14px; font-weight: 500; text-transform: lowercase; transition: transform 0.5s var(--spring); }
.drawer-close:hover { transform: scale(1.05); }
.drawer-group p { font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); margin-bottom: 6px; }
.drawer-group a { display: flex; align-items: center; gap: 12px; padding: 6px 0; font: 500 clamp(1.7rem, 7vw, 2.4rem)/1.05 var(--font-display); letter-spacing: -0.04em; }
.drawer-group .swatch { width: 32px; height: 32px; border-radius: 10px; }
.drawer-group .swatch svg { width: 16px; height: 16px; }
.drawer .btn { width: 100%; }

/* ---------- Heroes ---------- */
.hero { position: relative; padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .kicker { margin-bottom: 1.1rem; }
.hero-page { padding-top: clamp(3.5rem, 2rem + 7vw, 8.5rem); }
.hero-page h1 { font-size: clamp(3rem, 1rem + 6.2vw, 7.6rem); max-width: 11em; }
.hero-page .lead { margin-top: 1.7rem; }
.hero-page .actions { margin-top: 2rem; }
.hero-page::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 61, 245, 0.2), rgba(28, 155, 239, 0.06) 55%, transparent); }

/* Home: headline on the left, the atom on the right */
.hero-x { position: relative; padding: clamp(1.5rem, 0.5rem + 3vw, 3.5rem) 0 clamp(1rem, 0.5rem + 1vw, 2rem); }
.hero-x-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1rem clamp(1rem, 3vw, 3rem); align-items: center; min-height: min(80vh, 780px); }
.hero-x-copy { position: relative; z-index: 2; display: grid; gap: 1.6rem; justify-items: start; }
.hero-x h1 { font-size: clamp(3rem, 1rem + 5.4vw, 7rem); max-width: 9.6em; }
.hero-x .tools { padding: clamp(1rem, 2vw, 2rem) 0 0; }

/* The atom: a dotted shell and orbits around the liquid-metal nucleus */
.atom { position: relative; width: min(100%, 660px); aspect-ratio: 1; margin: 0 auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.atom.is-dragging { cursor: grabbing; }
.atom::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 61, 245, 0.32), rgba(28, 155, 239, 0.1) 60%, transparent); filter: blur(10px); }
.atom-back, .atom-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.atom-front { z-index: 2; }
.atom-core { position: absolute; z-index: 1; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.atom-core canvas { display: block; width: 100%; height: 100%; }
.atom-core:has(canvas.is-off) { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 255, 255, 0) 24%), radial-gradient(circle at 60% 70%, #2a2f3a, #0c0d10 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.atom-labels a { position: absolute; z-index: 3; left: 0; top: 0; margin: -15px 0 0 18px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px;
  font-family: var(--mono); font-size: 12px; text-transform: lowercase; white-space: nowrap; color: var(--ink);
  background: rgba(18, 19, 24, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.5s, translate 0.6s var(--ease), background-color 0.3s; will-change: transform; }
.atom-labels a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-lite); box-shadow: 0 0 10px var(--c-lite); }
.atom-labels a.is-left { translate: calc(-100% - 36px) 0; }
.atom-labels a.is-behind { opacity: 0.25; pointer-events: none; }
.atom-labels a:hover, .atom-labels a:focus-visible { z-index: 4; background: var(--milk); color: var(--carbon); }

/* The statement and the studio demo */
.statement-section { padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.statement { font: 500 clamp(1.9rem, 1rem + 2.9vw, 3.8rem)/1.1 var(--font-display); letter-spacing: -0.035em; max-width: 21em; text-wrap: balance; }
.statement-demo { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.head-stack { display: grid; gap: 1.1rem; }

/* ---------- The stage: a glass bench that holds interface demos ---------- */
.stage {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(1rem, 3vw, 3rem);
  background:
    radial-gradient(55% 80% at 12% 0%, rgba(140, 170, 255, 0.16), transparent 62%),
    radial-gradient(45% 70% at 96% 18%, rgba(230, 120, 200, 0.12), transparent 60%),
    radial-gradient(60% 70% at 70% 115%, rgba(120, 230, 200, 0.12), transparent 60%),
    var(--glass), var(--ground-2);
  box-shadow: var(--glass-shadow);
}
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.35; }
.stage-quiet { background: var(--glass), var(--ground-2); }
.stage[data-c] { background: radial-gradient(70% 90% at 15% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 65%), radial-gradient(60% 70% at 100% 100%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), var(--glass), var(--ground-2); }

/* ---------- App window (the studio demo) ---------- */
.app {
  --ui: #111216; --ui-2: #1a1b21; --ui-3: #26272e; --ui-line: rgba(255, 255, 255, 0.07); --ui-text: #e9e8e3; --ui-dim: #8b8c92;
  position: relative; border-radius: 16px; overflow: hidden; background: var(--ui); color: var(--ui-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-lg); font-size: 13px; line-height: 1.4;
}
.app-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 50px; padding: 0 12px; background: var(--ui-2); box-shadow: 0 1px 0 var(--ui-line); }
.app-project { display: flex; align-items: center; gap: 9px; color: var(--ui-text); font-weight: 500; }
.app-project .brand-mark { width: 18px; height: 18px; }
.app-project span:not(.brand-mark) { color: var(--ui-dim); font-weight: 400; }
.app-modes { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--ui); box-shadow: inset 0 0 0 1px var(--ui-line); }
.app-mode { position: relative; overflow: hidden; height: 30px; padding: 0 15px; border-radius: 99px; color: var(--ui-dim); font-weight: 500; font-size: 13px; transition: color 0.35s; }
.app-mode:hover { color: var(--ui-text); }
.app-mode[aria-selected="true"] { color: #fff; }
.app-mode .prog { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px; width: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.7); }
.app-mode[aria-selected="true"] .prog { animation: prog-inset var(--auto, 6s) linear forwards; }
.is-paused .app-mode .prog { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
@keyframes prog-inset { to { width: calc(100% - 28px); } }
.app-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.app-btn { height: 30px; padding: 0 13px; border-radius: 99px; background: var(--ui-3); color: var(--ui-text); font-weight: 500; font-size: 12.5px; display: inline-flex; align-items: center; }
.app-btn.is-accent { background: var(--milk); color: var(--carbon); }
.app-body { height: clamp(420px, 40vw, 560px); }
.app-view { display: grid; grid-template-columns: 210px 1fr 250px; height: 100%; animation: panel-in 450ms var(--ease); }
.app-view[hidden] { display: none; }
.pane { background: var(--ui); padding: 12px; overflow: hidden; }
.pane-left { box-shadow: 1px 0 0 var(--ui-line); }
.pane-right { box-shadow: -1px 0 0 var(--ui-line); }
.pane-title { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.02em; text-transform: lowercase; color: var(--ui-dim); margin: 4px 4px 10px; }
.tree li, .plist li { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 8px; color: #c9c9cf; white-space: nowrap; }
.tree li i { width: 10px; height: 10px; border-radius: 3px; background: var(--ui-3); flex: none; }
.tree li[data-depth="1"] { padding-left: 22px; }
.tree li[data-depth="2"] { padding-left: 36px; }
.tree li.is-selected { background: rgba(91, 61, 245, 0.28); color: #fff; }
.tree li.is-selected i { background: var(--accent); }
.canvas { position: relative; background: #0c0d10; padding: 18px; overflow: hidden; display: grid; place-items: center; }
.canvas::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(236, 234, 228, 0.03) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(236, 234, 228, 0.03) 1px, transparent 1px) 0 0 / 28px 28px; }
.canvas > * { position: relative; }
.props { display: grid; gap: 14px; }
.prop-group { display: grid; gap: 8px; }
.prop-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; color: var(--ui-dim); }
.field { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--ui-2); color: var(--ui-text); }
.field .chip { width: 14px; height: 14px; border-radius: 4px; }
.prop-link { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: rgba(91, 61, 245, 0.18); color: #d9d2ff; }
.prop-link b { color: #fff; font-weight: 500; }

/* The client site shown on the canvas */
.mini-site { width: 100%; max-width: 560px; aspect-ratio: 4 / 3.1; border-radius: 12px; overflow: hidden; background: #f4eee6; color: #2b2520; display: grid; grid-template-rows: 44px 1fr auto; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9); font-size: 11px; }
.ms-nav { display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.ms-logo { font-family: Georgia, serif; font-style: italic; font-size: 15px; margin-right: auto; }
.ms-nav span:not(.ms-logo) { color: #7a6e64; }
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; padding: 8px 16px 14px; align-items: center; }
.ms-kicker { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #9a6b4f; }
.ms-title { font-family: Georgia, serif; font-size: clamp(18px, 2vw, 26px); line-height: 1.05; margin: 6px 0 30px; }
.ms-cta { position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #b5603c; color: #fff; font-weight: 600; }
.ms-cta.is-selected { outline: 1.5px solid var(--accent); outline-offset: 4px; }
.ms-cta.is-selected::before { content: "Button · Primary"; position: absolute; left: -5px; top: -24px; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; white-space: nowrap; }
.ms-cta.is-selected::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--accent); border-radius: 2px; }
.ms-art { aspect-ratio: 1; border-radius: 10px; background: radial-gradient(60% 50% at 60% 30%, #f7d9c4, transparent 70%), linear-gradient(160deg, #e9c9b0, #c98a67 70%, #9b5b3e); position: relative; }
.ms-art::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 22%; height: 28%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #f6efe6, #d9c8b6); box-shadow: 0 8px 14px -6px rgba(80, 40, 20, 0.5); }
.ms-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 16px; }
.ms-products span { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; background: #fff; }
.ms-products i { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(150deg, #e7d2bf, #b98263); }
.ms-products span:nth-child(2) i { background: linear-gradient(150deg, #cfd6cf, #7f8f86); }
.ms-products span:nth-child(3) i { background: linear-gradient(150deg, #efe6da, #c7ae93); }

/* Flow graph */
.flow { display: grid; gap: 0; justify-items: center; width: min(100%, 360px); }
.node { position: relative; width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ui-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--ui-line); }
.node .swatch { width: 30px; height: 30px; border-radius: 9px; }
.node .swatch svg { width: 15px; height: 15px; }
.node b { display: block; color: #fff; font-weight: 500; }
.node small { color: var(--ui-dim); font-size: 11.5px; }
.node .ok { color: #3ddc97; font-size: 11px; font-weight: 500; }
.node.is-run { box-shadow: 0 0 0 1.5px rgba(185, 168, 255, 0.9), 0 0 26px -4px rgba(140, 120, 255, 0.7); }
.wire { position: relative; width: 2px; height: 22px; background: var(--ui-3); overflow: hidden; }
.wire::after { content: ""; position: absolute; left: 0; top: -10px; width: 2px; height: 10px; background: var(--accent-lite); animation: pulse-down 1.6s linear infinite; }
@keyframes pulse-down { to { top: 100%; } }
.log { display: grid; gap: 8px; font-size: 12px; }
.log li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--ui-2); color: #c9c9cf; }
.log li b { color: #fff; font-weight: 500; }
.log time { font-family: var(--mono); font-size: 10.5px; color: var(--ui-dim); }
.log li.is-new { animation: log-in 400ms var(--ease); }
@keyframes log-in { from { opacity: 0; transform: translateY(4px); } }

/* Flow nodes on milk demo screens */
.card-ui .flow { width: 100%; max-width: none; padding: 20px; }
.card-ui .node { background: #fff; box-shadow: 0 0 0 1px var(--edge); }
.card-ui .node b { color: var(--ink); }
.card-ui .node small { color: var(--ink-3); }
.card-ui .node .ok { color: var(--mint-ink); }
.card-ui .node.is-run { box-shadow: 0 0 0 1.5px var(--accent); }
.card-ui .wire { background: var(--edge); }
.card-ui .wire::after { background: var(--accent); }

/* Integration tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 520px; }
.tile-app { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ui-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--ui-line); }
.tile-app .top { display: flex; align-items: center; gap: 8px; }
.tile-app .logo-chip { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 12px; color: #fff; background: var(--c); }
.tile-app b { color: #fff; font-weight: 500; }
.tile-app small { color: #3ddc97; font-size: 11px; }
.tile-app small.is-idle { color: var(--ui-dim); }

/* ---------- Tool strip ---------- */
.tools { padding: 2.5rem 0 1rem; }
.tools p { text-align: center; font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); margin-bottom: 1.4rem; }
.tool-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.6rem; }
.tool-row li { font: 500 1.35rem/1.2 var(--font-display); letter-spacing: -0.03em; color: #6c6e73; transition: color 0.3s; }
.tool-row li:hover { color: var(--ink); }

/* ---------- Section heads ---------- */
.head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.head-center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.head-split { max-width: none; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 1.5rem 4rem; }
.head-split > .reveal:last-child:has(.btn) { justify-self: end; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature.is-flipped .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 1.3rem; align-content: center; max-width: 34rem; }
.checks { display: grid; gap: 1rem; margin-top: 0.4rem; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--c-soft, var(--accent-soft)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23eceae4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.checks strong { display: block; font-weight: 500; letter-spacing: -0.01em; }
.checks span { color: var(--ink-2); }

/* Milk demo screens (solid, like the portfolio's menu panel) */
.card-ui { position: relative; border-radius: 20px; overflow: hidden; font-size: 14px;
  background: linear-gradient(165deg, #f8f7f4, #ebeae6);
  box-shadow: inset 0 1px 0 #fff, 0 30px 70px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.35); }
.card-ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 16px; background: rgba(12, 12, 13, 0.04); font-weight: 500; font-size: 13px; }
.card-ui-bar span { color: var(--ink-3); font-weight: 400; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--c-soft, var(--soft)); color: var(--c-ink, var(--ink-2)); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink-3)); }

/* CMS editor demo */
.cms { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 340px; }
.cms-list { padding: 12px; background: rgba(12, 12, 13, 0.025); display: grid; align-content: start; gap: 4px; }
.cms-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-weight: 500; }
.cms-list li.is-on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 18px -10px rgba(0, 0, 0, 0.25); }
.cms-edit { padding: 18px; display: grid; gap: 14px; align-content: start; }
.cms-field { display: grid; gap: 6px; }
.cms-field label { font-family: var(--mono); font-size: 11px; text-transform: lowercase; color: var(--ink-3); }
.cms-input { min-height: 40px; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--ink); }
.cms-input.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cms-img { height: 90px; border-radius: 12px; background: linear-gradient(150deg, #cfd6cf, #7f8f86); }
.cms-foot { display: flex; justify-content: space-between; align-items: center; }

/* Chat demo */
.chat { display: grid; gap: 12px; padding: 18px; }
.msg { max-width: 85%; padding: 12px 14px; border-radius: 18px; line-height: 1.45; }
.msg-user { justify-self: end; background: var(--carbon); color: var(--milk); border-bottom-right-radius: 6px; }
.msg-bot { background: var(--soft); border-bottom-left-radius: 6px; }
.msg-bot .sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-bot .sources span { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: #fff; color: var(--ink-2); }
.chat-input { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 18px; padding: 8px 8px 8px 14px; border-radius: 99px; background: var(--soft); color: var(--ink-3); }
.chat-input b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--carbon); color: var(--milk); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Hub demo (sits on a glass stage) */
.hub { position: relative; aspect-ratio: 1.25; }
.hub svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg.wires path { fill: none; stroke: rgba(236, 234, 228, 0.14); stroke-width: 2; }
.hub svg.wires path.live { stroke: var(--mint-lite); stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.hub-node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 9px; border-radius: 99px; background: var(--milk); color: var(--carbon); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 8px 22px rgba(0, 0, 0, 0.45); font-weight: 500; font-size: 14px; white-space: nowrap; }
.hub-node .logo-chip { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 600; font-size: 13px; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 10%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%), rgba(20, 22, 27, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hub-core .brand-mark { width: 44px; height: 44px; }

/* Report demo */
.report { padding: 18px; display: grid; gap: 14px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 14px; background: var(--soft); }
.kpi small { font-family: var(--mono); color: var(--ink-3); font-size: 11px; text-transform: lowercase; }
.kpi b { display: block; font: 500 1.5rem/1.2 var(--font-display); letter-spacing: -0.03em; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 12px; border-radius: 14px; background: var(--soft); }
.bars i { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--carbon); transform-origin: bottom; }
.bars i:nth-child(odd) { background: #9b9a95; }
.report-note { font-size: 13px; color: var(--ink-3); }

/* ---------- Glass cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card, .step, .plan, .faq-list details, .next-steps li, .svc-meta div, .form, .name-card.is-matter {
  background: var(--glass); box-shadow: var(--glass-shadow);
}
.card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-lg); transition: transform 0.6s var(--spring), box-shadow 0.3s; }
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-2); }
/* The illustration inside each card is a small milk screen */
.illo { height: 128px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(165deg, #f8f7f4, #e9e8e3); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(0, 0, 0, 0.7); display: grid; place-items: center; overflow: hidden; position: relative; }
.il-devices { display: flex; align-items: flex-end; gap: 8px; }
.il-devices i { display: block; border-radius: 6px; background: var(--accent-soft); box-shadow: inset 0 0 0 2px #cfc6ff; }
.il-devices i:nth-child(1) { width: 92px; height: 60px; }
.il-devices i:nth-child(2) { width: 44px; height: 58px; }
.il-devices i:nth-child(3) { width: 24px; height: 42px; background: var(--accent); box-shadow: none; }
.il-edit { width: 70%; display: grid; gap: 7px; }
.il-edit i { height: 8px; border-radius: 4px; background: var(--soft-2); }
.il-edit i:nth-child(1) { width: 60%; height: 12px; background: var(--ink); }
.il-edit i:nth-child(3) { width: 80%; }
.il-edit b { width: 44%; height: 8px; border-radius: 4px; background: var(--mint); position: relative; }
.il-edit b::after { content: ""; position: absolute; right: -4px; top: -3px; width: 2px; height: 14px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.il-search { width: 78%; display: grid; gap: 8px; }
.il-search .bar { height: 26px; border-radius: 999px; background: var(--soft); display: flex; align-items: center; padding-left: 10px; }
.il-search .bar::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink-3); }
.il-search .res { padding: 6px 10px; border-radius: 8px; background: #dcecf8; display: grid; gap: 4px; }
.il-search .res i { height: 6px; border-radius: 3px; background: var(--sky); width: 55%; }
.il-search .res i + i { background: #a9d3f1; width: 85%; }
.il-aa { display: flex; gap: 10px; }
.il-aa span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; font: 500 26px/1 var(--font-display); letter-spacing: -0.04em; }
.il-aa span:first-child { background: var(--carbon); color: var(--milk); }
.il-aa span:last-child { background: #f7e7c4; color: var(--amber-ink); }
.il-spark { width: 80%; height: 70px; }
.il-spark path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il-spark circle { fill: var(--coral); }
.il-docs { position: relative; width: 90px; height: 90px; }
.il-docs i { position: absolute; width: 64px; height: 80px; border-radius: 8px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--soft-2); }
.il-docs i:nth-child(1) { left: 0; top: 10px; transform: rotate(-8deg); }
.il-docs i:nth-child(2) { left: 26px; top: 2px; transform: rotate(6deg); background: #fbe3ef; }
.il-docs i:nth-child(2)::before { content: ""; position: absolute; left: 10px; right: 10px; top: 14px; height: 6px; border-radius: 3px; background: var(--pink); box-shadow: 0 12px 0 #f3b7d6, 0 24px 0 #f3b7d6; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--r-lg); overflow: hidden; }
.step::before { content: ""; position: absolute; left: -20%; right: -20%; top: -60%; height: 100%; pointer-events: none; background: radial-gradient(50% 50% at 50% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.step > * { position: relative; }
.step-no { display: flex; align-items: center; justify-content: space-between; }
.step-no b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--milk); color: var(--carbon); font: 500 1.05rem/1 var(--font-display); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent); }
.step-no span { font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); }
.step h3 { font-size: 1.4rem; }
.step-bar { height: 4px; border-radius: 4px; background: rgba(236, 234, 228, 0.08); overflow: hidden; margin-top: 6px; }
.step-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c-lite); width: var(--w); }

/* ---------- Work: folders that open ---------- */
.folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.6rem); }
.folder { display: grid; gap: 18px; min-width: 0; }
.folder > * { min-width: 0; }
.folder-body { position: relative; aspect-ratio: 1.22; perspective: 1800px; margin-top: 8%; }
.folder-back, .folder-back::before { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 58%, #0b0b10), color-mix(in srgb, var(--c) 38%, #0b0b10)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.folder-back { position: absolute; inset: 0; border-radius: 6px 20px 20px 20px; }
.folder-back::before { content: ""; position: absolute; left: 0; bottom: calc(100% - 2px); width: 42%; height: 11%; border-radius: 14px 18px 0 0; }
.folder-paper { position: absolute; left: 6%; right: 6%; top: 7%; height: 74%; border-radius: 12px; overflow: hidden; background: #f7f6f2;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.2); transition: transform 0.8s var(--spring); }
.folder-paper.is-back { left: 11%; right: 3%; top: 4%; background: #e7e5df; transform: rotate(3deg); }
.folder-paper img { width: 100%; height: 100%; object-fit: cover; }
.paper-doc { display: grid; gap: 10px; padding: 22px; }
.paper-doc i { height: 9px; border-radius: 5px; background: #d6d4ce; }
.paper-doc i:first-child { width: 55%; height: 14px; background: #b9b7b1; }
.paper-doc i:nth-child(3) { width: 80%; }
.paper-demo { position: absolute; left: 0; top: 0; width: 400px; transform: scale(var(--s, 0.8)); transform-origin: 0 0; }
.paper-demo .card-ui { border-radius: 0; box-shadow: none; }
.folder-front { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; display: flex; align-items: flex-end; padding: 16px 18px; border-radius: 12px 12px 20px 20px;
  background: linear-gradient(172deg, var(--c-lite), var(--c) 58%, color-mix(in srgb, var(--c) 72%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -24px 44px rgba(0, 0, 0, 0.18), 0 -14px 34px -10px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 100%; transition: transform 0.8s var(--spring); }
.folder-label { font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: rgba(12, 12, 13, 0.75); padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.4); }
.folder:hover .folder-front, .folder:focus-visible .folder-front, .folder.is-open .folder-front { transform: rotateX(-26deg); }
.folder:hover .folder-paper:not(.is-back), .folder:focus-visible .folder-paper:not(.is-back), .folder.is-open .folder-paper:not(.is-back) { transform: translateY(-20%) rotate(-2deg); }
.folder:hover .folder-paper.is-back, .folder:focus-visible .folder-paper.is-back, .folder.is-open .folder-paper.is-back { transform: translateY(-11%) rotate(6deg) translateX(3%); }
.folder:focus-visible { outline-offset: 10px; border-radius: 22px; }
.folder-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.folder-meta h3 { font-size: 1.45rem; }
.folder-meta p { font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); margin-top: 4px; }
.work-go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--milk); color: var(--carbon); flex: none; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform 0.5s var(--spring); }
.work-go svg { width: 18px; height: 18px; }
.folder:hover .work-go { transform: scale(1.1) rotate(-6deg); }

/* ---------- Services page: a sticky index beside the six sections ---------- */
.svc-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; padding-top: 1rem; }
.subnav { position: sticky; top: 104px; z-index: 50; }
.subnav-inner { display: grid; gap: 2px; padding: 8px; border-radius: 26px; background: rgba(18, 20, 25, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 30px rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 99px; font-size: 0.93rem; text-transform: lowercase; color: var(--ink-3); transition: color 0.35s; }
.subnav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.svc { padding-bottom: var(--section); }
.svc .feature { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3.5rem); }
.svc [data-block], [data-c] [data-block] { --block: var(--c-lite); }
.svc h2 { font-size: clamp(2rem, 1.1rem + 2.3vw, 3.5rem); }
.contact h1 { font-size: var(--h2); }

/* ---------- Service detail ---------- */
.svc-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 0.6rem; }
.svc-meta div { padding: 14px 16px; border-radius: var(--r); }
.svc-meta dt { font-family: var(--mono); font-size: 11px; text-transform: lowercase; color: var(--ink-3); }
.svc-meta dd { font: 500 1.05rem/1.3 var(--font-display); letter-spacing: -0.01em; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--r-xl); }
.plan h3 { font-size: 1.75rem; }
.plan-price { font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); }
.plan ul { display: grid; gap: 10px; margin: 6px 0 12px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(236, 234, 228, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23eceae4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan .btn { margin-top: auto; }
/* The featured plan is solid milk */
.plan.is-featured { background: linear-gradient(165deg, #f8f7f4, #e9e8e3); box-shadow: inset 0 1px 0 #fff, 0 40px 90px -34px rgba(0, 0, 0, 0.85); -webkit-backdrop-filter: none; backdrop-filter: none; }
.plan.is-featured p { color: var(--ink-2) !important; }
.plan.is-featured li::before { background-color: rgba(12, 12, 13, 0.08); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230c0c0d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: lowercase; padding: 5px 11px; border-radius: 99px; background: var(--carbon); color: var(--milk); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r-lg); transition: box-shadow 0.3s; }
.faq-list details[open] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px -34px rgba(0, 0, 0, 0.9); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 20px 22px; font: 500 1.12rem/1.3 var(--font-display); letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--milk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%230c0c0d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; transition: transform 0.5s var(--spring); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 44em; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem 5rem; align-items: start; }
.story-text { display: grid; gap: 1.2rem; font-size: 1.15rem; color: var(--ink-2); }
.story-text p:first-child { color: var(--ink); font: 500 1.6rem/1.3 var(--font-display); letter-spacing: -0.025em; }
.name-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.name-card { padding: 32px; border-radius: var(--r-xl); display: grid; gap: 12px; align-content: start; }
.name-card h3 { font-size: 3rem; letter-spacing: -0.05em; }
/* Form is the solid; matter is the glass */
.name-card.is-form { background: linear-gradient(165deg, #f8f7f4, #e9e8e3); box-shadow: inset 0 1px 0 #fff, 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.name-card.is-form .kicker { color: var(--ink-3) !important; }
.name-card.is-matter .kicker { color: var(--ink-3) !important; }
.name-card p { color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem 5rem; align-items: start; }
.contact-side { display: grid; gap: 2rem; position: sticky; top: 110px; }
.next-steps { display: grid; gap: 12px; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-lg); }
.next-steps li::before { content: counter(n); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--milk); color: var(--carbon); font: 500 1rem/1 var(--font-display); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12); }
.next-steps strong { display: block; font-weight: 500; letter-spacing: -0.01em; }
.next-steps span { color: var(--ink-2); font-size: 0.95rem; }
.mail-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mail-row .mail { font: 500 clamp(1.3rem, 1rem + 1vw, 1.7rem)/1.2 var(--font-display); letter-spacing: -0.02em; user-select: all; }
.mail-row .btn { min-height: 32px; padding: 0 14px; font-size: 12px; background: none; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.75; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mail-row .btn::after { display: none; }
.mail-row .btn:hover { opacity: 1; }
.form { display: grid; gap: 18px; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r-xl); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form label:not(.choices label) > span { display: block; font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); margin-bottom: 10px; }
.form label > span em { font-style: normal; color: var(--ink-3); opacity: 0.8; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 99px; background: rgba(236, 234, 228, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06); font-size: 0.93rem; transition: background-color 0.3s, color 0.3s, transform 0.5s var(--spring); }
.choices span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.choices label:hover span { background: rgba(236, 234, 228, 0.1); }
.choices input:active + span { transform: scale(0.94); }
.choices input:checked + span { background: var(--milk); color: var(--carbon); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.35); }
.choices input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--r); background: rgba(0, 0, 0, 0.28); font: inherit; font-size: 1rem; color: var(--ink); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.07); transition: box-shadow 0.2s; }
.form select option { background: var(--ground-2); }
.form textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .form textarea::placeholder { color: #6c6e73; }
.input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(236, 234, 228, 0.55); }
.input[aria-invalid="true"], .form textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--coral-lite); }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: 0.95rem; color: var(--ink-2); }
.form-status.is-error { color: var(--coral-lite); }
.summary { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r); background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.summary small { font-family: var(--mono); font-size: 11px; text-transform: lowercase; color: var(--ink-3); }
.summary p { font: 500 1.05rem/1.35 var(--font-display); letter-spacing: -0.01em; }
.summary .suggest { font-family: var(--font); font-weight: 400; font-size: 0.95rem; color: var(--ink-2); }
.summary .suggest b { color: var(--ink); font-weight: 500; }

/* ---------- Footer: fixed under the page, which lifts away to reveal it ---------- */
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; background: radial-gradient(70% 60% at 30% 110%, rgba(60, 40, 170, 0.35), transparent 70%), #07080a; }
.footer-flow .site-footer { position: relative; }
.silk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.9; -webkit-mask-image: linear-gradient(transparent 5%, #000 50%); mask-image: linear-gradient(transparent 5%, #000 50%); }
.silk.is-off { display: none; }
.site-footer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 8, 10, 0.5), rgba(7, 8, 10, 0) 60%), linear-gradient(180deg, rgba(7, 8, 10, 0) 60%, rgba(7, 8, 10, 0.7)); }
.footer-inner { position: relative; z-index: 1; padding: clamp(4rem, 2.5rem + 4vw, 7rem) var(--gutter) 1.4rem;
  transform: translateY(calc((1 - var(--reveal, 1)) * -6%)); }
.footer-cta { display: grid; gap: 1.5rem; justify-items: start; }
.footer-cta h2 { font-size: clamp(2.3rem, 1.1rem + 3.4vw, 4.8rem); letter-spacing: -0.05em; max-width: 12em; }
.footer-cta p { font-size: var(--lead); color: var(--ink-2); max-width: 32em; }
.footer-cta .actions { margin-top: 0.4rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 20rem; }
.footer-brand p { color: var(--ink-2); }
.footer-col h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.02em; text-transform: lowercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a { display: block; padding: 3px 0; color: var(--ink-2); transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); }
.to-top { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; color: var(--ink); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); transition: background-color 0.3s, transform 0.5s var(--spring); }
.to-top:hover { background: var(--milk); color: var(--carbon); transform: scale(1.05); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover { transform: translateY(-3px); }


/* ---------- Ambient effects ---------- */
.fx-pattern { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
main { position: relative; overflow-x: clip; }

/* Block text reveal: a bar of colour wipes across each line and leaves the text behind */
.js [data-block]:not(.is-split):not(.is-done) { opacity: 0; animation: block-safety 0s 2.5s forwards; }
@keyframes block-safety { to { opacity: 1; } }
[data-block] .bl { display: block; }
[data-block] .bl-in { position: relative; display: inline-block; }
[data-block] .bl-t { opacity: 0; }
[data-block] .bl-in::after { content: ""; position: absolute; left: -0.05em; right: -0.05em; top: 0.08em; bottom: 0.02em; border-radius: 0.06em; background: var(--block, var(--milk)); transform: scaleX(0); transform-origin: 0 50%; }
[data-block].is-in .bl-in::after { animation: block-wipe 1s cubic-bezier(0.7, 0, 0.2, 1) calc(var(--i) * 120ms) forwards; }
[data-block].is-in .bl-t { animation: block-text 0.01s linear calc(var(--i) * 120ms + 500ms) forwards; }
@keyframes block-wipe { 0% { transform: scaleX(0); transform-origin: 0 50%; } 50% { transform: scaleX(1); transform-origin: 0 50%; } 50.01% { transform-origin: 100% 50%; } 100% { transform: scaleX(0); transform-origin: 100% 50%; } }
@keyframes block-text { to { opacity: 1; } }
.hero-x h1 .bl:nth-child(4n + 1) .bl-in { --block: var(--coral); }
.hero-x h1 .bl:nth-child(4n + 2) .bl-in { --block: var(--accent-lite); }
.hero-x h1 .bl:nth-child(4n + 3) .bl-in { --block: var(--mint-lite); }
.hero-x h1 .bl:nth-child(4n + 4) .bl-in { --block: var(--sky-lite); }
.statement { --block: var(--accent); }

/* ---------- Services on the home page: cards that stack as you scroll ---------- */
.stack { display: grid; gap: 28px; padding-bottom: 4vh; }
.stack-card { position: sticky; top: calc(100px + var(--i, 0) * 14px); display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center;
  min-height: min(74vh, 640px); padding: clamp(1.5rem, 3vw, 3.2rem); border-radius: 34px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--c) 36%, transparent), transparent 62%), radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent 62%), #111217;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 -24px 60px -24px rgba(0, 0, 0, 0.8);
  transform: scale(calc(1 - var(--depth, 0) * 0.04)); transform-origin: 50% 0; }
.stack-card::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: #050507; opacity: min(0.65, calc(var(--depth, 0) * 0.22)); }
.stack-copy { display: grid; gap: 1.1rem; align-content: center; max-width: 31rem; }
.stack-tag { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--c-lite); }
.stack-tag .swatch { width: 36px; height: 36px; }
.stack-card h3 { font-size: clamp(2rem, 1.1rem + 2.5vw, 3.7rem); letter-spacing: -0.045em; line-height: 1; }
.stack-copy > p { color: var(--ink-2); font-size: var(--lead); }
.stack-copy .link-arrow { justify-self: start; margin-top: 0.3rem; }
.stack-demo { position: relative; }

/* ---------- The card folder: details fan out of a folder as you scroll ---------- */
.fan { --fan: 1; position: relative; }
.fan-head { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.fan-sticky { padding: var(--section) 0; }
.fan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(2rem, 4vw, 3.5rem); }
.fan-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 18px; border-radius: 22px; background: linear-gradient(165deg, #faf9f6, #eae9e4); box-shadow: inset 0 1px 0 #fff, 0 26px 50px -22px rgba(0, 0, 0, 0.85); transition: translate 0.55s var(--spring); }
.fan-card .illo { margin: 0 0 6px; background: linear-gradient(165deg, #efeee9, #e2e0da); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.fan-card h3 { font-size: 1.15rem; padding: 0 4px; }
.fan-card p { font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); padding: 0 4px; }
.fan-back, .fan-front { display: none; }
/* Fanned layout (set by script where there is room) */
.fan.is-fan { height: 250vh; }
.fan.is-fan .fan-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr; padding: 108px 0 3vh; overflow: hidden; }
.fan.is-fan .fan-sticky > .wrap:last-child { height: 100%; }
.fan.is-fan .fan-stage { position: relative; height: 100%; }
.fan.is-fan .fan-cards { position: absolute; inset: 0; display: block; margin: 0; }
.fan.is-fan .fan-card { position: absolute; left: 0; top: 0; will-change: transform; }
.fan.is-fan .fan-card .illo { flex: 1; height: auto; min-height: 0; }
.fan.is-fan .fan-card:hover { translate: 0 -22px; z-index: 5; }
.fan.is-fan .fan-back, .fan.is-fan .fan-front { display: flex; position: absolute; left: 50%; bottom: 0; translate: -50% 0; }
.fan-back { width: min(470px, 62%); height: calc(34% + 30px); border-radius: 8px 24px 24px 24px; background: linear-gradient(180deg, #34249a, #1d1466); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.fan-back::before { content: ""; position: absolute; left: 0; bottom: calc(100% - 2px); width: 40%; height: 34px; border-radius: 16px 20px 0 0; background: #34249a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.fan-front { z-index: 2; width: min(490px, 65%); height: 34%; align-items: flex-end; justify-content: space-between; padding: 22px 26px; border-radius: 16px 16px 26px 26px;
  background: linear-gradient(172deg, #8a75ff, var(--accent) 55%, #3a21c4); color: rgba(255, 255, 255, 0.9); font-family: var(--mono); font-size: 12px; text-transform: lowercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -24px 44px rgba(0, 0, 0, 0.2), 0 -18px 40px -12px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 100%; transform: perspective(900px) rotateX(calc(var(--open, 0) * -16deg)); }
.fan-front .brand-mark { width: 30px; height: 30px; }

/* The demo leans back, then settles flat as it scrolls into view */
[data-tilt] { transform-origin: 50% 0; transform: perspective(1500px) rotateX(calc(var(--p, 0) * 15deg)) scale(calc(1 - var(--p, 0) * 0.06)); will-change: transform; }

/* Tools drift past */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .tool-row { flex: none; flex-wrap: nowrap; justify-content: flex-start; gap: 0 3.2rem; padding-right: 3.2rem; min-width: 100%; justify-content: space-around; animation: marquee 46s linear infinite; }
.marquee:hover .tool-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Stages carry slow drifting colour */
.stage { isolation: isolate; }
.stage::before {
  content: ""; position: absolute; inset: -35%; z-index: -1; pointer-events: none;
  background: radial-gradient(32% 32% at 30% 35%, rgba(140, 120, 255, 0.26), transparent 70%), radial-gradient(28% 28% at 72% 68%, rgba(255, 110, 150, 0.16), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}
.stage[data-c]::before { background: radial-gradient(32% 32% at 30% 35%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%), radial-gradient(28% 28% at 72% 68%, color-mix(in srgb, var(--c-lite) 20%, transparent), transparent 70%); }
.stage-quiet::before { display: none; }
@keyframes drift { from { transform: translate(-6%, -4%) rotate(0deg); } to { transform: translate(7%, 5%) rotate(14deg); } }

/* ---------- 404 and its game ---------- */
.nf { padding-top: clamp(2rem, 1rem + 4vw, 5rem); }
.nf-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.nf-copy { display: grid; gap: 1.4rem; justify-items: start; }
.nf-copy h1 { font-size: clamp(2.7rem, 1rem + 4.8vw, 5.6rem); max-width: 9em; }
.nf-hint { font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); }
.nf-stage { padding: clamp(0.9rem, 2.4vw, 1.6rem); max-width: 30rem; width: 100%; justify-self: center; }
.game { display: grid; gap: 12px; }
.game-hud { display: flex; align-items: center; gap: 1.2rem; font-family: var(--mono); font-size: 12px; text-transform: lowercase; color: var(--ink-3); }
.game-hud b { color: var(--ink); font-weight: 500; margin-left: 4px; }
.lives { display: flex; gap: 5px; margin-left: auto; }
.lives i { width: 10px; height: 10px; border-radius: 3px; background: var(--milk); transition: background-color 0.3s, transform 0.4s var(--spring); }
.lives i.is-lost { background: rgba(236, 234, 228, 0.16); transform: scale(0.7); }
.game-screen { position: relative; border-radius: 18px; overflow: hidden; background: #0a0b0d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px -20px rgba(0, 0, 0, 0.8); }
.game-screen canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; image-rendering: pixelated; touch-action: none; cursor: crosshair; outline-offset: -4px; }
.game-overlay { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: linear-gradient(rgba(10, 11, 13, 0.25), rgba(10, 11, 13, 0.7)); }
.game-overlay[hidden] { display: none; }
.game-overlay p { color: var(--ink-2); font-size: 0.95rem; }
.game-overlay .game-title { font: 500 1.9rem/1.05 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-view { grid-template-columns: 180px 1fr; }
  .pane-right { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .svc .feature { grid-template-columns: 1fr; }
  .svc .feature.is-flipped .feature-copy { order: 0; }
  .stack-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px), (max-height: 640px) { .fan { --fan: 0; } }
@media (max-width: 900px) {
  .hero-x-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-x-atom { order: -1; width: min(100%, 460px); justify-self: center; }
  .svc-layout { grid-template-columns: 1fr; }
  .subnav { top: 84px; }
  .subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 99px; }
  .subnav a { height: 36px; padding: 0 14px; }
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; transform: none; }
  .stack-card::after { display: none; }
  .fan-cards { grid-template-columns: 1fr 1fr; }
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-grid { grid-template-columns: 1fr; }
  .nf-copy { justify-items: start; }
  .nav, .header-actions .text-link, .header-actions .btn { display: none; }
  .burger { display: inline-flex; align-items: center; }
  .header-inner { justify-content: space-between; height: 58px; padding: 0 8px 0 14px; }
  .head-split > .reveal:last-child:has(.btn) { justify-self: start; }
  .feature, .head-split, .faq, .story, .contact { grid-template-columns: 1fr; }
  .feature.is-flipped .feature-copy { order: 0; }
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 640px) {
  .app-body { height: 400px; }
  .app-view { grid-template-columns: 1fr; }
  .pane-left { display: none; }
  .app-bar { grid-template-columns: auto 1fr; }
  .app-right { display: none; }
  .app-modes { justify-self: end; }
  .app-mode { padding: 0 10px; font-size: 12px; }
  .app-project span:not(.brand-mark) { display: none; }
  .canvas { padding: 12px; }
  .grid-3, .grid-2, .plans, .steps, .row-2, .name-split, .svc-meta, .folders, .fan-cards { grid-template-columns: 1fr; }
  .atom-labels a { font-size: 11px; height: 26px; padding: 0 9px; margin: -13px 0 0 12px; }
  .atom-labels a.is-left { translate: calc(-100% - 24px) 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .cms { grid-template-columns: 1fr; }
  .cms-list { display: none; }
  .report-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .kpi b { font-size: 1.1rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-base { margin-top: 2.5rem; }
  .hub-node { font-size: 12px; padding: 6px 11px 6px 6px; }
  .hub-node .logo-chip { width: 22px; height: 22px; font-size: 11px; }
  .hub-core { width: 64px; height: 64px; }
  .hub-core .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-tilt] { transform: none; }
  .stack-card { transform: none; }
  .stack-card::after { display: none; }
  .footer-inner { transform: none; }
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee .tool-row { flex-wrap: wrap; justify-content: center; min-width: 0; padding: 0; }
  .marquee .tool-row[aria-hidden] { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .app-mode[aria-selected="true"] .prog { width: calc(100% - 28px); }
}
