/* caithomas.com — 2026 design.
   Dark by default; [data-theme="light"] on <html> switches to light (set by the toggle, saved per visitor).
   Every text colour pair below passes WCAG AA contrast in both themes. */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0A0A09;
  --surface:   #141412;
  --surface-2: #1F1E1B;
  --fg:        #F4F2EC;
  --muted:     #A9A69B;   /* 8.1:1 on --bg */
  --line:      #2A2925;
  --accent:    #FF6A2B;   /* 6.9:1 on --bg */
  --accent-soft: rgba(255, 106, 43, 0.12);
  --accent-ink: #FF6A2B;  /* small accent text on --accent-soft */
  --on-accent: #0A0A09;   /* text on accent: 6.9:1 */
  --glass:     rgba(10, 10, 9, 0.72);
  --live:      #3DDC84;
}

[data-theme="light"] {
  color-scheme: light;
  --bg:        #F3F1EB;
  --surface:   #FFFFFF;
  --surface-2: #E7E4DB;
  --fg:        #121210;
  --muted:     #55534C;   /* 6.8:1 on --bg */
  --line:      #D6D2C7;
  --accent:    #C2410C;   /* 4.6:1 on --bg, 5.2:1 on white */
  --accent-soft: rgba(194, 65, 12, 0.10);
  --accent-ink: #9A3412;  /* 5.6:1 on --accent-soft over --bg */
  --on-accent: #FFFFFF;   /* 5.2:1 */
  --glass:     rgba(255, 255, 255, 0.78);
  --live:      #1F9D55;
}

:root {
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 24px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.accent { color: var(--accent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-accent { color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); font-weight: 500; }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); cursor: pointer; padding: 0;
  transition: border-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--fg); }

