/* Digital SoLucians: site styles
   Tokens first; everything else is built from them. See /brand/ for the guide. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* brand */
  --sky: #3FBDF0;
  --sky-600: #0EA0DC;
  --sky-50: #EEF9FE;
  --sky-100: #D6F0FC;
  --ocean: #0369A1;
  --ink: #0B1220;
  --ink-2: #131C2E;
  --ink-3: #1E293B;
  --gold: #FCD116;

  /* neutrals */
  --bg: #FFFFFF;
  --bg-tint: #F7F8FA;
  --text: #0B1220;
  --soft: #3A4453;
  --muted: #667085;
  --faint: #98A2B3;
  --line: #E6E8EC;
  --line-2: #EFF1F4;
  --fg: #0B1220;          /* headings & strong text */
  --surface: #FFFFFF;     /* cards, inputs, panels */
  --header-bg: rgba(255, 255, 255, .82);

  /* status */
  --ok: #16A34A;
  --ok-bg: #E8F7EE;
  --warn: #B45309;
  --warn-bg: #FEF3E2;

  /* type */
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow-md: 0 1px 2px rgba(11, 18, 32, .05), 0 6px 18px -6px rgba(11, 18, 32, .12);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, .04), 0 24px 48px -16px rgba(11, 18, 32, .18);

  /* layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-100); color: var(--fg); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

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

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 7.4vw, 84px);
  line-height: .98;
  letter-spacing: -0.035em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.mute { color: var(--faint); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--soft); max-width: 34em; }
.accent-word { position: relative; white-space: nowrap; }
.accent-word::after {
  content: ""; position: absolute; left: .02em; right: .06em; bottom: .02em; height: .12em;
  background: var(--sky); border-radius: 99px; z-index: -1;
  transform-origin: left; animation: underline 900ms 500ms cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--shadow-sm); }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: #D0D5DD; background: var(--bg-tint); }
.btn-block { width: 100%; }
.btn .ico { width: 16px; height: 16px; }

/* ---------- announcement ---------- */
.announce { background: var(--ink); color: #D7DEE8; font-size: 13.5px; }
.announce a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 40px; padding: 8px var(--gutter); text-align: center;
}
.announce a:hover span:not(.announce-tag) { color: #fff; }
.announce-tag {
  flex: none; background: var(--sky); color: var(--fg); font-weight: 700; font-size: 11.5px;
  padding: 2px 8px; border-radius: 99px; letter-spacing: .02em; text-transform: uppercase;
}
.announce .ico { width: 14px; height: 14px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a, .nav-link-quiet {
  padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--soft);
  transition: color .15s, background-color .15s;
}
.nav a:hover, .nav-link-quiet:hover { color: var(--fg); background: var(--bg-tint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn .ico { width: 20px; height: 20px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 12px 20px; }
.mobile-menu a:not(.btn) { padding: 12px 4px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before { /* faint blueprint grid, fades out at the edges */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }
.hero .display { margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* hero canvas */
.hero-visual { min-width: 0; }
.canvas {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); background: #FBFCFD;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.canvas::before {
  content: ""; position: absolute; inset: 44px 0 0; pointer-events: none;
  background-image: radial-gradient(#D9DEE5 1px, transparent 1px);
  background-size: 18px 18px;
}
.canvas-bar {
  position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E4E7EC; }
.canvas-title { display: flex; align-items: center; gap: 6px; margin-inline: auto; font-weight: 600; color: var(--soft); }
.canvas-zoom { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.flow { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 32px; }
.node {
  position: relative; width: min(300px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-md);
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 140ms + 200ms);
}
.node-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.node-kicker .ico { width: 14px; height: 14px; }
.node-title { font-weight: 600; font-size: 14.5px; color: var(--fg); letter-spacing: -0.01em; }
.node-sub { font-size: 12.5px; color: var(--muted); }
.node-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.node-trigger { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-50), var(--shadow-md); }
.node-trigger .node-kicker { color: var(--sky-600); }
.node-cond .node-kicker { color: #7C3AED; }
.ai-tag {
  position: absolute; right: -10px; top: -12px; display: inline-flex; align-items: center; gap: 4px;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 99px;
  box-shadow: var(--shadow-md);
}
.ai-tag .ico { width: 12px; height: 12px; color: var(--gold); }
.edge {
  width: 0; height: 26px; border-left: 1.5px dashed #B8C2CF;
  animation: rise .5s both; animation-delay: calc(var(--d, 0) * 140ms + 200ms);
}
.edge-short { height: 22px; margin-inline: auto; }
.branches {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 440px;
  animation: rise .6s both; animation-delay: calc(var(--d, 0) * 140ms + 200ms);
}
.branches::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 0; border-top: 1.5px dashed #B8C2CF;
}
.branches::after { /* stem from the condition node down to the split */
  content: ""; position: absolute; top: -22px; left: 50%; height: 22px; border-left: 1.5px dashed #B8C2CF;
}
.branches { margin-top: 22px; }
.branch { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.node-sm { width: 100%; }
.node-sm .chip { margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; line-height: 1.6;
}
.chip .ico { width: 12px; height: 12px; stroke-width: 2.5; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-live { background: var(--sky-50); color: var(--ocean); }
.chip-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-600); animation: pulse 1.8s infinite; }
.canvas-fab {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.canvas-fab .ico { width: 16px; height: 16px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 160, 220, .5); } 50% { box-shadow: 0 0 0 4px rgba(14, 160, 220, 0); } }

/* ---------- tools strip ---------- */
.tools { border-block: 1px solid var(--line); }
.tools .container { padding-block: 36px 40px; }
.tools-label { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.tools-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 12px; text-align: center;
}
.tools-grid li {
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em;
  color: #6B7686; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s;
}
.tools-grid li:hover { color: var(--fg); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.section-head.center { text-align: center; }
.section-head.center .section-intro { margin-inline: auto; }
.section-head:not(.split) .section-intro { margin-top: 16px; }
.section-intro { color: var(--soft); font-size: 17px; max-width: 32em; }

/* ---------- services ---------- */
.services {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.service-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 18px 4px; cursor: pointer; position: relative;
}
.service::before { /* active indicator */
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--ink);
  transform: scaleY(0); transition: transform .25s; transform-origin: top;
}
.service[aria-selected="true"]::before { transform: scaleY(1); }
.service-head {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600;
  font-size: 18.5px; letter-spacing: -0.015em; color: var(--muted); transition: color .2s; padding-left: 12px;
}
.service-head .ico:first-child { color: var(--faint); transition: color .2s; }
.service:hover .service-head, .service[aria-selected="true"] .service-head { color: var(--fg); }
.service[aria-selected="true"] .service-head .ico:first-child { color: var(--sky-600); }
.chev { margin-left: auto; color: var(--faint); transition: transform .25s; }
.service[aria-selected="true"] .chev { transform: rotate(180deg); }
.service-body {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  color: var(--soft); font-size: 15px; padding-left: 42px; padding-right: 12px;
  transition: max-height .35s, margin .3s, opacity .3s;
}
.service[aria-selected="true"] .service-body { max-height: 12em; margin-top: 8px; opacity: 1; }

.service-stage {
  position: sticky; top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-tint);
  padding: clamp(16px, 3vw, 36px); min-height: 400px; display: grid; align-items: center;
  overflow: hidden;
}
.service-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#DCE1E8 1px, transparent 1px); background-size: 18px 18px; opacity: .7;
}
.panel { position: relative; min-width: 0; }
.panel:not([hidden]) { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  font-size: 13px; color: var(--soft); overflow: hidden;
}

/* brand mock */
.mock-brand { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 14px; background: var(--surface); }
.mock-brand > div { border: 1px solid var(--line-2); border-radius: var(--r-md); }
.mb-logo { display: grid; place-items: center; padding: 22px; background: var(--surface); min-height: 170px; }
.mb-logo img { width: min(160px, 90%); height: auto; }
.mb-swatches { display: grid; grid-template-rows: repeat(3, 1fr); overflow: hidden; }
.sw { background: var(--c); display: flex; align-items: flex-end; padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--fg); min-height: 52px; }
.sw-dark { color: #fff; }
.mb-type { display: flex; align-items: center; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.mb-type .aa { font-family: var(--font-display); font-size: 44px; font-weight: 600; color: var(--fg); line-height: 1; letter-spacing: -0.03em; }
.mb-type b { display: block; font-family: var(--font-display); color: var(--fg); font-size: 15px; }
.mb-type b.inter { font-family: var(--font-body); }
.mb-type small { color: var(--muted); font-size: 12px; }
.mb-cards { display: flex; gap: 10px; padding: 14px; align-items: center; justify-content: center; background: var(--bg-tint); }
.bcard { width: 46%; aspect-ratio: 1.75; border-radius: 6px; background: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-md); transform: rotate(-4deg); }
.bcard img { width: 34%; height: auto; }
.bcard-light { background: var(--surface); transform: rotate(3deg); display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12%; place-items: initial; }
.bcard-light span { height: 4px; border-radius: 2px; background: #D9DEE5; }
.bcard-light span:first-child { width: 60%; background: var(--sky); }
.bcard-light span:last-child { width: 40%; }

/* browser mock */
.mock-browser { position: relative; overflow: visible; background: transparent; border: 0; box-shadow: none; padding: 0 0 24px; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.url { display: flex; align-items: center; gap: 6px; margin-inline: auto; background: var(--bg-tint); border-radius: 6px; padding: 3px 12px; font-size: 12px; color: var(--muted); min-width: 0; }
.url .ico { width: 12px; height: 12px; }
.browser-body { background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 16px 18px 20px; box-shadow: var(--shadow-lg); width: 88%; }
.browser-bar { width: 88%; }
.site-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.site-nav span { height: 6px; width: 34px; border-radius: 3px; background: #E4E7EC; }
.site-nav .logo-blob, .phone .logo-blob { width: 22px; height: 22px; border-radius: 6px; background: var(--sky); margin-right: auto; }
.site-nav .btn-blob, .site-hero .btn-blob { width: 56px; height: 22px; border-radius: 6px; background: var(--ink); }
.site-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; margin-bottom: 20px; }
.site-hero .l { display: block; height: 12px; border-radius: 4px; background: var(--ink); margin-bottom: 8px; }
.site-hero .l1 { width: 90%; } .site-hero .l2 { width: 70%; } .site-hero .l3 { width: 80%; height: 6px; background: #D9DEE5; margin: 14px 0; }
.site-img { aspect-ratio: 4/3; border-radius: 10px; background: linear-gradient(135deg, var(--sky-100), var(--sky)); display: grid; place-items: center; color: #fff; }
.site-img .ico { width: 28px; height: 28px; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-cards span { height: 54px; border-radius: 8px; background: var(--bg-tint); border: 1px solid var(--line-2); }
.phone {
  position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 9/18; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 10px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px;
}
.phone .l { height: 6px; border-radius: 3px; background: var(--ink); }
.phone .l.short { width: 60%; background: #D9DEE5; }
.phone .site-img { aspect-ratio: auto; flex: 1; }

/* table mock */
.mock-table .table-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-table .table-top b { color: var(--fg); font-size: 14px; }
.search { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; color: var(--faint); font-size: 12px; }
.search .ico { width: 13px; height: 13px; }
.btn-mini { background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.trow { display: grid; grid-template-columns: 1.5fr 1fr 1fr .9fr; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.trow:last-child { border-bottom: 0; }
.trow > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.trow > span:first-child { color: var(--fg); font-weight: 600; }
.thead { background: var(--bg-tint); font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-block: 8px; }
.thead > span:first-child { color: var(--muted); }
.av { width: 18px; height: 18px; border-radius: 5px; background: var(--c); flex: none; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-pend { background: var(--warn-bg); color: var(--warn); }
.tag-new { background: var(--sky-50); color: var(--ocean); }
.tag-ai { background: #F1EAFE; color: #6D28D9; }

/* steps mock */
.mock-steps { padding: 14px; display: flex; flex-direction: column; gap: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.step {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); margin-bottom: 22px;
}
.step:not(:last-child)::after { content: ""; position: absolute; left: 30px; bottom: -23px; height: 22px; border-left: 1.5px dashed #B8C2CF; }
.step:last-child { margin-bottom: 0; }
.step b { display: block; color: var(--fg); font-size: 13.5px; }
.step small { color: var(--muted); font-size: 12px; }
.step > div { min-width: 0; flex: 1; }
.step-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.step-ico .ico { width: 16px; height: 16px; }

/* kanban mock */
.mock-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; background: var(--bg-tint); }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fg); font-size: 12.5px; padding: 2px 2px 4px; }
.col-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.col-head span { margin-left: auto; color: var(--muted); font-weight: 500; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: var(--shadow-sm); min-width: 0; }
.kcard b { display: block; color: var(--fg); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard small { color: var(--muted); font-size: 11.5px; }
.kcard.ghost { border-style: dashed; background: transparent; box-shadow: none; height: 46px; }

/* video mock */
.mock-video { padding: 12px; background: var(--ink); border-color: var(--fg); }
.screen { position: relative; aspect-ratio: 16/8; border-radius: 10px; background: linear-gradient(160deg, #1E3A5F 0%, #0E7AB8 55%, var(--sky) 100%); display: grid; place-items: center; overflow: hidden; }
.screen::after { /* stylised peaks on the horizon */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(transparent, rgba(11, 18, 32, .55));
  clip-path: polygon(0 100%, 0 70%, 38% 70%, 48% 8%, 55% 46%, 62% 26%, 72% 70%, 100% 70%, 100% 100%);
}
.play { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--fg); display: grid; place-items: center; }
.play .ico { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.rec { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-size: 11.5px; color: #fff; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .35); border-radius: 5px; padding: 1px 6px; }
.tracks { position: relative; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.track { display: flex; gap: 4px; height: 18px; background: rgba(255, 255, 255, .06); border-radius: 5px; padding: 3px; }
.track span { width: var(--w); background: var(--c); border-radius: 3px; opacity: .9; }
.playhead { position: absolute; top: -6px; bottom: -4px; left: 40%; width: 2px; background: var(--gold); border-radius: 2px; animation: scrub 6s linear infinite; }
@keyframes scrub { from { left: 4%; } to { left: 96%; } }

/* ---------- ventures ---------- */
.ventures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.venture {
  position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; overflow: hidden;
}
.venture::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--v, var(--line)); }
.venture:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D9DEE5; }
.venture-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.venture-logo { height: 30px; width: auto; max-width: 70%; }
.venture p { color: var(--soft); font-size: 15px; }
.venture p b { color: var(--fg); }
.venture-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.venture-tags li { font-size: 12px; font-weight: 500; color: var(--soft); background: var(--bg-tint); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; }
.venture-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--fg); padding-top: 6px; }
.venture-link .ico { width: 16px; height: 16px; transition: transform .2s; }
.venture:hover .venture-link .ico { transform: translate(2px, -2px); }
.venture-next:hover .venture-link .ico { transform: translateX(3px); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-tint); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-live { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.status-live i { background: var(--ok); animation: pulse-ok 1.8s infinite; }
.status-build { color: #C2410C; background: #FFF1E9; border-color: transparent; }
.status-build i { background: #FF4E00; }
@keyframes pulse-ok { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 50% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0); } }
.venture-next { background: transparent; border-style: dashed; border-color: #CBD2DB; box-shadow: none; }
.venture-next::before { display: none; }
.venture-next:hover { background: var(--surface); }
.lab-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); }
.lab-icon .ico { width: 20px; height: 20px; color: #CA8A04; }

.hub { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.hub-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent); }
.hub-core { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--soft); box-shadow: var(--shadow-sm); }
.hub-core img { width: 28px; height: auto; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.step-card:not(:last-child)::after { /* connector to the next card */
  content: ""; position: absolute; top: 44px; right: -17px; width: 18px; border-top: 1.5px dashed #B8C2CF;
}
.step-num { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--faint); }
.step-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); margin-bottom: 6px; }
.step-icon .ico { width: 20px; height: 20px; }
.step-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.step-card p { color: var(--soft); font-size: 15px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.pillars li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.pillars .ico { width: 20px; height: 20px; color: var(--fg); margin-top: 2px; }
.pillars b { display: block; font-size: 15.5px; }
.pillars span { color: var(--muted); font-size: 14.5px; }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--line), var(--sky)); border-radius: 2px; }
.timeline li { position: relative; padding-top: 34px; min-width: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid #C5CDD8;
}
.timeline li.t-now::before { background: var(--sky); border-color: var(--sky); box-shadow: 0 0 0 5px var(--sky-100); }
.t-when { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--ocean); background: var(--sky-50); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.timeline h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; margin-bottom: 6px; }
.timeline p { color: var(--soft); font-size: 14.5px; }

/* ---------- dark section ---------- */
.section-dark { background: var(--ink); color: #C9D2DE; }
.section-dark .h2 { color: #fff; }
.section-dark .section-intro { color: #98A4B5; }
.more-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .1); border-left: 1px solid rgba(255, 255, 255, .1);
}
.more-grid li {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .2s;
}
.more-grid li:hover { background: rgba(255, 255, 255, .03); }
.more-grid .ico { width: 22px; height: 22px; color: var(--sky); margin-bottom: 10px; }
.more-grid b { color: #fff; font-weight: 600; font-size: 15.5px; }
.more-grid span { font-size: 14px; color: #8D99AB; }

/* ---------- founder ---------- */
.founder { display: flex; flex-direction: column; align-items: center; text-align: center; }
.founder-mark { width: 56px; height: auto; margin-bottom: 28px; }
.founder blockquote { max-width: 860px; }
.founder blockquote p {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.28;
  letter-spacing: -0.02em; color: var(--fg); text-wrap: balance;
}
.founder blockquote footer { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.founder blockquote footer span { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 860px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.facts dt { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; color: var(--fg); line-height: 1.1; }
.facts dd { color: var(--muted); font-size: 14px; }

/* ---------- CTA / contact ---------- */
.cta {
  position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 112px);
  background: var(--sky); color: var(--fg);
}
.cta::before { /* big faint mark as texture */
  content: ""; position: absolute; left: -8%; bottom: -28%; width: 44%; aspect-ratio: 1.28; pointer-events: none;
  background: url("/assets/brand/ds-mark-mono-white.svg") center / contain no-repeat; opacity: .16;
}
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta .h2 { color: var(--fg); }
.cta .mute { color: rgba(11, 18, 32, .55); }
.cta-copy > p { font-size: 18px; margin-top: 18px; color: rgba(11, 18, 32, .82); max-width: 28em; }
.cta-points { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cta-points .ico { width: 18px; height: 18px; stroke-width: 2.5; }
.cta-mail { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; border-bottom: 2px solid rgba(11, 18, 32, .25); padding-bottom: 2px; max-width: 100%; }
.cta-mail span { overflow: hidden; text-overflow: ellipsis; }
.cta-mail:hover { border-color: var(--fg); }

.form-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -20px rgba(11, 18, 32, .35); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 600; color: var(--fg); padding: 0; margin-bottom: 6px; }
.field > span { margin-bottom: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: var(--surface);
  border: 1px solid #D0D5DD; border-radius: 10px; padding: 10px 12px; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky-600); box-shadow: 0 0 0 4px var(--sky-100); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #DC2626; box-shadow: 0 0 0 4px #FEE2E2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 99px;
  font-size: 13.5px; font-weight: 500; color: var(--soft); transition: all .15s; user-select: none;
}
.chips label:hover span { border-color: var(--faint); }
.chips input:checked + span { background: var(--ink); border-color: var(--fg); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--sky-600); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-note.is-error { color: #B91C1C; }
.form-note.is-ok { color: var(--ok); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #98A4B5; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; padding-block: 64px 48px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 22em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 24px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-cols h3 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-cols a, .footer-cols span { overflow-wrap: anywhere; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px 28px; font-size: 13px; color: #7A8699; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .timeline::before { display: none; }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav, .nav-link-quiet { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .section-head.split { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service-stage { position: relative; top: 0; min-height: 0; order: -1; }
  .ventures { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .venture-next { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card::after { display: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .header-actions .btn { display: none; }
  .brand img { height: 26px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .tools-grid li { font-size: 15px; }
  .ventures, .steps { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 4px; }
  .timeline li { padding: 0 0 28px 34px; }
  .timeline li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: #D5DBE3; }
  .timeline li:last-child::after { display: none; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid li { padding: 18px 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  .mock-brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mb-logo { min-height: 130px; padding: 14px; }
  .trow { grid-template-columns: 1.5fr 1fr .9fr; }
  .trow > span:nth-child(3) { display: none; }
  .announce a { font-size: 12.5px; }
  .canvas .ai-tag { right: -4px; }
}

@media (max-width: 380px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .branches { gap: 10px; }
  .node-sm { padding: 10px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

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

/* ======================================================================
   Brand guidelines page (/brand/)
   ====================================================================== */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ocean); margin-bottom: 16px; }
.bp-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.bp-hero .section-intro { margin-top: 18px; }
.bp-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.bp-toc a { font-size: 13.5px; font-weight: 500; color: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; background: var(--surface); }
.bp-toc a:hover { border-color: #D0D5DD; color: var(--fg); }
.bp-section { padding-block: clamp(56px, 7vw, 96px); }
.bp-head { max-width: 640px; margin-bottom: 32px; }
.bp-head p { color: var(--soft); font-size: 16.5px; }
.bp-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; margin-bottom: 12px; }
.bp-sub { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; margin: 40px 0 16px; }
.bp-hero-logo { display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(40px, 8vw, 96px) 24px; background: var(--surface); }
.bp-hero-logo img { width: min(560px, 100%); height: auto; }
.bp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.bp-note { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.bp-note span { color: var(--soft); font-size: 15px; }
.bp-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.bp-split .bp-head { margin-bottom: 0; }
.bp-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--soft); }
.bp-list li { display: flex; align-items: center; gap: 10px; }
.bp-list i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.bp-list i.gap { background: var(--surface); border: 1.5px dashed #F59E0B; }
.bp-construct { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(12px, 3vw, 28px); margin: 0; overflow: hidden; }
.bp-construct svg { width: 100%; height: auto; }

.bp-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.asset { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); min-width: 0; }
.asset-view { height: 170px; display: grid; place-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.asset-view img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.asset-view.dark { background: var(--ink); border-bottom-color: var(--fg); }
.asset-view.tint { background: var(--bg-tint); }
.asset-view.sky { background: var(--sky); }
.asset-view.ocean { background: var(--ocean); }
.asset figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.asset figcaption span { display: flex; gap: 6px; }
.asset figcaption a, .badge-view span a {
  font-size: 12.5px; font-weight: 600; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
.asset figcaption a:hover, .badge-view span a:hover { background: var(--bg-tint); }

.bp-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.rule-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.rule-card > span { color: var(--soft); font-size: 15px; }
.clearspace, .minsize { height: 170px; display: grid; place-items: center; margin-bottom: 14px; background: var(--bg-tint); border-radius: var(--r-md); }
.cs-box { padding: 18px; outline: 1.5px dashed var(--sky-600); outline-offset: 0; background: repeating-linear-gradient(45deg, rgba(63, 189, 240, .1) 0 6px, transparent 6px 12px); }
.cs-box img { width: min(240px, 60vw); height: auto; background: var(--surface); }
.minsize { grid-auto-flow: column; gap: 40px; }
.minsize > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.minsize small { font-size: 12px; color: var(--muted); }
.donts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.donts figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dont-view { height: 120px; display: grid; place-items: center; padding: 16px; overflow: hidden; border-bottom: 1px solid var(--line); }
.dont-view img { width: min(200px, 80%); height: auto; }
.dont-view.busy { background: repeating-linear-gradient(-45deg, #3FBDF0 0 10px, #F59E0B 10px 20px, #0EA0DC 20px 30px); }
.dont-type { font-family: Georgia, serif; font-size: 22px; color: var(--ocean); }
.donts figcaption { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; font-size: 14px; color: var(--soft); }
.donts figcaption .ico { color: #DC2626; width: 18px; height: 18px; margin-top: 1px; }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.swatch {
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 0 14px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: box-shadow .2s, transform .2s;
}
.swatch:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.swatch-chip { display: block; height: 120px; background: var(--c); margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.swatch b, .swatch code, .swatch small { padding-inline: 14px; }
.swatch b { font-size: 15px; }
.swatch code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--fg); }
.swatch small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.neutrals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.neutrals button {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; min-width: 0; text-align: left;
}
.neutrals span { width: 26px; height: 26px; border-radius: 7px; background: var(--c); border: 1px solid rgba(11, 18, 32, .08); flex: none; }
.neutrals code { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.copy-hint { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.type-label { font-size: 12.5px; font-weight: 600; color: var(--ocean); text-transform: uppercase; letter-spacing: .05em; }
.type-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 54px); line-height: 1; letter-spacing: -0.035em; color: var(--fg); }
.type-body { font-size: 18px; color: var(--soft); }
.type-abc { font-size: 20px; color: var(--fg); letter-spacing: .01em; overflow-wrap: anywhere; }
.type-abc.display-font { font-family: var(--font-display); font-weight: 500; }
.type-card small { color: var(--muted); font-size: 13.5px; }
.voice ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.voice li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; color: var(--soft); font-size: 15px; }
.voice b { color: var(--fg); }

.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.badge-view { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.badge-view img { width: min(270px, 100%); height: auto; }
.badge-view.dark { background: var(--ink); border-color: var(--fg); }
.badge-view.dark span a { color: #fff; border-color: rgba(255, 255, 255, .2); }
.badge-view.dark span a:hover { background: rgba(255, 255, 255, .06); }
.badge-view span { display: flex; gap: 6px; }
.snippet { margin: 16px 0 0; background: var(--ink); color: #D7DEE8; border-radius: var(--r-lg); padding: 18px 20px; font-size: 13px; line-height: 1.6; overflow-x: auto; }
.brand-page + .site-footer .footer-bottom { border-top: 0; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 960px) {
  .bp-split { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatches .swatch:first-child { grid-column: 1 / -1; }
  .neutrals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .swatches, .neutrals { grid-template-columns: minmax(0, 1fr); }
}

/* brand hub v2 additions */
.ln { color: var(--ocean); text-decoration: underline; text-underline-offset: 2px; }
.kit-preview { display: block; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: 900px; position: relative; }
.kit-preview::after { content: "Open full size"; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 99px; box-shadow: var(--shadow-md); }
.kit-preview img { width: 100%; height: auto; display: block; }
.evolution { display: flex; align-items: center; gap: 20px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; flex-wrap: wrap; }
.evolution p { flex: 1 1 320px; color: var(--soft); font-size: 15px; }
.evolution p b { color: var(--fg); }
.evo-old, .evo-new { height: 96px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.evo-old img, .evo-new img { height: 100%; width: auto; }
.evo-new { padding: 18px 20px; }
.evo-arrow { font-size: 24px; color: var(--sky-600); }
.ratio-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); margin-top: 18px; }
.ratio-bar i { display: block; }
.scale-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.scale-table > div { display: grid; grid-template-columns: 1fr 1.3fr 1.1fr .7fr 2fr; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-2); align-items: center; font-size: 14px; color: var(--soft); }
.scale-table > div:first-child { border-top: 0; }
.scale-table .st-head { background: var(--bg-tint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.scale-table .smp { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.icon-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 12px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.icon-cell:hover { border-color: var(--sky); box-shadow: var(--shadow-md); color: var(--fg); }
.icon-cell img { width: 26px; height: 26px; }
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.pat { height: 220px; border-bottom: 1px solid var(--line); }
.pat-dark { background: url("/assets/brand/pattern/ds-pattern-tile.svg") 0 0 / 120px; }
.pat-light { background: url("/assets/brand/pattern/ds-pattern-tile-light.svg") 0 0 / 120px; }
.pat-slice { background: url("/assets/brand/pattern/ds-slice.svg") center / cover; }
@media (max-width: 760px) {
  .scale-table > div { grid-template-columns: 1fr 1fr; }
  .scale-table > div > span:nth-child(3), .scale-table > div > span:nth-child(4) { display: none; }
  .scale-table .smp { grid-column: 1 / -1; }
}

/* the slice: the S's 45-degree cut as a quiet accent on dark sections */
.section-dark { position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; right: -90px; top: -90px; width: 180px; height: 180px; background: var(--sky); transform: rotate(45deg); opacity: .9; pointer-events: none; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 120px; height: 120px; background: var(--sky); transform: rotate(45deg); pointer-events: none; }
.bp-construct img { width: 100%; height: auto; display: block; }
.evo-old img, .evo-new img { height: 72px; width: auto; }

/* ======================================================================
   Dark mode: [data-theme="dark"] on <html>, set by the toggle or the OS
   ====================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1220; --bg-tint: #0E1628; --surface: #131C2E; --header-bg: rgba(11, 18, 32, .82);
  --fg: #F1F5F9; --text: #E6EBF2; --soft: #B4BFCD; --muted: #8A96A8; --faint: #6B7A90;
  --line: #22304A; --line-2: #1A2539;
  --ocean: #7FD3F7; --sky-50: rgba(63, 189, 240, .12); --sky-100: rgba(63, 189, 240, .28);
  --ok-bg: rgba(22, 163, 74, .16); --warn-bg: rgba(245, 158, 11, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .btn-dark { background: var(--sky); color: #0B1220; box-shadow: none; }
[data-theme="dark"] .btn-dark:hover { background: #7FD3F7; }
[data-theme="dark"] .btn-light:hover { border-color: #33435F; }
[data-theme="dark"] .section-dark { background: #060B15; }
[data-theme="dark"] .hero::before, [data-theme="dark"] .nf::before { opacity: .5; }
[data-theme="dark"] .chips input:checked + span { background: var(--sky); border-color: var(--sky); color: #0B1220; }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea { border-color: #33435F; }
[data-theme="dark"] .tag-ai { background: rgba(124, 58, 237, .2); color: #C4B5FD; }
[data-theme="dark"] .status-build { background: rgba(255, 78, 0, .15); color: #FF8A4C; }
/* Light islands: mockups, logo tiles and the sky CTA band keep their light palette */
[data-theme="dark"] :is(.mock, .canvas, .cta, .bp-hero-logo, .asset-view:not(.dark):not(.sky):not(.ocean),
  .clearspace, .minsize, .dont-view, .badge-view:not(.dark), .evo-old, .evo-new, .icon-grid, .pat-light, .bp-construct) {
  color-scheme: light;
  --bg: #FFFFFF; --bg-tint: #F7F8FA; --surface: #FFFFFF; --fg: #0B1220; --text: #0B1220; --soft: #3A4453;
  --muted: #667085; --faint: #98A2B3; --line: #E6E8EC; --line-2: #EFF1F4; --ocean: #0369A1;
  --sky-50: #EEF9FE; --sky-100: #D6F0FC; --ok-bg: #E8F7EE; --warn-bg: #FEF3E2;
  color: var(--text);
}
[data-theme="dark"] .cta .btn-dark { background: var(--ink); color: #fff; }
[data-theme="dark"] .cta .chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* theme toggle */
.theme-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--soft);
}
.theme-btn:hover { color: var(--fg); border-color: var(--faint); }
.theme-btn .ico { width: 18px; height: 18px; }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }
