/* AISULU landing styles. Later sections override earlier ones: add new rules at the end in a marked section. */

/* ===== base ===== */
:root{color-scheme:light;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}
img{max-width:100%}
[hidden]:not([hidden=until-found i]){display:none!important}

/* Visual language follows the Apple Store: #f5f5f7 / #000 pages, white / #1d1d1f tiles, one blue, pill buttons,
   SF Pro (Inter where SF Pro is not installed). Tokens only here; the override layer is at the end of this block. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface2: #f5f5f7;
  --line: #d2d2d7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --accent: #1d1d1f;
  --accent-hover: #424245;
  --accent-fg: #ffffff;
  --accent-soft: rgba(0, 0, 0, 0.1);
  --link: #1d1d1f;
  --tag: #0066cc;
  --head: rgba(245, 245, 247, 0.8);
  --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: var(--font);
  --r: 28px;
  --r-sm: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1d1d1f;
    --surface2: #2c2c2e;
    --line: #424245;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #f5f5f7;
    --accent-hover: #aeaeb2;
    --accent-fg: #1d1d1f;
    --accent-soft: rgba(255, 255, 255, 0.18);
    --link: #f5f5f7;
    --tag: #2997ff;
    --head: rgba(22, 22, 23, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1d1d1f;
  --surface2: #2c2c2e;
  --line: #424245;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #f5f5f7;
  --accent-hover: #aeaeb2;
  --accent-fg: #1d1d1f;
  --accent-soft: rgba(255, 255, 255, 0.18);
  --link: #f5f5f7;
  --tag: #2997ff;
  --head: rgba(22, 22, 23, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* explicit root background: iOS 26 Safari falls back to it behind its toolbars */
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page { position: relative; }

/* backdrop: one tall illustration that travels slowly as the page scrolls */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bd { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }
.bd .f { fill: var(--accent); }
.bd .s { fill: none; stroke: var(--accent); }
main, footer { position: relative; z-index: 1; }

/* header: pinned to the very top edge and padded below the status bar / Dynamic Island.
   iOS 26 Safari draws the page under the status bar and only fills that strip with the header colour
   when a full-width pinned element touches the top edge; a header pinned lower leaves a see-through gap. */
.head {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--head);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* In-app browsers (Telegram, Instagram) pin the header below their own translucent bar and leave
   page content visible in the strip above it: fill everything above the header with the page colour.
   In Safari and desktop browsers this sits above the screen and is never seen. */
.head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--bg); pointer-events: none; }
.head-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { font-weight: 700; letter-spacing: 0.04em; text-decoration: none; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 0.93rem; }
.nav a:hover { color: var(--fg); background: var(--surface2); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 9px; font-size: 0.78rem; font-family: var(--mono); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.burger { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-fg);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface2); filter: none; }
.btn.sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 10px; }

