/* ───────── Tokens ───────── */
:root {
  --ink: #000000;
  --ink-soft: #4A4A4A;
  --paper: #FFFFFF;
  --paper-2: #FFF2F7;
  --line: #ECECEC;

  /* Brand palette: "Extracted colors" sheet, Gradients page in Figma */
  --yellow-1: #E3A70D; --yellow-2: #FFF5AA; --yellow-3: #FFFF00;
  --green-1: #A6D229;
  --blue-1: #4EADFF; --blue-2: #3FB6FF; --blue-3: #61F0EA; --blue-4: #6AFFE4; --blue-5: #77F4DE; --blue-6: #AAFFD6;
  --purple-1: #868BFF; --purple-2: #86A1E9; --purple-3: #9A7FFF;
  --pink-1: #FF7BAB; --pink-2: #D80182; --pink-3: #E676F0; --pink-4: #FA3B80;
  --orange-1: #FC9671; --orange-2: #F66E43; --orange-3: #FAAF3B; --orange-4: #FBA453; --orange-5: #FBA84A;

  /* The four gradient families from the Figma gradient shapes */
  --grad-iridescent: linear-gradient(135deg, var(--yellow-2) 0%, var(--blue-6) 30%, var(--purple-2) 65%, var(--pink-3) 100%);
  --grad-cool: linear-gradient(135deg, var(--blue-6) 0%, var(--blue-2) 45%, var(--purple-3) 100%);
  --grad-sunny: linear-gradient(135deg, var(--yellow-3) 0%, var(--orange-3) 50%, var(--pink-1) 100%);
  --grad-rosy: linear-gradient(135deg, var(--orange-4) 0%, var(--pink-1) 45%, var(--pink-2) 100%);

  /* Short aliases used throughout the stylesheet */
  --pink: var(--pink-1);
  --pink-deep: var(--pink-2);
  --orchid: var(--pink-3);
  --purple: var(--purple-1);
  --lilac: var(--purple-3);
  --blue: var(--blue-1);
  --mint: var(--blue-4);
  --orange: var(--orange-4);
  --yellow: var(--yellow-2);
  --green: var(--green-1);

  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --font-head: "Merriweather", Georgia, serif;
  --font-hand: "Over the Rainbow", "Comic Sans MS", cursive;

  /* Frosted glass, shared by the header and every white surface */
  --glass-bg: color-mix(in srgb, #fff 60%, transparent);
  --glass-blur: blur(12px);

  --radius: 22px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(134, 139, 255, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(60rem 40rem at 110% -10%, #FFE2ED 0%, transparent 60%),
    radial-gradient(50rem 40rem at -20% 20%, #E4E5FF 0%, transparent 60%),
    var(--paper);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 1rem; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 99px; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* Logo as a mask, so the script logo can take any color or gradient */
.logo-mask {
  display: block;
  -webkit-mask: url("assets/logo.svg") center / contain no-repeat;
          mask: url("assets/logo.svg") center / contain no-repeat;
  background: var(--ink);
}

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-logo .logo-mask { width: 88px; height: 48px; }
.nav ul { list-style: none; display: flex; gap: clamp(.75rem, 2.5vw, 2rem); margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav ul a:not(.nav-cta):hover { color: var(--pink-deep); }
.nav-cta { background: var(--ink); color: #fff !important; padding: .4rem 1rem; border-radius: 99px; }
.nav-cta:hover { background: var(--pink-deep); }
@media (max-width: 560px) {
  .nav ul li:nth-child(2), .nav ul li:nth-child(3) { display: none; }
}

/* ───────── Hero ───────── */
/* Hero fills the first screen (minus the sticky nav, ~73px) with its content centered.
   svh = the "small" viewport height, so mobile browser toolbars don't push it off-screen. */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  padding: 3rem 1rem;
  max-width: 52rem; margin: 0 auto;
}
/* Gradient blobs from the Figma social banners, behind the hero content.
   The layer is full-bleed (100vw) even though the hero itself is centered and narrower. */
.hero { isolation: isolate; }
.hero-blobs {
  position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  overflow: hidden;
}
.hero-blob { position: absolute; height: auto; will-change: transform; }
.hero-blob-warm { width: min(44vw, 600px); left: -5vw; top: 4%; animation: drift-warm 14s ease-in-out infinite; }
.hero-blob-cool { width: min(36vw, 480px); right: -3vw; bottom: 2%; animation: drift-cool 17s ease-in-out infinite; }
/* Each cluster wanders its own loop, so they never move in lockstep */
@keyframes drift-warm {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate(5vw, 4vh) rotate(14deg) scale(1.1); }
  66%      { transform: translate(-2vw, 7vh) rotate(-8deg) scale(.94); }
}
@keyframes drift-cool {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  40%      { transform: translate(-6vw, -5vh) rotate(-16deg) scale(1.12); }
  75%      { transform: translate(-2vw, 3vh) rotate(10deg) scale(.95); }
}
/* Individual shapes inside each cluster wobble on their own, on top of the cluster's drift.
   Each shape rotates/scales around its own center (transform-box: fill-box). */
.blob-piece { transform-box: fill-box; transform-origin: center; animation: wobble-a 9s ease-in-out infinite; }
.piece-2 { animation: wobble-b 11s ease-in-out -2s infinite; }
.piece-3 { animation: wobble-c 13s ease-in-out -5s infinite; }
.piece-4 { animation: wobble-b 10s ease-in-out -7s infinite reverse; }
.piece-5 { animation: wobble-a 12s ease-in-out -3s infinite reverse; }
@keyframes wobble-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate(34px, -26px) rotate(12deg) scale(1.08); }
}
@keyframes wobble-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate(-30px, 20px) rotate(-10deg) scale(.94); }
  66%      { transform: translate(22px, 30px) rotate(8deg) scale(1.06); }
}
@keyframes wobble-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate(-24px, -34px) rotate(-14deg) scale(1.1); }
}
@media (max-width: 560px) {
  .hero-blob-warm { width: 80vw; left: -22vw; top: -2%; }
  .hero-blob-cool { width: 70vw; right: -18vw; bottom: 0; }
}

