/* Crowdprobe — site styles. Plain CSS, no build step. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ----------
   Ink navy + the logo's teal, with amber marking the human role
   (review, approval) next to the agents' teal. */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eaeef5;
  --ink: #0c1424;
  --muted: #566176;
  --line: #d9dfe9;
  --brand: #0a5c52;
  --brand-2: #0a7d68;
  --mint: #3fbf9b;
  --mint-soft: #e0f3ed;
  --accent-ink: #0a6b5d;
  --human: #a8540a;
  --human-soft: #fbecd9;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(12, 20, 36, .05), 0 12px 32px rgba(12, 20, 36, .08);
  --grid-dot: rgba(12, 20, 36, .07);
  --glow: rgba(13, 138, 115, .10);

  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.95rem, 1.4rem + 1.7vw, 2.65rem);
  --step-4: clamp(2.3rem, 1.4rem + 3vw, 3.9rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  color-scheme: light;
}

/* Dark palette: used for the whole page in dark mode, and for the
   hero, header and contact bands in light mode (.band-dark). */
.band-dark {
  --bg: #0b1220;
  --surface: #111b2e;
  --surface-2: #16223a;
  --ink: #eef2f8;
  --muted: #9ba8be;
  --line: #243250;
  --brand: #1a9c83;
  --brand-2: #4fd1ad;
  --mint: #4fd1ad;
  --mint-soft: #12302c;
  --accent-ink: #7de0c1;
  --human: #f2a65a;
  --human-soft: #3a2917;
  --on-brand: #06231d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35);
  --grid-dot: rgba(238, 242, 248, .07);
  --glow: rgba(79, 209, 173, .16);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080e1a;
    --surface: #101a2c;
    --surface-2: #152139;
    --ink: #eef2f8;
    --muted: #9ba8be;
    --line: #22304c;
    --brand: #1a9c83;
    --brand-2: #4fd1ad;
    --mint: #4fd1ad;
    --mint-soft: #12302c;
    --accent-ink: #7de0c1;
    --human: #f2a65a;
    --human-soft: #3a2917;
    --on-brand: #06231d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35);
    --grid-dot: rgba(238, 242, 248, .06);
    --glow: rgba(79, 209, 173, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080e1a;
  --surface: #101a2c;
  --surface-2: #152139;
  --ink: #eef2f8;
  --muted: #9ba8be;
  --line: #22304c;
  --brand: #1a9c83;
  --brand-2: #4fd1ad;
  --mint: #4fd1ad;
  --mint-soft: #12302c;
  --accent-ink: #7de0c1;
  --human: #f2a65a;
  --human-soft: #3a2917;
  --on-brand: #06231d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35);
  --grid-dot: rgba(238, 242, 248, .06);
  --glow: rgba(79, 209, 173, .14);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.band-dark { background-color: var(--bg); color: var(--ink); }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.12; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 1000;
  background: var(--brand-2);
  color: var(--on-brand);
  padding: .75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: top .15s;
}
.skip-link:focus {
  top: 1rem;
  top: max(1rem, env(safe-area-inset-top, 0px) + .5rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: var(--brand-2); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 38em; }
.prose { display: grid; gap: 1rem; max-width: 36em; color: var(--muted); }
.prose strong { color: var(--ink); }

/* Blueprint dot grid used on dark bands */
.grid-bg {
  background-image:
    radial-gradient(60% 70% at 85% 15%, var(--glow), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: auto, 22px 22px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-2); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand-2); }
.btn svg { width: 1.1em; height: 1.1em; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo {
  display: inline-flex; align-items: center;
  background: #fff;              /* logo artwork is drawn for a white ground */
  border-radius: 8px;
  padding: .3rem .55rem;
}
.logo img { display: block; height: 2.3rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: flex-end; row-gap: .5rem; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: .55rem 1rem; font-size: .95rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 760px) { .nav { gap: .6rem; } }

/* ---------- Simple/card view toggle ---------- */
.view-toggle { white-space: nowrap; }
.view-toggle[aria-pressed="true"] { border-color: var(--brand-2); color: var(--accent-ink); }
.view-toggle .vt-on { display: none; }
.simple .view-toggle .vt-off { display: none; }
.simple .view-toggle .vt-on { display: inline; }
@media (max-width: 400px) {
  .nav .btn { padding: .5rem .7rem; font-size: .85rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: .9rem; margin-bottom: 2.5rem; max-width: 44rem; }
.section-head h2 { font-size: var(--step-3); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero .split { grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero .split { grid-template-columns: 1.1fr .9fr; } }
.hero-copy { display: grid; gap: 1.5rem; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.3vw, 3.15rem); }
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
  background: linear-gradient(transparent 68%, var(--mint-soft) 68%);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Figures / infographics ---------- */
.figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(.75rem, 2vw, 1.25rem);
}
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted);
}
.figure figcaption strong { color: var(--ink); font-weight: 500; }

