/* SD Mac Tech AI, Design B: brand, product-grade. Light, crisp, bento. */

:root {
  --bg: #fafaf7;
  --bg-2: #f3f3ee;
  --surface: #ffffff;
  --ink: #1b1d20;
  --ink-2: #3a3e45;
  --ink-3: #5a5f68;
  --ink-4: #8b9099;
  --line: rgba(27, 29, 32, 0.08);
  --line-2: rgba(27, 29, 32, 0.14);
  --blue: #0077a8;
  --blue-h: #005f86;
  --accent: #009ee0;
  --tint: #e3f4fc;
  --tint-2: #f1f9fd;
  --green: #12805c;
  --green-tint: #e4f5ee;
  --amber: #a15c00;
  --amber-tint: #fdf1de;
  --red: #b42318;

  --font-mark: "Nunito", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --font: "Nunito Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(27, 29, 32, 0.04), 0 1px 1px rgba(27, 29, 32, 0.03);
  --shadow-2: 0 1px 2px rgba(27, 29, 32, 0.04), 0 8px 24px -8px rgba(27, 29, 32, 0.10);
  --shadow-3: 0 2px 4px rgba(27, 29, 32, 0.04), 0 24px 60px -18px rgba(16, 40, 60, 0.28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-h); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

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

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 1.0; letter-spacing: -0.035em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-3); max-width: 38em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.grad-text { color: var(--blue); }

/* ---------- Wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, #12a6e6 0%, var(--blue) 60%, #00618a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 95, 134, 0.3), 0 4px 10px -4px rgba(0, 119, 168, 0.55);
  display: grid; place-items: center;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__word { font-family: var(--font-mark); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.brand__word b { font-weight: 800; color: var(--blue); }
.brand__tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--blue);
  background: var(--tint); border-radius: 6px; padding: 3px 6px; line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; letter-spacing: -0.005em; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform 220ms var(--ease-out), background-color 160ms ease, box-shadow 200ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: translate(var(--bx), var(--by)) scale(0.97); transition-duration: 100ms; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 70, 100, 0.25), 0 6px 18px -6px rgba(0, 119, 168, 0.6);
}
.btn--primary:hover { background: var(--blue-h); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27, 29, 32, 0.24), var(--shadow-2); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14.5px; gap: 8px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { height: 56px; padding: 0 26px; font-size: 17px; }
.btn .pulse { width: 8px; height: 8px; border-radius: 50%; background: #7fe0a6; box-shadow: 0 0 0 0 rgba(127, 224, 166, 0.7); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 224, 166, 0.65); } 70%, 100% { box-shadow: 0 0 0 9px rgba(127, 224, 166, 0); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 247, 0.88); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 2px; margin-left: 12px; padding: 4px; border-radius: 999px; background: rgba(27, 29, 32, 0.04); }
.nav__links a {
  position: relative; display: block; padding: 7px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-3);
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__phone { font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.nav__phone:hover { color: var(--blue); }
.nav__menu { display: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(27, 29, 32, 0.05); cursor: pointer; place-items: center; }
.nav__menu span { display: block; width: 16px; height: 1.75px; background: var(--ink); border-radius: 2px; transition: transform 200ms var(--ease-out); }
.nav__menu span + span { margin-top: 4px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(2.9px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-2.9px) rotate(-45deg); }
.nav__sheet { display: none; }

@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__menu { display: grid; }
  .nav__sheet {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(250, 250, 247, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    transform-origin: top; opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms;
  }
  .nav__sheet.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out); }
  .nav__sheet a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; color: var(--ink); }
  .nav__sheet a[aria-current="page"] { color: var(--blue); }
  .nav__sheet a:last-child { border-bottom: 0; }
}
@media (max-width: 400px) { .brand__tag { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }
.head--split .lede { grid-column: 1; }
@media (max-width: 760px) { .head--split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 104px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(27, 29, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 29, 32, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 158, 224, 0.16), rgba(0, 158, 224, 0.05) 55%, transparent 72%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 24px; align-content: start; }
.hero__copy .h1 { max-width: 11.5em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); }
.hero__meta svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.pill b { background: var(--tint); color: var(--blue); border-radius: 999px; padding: 2px 8px; font-size: 12px; letter-spacing: 0.02em; }
.hero__stage { position: relative; display: grid; justify-items: center; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { margin-top: 8px; }
}

/* ---------- Phone mockup ---------- */
.demo { display: grid; justify-items: center; gap: 18px; width: 100%; }
.seg {
  position: relative; display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(27, 29, 32, 0.05); box-shadow: inset 0 0 0 1px var(--line);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-3);
  transition: color 180ms ease;
}
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg__thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: transform 320ms var(--ease-out), width 320ms var(--ease-out);
}

