/* Nixtla Brand Center. Values come from the Paper file "Nixtla - Master",
   page brand.nixtla.io. Light is the default; dark is set by the head script
   from the saved choice or the system setting. */

/* Inter 4 variable with the optical-size axis: large type gets the Display cut, as in the design. */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-opsz.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'NixtlaDot16'; font-weight: 400; font-display: swap; src: url(/assets/fonts/NixtlaDot16-Regular.woff2) format('woff2'); }

:root {
  --bg: #F6F4F0;
  --fg: #222121;
  --muted: #7B7A78;
  --line: #EAE9E6;
  --control: #C7C6C2;
  --rule: #222121;
  --card: #FFFFFF;
  --swatch-line: #DEDCD7;
  --callout: #EAE9E6;
  --primary: #222121;
  --primary-fg: #F6F4F0;
  --ink-panel: #222121;
  --avatar: #6D65AE;

  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pixel: 'NixtlaDot16', var(--mono);
  --gutter: 64px;
  /* Side padding of every full-width band: at least the gutter, and wide
     enough to keep content within 1280px. Borders still run edge to edge. */
  --max: 1280px;
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2));
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #171614;
  --fg: #F6F4F0;
  --muted: #A39E96;
  --line: #34312D;
  --control: #34312D;
  --rule: #34312D;
  --card: #201F1D;
  --swatch-line: #34312D;
  --callout: #2E2B27;
  --primary: #F6F4F0;
  --primary-fg: #171614;
  --ink-panel: #201F1D;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/22px var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  font-optical-sizing: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid #505D98; outline-offset: 2px; }

/* Signed-in-only and signed-out-only blocks. The head script sets the class
   before first paint, so neither layout flashes. */
html:not(.signed-in) [data-auth='in'],
html.signed-in [data-auth='out'] { display: none !important; }

/* ---- type ---------------------------------------------------------------- */

.label {
  font: 400 12px/16px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.display { font: 300 52px/58px var(--sans); letter-spacing: -0.02em; margin: 0; }
.lead { font-size: 18px; line-height: 28px; margin: 0; }
.h2 { font: 300 28px/34px var(--sans); letter-spacing: -0.01em; margin: 0; }
.h3 { font: 300 24px/30px var(--sans); letter-spacing: -0.01em; margin: 0; }
.body { font-size: 15px; line-height: 22px; margin: 0; }
.small { font-size: 12px; line-height: 17px; margin: 0; }
.code { font: 400 13px/16px var(--mono); }

/* ---- nav ----------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--pad);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand .wordmark { height: 24px; width: auto; }
.brand .divider { width: 1px; height: 20px; background: var(--control); }
.nav-links { display: flex; align-items: center; gap: 24px; }
html:not(.signed-in) .nav-links { gap: 32px; }
.nav-links a { font-size: 15px; line-height: 18px; white-space: nowrap; }
.nav-links a:hover { text-decoration: underline 1px; text-underline-offset: 6px; }
.nav-links a[aria-current='page'] { font-weight: 500; text-decoration: underline 1px; text-underline-offset: 6px; }
.nav-more { position: relative; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 18px; }
.nav-more-btn svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-more-btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.nav-more-btn:hover, .nav-more-btn[aria-current='page'] { text-decoration: underline 1px; text-underline-offset: 6px; }
.nav-more-btn[aria-current='page'] { font-weight: 500; }
.dropdown {
  position: absolute; top: calc(100% + 16px); left: -16px; z-index: 10;
  min-width: 220px; padding: 8px 0;
  background: var(--card); border: 1px solid var(--control);
  box-shadow: 0 12px 32px rgba(23, 22, 20, 0.14);
  display: flex; flex-direction: column;
}
:root[data-theme='dark'] .dropdown { background: #2E2B27; border-color: #4C463F; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
:root[data-theme='dark'] .dropdown a:hover, :root[data-theme='dark'] .dropdown-row:hover { background: #34312D; }
.dropdown-right { left: auto; right: 0; top: calc(100% + 12px); min-width: 240px; }
.dropdown[hidden] { display: none; }
.dropdown a, .dropdown-row { padding: 10px 16px; font-size: 15px; line-height: 18px; text-align: left; }
.dropdown a:hover, .dropdown-row:hover { background: var(--bg); text-decoration: none; }
.dropdown-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.dropdown-row svg { width: 16px; height: 16px; }
.dl-menu { position: relative; }
.dl-menu .dropdown { top: calc(100% + 6px); min-width: 230px; }
.dl-menu .dropdown a { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.dl-menu .dropdown a .muted { font-size: 13px; }
.dropdown-id { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 18px; }
.dropdown-id .muted { font-size: 13px; overflow-wrap: anywhere; }
.user-menu { position: relative; }
.avatar-btn { display: inline-flex; border-radius: 999px; }
.avatar-btn[aria-expanded='true'] .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }
.theme-label-dark, :root[data-theme='dark'] .theme-label-light { display: none; }
:root[data-theme='dark'] .theme-label-dark { display: inline; }
.account { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--control);
  flex-shrink: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.sign-out { font-size: 14px; line-height: 18px; color: var(--muted); }
.sign-out:hover { color: var(--fg); }
.avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--avatar); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 13px/16px var(--sans);
  flex-shrink: 0;
}
.google-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: #FFFFFF; color: #222121;
  border: 1px solid #C7C6C2;
  font: 500 14px/18px var(--sans);
  white-space: nowrap;
}
.google-btn svg { width: 16px; height: 16px; }
.theme-icon-dark, :root[data-theme='dark'] .theme-icon-light { display: none; }
:root[data-theme='dark'] .theme-icon-dark { display: block; }
.menu-btn, .mobile-only { display: none; }

/* Mobile menu: a full-screen sheet under the bar. */
.menu {
  position: fixed; inset: 0; z-index: 20;
  background: var(--bg);
  display: none; flex-direction: column;
  overflow-y: auto;
}
.menu.open { display: flex; }
.menu-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.menu-bar .wordmark { height: 18px; width: auto; }
.menu-links { display: flex; flex-direction: column; padding: 0 16px; }
.menu-links a { font: 300 24px/30px var(--sans); padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-links a[aria-current='page'] { font-weight: 400; }
.menu-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.menu-user { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.menu-user .avatar { width: 36px; height: 36px; }
body.menu-open { overflow: hidden; }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--control);
  font-size: 14px; line-height: 18px;
  white-space: nowrap;
}
.btn:hover { border-color: var(--fg); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); font-weight: 500; }
.btn-primary:hover { opacity: 0.9; border-color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 18px; white-space: nowrap; }
.link-dl svg { width: 12px; height: 12px; }
.link-dl:hover { text-decoration: underline 1px; text-underline-offset: 4px; }

