
  /* Trial cut ships Medium only, so every weight maps to it; Geist covers any glyph it lacks */
  @font-face {
    font-family: "ABC Diatype";
    src: url("/assets/fonts/ABCDiatype-Medium-Trial.otf") format("opentype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }
  :root {
    --bg: #f4f4f4;
    --surface: #ffffff;
    --ink: #14140f;
    --muted: #74746f;
    --faint: rgba(0, 0, 0, 0.45);
    --fill-1: rgba(0, 0, 0, 0.03);
    --fill-2: rgba(0, 0, 0, 0.05);
    --fill-3: rgba(0, 0, 0, 0.09);
    --fill-4: rgba(0, 0, 0, 0.13);
    --danger: #e53e3e;
    --font: "ABC Diatype", "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --on-ink: #ffffff;
    --icon: rgba(0, 0, 0, 0.55);
    --overlay: rgba(20, 20, 15, 0.75);
    --logo-ink: #383434;
    --line: rgba(0, 0, 0, 0.1);
    --track: rgba(0, 0, 0, 0.05);
    --pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.14);
    --thumb: #14140f;
    --on-thumb: #ffffff;
    --nav-text: #525252;
    --nav-strong: #161616;
    --nav-active: #dedede;
    --nav-hover: #f7f7f7;
    --nav-rule: #e0e0e0;
    --nav-accent: #a8a8a8;
    --doc-bg: #ffffff;
    --doc-card: #f4f4f4;
    --doc-text: #525252; /* same as the menu text */
    --doc-ink: #161616;
    --doc-muted: #525252;
    --doc-caption: #74746f;
    --doc-rule: #e0e0e0;
    --doc-link: #0f62fe;
    --doc-media: #e0e0e0;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1e1e1e;
      --surface: #2c2c2c;
      --ink: #e6e6e6;
      --muted: #8c8c8c;
      --faint: #6d6d6d;
      --fill-1: rgba(255, 255, 255, 0.03);
      --fill-2: rgba(255, 255, 255, 0.06);
      --fill-3: rgba(255, 255, 255, 0.1);
      --fill-4: rgba(255, 255, 255, 0.16);
      --on-ink: #1e1e1e;
      --icon: #8c8c8c;
      --overlay: rgba(0, 0, 0, 0.7);
      --logo-ink: #e6e6e6;
      --line: #333333;
      --track: #333333;
      --pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.45), 0 24px 56px rgba(0, 0, 0, 0.55);
      --thumb: #4d4d4d;
      --on-thumb: #e6e6e6;
      --nav-text: #8c8c8c;
      --nav-strong: #e6e6e6;
      --nav-active: #3a3a3a;
      --nav-hover: #333333;
      --nav-rule: #3a3a3a;
      --nav-accent: #e6e6e6;
      --doc-bg: #2c2c2c;
      --doc-card: #363636;
      --doc-text: #e6e6e6;
    --doc-ink: #e6e6e6;
      --doc-ink: #e6e6e6;
      --doc-muted: #8c8c8c;
    --doc-caption: #8c8c8c;
      --doc-caption: #8c8c8c;
      --doc-rule: #3a3a3a;
      --doc-link: #e6e6e6;
      --doc-media: #3a3a3a;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1e1e1e;
    --surface: #2c2c2c;
    --ink: #e6e6e6;
    --muted: #8c8c8c;
    --faint: #6d6d6d;
    --fill-1: rgba(255, 255, 255, 0.03);
    --fill-2: rgba(255, 255, 255, 0.06);
    --fill-3: rgba(255, 255, 255, 0.1);
    --fill-4: rgba(255, 255, 255, 0.16);
    --on-ink: #1e1e1e;
    --icon: #8c8c8c;
    --overlay: rgba(0, 0, 0, 0.7);
    --logo-ink: #e6e6e6;
    --line: #333333;
    --track: #333333;
    --pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.45), 0 24px 56px rgba(0, 0, 0, 0.55);
    --thumb: #4d4d4d;
    --on-thumb: #e6e6e6;
    --nav-text: #8c8c8c;
    --nav-strong: #e6e6e6;
    --nav-active: #3a3a3a;
    --nav-hover: #333333;
    --nav-rule: #3a3a3a;
    --nav-accent: #e6e6e6;
    --doc-bg: #2c2c2c;
    --doc-card: #363636;
    --doc-text: #e6e6e6;
    --doc-muted: #8c8c8c;
    --doc-rule: #3a3a3a;
    --doc-link: #e6e6e6;
    --doc-media: #3a3a3a;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background .2s, color .2s;
  }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  input { font: inherit; }

  /* ---------- Notification bar ---------- */
  .notice {
    flex: none; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 36px; padding: 8px 48px;
    background: #D62BF4; color: #000;
    font-size: 13px; line-height: 18px; text-align: center;
  }
  .notice[hidden] { display: none; }
  .notice a { color: inherit; text-underline-offset: 3px; }
  .notice a:hover { color: #000; }
  .notice__tag {
    flex: none; padding: 1px 8px; border-radius: 100px;
    background: #000; color: #fff; font-size: 11px; letter-spacing: 0.3px;
  }
  .notice__close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 100px;
    display: grid; place-items: center; color: #000;
  }
  .notice__close:hover { color: #000; background: rgba(0, 0, 0, 0.1); }
  .notice__close svg { width: 12px; height: 12px; }

  /* ---------- Header ---------- */
  .topbar {
    height: 56px;
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 8px 0 20px;
  }
  .topbar__side { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
  .logo { display: flex; color: var(--logo-ink); }
  /* Sized by the wordmark; the magenta accent hangs above and to the right without moving the layout */
  .logo svg { height: 17px; width: auto; display: block; overflow: visible; margin-right: 14px; }
  .site-name {
    display: flex; align-items: center; gap: 14px; margin-left: 14px;
    font-size: 17px; font-weight: 500; letter-spacing: -0.2px; white-space: nowrap; color: #000; text-decoration: none;
  }
  :root[data-theme-resolved="dark"] .site-name { color: var(--logo-ink); }
  .site-name::before { content: ""; width: 1px; height: 18px; background: currentColor; opacity: .3; }

  .segmented {
    position: relative;
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 100px;
    background: var(--track);
  }
  .segmented__thumb {
    position: absolute;
    top: 3px;
    height: 30px;
    border-radius: 999px;
    background: var(--thumb);
    transition: left .25s cubic-bezier(.3,.7,.2,1), width .25s cubic-bezier(.3,.7,.2,1);
  }
  .segmented button {
    position: relative;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.07px;
    color: var(--muted);
    transition: color .2s;
  }
  .segmented button:hover { color: var(--ink); }
  .segmented button[aria-selected="true"] { color: var(--on-thumb); }
  .topbar__side--end { justify-content: flex-end; gap: 8px; }

  /* Centered search field on desktop; the icon button takes over on mobile */
  .header-search {
    position: relative;
    flex: 0 1 480px; min-width: 0; margin: 0 16px;
    display: flex; align-items: center; gap: 8px;
    height: 32px; padding: 0 10px 0 12px; border-radius: 100px;
    background: var(--fill-3); color: var(--muted);
    transition: background .15s, box-shadow .15s;
  }
  .header-search:hover { background: var(--fill-4); }
  .header-search:focus-within { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .header-search svg { flex: none; width: 16px; height: 16px; }
  .header-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
    font-size: 13px; color: var(--ink);
  }
  .header-search input::placeholder { color: var(--muted); }
  .header-search:focus-within .kbd { display: none; }
  .header-search__list {
    position: absolute; z-index: 70; top: calc(100% + 8px); left: 0; right: 0;
    margin: 0; padding: 8px; list-style: none;
    max-height: min(60vh, 420px); overflow-y: auto;
    border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--pop-shadow);
  }
  .header-search__list[hidden] { display: none; }
  #search-btn { display: none; }
  .theme-btn {
    width: 36px; height: 36px;
    border-radius: 100px;
    background: var(--track);
    color: var(--ink);
    display: grid; place-items: center;
    transition: background .15s;
  }
  .theme-btn:hover { background: var(--fill-3); }
  .theme-btn svg { width: 18px; height: 18px; display: block; }
  .theme-btn .icon-sun { display: none; }
  :root[data-theme-resolved="dark"] .theme-btn .icon-sun { display: block; }
  :root[data-theme-resolved="dark"] .theme-btn .icon-moon { display: none; }
  .menu-btn { display: none; }
  .scrim { display: none; }

  /* Header icon buttons share the theme button's shape */
  .theme-btn[aria-expanded="true"] { background: var(--thumb); color: var(--on-thumb); }
  .kbd {
    font-size: 11px; padding: 1px 6px; border-radius: 4px;
    border: 1px solid var(--line); color: var(--muted);
  }

  /* ---------- Site switcher ---------- */
  .apps { position: relative; }
  .apps__panel {
    position: absolute; z-index: 70; top: calc(100% + 8px); right: 0;
    width: 300px; max-height: calc(100vh - 120px); overflow-y: auto;
    padding: 8px; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--pop-shadow);
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity .15s, transform .15s;
  }
  .apps__panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .apps__group + .apps__group { margin-top: 8px; }
  .apps__label {
    margin: 0; padding: 10px 12px 6px;
    font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted);
  }
  .apps__title {
    display: flex; justify-content: space-between;
    margin: 0 4px 4px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line);
    font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none;
  }
  .apps__title span { color: var(--muted); }
  .apps__title:hover span { color: var(--ink); }
  .apps__item {
    display: flex; align-items: center; gap: 12px;
    min-height: 36px; padding: 7px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  }
  .apps__item:hover, .apps__item:focus-visible { background: var(--fill-3); outline: none; }
  .apps__item span { flex: 1; min-width: 0; }
  .apps__item small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--muted); }
  .apps__item svg { flex: none; width: 14px; height: 14px; color: var(--muted); }
  .apps__item[aria-current="page"] svg { color: var(--ink); }

  /* ---------- Search palette ---------- */
  .palette {
    position: fixed; inset: 0; z-index: 80;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 12vh 16px 16px;
    background: rgba(0, 0, 0, 0.4);
  }
  .palette[hidden] { display: none; }
  .palette__box {
    width: min(560px, 100%); overflow: hidden;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  }
  .palette__field { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
  .palette__field svg { width: 18px; height: 18px; flex: none; }
  .palette__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
  .palette__field input::placeholder { color: var(--muted); }
  .palette__list { list-style: none; margin: 0; padding: 8px; max-height: min(50vh, 420px); overflow-y: auto; }
  .palette__item {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 9px 12px; border-radius: 8px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--ink);
  }
  .search-result__heading { display: flex; align-items: baseline; gap: 10px; }
  .palette__item small { font-size: 12px; font-weight: 400; color: var(--muted); }
  .search-result__snippet { font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .palette__item[aria-selected="true"] { background: var(--track); }
  .palette__empty { padding: 20px 12px; font-size: 14px; color: var(--muted); }


  /* ---------- Workspace ---------- */
  .workspace { flex: 1; min-height: 0; display: flex; }

  .sidebar {
    flex: none;
    width: 280px;
    margin: 0 8px 8px 8px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width .25s cubic-bezier(.3,.7,.2,1);
  }
  .menu {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .nav { padding-top: 16px; }
  .nav__rule { margin: 8px 16px 8px; border: 0; border-top: 1px solid var(--nav-rule); }
  .nav__item {
    position: relative;
    width: 100%;
    display: flex; align-items: center; gap: 8px;
    height: 32px;
    padding: 0 16px;
    text-align: left;
    font-size: 14px; line-height: 18px; font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--nav-text);
    transition: background .11s, color .11s;
  }
  .nav__item:hover { background: var(--nav-hover); color: var(--nav-strong); }
  .nav__item--child { padding-left: 32px; font-size: 12px; font-weight: 400; letter-spacing: 0.1px; line-height: 16px; }
  .nav__item[aria-expanded="true"] { color: var(--nav-strong); }
  .nav__item[aria-current="page"] { background: var(--nav-active); color: var(--nav-strong); font-weight: 500; }
  .nav__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav__chevron { width: 16px; height: 16px; flex: none; transition: transform .15s; }
  .nav__item[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
  .nav__children {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .2s cubic-bezier(.2,0,.38,.9);
  }
  .nav__children.is-open { grid-template-rows: 1fr; }
  .nav__children > div { min-height: 0; overflow: hidden; }

  /* ---------- Stage ---------- */
  .stage {
    position: relative;
    flex: 1;
    min-width: 0;
    margin: 0 8px 8px 0;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--doc-text);
  }
  .stage__toggle {
    position: absolute; left: 8px; top: 8px; z-index: 1;
    width: 30px; height: 30px; border-radius: 15px;
    display: grid; place-items: center;
    color: rgba(255, 255, 255, 0.7);
  }
  .stage__toggle:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .stage__toggle svg { width: 18px; height: 18px; }
  .stage__toggle .icon-sidebar, body.sidebar-hidden .stage__toggle .icon-expand { display: none; }
  body.sidebar-hidden .stage__toggle .icon-sidebar { display: block; }

  body.sidebar-hidden .sidebar { display: none; }
  body.sidebar-hidden .stage { margin-left: 8px; }

  /* ---------- Article (logo page) ---------- */
  .pg { --pad: 32px; }
  /* Page and footer sit as separate panels, like the sidebar */
  .pg__page > header { border-radius: 8px; }
  .pg__body { margin-top: 8px; background: var(--doc-bg); border-radius: 8px; overflow: hidden; }
  .pg__grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }
  .pg__hero { background: #000; color: #fff; min-height: 800px; padding-bottom: 32px; display: flex; flex-direction: column; justify-content: flex-end; }
  .pg__hero .pg__grid { width: 100%; align-items: end; }
  .pg__num, .pg__title { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 400; letter-spacing: -0.5px; }
  .pg__num { grid-column: 1 / span 6; }
  .pg__title { grid-column: 7 / span 6; }
  .pg__intro { padding: 24px 0 64px; }
  .pg__lead { grid-column: 1 / span 9; margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -0.2px; }
  .pg { --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M6 1v7M2.5 4.75 6 8.25l3.5-3.5M1.5 11h9'/%3E%3C/svg%3E"); }
  /* The one content button: a soft pill, label first, icon after (Figma 36524:47112) */
  .pg__btn {
    grid-column: 1 / span 12; justify-self: start;
    margin-top: 32px;
    height: 36px; padding: 0 12px 0 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--doc-text) 6%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    color: var(--doc-text);
    font-size: 14px; font-weight: 500; letter-spacing: 0.07px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
    transition: background-color .15s;
  }
  /* The icon says what the button does: plus by default, or a modifier below */
  .pg__btn::after {
    content: ""; flex: none; width: 12px; height: 12px;
    background: currentColor;
    -webkit-mask: var(--btn-icon) center / contain no-repeat; mask: var(--btn-icon) center / contain no-repeat;
    --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E");
  }
  .pg__btn--download::after { --btn-icon: var(--icon-download); }
  .pg__btn--mail::after { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.3'%3E%3Crect x='1' y='2.5' width='10' height='7' rx='1'/%3E%3Cpath d='m1.5 3.25 4.5 3.5 4.5-3.5'/%3E%3C/svg%3E"); }
  .pg__btn--arrow::after { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M1 6h9.5M6.5 2l4 4-4 4'/%3E%3C/svg%3E"); }
  .pg__btn:hover { background: color-mix(in srgb, var(--doc-text) 10%, transparent); }

  .pg__section { border-top: 1px solid var(--doc-rule); padding: 32px 0 96px; }
  .pg__head { margin-bottom: 32px; }
  .pg__h2 { grid-column: 1 / span 3; margin: 0; font-size: 18px; line-height: 25px; font-weight: 400; }
  .pg__desc { grid-column: 7 / span 6; margin: 0; font-size: 18px; line-height: 25px; }
  .pg__desc ul { margin: 12px 0; padding-left: 20px; }
  .pg__desc li { margin: 2px 0; }
  .pg__full { grid-column: 1 / span 12; }
  .pg__third { grid-column: span 4; }
  .pg__half { grid-column: span 6; }
  .pg__grid--media { column-gap: 4px; row-gap: 32px; }

  .art {
    position: relative;
    background: var(--doc-card);
    display: grid; place-items: center;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px;
  }
  .art--wide { aspect-ratio: 1376 / 917; }
  .art--dark { background: #000; color: #fff; }
  .art__mark {
    font-size: clamp(20px, 4vw, 64px); font-weight: 600; letter-spacing: 0.08em;
    color: var(--doc-text); opacity: .16;
  }
  .art--dark .art__mark { color: #fff; opacity: .9; }
  .art--sm .art__mark { font-size: clamp(14px, 1.8vw, 28px); }

  /* Logo artwork: one set of symbols, reused at every size */
  .logo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
  .logo-art { display: block; height: auto; color: var(--doc-ink); overflow: visible; }
  .logo-art--mark { width: 16%; }
  .logo-art--word, .logo-art--lockup { width: 46%; }
  .art--sm .logo-art--mark { width: 22%; }
  .art--sm .logo-art--word, .art--sm .logo-art--lockup { width: 58%; }
  .logo-min .logo-art { width: auto; height: var(--h); }
  .art--black { background: #000; }
  .art--black .logo-art { color: #fff; }
  .art--white { background: #fff; box-shadow: inset 0 0 0 1px var(--doc-rule); }
  .art--white .logo-art { color: #000; }
  .art--magenta { background: #D62BF4; }
  .art--magenta .logo-art { color: #fff; }
  .art--mono .logo-art { --mark: currentColor; }
  .art--grey { background: var(--doc-card); }
  .art--grey .logo-art { color: #000; }
  .pg__quarter { grid-column: span 3; }
  .logo-row { margin-top: 4px; row-gap: 32px; }
  /* Logotype scale: the lock-up at each listed height on a ruled list */
  .logo-scale-row { align-items: start; }
  .logo-scale { grid-column: 1 / span 6; border-top: 1px solid var(--doc-rule); }
  /* Usage examples beside the scale: 2 x 2 */
  .logo-uses { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 4px; }
  .logo-use { aspect-ratio: 1; }
  .use-app { width: 42%; aspect-ratio: 1; border-radius: 22%; background: #D62BF4; display: grid; place-items: center; }
  .use-app .logo-art { width: 46%; color: #fff; --mark: #fff; }
  .use-tab { display: flex; align-items: center; gap: 8px; width: 82%; height: 40px; padding: 0 12px; border-radius: 10px 10px 0 0; background: var(--doc-bg); font-size: 12px; color: var(--doc-text); white-space: nowrap; overflow: hidden; box-shadow: 0 1px 0 var(--doc-rule); }
  .use-tab__icon .logo-art { width: 16px; }
  .use-tab__x { margin-left: auto; color: var(--doc-caption); }
  .use-avatar { width: 46%; aspect-ratio: 1; border-radius: 50%; background: #000; display: grid; place-items: center; }
  .use-avatar .logo-art { width: 40%; }
  .use-mail { width: 80%; padding: 16px; border-radius: 8px; background: var(--doc-bg); display: grid; gap: 2px; font-size: 13px; color: var(--doc-text); }
  .use-mail strong { font-weight: 500; color: var(--doc-ink); }
  .use-mail__logo { margin-top: 12px; }
  .use-mail__logo .logo-art { width: auto; height: 18px; }
  .logo-scale { border-top: 1px solid var(--doc-rule); }
  .logo-scale__row { display: grid; grid-template-columns: 120px 1fr; align-items: center; min-height: 72px; padding: 28px 0; border-bottom: 1px solid var(--doc-rule); }
  .logo-scale__size { font-size: 15px; color: var(--doc-caption); }
  .logo-scale__art .logo-art { width: auto; height: var(--h); }
  /* Motion: the logo rises into place */
  .logo-motion { display: grid; place-items: center; width: 58%; }
  .logo-motion .logo-art { width: 100%; }
  .logo-motion--intro { animation: logo-intro 3s cubic-bezier(.2, .7, .2, 1) infinite; }
  .logo-motion--outro { animation: logo-outro 3s cubic-bezier(.6, 0, .8, .3) infinite; }
  .logo-motion--idle .logo-art { --mark: #D62BF4; }
  .logo-motion--idle { animation: logo-idle 2.4s ease-in-out infinite; }
  @keyframes logo-intro { 0% { transform: translateY(40%); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
  @keyframes logo-outro { 0%, 60% { transform: none; opacity: 1; } 90%, 100% { transform: translateY(-40%); opacity: 0; } }
  @keyframes logo-idle { 0%, 100% { transform: translateY(4%); } 50% { transform: translateY(-4%); } }
  @media (prefers-reduced-motion: reduce) { .logo-motion { animation: none !important; } }
  /* Partner lockup */
  .partner { display: flex; align-items: center; justify-content: center; gap: 6%; }
  .partner .logo-art { width: 30%; color: #000; --mark: #000; }
  .partner__rule { width: 1px; height: 22%; background: #000; }
  .partner__logo { font-size: clamp(20px, 3vw, 40px); font-weight: 600; letter-spacing: .12em; color: #000; }

  /* Image captions match the Brand OS cards: 16px title, 12px muted text */
  .caption { display: block; padding: 14px 24px 0 0; }
  .caption__title { display: block; margin: 0; font-size: 16px; line-height: 1.3; font-weight: 500; }
  .caption__text { display: block; margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--doc-caption); max-width: 380px; }

  .pg__cells { display: contents; }
  .pg__colors { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .pg__colors .art { grid-column: span 2; }
  .pg__colors .art--big { grid-column: span 3; }

  /* Download lists: one group per medium, one ruled row per file */
  .downloads { grid-column: 7 / span 6; display: grid; gap: 48px; }
  .downloads__title { margin: 0 0 16px; font-size: 18px; line-height: 25px; font-weight: 500; }
  .downloads__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--doc-rule); }
  .downloads__list li { border-bottom: 1px solid var(--doc-rule); }
  .downloads__list a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 13px 0; font-size: 15px; line-height: 21px; color: var(--doc-text); text-decoration: none;
  }
  .downloads__list a::after {
    content: ""; flex: none; width: 12px; height: 12px; background: currentColor; opacity: .5;
    -webkit-mask: var(--icon-download) center / contain no-repeat; mask: var(--icon-download) center / contain no-repeat;
    transition: opacity .15s;
  }
  .downloads__list a:hover { text-decoration: underline; }
  .downloads__list a:hover::after { opacity: 1; }

  /* Previous / next sits in its own box between the content and the footer */
  .pg__pager { margin-top: 8px; border-radius: 8px; background: var(--doc-bg); padding: 32px 0; font-size: 18px; line-height: 25px; }
  .pg__pager a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
  .pg__pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .pager__go {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.08); color: #000;
    transition: background .2s;
  }
  .pager__go svg { width: 14px; height: 14px; }
  .pg__pager a:hover .pager__go { background: rgba(0, 0, 0, 0.14); }
  :root[data-theme-resolved="dark"] .pager__go { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .pg__pager a:first-child { grid-column: 1 / span 6; }
  .pg__pager a:last-child { grid-column: 7 / span 6; }

  .pg__footer {
    margin-top: 8px; border-radius: 8px; background: var(--surface); color: var(--nav-text); font-size: 15px; line-height: 21px; padding: 32px 0 32px;
    min-height: 622px; display: flex; flex-direction: column;
  }
  .pg__footer a { color: inherit; text-decoration: none; }
  .pg__footer a:hover { text-decoration: underline; }
  .pg__footer .pg__grid > div { grid-column: span 3; }
  .pg__footer p { margin: 0 0 8px; }
  .pg__dim { color: var(--muted); }
  .pg__footer-bottom { margin-top: auto; padding-top: 128px; }
  .pg__footer > .pg__grid, .pg__footer-bottom { width: 100%; }
  .pg__footer-logo { height: 32px; width: auto; display: block; color: var(--logo-ink); }
  .pg__footer .pg__grid > .pg__footer-brand { grid-column: 1 / span 6; }
  .pg__footer .pg__grid > .pg__footer-copy { grid-column: 7 / span 6; }

  /* ---------- Home page ---------- */
  .pg__page[hidden] { display: none; }
  @media (prefers-reduced-motion: reduce) { .home__video { display: none; } }
  .home__hero {
    position: relative; overflow: hidden; min-height: 800px; padding-bottom: 32px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: radial-gradient(120% 90% at 70% 20%, #3a3a3a 0%, #111 55%, #000 100%); color: #fff;
  }
  .home__hero .pg__grid { width: 100%; align-items: end; }
  .home__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .home__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0)); }
  .home__hero .pg__grid { position: relative; z-index: 1; }

  .tiles { padding: 32px 0 128px; }
  .tiles .pg__grid { column-gap: 4px; row-gap: 32px; }
  .tile { grid-column: span 3; align-self: start; display: block; padding: 0; background: none; text-align: left; color: var(--doc-text); cursor: pointer; }
  .tile__media {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; padding: 24px;
    border-radius: 12px; background: var(--doc-card); color: #fff; font-size: 18px; line-height: 25px;
  }
  .tile__go {
    position: absolute; right: 12px; bottom: 12px; z-index: 1;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.08); color: #000;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: background .2s;
  }
  .tile__go svg { width: 14px; height: 14px; }
  .tile:hover .tile__go { background: rgba(0, 0, 0, 0.14); }
  .tile--dark .tile__go { background: rgba(255, 255, 255, 0.16); color: #fff; }
  .tile--dark:hover .tile__go { background: rgba(255, 255, 255, 0.26); }
  .tile__num { position: absolute; inset: 0; display: grid; place-items: center; color: var(--doc-ink); font-size: 44px; letter-spacing: -0.5px; opacity: .2; }
  .tile:hover .caption__title { text-decoration: underline; text-underline-offset: 3px; }
  .tile__art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .4s ease; }
  .tile:hover .tile__art { transform: scale(1.03); }
  .tile:focus-visible { outline: none; }
  .tile:focus-visible .tile__media { outline: 2px solid var(--nav-accent); outline-offset: 2px; }
  .tile--foundation .tile__media { background: #0040ff; }
  .tile--foundation .tile__art { font-size: 24px; letter-spacing: -0.3px; }
  .tile--logos .tile__media { background: #000; }
  .tile--logos .logo-art { width: 56%; color: #fff; }
  .tile--type .tile__media { background: #cbbfa8; }
  .tile--type .tile__art { grid-template-columns: auto 1fr; gap: 16px; padding: 0 20px 0 14%; place-items: center start; }
  .tile--type b { font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -4px; }
  .tile--type small { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.75); max-width: 160px; }
  .tile--color .tile__art { display: grid; grid-template-columns: repeat(6, 1fr); }
  .tile--color .tile__art i:nth-child(1) { background: #001d6c; }
  .tile--color .tile__art i:nth-child(2) { background: #0043ce; }
  .tile--color .tile__art i:nth-child(3) { background: #0f62fe; }
  .tile--color .tile__art i:nth-child(4) { background: #4589ff; }
  .tile--color .tile__art i:nth-child(5) { background: #a6c8ff; }
  .tile--color .tile__art i:nth-child(6) { background: #edf5ff; }
  .tile--color .tile__art i { width: 100%; height: 100%; }
  .tile--illustration .tile__media { background: #ff0f50; }
  .tile--illustration .tile__art::before {
    content: ""; width: 46%; aspect-ratio: 1; border-radius: 50%;
    background: repeating-radial-gradient(circle, #ffb3d1 0 14px, #ff5c98 14px 28px);
  }
  .tile--photo .tile__media { background: #3d3d3d; }
  .tile--gallery .tile__media { background: #8d8d8d; }

  .pg__desc p { margin: 0 0 24px; }
  .pg__desc p:last-child { margin-bottom: 0; }
  .pg__section .pg__text { margin: 0; }
  .pg__section:has(.pg__text) { padding-bottom: 128px; }
  /* Ruled points under a text row: name, then a muted note */
  .pg__desc .pg__points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
  .pg__points li { border-left: 1px solid var(--doc-rule); padding-left: 16px; font-size: 15px; line-height: 21px; }
  /* Text row blocks: statement, cards, tiers, do and don't, table */
  .pg__desc .tx-statement { margin: 0 0 24px; font-size: 26px; line-height: 1.3; letter-spacing: -0.2px; color: var(--doc-ink); }
  .tx-block { margin-top: 48px; display: grid; gap: 4px; }
  .tx-cards { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
  .tx-card { background: var(--doc-card); border-radius: 12px; padding: 24px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
  .tx-card__num { font-size: 15px; color: var(--doc-caption); }
  .tx-card strong { display: block; font-size: 18px; line-height: 25px; font-weight: 400; color: var(--doc-text); }
  .tx-card p { margin: 6px 0 0; font-size: 15px; line-height: 21px; color: var(--doc-caption); }
  .tx-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .tx-tier { margin-left: calc(var(--i) * 8.333%); background: var(--doc-card); border-radius: 12px; padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; font-size: 15px; line-height: 21px; }
  .tx-tier strong { font-weight: 400; font-size: 18px; line-height: 25px; color: var(--doc-text); }
  .tx-tier span { color: var(--doc-caption); }
  .tx-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .tx-do { background: var(--doc-card); border-radius: 12px; padding: 24px; }
  .tx-do__label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 24px; }
  .tx-do__label::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
  .tx-do--do .tx-do__label { color: #198038; --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m1.5 6.5 3 3 6-7'/%3E%3C/svg%3E"); }
  .tx-do--dont .tx-do__label { color: #da1e28; --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m2 2 8 8M10 2l-8 8'/%3E%3C/svg%3E"); }
  .tx-do p { margin: 0 0 12px; font-size: 18px; line-height: 25px; color: var(--doc-text); }
  .tx-do p:last-child { margin-bottom: 0; }
  /* Type specimens */
  .specimens { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 32px 4px; }
  .specimens:has(> :only-child) .specimen { aspect-ratio: 1376 / 917; }
  .specimen { color: var(--doc-ink); }
  .specimen { --plex-sans: "IBM Plex Sans", Arial, sans-serif; --plex-serif: "IBM Plex Serif", Georgia, serif; --plex-mono: "IBM Plex Mono", "Courier New", monospace; }
  /* Like "Aa": a large 가 followed by a smaller one, bottoms aligned and centered in the card.
     Hangul fills the whole em box, so it is set smaller than the Latin "Aa" to look the same size. */
  .specimen--pretendard { font-family: Pretendard, "Apple SD Gothic Neo", sans-serif; grid-auto-flow: column; align-items: end; justify-content: center; align-content: center; column-gap: 0.02em; }
  .specimen--pretendard span { line-height: 1; letter-spacing: -0.02em; }
  .specimen--pretendard span:first-child { font-size: clamp(48px, 7vw, 124px) !important; }
  .specimen--pretendard span:last-child { font-size: clamp(36px, 5.2vw, 92px) !important; }
  .specimen--sans span, .specimen--serif span, .specimen--mono span, .specimen--pretendard span { font-size: clamp(64px, 9vw, 160px); line-height: 1; }
  .specimen--sans { font-family: var(--plex-sans); }
  .specimen--serif { font-family: var(--plex-serif); }
  .specimen--mono { font-family: var(--plex-mono); letter-spacing: -0.04em; }
  /* Character sets */
  .glyph-font--sans { font-family: "IBM Plex Sans", Arial, sans-serif; }
  .glyph-font--serif { font-family: "IBM Plex Serif", Georgia, serif; }
  .glyph-font--mono { font-family: "IBM Plex Mono", "Courier New", monospace; }
  .glyph-font--pretendard { font-family: Pretendard, "Apple SD Gothic Neo", sans-serif; }
  .pg__h2[class*="glyph-font--"] { font-size: 22px; line-height: 1.2; color: var(--doc-ink); }
  .glyphs { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); color: var(--doc-ink); }
  .glyphs span { border-top: 1px solid var(--doc-rule); text-align: center; font-size: clamp(20px, 2.9vw, 52px); line-height: 1.45; }
  .glyph-font--pretendard.glyphs span { font-size: clamp(18px, 2.5vw, 44px); }
  .weights { display: grid; grid-template-columns: minmax(120px, 1.2fr) repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--doc-rule); }
  .weights > * { border-bottom: 1px solid var(--doc-rule); }
  .weights__corner, .weights__head { padding: 12px 0; font-size: 13px; color: var(--doc-caption); }
  .weights__family { padding: 24px 16px 24px 0; font-size: 15px; font-weight: 400; color: var(--doc-text); align-self: stretch; }
  .weights__cell { padding: 20px 16px 20px 0; display: flex; flex-direction: column; gap: 8px; }
  .weights__sample { font-size: clamp(32px, 3.6vw, 56px); line-height: 1; color: var(--doc-ink); }
  .weights__use { font-size: 13px; line-height: 1.4; color: var(--doc-text); }
  .weights__cell.is-unused { opacity: .22; }
  /* Iconography */
  .icon-symbols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 4px; }
  .icon-symbol { width: 34%; height: auto; fill: var(--doc-ink); }
  .icon-library { grid-template-columns: repeat(4, 64px); justify-content: center; align-content: center; gap: 56px 96px; }
  .icon-library__item { display: grid; place-items: center; width: 64px; height: 64px; color: var(--doc-ink); }
  .icon-library__item svg { width: 32px; height: 32px; }
  /* Illustration */
  .illo-grid { display: grid; gap: 32px 4px; }
  .illo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .illo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .illo-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 4px; }
  .illo-tile { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; }
  .illo { display: block; width: 100%; height: 100%; }
  .illo-pair { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
  .illo-pair span { width: 46%; aspect-ratio: 1; }
  .illo-grid--6 .caption { padding-top: 10px; }
  .illo-grid--6 .caption__text { margin: 0; letter-spacing: .02em; }
  /* Photography */
  .photo-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 4px; }
  .photo-grid + .photo-grid { margin-top: 4px; }
  .tx-cards + .photo-grid { margin-top: 4px; }
  .photo { margin: 0; aspect-ratio: var(--ratio); border-radius: 12px; overflow: hidden; background: var(--doc-card); }
  .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tile__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
  .tile:hover .tile__photo { transform: scale(1.03); }
  /* Layout */
  /* Column widths chosen so the stacked landscape frames and the portrait frame end at the same height */
  .lay-diagrams { display: grid; grid-template-columns: minmax(0, 1.81fr) minmax(0, 1fr); gap: 4px; align-items: start; margin-bottom: 4px; }
  .lay-stack { display: grid; gap: 4px; }
  /* Widths follow each format's aspect ratio so the row shares one height */
  .lay-row { display: grid; gap: 4px; align-items: start; }
  .lay-svg { display: block; width: 100%; height: auto; border-radius: 12px; }
  .lay-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 4px; }
  .lay-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #F4F4F4; }
  .lay-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .lay-photo--half img { width: 50%; }
  .lay-photo__text { position: absolute; inset: 0 0 0 auto; width: 50%; padding: 6%; display: flex; flex-direction: column; gap: 10px; font-family: "IBM Plex Sans", Arial, sans-serif; color: #161616; }
  .lay-photo__text b { font-weight: 500; font-size: clamp(20px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -0.02em; }
  .lay-photo__text span { font-size: clamp(11px, 1vw, 15px); }
  .lay-photo__text i { margin-top: auto; align-self: flex-end; width: 34%; }
  .lay-photo__text .logo-art { width: 100%; color: #000; }
  .lay-photo--full .lay-photo__text { inset: 0; width: auto; color: #fff; }
  .lay-photo--full .lay-photo__text b { max-width: 60%; }
  .lay-photo--full .lay-photo__text .logo-art { color: #fff; --mark: #fff; width: 100%; }
  .lay-photo--full .lay-photo__text i { width: 18%; }
  .lay-photo--logo i { position: absolute; inset: 0; display: grid; place-items: center; }
  .lay-photo--logo .logo-art { width: 38%; color: #fff; --mark: #fff; }
  .lay-photo--dark-logo .logo-art { color: #000; --mark: #000; }
  /* Motion demos: loop quietly, stop for reduced motion */
  .mo-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px 4px; }
  .mo-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--doc-card); overflow: hidden; display: grid; place-items: center; }
  .mo-explore { width: 28%; aspect-ratio: 1; border-radius: 10px; background: #D62BF4; animation: mo-explore 2.6s cubic-bezier(.7, 0, .2, 1) infinite; }
  @keyframes mo-explore { 0% { transform: scale(.2); opacity: 0; border-radius: 50%; } 35%, 75% { transform: scale(1.6); opacity: 1; border-radius: 10px; } 100% { transform: scale(1.6); opacity: 0; } }
  .mo-experience { display: flex; gap: 12px; animation: mo-scroll 3.2s cubic-bezier(.65, 0, .35, 1) infinite; }
  .mo-experience i { width: 72px; aspect-ratio: 3 / 4; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
  .mo-experience i:nth-child(2) { background: #D62BF4; }
  @keyframes mo-scroll { 0%, 20% { transform: translateX(84px); } 45%, 65% { transform: translateX(0); } 90%, 100% { transform: translateX(-84px); } }
  .mo-exchange { perspective: 400px; }
  .mo-exchange i { display: block; width: 110px; aspect-ratio: 3 / 2; border-radius: 10px; background: #161616; animation: mo-flip 2.8s cubic-bezier(.65, 0, .35, 1) infinite; }
  @keyframes mo-flip { 0%, 25% { transform: rotateY(0); background: #161616; } 50%, 75% { transform: rotateY(180deg); background: #D62BF4; } 100% { transform: rotateY(360deg); background: #161616; } }
  .mo-track { position: relative; width: 70%; height: 2px; background: var(--doc-rule); }
  .mo-dot { position: absolute; top: 50%; left: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #D62BF4; animation: mo-move 2.4s infinite alternate; }
  .mo-dot--intentional { animation-timing-function: cubic-bezier(.8, 0, .2, 1); }
  .mo-dot--effortless { animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  .mo-dot--organic { animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  @keyframes mo-move { 0%, 15% { left: 0; } 85%, 100% { left: 100%; } }
  .mo-type { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .28em; max-width: 80%; font-family: "IBM Plex Sans", Arial, sans-serif; font-weight: 500; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; color: #161616; }
  .mo-type > span { display: inline-block; overflow: hidden; }
  .mo-type b { display: inline-block; font-weight: inherit; }
  .mo-type--slide b { animation: mo-slide 3s cubic-bezier(.7, 0, .2, 1) infinite; }
  .mo-type--cut b { animation: mo-cut 3s steps(1, end) infinite; }
  .mo-type--sequence b { animation: mo-seq 3.4s cubic-bezier(.7, 0, .2, 1) infinite; animation-delay: calc(var(--i) * .12s); }
  .mo-type--number { gap: 0; font-size: clamp(48px, 6vw, 96px); }
  .mo-type--number b { animation: mo-seq 3s cubic-bezier(.7, 0, .2, 1) infinite; animation-delay: calc(var(--i) * .1s); }
  .mo-type--number .mo-static b { animation: none; }
  @keyframes mo-slide { 0% { transform: translateY(110%); } 25%, 80% { transform: none; } 100% { transform: translateY(-110%); } }
  @keyframes mo-cut { 0% { opacity: 0; } 20%, 80% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes mo-seq { 0% { transform: translateY(110%); } 22%, 78% { transform: none; } 95%, 100% { transform: translateY(-110%); } }
  @media (prefers-reduced-motion: reduce) { .mo-tile * { animation: none !important; } }
  /* Data visualization */
  .dv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  /* Chart and infographic examples are real artwork: square corners and a black 1px frame */
  .dv-card { margin: 0; padding: 24px; border: 1px solid #000; border-radius: 0; background: #fff; color: #161616; font-family: "IBM Plex Sans", Arial, sans-serif; }
  .dv-card__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .dv-card__head strong { display: block; font-size: 15px; font-weight: 500; }
  .dv-card__head span { display: block; font-size: 13px; color: #6F6F6F; margin-top: 2px; }
  .dv-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12px; color: #525252; white-space: nowrap; }
  .dv-legend li { display: flex; align-items: center; gap: 6px; }
  .dv-legend i { width: 8px; height: 8px; border-radius: 50%; }
  .dv-plot { display: block; width: 100%; height: auto; }
  .dv-card__source { margin: 16px 0 0; font-size: 11px; color: #6F6F6F; }
  .dv-anatomy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .dv-callouts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 24px; font-size: 13px; color: var(--doc-text); }
  .dv-callouts li { display: flex; align-items: center; gap: 8px; }
  .dv-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #161616; color: #fff; font-size: 11px; }
  /* Infographics */
  /* Report infographics: headline, one chart, legend, source and notes */
  .ig-posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ig-poster { margin: 0; background: #fff; border: 1px solid #000; border-radius: 0; padding: 32px; display: flex; flex-direction: column; gap: 28px; color: #161616; font-family: "IBM Plex Sans", Arial, sans-serif; }
  .ig-poster--wide { grid-column: 1 / -1; }
  .ig-poster__head { position: relative; padding-right: 156px; }
  .ig-poster--wide .ig-poster__head { padding-right: 214px; }
  .ig-poster__series { margin: 0 0 14px; font-size: 12px; color: #8D8D8D; }
  .ig-poster__series b { font-weight: 500; color: #6F6F6F; }
  .ig-poster__series i { margin-left: 12px; }
  .ig-poster__title { margin: 0; font-size: 26px; line-height: 1.18; font-weight: 500; letter-spacing: -0.015em; }
  .ig-poster--wide .ig-poster__title { font-size: 34px; max-width: 22em; }
  .ig-poster__logo { position: absolute; top: 0; right: 0; width: 132px; }
  .ig-poster--wide .ig-poster__logo { width: 184px; }
  .ig-poster__logo .logo-art { width: 100%; color: #161616; }
  .ig-poster__body svg { display: block; width: 100%; height: auto; overflow: visible; }
  .ig-chart-title { margin: 0 0 16px; font-size: 15px; line-height: 1.35; color: #161616; }
  .ig-chart-title b { font-weight: 500; }
  .ig-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .ig-split > div + div { border-left: 1px solid #E0E0E0; padding-left: 48px; }
  .ig-split__title { margin: 0 0 24px; font-size: 20px; line-height: 1.3; color: #161616; }
  .ig-split__title b { font-weight: 500; }
  .ig-split__title em { font-style: normal; color: #D62BF4; }
  .ig-legend { list-style: none; margin: 0; padding: 7px 16px; align-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; background: #F4F4F4; border-radius: 999px; font-size: 11.5px; color: #525252; }
  .ig-legend li { display: flex; align-items: center; gap: 6px; }
  .ig-legend b { font-weight: 500; color: #161616; }
  .ig-legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
  .ig-legend i.is-ring { background: none; border: 1.5px solid var(--c); }
  .ig-poster__foot { margin-top: auto; }
  .ig-poster__foot p { margin: 0 0 4px; font-size: 12px; line-height: 1.5; color: #8D8D8D; }
  .ig-poster__foot b { font-weight: 500; color: #6F6F6F; }
  .type-scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--doc-rule); border-radius: 12px; overflow: hidden; }
  .type-scale__cell { grid-column: span 2; min-height: 260px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; border-top: 1px solid var(--doc-rule); }
  .type-scale__cell:first-child { border-top: 0; min-height: 320px; }
  .type-scale__cell--half { grid-column: span 1; }
  .type-scale__cell--half.is-right { border-left: 1px solid var(--doc-rule); }
  .type-scale__meta { font-size: 13px; line-height: 1.5; }
  .type-scale__meta strong { display: block; font-weight: 500; color: var(--doc-ink); }
  .type-scale__meta span { display: block; color: var(--doc-text); }
  .type-scale__sample { margin: 0; color: var(--doc-ink); letter-spacing: -0.01em; max-width: 40em; }
  .specimen--korean { font-family: Pretendard, "Apple SD Gothic Neo", sans-serif; place-items: start; align-content: center; padding: 8%; gap: 20px; text-align: left; }
  .specimen--korean span:first-child { font-size: clamp(36px, 5vw, 80px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
  .specimen--korean span:last-child { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.6; color: var(--doc-text); max-width: 32em; }
  .specimen--arial span { font-family: Arial, Helvetica, sans-serif; font-size: clamp(28px, 3.2vw, 52px); }
  .specimen--georgia span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3.2vw, 52px); }
  .specimen--malgun span { font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: clamp(28px, 3.2vw, 52px); }
  .specimen--courier span { font-family: "Courier New", Courier, monospace; font-size: clamp(24px, 2.8vw, 46px); }
  .tx-table__title { margin: 24px 0 12px; font-size: 18px; line-height: 25px; font-weight: 400; color: var(--doc-text); }
  .tx-block > .tx-table__title:first-child { margin-top: 0; }
  .swatches { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 4px; }
  .swatch__chip { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; cursor: pointer; font: inherit; }
  .swatch__chip:focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 2px; }
  .swatch__hint {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
    height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
    background: rgba(255, 255, 255, 0.92); color: #161616; font-size: 14px; font-weight: 500; white-space: nowrap;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none;
  }
  .swatch__chip:hover .swatch__hint, .swatch__chip:focus-visible .swatch__hint, .swatch__chip.is-copied .swatch__hint { opacity: 1; transform: translate(-50%, -50%); }
  .swatch__chip--light { box-shadow: inset 0 0 0 1px var(--doc-rule); }
  .swatch__info { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; text-align: left; font-size: 12px; line-height: 1.45; letter-spacing: .02em; }
  .swatch__name { margin-bottom: 6px; font-size: 15px; letter-spacing: 0; }
  .swatch__value { display: grid; grid-template-columns: 44px 1fr; }
  .swatch__value span:first-child { opacity: .6; }
  .swatch__chip--on-dark { color: #fff; }
  .swatch__chip--on-light { color: #161616; }
  .tx-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 21px; }
  .tx-table th { text-align: left; font-weight: 400; color: var(--doc-caption); padding: 0 16px 12px 0; border-bottom: 1px solid var(--doc-rule); }
  .tx-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--doc-rule); color: var(--doc-text); vertical-align: top; }
  .pg__points strong { display: block; font-weight: 400; color: var(--doc-text); }
  .pg__points span { display: block; margin-top: 4px; color: var(--doc-caption); }

  /* ---------- Responsive ---------- */
  @media (max-width: 1100px) {
    .pg { --pad: 20px; }
    .pg__grid { column-gap: 20px; }
    .pg__lead { grid-column: 1 / span 12; font-size: 22px; }
    .tx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logo-scale, .logo-uses { grid-column: 1 / span 12; }
    .logo-uses { margin-top: 32px; }
    .type-scale__cell--half { grid-column: span 2; }
    .glyphs { grid-template-columns: repeat(10, minmax(0, 1fr)); }
    .icon-symbols { grid-template-columns: 1fr; }
    .ig-posters, .ig-split { grid-template-columns: 1fr; }
    .ig-split > div + div { border-left: 0; padding-left: 0; }
    .ig-poster--wide .ig-poster__title { font-size: 24px; }
    .ig-poster__head, .ig-poster--wide .ig-poster__head { padding-right: 0; padding-top: 48px; }
    .ig-poster__logo, .ig-poster--wide .ig-poster__logo { width: 120px; }
    .dv-grid, .dv-anatomy { grid-template-columns: 1fr; }
    .dv-callouts { grid-template-columns: repeat(2, auto); }
    .mo-grid { grid-template-columns: 1fr; }
    .lay-diagrams, .lay-photos, .lay-row { grid-template-columns: 1fr !important; }
    .photo-grid { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
    .illo-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .illo-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .icon-library { gap: 24px 32px; }
    .weights { grid-template-columns: 90px repeat(5, minmax(0, 1fr)); }
    .weights__head { font-size: 11px; }
    .type-scale__cell--half.is-right { border-left: 0; }
    .swatches { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
    .tx-tier { margin-left: 0; }
    .pg__h2, .pg__desc { grid-column: 1 / span 12; }
    .pg__desc { margin-top: 12px; }
    .downloads { grid-column: 1 / span 12; margin-top: 24px; }
    .tile { grid-column: span 6; }
    .pg__quarter { grid-column: span 6; }
    .pg__footer .pg__grid > div { grid-column: span 6; margin-bottom: 24px; }
  }
  @media (max-width: 760px) {
    body { overflow: auto; height: auto; }
    /* Two-row header: menu · logo · theme, then full-width mode tabs */
    .topbar {
      position: sticky; top: 0; z-index: 40;
      height: auto; flex-wrap: wrap; gap: 12px 6px;
      padding: 12px 16px; background: var(--bg);
    }
    .topbar__side { gap: 12px; }
    .topbar__side--end { display: contents; }
    .header-search { display: none; }
    #search-btn { display: grid; }
    .menu-btn {
      display: grid; place-items: center;
      width: 36px; height: 36px; margin-left: -8px;
      border-radius: 100px; color: var(--ink);
    }
    .menu-btn:hover { background: var(--fill-2); }
    .menu-btn svg { width: 18px; height: 18px; }
    .segmented { order: 3; flex: 1 0 100%; }
    .segmented button { flex: 1; height: 34px; }
    .segmented__thumb { height: 34px; }

    /* Sidebar becomes a slide-in drawer */
    .workspace { flex-direction: column; }
    .sidebar {
      position: fixed; z-index: 60; top: 0; bottom: 0; left: 0;
      width: min(320px, 86vw); margin: 0; border-radius: 0 12px 12px 0;
      transform: translateX(-100%); transition: transform .28s cubic-bezier(.3,.7,.2,1);
      box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
    }
    body.drawer-open .sidebar { transform: none; }
    .scrim {
      display: block; position: fixed; inset: 0; z-index: 55;
      background: rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity .28s;
    }
    body.drawer-open .scrim, body.apps-open .scrim { opacity: 1; pointer-events: auto; }
    body.apps-open .topbar { z-index: 65; }
    .apps { position: static; }
    .apps__panel {
      position: fixed; top: auto; left: 0; right: 0; bottom: 0;
      width: auto; max-height: 75vh; padding: 12px 12px 24px;
      border-radius: 16px 16px 0 0; border-width: 1px 0 0;
      transform: translateY(16px);
    }
    .apps__item { min-height: 44px; }
    .palette { padding-top: 16px; }
    body.drawer-open { overflow: hidden; }
    body.sidebar-hidden .sidebar { display: flex; }
    .stage__toggle { display: none; }
    .stage { margin: 0 16px 16px; overflow: visible; }
    .pg { --pad: 16px; }
    .pg__num, .pg__title { font-size: 32px; }
    .pg__hero, .home__hero { min-height: 420px; }
    .tile { grid-column: 1 / span 12; }
    .pg__third, .pg__half, .pg__quarter { grid-column: 1 / span 12; margin-bottom: 24px; }
    .pg__colors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .tx-cards, .tx-dos, .tx-tier { grid-template-columns: 1fr; }
    .tx-card { min-height: 0; }
    .pg__colors .art, .pg__colors .art--big { grid-column: span 1; }
    .pg__pager a:first-child, .pg__pager a:last-child { grid-column: 1 / span 12; }
    .pg__footer .pg__grid > div, .pg__footer .pg__grid > .pg__footer-brand, .pg__footer .pg__grid > .pg__footer-copy { grid-column: 1 / span 12; }
    body.sidebar-hidden .stage { margin-left: 16px; }
  }
  @media (max-width: 480px) {
    .site-name { display: none; }
  }
  @media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .sidebar, .scrim { transition: none; }
  }

  .pg__footer .pg__grid > .pg__footer-copy { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: inherit; row-gap: 16px; align-items: start; padding-top: 20px; border-top: 0; }
  .pg__footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: inherit; }
  .pg__footer-credit { padding-left: 16px; border-left: 1px solid rgba(128,128,128,.5); }
  @media (max-width: 760px) { .pg__footer .pg__grid > .pg__footer-copy { grid-template-columns: 1fr; } }