/* sections */
section { padding-block: 24px; scroll-margin-top: 64px; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sec-head { max-width: 720px; margin-bottom: 24px; display: grid; gap: 12px; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* hero */
.hero { padding-block: 56px 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }
.hero .lead { margin-top: 20px; max-width: 56ch; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.fact b { font-size: 1.5rem; letter-spacing: -0.01em; color: var(--accent); }
.fact span { color: var(--muted); font-size: 0.92rem; }

/* roadmap: one line, six dots, the active dot is lit */
.nodes { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 20px; }
.nodes::before { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 21px; height: 2px; background: var(--line); }
.node { position: relative; background: transparent; border: 0; padding: 0; display: grid; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
.dot {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line); font-family: var(--mono); font-weight: 500; color: var(--muted);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.lbl { font-size: 0.86rem; color: var(--muted); overflow-wrap: anywhere; padding-inline: 4px; }
.node:hover .dot { border-color: var(--accent); color: var(--fg); }
.node[aria-pressed="true"] .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); box-shadow: 0 0 0 6px var(--accent-soft); }
.node[aria-pressed="true"] .lbl { color: var(--fg); font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.panel { display: grid; gap: 18px; }
.panel h3 { font-size: 1.35rem; }
.panel p { color: var(--muted); max-width: 70ch; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel li { position: relative; padding-left: 24px; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--accent); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.group { background: var(--surface2); border-radius: 14px; padding: 18px; display: grid; gap: 12px; align-content: start; }
.group h4 { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.sec-strip { margin-top: 16px; display: grid; gap: 10px; background: var(--surface2); }
.sec-strip h3 { font-size: 1.05rem; }
.sec-strip p { color: var(--muted); }

/* fit */
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.fit-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.fit-item b { font-size: 1.08rem; }
.fit-item p { color: var(--muted); }
.fix { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9rem; display: grid; gap: 2px; }
.fix span { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.fit-foot { margin-top: 24px; }

/* stack carousel */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track-wrap { display: flex; width: max-content; }
.track { display: flex; gap: 14px; width: max-content; padding-right: 14px; }
.tile { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); white-space: nowrap; font-weight: 500; }
.ic { width: 24px; height: 24px; display: inline-grid; place-items: center; color: var(--fg); }
.ic svg { width: 24px; height: 24px; fill: currentColor; }
.mono-ic { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.stack-note { max-width: 1120px; margin: 14px auto 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); color: var(--muted); font-size: 0.85rem; }
/* the band is moved by script: it keeps running on hover, arrows and dragging shift it */
.marq { position: relative; }
.marquee { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.marquee:active { cursor: grabbing; }
.track-wrap { will-change: transform; }
.marq-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); color: var(--muted); box-shadow: none; opacity: 0.65; transition: opacity 0.2s, color 0.2s; }
.marq-btn:hover, .marq-btn:focus-visible { opacity: 1; color: var(--fg); }
.marq-btn.prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.marq-btn.next { right: max(10px, env(safe-area-inset-right, 0px)); }
.marq-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; cursor: pointer; }
.case[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.case .detail, .case .mcta { display: none; }
.dots { display: none; justify-content: center; gap: 8px; margin-top: 12px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.55); }
.modal-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; width: min(680px, 100%); max-height: min(86vh, 760px); overflow: auto; }
.modal-x { position: absolute; top: 12px; right: 12px; }
#cmBody { display: grid; gap: 14px; }
#cmBody h3 { font-size: 1.3rem; padding-right: 40px; }
#cmBody .status { justify-self: start; }
#cmBody .detail { border-top: 0; padding-top: 0; }
.case-panel { margin-top: 16px; display: grid; gap: 14px; }
.case-panel h3 { font-size: 1.3rem; }
.case-panel .status { justify-self: start; }
.case-panel .detail { border-top: 0; padding-top: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.status { align-self: flex-start; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); border: 1px solid var(--line); }
.case h3 { font-size: 1.15rem; }
.case .sum { color: var(--muted); }
.more { background: transparent; border: 0; padding: 0; margin-top: auto; align-self: flex-start; color: var(--accent); font-weight: 600; }
.detail { margin: 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.detail dt { font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.detail dd { margin: 4px 0 0; color: var(--muted); }

/* about */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.pillar b { font-size: 1.02rem; }
.pillar span { color: var(--muted); }
.pillar .num { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.06em; }
.slogan { font-size: 1.3rem; font-weight: 600; color: var(--accent); max-width: 40ch; }
.team { margin-top: 0; display: grid; gap: 14px; }
.team h3 { font-size: 1.35rem; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 14px; align-content: start; }
.photo { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--surface2); border: 1px dashed var(--line); display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.photo svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: 0.7; }
.person b { font-size: 1.08rem; }
.person .role { color: var(--accent); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.person p { color: var(--muted); }
.team .row { margin-top: 8px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; align-items: start; }
.cdetails { display: grid; gap: 18px; align-content: start; }
.cdetails h3 { font-size: 1.1rem; }
.cd { display: grid; gap: 2px; }
.cd span { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.cd b { font-weight: 500; overflow-wrap: anywhere; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.form-msg { color: var(--fg); background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 0.9rem; background: var(--bg); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 760px) {
  section { padding-block: 18px; }
  .hero { padding-block: 40px 18px; }
  .card { padding: 20px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tools { gap: 6px; }
  .head-in { gap: 8px; }
}
@media (max-width: 560px) {
  .dot { width: 36px; height: 36px; font-size: 0.85rem; }
  .nodes::before { top: 17px; }
  .lbl { display: none; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
  .fact { padding: 12px 14px; border-radius: 14px; gap: 4px; }
  .fact b { font-size: 1.05rem; }
  .fact span { font-size: 0.76rem; line-height: 1.35; }
  .tile { padding: 8px 14px; gap: 8px; font-size: 0.85rem; border-radius: 12px; }
  .ic, .ic svg, .mono-ic { width: 18px; height: 18px; }
  .mono-ic { font-size: 0.6rem; }
  .marquee { padding-block: 12px; }
  .cases { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cases::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 88%; scroll-snap-align: start; padding: 16px; gap: 10px; cursor: default; }
  .case[aria-current="true"] { border-color: var(--line); box-shadow: none; }
  .case h3 { font-size: 1rem; }
  .case .sum { font-size: 0.88rem; }
  .case .more { display: none; }
  .case .detail { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
  .case .detail dd { font-size: 0.82rem; }
  .case .mcta { display: flex; margin-top: auto; }
  .case-panel { display: none; }
  .dots { display: flex; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pillar { padding: 14px; gap: 6px; }
  .pillar b { font-size: 0.92rem; }
  .pillar span { font-size: 0.78rem; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none; }
  .person { padding: 10px; gap: 10px; }
  .photo { aspect-ratio: 1 / 1; }
  .photo svg { width: 40px; height: 40px; }
  .person b { font-size: 0.92rem; }
  .person .role { font-size: 0.64rem; }
  .person p { font-size: 0.78rem; }
}
@media (max-width: 440px) {
  .btn.head-btn { padding: 8px 10px; font-size: 0.82rem; }
  .seg button { padding: 7px 7px; }
  .logo { font-size: 0.95rem; }
}

.more { text-decoration: none; }
.case.empty { border-style: dashed; background: transparent; cursor: default; align-items: center; justify-content: center; text-align: center; color: var(--muted); min-height: 140px; }
.chip { display: inline-block; font-family: var(--mono); font-size: 0.78rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }

/* case pages */
.case-page { padding-block: 24px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.cp-head { display: grid; gap: 14px; max-width: 840px; margin-bottom: 24px; }
.cp-head .status { justify-self: start; }
.cp-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
.proto { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.note { color: var(--muted); font-size: 0.88rem; }
.cmetrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-bottom: 24px; }
.cm { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.cm b { font-size: 1.5rem; letter-spacing: -0.01em; color: var(--accent); }
.cm span { color: var(--muted); font-size: 0.9rem; }
.cp-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.cp-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.toc, .cinfo { padding: 18px; display: grid; gap: 8px; }
.toc h4, .cinfo h4 { font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 4px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); background: var(--surface2); }
.toc a[aria-current="true"] { color: var(--fg); border-left-color: var(--accent); background: var(--surface2); font-weight: 600; }
.cinfo div { display: grid; gap: 4px; }
.cinfo span { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cinfo p { font-size: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-main { display: grid; gap: 16px; min-width: 0; }
.cp-sec { display: grid; gap: 12px; scroll-margin-top: 80px; padding: 24px; }
.cp-sec h2 { font-size: 1.45rem; }
.cp-sec p { color: var(--muted); }
.cp-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cp-sec ul li { position: relative; padding-left: 24px; }
.cp-sec ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 2px; background: var(--accent); }
.cp-sec ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.cp-sec ol li::marker { color: var(--accent); font-family: var(--mono); }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 520px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.92rem; }
.tbl thead th { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.tbl tbody th { font-weight: 600; width: 22%; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow .step { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: 0.9rem; }
.flow .step.future { border-style: dashed; color: var(--muted); }
.flow .arr { color: var(--accent); }
.cp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cp-side { position: static; }
  .toc { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; align-items: center; padding: 10px 12px; }
  .toc h4 { display: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .toc a[aria-current="true"] { border-color: var(--accent); }
  .cp-sec { padding: 18px; }
}
@media (max-width: 640px) {
  .case.empty { display: none; }
  .case .more { display: inline-block; }
  .cmetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cm { padding: 12px 14px; }
  .cm b { font-size: 1.1rem; }
  .cm span { font-size: 0.78rem; }
  .cp-sec h2 { font-size: 1.2rem; }
  .cp-foot { flex-direction: column-reverse; }
  .cp-foot .btn { width: 100%; }
}

/* mobile drawer */
.nav-close { display: none; }
.scrim { display: none; }
@media (max-width: 980px) {
  .head { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger { display: inline-grid; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(320px, 86vw); margin: 0; padding: 72px 20px 24px; flex-direction: column; gap: 4px; background: var(--surface); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s; overflow-y: auto; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; color: var(--fg); }
  .nav-close { display: inline-grid; position: absolute; top: 12px; right: 12px; }
  .nav-open .scrim { opacity: 1; visibility: visible; }
  .nav-open .nav { transform: none; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .scrim, .nav { transition: none; } }

/* card covers, gallery, lightbox */
.case .cover { margin: -22px -22px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px 18px 0 0; background: var(--surface2); }
.case .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery { display: grid; gap: 18px; }
.shot { margin: 0; display: grid; gap: 8px; }
.shot .zoom { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); cursor: zoom-in; display: block; line-height: 0; }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { color: var(--muted); font-size: 0.86rem; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.84); display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: min(1200px, 100%); max-height: 80vh; width: auto; height: auto; border-radius: 12px; background: var(--surface); }
.lightbox p { color: #ffffff; font-size: 0.9rem; text-align: center; max-width: 70ch; margin: 0; }
.lb-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px); }
@media (max-width: 640px) {
  .case .cover { margin: -16px -16px 0; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* offer: how we work, gets line, not-for line, form goal */
.hero-note { flex-basis: 100%; }
.gets { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface2); }
.gets span { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.gets b { font-weight: 700; color: var(--fg); }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 28px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.how-step .num { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.06em; }
.how-step b { font-size: 1.1rem; }
.how-step p { color: var(--muted); }
.how-sub { font-size: 1.3rem; margin-bottom: 14px; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.format { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.format b { font-size: 1.1rem; }
.format p { color: var(--muted); }
.format .btn { justify-self: start; margin-top: 4px; }
.how-note { margin-top: 16px; color: var(--muted); }
.notfor { margin: 18px 0 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.notfor b { color: var(--fg); }
.person b { display: block; font-size: 1.02rem; }
.goal { display: flex; flex-wrap: wrap; gap: 8px; }
.gopt { display: inline-flex; flex-direction: row; align-items: center; gap: 0; cursor: pointer; }
.gopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gopt span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg); font-size: 0.9rem; }
.gopt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.gopt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sys { border: 0; margin: 0; padding: 0; min-width: 0; }
.sys legend { font-size: 0.88rem; color: var(--muted); padding: 0; margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; flex-direction: row; align-items: center; cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 0.9rem; }
.chk input:checked + span { border-color: var(--accent); color: var(--fg); background: var(--accent-soft); }
.chk input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-cta { display: none; }
@media (max-width: 980px) { .nav .nav-cta { display: inline-flex; margin-top: 14px; color: var(--accent-fg); } }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.princ { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.princ b { font-size: 1.02rem; }
.princ span { color: var(--muted); }
.how-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.how-foot .how-note { margin: 0; }
@media (max-width: 640px) {
  .how-step { padding: 16px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .princ { padding: 14px; }
  .princ b { font-size: 0.92rem; }
  .princ span { font-size: 0.78rem; }
}

/* header button: same height as the language and theme controls */
.seg { height: 36px; }
.seg button { height: 100%; }
.btn.head-btn { height: 36px; padding: 0 14px; font-size: 0.85rem; border-radius: 10px; }
@media (max-width: 440px) { .btn.head-btn { padding: 0 10px; font-size: 0.8rem; } }
@media (max-width: 380px) { .logo { font-size: 0.85rem; } .seg button { padding: 0 6px; } .tools { gap: 4px; } }
@media (max-width: 980px) { .nav .nav-cta { padding: 9px 16px; font-size: 0.92rem; align-self: flex-start; } }

/* ===== Apple Store layer ===== */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.backdrop { display: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

/* header */
.head { background: var(--head); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(128, 128, 128, 0.2); }
.head-in { min-height: 52px; }
.logo { font-weight: 600; letter-spacing: -0.01em; font-size: 1.1rem; }
.logo i { width: 9px; height: 9px; background: var(--accent); }
.nav { gap: 2px; }
.nav a { font-size: 0.82rem; color: var(--fg); opacity: 0.8; padding: 8px 10px; border-radius: 980px; letter-spacing: -0.01em; }
.nav a:hover { background: transparent; color: var(--fg); opacity: 1; }
.seg { height: 32px; border: 0; padding: 2px; border-radius: 980px; background: rgba(128, 128, 128, 0.16); }
.seg button { height: 100%; font-family: var(--font); font-size: 0.75rem; font-weight: 500; padding: 0 10px; border-radius: 980px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(128, 128, 128, 0.16); }
.btn.head-btn { height: 32px; padding: 0 14px; font-size: 0.82rem; border-radius: 980px; }

/* buttons: pills */
.btn { border-radius: 980px; padding: 12px 22px; font-size: 1rem; font-weight: 400; letter-spacing: -0.022em; background: var(--accent); color: var(--accent-fg); border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--accent-hover); filter: none; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn.ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.sm { padding: 8px 16px; font-size: 0.88rem; border-radius: 980px; }
.more { color: var(--link); font-weight: 400; }

/* type */
.sec-head h2 { font-size: clamp(1.9rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.07; }
.lead { color: var(--muted); font-size: 1.2rem; line-height: 1.4; letter-spacing: -0.016em; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.5rem); max-width: 40ch; }
.hero-note { font-size: 0.88rem; font-family: var(--font); }
.slogan { color: var(--fg); font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 600; letter-spacing: -0.02em; max-width: 30ch; }
@media (min-width: 761px) { .hero { padding-block: 72px 32px; } }

/* small labels: no mono, no caps; orange tag colour like the store tiles */
.eyebrow, .group h4, .fix span, .detail dt, .pillar .num, .person .role, .cd span, .cinfo h4, .toc h4, .gets span, .how-step .num, .cinfo span, .tbl thead th {
  font-family: var(--font); text-transform: none; letter-spacing: -0.01em; font-size: 0.8rem; font-weight: 600;
}
.eyebrow, .group h4, .fix span, .detail dt, .pillar .num, .person .role, .cd span, .cinfo h4, .toc h4, .gets span, .how-step .num { color: var(--tag); }
.cinfo span { color: var(--muted); }
.tbl thead th { color: var(--fg); }
.status { font-family: var(--font); text-transform: none; letter-spacing: -0.01em; font-size: 0.8rem; font-weight: 600; background: var(--surface2); border: 0; color: var(--fg); }
.chip { font-family: var(--font); font-size: 0.8rem; background: var(--surface2); border: 0; }
.photo { font-family: var(--font); border-radius: var(--r-sm); }
.dot { font-family: var(--font); font-weight: 600; }

/* tiles: borderless, large radius */
.card, .fit-item, .case, .pillar, .person, .how-step, .format, .cm, .cp-sec, .modal-card, .fact, .princ { border: 0; border-radius: var(--r); }
.group, .gets, .flow .step { border-radius: var(--r-sm); border: 0; }
.group, .gets { background: var(--surface2); }
/* "what we do" line sits at the bottom of every pain card, so the dividers share one level in a row */
.fit-item { display: flex; flex-direction: column; }
.fit-item .fix { margin-top: auto; }
.flow .step { background: var(--surface2); }
.sec-strip { background: var(--surface); }
.princ { border-top: 0; border-radius: var(--r-sm); }
.case.empty { border: 1.5px dashed var(--line); background: transparent; }
.case .cover { border-radius: var(--r) var(--r) 0 0; }
.shot .zoom { border: 0; border-radius: var(--r-sm); }
.fact b, .cm b { color: var(--fg); font-weight: 600; text-wrap: balance; }
.fact { align-content: start; }
@media (min-width: 641px) { .fact b, .cm b { font-size: 1.9rem; letter-spacing: -0.02em; } .fact { padding: 26px 28px; } }
.panel li::before, .cp-sec ul li::before { width: 6px; height: 6px; border-radius: 50%; top: 0.75em; }
.flow .arr { color: var(--link); }
.toc a { border-radius: 980px; }
.toc a[aria-current="true"] { border-left-color: transparent; background: var(--surface2); }

/* roadmap */
.node[aria-pressed="true"] .dot { box-shadow: 0 0 0 6px var(--accent-soft); }

/* stack */
.marquee { border-block: 0; background: transparent; }
.tile { background: var(--surface); border: 0; border-radius: 980px; }

/* form */
input, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 1rem; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-msg { border: 0; border-radius: 12px; }

/* footer */
footer { font-size: 0.8rem; }

/* case page */
.cp-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
.cp-sec h2 { font-size: 1.75rem; letter-spacing: -0.02em; }

/* mobile */
@media (max-width: 980px) {
  .head { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav a { font-size: 1.5rem; font-weight: 600; padding: 10px 12px; color: var(--fg); opacity: 1; letter-spacing: -0.02em; }
  .nav .nav-cta { font-size: 1rem; font-weight: 400; color: var(--accent-fg); }
}
@media (max-width: 640px) {
  :root { --r: 22px; --r-sm: 16px; }
  body { font-size: 16px; }
  .lead { font-size: 1.05rem; }
}
@media (max-width: 440px) { .btn.head-btn { padding: 0 10px; font-size: 0.78rem; } }

/* ===== bento and live screens ===== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.stage { container-type: inline-size; position: relative; aspect-ratio: 5 / 4; width: 100%; max-width: 560px; justify-self: end; }
.stage-in { position: absolute; inset: 0; font-size: 3cqw; }
.sc { position: absolute; background: var(--surface); border-radius: 1.5em; padding: 1.1em; box-shadow: 0 1.4em 2.6em -1em rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(128, 128, 128, 0.18); }
.dash { left: 6em; top: 1em; width: 23em; height: 15em; display: flex; flex-direction: column; gap: 1em; }
.kpis { display: flex; gap: 0.8em; }
.kpi { flex: 1; background: var(--surface2); border-radius: 0.9em; padding: 0.7em; display: grid; gap: 0.5em; }
.kpi i { display: block; height: 0.45em; width: 60%; border-radius: 0.3em; background: var(--line); }
.kpi b { display: block; height: 0.9em; width: 78%; border-radius: 0.4em; background: var(--fg); }
.kpi:nth-child(2) b { width: 58%; }
.kpi:nth-child(3) b { width: 68%; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 0.55em; position: relative; }
.bars u { flex: 1; height: var(--h); background: var(--line); border-radius: 0.4em 0.4em 0.15em 0.15em; text-decoration: none; transform-origin: bottom; }
.bars u:nth-of-type(8) { background: var(--accent); }
.spark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark polyline { fill: none; stroke: var(--tag); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chat { left: 0; top: 10.5em; width: 14.5em; height: 13em; display: flex; flex-direction: column; gap: 0.6em; }
.sdots { display: flex; gap: 0.35em; margin-bottom: auto; }
.sdots i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--line); }
.bub { display: block; height: 1.45em; width: var(--w); border-radius: 0.9em; background: var(--surface2); }
.bub.out { align-self: flex-end; background: var(--accent); }
.sflow { left: 16.5em; top: 17.5em; width: 16.5em; height: 7.5em; display: flex; align-items: center; justify-content: space-between; }
.nd { width: 2.8em; height: 2.8em; border-radius: 0.9em; background: var(--surface2); display: grid; place-items: center; color: var(--fg); flex: none; }
.nd.on { background: var(--accent); color: var(--accent-fg); }
.nd svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sflow em { flex: 1; height: 0.16em; background: var(--line); margin: 0 0.3em; border-radius: 0.1em; }
.ring { left: 26em; top: 12.2em; width: 6em; height: 6em; border-radius: 50%; padding: 0.7em; display: grid; place-items: center; }
.ring svg { width: 100%; height: 100%; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ring .r0 { stroke: var(--line); }
.ring .r1 { stroke: var(--tag); stroke-dasharray: 70 88; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring path { stroke: var(--fg); stroke-width: 2.6; }
@media (prefers-reduced-motion: no-preference) {
  .sc { animation: fl 8s ease-in-out infinite; }
  .chat { animation-duration: 9s; animation-delay: -2.5s; }
  .sflow { animation-duration: 10s; animation-delay: -5s; }
  .ring { animation-duration: 7s; animation-delay: -1s; }
  .bars u { animation: gr 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .bars u:nth-of-type(2) { animation-delay: 60ms; } .bars u:nth-of-type(3) { animation-delay: 120ms; } .bars u:nth-of-type(4) { animation-delay: 180ms; }
  .bars u:nth-of-type(5) { animation-delay: 240ms; } .bars u:nth-of-type(6) { animation-delay: 300ms; } .bars u:nth-of-type(7) { animation-delay: 360ms; }
  .bars u:nth-of-type(8) { animation-delay: 420ms; } .bars u:nth-of-type(9) { animation-delay: 480ms; }
  .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
  .rv.in { opacity: 1; transform: none; }
}
@keyframes fl { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.55em); } }
@keyframes gr { from { transform: scaleY(0.15); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* mini graphics */
.vm { fill: var(--line); } .va { fill: var(--accent); } .vt { fill: var(--tag); } .vf { fill: var(--surface2); }
.vl { stroke: var(--line); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.vs { stroke: var(--tag); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vk { stroke: var(--muted); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fvis { display: block; margin-bottom: 12px; }
.fvis svg { display: block; height: 34px; width: auto; }
.vis { display: block; margin-bottom: 6px; }
.vis svg { display: block; height: 64px; width: auto; max-width: 100%; }

/* bento: pain cards */
.fit-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fit-item.s2 { grid-column: span 2; }
.fit-item.s4 { grid-column: span 4; }
.fit-item.s6 { grid-column: span 6; }
.fit-item { padding: 24px; }

/* steps and principles with icons */
.hs-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface2); display: grid; place-items: center; color: var(--fg); margin-bottom: 4px; }
.hs-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.hs-ic.sm svg { width: 18px; height: 18px; }
.princ { background: var(--surface); }
.princ .hs-ic { background: var(--surface2); }

@media (max-width: 980px) {
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit-item.s2 { grid-column: span 1; }
  .fit-item.s4, .fit-item.s6 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stage { justify-self: center; max-width: 440px; }
}
@media (max-width: 640px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .fit-item.s2, .fit-item.s4, .fit-item.s6 { grid-column: auto; }
  .fvis { margin-bottom: 8px; }
  .fvis svg { height: 26px; }
  .vis svg { height: 52px; }
  .princ .hs-ic.sm { width: 26px; height: 26px; border-radius: 8px; }
  .princ .hs-ic.sm svg { width: 15px; height: 15px; }
}

/* ===== smaller bordered tiles with an accent line, icon cards ===== */
.facts { margin-top: 32px; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact, .fit-item, .how-step { border: 1px solid var(--line); border-radius: 14px; }
.fact:hover, .fit-item:hover, .how-step:hover { border-color: var(--muted); }
.fact { padding: 14px 16px 16px; gap: 4px; }
@media (min-width: 641px) { .fact { padding: 14px 16px 16px; } .fact b, .cm b { font-size: 1.45rem; } }
.fvis { margin-bottom: 8px; }
.fvis svg { height: 24px; }
.fact span:last-child { font-size: 0.88rem; }
.fit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fit-item.s2, .fit-item.s4, .fit-item.s6 { grid-column: auto; }
.fit-item { padding: 18px 18px 16px; gap: 8px; }
.fit-item b { font-size: 1rem; }
.fit-item p { font-size: 0.92rem; line-height: 1.45; }
.fit-item .hs-ic { margin-bottom: 2px; }
.how-step { padding: 18px; gap: 6px; }
.how-step b, .princ b { font-size: 1rem; }
.how-step p, .princ span { font-size: 0.92rem; line-height: 1.45; }
.hs-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.how-step .hs-ic { margin-bottom: 0; }
.how-step .num { font-family: var(--font); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--muted); text-transform: none; }
@media (max-width: 900px) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .fact { padding: 12px 12px 12px; }
  .fit-item { border-radius: 14px; }
  .how-step { padding: 14px; }
  .how-step .num { font-size: 1.6rem; }
}

/* ===== phones ===== */
@media (max-width: 640px) {
  .btn { padding: 10px 17px; font-size: 0.88rem; }
  .btn.sm { padding: 7px 13px; font-size: 0.82rem; }
  .hero-cta { gap: 8px; }
  .how-steps { display: flex; overflow-x: auto; gap: 10px; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .how-steps::-webkit-scrollbar { display: none; }
  .how-step { flex: 0 0 74%; }
  .how-foot { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fit-item { padding: 12px; gap: 6px; }
  .fit-item .hs-ic { width: 30px; height: 30px; border-radius: 9px; }
  .fit-item .hs-ic svg { width: 17px; height: 17px; }
  .fit-item b { font-size: 0.86rem; line-height: 1.25; }
  .fit-item p { font-size: 0.76rem; line-height: 1.4; }
  .fit-item .fix { font-size: 0.74rem; padding-top: 8px; }
  .fit-item .fix span { font-size: 0.7rem; }
}

/* ===== menu drawer ===== */
.nav-top { display: none; }
@media (max-width: 980px) {
  .nav { width: min(290px, 80vw); padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px); gap: 0; background: var(--surface); border-left: 1px solid var(--line); }
  .nav-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .nav-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
  .nav-brand i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
  .nav-close { position: static; width: 30px; height: 30px; }
  .nav-close svg { width: 15px; height: 15px; }
  .nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--fg); opacity: 1; }
  .nav a:not(.btn)::after { content: ""; width: 7px; height: 7px; border-top: 1.8px solid var(--muted); border-right: 1.8px solid var(--muted); transform: rotate(45deg); margin-right: 3px; }
  .nav .nav-cta { margin-top: auto; align-self: stretch; justify-content: center; padding: 10px 16px; font-size: 0.9rem; }
}

/* ===== phones, second pass: small illustration beside the buttons, smaller step cards ===== */
@media (max-width: 640px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 40%; grid-template-areas: "h h" "l l" "c s"; gap: 12px 10px; align-items: center; }
  .hero-copy { display: contents; }
  .hero h1 { grid-area: h; }
  .hero .lead { grid-area: l; margin-top: 0; }
  .hero-cta { grid-area: c; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
  .hero-grid .stage { grid-area: s; max-width: none; width: 100%; justify-self: end; margin: 0; }
  .how-step { flex: 0 0 60%; padding: 12px; gap: 4px; }
  .how-step .hs-ic { width: 30px; height: 30px; border-radius: 9px; }
  .how-step .hs-ic svg { width: 17px; height: 17px; }
  .how-step .num { font-size: 1.35rem; }
  .hs-top { gap: 10px; margin-bottom: 4px; }
  .how-step b, .princ b { font-size: 0.86rem; line-height: 1.25; }
  .how-step p, .princ span { font-size: 0.76rem; line-height: 1.4; }
}

/* phones, readability pass: body text at least 14px, labels at least 12.5px, "who it's for" cards share row lines */
@media (max-width: 640px) {
  .fit-item { padding: 14px; }
  .fit-item b { font-size: 0.98rem; line-height: 1.25; }
  .fit-item p { font-size: 0.88rem; line-height: 1.4; }
  .fit-item .fix { font-size: 0.86rem; line-height: 1.3; }
  .fit-item .fix span { font-size: 0.78rem; }
  .how-step { flex: 0 0 68%; padding: 14px; gap: 6px; }
  .how-step b, .princ b { font-size: 1rem; line-height: 1.25; }
  .how-step p, .princ span { font-size: 0.9rem; line-height: 1.4; }
  .princ { padding: 14px; }
  .fact span { font-size: 0.88rem; }
  .status { font-size: 0.85rem; }
  .person p, p.sum { font-size: 0.92rem; }
  .person .role, .gets span { font-size: 0.8rem; }
  .tile { font-size: 0.92rem; }
  .seg button { font-size: 0.8rem; }
  .btn.head-btn { font-size: 0.82rem; }
  .cm span, .cinfo span, .cinfo h4, .chip, .tbl thead th { font-size: 0.86rem; }
  figcaption { font-size: 0.88rem; }
}
.fit-item .ft { display: grid; gap: 8px; align-content: start; }
@media (max-width: 640px) {
  .fit-item .ft { gap: 6px; }
  .fit-item .fix { display: grid; align-content: center; margin-top: 0; }
  @supports (grid-template-rows: subgrid) {
    .fit-item { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-content: stretch; }
  }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* logo: "AI" knocked out of a graphite tile, then "sulu" */
.logo, .nav-brand { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.logo .lg, .nav-brand .lg { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); flex: none; }
.logo .lg b, .nav-brand .lg b { color: var(--accent-fg); font-size: 0.86rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.logo .lw, .nav-brand .lw { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 640px) { .logo .lg { width: 26px; height: 26px; border-radius: 7px; } .logo .lg b { font-size: 0.76rem; } .logo .lw { font-size: 1.15rem; } }
.cd b a { color: inherit; text-decoration: none; }
@media (min-width: 901px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo.has-img { border: 0; display: block; overflow: hidden; padding: 0; }
.person .photo { aspect-ratio: 3 / 4; }
@media (min-width: 901px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 641px) {
  .person { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; row-gap: 14px; align-items: center; align-content: start; padding: 22px; border-radius: 28px; }
  .person .photo { grid-column: 1; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; }
  .photo.has-img img { object-position: 50% 18%; }
  .person b { grid-column: 2; grid-row: 1; align-self: end; font-size: 1.15rem; }
  .person .role { grid-column: 2; grid-row: 2; align-self: start; display: block; font-size: 0.78rem; }
  .person p { grid-column: 1 / -1; grid-row: 3; font-size: 0.95rem; line-height: 1.5; }
}
.person .pg { display: block; height: 8px; }
@media (max-width: 640px) {
  .people { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .person { display: grid; grid-template-columns: 38% minmax(0, 1fr); column-gap: 14px; row-gap: 4px; grid-template-rows: auto auto 1fr; align-items: start; padding: 14px; }
  .person .photo { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; }
  .person b { grid-column: 1; grid-row: 2; margin-top: 6px; }
  .person .role { grid-column: 1; grid-row: 3; display: block; }
  .person p { grid-column: 2; grid-row: 1 / span 3; font-size: 0.9rem; line-height: 1.42; }
}
.photo.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.msgrs { display: flex; gap: 10px; margin-top: 6px; }
.msgr { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--fg); border: 1px solid var(--line); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.msgr svg { width: 22px; height: 22px; fill: currentColor; }
.msgr:hover, .msgr:focus-visible { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.cd b a:hover { text-decoration: underline; }

/* text runs the full width of its block in "Solutions" and "About" */
.panel p { max-width: none; }
#about .sec-head, #about .lead, #about .slogan { max-width: none; }

/* "Open case" and "Discuss your task" links sit on the right of their cards */
.more, .ptag { align-self: flex-end; text-align: right; }

/* products: four cards in two rows, a swipe carousel on phones */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.prod:hover { border-color: var(--muted); }
.prod .hs-ic { margin-bottom: 2px; }
.prod b { font-size: 1rem; line-height: 1.25; }
.prod p { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.ptag { margin-top: auto; padding-top: 10px; font-size: 0.82rem; color: var(--muted); }
a.ptag { color: var(--link); font-weight: 500; text-decoration: none; }
a.ptag:hover { text-decoration: underline; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .prod-grid { display: flex; overflow-x: auto; gap: 10px; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .prod-grid::-webkit-scrollbar { display: none; }
  .prod { flex: 0 0 68%; padding: 14px; }
  .prod .hs-ic { width: 30px; height: 30px; border-radius: 9px; }
  .prod .hs-ic svg { width: 17px; height: 17px; }
  .prod p { font-size: 0.9rem; line-height: 1.4; }
  .ptag { font-size: 0.8rem; }
}

/* phones: the request form comes before the contact details */
@media (max-width: 760px) { .contact-grid .form { order: -1; } }

/* ===== phones: header keeps logo, CTA and burger; language and theme move into the drawer ===== */
.nav-tools { display: none; }
@media (max-width: 640px) {
  .tools > .seg, .tools > .theme-btn { display: none; }
  .tools { gap: 10px; }
  .head-in { gap: 12px; }
  .logo { font-size: 1.05rem; }
  .btn.head-btn { height: 36px; padding: 0 16px; font-size: 0.85rem; }
  .tools .burger { width: 36px; height: 36px; }
  .nav-tools { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
  .nav-tools .seg { flex: 1; height: 36px; }
  .nav-tools .seg button { flex: 1; font-size: 0.8rem; }
  .nav-tools .icon-btn { flex: none; width: 36px; height: 36px; }
}

/* ===== consent line under the form, footer link, no-script fallback ===== */
.consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 0.86rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; border-radius: 4px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }
.ns { padding-block: 40px; display: grid; gap: 12px; }
.ns h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: 22ch; }
.ns p { color: var(--muted); max-width: 60ch; }

/* ===== stack: brand marks shown as pictures ===== */
.ic img { width: 24px; height: 24px; display: block; object-fit: contain; border-radius: 6px; }
@media (max-width: 640px) { .ic img { width: 18px; height: 18px; border-radius: 5px; } }