.hero-logo {
  width: min(30rem, 86vw);
  aspect-ratio: 482 / 261;
  background: var(--ink);
}
.hero-title {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-top: .5rem;
}
.hero-lede { text-wrap: balance; max-width: 38rem; margin-top: 1.25rem; color: var(--ink-soft); font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.hero-actions { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.scribble {
  font-family: var(--font-hand); font-size: 1.6rem; color: var(--pink-deep);
  margin-top: 2.5rem; transform: rotate(-3deg);
}
/* Figma "Header Charm" clusters (used beside the contact heading) */
.charm { width: clamp(4.5rem, 14vw, 9rem); height: auto; flex-shrink: 0; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }

/* ───────── Brand glyphs ─────────
   Each glyph SVG (cut from the Figma Glyphs page) is used as a mask,
   so it can be painted any brand color or gradient via `background`. */
.glyph {
  display: inline-block; width: 1em; height: 1em; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
          mask: var(--glyph) center / contain no-repeat;
}
.g-moon       { --glyph: url("assets/glyphs/moon.svg"); }
.g-moon-small { --glyph: url("assets/glyphs/moon-small.svg"); }
.g-moon-tiny  { --glyph: url("assets/glyphs/moon-tiny.svg"); }
.g-star-1     { --glyph: url("assets/glyphs/star-1.svg"); }
.g-star-2     { --glyph: url("assets/glyphs/star-2.svg"); }
.g-star-3     { --glyph: url("assets/glyphs/star-3.svg"); }
.g-star-4     { --glyph: url("assets/glyphs/star-4.svg"); }
.g-star-5     { --glyph: url("assets/glyphs/star-5.svg"); }
.g-tag        { --glyph: url("assets/glyphs/tag.svg"); }
.g-arrow-r    { --glyph: url("assets/glyphs/arrow-r.svg"); }
.g-brace-l    { --glyph: url("assets/glyphs/brace-l.svg"); }
.g-brace-r    { --glyph: url("assets/glyphs/brace-r.svg"); }

@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .55; } }


/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 99px; border: 2px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--pink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
.btn-ghost { background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.btn-ghost:hover { background: var(--yellow); }
.btn-big { font-size: clamp(1rem, 3vw, 1.25rem); padding: 1rem 2rem; }


/* ───────── NDA note ───────── */
.nda-note {
  display: flex; gap: 1rem; align-items: flex-start;
  max-width: 46rem; margin: 0 auto 2.5rem; padding: 1.25rem 1.5rem;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1.5px dashed var(--pink);
  border-radius: var(--radius); font-size: 1rem; color: var(--ink-soft);
}
/* Icon is vertically centered on the heading's first line: (line height − icon size) / 2 */
.nda-icon { font-size: 1.5rem; color: var(--purple-3); margin-top: calc((1.6rem * 1.1 - 1.5rem) / 2); }
.nda-heading { font-family: var(--font-hand); font-size: 1.6rem; color: var(--ink); line-height: 1.1; margin-bottom: .25rem; }

/* ───────── Sections ───────── */
.section { max-width: 72rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.eyebrow { text-wrap: balance; font-family: var(--font-hand); font-size: 1.5rem; color: var(--pink-deep); }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-style: italic; }


/* ───────── Work grid ───────── */
.work-grid {
  display: grid; gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: var(--radius);
  border: 1.5px solid var(--line); box-shadow: var(--shadow);
  position: relative; overflow: hidden; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* The title link covers the whole card, so the card stays one big click target */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--purple-1); outline-offset: 4px; }
