/* GeoLogic Digital — "Linked" (Option C, refined)
   Light, brand-led, calm. Outfit for display, Plus Jakarta Sans for text.
   Layout: one wide column; each division gets its own tinted band. */

:root {
  --bg: #F7F8F7;          /* page */
  --bg-2: #ECF0EE;        /* raised surfaces */
  --tint-web: #E1EEEE;    /* websites band */
  --tint-mine: #F4E8E1;   /* mining band */
  --text: #12201F;        /* 15.8:1 on --bg, ≥ 13.9:1 on tints */
  --text-2: #3E4F4D;      /* 8.1:1 · ≥ 7.2:1 on tints */
  --muted: #55625F;       /* 6.0:1 · ≥ 5.3:1 on tints */
  --web: #1A6B74;         /* teal text · 5.8:1 · ≥ 5.1:1 on tints */
  --mine: #A3421C;        /* copper text · 5.9:1 · ≥ 5.2:1 on tints */
  --web-fill: #8FDCE3;    /* graphics, button fills */
  --mine-fill: #F08A5D;
  --line: rgba(18, 32, 31, .12);
  --line-strong: rgba(18, 32, 31, .28);
  --ink-panel: #12201F;   /* footer panel */
  --on-panel: #EEF1EF;
  --muted-panel: #A9B8B5;

  --f-display: "Outfit", system-ui, sans-serif;
  --f-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  --step-2: clamp(2.2rem, 1.5rem + 3vw, 4.4rem);
  --step-3: clamp(1.8rem, 1.2rem + 2.8vw, 3.6rem);
  --step-4: clamp(3rem, 1.4rem + 6.6vw, 8rem);

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(5rem, 12vw, 9rem);
  --wrap: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--step-0)/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--web); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--text); color: var(--bg); padding: .7rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.light { font-weight: 300; }

