/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/instrumentsans-normal-400_700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/instrumentsans-normal-400_700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/spectral-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/spectral-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/spectral-normal-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/spectral-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* saidnadeem.com — one stylesheet, no framework.
   Palette: cool lab-bench white and blue-black ink; the eight product families take the colours of a
   universal pH indicator (red → violet). Dark mode is the "UV lamp": deep ink background, families fluoresce. */

:root {
  --paper: #f1f4f3;
  --paper-2: #e4eae8;
  --ink: #172133;
  --ink-2: #485365;
  --ink-3: #667082;
  --rule: #c8d1d3;
  --link: #1f4e8c;
  --f1: #b83a33;
  --f2: #ad5f16;
  --f3: #8a6a0c;
  --f4: #2c7a43;
  --f5: #0e7573;
  --f6: #2a5caa;
  --f7: #4b42a0;
  --f8: #87398f;
  --tint: 13%;
  --glow: 0;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1426;
    --paper-2: #151d34;
    --ink: #e6eaf2;
    --ink-2: #b0b9ca;
    --ink-3: #8a93a6;
    --rule: #2a3450;
    --link: #9fbcff;
    --f1: #ff7d71;
    --f2: #ffa95a;
    --f3: #f0cc4c;
    --f4: #6fd98c;
    --f5: #4fd7d0;
    --f6: #89adff;
    --f7: #ab9fff;
    --f8: #e48df2;
    --tint: 15%;
    --glow: 1;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--serif);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; font: 500 0.9375rem var(--sans); z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.mark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--sans); letter-spacing: 0.005em; }