.card:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 20px 40px -16px rgba(134, 139, 255, .45); }
.card-art {
  position: relative; padding: clamp(1rem, 4%, 1.75rem);
  background: var(--art);
  flex: 1; display: flex; align-items: center;
}
.card-art .mock { width: 100%; }
.card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.card-info { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.card-sector { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-2); }
.card h3 { font-size: 1.35rem; }
.card-blurb { color: var(--ink-soft); font-size: 1rem; }
.card-more { font-weight: 700; font-size: .95rem; color: var(--pink-deep); margin-top: .25rem; }

/* ───────── Services ───────── */
.services { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.service {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: var(--radius); padding: 1.5rem;
  border: 1.5px solid var(--line);
}
.service h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service p { font-size: 1rem; color: var(--ink-soft); }

/* ───────── Process ───────── */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
/* 4 steps: 1 column on phones, an even 2×2 at medium widths, 1 row of 4 on wide screens */
@media (min-width: 560px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li { padding: 1.5rem; border-radius: var(--radius); background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1.5px solid var(--line); }
.step-num { font-family: var(--font-hand); font-size: 2.2rem; color: var(--pink-2); line-height: 1; }
.process h3 { font-size: 1.15rem; margin: .5rem 0; font-style: italic; }
.process p { font-size: 1rem; color: var(--ink-soft); }

/* ───────── Contact & footer ───────── */
.contact {
  max-width: 44rem; margin: clamp(4rem, 10vw, 7rem) auto 0; padding: 3rem clamp(1rem, 4vw, 3rem);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: 40px; border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--lilac);
  margin-inline: max(1rem, calc((100% - 44rem) / 2));
}
.contact { position: relative; }
.contact .scribble { margin: 0; }
.contact h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-style: italic; }
.contact p { color: var(--ink-soft); }
.contact-head { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.contact-head .charm { width: clamp(3rem, 9vw, 5rem); }
.contact-head .charm:last-child { animation-delay: -3s; }
@media (max-width: 560px) { .contact-head .charm { display: none; } }

/* Footer: the main illustrated logo (gradient version, from Figma) */
.footer { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem 1rem 3rem; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.footer-logo { width: min(10rem, 45vw); height: auto; }

/* ───────── Contact page ───────── */
.contact-page { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) 0; }
.contact-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-style: italic; }
.contact-intro { color: var(--ink-soft); margin-top: .75rem; text-wrap: balance; }
.contact-form {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lilac);
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: 1rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border-radius: 14px;
  border: 1.5px solid #CFCFCF; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--purple-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple-1) 35%, transparent); }
