/* Canopy Labs — shared styles. Tokens, type, navigation, buttons, footer and
   the blocks every page uses. Page-specific storytelling lives in story.css. */

:root {
  /* grounds */
  --paper: #fcfcf9;
  --cream: #f0efe9;
  --night: #141413;
  /* ink */
  --ink: #161616;
  --muted: #5f605b;
  --faint: #8b8c86;
  --line: rgba(22, 22, 22, 0.1);
  --line-strong: rgba(22, 22, 22, 0.2);
  /* on night */
  --snow: #f6f6f1;
  --mist: #9c9d97;
  --line-night: rgba(246, 246, 241, 0.14);
  /* signals: green is chosen, orange is rejected. Nothing else is coloured. */
  --green: #2e8c2e;
  --green-soft: #e4f1e1;
  --orange: #ff4c24;
  --orange-soft: #ffe6de;
  /* surfaces and quiet tints that flip with the theme */
  --surface: #fff;
  --prose: #33342f;
  --tint: rgba(22, 22, 22, 0.05);
  --dot-grid: rgba(22, 22, 22, 0.1);
  --nav-bg: rgba(252, 252, 249, 0.82);
  --nav-menu-bg: rgba(252, 252, 249, 0.97);
  --nav-line: rgba(22, 22, 22, 0.08);
  --btn-bg: #1b1b21;
  --btn-fg: #fff;
  --btn-hover: #000;
  --eyebrow: #25308f;
  --eyebrow-line: rgba(60, 76, 160, 0.3);
  --tier-2: #2a45a8;

  --display: "Redaction 35", "Redaction", Georgia, "Times New Roman", serif;
  --serif: "Redaction", Georgia, "Times New Roman", serif;
  --sans: "Google Sans Flex", "Google Sans", system-ui, -apple-system, sans-serif;
  --mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-s: 6px;
  --r-m: 14px;
  --r-l: 28px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: light;
}

/* Night: set on <html> by the script in <head> between 7 pm and 6 am,
   the visitor's local time. The artwork switches to its night versions too. */
:root[data-theme="night"] {
  --paper: #10100f;
  --cream: #171715;
  --night: #080807;
  --ink: #f2f1ea;
  --muted: #a6a79f;
  --faint: #6b6c66;
  --line: rgba(242, 241, 234, 0.11);
  --line-strong: rgba(242, 241, 234, 0.22);
  --green: #4cb44c;
  --green-soft: rgba(76, 180, 76, 0.16);
  --orange-soft: rgba(255, 76, 36, 0.16);
  --surface: #1a1a18;
  --prose: #d2d3cb;
  --tint: rgba(242, 241, 234, 0.07);
  --dot-grid: rgba(242, 241, 234, 0.1);
  --nav-bg: rgba(22, 22, 20, 0.78);
  --nav-menu-bg: rgba(22, 22, 20, 0.97);
  --nav-line: rgba(242, 241, 234, 0.1);
  --btn-bg: #f2f1ea;
  --btn-fg: #10100f;
  --btn-hover: #fff;
  --eyebrow: #c3cbff;
  --eyebrow-line: rgba(195, 203, 255, 0.3);
  --tier-2: #8aa2ff;
  color-scheme: dark;
}
[data-theme="night"] .on-night { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
[data-theme="night"] .nav-logo img, [data-theme="night"] .tour-by img { filter: invert(1) brightness(2); }
/* Line diagrams recorded on white turn into ink-on-night. */
[data-theme="night"] video.diagram { filter: invert(1) hue-rotate(180deg); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r-s); text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-soft, .on-cream { background: var(--cream); }
.on-night { background: var(--night); color: var(--snow); --ink: var(--snow); --muted: var(--mist); --faint: #6f706b; --line: var(--line-night); --line-strong: rgba(246, 246, 241, 0.28); }
.dots { background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px); background-size: 22px 22px; }
.on-night.dots { background-image: radial-gradient(rgba(246, 246, 241, 0.12) 1px, transparent 1px); }

/* ---------- type ---------- */
.h1, .h2, .display { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.2vw, 82px); line-height: 1.02; }
.h2 { font-size: clamp(32px, 4.4vw, 62px); line-height: 1.06; }
.h2-s { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.1; }
.h1 span, .h2 span, .display span { color: var(--faint); }
.h1 em, .h2 em, .display em { font-style: italic; }
.h3 { font-family: var(--sans); font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.h3-serif { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--green)); }
.kicker-plain::before { display: none; }
.note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cite { font-size: 13px; line-height: 1.5; color: var(--muted); }
.cite a { color: var(--muted); text-underline-offset: 3px; }
strong, b { font-weight: 600; }