/* ── Navigation ── */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px clamp(12px, 3vw, 48px) 0; }
.nav {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 8px 8px 8px 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.brand-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: 15px; text-decoration: none; color: var(--fg);
  transition: background-color 0.2s ease;
}
.nav-link:hover { background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Theme toggle: shown only when scripts run; the icon shows the mode it switches to. */
.theme-toggle, .menu-toggle { display: none; }
.js .theme-toggle { display: inline-flex; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.icon-close { display: none; }
.nav.open .icon-menu { display: none; }
.nav.open .icon-close { display: block; }

/* ── Hero ── */
.hero { padding-top: clamp(48px, 7vw, 104px); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.hero-text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.status-pill {
  margin: 0; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 13px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 20%, transparent);
}
.hero-title {
  margin: 0;
  font-size: clamp(52px, 8.2vw, 128px); line-height: 0.92;
  letter-spacing: -0.05em; font-weight: 600;
  text-wrap: balance;
}
.hero-name {
  display: block; margin-bottom: 18px;
  font-family: var(--mono); font-size: clamp(14px, 1.2vw, 16px); font-weight: 500;
  letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; color: var(--muted);
}
.hero-lead { margin: 0; max-width: 640px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo {
  flex: 0 1 420px; min-width: 260px; margin: 0; position: relative;
  border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
}
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.caption-name { display: flex; flex-direction: column; }
.caption-name strong { font-weight: 600; font-size: 16px; }
.caption-name span { font-size: 13px; color: var(--muted); }
.caption-place { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ── Tiles ── */
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.tiles { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tiles .tile { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 200px; }
.tile-value { display: flex; flex-direction: column; gap: 6px; }
.tile-num { font-size: clamp(56px, 6vw, 88px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-text { color: var(--muted); }
.duo { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.stack-tile { flex: 2 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.stack-group { flex: 1 1 180px; display: flex; flex-direction: column; gap: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); }
.ai-tile {
  flex: 1 1 340px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  background: var(--accent-soft); border-color: var(--accent);
}
.bubble { margin: 0; padding: 18px 20px; border-radius: 20px 20px 20px 6px; background: var(--surface); font-size: 17px; line-height: 1.5; }

/* ── Sections ── */
.section { padding-top: clamp(72px, 9vw, 128px); }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; border-top: 1px solid var(--line); padding-top: 40px; }
.section-head { flex: 0 1 280px; display: flex; flex-direction: column; gap: 10px; }
.section-head-wide { flex: none; border-top: 1px solid var(--line); padding-top: 40px; margin-bottom: 24px; }
.section-num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.section-title { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.section-body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.section-body p { margin: 0; max-width: 720px; }
.lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -0.015em; }
.intro { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; color: var(--muted); }

/* Clients */
.clients-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.clients-title { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.clients-group { margin: 0 0 12px; }
.logo-grid + .clients-group { margin-top: 24px; }
.logo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 12px;
}
.logo-grid li {
  height: 88px; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px;
}
.logo-grid img { max-width: 100%; max-height: 48px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* About */
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* Results */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.stat-num { font-size: clamp(64px, 7vw, 104px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.results {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); column-gap: 32px;
}
.results li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.results strong { color: var(--fg); font-weight: 600; }
.result-num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.role { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.role-period { flex: 0 0 170px; font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 6px; }
.role-main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.role-main p { margin: 0; max-width: 640px; }
.role-company { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.role-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.role-title { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.role-links { flex: 0 1 300px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); text-decoration: none; font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill-link:hover { border-color: var(--accent); color: var(--accent); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: var(--surface-2);
  font-family: var(--mono); font-size: 12px; color: var(--fg);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.badge-active::before, .badge-sold::before { background: var(--live); }
.badge-volunteer::before { background: var(--accent); }

/* Projects */
.projects { display: flex; flex-wrap: wrap; gap: 16px; }
.project-card {
  flex: 1 1 520px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(24px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 22px;
}
.project-card p { margin: 0; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.project-title { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.project-quote { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.facts {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.facts div { background: var(--surface); padding: 16px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.surnames { display: flex; flex-direction: column; gap: 10px; }
.project-cta { align-self: flex-start; min-height: 48px; padding: 0 22px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: var(--fg); border-radius: 2px; transition: transform 0.2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item summary:hover .faq-icon { border-color: var(--accent); }
.faq-item p { margin: 0 0 22px; max-width: 720px; }

/* Contact */
.contact-card {
  background: var(--accent); color: var(--on-accent);
  border-radius: 40px; padding: clamp(32px, 6vw, 80px);
  display: flex; flex-direction: column; gap: 40px;
}
.contact-head { display: flex; flex-direction: column; gap: 20px; }
.contact-kicker { font-family: var(--mono); font-size: 13px; }
.contact-title { margin: 0; font-size: clamp(52px, 9vw, 140px); line-height: 0.9; letter-spacing: -0.055em; font-weight: 600; text-wrap: balance; }
.contact-lead { margin: 0; max-width: 620px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.contact-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px;
}
.contact-list li { border-top: 2px solid var(--on-accent); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-value {
  color: var(--on-accent); font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center;
}
a.contact-value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color 0.2s ease; }
a.contact-value:hover { text-decoration-color: currentColor; }
.contact-card :focus-visible { outline-color: var(--on-accent); }
.contact-note { font-size: 13px; line-height: 1.5; }

/* Footer */
.site-footer {
  padding-top: 48px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a, .footer-cookie-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); text-underline-offset: 3px;
}
.footer-links a:hover, .footer-cookie-link:hover { color: var(--fg); }
.footer-cookie-link { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }

/* ── Cookie notice: a bar along the bottom ── */
.cookie-overlay {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
  display: flex; justify-content: center; padding: 0 1rem 1rem;
  pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.cookie-overlay.show { opacity: 1; visibility: visible; transform: none; }
.cookie-modal {
  pointer-events: auto; width: 100%; max-width: 980px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.5rem;
  display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; align-items: center;
}
.cookie-title { grid-column: 1; margin: 0 0 0.3rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.cookie-text { grid-column: 1; margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.cookie-footer { grid-column: 1; margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--muted); }
.cookie-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; padding: 0.35rem 0; display: inline-block; }
.cookie-buttons { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 0.6rem; }
.cookie-btn {
  min-height: 46px; padding: 0 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.92rem; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.cookie-btn-accept { background: var(--accent); color: var(--on-accent); }
.cookie-btn-accept:hover { filter: brightness(1.08); }
.cookie-btn-reject { background: transparent; color: var(--fg); border-color: var(--fg); }
.cookie-btn-reject:hover { background: var(--surface-2); }

/* ── Privacy and 404 pages ── */
.page-header { position: static; }
.prose { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 64px; }
.prose h1 { margin: 0 0 1rem; font-size: clamp(40px, 7vw, 72px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.prose h1 .accent { display: block; }
.prose h2 { margin: 2.75rem 0 0.75rem; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; font-weight: 600; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0; }
.prose p + p { margin-top: 0.9rem; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a:not(.btn) { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); color: var(--fg); padding: 0.05rem 0.35rem; border-radius: 6px; }
.prose .label { display: block; margin-bottom: 1.25rem; color: var(--accent); }
.prose .updated { font-family: var(--mono); font-size: 13px; margin-bottom: 2.5rem; }
.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 34rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.table-wrap th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap td { color: var(--muted); }
.table-wrap td:first-child { color: var(--fg); font-weight: 600; white-space: nowrap; }
.prose .btn { margin-top: 1.25rem; }
.not-found { min-height: 100vh; display: flex; flex-direction: column; }
.not-found main { flex: 1; display: flex; align-items: center; }
.not-found .prose { text-align: left; }

/* ── Scroll reveal: only when scripts run; everything is visible without them ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Tag Manager may still hold an anti-flicker snippet that hides <html>; never let it. */
html.async-hide { opacity: 1 !important; }

/* ── Breakpoints ── */
@media (max-width: 960px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav-links {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; gap: 0; padding: 4px 0 8px;
    border-top: 1px solid var(--line);
  }
  .js .nav.open .nav-links { display: flex; }
  .js .nav-link { width: 100%; font-size: 17px; min-height: 48px; }
  .nav { padding-right: 8px; }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
  .brand-meta { display: none; }
  .site-header { padding-top: 10px; }
  .hero-title { font-size: clamp(46px, 13vw, 64px); }
  .tiles .tile { min-height: 0; gap: 20px; padding: 22px; }
  .tile, .stat { padding: 22px; }
  .role-period { flex-basis: 100%; padding-top: 0; }
  .role-links { flex-basis: 100%; }
  .hero-photo figcaption { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
  .contact-card { border-radius: 28px; }
  .contact-value { font-size: 19px; }
}

@media (max-width: 700px) {
  .cookie-overlay { padding: 0 0.5rem 0.5rem; }
  .cookie-modal { grid-template-columns: 1fr; padding: 1rem 1.1rem; }
  .cookie-buttons { grid-column: 1; grid-row: auto; flex-direction: row; margin-top: 0.75rem; }
  .cookie-btn { flex: 1 1 0; padding: 0 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