/* SVG styling through tokens so both themes work */
.ig-text { fill: var(--ink); font-family: var(--font-sans); font-size: 13px; font-weight: 500; }
.ig-sub { fill: var(--muted); font-family: var(--font-mono); font-size: 10.5px; }
.ig-label { fill: var(--accent-ink); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; }
.ig-node { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ig-node-strong { fill: var(--mint-soft); stroke: var(--brand-2); stroke-width: 1.5; }
.ig-node-human { fill: var(--human-soft); stroke: var(--human); stroke-width: 1.5; }
.ig-band { fill: var(--surface-2); stroke: none; }
.ig-edge { fill: none; stroke: var(--brand-2); stroke-width: 1.75; }
.ig-edge-soft { fill: none; stroke: var(--line); stroke-width: 1.5; }
.ig-flow { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 14; animation: ig-flow 1.6s linear infinite; }
.ig-dot { fill: var(--brand-2); }
.ig-icon { fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ig-icon-human { fill: none; stroke: var(--human); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ig-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) {
  .ig-flow { animation: none; }
  html { scroll-behavior: auto; }
}
/* Simple view stops the decorative flow animation too (WCAG 2.2.2 Pause, Stop, Hide). */
.simple .ig-flow { animation: none; }

/* ---------- Service pillars ---------- */
.pillars { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  display: grid; gap: .75rem; align-content: start;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-2);
  border-radius: var(--radius);
}
.pillar h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -.02em; }
.pillar p { color: var(--muted); font-size: .975rem; }

/* ---------- Skills ---------- */
.skills { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .skills { grid-template-columns: repeat(3, 1fr); } }
.skill {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-content: start;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.skill:hover { border-color: var(--brand-2); }
.skill-icon {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 10px;
  background: var(--mint-soft);
}
.skill-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skill h3 { font-size: 1.0625rem; align-self: end; }
.skill p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.tag {
  display: inline-block; margin-left: .45rem; vertical-align: 2px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--human); background: var(--human-soft);
  padding: .1rem .4rem; border-radius: 4px;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .4rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2rem; display: grid; gap: .25rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .4rem;
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand-2);
}
.timeline li:last-child::before { background: var(--brand-2); box-shadow: 0 0 0 5px var(--mint-soft); }
.timeline .when { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.0625rem; }
.timeline p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid; gap: 1.5rem; justify-items: start;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
}
@media (min-width: 820px) { .contact { grid-template-columns: 1fr auto; align-items: center; } }
.contact h2 { font-size: var(--step-3); }
.contact p { color: var(--muted); margin-top: .5rem; }
.contact .mail { font-family: var(--font-mono); font-size: .95rem; color: var(--ink); user-select: all; }
.contact-cta { display: grid; gap: .6rem; justify-items: start; }
@media (min-width: 820px) { .contact-cta { justify-items: end; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer .legal-line { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.site-footer .legal-line span + span::before { content: "·"; margin-right: .5rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: 2rem; max-width: 46rem; }
.legal h1 { font-size: var(--step-3); }
.legal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: grid; gap: 1.5rem;
}
.legal dl { display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; margin: 0; }
@media (min-width: 600px) { .legal dl { grid-template-columns: 13rem 1fr; } }
.legal dt { color: var(--muted); font-size: .95rem; }
.legal dd { margin: 0 0 .5rem; }
.legal .note { color: var(--muted); font-size: .95rem; }
.legal address { font-style: normal; }

/* Long-form legal text (privacy) */
.policy { display: grid; gap: 1rem; color: var(--ink); }
.policy p { color: var(--muted); }
.policy h2 {
  font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -.02em;
  margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.policy h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy h3 { font-size: var(--step-1); margin-top: .75rem; display: flex; gap: .75rem; }
.policy h4 { font-size: 1.0625rem; margin: .5rem 0 0; display: flex; gap: .75rem; }
.policy .num { font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); min-width: 2.75rem; flex: none; }
.policy ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.policy ol li { display: grid; grid-template-columns: 2.75rem 1fr; color: var(--muted); }
.policy ol li .num { min-width: 0; }
.policy address { font-style: normal; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-content: center; gap: 1.25rem; justify-items: start; }
.notfound .code { font-family: var(--font-mono); font-size: var(--step-4); color: var(--accent-ink); line-height: 1; }
.policy .rights { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; color: var(--muted); }
.policy .rights li::marker { color: var(--accent-ink); }
.policy p strong { color: var(--ink); font-weight: 500; }
.policy .facts { display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; margin: 0; }
@media (min-width: 640px) { .policy .facts { grid-template-columns: 11rem 1fr; } }
.policy .facts dt { color: var(--ink); font-weight: 500; font-size: .95rem; }
.policy .facts dd { margin: 0 0 .75rem; color: var(--muted); }

/* ---------- Simple view (home page without the card deck) ---------- */
.simple body { line-height: 1.7; }

/* ---------- Card deck (home page, enabled by assets/js/deck.js) ---------- */
:root { --deck-bg: #d9dfe8; --header-h: 4.3rem; --bar-h: 3rem; --deck-gap: clamp(.4rem, 1.2vw, .9rem); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --deck-bg: #03060c; } }
:root[data-theme="dark"] { --deck-bg: #03060c; }

.has-deck, .has-deck body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.has-deck body { background: var(--deck-bg); }
.has-deck .site-header { position: fixed; inset: 0 0 auto 0; top: 0; padding-top: env(safe-area-inset-top, 0px); }
.has-deck .deck {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  overflow: hidden;
}
.has-deck .slide {
  position: absolute;
  inset: var(--deck-gap);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(3, 6, 12, .28);
  will-change: transform;
  transform-origin: 50% 50%;
}
.has-deck .slide:not(:first-child) { visibility: hidden; } /* until the script has placed the cards */
.has-deck .slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #03060c; opacity: calc(var(--shade, 0) * .5);
}
.has-deck .slide-inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.has-deck .slide-inner > section {
  flex: 1 0 auto;
  display: grid; align-content: center;
  padding-block: clamp(2rem, 5vh, 3.5rem);
  border-block: 0;
}
.has-deck .section-head { margin-bottom: clamp(1.25rem, 3vh, 2.5rem); }
.has-deck.deck-dragging, .has-deck.deck-dragging * { user-select: none; cursor: grabbing; }

/* Bottom bar: the page footer, fixed under the cards, with the card dots */
.has-deck .site-footer.deck-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  border-top: 0;
  display: flex; align-items: center;
}
.has-deck .deck-bar .wrap {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .25rem 1.5rem;
}
.has-deck .deck-bar .legal-line { white-space: nowrap; }
.has-deck .deck-bar .deck-dots { justify-self: center; }
.has-deck .deck-bar ul { justify-content: flex-end; }
/* On the home page the logo already leads home. */
.has-deck .deck-bar li:has(> a[href="index.html"]) { display: none; }
.deck-dots { display: flex; gap: .25rem; }
/* Buttons keep a >=24x24 CSS px hit area (WCAG 2.5.8) around the small visible dot. */
.deck-dots button {
  min-width: 1.5rem; height: 1.5rem; padding: 0 .1rem; margin: 0;
  border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.deck-dots button::before {
  content: ""; display: block;
  width: .65rem; height: .65rem; border-radius: 999px;
  border: 1.5px solid var(--muted); background: transparent;
  transition: width .25s, background-color .25s, border-color .25s;
}
.deck-dots button:hover::before { border-color: var(--brand-2); }
.deck-dots button[aria-current="true"]::before { width: 1.6rem; background: var(--brand-2); border-color: var(--brand-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Narrower screens: dots and links on the first row, copyright line below. */
@media (max-width: 1180px) {
  .has-deck { --bar-h: 4.5rem; }
  .has-deck .deck-bar .wrap { grid-template-columns: auto 1fr; }
  .has-deck .deck-bar .deck-dots { justify-self: start; }
  .has-deck .deck-bar .legal-line { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .has-deck { --bar-h: 5.5rem; }
  .has-deck .deck-bar { font-size: .75rem; }
  .has-deck .deck-bar .wrap { gap: .1rem .75rem; }
  .has-deck .deck-bar ul { gap: .25rem .75rem; }
  .has-deck .deck-bar .deck-dots { gap: 0; }
  /* Copyright and AI note on two lines, without a dangling separator. */
  .has-deck .deck-bar .legal-line { white-space: normal; flex-direction: column; gap: 0; }
  .has-deck .deck-bar .legal-line span + span::before { content: none; }
}

/* First-card hint, hidden after the first move */
.deck-hint {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2;
  margin: 0; display: none; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink);
  white-space: nowrap; pointer-events: none;
}
.has-deck .deck-hint { display: inline-flex; }
.deck-hint::after {
  content: ""; width: .5rem; height: .5rem;
  border-right: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2);
  transform: rotate(45deg); animation: deck-hint 1.6s ease-in-out infinite;
}
.deck-hint::after { margin-top: -4px; }
.deck-moved .deck-hint { opacity: 0; transition: opacity .3s; }
@keyframes deck-hint { 50% { transform: translateY(4px) rotate(45deg); } }
@media (max-height: 700px) { .has-deck .deck-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .deck-hint::after { animation: none; } }
.contact .place { font-size: .875rem; color: var(--muted); }
.has-deck .slide[data-dark] .contact { border: 0; padding-inline: 0; background: none; }
.has-deck .slide[data-dark] .contact h2 { font-size: var(--step-4); }
.has-deck .slide[data-dark] .contact p { font-size: var(--step-1); }
.contact .mail-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.copy-btn {
  font: inherit; font-family: var(--font-mono); font-size: .8125rem;
  padding: .3rem .6rem; border-radius: 6px; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
}
.copy-btn:hover { border-color: var(--brand-2); }
.copy-status { font-size: .875rem; color: var(--accent-ink); min-height: 1.3em; }
.copy-status:empty { display: none; }

/* Headings receive focus programmatically after a card change (for screen
   readers); they are not controls, so they need no focus ring. */
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 560px) {
  .has-deck .deck-hint { display: none; }             /* would overlap the hero buttons */
}
/* Smallest phones (320–360px): tighter header and a taller bar. */
@media (max-width: 360px) {
  .site-header .wrap { gap: .5rem; }
  .logo { padding: .25rem .4rem; }
  .logo img { height: 1.6rem; }
  .nav { gap: .4rem; flex-wrap: nowrap; }
  .nav .btn { padding: .4rem .55rem; font-size: .8rem; }
  .has-deck { --bar-h: 6.75rem; }
}