/* Segmented control: size / format / logo-position pickers */
.seg { display: inline-flex; border: 1px solid var(--control); }
.seg button {
  padding: 8px 14px;
  font-size: 14px; line-height: 18px;
  border-left: 1px solid var(--control);
  white-space: nowrap;
}
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed='true'] { background: var(--primary); color: var(--primary-fg); }
.seg.mono button { font: 400 12px/16px var(--mono); padding: 9px 12px; }

/* ---- page head ----------------------------------------------------------- */

.hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 64px;
  padding: 96px var(--pad) 64px;
}
.hero .display { max-width: 820px; }
.hero-kicker { display: none; }
.hero-aside { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }

.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 64px;
  padding: 96px var(--pad) 72px;
}
.page-head .crumb { display: inline-flex; color: var(--muted); }
.page-head .crumb:hover { color: var(--fg); }
.page-head-title { display: flex; flex-direction: column; gap: 24px; }
.page-head-aside { width: 440px; flex-shrink: 0; padding-bottom: 10px; }

/* Toolbar band under the page head (filters, pickers, download all) */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toolbar-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toolbar-group + .toolbar-group { margin-left: 18px; }
.toolbar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ---- numbered sections --------------------------------------------------- */

.section {
  display: flex; gap: 48px;
  padding: 48px var(--pad);
  border-top: 1px solid var(--line);
}
.section:last-child { padding-bottom: 120px; }
.section-aside { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.section-aside .num { color: var(--muted); }
.section-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---- home ---------------------------------------------------------------- */

.tiles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px; row-gap: 56px;
  padding: 56px var(--pad) 120px;
}
.tile { display: flex; flex-direction: column; gap: 20px; }
.tile-art { height: 280px; background: var(--card); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile-text { display: flex; flex-direction: column; gap: 6px; }
.tile:hover .h3 { text-decoration: underline 1px; text-underline-offset: 5px; }
.tile-art.photo { background: center / cover no-repeat; }
.tile-art .wordmark { width: 212px; }
.swatch-grid i { display: block; }
.swatch-grid { display: grid; align-items: stretch; justify-items: stretch; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; border: 1px solid var(--swatch-line); background: none; }
.type-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; }
.type-tile .t1 { font: 300 52px/56px var(--sans); letter-spacing: -0.03em; }
.type-tile .t2 { font: 400 44px/52px var(--mono); letter-spacing: -0.02em; }
.type-tile .t3 { font: 400 48px/52px var(--pixel); }
.icon-row { display: flex; gap: 36px; }
.icon-row svg { width: 48px; height: 48px; }
.logo-wall { flex-direction: column; gap: 20px; padding: 40px 36px; align-items: stretch; }
.logo-wall-row { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.logo-wall-row span { width: 100px; display: flex; justify-content: center; }
.logo-wall-row img { max-width: 100px; height: auto; }
.platforms { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.platforms-head { display: flex; flex-direction: column; gap: 10px; }
.platforms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.meet-art { flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 22px; }
.meet-art img { width: 94px; }
.meet-art .label { font-size: 11px; line-height: 14px; color: #FFFFFF; opacity: 0.8; }
.li-art .banner { width: 512px; max-width: 80%; aspect-ratio: 4 / 1; background: center / cover no-repeat; position: relative; }
.li-art .banner img { position: absolute; right: 16px; bottom: 14px; width: 94px; }

/* ---- logo page ----------------------------------------------------------- */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair-item { display: flex; flex-direction: column; gap: 16px; }
.logo-stage { height: 240px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; }
.logo-stage.dark { background: #222121; }
:root[data-theme='dark'] .logo-stage.dark { background: #201F1D; }
.logo-stage .wordmark { width: 235px; }
.logo-stage .mark { width: 88px; }

/* ---- colour page --------------------------------------------------------- */

.ramp-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ramp-head .name { font-size: 18px; line-height: 24px; }
.ramp-head .code { color: var(--muted); font-size: 12px; }
.ramp { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.swatch { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.swatch .chip { height: 72px; border: 1px solid transparent; }
.ramp.tall .chip { height: 120px; }
.swatch .chip.edge { border-color: var(--swatch-line); }
.swatch .step { font: 400 11px/14px var(--mono); }
.swatch .hex { font: 400 11px/14px var(--mono); color: var(--muted); }
.swatch:hover .hex { color: var(--fg); }
.swatch.copied .hex { color: var(--fg); }
.ramps { display: flex; flex-direction: column; gap: 40px; }
.rules { border-top: 1px solid var(--rule); }
.rule-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rule-row .k { font-size: 16px; line-height: 22px; }
.rule-row .v { font-size: 15px; line-height: 22px; }
.status { display: flex; gap: 24px; flex-wrap: wrap; }
.status span { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/16px var(--mono); letter-spacing: 0.04em; }
.status i { width: 20px; height: 20px; display: inline-block; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg);
  padding: 10px 16px; font: 400 12px/16px var(--mono); letter-spacing: 0.04em;
  opacity: 0; transition: opacity .15s; pointer-events: none; z-index: 30;
}
.toast.show { opacity: 1; }

/* ---- typography page ----------------------------------------------------- */

.dl-stack { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; width: 260px; }
.dl-stack .btn { padding-block: 10px; }
.dl-stack .btn-primary { padding-block: 11px; }
.dl-stack .small { padding-bottom: 6px; }
.specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.specimen { background: var(--card); height: 420px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.specimen-top { display: flex; justify-content: space-between; color: var(--muted); }
.specimen-top .weights { font: 400 12px/16px var(--mono); }
.specimen .big-sans { font: 300 96px/100px var(--sans); letter-spacing: -0.04em; }
.specimen .big-mono { font: 400 64px/100px var(--mono); letter-spacing: -0.04em; }
.specimen .weights-list { display: flex; flex-direction: column; gap: 6px; font-size: 22px; line-height: 30px; }
.specimen pre { margin: 0; font: 400 15px/24px var(--mono); }
.scale-row { display: flex; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.scale-row:last-child { border-bottom: 0; }
.scale-row .token { width: 160px; flex-shrink: 0; }
.scale-row .metric { width: 110px; flex-shrink: 0; color: var(--muted); }
.scale-row .sample { min-width: 0; overflow-wrap: anywhere; }
.pixel-panel { background: var(--ink-panel); color: #F6F4F0; height: 300px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.pixel-panel .label, .pixel-panel .cap { color: #B8A79F; }
.pixel-panel .big { font: 400 96px/96px var(--pixel); }
.pixel-panel .cap { font-size: 15px; line-height: 18px; }

/* ---- textures / meet / linkedin ----------------------------------------- */

.gallery { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 40px; padding: 48px var(--pad) 120px; }
.shot { display: flex; flex-direction: column; gap: 14px; }
.gallery[data-shape='square'] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery[data-shape='tall'] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery[data-shape='tall'] .shot-meta, .gallery[data-shape='square'] .shot-meta { flex-direction: column; align-items: flex-start; gap: 8px; }

.shot img { width: 100%; height: auto; aspect-ratio: var(--ratio, 16 / 9); object-fit: cover; background: var(--line); }
.shot-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shot-name { display: flex; align-items: baseline; gap: 10px; font: 300 20px/26px var(--sans); }
.shot-name .label { font-size: 10px; color: var(--muted); }
.btn-sm { padding: 6px 12px; font-size: 12px; line-height: 16px; gap: 6px; }
.btn-sm svg { width: 11px; height: 11px; }

.feature { display: grid; grid-template-columns: 1fr 304px; gap: 48px; padding: 48px var(--pad) 0; }
.feature-art { position: relative; aspect-ratio: 16 / 9; background: var(--line); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.safe-box { position: absolute; inset: 32px; border: 1px dashed rgba(255,255,255,.55); }
.safe-box .label { position: absolute; right: 12px; bottom: 10px; color: rgba(255,255,255,.8); font-size: 11px; }
.steps { display: flex; flex-direction: column; gap: 24px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; font-size: 15px; line-height: 22px; }
.steps li .label { color: var(--muted); padding-top: 2px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; row-gap: 28px; padding: 64px var(--pad) 120px; }
.thumbs .shot { gap: 12px; }
.thumbs .shot-name { font: 400 15px/18px var(--sans); }

.li-feature { padding: 48px var(--pad) 0; display: flex; flex-direction: column; gap: 0; }
.li-profile { background: var(--card); position: relative; }
.li-profile .cover { width: 100%; aspect-ratio: 1584 / 396; object-fit: cover; display: block; }
.li-profile.company .cover { aspect-ratio: 1128 / 191; }
/* the photo straddles the cover's bottom edge, as on LinkedIn; --cover-h is set by app.js */
.li-profile { --photo: 206px; }
.li-profile .photo { position: absolute; left: 3%; width: var(--photo); aspect-ratio: 1; border-radius: 999px; background: var(--line); border: 4px solid var(--card); top: calc(var(--cover-h, 290px) - var(--photo) * 0.57); }
.li-profile .lines { padding: calc(var(--photo) * 0.58) 3% 32px; display: flex; flex-direction: column; gap: 14px; }
.li-profile .lines i { display: block; height: 14px; background: var(--line); }
.li-steps { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; padding: 36px 0 0; }
.li-steps .step { display: grid; grid-template-columns: 36px 1fr; font-size: 15px; line-height: 21px; }
.li-steps .step .label { color: var(--muted); }
.li-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 28px; padding: 48px var(--pad) 120px; }
.li-grid .shot img { aspect-ratio: var(--ratio, 4 / 1); }
.li-grid .shot-name { font: 400 15px/18px var(--sans); }

/* ---- icons page ---------------------------------------------------------- */

.search { display: flex; align-items: center; gap: 10px; width: 420px; max-width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--control); background: var(--card); }
.search svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; background: none; outline: none; flex: 1; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.icon-cell { background: var(--card); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; position: relative; }
.icon-cell .glyph { width: 28px; height: 28px; background: var(--fg); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.icon-cell .name { font: 400 10px/13px var(--mono); color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.icon-cell:hover .name { color: var(--fg); }
.illus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px; }
.illus-cell { background: var(--card); display: flex; flex-direction: column; gap: 14px; padding: 24px; align-items: center; }
.illus-cell .glyph { width: 72px; height: 72px; background: var(--fg); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.empty { padding: 32px 0; color: var(--muted); }

/* ---- client logos -------------------------------------------------------- */

.notice { margin: 32px var(--pad) 0; background: var(--callout); border-left: 2px solid var(--fg); padding: 18px 20px; font-size: 15px; line-height: 22px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px var(--pad) 64px; }
.logo-card { background: var(--card); display: flex; flex-direction: column; }
.logo-card .art { height: 150px; display: flex; align-items: center; justify-content: center; padding: 24px 40px; border-bottom: 1px solid var(--line); }
.logo-card .art img { max-width: 100%; height: auto; }
.logo-card .art .white, :root[data-theme='dark'] .logo-card .art .ink { display: none; }
:root[data-theme='dark'] .logo-card .art .white { display: block; }
.logo-card .meta { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 14px; gap: 12px; }
.logo-card .meta .name { font-size: 14px; line-height: 18px; }
.dark-strip-section { border-top: 1px solid var(--line); padding: 48px var(--pad) 120px; display: flex; flex-direction: column; gap: 20px; }
.dark-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.dark-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #222121; }
:root[data-theme='dark'] .dark-strip { background: #201F1D; border: 1px solid var(--line); }
.dark-strip span { height: 120px; display: flex; align-items: center; justify-content: center; border-left: 1px solid #2E2B27; padding: 24px 40px; }
.dark-strip span:first-child { border-left: 0; }
.dark-strip img { max-width: 100%; height: auto; }

/* ---- footer -------------------------------------------------------------- */

.footer { display: flex; justify-content: space-between; padding: 32px var(--pad); border-top: 1px solid var(--line); font-size: 14px; line-height: 18px; color: var(--muted); }
.footer a:hover { color: var(--fg); }
.footer { align-items: center; }
.footer-right { display: flex; align-items: center; gap: 24px; }
.theme-btn { color: var(--fg); }
.theme-btn svg { width: 16px; height: 16px; }

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  html.signed-in .nav-links, html:not(.signed-in) .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 1240px) {
  :root { --gutter: 40px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .hero, .page-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-aside, .page-head-aside { width: auto; max-width: 560px; }
  .section { flex-direction: column; gap: 28px; }
  .section-aside { width: auto; }
  .feature { grid-template-columns: 1fr; }
  .li-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .nav { padding: 14px 16px; }
  .brand .wordmark { height: 18px; }
  .brand .divider, .brand .label { display: none; }
  .account { gap: 18px; }
  .account .icon-btn { border: 0; width: 22px; height: 22px; }
  .account .icon-btn svg { width: 20px; height: 20px; }
  .account .google-btn { display: none; }
  .account .mobile-only { display: inline-flex; }
  .menu-btn { width: 22px; height: 22px; }
  .hero { padding: 48px 16px 40px; gap: 16px; }
  .hero-kicker { display: block !important; font-size: 11px; line-height: 14px; }
  .hero .hero-aside .hero-label { display: none; }
  .display { font-size: 36px; line-height: 42px; }
  .lead { font-size: 16px; line-height: 24px; }
  .page-head { padding: 40px 16px 40px; }
  .tiles { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding: 0 16px 56px; }
  .tile { gap: 12px; }
  .tile-art { height: 200px; }
  .tile .h3 { font-size: 22px; line-height: 28px; }
  .type-tile { padding: 20px; gap: 7px; }
  .type-tile .t1 { font-size: 37px; line-height: 40px; }
  .type-tile .t2 { font-size: 31px; line-height: 37px; }
  .type-tile .t3 { font-size: 34px; line-height: 37px; }
  .platforms-grid, .pair, .specimens, .gallery, .li-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery[data-shape='square'], .gallery[data-shape='tall'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .li-art .banner { max-width: 100%; }
  .li-art { padding: 0; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .logo-card .art { padding: 20px; height: 120px; }
  .logo-card .meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dl-menu .dropdown { right: auto; left: 0; }
  .seg { max-width: 100%; overflow-x: auto; }
  .toolbar-left { min-width: 0; max-width: 100%; }
  .dark-strip { grid-template-columns: 1fr 1fr; }
  .dark-strip span:nth-child(3) { border-left: 0; }
  .ramp { grid-template-columns: repeat(6, 1fr); row-gap: 14px; }
  .rule-row { grid-template-columns: 1fr; gap: 6px; }
  .scale-row { flex-wrap: wrap; gap: 6px 16px; }
  .scale-row .sample { flex-basis: 100%; }
  .specimen { height: auto; min-height: 340px; }
  .specimen .big-sans { font-size: 72px; line-height: 80px; }
  .thumbs { grid-template-columns: 1fr 1fr; gap: 16px; }
  .li-steps { grid-template-columns: 1fr; gap: 16px; }
  .li-profile { --photo: 96px; }
  .toolbar-group + .toolbar-group { margin-left: 0; }
  .footer { padding: 24px 16px; font-size: 13px; }
  .footer .site-link { display: none; }
  .theme-btn { padding: 8px 12px; font-size: 13px; }
}