.field [aria-invalid="true"] { border-color: var(--pink-2); }
.field-error { color: var(--pink-2); font-size: .9rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.captcha:not(:empty) { min-height: 78px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: var(--pink-2); }
.form-status.is-success { color: #1F7A4D; }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.thanks { text-align: center; }
.thanks-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ───────── Case study dialog ───────── */
.case {
  width: min(64rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 2px solid var(--ink); border-radius: 28px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--ink);
  box-shadow: 10px 10px 0 var(--pink);
}
.case::backdrop { background: rgba(0, 0, 0, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.case[open] { animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.case-close {
  position: sticky; top: .75rem; float: right; margin: .75rem .75rem 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.case-close:hover { background: var(--yellow); }
.case-art { padding: clamp(1rem, 4vw, 2.5rem); background: var(--art); }
.case-content { padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: 2rem; }
@media (min-width: 820px) { .case-content { grid-template-columns: 1fr 16rem; } }
.case-content h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-style: italic; margin: .5rem 0 1rem; }
.case-content h3 { font-family: var(--font-hand); font-size: 1.6rem; color: var(--pink-deep); font-weight: 400; margin: 1.5rem 0 .25rem; }
.case-content ul { padding-left: 1.2rem; margin: 0; }
.case-content li { margin-bottom: .35rem; }
.case-side { display: flex; flex-direction: column; gap: 1rem; font-size: .95rem; }
.case-side dl { margin: 0; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; }
.case-side dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-top: .75rem; }
.case-side dt:first-child { margin-top: 0; }
.case-side dd { margin: 0; }
.case-disclaimer { font-size: .85rem; color: var(--ink-soft); background: var(--paper-2); border-radius: 12px; padding: .75rem 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .charm, .hero-blob, .blob-piece, .case[open] { animation: none; }
  .card:hover { transform: none; }
}

/* ═════════ MOCKUPS ═════════
   Every mockup sizes in `em`, and its base font-size is set in container
   query units, so the same markup scales like a screenshot. */
.mock { container-type: inline-size; position: relative; z-index: 1; }
.frame {
  font-size: 2.2cqi; line-height: 1.35;
  background: #fff; border-radius: 1em; overflow: hidden;
  box-shadow: 0 1.2em 2.5em -1em rgba(0, 0, 0, .35);
  font-family: var(--font-body); color: #000000;
}
.frame-bar { display: flex; align-items: center; gap: .35em; padding: .6em .9em; background: #F6F6F6; border-bottom: 1px solid #ECECEC; }
.frame-bar i { width: .65em; height: .65em; border-radius: 50%; background: #FF7BAB; }
.frame-bar i:nth-child(2) { background: #FAAF3B; }
.frame-bar i:nth-child(3) { background: #6AFFE4; }
.frame-url { margin-left: .8em; font-size: .75em; color: #6B6B6B; background: #fff; padding: .15em .9em; border-radius: 99px; }
.frame-body { display: flex; min-height: 26em; }
.m-side { width: 11em; flex-shrink: 0; padding: 1em .8em; background: #FAFAFA; border-right: 1px solid #EEEEEE; font-size: .85em; }
.m-main { flex: 1; padding: 1em 1.2em; display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.m-label { font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6B6B6B; }
.m-h { font-weight: 700; font-size: 1.1em; }
.m-row { display: flex; gap: .7em; }
.m-tile { flex: 1; background: #F8F8F8; border: 1px solid #EEEEEE; border-radius: .7em; padding: .6em .8em; }
.m-tile b { display: block; font-size: 1.4em; }
.m-panel { background: #fff; border: 1px solid #EEEEEE; border-radius: .8em; padding: .8em; }
.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .45em; vertical-align: .05em; }
.m-list { list-style: none; padding: 0; margin: .5em 0 0; display: flex; flex-direction: column; gap: .25em; }
.m-list li { padding: .35em .5em; border-radius: .45em; display: flex; align-items: center; }
.m-list li.on { background: #E4E5FF; font-weight: 700; }
.m-pill { display: inline-block; font-size: .75em; font-weight: 700; padding: .15em .6em; border-radius: 99px; background: #E4E5FF; color: #000000; }

/* telemetry trace */
.trace { display: flex; flex-direction: column; gap: .35em; font-size: .8em; }
.trace-row { display: grid; grid-template-columns: 7em 1fr; align-items: center; gap: .5em; }
.trace-bar { height: 1.1em; border-radius: .35em; margin-left: var(--l); width: var(--w); background: var(--c); }

/* a11y */
.check { display: flex; justify-content: space-between; padding: .4em .2em; border-bottom: 1px dashed #ECECEC; font-size: .85em; }
.check s { color: #6B6B6B; }
.ring { width: 6.5em; height: 6.5em; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#A6D229 0 94%, #EEEEEE 0); }
.ring span { width: 5.2em; height: 5.2em; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1em; text-align: center; line-height: 1.1; }

/* design system */
.swatch { width: 2.6em; height: 2.6em; border-radius: .6em; }
.ds-btn { font-size: .85em; font-weight: 700; padding: .5em 1.1em; border-radius: 99px; border: 2px solid #000000; }
.ds-input { border: 1.5px solid #D6D6D6; border-radius: .6em; padding: .5em .7em; font-size: .85em; color: #6B6B6B; flex: 1; }
.ds-toggle { width: 2.6em; height: 1.5em; border-radius: 99px; background: #868bff; position: relative; }
.ds-toggle::after { content: ""; position: absolute; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; top: .2em; right: .2em; }




@media (max-width: 520px) {
  .m-side { display: none; }
  .frame { font-size: 3cqi; }
}
