  :root {
    --paper: #F1F2F4;
    --paper-2: #E7E9ED;
    --ink: #141821;
    --ink-2: #2B3140;
    --mute: #6B7180;
    --rule: #D3D6DE;
    --cobalt: #2140E6;
    --cobalt-ink: #1A33B8;
    --cobalt-soft: #DCE1FB;
    --marker: #FFD338;
    --marker-ink: #5A4400;
    --live: #1F8F4E;
    --on-cobalt: #FFFFFF;
    --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --paper: #0F1320;
      --paper-2: #171C2B;
      --ink: #EAECF3;
      --ink-2: #C9CEDB;
      --mute: #98A0B4;
      --rule: #2A3145;
      --cobalt: #6D84FF;
      --cobalt-ink: #8CA0FF;
      --cobalt-soft: #1E2749;
      --marker: #FFD338;
      --marker-ink: #3A2C00;
      --live: #4CC47F;
      --on-cobalt: #0F1320;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0F1320;
    --paper-2: #171C2B;
    --ink: #EAECF3;
    --ink-2: #C9CEDB;
    --mute: #98A0B4;
    --rule: #2A3145;
    --cobalt: #6D84FF;
    --cobalt-ink: #8CA0FF;
    --cobalt-soft: #1E2749;
    --marker: #FFD338;
    --marker-ink: #3A2C00;
    --live: #4CC47F;
    --on-cobalt: #0F1320;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
  h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
  p { margin: 0; }
  .wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

  @media (max-width: 760px) { html { scroll-padding-top: 28px; } }
  /* ---------- nav ---------- */
  .nav {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
  }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
  .wordmark { font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
  .wordmark i { width: 12px; height: 12px; background: var(--cobalt); display: inline-block; transform: rotate(45deg); border-radius: 1px; }
  .nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: 0.95rem; font-weight: 500; }
  .nav-links a { text-decoration: none; color: var(--ink-2); }
  .nav-links a:hover { color: var(--cobalt); }
  .nav-right { display: flex; align-items: center; gap: 14px; }
  .menu-btn, .menu-avail { display: none; }
  .theme { appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); width: 36px; height: 36px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .theme:hover { border-color: var(--cobalt); color: var(--cobalt); }
  .theme .moon { display: none; }
  :root[data-theme="dark"] .theme .sun { display: none; }
  :root[data-theme="dark"] .theme .moon { display: block; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: block; } }
  .avail { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 0.85rem; font-weight: 500; color: var(--mute); white-space: nowrap; }
  .avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }

  /* ---------- hero ---------- */
  .hero { padding-block: 72px 56px; }
  .hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .hero h1 .h1-sub {
    display: block; margin-top: 0.35em;
    font-size: 0.46em; line-height: 1.08; font-weight: 600;
    letter-spacing: -0.01em; color: var(--ink-2);
  }
  @media (max-width: 600px) { .hero h1 .h1-sub { font-size: 0.62em; } }
  .hero h1 {
    grid-column: 1 / 11;
    font-size: clamp(2.5rem, 6.4vw, 5.6rem);
    font-weight: 700; line-height: 0.98;
    font-variation-settings: "opsz" 96;
  }
  .hero .lede { grid-column: 1 / 8; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-2); margin-top: 12px; max-width: 62ch; }
  @media (max-width: 900px) {
    .hero h1, .hero .lede { grid-column: 1 / -1; }
    .hero { padding-top: 24px; }
  }

  /* audience switch: the one bold element */
  .switch-block { margin-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .switch-block > .q { grid-column: 1 / 4; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink-2); padding-top: 14px; }
  .switch-block > .q small { display: block; font-weight: 400; color: var(--mute); margin-top: 4px; font-size: 0.9rem; }
  .switch { grid-column: 4 / 13; }
  .seg {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    border: 2px solid var(--ink); border-radius: 999px; padding: 6px; background: var(--paper);
  }
  .seg .thumb {
    position: absolute; inset: 6px auto 6px 6px; width: calc(50% - 6px); border-radius: 999px;
    background: var(--cobalt); transition: transform .38s cubic-bezier(.65,0,.2,1);
  }
  :root[data-mode="build"] .seg .thumb { transform: translateX(100%); }
  .seg button {
    position: relative; z-index: 1; appearance: none; background: none; border: 0; cursor: pointer;
    font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: -0.01em;
    color: var(--ink); padding: 16px 12px; border-radius: 999px; transition: color .25s;
  }
  .seg button[aria-checked="true"] { color: var(--on-cobalt); }
  .seg button:focus-visible { outline-offset: -6px; outline-color: var(--marker); }
  .mode-copy { margin-top: 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
  .mode-copy p { font-size: 1.1rem; color: var(--ink-2); max-width: 58ch; }
  .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
    font-family: var(--display); font-weight: 600; font-size: 1rem;
    padding: 13px 20px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); background: transparent;
    transition: background .2s, color .2s, border-color .2s;
  }
  .btn.primary { background: var(--ink); color: var(--paper); }
  .btn.primary:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
  .btn:not(.primary):hover { border-color: var(--cobalt); color: var(--cobalt); }
  .swap { transition: opacity .22s; }
  .swap.fading { opacity: 0; }
  @media (max-width: 900px) {
    .switch-block > .q, .switch { grid-column: 1 / -1; }
    .switch-block > .q { padding-top: 0; }
    .mode-copy { grid-template-columns: 1fr; }
    .ctas { justify-content: flex-start; }
  }
  @media (max-width: 480px) {
    .seg button { padding: 14px 6px; font-size: 0.95rem; }
  }

  .hero-ctas { margin-top: 36px; justify-content: flex-start; }


  /* ---------- sections ---------- */
  section.block { padding-block: 88px; border-top: 1px solid var(--rule); }
  .sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 40px; align-items: end; }
  .sec-head h2 { grid-column: 1 / 6; font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 700; line-height: 1; }
  .sec-head .note { grid-column: 6 / 11; font-family: var(--display); color: var(--cobalt-ink); font-size: 1rem; line-height: 1.4; position: relative; padding-left: 18px; }
  .sec-head .note::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 10px; height: 2px; background: var(--cobalt); }
  @media (max-width: 900px) { .sec-head h2, .sec-head .note { grid-column: 1 / -1; } }

  /* ledger of products */
  .ledger { border-top: 2px solid var(--ink); }
  .ledger-head, .row summary {
    display: grid; grid-template-columns: 1.15fr 2.3fr 1.15fr 0.85fr; gap: 20px; align-items: baseline;
    padding-block: 18px;
  }
  .ledger-head { font-family: var(--display); font-size: 0.85rem; color: var(--mute); border-bottom: 1px solid var(--rule); padding-block: 10px; }
  .row { border-bottom: 1px solid var(--rule); }
  .row summary { cursor: pointer; list-style: none; }
  .row summary::-webkit-details-marker { display: none; }
  .pname { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .pname .dom { font-weight: 400; font-size: 0.85rem; color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--rule); }
  .pname .dom:hover { color: var(--cobalt); border-color: var(--cobalt); }
  .pname .tag { flex-basis: 100%; font-weight: 500; font-size: 0.8rem; color: var(--cobalt-ink); letter-spacing: 0; margin-top: 2px; }
  .pwhat { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
  .pstack { font-family: var(--display); font-size: 0.9rem; color: var(--mute); }
  .pstatus { font-family: var(--display); font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .pstatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); flex: none; }
  .pstatus.live::before { background: var(--live); }
  .pstatus.beta::before { background: var(--marker); }
  .row .more { padding: 0 0 26px; display: grid; grid-template-columns: 1.15fr 2.3fr 2fr; gap: 20px; }
  .row .more .lbl { font-family: var(--display); font-size: 0.85rem; color: var(--mute); padding-top: 3px; }
  .row .more p { color: var(--ink-2); font-size: 1rem; max-width: 52ch; }
  .row .more a { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--cobalt-ink); font-size: 0.95rem; }
  .row .more a:hover { text-decoration: underline; }
  .row .more ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 1rem; }
  .row .more li + li { margin-top: 4px; }
  @media (max-width: 820px) {
    .ledger-head { display: none; }
    .row summary { grid-template-columns: 1fr; gap: 8px; }
    .row .more { grid-template-columns: 1fr; gap: 8px; }
    .row .more .lbl { padding-top: 8px; }
  }

  /* flywheel */
  .fw { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .fw .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 40ch; }
  .fw .lead p + p { margin-top: 14px; }
  .fw figure { margin: 0; padding: 20px 0 0; }
  .fw figure svg { display: block; width: 100%; height: auto; color: var(--ink); }
  .fw figcaption { font-family: var(--display); font-size: 0.9rem; color: var(--mute); margin-top: 10px; }
  .fw-table { margin-top: 40px; overflow-x: auto; }
  .fw-table table { border-collapse: collapse; width: 100%; font-family: var(--display); font-size: 0.95rem; }
  .fw-table th, .fw-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
  .fw-table th { font-weight: 600; color: var(--mute); font-size: 0.85rem; border-bottom: 2px solid var(--ink); }
  .fw-table td:first-child a { font-weight: 700; text-decoration: none; }
  .fw-table td:first-child a:hover { color: var(--cobalt); }
  .fw-table td { color: var(--ink-2); }
  .fw-table td:last-child { white-space: nowrap; }
  .fw-table td:last-child a { font-weight: 600; color: var(--cobalt-ink); text-decoration: none; }
  .fw-cta { margin-top: 28px; }
  @media (max-width: 900px) { .fw { grid-template-columns: 1fr; gap: 24px; } }

  /* commit heatmap */
  .heat { margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--rule); }
  .heat .scroll { overflow-x: auto; }
  .heat svg { display: block; width: 100%; min-width: 620px; height: auto; color: var(--ink); }
  .heat figcaption { font-family: var(--display); font-size: 0.9rem; color: var(--mute); margin-top: 12px; max-width: 70ch; }
  .heat figcaption b { color: var(--ink); font-weight: 600; }

  /* earlier products strip */
  .earlier { margin-top: 28px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; }
  .earlier .lbl { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
  .earlier .lbl small { display: block; font-weight: 500; color: var(--mute); font-size: 0.85rem; margin-top: 2px; }
  .earlier ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; }
  .earlier li { font-family: var(--display); font-size: 0.95rem; color: var(--ink-2); line-height: 1.4; }
  .earlier li b { display: block; color: var(--ink); font-weight: 600; }
  .earlier li span { color: var(--mute); font-size: 0.85rem; display: block; }
  .earlier a { color: var(--cobalt-ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
  .earlier a:hover { text-decoration: underline; }
  @media (max-width: 900px) { .earlier { grid-template-columns: 1fr; gap: 12px; } .earlier ul { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .earlier ul { grid-template-columns: 1fr; } }

  /* career timeline: a fine line with logos */
  .line-tl { margin-bottom: 44px; }
  .line-tl .logos, .line-tl .rail, .line-tl .ticks, .line-tl .side-lane { display: grid; grid-template-columns: repeat(22, 1fr); }
  .line-tl .logos { align-items: end; height: 52px; margin-bottom: 14px; }
  .line-tl .lg { display: flex; align-items: center; justify-content: center; gap: 8px; padding-inline: 6px; min-width: 0; }
  .line-tl .lg img { max-height: 26px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter .2s, opacity .2s; }
  .line-tl .lg:hover img { filter: none; opacity: 1; }
  .line-tl .lg.sa img { max-height: 22px; }
  .line-tl .lg-cisco img { max-height: 42px; }
  .line-tl .lg-sirin img { max-height: 20px; }
  .line-tl .lg.sa span, .line-tl .side-lane .lg span { font-family: var(--display); font-weight: 700; font-size: 0.92rem; letter-spacing: -0.01em; white-space: nowrap; }
  .line-tl .side-lane .lg span { font-weight: 500; font-size: 0.8rem; color: var(--mute); }
  .line-tl .rail { position: relative; height: 24px; align-items: center; }
  .line-tl .rail::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--rule); }
  .line-tl .ten { position: relative; height: 2px; background: var(--ink); margin-top: 0; }
  .line-tl .ten::before, .line-tl .ten::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-sizing: border-box; }
  .line-tl .ten::before { left: -4px; } .line-tl .ten::after { right: -4px; }
  .line-tl .ten.cur { background: var(--cobalt); } .line-tl .ten.cur::before, .line-tl .ten.cur::after { border-color: var(--cobalt); }
  .line-tl .ten.cur::after { background: var(--cobalt); }
  .line-tl .ticks { font-family: var(--display); font-size: 0.8rem; color: var(--mute); margin-top: 4px; font-variant-numeric: tabular-nums; }
  .line-tl .ticks span { border-left: 1px solid var(--rule); padding-left: 6px; line-height: 1.2; }
  .line-tl .side-lane { margin-top: 22px; row-gap: 12px; }
  .line-tl .side-lane .ten.side { height: 1px; background: var(--marker-ink); opacity: 0.6; }
  .line-tl .side-lane .ten.side::before, .line-tl .side-lane .ten.side::after { top: -3px; border-color: var(--marker-ink); width: 7px; height: 7px; }
  .line-tl .side-lane .ten.side::after { display: none; }
  .line-tl .side-lane .lg { justify-content: flex-start; padding-inline: 0; }
  .line-tl .side-lane .lg img { max-height: 16px; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .line-tl .lg img { filter: grayscale(1) invert(1) brightness(1.15); } :root:not([data-theme="light"]) .line-tl .lg:hover img { filter: invert(1) brightness(1.1); } }
  :root[data-theme="dark"] .line-tl .lg img { filter: grayscale(1) invert(1) brightness(1.15); }
  :root[data-theme="dark"] .line-tl .lg:hover img { filter: invert(1) brightness(1.1); }
  @media (max-width: 820px) { .line-tl { display: none; } }

  .career { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
  .career li { display: grid; grid-template-columns: 130px 1.1fr 2fr; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--rule); align-items: baseline; }
  .career .yrs { font-family: var(--display); font-size: 0.9rem; color: var(--mute); font-variant-numeric: tabular-nums; }
  .career h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
  .career h3 span { display: block; font-weight: 500; color: var(--cobalt-ink); font-size: 0.95rem; margin-top: 2px; }
  .career p { color: var(--ink-2); font-size: 1.02rem; max-width: 56ch; }
  .career li.side .yrs::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--marker); border-radius: 2px; margin-right: 8px; }
  .edu { margin-top: 20px; font-family: var(--display); font-size: 0.92rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px 32px; }
  .edu b { color: var(--ink); font-weight: 600; }
  @media (max-width: 820px) {
    .tl .seg { font-size: 0; padding: 0; }
    .career li { grid-template-columns: 1fr; gap: 6px; }
  }

  /* community block */
  .community { margin-top: 40px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; padding-top: 28px; border-top: 2px solid var(--ink); }
  .community .big b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--cobalt-ink); font-variant-numeric: tabular-nums; }
  .community .big span { display: block; font-family: var(--display); font-size: 0.9rem; color: var(--mute); margin-top: 8px; max-width: 18ch; }
  .community h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
  .community p { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; margin-top: 10px; }
  .community a { color: var(--cobalt-ink); text-decoration: none; font-family: var(--display); font-weight: 600; }
  .community a:hover { text-decoration: underline; }
  @media (max-width: 760px) { .community { grid-template-columns: 1fr; gap: 16px; } }

  /* method */

  /* offers */
  .offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 2px solid var(--ink); }
  .offers li { padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
  .offers li strong { font-family: var(--display); font-weight: 700; display: block; font-size: 1.2rem; letter-spacing: -0.015em; }
  .offers li span { color: var(--ink-2); font-size: 1.05rem; display: block; max-width: 46ch; margin-top: 8px; }
  .offers li a { color: var(--cobalt-ink); text-decoration: none; font-family: var(--display); font-weight: 600; }
  .offers li a:hover { text-decoration: underline; }
  .offers-cta { margin-top: 32px; }
  @media (max-width: 820px) { .offers { grid-template-columns: 1fr; } }

  /* offers: two lanes (retired) */
  .lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
  .lane { padding: 34px 0 40px; position: relative; }
  .lane + .lane { border-left: 1px solid var(--rule); padding-left: 40px; }
  .lane h3 { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
  .lane .for { font-family: var(--display); font-size: 0.9rem; color: var(--mute); margin-top: 6px; }
  .lane ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
  .lane li strong { font-family: var(--display); font-weight: 600; display: block; font-size: 1.08rem; letter-spacing: -0.01em; }
  .lane li span { color: var(--ink-2); font-size: 1.02rem; display: block; max-width: 44ch; }
  .lane .btn { margin-top: 28px; }
  .lane.active::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 4px; background: var(--cobalt); }
  .lane.active h3 { color: var(--cobalt-ink); }
  @media (max-width: 820px) {
    .lanes { grid-template-columns: 1fr; }
    .lane + .lane { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
    .lane.active::before { top: -1px; }
    .lane:first-child.active::before { top: -2px; }
  }

  /* now + resources */

  /* contact */
  .contact { padding-block: 96px 80px; border-top: 1px solid var(--rule); }
  .contact h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; line-height: 0.98; max-width: 14ch; }
  .contact .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 36px; align-items: start; }
  .contact .grid > p { grid-column: 1 / 6; color: var(--ink-2); font-size: 1.12rem; max-width: 42ch; }
  .channels { grid-column: 7 / 13; display: grid; gap: 0; }
  .ch { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding-block: 16px; border-top: 1px solid var(--rule); font-family: var(--display); }
  .ch:last-child { border-bottom: 1px solid var(--rule); }
  .ch .k { color: var(--mute); font-size: 0.9rem; }
  .ch .v { font-weight: 600; font-size: 1.05rem; user-select: all; overflow-wrap: anywhere; }
  .ch a.v { text-decoration: none; }
  .ch a.v:hover { color: var(--cobalt); }
  .copy { appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); font: 500 0.85rem var(--display); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
  .copy:hover { border-color: var(--cobalt); color: var(--cobalt); }
  @media (max-width: 900px) { .contact .grid > p, .channels { grid-column: 1 / -1; } .ch { grid-template-columns: 90px 1fr auto; } }

  footer { padding-block: 28px 40px; border-top: 1px solid var(--rule); font-family: var(--display); font-size: 0.85rem; color: var(--mute); }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .social { display: flex; gap: 6px; }
  .social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); }
  .social a:hover { color: var(--cobalt); border-color: var(--cobalt); }


  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .seg .thumb, .swap, .btn { transition: none; }
  }

  @media print {
    :root { --paper: #fff; --paper-2: #f3f3f3; --ink: #000; --ink-2: #222; --mute: #555; --rule: #bbb; --cobalt: #1a33b8; --cobalt-ink: #1a33b8; }
    .nav, .switch-block, .ctas, .copy, .fw-cta, footer span:last-child { display: none !important; }
    section.block, .hero, .contact { padding-block: 28px; break-inside: avoid-page; }
    .row summary { cursor: default; }
    .phint { display: none !important; }
    .row .more { display: grid !important; }
    details:not([open]) .more { display: grid; }
    .row .more a[href^="#"], .fw-table td:last-child { display: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
    .pname a::after, .ch a::after, .wr a::after, .wr-pubs a::after { content: none; }
    .heat svg { max-width: 100%; }
    h1 { font-size: 2.4rem; }
  }

  /* ---------- about page ---------- */
  .about-hero .lede { grid-column: 1 / 9; }
  @media (max-width: 900px) { .about-hero .lede { grid-column: 1 / -1; } }
  .about-earlier .earlier { margin-top: 0; }
  .about-elsewhere { padding-top: 0; }
  .about-elsewhere .earlier { margin-top: 0; }
  /* ---------- quiet pointer to the about page ---------- */
  .creator { padding-block: 40px; border-top: 1px solid var(--rule); }
  .creator p { font-family: var(--display); font-size: 1.05rem; color: var(--ink-2); max-width: 70ch; }
  .creator a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--cobalt); white-space: nowrap; }
  .creator a:hover { color: var(--cobalt); }

  /* ---------- how I work: four buckets ---------- */
  .buckets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .bucket { border-top: 2px solid var(--ink); padding-top: 18px; }
  .bucket .rhyme { font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
  .bucket.blue { border-top-color: var(--cobalt); }
  .bucket.blue .rhyme { color: var(--cobalt); }
  .bucket h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; margin-top: 4px; }
  .bucket .claim { color: var(--ink-2); font-size: 1.05rem; margin-top: 8px; max-width: 46ch; }
  .bucket ul { list-style: none; margin: 18px 0 0; padding: 0; }
  .bucket li { padding-block: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
  .bucket li b { color: var(--ink); font-family: var(--display); font-weight: 600; }
  .bucket li code { display: inline-block; font-size: 0.78rem; color: var(--mute); background: color-mix(in srgb, var(--rule) 45%, transparent); padding: 1px 6px; border-radius: 4px; margin-left: 2px; overflow-wrap: anywhere; }
  @media (max-width: 900px) { .buckets { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
  .bucket { min-width: 0; }
  .bucket li.featured .snippet { margin: 12px 0 2px; padding: 14px 16px; border-radius: 8px; background: color-mix(in srgb, var(--rule) 40%, transparent); border-left: 3px solid var(--cobalt); overflow-x: auto; }
  .bucket li.featured .snippet code { display: block; background: none; padding: 0; margin: 0; font-size: 0.74rem; line-height: 1.55; color: var(--ink-2); white-space: pre; overflow-wrap: normal; }

  /* ---------- writing: lead story and headline list ---------- */
  .wr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .wr-lead { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 20px; text-decoration: none; color: inherit; }
  .wr-lead img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
  .wr-lead h3 { font-size: 1.55rem; font-weight: 700; line-height: 1.12; margin: 6px 0 8px; }
  .wr-lead:hover h3 { color: var(--cobalt); }
  .wr-kick { font-family: var(--display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cobalt); }
  .wr-kick span { color: var(--mute); margin-left: 10px; }
  .wr-dek { color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
  .wr-more { display: inline-block; margin-top: 10px; font-family: var(--display); font-size: 0.88rem; font-weight: 600; border-bottom: 1px solid var(--cobalt); }
  .wr-heads { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
  .wr-heads a { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
  .wr-hl { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.3; }
  .wr-dt { font-family: var(--display); font-size: 0.8rem; color: var(--mute); white-space: nowrap; }
  .wr-heads a:hover .wr-hl { color: var(--cobalt); }
  .wr-pubs { font-family: var(--display); font-size: 0.92rem; color: var(--mute); margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .wr-pubs span { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; margin-right: 6px; }
  .wr-pubs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--cobalt); }
  @media (max-width: 900px) { .wr { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
  @media (max-width: 600px) { .wr-lead { grid-template-columns: minmax(0, 1fr); } }


/* ======== mock: review round 2 ======== */
/* hero portrait slot */
.hero-grid.has-portrait { grid-template-rows: auto auto 1fr; }
.hero-grid.has-portrait h1 { grid-column: 1 / 8; grid-row: 1; }
.hero-grid.has-portrait .lede { grid-column: 1 / 8; grid-row: 2; align-self: start; }
/* the buttons sit under the lede, beside the portrait, so they stay on the first screen of a laptop */
.hero-grid.has-portrait .hero-ctas { grid-column: 1 / 8; grid-row: 3; align-self: start; margin-top: 12px; }
.hero-portrait { grid-column: 8 / 13; grid-row: 1 / 4; align-self: start; margin: 0; }
.portrait-slot { aspect-ratio: 1; width: 100%; border-radius: 14px; background: var(--cobalt-soft); border: 1px dashed var(--cobalt); display: grid; place-content: center; text-align: center; color: var(--cobalt-ink); font-family: var(--display); }
.portrait-slot span { font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.portrait-slot small { display: block; margin-top: 10px; font-size: 0.78rem; opacity: 0.8; line-height: 1.35; }
@media (max-width: 900px) {
  /* headline first; the portrait floats at the right of the lede and the text wraps round it */
  .hero-grid.has-portrait { display: block; }
  .hero-grid.has-portrait h1 { margin-bottom: 22px; }
  .hero-grid.has-portrait .hero-ctas { margin-top: 36px; }
  .hero-portrait { float: right; width: clamp(118px, 28vw, 220px); margin: 6px 0 6px 14px; }
  .portrait-slot small { display: none; }
  .portrait-slot span { font-size: 2.2rem; }
}

/* phone nav: one-row bar; the links live in a panel that drops from the bar (menu button in the corner) */
@media (max-width: 760px) {
  .avail { display: none; }
  .nav .wrap { padding-block: 12px; }
  .nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; } /* a filter would trap the panel */
  .menu-btn { display: inline-flex; appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink); width: 36px; height: 36px; border-radius: 999px; cursor: pointer; align-items: center; justify-content: center; flex: none; }
  .menu-btn .x, .menu-open .menu-btn .ham { display: none; }
  .menu-open .menu-btn .x { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0; padding: 6px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -20px rgba(0,0,0,.35); font-size: 1.15rem; font-weight: 600; }
  .menu-open .nav-links { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: 13px 0; color: var(--ink); }
  .nav-links li.menu-avail { display: flex; align-items: center; gap: 8px; padding: 12px 0 10px; font-size: 0.85rem; font-weight: 500; color: var(--mute); }
  .menu-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }
}
}

/* ledger affordance: chevron beside the product name */
.pname .chev { width: 10px; height: 10px; border-right: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: none; align-self: center; margin-right: 2px; }
/* product mark under the name: a one-colour mask painted with the ink token (::before), and the
   real brand colours (::after) that fade in while the row is hovered. --cd is a dark-theme variant. */
.pname .pmark { width: var(--w, 44px); height: var(--h, 44px); flex: none; margin-top: 14px; position: relative; }
.pname .pmark::before, .pname .pmark::after { content: ""; position: absolute; inset: 0; transition: opacity .25s ease; }
.pname .pmark::before { background: var(--ink); -webkit-mask: var(--m) left center / contain no-repeat; mask: var(--m) left center / contain no-repeat; }
.pname .pmark::after { background: var(--c) left center / contain no-repeat; opacity: 0; }
.row:hover .pname .pmark::before { opacity: 0; }
.row:hover .pname .pmark::after { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pname .pmark::after { background-image: var(--cd, var(--c)); } }
:root[data-theme="dark"] .pname .pmark::after { background-image: var(--cd, var(--c)); }
@media (hover: none) { .row:hover .pname .pmark::before { opacity: 1; } .row:hover .pname .pmark::after { opacity: 0; } }
.row[open] .pname .chev { transform: rotate(-135deg) translate(-3px, -3px); }
.row summary:hover .pname .chev { border-color: var(--ink); }
.row[open] summary { padding-bottom: 12px; }
/* expand hint under each row's description: a circled plus that turns to minus when open */
.phint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--display); font-size: 0.9rem; font-weight: 600; color: var(--cobalt-ink); width: fit-content; }
.phint i { position: relative; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.phint i::before, .phint i::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s; }
.phint i::before { width: 8px; height: 1.5px; }
.phint i::after { width: 1.5px; height: 8px; }
.row[open] .phint i::after { transform: translate(-50%, -50%) scaleY(0); }
.phint .hide, .row[open] .phint .show { display: none; }
.row[open] .phint .hide { display: inline; }
.row summary:hover .phint .show, .row summary:hover .phint .hide { text-decoration: underline; text-underline-offset: 3px; }

/* full-bleed band for the flywheel, the one section that breaks the ledger rhythm */
section.block.band { background: var(--paper-2); }
@media (min-width: 901px) { .fw { grid-template-columns: 4fr 8fr; gap: 56px; } }
.fw-table table { background: transparent; }
.fw-table th { border-bottom-color: var(--ink); }

/* section heads: kicker above, dek below (option 1) */
.sec-head { display: block; }
.sec-head .kick { font-family: var(--display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 12px; }
.sec-head .dek { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); max-width: 58ch; margin-top: 14px; }

/* the loop figure: forward pass over four layers, backward pass under them */
.fw-fig { margin: 0 0 40px; }
.fw-fig .scroll { overflow-x: auto; }
.fw-fig svg { display: block; width: 100%; min-width: 860px; height: auto; color: var(--ink); font-family: var(--display); }
.fw-fig figcaption { font-family: var(--display); font-size: 0.9rem; color: var(--mute); margin-top: 12px; max-width: 80ch; }
.fw-fig .box { fill: var(--paper); stroke: currentColor; stroke-width: 1.5; }
.fw-fig .box.key { stroke: var(--cobalt); stroke-width: 2; }
.fw-fig .box.soft { fill: var(--cobalt-soft); stroke: var(--cobalt); stroke-width: 1; }
.fw-fig .box.ghost { fill: none; stroke-dasharray: 4 4; }
.fw-fig .t { fill: currentColor; stroke: none; font-size: 13px; font-weight: 700; }
.fw-fig .s { fill: currentColor; stroke: none; font-size: 11.5px; opacity: 0.75; }
.fw-fig .l { fill: currentColor; stroke: none; font-size: 11px; opacity: 0.85; }
.fw-fig .k { fill: var(--cobalt-ink); stroke: none; font-size: 11px; font-weight: 600; }
.fw-fig .ln { stroke: currentColor; stroke-width: 1.5; fill: none; }
.fw-fig .ln.key { stroke: var(--cobalt); stroke-width: 2; }
.fw-fig .ln.dash { stroke-dasharray: 4 4; }
.fw-fig .lane-t { fill: currentColor; stroke: none; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.fw-fig .lane-t.key { fill: var(--cobalt-ink); opacity: 1; }
.fw { display: block; }
.fw .lead { max-width: 62ch; }

/* hero portrait: a one-colour sketch stored as an alpha mask, so it takes the cobalt token in both themes */
.portrait-card { width: 100%; }
.portrait { aspect-ratio: 3 / 4; width: 100%; background: var(--cobalt); -webkit-mask: url(assets/portrait.webp) center / contain no-repeat; mask: url(assets/portrait.webp) center / contain no-repeat; }
/* dark theme: hatching only reads on a light ground, so the drawing sits on a paper card that fades with it */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portrait-card { background: #EAECF3; border-radius: 14px; overflow: hidden; } :root:not([data-theme="light"]) .portrait { background: #2140E6; } }
:root[data-theme="dark"] .portrait-card { background: #EAECF3; border-radius: 14px; overflow: hidden; }
:root[data-theme="dark"] .portrait { background: #2140E6; }

/* flow: the engine section points to the pattern page only; product rows carry a plain line on what they learn */
.fw-foot { margin-top: 28px; font-family: var(--display); font-size: 1rem; color: var(--ink-2); max-width: 62ch; }
.fw-foot a { color: var(--cobalt-ink); font-weight: 600; text-decoration: none; }
.fw-foot a:hover { text-decoration: underline; }
.row .more .tale { grid-column: 2 / 4; margin-top: 4px; color: var(--ink-2); font-size: 1rem; max-width: 70ch; border-left: 3px solid var(--cobalt); padding-left: 12px; }
.row .more .tale b { font-family: var(--display); font-weight: 600; color: var(--ink); }
@media (max-width: 820px) { .row .more .tale { grid-column: 1; } }
.method-foot { margin-top: 32px; font-family: var(--display); font-size: 1rem; color: var(--ink-2); }
.method-foot a { color: var(--cobalt-ink); font-weight: 600; text-decoration: none; }
.method-foot a:hover { text-decoration: underline; }

/* calendar opens the Work section: rule and air between its caption and the section kicker */
#work .heat { margin: 0 0 72px; padding-top: 0; border-top: 0; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