.tilt { perspective: 1200px; }
.tilt__in { transform-style: preserve-3d; transition: transform 500ms var(--ease-out); will-change: transform; }

.phone {
  --pw: min(340px, 84vw);
  position: relative; width: var(--pw); aspect-ratio: 9 / 19;
  border-radius: calc(var(--pw) * 0.155);
  padding: calc(var(--pw) * 0.032);
  background: linear-gradient(160deg, #2b2f35 0%, #16181b 45%, #24272c 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.10),
    inset 0 2px 1px rgba(255, 255, 255, 0.12),
    0 2px 4px rgba(16, 24, 32, 0.10),
    0 40px 80px -28px rgba(16, 40, 60, 0.45),
    0 18px 36px -18px rgba(16, 40, 60, 0.35);
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #2c3036;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * 0.125);
  background: linear-gradient(180deg, #f7fbfd 0%, #eef5f9 100%);
  isolation: isolate;
}
.phone__cam { position: absolute; z-index: 5; top: 2.4%; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #0e1012; box-shadow: inset 0 0 0 2px #1d2024; }
.phone__status { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 9%; display: flex; align-items: center; justify-content: space-between; padding: 0 9%; font-size: 12px; font-weight: 800; color: var(--ink); }
.phone__status i { display: inline-flex; gap: 3px; align-items: end; }
.phone__status i b { display: block; width: 3px; background: var(--ink); border-radius: 1px; }

.call { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; padding: 16% 7% 8%; text-align: center; }
.call__who { display: grid; justify-items: center; gap: 8px; }
.call__avatar {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5fd0ff, var(--accent) 45%, var(--blue) 100%);
  box-shadow: 0 8px 22px -8px rgba(0, 119, 168, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: grid; place-items: center; color: #fff; font-family: var(--font-mark); font-weight: 800; font-size: 26px;
}
.call__avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(0, 158, 224, 0.35); opacity: 0; transform: scale(0.9); }
.is-live .call__avatar::after { animation: ring 1.8s var(--ease-out) infinite; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.92); } 100% { opacity: 0; transform: scale(1.35); } }
.call__name { font-weight: 800; font-size: 19px; letter-spacing: -0.015em; }
.call__state { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.call__state .num { color: var(--blue); }
.call__title { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 4px 10px; justify-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.captions {
  position: relative; margin-top: 14px; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}
.cap { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.4; font-weight: 600; transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out); }
.cap small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }
.cap--eve { align-self: flex-start; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.cap--eve small { color: var(--blue); opacity: 1; }
.cap--caller { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.cap.is-new { opacity: 0; transform: translateY(8px); }
.cap .w { opacity: 0; transition: opacity 160ms ease; }
.cap .w.on { opacity: 1; }
.captions__empty { align-self: center; text-align: center; color: var(--ink-3); font-size: 13px; font-weight: 600; padding: 0 6%; line-height: 1.45; }

.call__controls { display: grid; justify-items: center; gap: 10px; padding-top: 14px; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--accent); transition: height 90ms linear; }
.play {
  position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -10px rgba(18, 128, 92, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}
.play:active { transform: scale(0.94); }
.play svg { width: 26px; height: 26px; }
.play .i-stop { display: none; }
.is-live .play { background: #d92d20; box-shadow: 0 10px 24px -10px rgba(217, 45, 32, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.is-live .play .i-play { display: none; }
.is-live .play .i-stop { display: block; }
.play__label { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.play:not(.is-ready) { background: var(--blue); }

/* notification banner */
.notif {
  position: absolute; z-index: 6; left: 4%; right: 4%; top: 3.2%;
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; text-align: left;
  padding: 11px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 32px -10px rgba(16, 40, 60, 0.35), 0 0 0 1px rgba(27, 29, 32, 0.06);
  transform: translateY(calc(-100% - 24px)); opacity: 0;
  transition: transform 520ms var(--ease-drawer), opacity 240ms ease;
}
.notif.is-in { transform: none; opacity: 1; }
.notif__icon { width: 30px; height: 30px; border-radius: 8px; background: var(--green); display: grid; place-items: center; color: #fff; }
.notif__icon svg { width: 17px; height: 17px; }
.notif__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; color: var(--ink-3); letter-spacing: 0.02em; text-transform: uppercase; }
.notif__title { font-size: 13px; font-weight: 800; margin-top: 1px; }
.notif__body { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.demo__float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.demo__float span.ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.demo__float span.ic svg { width: 16px; height: 16px; }
.demo__float small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.demo__float--a { left: -56%; top: 44%; }
.demo__float--b { right: -48%; bottom: 8%; }
@media (max-width: 1180px) { .demo__float { display: none; } }
.demo__note { font-size: 12.5px; color: var(--ink-3); text-align: center; max-width: 34em; }

/* ---------- Stat ribbon ---------- */
.ribbon { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; }
.ribbon > div { padding: 24px 24px 22px; display: grid; gap: 6px; align-content: start; }
.ribbon > div + div { border-left: 1px solid var(--line); }
.ribbon__n { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.ribbon__n em { font-style: normal; color: var(--blue); }
.ribbon p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.ribbon cite { font-style: normal; font-size: 12px; color: var(--ink-3); }
@media (max-width: 900px) {
  .ribbon { grid-template-columns: 1fr 1fr; }
  .ribbon > div:nth-child(3) { border-left: 0; }
  .ribbon > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .ribbon { grid-template-columns: 1fr; }
  .ribbon > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: box-shadow 260ms ease, transform 380ms var(--ease-out);
}
.card::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0, 158, 224, 0.10), transparent 60%);
  transition: opacity 300ms ease;
}
.card::after { /* spotlight border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(0, 119, 168, 0.45), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
  .card:hover::before, .card:hover::after { opacity: 1; }
  a.card:hover { transform: translateY(-3px); }
}
a.card { color: inherit; }
.card .h3, .card .h4 { color: var(--ink); }
.card p { color: var(--ink-3); font-size: 15.5px; }
.card__tag { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.card__tag svg { width: 16px; height: 16px; color: var(--blue); }
.card__foot { margin-top: auto; }
.card__vis { position: relative; margin-top: auto; }
.card--tint { background: linear-gradient(180deg, var(--tint-2), var(--surface) 70%); }
.card--ink { background: #17191c; color: #e9edf1; box-shadow: var(--shadow-2); }
.card--ink .h3, .card--ink .h4 { color: #fff; }
.card--ink p { color: #b4bcc6; }
.card--ink .card__tag { color: #9aa4af; }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4, .span-6 { grid-column: span 2; }
  .row-2 { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: auto; }
}

/* small UI bits inside cards */
.sheet { display: grid; gap: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; font-size: 13.5px; }
.sheet__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; align-items: center; }
.sheet__row + .sheet__row { border-top: 1px solid var(--line); }
.sheet__row b { font-weight: 700; color: var(--ink-2); }
.sheet__row span { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-tint); padding: 2px 8px; border-radius: 999px; }
.sheet__row span.blue { color: var(--blue); background: var(--tint); }

.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chan { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.chan svg { width: 20px; height: 20px; color: var(--blue); }
.chan { opacity: 0.35; transform: translateY(4px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.chan.on { opacity: 1; transform: none; }
.chan.on svg { color: var(--accent); }

.blocked { display: grid; gap: 6px; font-size: 13.5px; }
.blocked li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; color: var(--ink-3); }
.blocked li s { text-decoration-thickness: 1.5px; text-decoration-color: rgba(180, 35, 24, 0.7); }
.blocked li em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--red); letter-spacing: 0.03em; text-transform: uppercase; }
.blocked li.ok { color: var(--ink); }
.blocked li.ok em { color: var(--green); }

.heart { height: 56px; width: 100%; }
.heart path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-in .heart path { animation: draw 2.4s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--green-tint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: transform 300ms var(--ease-spring), box-shadow 200ms ease, color 200ms ease; }
.chip svg { width: 15px; height: 15px; color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0, 119, 168, 0.35), var(--shadow-1); color: var(--ink); } }
.card--ink .chip { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); color: #dfe5ea; }
.card--ink .chip svg { color: #5fc6f2; }

.recwave { display: flex; align-items: center; gap: 3px; height: 54px; }
.recwave i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--blue)); opacity: 0.85; transform-origin: center; }
.is-in .recwave i { animation: bob 1.6s var(--ease-in-out) infinite alternate; }
@keyframes bob { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }

/* ---------- Media placeholders ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(0, 158, 224, 0.16), transparent 60%),
    linear-gradient(160deg, #e9f2f6, #dde8ee);
  box-shadow: inset 0 0 0 1px var(--line);
}
.media::before { /* placeholder label, sits under the image */
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: 13px; font-weight: 700; color: rgba(0, 95, 134, 0.55); letter-spacing: 0.01em;
}
.media > img, .media > video { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms ease; }
.media.is-loaded > img, .media.is-loaded > video { opacity: 1; }
.media.is-missing > img, .media.is-missing > video { visibility: hidden; }
.media--dark { background: radial-gradient(120% 90% at 30% 20%, rgba(0, 158, 224, 0.28), transparent 60%), linear-gradient(160deg, #1d2329, #121518); }
.media--dark::before { color: rgba(170, 214, 235, 0.6); }
.ar-16x10 { aspect-ratio: 16 / 10; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-9x16 { aspect-ratio: 9 / 16; }
.ar-4x3 { aspect-ratio: 4 / 3; }

/* ---------- Jeeves timeline ---------- */
.tl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.tl__copy { display: grid; align-content: start; gap: 14px; min-height: 260px; }
.tl__date { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.tl__title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.tl__body { font-size: 16.5px; color: var(--ink-3); max-width: 30em; }
.tl__step { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.tl__swap { transition: opacity 220ms ease, transform 320ms var(--ease-out), filter 220ms ease; }
.tl__swap.is-out { opacity: 0; transform: translateY(6px); filter: blur(3px); }
.tl__media { position: relative; }
.tl__media .media { height: 100%; min-height: 260px; }
.tl__media .media > img { position: absolute; inset: 0; }
.tl__badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; background: rgba(15, 18, 21, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; }
.tl__track { grid-column: 1 / -1; position: relative; margin-top: 8px; padding: 28px 0 6px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.tl__track:active { cursor: grabbing; }
.tl__rail { position: relative; height: 4px; border-radius: 4px; background: rgba(27, 29, 32, 0.08); }
.tl__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--blue)); transform-origin: left; transform: scaleX(0); }
.tl__dots { position: absolute; inset: 0; }
.tl__dot { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.tl__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px rgba(27, 29, 32, 0.2); transition: box-shadow 200ms ease, transform 300ms var(--ease-spring), background-color 200ms ease; }
.tl__dot.is-past::before { box-shadow: inset 0 0 0 2px var(--blue); }
.tl__dot.is-active::before { background: var(--blue); box-shadow: 0 0 0 5px rgba(0, 158, 224, 0.2); transform: scale(1.25); }
.tl__dot span { position: absolute; top: -26px; font-size: 11.5px; font-weight: 800; color: var(--ink-3); white-space: nowrap; transition: color 200ms ease; }
.tl__dot.is-active span { color: var(--blue); }
.tl__knob { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(16, 40, 60, 0.25), inset 0 0 0 2px var(--blue); pointer-events: none; }
.tl__ends { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.tl__nav { display: flex; gap: 8px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--ink); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.iconbtn:hover { background: var(--surface); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .tl { grid-template-columns: 1fr; }
  .tl__media { order: -1; }
  .tl__copy { min-height: 0; }
  .tl__dot span { display: none; }
  .tl__dot.is-active span { display: block; }
}

.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vid { position: relative; border: 0; padding: 0; cursor: pointer; background: none; border-radius: 14px; }
.vid .media { border-radius: 14px; }
.vid__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); display: grid; place-items: center; color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); transition: transform 260ms var(--ease-spring); }
.vid__play svg { width: 18px; height: 18px; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) { .vid:hover .vid__play { transform: scale(1.08); } }
.vid.is-playing .vid__play { opacity: 0; }

.stack-list { display: grid; gap: 10px; }
.stack-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.stack-list svg { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.card--ink .stack-list li { color: #d3dae1; }
.card--ink .stack-list svg { color: #5fc6f2; }

.bignum { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: var(--ink); }
.bignum small { font-size: 0.45em; letter-spacing: -0.02em; color: var(--ink-3); }

.council { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.council li { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 700; color: #cfd6dd; }
.council li i { width: 10px; height: 10px; border-radius: 50%; background: #3b4148; transition: background-color 300ms ease, box-shadow 300ms ease; }
.council li.on i { background: #5fc6f2; box-shadow: 0 0 0 4px rgba(95, 198, 242, 0.18), 0 0 14px rgba(95, 198, 242, 0.8); }

/* ---------- Scoreboard ---------- */
.board { display: grid; gap: 0; }
.board__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; }
.board__row + .board__row { border-top: 1px solid var(--line); }
.board__name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.board__name i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--blue)); }
.pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.pips b { height: 26px; border-radius: 6px; background: rgba(27, 29, 32, 0.06); position: relative; overflow: hidden; }
.pips b::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c, var(--blue)); transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.pips b.first::after { background: linear-gradient(180deg, var(--c), color-mix(in oklab, var(--c) 70%, #000)); }
.is-in .pips b.on::after { transform: scaleY(1); }
.board__score { text-align: right; min-width: 92px; }
.board__score strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.board__score strong small { font-size: 15px; color: var(--ink-3); font-weight: 700; }
.board__score span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.board__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.board__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; background: rgba(27, 29, 32, 0.6); }
.board__legend i.lt { background: rgba(27, 29, 32, 0.25); }
@media (max-width: 560px) {
  .board__row { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .pips { grid-column: 1 / -1; grid-row: 2; }
  .pips b { height: 20px; }
}

.metric { display: grid; gap: 8px; }
.metric__ba { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.metric__from { font-size: 18px; font-weight: 700; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(27, 29, 32, 0.35); }
.metric__arrow { width: 18px; height: 18px; color: var(--ink-4); align-self: center; }
.metric__to { font-size: clamp(2.5rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: var(--ink); }
.metric__label { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--tint); transform-origin: bottom; transform: scaleY(0.02); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.bars i.hi { background: linear-gradient(180deg, var(--accent), var(--blue)); }
.is-in .bars i { transform: scaleY(var(--h)); }

.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gauge { display: grid; justify-items: center; gap: 6px; text-align: center; }
.gauge svg { width: 100%; max-width: 84px; height: auto; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 7; }
.gauge .trk { stroke: rgba(27, 29, 32, 0.07); }
.gauge .val { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 226.2; stroke-dashoffset: 226.2; transition: stroke-dashoffset 1200ms var(--ease-out); }
.gauge__n { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: -58px; height: 52px; }
.gauge__l { font-size: 12px; font-weight: 700; color: var(--ink-3); line-height: 1.3; }
@media (max-width: 420px) { .gauge__n { font-size: 17px; margin-top: -52px; height: 46px; } }

.ba { display: grid; gap: 10px; }
.ba__item { padding: 14px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ba__item small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ba__item p { font-size: 15.5px; font-weight: 700; color: var(--ink-3); line-height: 1.35; }
.ba__item--now { background: var(--tint-2); box-shadow: inset 0 0 0 1px rgba(0, 119, 168, 0.22); }
.ba__item--now small { color: var(--blue); }
.ba__item--now p { color: var(--ink); }

.checks { display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.checks li span { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: var(--green); background: var(--green-tint); }
.checks li span.todo { color: var(--amber); background: var(--amber-tint); }

/* ---------- Infrastructure toggle ---------- */
.infra { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.switch { display: inline-grid; grid-template-columns: 1fr 1fr; position: relative; padding: 5px; border-radius: 999px; background: rgba(27, 29, 32, 0.05); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; }
.switch button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--ink-3); transition: color 200ms ease; white-space: nowrap; }
.switch button[aria-pressed="true"] { color: var(--ink); }
.switch__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); transition: transform 420ms var(--ease-spring); }
.switch[data-mode="own"] .switch__thumb { transform: translateX(100%); }
.infra__panel { display: grid; gap: 16px; margin-top: 24px; }
.infra__panel[hidden] { display: none; }
.infra__panel .stack-list li { font-size: 16px; }
.infra__art { position: relative; aspect-ratio: 6 / 5; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); overflow: hidden; }
.infra__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene { transition: opacity 360ms ease, transform 520ms var(--ease-out); transform-origin: 50% 50%; }
.scene.is-off { opacity: 0; transform: scale(0.96); }
.flow { stroke-dasharray: 4 7; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
@media (max-width: 860px) { .infra { grid-template-columns: 1fr; } }

/* ---------- Industry cards ---------- */
.ind { min-height: 340px; justify-content: space-between; }
.ind__n { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--blue); }
.ind__top { display: grid; gap: 12px; }

/* ---------- Studio teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.teaser__stack { position: relative; height: 340px; }
.teaser__stack .browser { position: absolute; width: 74%; transition: transform 500ms var(--ease-out); }
.teaser__stack .browser:nth-child(1) { left: 0; top: 30px; transform: rotate(-3deg); }
.teaser__stack .browser:nth-child(2) { left: 13%; top: 10px; z-index: 2; }
.teaser__stack .browser:nth-child(3) { right: 0; top: 50px; transform: rotate(3deg); z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .teaser:hover .browser:nth-child(1) { transform: rotate(-5deg) translate(-12px, 6px); }
  .teaser:hover .browser:nth-child(3) { transform: rotate(5deg) translate(12px, 6px); }
  .teaser:hover .browser:nth-child(2) { transform: translateY(-8px); }
}
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } .teaser__stack { height: 240px; } }

/* generic browser frame */
.browser { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: #f2f3f0; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 26px; height: 6px; border-radius: 4px; background: rgba(27, 29, 32, 0.12); flex: none; }
.browser__url { flex: 1; height: 18px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.browser .media { border-radius: 0; box-shadow: none; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); padding: clamp(36px, 6vw, 80px);
  background: linear-gradient(150deg, #0a89be 0%, var(--blue) 45%, #005b80 100%);
  color: #fff; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: end;
  box-shadow: 0 30px 80px -30px rgba(0, 80, 120, 0.6);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 90% 10%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 90% 10%, #000, transparent 70%);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.86); }
.cta__phone { display: block; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: #fff; margin-top: 18px; }
.cta__phone:hover { color: #fff; opacity: 0.9; }
.cta__acts { display: grid; gap: 12px; justify-items: start; }
.cta .btn--primary { background: #fff; color: var(--blue-h); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35); }
.cta .btn--primary:hover { background: #eef8fd; color: var(--blue-h); }
.cta .btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.cta a:not(.btn):not(.cta__phone) { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Footer ---------- */
.foot { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 128px); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.foot a:hover { color: var(--blue); }
.foot__about { display: grid; gap: 14px; align-content: start; }
.foot__about p { font-size: 14.5px; color: var(--ink-3); max-width: 30em; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot__sources { margin-top: 20px; font-size: 12px; color: var(--ink-3); line-height: 1.6; max-width: 70em; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }

/* ---------- Vertical pages ---------- */
.pain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: pain; }
.pain__item { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.pain__time { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--blue); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.pain__time svg { width: 16px; height: 16px; }
.pain__item p { color: var(--ink-3); font-size: 15.5px; }
@media (max-width: 860px) { .pain { grid-template-columns: 1fr; } }

.sorter { display: grid; gap: 10px; }
.sorter__row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.sorter__row i { width: 10px; height: 10px; border-radius: 50%; }
.sorter__row em { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sorter__row.urgent i { background: var(--red); }
.sorter__row.urgent em { color: var(--red); background: #fdecea; }
.sorter__row.book i { background: var(--green); }
.sorter__row.book em { color: var(--green); background: var(--green-tint); }
.sorter__row.msg i { background: var(--accent); }
.sorter__row.msg em { color: var(--blue); background: var(--tint); }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.calc__ctl { display: grid; gap: 28px; }
.range { display: grid; gap: 12px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range label { font-weight: 800; font-size: 16px; }
.range output { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.range__hint { font-size: 13px; color: var(--ink-3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--p), rgba(27, 29, 32, 0.1) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(27, 29, 32, 0.1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(16, 40, 60, 0.3), inset 0 0 0 2px var(--blue); transition: transform 200ms var(--ease-spring); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(16, 40, 60, 0.3), inset 0 0 0 2px var(--blue); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 119, 168, 0.3), inset 0 0 0 2px var(--blue); }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.out { padding: 20px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; align-content: start; }
.out strong { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.out span { font-size: 13.5px; font-weight: 700; color: var(--ink-3); line-height: 1.35; }
.out--hero { grid-column: 1 / -1; background: var(--tint-2); box-shadow: inset 0 0 0 1px rgba(0, 119, 168, 0.2); }
.out--hero strong { color: var(--blue); font-size: clamp(2.75rem, 5vw, 3.75rem); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.vhero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .vhero__grid { grid-template-columns: 1fr; } }

/* ---------- Studio ---------- */
.cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.case { grid-column: span 3; padding: 0; gap: 0; }
.case--wide { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.case__shot { position: relative; padding: clamp(18px, 3vw, 32px) clamp(18px, 3vw, 32px) 0; background: linear-gradient(180deg, var(--tint-2), #eef4f7); overflow: hidden; }
.case--wide .case__shot { padding-bottom: clamp(18px, 3vw, 32px); }
.case__shot .browser { box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); transition: transform 600ms var(--ease-out); }
.case:not(.case--wide) .case__shot .browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (hover: hover) and (pointer: fine) { .case:hover .case__shot .browser { transform: translateY(-6px); } }
.case__mini { position: absolute; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 2vw, 24px); width: 22%; min-width: 64px; z-index: 2; }
.case__mini .phone { --pw: 100%; width: 100%; padding: 4px; border-radius: 16px; }
.case__mini .phone__screen { border-radius: 12px; }
.case__body { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 12px; align-content: start; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.case__meta span { font-size: 12px; font-weight: 800; color: var(--blue); background: var(--tint); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 860px) { .case, .case--wide { grid-column: span 6; } .case--wide { grid-template-columns: 1fr; } }

.resizer { display: grid; gap: 16px; }
.resizer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.resizer__w { font-size: 14px; font-weight: 800; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.resizer__stage { position: relative; height: clamp(460px, 62vh, 680px); border-radius: var(--r-lg); background: repeating-linear-gradient(45deg, #eef1ee 0 10px, #f5f6f2 10px 20px); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; display: flex; justify-content: center; overflow: hidden; }
.resizer__frame { position: relative; height: 100%; width: 100%; max-width: 100%; min-width: 320px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: visible; }
.resizer__frame .browser__bar { border-radius: 14px 14px 0 0; }
.resizer__frame iframe { flex: 1; width: 100%; border: 0; border-radius: 0 0 14px 14px; background: #fff; }
.resizer__handle { position: absolute; top: 50%; right: -20px; width: 20px; height: 72px; margin-top: -36px; border: 0; padding: 0; cursor: ew-resize; background: none; display: grid; place-items: center; touch-action: none; }
.resizer__handle::before { content: ""; width: 6px; height: 48px; border-radius: 6px; background: var(--ink-3); box-shadow: 0 0 0 4px rgba(250, 250, 247, 0.9); transition: background-color 160ms ease, height 200ms var(--ease-out); }
.resizer__handle:hover::before, .resizer__handle.is-drag::before { background: var(--blue); height: 60px; }
.resizer__frame.is-drag iframe { pointer-events: none; }
.resizer__frame.is-anim { transition: width 450ms var(--ease-out); }
@media (max-width: 640px) { .resizer__stage { padding: 10px; } .resizer__frame { min-width: 0; } .resizer__handle { display: none; } }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.process li { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.process li b { font-size: 13px; font-weight: 800; color: var(--blue); }
.process li p { font-size: 15px; color: var(--ink-3); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.is-in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Reduced motion & transparency ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .tilt__in, .btn, a.card, .chip, .case__shot .browser, .teaser__stack .browser { transform: none !important; }
  .heart path { stroke-dashoffset: 0; }
  .notif { transition: opacity 200ms ease; transform: none; }
  .notif:not(.is-in) { visibility: hidden; }
  .scene { transition: opacity 200ms ease; transform: none !important; }
  .tl__swap { transition: opacity 150ms ease; transform: none !important; filter: none !important; }
  .flow { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.is-scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .notif { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* timeline placeholder vignette */
.tl__ph { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; color: #8fd3f1; text-align: center; padding: 24px; }
.tl__ph svg { width: 64px; height: 64px; }
.tl__ph b { font-size: 15px; font-weight: 800; color: #e6f3fa; letter-spacing: -0.01em; }
.tl__ph[hidden] { display: none; }

/* idle caption preview */
.captions.is-preview .cap { opacity: 0.6; }
.captions__hint { align-self: center; margin-top: 6px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--tint); border-radius: 999px; padding: 6px 12px; line-height: 1.35; }

/* fixes */
.bars i { height: 100%; }
.recwave { justify-content: space-between; gap: 0; }
.recwave i { flex: 0 0 4px; border-radius: 4px; }
.board__score strong { font-size: 30px; }
.ind { min-height: 0; gap: 28px; }
.vids--two { grid-template-columns: 1fr 1fr; }
.watch { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: center; }
.watch__copy { display: grid; gap: 12px; align-content: center; }
@media (max-width: 640px) { .watch { grid-template-columns: 1fr; } }

.resizer__missing { position: absolute; inset: 30px 0 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px; background: var(--surface); border-radius: 0 0 14px 14px; color: var(--ink-3); font-size: 14px; }
.resizer__missing b { color: var(--ink); font-size: 17px; }
.resizer__missing[hidden] { display: none; }
[data-w][aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--blue), var(--shadow-1); color: var(--blue); }
.pain:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pain:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pain, .pain:has(> :nth-child(4)) { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .tl { grid-template-columns: minmax(0, 1fr); } }
.tl > * { min-width: 0; }
.captions.is-preview .cap { opacity: 0.88; }
.hero { padding-bottom: clamp(32px, 5vw, 64px); }
.vhero__grid .h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); max-width: 12.5em; }
.case--wide .case__body { align-content: center; }
.tl__media .media { width: 100%; }
@media (max-width: 760px) { .tl__media .media { height: auto; min-height: 0; } }
.board__score > span { font-size: 12.5px; }
.board__score strong .num { font-size: inherit; color: var(--ink); font-weight: 800; }
.bars i { background: rgba(0, 119, 168, 0.16); }
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.faces figure { margin: 0; display: grid; gap: 6px; }
.faces .media { border-radius: 10px; }
.faces .media::before { font-size: 11px; }
.faces figcaption { font-size: 12px; font-weight: 700; color: #9aa4af; }