/* ── bar ─────────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 44px; }
.brand-mark { width: clamp(38px, 3.2vw, 46px); height: auto; flex: none; }
.brand-word { font: 300 clamp(1.25rem, 1rem + .7vw, 1.6rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--web); white-space: nowrap; }
.brand-word b { font-weight: 500; color: var(--text); }
.brand-dark .brand-word { color: var(--web-fill); }
.brand-dark .brand-word b { color: var(--on-panel); }
.bar-actions { display: flex; align-items: center; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border-radius: 999px;
  font: 600 .95rem/1 var(--f-text); color: var(--bg); background: var(--text); border: 1px solid var(--text);
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s;
}
.pill:hover { background: var(--web); border-color: var(--web); }
.pill-quiet { background: transparent; color: var(--text); border-color: var(--line-strong); }
.pill-quiet:hover { color: var(--bg); }

/* ── menu ────────────────────────────────────────────────────────────── */
/* menu: a dropdown under the Menu button (native <details>, enhanced in main.js) */
.menu-wrap { position: relative; }
.menu-wrap > summary { list-style: none; gap: .5rem; user-select: none; }
.menu-wrap > summary::-webkit-details-marker { display: none; }
.chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.menu-wrap[open] .chev { transform: translateY(1px) rotate(225deg); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 40; width: min(330px, calc(100vw - 2rem));
  padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 48px -20px rgba(18, 32, 31, .35);
}
.menu-wrap[open] .dropdown { animation: dd-in .18s var(--ease); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
.dd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dd-list a {
  display: flex; align-items: center; min-height: 46px; padding: 0 .9rem; border-radius: 12px; text-decoration: none;
  font: 500 1.08rem/1.2 var(--f-display); letter-spacing: -.01em; color: var(--text); transition: background .15s, color .15s;
}
.dd-list a:hover { background: var(--bg-2); }
.dd-list a[aria-current="page"] { background: var(--tint-web); color: var(--web); }
.dd-foot { display: grid; gap: 0; margin-top: .4rem; padding: .5rem .9rem .3rem; border-top: 1px solid var(--line); }
.dd-foot a { display: flex; align-items: center; min-height: 36px; font-size: .88rem; color: var(--text-2); text-decoration: none; }
.dd-foot a:hover { color: var(--web); text-decoration: underline; }

/* ── type ────────────────────────────────────────────────────────────── */
.h2 { font: 500 var(--step-2)/1.02 var(--f-display); letter-spacing: -.035em; margin: 0 0 1.4rem; text-wrap: balance; }
.ch-digital .h2 .light { color: var(--web); }
.ch-mining .h2 .light { color: var(--mine); }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-text { min-width: 0; }
.hero-title { margin: 0; font: 500 clamp(2.9rem, 1.1rem + 4.9vw, 5.4rem)/.98 var(--f-display); letter-spacing: -.045em; text-wrap: balance; }
.hero-title span { display: block; }
.hero-copy { max-width: 34rem; margin: 1.8rem 0 0; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }

/* showcase: one card, two working demos (website · risk matrix) */
.showcase { width: 100%; max-width: 600px; justify-self: center; min-width: 0; }
.demo { background: #fff; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(18, 32, 31, .35); padding: .55rem; }
.demo-tabs { display: flex; gap: .3rem; padding: .2rem; background: var(--bg-2); border-radius: 20px; }
.demo-tabs [role="tab"] {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; border: 0; border-radius: 16px;
  background: transparent; color: var(--text-2); font: 600 .92rem/1 var(--f-text); cursor: pointer; transition: background .18s, color .18s;
}
.demo-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 2px 8px -4px rgba(18, 32, 31, .3); }
.demo-tabs [role="tab"]:hover { color: var(--text); }
.demo-panel { padding: .9rem .6rem .5rem; border-radius: 18px; }
.demo-note { margin: .8rem .2rem 0; font-size: .8rem; color: var(--muted); }

/* example website: an example client site with live controls */
.mock { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.cb-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .6rem; background: var(--bg-2); flex-wrap: wrap; }
.cb-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.cb-url { display: inline-flex; align-items: center; gap: .35rem; margin-left: .3rem; padding: .25rem .65rem; border-radius: 99px; background: #fff; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.cb-url b { font-weight: 500; color: var(--text-2); }
.lock { width: 8px; height: 7px; border-radius: 2px; background: var(--muted); position: relative; margin-top: 3px; }
.lock::before { content: ""; position: absolute; left: 1.5px; top: -4px; width: 5px; height: 5px; border: 1.5px solid var(--muted); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.device { margin-left: auto; display: flex; gap: 2px; padding: 2px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.device button, .switch, .swatches button { cursor: pointer; }
.device button { min-height: 30px; padding: 0 .6rem; border: 0; border-radius: 99px; background: transparent; color: var(--text-2); font: 600 .72rem/1 var(--f-text); }
.device button[aria-pressed="true"] { background: var(--text); color: #fff; }
.mock-screen { height: 318px; padding: .8rem; display: grid; justify-items: center; align-items: start; overflow: hidden; }

/* the example site itself: themable through its own tokens */
.site {
  --s-bg: #fff; --s-surface: #F2F5F4; --s-text: #12201F; --s-muted: #5A6765; --s-line: rgba(18,32,31,.12);
  --s-accent: #1A6B74; --s-on-accent: #fff; --s-tint: #E1EEEE;
  width: 100%; max-width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain;
  background: var(--s-bg); color: var(--s-text); border-radius: 10px; padding: .8rem 1rem 1rem;
  font-family: var(--f-text); scrollbar-width: thin;
  transition: max-width .35s var(--ease), border-radius .35s var(--ease), background-color .25s, color .25s;
}
.mock[data-accent="copper"] .site { --s-accent: #A3421C; --s-tint: #F4E8E1; }
.mock[data-accent="violet"] .site { --s-accent: #5B4BB5; --s-tint: #ECE9FB; }
.mock[data-accent="green"]  .site { --s-accent: #2F6B3F; --s-tint: #E3F0E6; }
.mock[data-theme="dark"] .site { --s-bg: #14211F; --s-surface: #1C2B29; --s-text: #EEF2F1; --s-muted: #A9B8B5; --s-line: rgba(238,242,241,.14); --s-on-accent: #14211F; }
.mock[data-theme="dark"][data-accent="teal"]   .site { --s-accent: #8FDCE3; --s-tint: #1F3A3D; }
.mock[data-theme="dark"][data-accent="copper"] .site { --s-accent: #F08A5D; --s-tint: #3A2A22; }
.mock[data-theme="dark"][data-accent="violet"] .site { --s-accent: #B9AEF5; --s-tint: #2D2A45; }
.mock[data-theme="dark"][data-accent="green"]  .site { --s-accent: #8FD3A0; --s-tint: #22362A; }
.mock[data-device="tablet"] .site { max-width: 400px; border-radius: 18px; box-shadow: 0 0 0 7px var(--text); }
.mock[data-device="phone"] .site { max-width: 220px; border-radius: 24px; box-shadow: 0 0 0 6px var(--text); padding: .8rem .8rem 1rem; }

.site-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.site-logo { display: inline-flex; align-items: center; gap: .35rem; font: 600 .9rem/1 var(--f-display); letter-spacing: -.02em; }
.site-logo i { width: 14px; height: 14px; border-radius: 4px; background: var(--s-accent); transition: background .25s; }
.site-links { display: flex; gap: 2px; }
.site-links button { min-height: 30px; padding: 0 .5rem; border: 0; border-radius: 8px; background: transparent; color: var(--s-muted); font: 600 .72rem/1 var(--f-text); cursor: pointer; }
.site-links button:hover { color: var(--s-text); }
.site-links button[aria-pressed="true"] { color: var(--s-accent); background: var(--s-tint); }
.mock[data-device="phone"] .site-nav { flex-direction: column; align-items: flex-start; }

.site-view[hidden] { display: none; }
.site-view { display: grid; gap: .8rem; }
.site-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: .8rem; align-items: center; }
.mock[data-device="phone"] .site-hero { grid-template-columns: 1fr; }
.site-kicker { margin: 0 0 .3rem; font-size: .66rem; font-weight: 600; color: var(--s-accent); text-transform: uppercase; letter-spacing: .06em; }
.site-h1 { margin: 0 0 .35rem; font: 600 clamp(1.1rem, .9rem + .7vw, 1.45rem)/1.05 var(--f-display); letter-spacing: -.03em; }
.site-h1.sm { font-size: 1.2rem; }
.site-p { margin: 0 0 .7rem; font-size: .74rem; line-height: 1.45; color: var(--s-muted); }
.site-btn { min-height: 34px; padding: 0 .9rem; border: 0; border-radius: 99px; background: var(--s-accent); color: var(--s-on-accent); font: 600 .74rem/1 var(--f-text); cursor: pointer; justify-self: start; transition: background .25s, color .25s, transform .15s; }
.site-btn:hover { transform: translateY(-1px); }
.site-art { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--s-tint); transition: background .25s; }
.site-art .sun { position: absolute; right: 16%; top: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #F2C14E; }
.site-art .hill { position: absolute; bottom: -30%; border-radius: 50%; }
.site-art .h1 { left: -20%; width: 90%; aspect-ratio: 1; background: var(--s-accent); opacity: .35; }
.site-art .h2 { right: -25%; width: 85%; aspect-ratio: 1; background: var(--s-accent); opacity: .6; }
.site-art .van { position: absolute; left: 22%; bottom: 14%; width: 46%; height: 26%; border-radius: 6px 14px 4px 4px; background: var(--s-bg); box-shadow: inset 0 -5px 0 var(--s-accent); }
.site-art .van b { position: absolute; right: 8%; top: 18%; width: 24%; height: 34%; border-radius: 3px 8px 2px 2px; background: var(--s-tint); }
.site-art .van::before, .site-art .van::after { content: ""; position: absolute; bottom: -18%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--s-text); box-shadow: 0 0 0 2px var(--s-bg); }
.site-art .van::before { left: 12%; } .site-art .van::after { right: 12%; }
.site-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.mock[data-device="phone"] .site-cards { grid-template-columns: 1fr; }
.site-cards li { display: grid; grid-template-columns: auto 1fr; column-gap: .45rem; align-items: center; padding: .55rem; border-radius: 10px; background: var(--s-surface); font-size: .7rem; transition: background .25s; }
.site-cards b { font-weight: 600; } .site-cards span { grid-column: 2; color: var(--s-muted); font-size: .64rem; }
.ic { grid-row: span 2; width: 22px; height: 22px; border-radius: 7px; background: var(--s-tint); position: relative; }
.ic::after { content: ""; position: absolute; inset: 6px; border: 2px solid var(--s-accent); }
.ic-clock::after { border-radius: 50%; } .ic-shield::after { border-radius: 2px 2px 8px 8px; } .ic-star::after { transform: rotate(45deg); inset: 7px; }
.site-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: 10px; background: var(--s-surface); font-size: .76rem; }
.site-list span { color: var(--s-accent); font-weight: 600; white-space: nowrap; }
.site-form { display: grid; gap: .3rem; }
.site-form label { font-size: .7rem; font-weight: 600; }
.site-form input { min-height: 34px; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-text); font: 400 .78rem/1.3 var(--f-text); margin-bottom: .3rem; }
.site-form input::placeholder { color: var(--s-muted); }
.site-form input[aria-invalid="true"] { border-color: #C2582F; box-shadow: inset 0 0 0 1px #C2582F; }
.site-form .site-btn { margin-top: .2rem; }
.site-err { margin: 0; font-size: .7rem; font-weight: 600; color: #C2582F; min-height: 0; }
.mock[data-theme="dark"] .site-err { color: #F08A5D; }
.site-err:empty, .site-ok:empty { display: none; }
.site-ok { margin: .2rem 0 0; padding: .5rem .7rem; border-radius: 8px; background: var(--s-tint); color: var(--s-accent); font-size: .74rem; font-weight: 600; }

/* accessibility check: numbered markers on the site, explained in the list below */
.mock[data-a11y="on"] [data-a11y-n] { position: relative; outline: 2px dashed #C2582F; outline-offset: 2px; }
.mock[data-a11y="on"] [data-a11y-n]::after {
  content: attr(data-a11y-n); position: absolute; right: -9px; top: -9px; z-index: 2;
  width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  background: #A3421C; color: #fff; font: 700 .62rem/1 var(--f-text); pointer-events: none;
}
.web-foot { display: grid; }
.web-foot > * { grid-area: 1 / 1; }
.a11y-list { visibility: hidden; list-style: none; margin: .7rem 0 0; padding: 0; counter-reset: a; columns: 2; column-gap: 1rem; font-size: .72rem; color: var(--text-2); }
.a11y-list li { counter-increment: a; display: flex; gap: .4rem; align-items: baseline; padding: .12rem 0; break-inside: avoid; }
.a11y-list li::before { content: counter(a); flex: none; width: 15px; height: 15px; border-radius: 50%; display: inline-grid; place-items: center; background: #A3421C; color: #fff; font: 700 .58rem/1 var(--f-text); transform: translateY(2px); }
.demo-panel:has(.mock[data-a11y="on"]) .a11y-list { visibility: visible; }
.demo-panel:has(.mock[data-a11y="on"]) .a11y-off { visibility: hidden; }
@media (max-width: 479px) { .a11y-list { columns: 1; } }

/* controls under the preview */
.mock-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .7rem; }
.tool { display: flex; align-items: center; gap: .5rem; }
.tool-label { font-size: .74rem; font-weight: 600; color: var(--text-2); }
.swatches { display: flex; gap: .3rem; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.swatches [data-accent-btn="teal"] { background: #1A6B74; } .swatches [data-accent-btn="copper"] { background: #A3421C; }
.swatches [data-accent-btn="violet"] { background: #5B4BB5; } .swatches [data-accent-btn="green"] { background: #2F6B3F; }
.switch { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .7rem 0 .4rem; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: 600 .74rem/1 var(--f-text); }
.switch span { width: 26px; height: 16px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch[aria-pressed="true"] span { background: var(--web); }
.switch[aria-pressed="true"] span::after { transform: translateX(10px); }
@media (max-width: 479px) {
  .device button { padding: 0 .45rem; }
  .cb-bar > i { display: none; }
  .mock-screen { height: 300px; padding: .6rem; }
}

/* panels share one cell on wide screens, so switching tabs never changes the card's height */
@media (min-width: 1000px) {
  .demo-panels { display: grid; }
  .demo-panels > [role="tabpanel"] { grid-area: 1 / 1; display: flex; flex-direction: column; }
  .demo-panels > [role="tabpanel"][hidden] { display: flex; visibility: hidden; }
  .demo-panels .mock { flex: 1; display: flex; flex-direction: column; }
  .demo-panels .mock-screen { flex: 1; align-items: start; }
  .demo-panels .tm { flex: 1; }
}

/* time & motion preview (stage colours from Horn2Horn) */
.tm { display: grid; gap: .9rem; align-content: start; }
.tm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.tm-title { margin: 0; font: 600 1.05rem/1.2 var(--f-display); letter-spacing: -.01em; }
.tm-units { display: flex; gap: 2px; padding: 2px; border-radius: 99px; background: var(--bg-2); }
.tm-units button { min-height: 36px; padding: 0 .85rem; border: 0; border-radius: 99px; background: transparent; color: var(--text-2); font: 600 .8rem/1 var(--f-text); cursor: pointer; }
.tm-units button[aria-pressed="true"] { background: var(--text); color: #fff; }
.tm-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; background: #fff; }
.tm-seg { flex-basis: 0; min-width: 3px; transition: flex-grow .5s var(--ease); }
.s-ql { background: #d1443a; } .s-spot { background: #8fb0cf; } .s-load { background: #2d6fa3; } .s-haul { background: #3f8f6e; }
.s-qd { background: #ee8d3a; } .s-dump { background: #93c4a6; } .s-ret { background: #7d8b99; }
.tm-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; }
.tm-legend li { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-2); padding: .2rem 0; border-bottom: 1px solid var(--line); }
.tm-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tm-legend b { margin-left: auto; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.tm-kpis div { padding: .7rem .8rem; border-radius: 12px; background: var(--bg-2); }
.tm-kpis dt { font-size: .72rem; color: var(--muted); font-weight: 600; }
.tm-kpis dd { margin: .2rem 0 0; font: 600 1.35rem/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tm-insight { margin: 0; padding: .7rem .9rem; border-radius: 12px; background: var(--tint-mine); color: var(--text); font-size: .84rem; line-height: 1.45; }
.demo-note a { color: var(--mine); font-weight: 600; }
@media (max-width: 479px) {
  .demo-tabs [role="tab"] { font-size: .8rem; gap: .35rem; padding: 0 .3rem; }
  .demo-tabs .dot { display: none; }
  .tm-legend { grid-template-columns: 1fr; }
  .tm-kpis dd { font-size: 1.1rem; white-space: nowrap; }
  .tm-kpis div { padding: .6rem; }
}

/* risk matrix (scoring and colours from the GeoLogic artefact) */
.rm { display: grid; gap: 1rem; }
.rm-left, .rm-right { min-width: 0; }
.rm-grid { display: grid; grid-template-columns: 1.2rem repeat(5, minmax(0, 1fr)); gap: 4px; }
.rm-cell {
  aspect-ratio: 1; min-height: 36px; border: 0; border-radius: 8px; cursor: pointer;
  font: 600 .9rem/1 var(--f-display); color: #12201F; outline: 2px solid transparent; outline-offset: 2px; transition: transform .15s;
}
.rm-cell:hover { transform: scale(1.05); }
.rm-cell:focus-visible { outline-color: var(--text); }
.rm-cell[aria-pressed="true"] { outline-color: var(--text); transform: scale(1.06); box-shadow: 0 8px 18px -8px rgba(18, 32, 31, .6); }
.rm-cell.low { background: #7cc3cd; } .rm-cell.medium { background: #e3bd5f; } .rm-cell.high { background: #e88a5f; } .rm-cell.extreme { background: #f38a82; }
.rm-axis { display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 600; color: var(--muted); }
.rm-legend { display: flex; justify-content: space-between; margin: .5rem 0 0 1.2rem; font-size: .7rem; color: var(--muted); }
.rm-pickers { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: .8rem; }
.rm-pickers label { display: block; font-size: .74rem; font-weight: 600; color: var(--text-2); margin-bottom: .25rem; }
.rm-pickers select { min-height: 42px; font-size: .82rem; padding: .5rem 2.2rem .5rem .7rem; border-radius: 10px; }
.rm-pickers .select-wrap::after { right: .8rem; width: 7px; height: 7px; }
.rm-out { padding: .9rem 1rem; border-radius: 14px; background: var(--bg-2); border-left: 6px solid var(--rm, #7cc3cd); }
.rm-out.low { --rm: #7cc3cd; } .rm-out.medium { --rm: #e3bd5f; } .rm-out.high { --rm: #e88a5f; } .rm-out.extreme { --rm: #f38a82; }
.rm-head { display: flex; align-items: baseline; gap: .7rem; }
.rm-score { font: 600 2.4rem/1 var(--f-display); letter-spacing: -.04em; }
.rm-band { font: 600 1.05rem/1.1 var(--f-display); }
.rm-action { margin: .45rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--text-2); }
.hoc-title { margin: .9rem 0 .4rem; font-size: .74rem; font-weight: 600; color: var(--text-2); }
.hoc { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.hoc li {
  width: var(--w, 100%); margin-inline: auto; padding: .32rem .6rem; border-radius: 8px; text-align: center;
  background: var(--bg-2); color: var(--text); font-weight: 600; font-size: .76rem; line-height: 1.25; transition: background .25s, color .25s;
}
.hoc li small { display: block; font-weight: 400; font-size: .66rem; color: var(--muted); }
.hoc li.is-focus { background: var(--mine); color: #fff; }
.hoc li.is-focus small { color: #F8E3D9; }
.hoc li:nth-child(1) { --w: 100%; } .hoc li:nth-child(2) { --w: 92%; } .hoc li:nth-child(3) { --w: 84%; }
.hoc li:nth-child(4) { --w: 76%; } .hoc li:nth-child(5) { --w: 68%; } .hoc li:nth-child(6) { --w: 60%; }
@media (min-width: 560px) { .rm { grid-template-columns: 1.05fr 1fr; align-items: start; } }

/* doors: the two halves of the business */
.doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.door a {
  position: relative; display: grid; gap: .5rem; padding: clamp(1.4rem, 3vw, 2.2rem); padding-right: 6.5rem; border-radius: 26px; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.door-web a { background: var(--tint-web); }
.door-mine a { background: var(--tint-mine); }
.door a:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(18, 32, 31, .35); }
.door-tag { font-size: var(--step--1); font-weight: 600; }
.door-web .door-tag { color: var(--web); }
.door-mine .door-tag { color: var(--mine); }
.door-title { font: 500 clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.door-go {
  position: absolute; right: clamp(1.2rem, 3vw, 2rem); top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: #fff; transition: transform .35s var(--ease);
}
.door-web .door-go { background: var(--web); }
.door-mine .door-go { background: var(--mine); }
.door a:hover .door-go { transform: translateY(-50%) translateX(4px); }

/* ── statement ───────────────────────────────────────────────────────── */
.statement { padding-block: var(--section); }
.statement-text { margin: 0 auto; max-width: 26ch; font: 500 var(--step-3)/1.15 var(--f-display); letter-spacing: -.03em; text-align: center; text-wrap: balance; }
.statement-text .light { color: var(--text-2); }

/* ── chapters ────────────────────────────────────────────────────────── */
.chapter { padding-block: var(--section); }
.ch-digital { background: var(--tint-web); }
.ch-mining { background: var(--tint-mine); }
.chapter-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.chapter-head, .services { min-width: 0; }
.chapter-label { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; font: 600 var(--step--1)/1.3 var(--f-text); color: var(--text-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-glass { background: var(--web); }
.dot-ore { background: var(--mine); }
.chapter-lead { color: var(--text-2); font-size: var(--step-1); line-height: 1.55; margin: 0 0 2rem; max-width: 36rem; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.services li { padding: 1.4rem 0; border-bottom: 1px solid var(--line-strong); }
.services h3 { margin: 0 0 .3rem; font: 500 1.5rem/1.2 var(--f-display); letter-spacing: -.02em; }
.services p { margin: 0; color: var(--text-2); }
.sites { color: var(--text-2); margin: 0 0 2rem; }
.sites span { color: var(--muted); margin-right: .5rem; }
.cta-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.ch-digital .cta-link { color: var(--web); }
.ch-mining .cta-link { color: var(--mine); }

/* ── proof ───────────────────────────────────────────────────────────── */
.proof { padding-block: var(--section); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2.5rem 0 0; border-top: 1px solid var(--line-strong); }
.figures div { padding: 1.6rem 1rem 1.6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; }
.figures dd { margin: 0; font: 500 clamp(3.2rem, 2rem + 4.6vw, 6rem)/.9 var(--f-display); letter-spacing: -.05em; }
.figures sup { font-size: .45em; color: var(--mine); vertical-align: .9em; }
.figures dt { color: var(--text-2); font-size: .95rem; max-width: 22ch; }
.case { margin-top: clamp(3rem, 8vw, 5rem); padding: clamp(1.6rem, 4vw, 3rem); border-radius: 28px; background: var(--bg-2); }
.case h3 { font: 500 var(--step-3)/1.05 var(--f-display); letter-spacing: -.035em; margin: 0 0 2rem; max-width: 20ch; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: f; }
.flow li { counter-increment: f; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-radius: 16px; background: var(--bg); font-weight: 600; }
.flow li::before { content: counter(f, decimal-leading-zero); font: 600 .9rem/1 var(--f-display); color: var(--web); }
.flow small { color: var(--muted); font-weight: 400; font-size: .88rem; }
.flow li:last-child { background: var(--tint-web); }

/* ── people ──────────────────────────────────────────────────────────── */
.people { padding-block: var(--section); }
.people-grid { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
.person { display: grid; border-radius: 28px; overflow: hidden; background: var(--bg-2); }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; }
.person-web .portrait { background: var(--tint-web); }
.person-mine .portrait { background: var(--tint-mine); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.portrait-empty { display: none; }
.portrait.is-empty img { display: none; }
.portrait.is-empty .portrait-empty {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .8rem;
  color: var(--muted); font-size: .9rem; font-weight: 500;
}
.portrait.is-empty .portrait-empty::before { /* simple head-and-shoulders silhouette */
  content: ""; width: 38%; aspect-ratio: 1; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 50% 32%, var(--line-strong) 0 24%, transparent 25%),
              radial-gradient(ellipse 50% 32% at 50% 100%, var(--line-strong) 0 99%, transparent 100%);
}
.person-body { padding: clamp(1.3rem, 3vw, 2rem); }
.person-div { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: var(--step--1); font-weight: 600; color: var(--text-2); }
.person h3 { margin: 0 0 .4rem; font: 500 2rem/1.1 var(--f-display); letter-spacing: -.03em; }
.role { color: var(--text-2); margin: 0 0 1rem; }
.tel { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

/* ── enquire ─────────────────────────────────────────────────────────── */
.enquire { padding-block: var(--section); }
.enquire-grid { display: grid; gap: 2.5rem; }
.big { font-size: clamp(2.4rem, 1.3rem + 3.8vw, 5rem); line-height: 1; margin: 0; }
.big .light { color: var(--web); }
.triage { display: grid; gap: 1rem; max-width: 44rem; min-width: 0; }
.triage label[for], .triage legend { font-weight: 600; }
.triage textarea {
  width: 100%; min-width: 0; font: 400 1.05rem/1.5 var(--f-text); color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 18px; padding: 1rem 1.1rem; resize: vertical;
}
.triage textarea::placeholder { color: var(--muted); }
.triage-out { margin: 0; color: var(--text-2); font-size: .95rem; min-height: 1.5em; }
.triage-out[data-match="web"] { color: var(--web); }
.triage-out[data-match="mining"] { color: var(--mine); }
.triage fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.triage legend { padding: 0; margin-bottom: .6rem; }
.choice { display: grid; gap: .6rem; }
.choice label { display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .7rem 1.1rem; cursor: pointer; background: #fff; border: 1px solid var(--line-strong); border-radius: 18px; transition: border-color .18s; }
.choice label:has(:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.choice input { accent-color: var(--web); width: 18px; height: 18px; margin: 0; }
.choice span { font-weight: 600; display: grid; }
.choice small { color: var(--muted); font-weight: 400; font-size: .88rem; }
.btn { justify-self: start; display: inline-flex; align-items: center; gap: .7rem; min-height: 52px; padding: 0 1.6rem; font: 600 1rem/1 var(--f-text); color: var(--bg); background: var(--text); border: 0; border-radius: 999px; cursor: pointer; transition: background .18s; }
.btn:hover { background: var(--web); }

/* ── footer panel ────────────────────────────────────────────────────── */
.foot { /* full-width band, edges aligned with the header */
  background: var(--ink-panel); color: var(--on-panel);
  padding-block: clamp(3rem, 6vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px));
}
.foot .wrap { max-width: none; padding-inline: var(--gutter); }
.fc-panel { background: none; padding: 0; }
.fc-head { display: grid; gap: 1.6rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(238, 241, 239, .16); }
.fc-title { margin: 0; font: 500 var(--step-3)/1 var(--f-display); letter-spacing: -.035em; }
.fc-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.fc-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.3rem; border-radius: 999px; font-weight: 600; color: var(--ink-panel); text-decoration: none; }
.fc-glass { background: var(--web-fill); }
.fc-ore { background: var(--mine-fill); }
.fc-btn:hover { text-decoration: underline; }
.fc-row { display: grid; gap: 1.4rem; padding-top: 2rem; align-items: center; }
.foot .brand-mark { width: 44px; }
.foot .brand-word { font-size: 1.5rem; }
.fc-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.fc-row a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.fc-row a:hover { text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.4rem; margin-top: 2rem; border-top: 1px solid rgba(238, 241, 239, .16); color: var(--muted-panel); font-size: .85rem; }
.foot-legal p { margin: 0; max-width: 62ch; }
.foot-legal a { color: inherit; }

/* ── motion: quiet. A short fade on arrival, nothing that loops ──────── */
.motion .hero-text { animation: rise .7s var(--ease) both; }
.motion .showcase { animation: rise .7s var(--ease) .12s both; }
.motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 479px) {
  .pill-quiet { display: none; }
}
@media (min-width: 760px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow li { flex-direction: column; gap: .4rem; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; }
  .person-body { align-self: end; }
  .choice { grid-template-columns: 1fr 1fr; }
  .fc-head { grid-template-columns: 1fr auto; align-items: end; }
  .fc-row { grid-template-columns: auto 1fr; }
  .fc-row ul { justify-content: flex-end; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
  .hero-title span { white-space: nowrap; }
  .chapter-grid { grid-template-columns: 1fr 1fr; }
  .enquire-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}

/* ── contact page ────────────────────────────────────────────────────── */
.contact-hero { padding-block: clamp(2.5rem, 7vw, 6rem) var(--section); }
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-intro, .contact-form { min-width: 0; }
.email-block { margin-top: 2.4rem; padding: 1.4rem 1.5rem; border-radius: 24px; background: var(--bg-2); display: grid; gap: .5rem; justify-items: start; }
.email-label { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.email-link { font: 500 clamp(1.4rem, 1rem + 1.8vw, 2.2rem)/1.15 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; text-decoration: none; color: var(--web); }
.email-link:hover { text-decoration: underline; }
.copy-btn { min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 600 .88rem/1 var(--f-text); cursor: pointer; }
.copy-btn:hover { border-color: var(--text); }
.copy-msg { margin: 0; min-height: 1.3em; font-size: .88rem; color: var(--text-2); }
.direct { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.direct li { padding: 1.3rem 1.5rem; border-radius: 24px; }
.direct-web { background: var(--tint-web); }
.direct-mine { background: var(--tint-mine); }
.direct-name { margin: 0; font: 500 1.5rem/1.2 var(--f-display); letter-spacing: -.02em; }
.where { margin: 1.4rem 0 0; color: var(--text-2); }

.contact-form { display: grid; gap: 1.2rem; padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.form-h { margin: 0; font: 500 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend, .field label { font-weight: 600; padding: 0; margin-bottom: .5rem; display: block; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-width: 0; min-height: 50px; font: 400 1rem/1.5 var(--f-text); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; padding: .75rem 1rem;
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--mine); box-shadow: inset 0 0 0 1px var(--mine); }
.err { margin: .4rem 0 0; min-height: 0; color: var(--mine); font-size: .9rem; font-weight: 500; }
.err:empty { display: none; }
.contact-form .choice label { background: var(--bg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; color: var(--text-2); }
.form-status[data-state="ok"] { color: var(--web); font-weight: 600; }
.form-status[data-state="error"] { color: var(--mine); font-weight: 600; }
.btn:disabled { opacity: .55; cursor: progress; }
@media (min-width: 760px) { .direct { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.05fr; } }

/* ── service dropdown ────────────────────────────────────────────────── */
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 9px; height: 9px; pointer-events: none;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-70%) rotate(45deg);
}
.select-wrap select {
  appearance: none; width: 100%; min-width: 0; min-height: 52px; padding: .75rem 2.8rem .75rem 1rem; cursor: pointer;
  font: 500 1rem/1.4 var(--f-text); color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px;
}
.triage .select-wrap select { background: #fff; border-radius: 18px; }
.select-wrap select[aria-invalid="true"] { border-color: var(--mine); box-shadow: inset 0 0 0 1px var(--mine); }

/* phones: no neighbour to protect from a height change, so don't reserve space */
@media (max-width: 999px) {
  .web-foot > * { grid-area: auto; }
  .a11y-list { display: none; visibility: visible; }
  .demo-panel:has(.mock[data-a11y="on"]) .a11y-list { display: block; }
  .demo-panel:has(.mock[data-a11y="on"]) .a11y-off { display: none; }
}

.doors-404 { margin-top: 2.5rem; }

/* ════════════════════════════════════════════════════════════════════════
   Inner pages: website design, mining safety, about
   ════════════════════════════════════════════════════════════════════════ */
.page-hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-title { margin: 0; font: 500 clamp(2.6rem, 1.2rem + 4.4vw, 5.2rem)/1 var(--f-display); letter-spacing: -.045em; text-wrap: balance; max-width: 18ch; }
.page-lead { max-width: 40rem; margin: 1.6rem 0 0; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; margin-top: 2rem; }
.page-actions .btn { justify-self: auto; }
.ch-digital .page-title .light, .page-web .page-title .light { color: var(--web); }
.page-mine .page-title .light { color: var(--mine); }

.section { padding-block: var(--section); }
.section + .section:not(.chapter) { padding-top: 0; }
.section-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 5vw, 3rem); align-items: end; }
.section-head .h2 { margin: 0; }
.lead { margin: 0; max-width: 38rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }

.tags { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { padding: .28rem .7rem; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; font-weight: 500; color: var(--text-2); }
.chapter .tags li { background: rgba(255, 255, 255, .7); }

.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.svc { padding: clamp(1.3rem, 3vw, 1.8rem); border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.svc h3 { margin: 0 0 .4rem; font: 500 1.4rem/1.15 var(--f-display); letter-spacing: -.02em; }
.svc p { margin: 0; color: var(--text-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.4rem 0 0; border-top: 2px solid var(--text); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: .6rem; font: 500 .95rem/1 var(--f-display); color: var(--web); }
.page-mine .steps li::before { color: var(--mine); }
.steps h3 { margin: 0 0 .35rem; font: 500 1.4rem/1.15 var(--f-display); letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--text-2); }

.standards { margin: 0; display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line-strong); }
.standards div { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.standards dt { font: 500 1.15rem/1.2 var(--f-display); letter-spacing: -.01em; margin-bottom: .3rem; }
.standards dd { margin: 0; color: var(--text-2); font-size: .95rem; }

.faq { border-top: 1px solid var(--line-strong); max-width: 54rem; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 64px; padding: 1rem 0; font: 500 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 1.4rem; max-width: 46rem; color: var(--text-2); }

/* full-size demos on the inner pages */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
.tool-panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(1rem, 3vw, 1.6rem); box-shadow: 0 30px 60px -40px rgba(18, 32, 31, .35); }
.tool-panel .mock-screen { height: 400px; }
.tool-panel .rm-cell { min-height: 44px; font-size: 1rem; }
.tool-panel .rm-grid { gap: 6px; }
.tool-panel .rm-action { font-size: .9rem; }
.tool-panel .hoc li { font-size: .85rem; padding: .45rem .7rem; }
.tool-panel .hoc li small { font-size: .74rem; }
.tool-panel .tm-legend li { font-size: .88rem; }

.sector-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sector-list li { padding: .6rem 1rem; border-radius: 14px; background: #fff; font-weight: 600; font-size: .95rem; }

/* "talk to the person who does the work" strip */
.talk { display: grid; gap: 1.2rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 26px; }
.talk-web { background: var(--tint-web); } .talk-mine { background: var(--tint-mine); }
.talk-who { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.talk-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; background: rgba(255, 255, 255, .7); }
.talk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.talk-photo.is-empty img { display: none; }
.talk h2 { margin: 0; font: 500 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.talk p { margin: .2rem 0 0; color: var(--text-2); }
.talk-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { background: var(--text); color: var(--bg); }

/* about: profiles */
.team-index { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; list-style: none; padding: 0; }
.team-index a { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.1rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.team-index small { color: var(--muted); font-weight: 500; }
.profile { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.profile > * { min-width: 0; }
.profile .portrait { border-radius: 20px; width: 50%; }
.profile-side { display: grid; gap: 1rem; }
.profile-name { margin: 0; font: 500 clamp(2.2rem, 1.4rem + 3vw, 3.8rem)/1 var(--f-display); letter-spacing: -.04em; }
.profile-role { margin: .7rem 0 0; color: var(--text-2); font-size: var(--step-1); }
.profile-contact { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin-top: .4rem; }
.profile-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.prose p { margin: 0 0 1.1rem; max-width: 42rem; color: var(--text-2); }
.prose p:first-child { color: var(--text); font-size: var(--step-1); line-height: 1.5; }
.figures.f3 { margin-top: 2.5rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; display: grid; gap: .2rem; padding: 0 0 1.6rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--web); }
.timeline-mine li::before { border-color: var(--mine); }
.timeline .when { font: 600 .82rem/1.3 var(--f-text); color: var(--muted); letter-spacing: .02em; }
.timeline h3 { margin: 0; font: 500 1.2rem/1.25 var(--f-display); letter-spacing: -.01em; }
.timeline p { margin: 0; color: var(--text-2); font-size: .95rem; }

.quals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--line-strong); }
.quals li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.quals b { display: block; font-weight: 600; }
.quals span { color: var(--muted); font-size: .9rem; }
.subhead { margin: clamp(2.5rem, 6vw, 4rem) 0 1.4rem; font: 500 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--f-display); letter-spacing: -.03em; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
  .figures.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .talk { grid-template-columns: 1fr auto; }
}
@media (min-width: 1000px) {
  .section-head { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: .85fr 1.15fr; }
  .split-flip { grid-template-columns: 1.15fr .85fr; }
  .split-flip > :first-child { order: 2; }
  .profile { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
  .profile-side { position: sticky; top: 6rem; }
  .history { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.prose-gap { margin-top: 1.6rem; }
.svc .svc-h { margin: 0 0 .4rem; font: 500 1.3rem/1.15 var(--f-display); letter-spacing: -.02em; }
.timeline .tl-h { margin: 0; font: 500 1.15rem/1.25 var(--f-display); letter-spacing: -.01em; }

/* person card without a photo (home page) */
.person.person-text { grid-template-columns: 1fr; }
.person-text .person-body { padding: clamp(1.6rem, 4vw, 2.4rem); border-top: 6px solid var(--web); border-radius: 0; }
.person-mine.person-text .person-body { border-top-color: var(--mine); }
.person-text h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.person-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; }
.case-link { margin-top: 1.6rem; color: var(--web); }