/* A display line settles from a coarse bitmap grade to the reading grade. */
[data-settle] { font-family: "Redaction 50", var(--display); }
[data-settle].is-in { animation: settle 0.9s linear both; }
@keyframes settle { from { font-family: "Redaction 50", var(--display); } to { font-family: var(--display); } }

/* ---------- buttons, links, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 12px 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.btn::after {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%;
  background: currentColor; opacity: 0.9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.25' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M6 4.6 8.4 7 6 9.4' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.25' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M6 4.6 8.4 7 6 9.4' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.btn:hover::after { transform: translateX(2px); }
.btn-plain::after { display: none; }
.btn-plain { padding: 0 16px; }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn-dark:hover { background: var(--btn-hover); }
.btn-light { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #257525; }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.26); }
.on-night .btn-dark { background: var(--snow); color: var(--night); }
.on-night .btn-dark:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-lg { height: 46px; padding: 0 14px 0 20px; font-size: 16px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; transition: text-decoration-color 0.2s ease; }
.link:hover { text-decoration-color: currentColor; }
.link .arrow { transition: transform 0.25s var(--ease); }
.link:hover .arrow { transform: translateX(3px); }
.arrow { flex-shrink: 0; }

.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.chip-live { border-color: var(--green); color: var(--green); }
.chip-live::before { content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
.chip-no { border-color: var(--orange); color: var(--orange); }
@keyframes pulse { 50% { opacity: 0.25; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-s); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-beta { background: var(--green-soft); color: var(--green); }
.badge-alpha { background: var(--tint); color: var(--muted); }
.badge-soon { border: 1px solid var(--line-strong); color: var(--muted); height: 20px; font-size: 10px; }

/* ---------- navigation: a floating glass bar ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 120; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.nav-bar {
  pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 7px;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--nav-line); border-radius: 14px; box-shadow: 0 6px 24px rgba(22, 22, 22, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav-logo { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px 0 8px; margin-right: 6px; border-radius: 9px; text-decoration: none; background: var(--tint); transition: background 0.2s ease; }
.nav-logo:hover { background: var(--tint); }
.nav-logo img { height: 22px; width: auto; transition: filter 0.35s ease; }
.nav-logo span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); transition: color 0.35s ease; }
.nav-links { display: flex; align-items: center; }
.nav-links a, .nav-login { display: inline-flex; align-items: center; height: 38px; padding: 0 11px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s ease, background 0.2s ease; }
.nav-links a:hover, .nav-login:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-actions .btn { height: 38px; }
.nav-toggle { display: none; width: 38px; height: 38px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 9px; background: var(--tint); cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease, background 0.35s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-menu {
  pointer-events: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 2px; padding: 10px;
  background: var(--nav-menu-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--nav-line); border-radius: 14px; box-shadow: 0 20px 50px rgba(22, 22, 22, 0.14);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top center; transition: opacity 0.22s ease, transform 0.22s var(--ease);
}
.nav-menu a:not(.btn) { padding: 12px; border-radius: 9px; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-menu a[aria-current="page"] { background: var(--tint); }
.nav-menu hr { width: 100%; height: 1px; margin: 6px 0; border: 0; background: var(--line); }
.nav-menu .btn { height: 46px; margin-top: 4px; }
.nav.is-open .nav-menu { opacity: 1; pointer-events: auto; transform: none; }

/* Over artwork the bar turns to tinted glass with light text. */
.nav.is-over-art .nav-bar { background: rgba(60, 96, 132, 0.28); border-color: rgba(255, 255, 255, 0.26); box-shadow: none; }
.nav.is-over-art .nav-logo { background: rgba(255, 255, 255, 0.16); }
.nav.is-over-art .nav-logo img { filter: invert(1) brightness(2); }
.nav.is-over-art .nav-logo span { color: #fff; }
.nav.is-over-art .nav-links a, .nav.is-over-art .nav-login { color: rgba(255, 255, 255, 0.9); }
.nav.is-over-art .nav-links a:hover, .nav.is-over-art .nav-login:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.nav.is-over-art .nav-toggle { background: rgba(255, 255, 255, 0.16); }
.nav.is-over-art .nav-toggle span { background: var(--surface); }

/* Six links, the logo and two actions need about 1060px. Mirrors NAV_BREAKPOINT in src/site.mjs. */
@media (max-width: 1099.98px) {
  .nav-bar { width: 100%; justify-content: space-between; }
  .nav-links, .nav-login { display: none; }
  .nav-toggle, .nav-menu { display: flex; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 420px) { .nav-actions .btn { display: none; } }

/* ---------- inner page header ---------- */
.page-head { padding: clamp(150px, 17vw, 220px) 0 clamp(48px, 6vw, 80px); }
.page-head .h1 { margin-top: 22px; max-width: 16ch; }
.page-head .lead { margin-top: 26px; max-width: 640px; }
.page-head .btn-row { margin-top: 34px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- shared blocks ---------- */
.section-head { display: grid; gap: 20px; max-width: 880px; }
.section-head + * { margin-top: clamp(40px, 5vw, 72px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.sticky-col { position: sticky; top: 112px; align-self: start; }
.split-products { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 18px; }
.split-head .lead { max-width: 720px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.on-cream .card, .section-soft .card { background: var(--paper); }
.on-night .card { background: #1c1c1a; }
.card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.card-title + .body { margin-top: 12px; }
.rule-top { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.frame { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 30px 80px rgba(22, 22, 22, 0.1); }
.frame img, .frame video { width: 100%; }
/* A soft outer mat around a visual, as in a framed print. */
.mat { padding: clamp(10px, 1.2vw, 16px); border: 1px solid var(--line); border-radius: calc(var(--r-m) + 10px); background: var(--tint); }
.mat > * { border-radius: var(--r-m); }

.statement { font-family: var(--display); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.16; letter-spacing: -0.015em; color: var(--faint); text-wrap: balance; }
.statement strong { font-weight: 400; color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Indian ornament: aura, arch, flourish, star ---------- */
/* A saffron sun inside an indigo dawn, falling from the top edge. Atmosphere
   only; saffron here is not the reject signal. */
.aura { position: relative; isolation: isolate; }
.aura::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(44% 300px at 50% 0%, rgba(249, 115, 22, 0.92) 0%, rgba(250, 139, 52, 0.6) 38%, rgba(250, 139, 52, 0) 74%),
    radial-gradient(88% 560px at 50% 0%, #c3d0ff 0%, rgba(203, 215, 255, 0.62) 46%, rgba(203, 215, 255, 0) 80%);
}
[data-theme="night"] .aura::before { background: radial-gradient(44% 300px at 50% 0%, rgba(249, 115, 22, 0.5) 0%, rgba(249, 115, 22, 0) 74%), radial-gradient(88% 560px at 50% 0%, rgba(70, 88, 200, 0.42) 0%, rgba(70, 88, 200, 0) 80%); }
.aura-low::before { transform: scaleY(-1); /* the mask flips with the element, so "to bottom" fades out at the page edge */ -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); }
.aura-soft::before { opacity: 0.6; }
.aura-night::before { background: radial-gradient(50% 320px at 50% 0%, rgba(249, 115, 22, 0.55) 0%, rgba(249, 115, 22, 0) 72%), radial-gradient(90% 600px at 50% 0%, rgba(96, 116, 220, 0.4) 0%, rgba(96, 116, 220, 0) 78%); }

.flourish { display: block; width: 208px; height: 40px; margin: 0 auto; color: #fff; }
.flourish-ink { color: var(--ink); opacity: 0.8; }
.eyebrow { display: inline-block; padding: 12px 26px; border-top: 1px solid var(--eyebrow-line); border-bottom: 1px solid var(--eyebrow-line); font-size: 16px; font-weight: 500; color: var(--eyebrow); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }

.stars > li, .star { position: relative; padding-left: 34px; }
.stars > li::before, .star::before {
  content: ""; position: absolute; left: 0; top: 0.16em; width: 20px; height: 20px; background: var(--star, var(--green));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C8.6 4.5 11.5 7.4 16 8 11.5 8.6 8.6 11.5 8 16 7.4 11.5 4.5 8.6 0 8 4.5 7.4 7.4 4.5 8 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C8.6 4.5 11.5 7.4 16 8 11.5 8.6 8.6 11.5 8 16 7.4 11.5 4.5 8.6 0 8 4.5 7.4 7.4 4.5 8 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* A cusped arch, as on a jharokha window. Clips whatever is inside it. */
.arch {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V56C0 46 7 44 9 38 3 31 9 22 18 23 17 13 29 8 36 15 40 8 47 7 50 0 53 7 60 8 64 15 71 8 83 13 82 23 91 22 97 31 91 38 93 44 100 46 100 56V125Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V56C0 46 7 44 9 38 3 31 9 22 18 23 17 13 29 8 36 15 40 8 47 7 50 0 53 7 60 8 64 15 71 8 83 13 82 23 91 22 97 31 91 38 93 44 100 46 100 56V125Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.arch-card { position: relative; display: block; text-decoration: none; color: inherit; filter: drop-shadow(0 22px 34px rgba(22, 22, 22, 0.16)); transition: transform 0.6s var(--ease); }
.arch-card:hover { transform: translateY(-8px); }
.arch-card .arch { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.arch-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch-card:hover img { transform: scale(1.06); }
.arch-cap { margin-top: 18px; text-align: center; }
.arch-cap b { display: block; font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.015em; }
.arch-cap span { display: block; max-width: 24ch; margin: 6px auto 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.arches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 32px); align-items: start; }
.arches > :nth-child(even) { transform: translateY(clamp(18px, 3vw, 44px)); }
@media (max-width: 860px) { .arches { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } .arches > :nth-child(even) { transform: none; } }

/* block-print stripes */
.stripes { height: 34px; background: linear-gradient(to bottom, var(--s1, #3d5a57) 0 5px, transparent 5px 9px, var(--s2, #6f8a86) 9px 13px, transparent 13px 17px, var(--s3, #a9bcb7) 17px 20px, transparent 20px 25px, var(--s4, #d6dfdb) 25px 27px, transparent 27px); }
.stripes-up { transform: scaleY(-1); }

/* kolam: dots and the line that loops around them */
.kolam { display: block; color: var(--ink); }
.kolam .k-dot { fill: currentColor; }
.kolam .k-line { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.js .kolam .k-line { stroke-dashoffset: 1; }
.js .is-in .kolam .k-line, .js .kolam.is-in .k-line { stroke-dashoffset: 0; }
.kolam-row { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--faint); }
.kolam-row::before, .kolam-row::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(32px, 6vw, 90px); }
.faq-aside .lead { margin-top: 20px; max-width: 380px; }
.faq-aside .link { margin-top: 32px; }
.faq-aside.is-sticky { position: sticky; top: 120px; align-self: start; }
.faq-group { scroll-margin-top: 110px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > .note { display: block; margin-bottom: 14px; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item:first-of-type { border-top: 1px solid var(--line-strong); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 24px 0; background: none; border: 0; text-align: left; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; }
.faq-q::after { content: ""; flex-shrink: 0; width: 13px; height: 13px; background: linear-gradient(var(--muted), var(--muted)) center / 13px 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.5px 13px no-repeat; transition: transform 0.3s var(--ease); }
.faq-q[aria-expanded="true"]::after { transform: rotate(135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.35s var(--ease), opacity 0.3s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { max-width: 720px; padding-bottom: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.faq-a p:last-child { padding-bottom: 26px; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; opacity: 1; }

/* ---------- long-form text (manifesto, legal) ---------- */
.prose { max-width: 720px; font-size: 18px; line-height: 1.65; color: var(--prose); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); }
.prose h3 { margin-top: 1.8em; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.prose h4 { margin-top: 1.5em; font-size: 17px; font-weight: 600; color: var(--ink); }
.prose a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); }
.prose hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-legal { font-size: 16px; }
.prose-legal h2 { font-family: var(--sans); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.signature { display: grid; gap: 2px; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line-strong); }
.signature b { font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--ink); }
.signature span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.lost { padding: clamp(170px, 22vw, 280px) 0 clamp(110px, 14vw, 200px); text-align: center; }
.lost .h1 { max-width: 14ch; margin-left: auto; margin-right: auto; }

/* ---------- closing band ---------- */
.close { position: relative; text-align: center; padding: clamp(110px, 14vw, 200px) 0; }
.close .h1 { max-width: 18ch; margin: 0 auto; }
.close .lead { max-width: 560px; margin: 26px auto 0; }
.close .btn-row { justify-content: center; margin-top: 40px; }
.cta { text-align: center; }
.cta .h2 { max-width: 18ch; margin: 0 auto; }
.cta .btn-row { justify-content: center; margin-top: 40px; }

/* ---------- footer ---------- */
.footer { background: var(--paper); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { font-size: 14px; color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .footer-links { gap: 0 18px; } .footer-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; } }
.footer-aside { display: flex; align-items: center; gap: 8px; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; color: var(--ink); text-decoration: none; }
.footer-mail:hover { border-color: var(--ink); }
.footer-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); transition: border-color 0.2s ease; }
.footer-icon:hover { border-color: var(--ink); }
.footer-art { position: relative; height: clamp(300px, 38vw, 520px); overflow: hidden; background: #0c1418; }
.footer-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; image-rendering: pixelated; }
.footer-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(6, 10, 12, 0.92)); }
.footer-base { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 26px; font-size: 13px; color: rgba(255, 255, 255, 0.86); }
.footer-base a { color: inherit; text-underline-offset: 3px; }

/* ============ OnBrand API and Fashion Studio ============ */
.hero { padding: clamp(150px, 17vw, 210px) 0 clamp(64px, 8vw, 110px); }
.hero-center { text-align: center; }
.hero-center .h1 { max-width: 14ch; margin: 0 auto; }
.hero-center .lead { max-width: 700px; margin: 24px auto 0; }
.hero-center .btn-row { justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.url-form { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 620px; margin: 36px auto 0; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 10px 30px rgba(22, 22, 22, 0.06); transition: border-color 0.2s ease; }
.url-form:focus-within { border-color: var(--ink); }
.url-form input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.url-form input::placeholder { color: var(--faint); }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-note a { color: var(--ink); text-underline-offset: 3px; }

.figure-box { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.figure-box > div { width: 100%; }
.on-night .figure-box { background: #1c1c1a; }

.compare { position: relative; display: grid; gap: 28px; margin-top: 44px; --pos: 50; grid-template-columns: 1fr 1fr; }
.compare figcaption { font-size: 17px; color: var(--muted); }
.compare figure:last-of-type figcaption { color: var(--ink); font-weight: 500; }
.compare-shot { height: clamp(300px, 42vw, 580px); margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.compare-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; user-select: none; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: calc((100% - 28px) * var(--pos) / 100 + 14px); width: 32px; transform: translateX(-50%); cursor: ew-resize; touch-action: none; }
.compare-handle::before { content: ""; position: absolute; top: 34px; bottom: 0; left: 50%; width: 1px; background: var(--line-strong); }
.compare-handle span { position: absolute; top: 55%; left: 50%; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.compare-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.tour { display: grid; grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.tour-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.tour-copy .h3-serif { max-width: 440px; }
.tour-by { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tour-by img { width: 26px; height: 26px; padding: 3px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
.tour-stage { position: relative; aspect-ratio: 1060 / 596; overflow: hidden; border-radius: var(--r-m); background: #1e1e1e; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(22, 22, 22, 0.12); }
.tour-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.7s ease; }
.tour-stage img.is-on { opacity: 1; }
.tour-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 40px clamp(16px, 3vw, 38px) 24px; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent); color: #fff; }
.tour-bar button { background: none; border: 0; padding: 0; cursor: pointer; color: #fff; }
.tour-play { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.tour-count { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.tour-dots { display: flex; flex: 1; gap: 6px; }
.tour-dots button { flex: 1; height: 14px; background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)) center / 100% 3px no-repeat; border-radius: 999px; }
.tour-dots button.is-on { background-image: linear-gradient(#fff, #fff); }
.tour-label { width: 240px; text-align: right; font-size: 14px; }

.integrate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.integrate .lead { margin-top: 16px; max-width: 470px; }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.integrate .marquee { max-width: 380px; margin: 32px 0; }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee var(--marquee, 26s) linear infinite; }
.marquee-track span { display: flex; align-items: center; height: 44px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

.toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; }
.toggle button { height: 38px; padding: 0 16px; background: none; border: 0; border-radius: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { margin-top: 36px; }
.plan { display: flex; flex-direction: column; min-height: 440px; padding: clamp(26px, 3vw, 40px); }
.plan-name { font-size: 18px; font-weight: 500; color: var(--ink); }
.plan-price { margin-top: 48px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.01em; color: var(--faint); }
.plan-price b { font-weight: 400; color: var(--ink); }
.plan ul { display: grid; gap: 10px; margin-top: auto; padding-top: 44px; font-size: 16px; color: var(--muted); }
.plan .btn { margin-top: 36px; }
.credits { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; margin-top: clamp(16px, 2.4vw, 32px); padding: 20px 24px; font-size: 16px; color: var(--muted); }
.credits b { font-weight: 500; color: var(--ink); }

.fs-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(460px, 46vw, 620px); overflow: hidden; border-radius: var(--r-l); text-align: center; color: #fff; background: #1b1f1b; }
.fs-hero video, .fs-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fs-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }
.fs-hero-copy { position: relative; z-index: 1; padding: 40px 24px; }
.fs-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.fs-title { margin-top: 14px; font-family: var(--display); font-size: clamp(54px, 7vw, 96px); font-style: italic; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.fs-hero .lead { margin-top: 20px; color: rgba(255, 255, 255, 0.92); }
.fs-hero .btn-row { justify-content: center; margin-top: 36px; }
.fs-hero .btn-light { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.fs-hero .btn-light:hover { background: #fff; color: #161616; }
.built-for { padding: 44px 0 0; text-align: center; }
.built-for p { font-size: 15px; color: var(--muted); }
.built-for ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 42px; margin-top: 20px; font-size: 26px; letter-spacing: -0.01em; color: #b0b2ad; }
.built-for li:nth-child(3n + 1) { font-family: var(--serif); font-size: 30px; font-style: italic; }
.built-for li:nth-child(3n + 2) { font-size: 20px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.built-for li:nth-child(3n) { font-weight: 400; }

.workflow { display: flex; align-items: center; justify-content: space-between; gap: 4px; max-width: 1156px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 22px clamp(18px, 3vw, 42px) 30px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.workflow-step { flex: 0 0 auto; width: clamp(150px, 15vw, 205px); }
.workflow-step img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.workflow-step:hover img { transform: scale(1.04); }
.workflow-step > div:first-child { overflow: hidden; border-radius: 10px; }
.workflow-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--ink); }
.workflow-meta span:first-child { color: var(--green); }
.workflow-arrow { z-index: 1; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0 -10px 22px; border-radius: 999px; background: var(--green); color: #fff; }
.workflow-arrow .arrow { width: 11px; height: 11px; }

.value { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.value-n { font-family: var(--mono); font-size: 12px; color: var(--green); }
.value .h3 { margin-top: 12px; }
.value .body { margin-top: 12px; }

.tool-section + .tool-section { margin-top: clamp(80px, 9vw, 130px); }
.tool-kicker { display: flex; align-items: baseline; gap: 14px; }
.tool-kicker b { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--green); }
.tool-kicker span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tool-section .h2 { margin-top: 14px; }
.tool-card { display: block; padding: 12px; text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.3s ease; }
.tool-card:hover { border-color: var(--line-strong); box-shadow: 0 20px 50px rgba(22, 22, 22, 0.08); }
.tool-media { position: relative; height: clamp(240px, 26vw, 365px); overflow: hidden; border-radius: 9px; background: var(--cream); }
.tool-media img, .tool-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease, opacity 0.5s ease; }
.tool-media video { opacity: 0; }
.tool-card:hover .tool-media img { transform: scale(1.035); }
.tool-card:hover .tool-media video { opacity: 1; }
.tool-copy { padding: 26px 10px 12px; }
.tool-copy p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.tool-try { display: flex; align-items: center; gap: 6px; margin-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.tool-try .arrow { width: 11px; height: 11px; transition: transform 0.2s ease; }
.tool-card:hover .tool-try .arrow { transform: translateX(4px); }
.tool-col { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.tool-col h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tool-col ul { display: grid; gap: 22px; margin-top: 26px; }
.tool-col a, .tool-col .tool-name { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.tool-col a:hover { color: var(--green); }
.tool-col .is-soon { color: var(--faint); }
.tool-col p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2, .split, .split-wide, .split-products, .faq, .tour, .integrate { grid-template-columns: minmax(0, 1fr); }
  .plan { min-height: 0; }
  .faq-aside.is-sticky { position: static; }
  .sticky-col { position: static; }
  .plan-price { margin-top: 28px; }
  .tour-label { display: none; }
  .compare { grid-template-columns: minmax(0, 1fr) !important; }
  .compare-handle { display: none; }
  .fs-hero { border-radius: 20px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .url-form { flex-wrap: wrap; }
  .url-form input { flex-basis: 100%; }
  .url-form .btn { flex: 1; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .chip-live::before { animation: none; }
  .kolam .k-line { stroke-dashoffset: 0; transition: none; }
  [data-settle], [data-settle].is-in { font-family: var(--display); animation: none; }
}