.mark-tile { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 3px; background: var(--ink); color: var(--paper); font: 650 0.9375rem/1 var(--sans); letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font: 500 0.9375rem/1.4 var(--sans); }
.nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.nav .lang a { color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 3px 9px; }
.nav .lang a:hover { border-color: var(--ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 9vw, 104px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 {
  margin: 0 0 0.35em;
  font: 500 clamp(2.75rem, 7vw, 4.75rem)/1.02 var(--serif);
  letter-spacing: -0.018em;
  font-variant-numeric: lining-nums;
}
.lead { max-width: 33em; margin: 0; font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.55; color: var(--ink); }

/* The reaction scheme: starting material → product, reagents over the arrow, conditions under it. */
.scheme {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 0 22px;
  max-width: 900px;
  margin: clamp(40px, 6vw, 64px) 0 clamp(36px, 5vw, 52px);
  padding: 0;
}
.cpd { display: flex; flex-direction: column; gap: 6px; }
.cpd-name { font: 500 clamp(1.375rem, 2.6vw, 1.75rem)/1.15 var(--serif); }
.cpd-no { font: 600 0.8125rem/1.3 var(--sans); color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.rxn { display: grid; grid-template-rows: auto 14px auto; gap: 6px; text-align: center; font: 500 0.8125rem/1.35 var(--sans); color: var(--ink-2); }
.rxn-line { position: relative; align-self: center; height: 1.5px; background: var(--ink); transform-origin: left center; animation: draw 1.1s cubic-bezier(.6, .05, .2, 1) .25s both; }
.rxn-line::after { content: ""; position: absolute; right: -1px; top: 50%; width: 0; height: 0; border-left: 13px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transform: translateY(-50%); }
.rxn-over, .rxn-under { animation: rise .6s ease-out 1.05s both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawv { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rxn-line, .rxn-over, .rxn-under { animation: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 3px; color: var(--ink); font: 600 0.9375rem/1 var(--sans); text-decoration: none; }
.btn:hover { background: var(--paper-2); text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* ---------- sections ---------- */
.sec {
  padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(16px, 3vw, 24px);
  /* the rule spans the text column, not the gutters */
  background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.sec h2 { margin: 0 0 14px; font: 500 clamp(1.875rem, 3.6vw, 2.5rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.intro { max-width: 36em; margin: 0 0 36px; color: var(--ink-2); }
.sec h3 { margin: 0 0 6px; font: 600 1.0625rem/1.3 var(--sans); }
.meta { margin: 0 0 10px; font: 500 0.875rem/1.4 var(--sans); color: var(--ink-3); font-variant-numeric: lining-nums; }

/* ---------- the table of products ---------- */
.fam-1 { --fc: var(--f1); } .fam-2 { --fc: var(--f2); } .fam-3 { --fc: var(--f3); } .fam-4 { --fc: var(--f4); }
.fam-5 { --fc: var(--f5); } .fam-6 { --fc: var(--f6); } .fam-7 { --fc: var(--f7); } .fam-8 { --fc: var(--f8); }

.ptable { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 32px; align-items: start; }
.families { margin: 0; padding: 0; list-style: none; }
.family { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: start; padding: 5px 0; }
.family-name { margin: 0; padding-top: 10px; font: 600 0.875rem/1.3 var(--sans); color: var(--fc); }
.family-name span { display: block; font-weight: 500; color: var(--ink-3); }
.tiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 84px; height: 84px; padding: 8px 8px 7px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--fc) var(--tint), var(--paper));
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.sym { font: 650 1.875rem/1 var(--sans); letter-spacing: -0.015em; color: var(--fc); }
@media (prefers-color-scheme: dark) { .sym { text-shadow: 0 0 14px color-mix(in srgb, var(--fc) 55%, transparent); } }
.tile .nm { font: 500 0.6875rem/1.2 var(--sans); font-stretch: 86%; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .nm-f, .tile .tg, .tile .pf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tile:hover, .tile:focus-visible { background: var(--fc); text-decoration: none; }
.tile:hover .sym, .tile:focus-visible .sym,
.tile:hover .nm, .tile:focus-visible .nm { color: var(--paper); text-shadow: none; }
/* the tile shown in the detail panel (wide screens only; narrow screens have no panel) */
@media (min-width: 1101px) {
  .tile.is-on { background: var(--fc); }
  .tile.is-on .sym, .tile.is-on .nm { color: var(--paper); text-shadow: none; }
}
.tile:focus-visible { outline-color: var(--fc); }

/* The detail panel sits where the enlarged element sits in a printed periodic table. */
.inspector { position: sticky; top: 24px; }
.insp-tile { display: flex; flex-direction: column; justify-content: space-between; width: 100%; aspect-ratio: 1 / 1; max-width: 256px; padding: 18px 18px 16px; border-radius: 4px; background: color-mix(in srgb, var(--fc) var(--tint), var(--paper)); border-top: 4px solid var(--fc); }
.insp-fam { font: 600 0.8125rem/1.3 var(--sans); color: var(--fc); }
.insp-sym { font: 650 5.5rem/0.9 var(--sans); letter-spacing: -0.03em; color: var(--fc); }
@media (prefers-color-scheme: dark) { .insp-sym { text-shadow: 0 0 28px color-mix(in srgb, var(--fc) 50%, transparent); } }
.insp-nm { font: 500 1.375rem/1.15 var(--serif); }
.insp-tg { margin: 16px 0 8px; font-size: 1.0625rem; line-height: 1.5; }
.insp-pf, .insp-host { margin: 0; font: 500 0.875rem/1.45 var(--sans); color: var(--ink-3); }
.insp-host { color: var(--ink-2); }

.ptable-note { margin: 28px 0 0; font: 500 0.875rem/1.5 var(--sans); color: var(--ink-3); }

/* ---------- companies ---------- */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1100px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols p { margin: 0 0 10px; }
.co { border-top: 3px solid var(--ink); padding-top: 18px; }
.co.past { border-top-color: var(--rule); }
.co a { font: 500 0.9375rem var(--sans); }

/* ---------- research ---------- */
.research { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.research .intro { margin-bottom: 18px; }
.research .meta + h3 { margin-top: 28px; }
.profiles { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.profiles a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink); font: 500 0.875rem var(--sans); text-decoration: none; }
.profiles a:hover { border-color: var(--ink); }
.themes { margin: 20px 0 0; padding: 0; list-style: none; }
.themes li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.themes li:first-child { border-top: 1px solid var(--rule); }
.pubs-h { margin: 0 0 4px; font: 600 1.0625rem/1.3 var(--sans); }
.pubs { margin: 12px 0 0; padding: 0; list-style: none; }
.pubs li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.yr { font: 600 0.875rem/1.65 var(--sans); color: var(--ink-3); font-variant-numeric: lining-nums tabular-nums; }
.pub-t { display: block; font-size: 1.0625rem; line-height: 1.45; }
.pub-t a { color: var(--ink); text-decoration-color: var(--rule); }
.pub-t a:hover { text-decoration-color: var(--ink); }
.pub-a { display: block; margin-top: 4px; font: 400 0.8125rem/1.45 var(--sans); color: var(--ink-3); }
.pub-a b { font-weight: 600; color: var(--ink-2); }
.pub-j { display: block; margin-top: 2px; font: 400 0.875rem/1.45 var(--sans); color: var(--ink-3); }
.pub-j i { font-style: italic; color: var(--ink-2); }
.more { margin: 18px 0 0; font: 500 0.9375rem var(--sans); }

/* ---------- path (a real sequence, so the years carry it) ---------- */
.path { max-width: 860px; margin: 0; padding: 0; list-style: none; }
.path li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.path li:first-child { border-top: 1px solid var(--rule); }
.path .yr { font-size: 0.9375rem; }
.path b { font-weight: 600; }
.path span { display: block; color: var(--ink-2); font-size: 1rem; }

/* ---------- recognition ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 16px 0; border-top: 1px solid var(--rule); }
.facts b { display: block; font: 600 1rem/1.35 var(--sans); margin-bottom: 4px; }
.facts span { display: block; color: var(--ink-2); font-size: 1rem; }

/* ---------- contact + footer ---------- */
.contact { padding-bottom: clamp(56px, 8vw, 96px); }
.contact-line { margin: 0 0 28px; font: 400 clamp(1.5rem, 3.2vw, 2.25rem)/1.25 var(--serif); max-width: 24em; }
.contact-line a { color: var(--ink); text-decoration-color: var(--fc, var(--f6)); text-decoration-thickness: 2px; }
.foot { padding-top: 22px; padding-bottom: 40px; background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; font: 400 0.8125rem/1.6 var(--sans); color: var(--ink-3); }
.foot p { margin: 0 0 6px; max-width: 60em; }
.foot a { color: var(--ink-2); }

/* ---------- 404 ---------- */
.lost { padding-top: 12vh; padding-bottom: 18vh; }
.lost .sym { font-size: 5rem; color: var(--f1); }

/* ---------- smaller screens: the table becomes a list ---------- */
@media (max-width: 1100px) {
  .ptable { grid-template-columns: minmax(0, 1fr); }
  .inspector { display: none; }
  .family { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 0 26px; }
  .family-name { padding-top: 0; font-size: 0.9375rem; }
  .family-name span { display: inline; margin-left: 6px; }
  .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
  .tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; width: auto; height: auto; min-height: 72px; padding: 10px 14px 10px 10px; }
  .tile .sym { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 3px; background: color-mix(in srgb, var(--fc) 18%, var(--paper)); font-size: 1.5rem; }
  .tile .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .tile .nm { font-size: 1rem; font-stretch: 100%; font-weight: 600; color: var(--ink); white-space: normal; }
  .tile .nm-s { display: none; }
  .tile .nm-f, .tile .tg { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; font: 400 0.875rem/1.4 var(--sans); color: var(--ink-2); }
  .tile:hover .tg, .tile:focus-visible .tg { color: var(--paper); }
  .tile:hover .sym, .tile:focus-visible .sym { background: transparent; }
  .research { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; }
  .top { padding-top: 16px; padding-bottom: 8px; }
  .nav { gap: 2px 16px; font-size: 0.875rem; }
  .scheme { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* the arrow turns vertical: reagents and conditions sit to its right */
  .rxn { grid-template-columns: 14px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 4px 14px; min-height: 76px; padding: 4px 0 4px 8px; text-align: left; }
  .rxn-line { grid-column: 1; grid-row: 1 / span 2; justify-self: center; align-self: stretch; width: 1.5px; height: auto; transform-origin: center top; animation-name: drawv; }
  .rxn-line::after { right: auto; top: auto; left: 50%; bottom: -1px; border-top: 13px solid var(--ink); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; transform: translateX(-50%); }
  .rxn-over { grid-column: 2; grid-row: 1; align-self: end; }
  .rxn-under { grid-column: 2; grid-row: 2; align-self: start; }
  .cols, .facts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .facts { gap: 0; }
  .path li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .pubs li { grid-template-columns: 3em minmax(0, 1fr); gap: 10px; }
}

@media print {
  .nav, .actions, .inspector, .skip { display: none !important; }
  .sec { break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* ======================================================================
   Services: home grid, hub and service pages
   ====================================================================== */
.btn-quiet { border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink); background: transparent; }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.svc { padding: 18px 0 26px; border-top: 3px solid var(--fc); }
.svc h2, .svc h3 { margin: 0 0 8px; font: 600 1.1875rem/1.3 var(--sans); }
.svc h2 a, .svc h3 a { color: var(--ink); text-decoration-color: var(--fc); text-decoration-thickness: 2px; }
.svc p { margin: 0 0 8px; font-size: 1rem; line-height: 1.55; }
.svc .svc-ex { margin: 0; font: 500 0.8125rem/1.45 var(--sans); color: var(--ink-3); }
.sec > .more { margin-top: 14px; }

.crumbs { padding-top: 6px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font: 500 0.8125rem/1.4 var(--sans); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { margin: 0 0 0.4em; max-width: 16em; font: 500 clamp(2.25rem, 5.4vw, 3.75rem)/1.05 var(--serif); letter-spacing: -0.015em; }
.page-hero .lead { margin-bottom: 32px; }

.build { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.build > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.build dt { margin: 0 0 4px; font: 600 1.0625rem/1.35 var(--sans); }
.build dd { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

.proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.proof-item { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 14px 10px 10px; border-radius: 3px; background: color-mix(in srgb, var(--fc) var(--tint), var(--paper)); color: var(--ink); text-decoration: none; }
.proof-item .sym { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 3px; background: color-mix(in srgb, var(--fc) 18%, var(--paper)); font-size: 1.5rem; }
.proof-item .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proof-item .nm { font: 600 1rem/1.3 var(--sans); }
.proof-item .tg { font: 400 0.875rem/1.4 var(--sans); color: var(--ink-2); }
.proof-item .host { font: 500 0.75rem/1.4 var(--sans); color: var(--ink-3); }
.proof-item:hover { background: var(--fc); text-decoration: none; }
.proof-item:hover .nm, .proof-item:hover .tg, .proof-item:hover .host, .proof-item:hover .sym { color: var(--paper); text-shadow: none; }
.proof-item:hover .sym { background: transparent; }
.proof-item:focus-visible { outline-color: var(--fc); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding: 16px 0 8px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font: 600 2rem/1 var(--serif); color: var(--fc, var(--ink-3)); font-variant-numeric: lining-nums; }
.steps b { display: block; margin-bottom: 4px; font: 600 1.0625rem/1.35 var(--sans); }
.steps span { display: block; color: var(--ink-2); font-size: 1rem; }
.contract { max-width: 44em; margin: 28px 0 0; font: 400 0.9375rem/1.55 var(--sans); color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 12px; border: 1px solid var(--rule); border-radius: 3px; font: 500 0.875rem/1.3 var(--sans); }

.faq { max-width: 860px; margin: 0; }
.faq > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.faq dt { margin: 0 0 6px; font: 600 1.0625rem/1.35 var(--sans); }
.faq dd { margin: 0; color: var(--ink-2); }

.cta-block .contact-line { max-width: 28em; }
.others { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.others a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-left: 3px solid var(--fc); background: color-mix(in srgb, var(--fc) var(--tint), var(--paper)); color: var(--ink); font: 500 0.9375rem var(--sans); text-decoration: none; }
.others a:hover { background: var(--fc); color: var(--paper); }

.foot-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 14px; }
.foot-nav > a { font-weight: 600; color: var(--ink-2); }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .svc-grid, .build { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); }
}
