/* Katteke site styles. Plain CSS, no build step. Breakpoints: 640px (sm), 768px (md), 1024px (lg), 1280px (xl). */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f1ea;
  --surface: #fcfaf7;
  --surface-alt: #efe7de;
  --text: #171411;
  --muted: #5f564d;
  --border: #d7ccc0;
  --border-strong: #bba998;
  --accent: #b9582b;
  --accent-strong: #90431f;
  --shadow: 0 2px 8px rgba(23, 20, 17, 0.06);
  --sans: "Avenir Next", "Helvetica Neue", "Noto Sans", sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --line-dark: rgba(255, 255, 255, 0.1);
}

html.dark {
  --bg: #171311;
  --surface: #211c19;
  --surface-alt: #2a2420;
  --text: #f4ede6;
  --muted: #b8aea2;
  --border: #3b332d;
  --border-strong: #564b43;
  --accent: #e07a45;
  --accent-strong: #f09a67;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

/* ---------- Reset ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
* { border-color: var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; min-height: 100%; scroll-behavior: smooth; font-family: var(--sans); }
body {
  margin: 0;
  line-height: inherit;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(185, 88, 43, 0.08) 0, rgba(185, 88, 43, 0) 220px), var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
}
html.dark body { background: linear-gradient(180deg, rgba(224, 122, 69, 0.12) 0, rgba(224, 122, 69, 0) 220px), var(--bg); }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; background: transparent; cursor: pointer; text-transform: none; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
pre { font-family: var(--mono); font-size: 1em; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
a, button { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }

/* Dutch visitors: hidden until site.js has swapped in the Dutch page (shown anyway after 2s). */
html.lang-pending #page { visibility: hidden; animation: lang-fallback 0s 2s forwards; }
@keyframes lang-fallback { to { visibility: visible; } }

/* ---------- Shared parts ---------- */
.page-shell { margin: 0 auto; width: 100%; max-width: 84rem; padding-left: 1.25rem; padding-right: 1.25rem; }
.wrap { margin: 0 auto; max-width: 96rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.page-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.page { background: #fff; color: #171411; }
html.dark .page { background: #080808; color: #fff; }

.page-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.24em; color: var(--accent); }
.text-muted { color: var(--muted); }

.button-primary, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; padding: 0.625rem 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}
.button-primary { background-color: var(--text); color: var(--bg); border: 1px solid transparent; }
.button-primary:hover { background-color: var(--accent); color: #fff; }
.button-secondary { background-color: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.chip {
  display: inline-flex; align-items: center; border-radius: 0.375rem; border: 1px solid var(--border);
  padding: 0.25rem 0.625rem; font-size: 0.75rem; line-height: 1rem; font-weight: 500;
  background-color: var(--surface-alt); color: var(--muted);
}

.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); }
.arrow-link:hover { color: var(--accent-strong); }

.reveal { animation: page-reveal 360ms ease-out both; will-change: opacity; }
@keyframes page-reveal { from { opacity: 0; } to { opacity: 1; } }

.ambient-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(185, 88, 43, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 88, 43, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 88%);
  pointer-events: none;
}
html.dark .ambient-grid {
  background-image:
    linear-gradient(to right, rgba(240, 165, 110, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 165, 110, 0.08) 1px, transparent 1px);
}
.glow { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; }

/* Hero band shared by most inner pages */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: #f5f2ec; }
html.dark .hero { border-color: var(--line-dark); background: #080808; }

/* ---------- Header ---------- */
.site { min-height: 100vh; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.header-bar {
  margin: 0 auto; display: grid; height: 2.75rem; max-width: 96rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 0 1.25rem;
}
.header-start { display: flex; align-items: center; justify-content: flex-start; }
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 1.25rem; width: auto; object-fit: contain; }
.header-nav { display: none; align-items: center; gap: 1.75rem; }
.header-link { font-size: 13px; font-weight: 500; color: var(--muted); }
.header-link:hover, .header-link.is-active { color: var(--text); }
.header-end { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.header-controls { display: none; align-items: center; gap: 1rem; }
.lang-switch { display: flex; align-items: center; gap: 0.25rem; font-size: 13px; font-weight: 500; }
.lang-switch button, .lang-switch span { color: var(--muted); }
.lang-switch button:hover, .lang-switch button[aria-pressed="true"] { color: var(--text); }
.theme-switch { color: var(--muted); }
.theme-switch:hover { color: var(--text); }
.theme-switch .icon-sun, html.dark .theme-switch .icon-moon { display: none; }
html.dark .theme-switch .icon-sun { display: block; }

.menu-button {
  display: inline-flex; height: 2rem; width: 2rem; align-items: center; justify-content: center;
  border-radius: 0.375rem; border: 1px solid transparent; color: var(--muted);
}
.menu-button:hover, .site-header.is-open .menu-button { border-color: var(--border); background-color: var(--surface); color: var(--text); }
.menu-icon { display: flex; height: 18px; width: 18px; align-items: center; justify-content: center; }
.menu-button .icon-close, .site-header.is-open .menu-button .icon-open { display: none; }
.site-header.is-open .menu-button .icon-close { display: block; }

.mobile-nav {
  display: grid; grid-template-rows: 0fr; opacity: 0; pointer-events: none;
  border-top: 1px solid transparent;
  transition: grid-template-rows 200ms ease-out, opacity 200ms ease-out, border-color 200ms ease-out;
}
.site-header.is-open .mobile-nav { grid-template-rows: 1fr; opacity: 1; pointer-events: auto; border-top-color: var(--border); }
.mobile-nav-clip { overflow: hidden; }
.mobile-nav-inner { padding-top: 1rem; padding-bottom: 1rem; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-link {
  border-radius: 0.5rem; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
}
.mobile-link.is-active { border-color: var(--accent); background: var(--surface-alt); color: var(--text); }
.mobile-controls { margin-top: 1rem; display: flex; align-items: center; gap: 1rem; }

.site-main { padding-bottom: 5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.footer-tagline { margin-top: 0.75rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--muted); }
.footer-title { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--text); }
.footer-list { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.footer-list a:hover { color: var(--text); }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }

@media (min-width: 640px) {
  .page-shell { padding-left: 1.75rem; padding-right: 1.75rem; }
  .wrap { padding-left: 2rem; padding-right: 2rem; }
  .page-section { padding-top: 4rem; padding-bottom: 4rem; }
  .header-bar { padding: 0 1.75rem; }
}
@media (min-width: 768px) {
  .header-nav, .header-controls { display: flex; }
  .menu-button, .mobile-nav { display: none; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; }
}
@media (min-width: 1024px) {
  .page-shell { padding-left: 2.5rem; padding-right: 2.5rem; }
  .wrap { padding-left: 2.5rem; padding-right: 2.5rem; }
  .page-section { padding-top: 5rem; padding-bottom: 5rem; }
  .header-bar { padding: 0 2.5rem; }
}

/* ---------- Home ---------- */
.home-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: #f6f1ea; }
html.dark .home-hero { border-color: var(--line-dark); background: #120f0d; }
.home-hero-grid { opacity: 0.7; }
.home-glow-1 { left: -10%; top: 0; height: 18rem; width: 18rem; background: rgba(185, 88, 43, 0.14); }
.home-glow-2 { right: -8%; top: 5rem; height: 20rem; width: 20rem; background: rgba(244, 237, 230, 0.5); }
html.dark .home-glow-1 { background: rgba(224, 122, 69, 0.14); }
html.dark .home-glow-2 { background: rgba(71, 48, 34, 0.32); }

.standard-hero { margin: 0 auto; display: grid; max-width: 96rem; gap: 2rem; padding: 2.5rem 1.5rem; }
.standard-hero-text { position: relative; z-index: 10; max-width: 36rem; }
.standard-hero-text h1 { font-size: clamp(3rem, 5.5vw, 5.1rem); font-weight: 600; line-height: 0.94; letter-spacing: -0.07em; color: #171411; }
.standard-hero-text h1 span { color: var(--accent); }
html.dark .standard-hero-text h1 { color: #f4ede6; }
.standard-hero-text > p { margin-top: 1.25rem; max-width: 32rem; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.75rem; color: #5f564d; }
html.dark .standard-hero-text > p { color: #d3c7bc; }
.standard-hero-text .button-row { margin-top: 1.75rem; }
.standard-hero-art { position: relative; z-index: 10; aspect-ratio: 43 / 24; overflow: hidden; border: 1px solid var(--border); background: #efe7de; }
html.dark .standard-hero-art { background: #1b1613; }
.standard-hero-art img { height: 100%; width: 100%; object-fit: cover; }

.source-band { border-top: 1px solid var(--border); background: #f3eee7; color: #171411; }
html.dark .source-band { border-color: var(--line-dark); background: #120f0d; color: #f4ede6; }
.source-band-inner { margin: 0 auto; display: grid; max-width: 96rem; gap: 2.5rem; padding: 3.5rem 1.5rem; }
.source-band-text { max-width: 42rem; }
.source-band-text h2 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 600; letter-spacing: -0.05em; }
.source-band-text p { margin-top: 1rem; font-size: 1rem; line-height: 1.75rem; color: #655a50; }
html.dark .source-band-text p { color: #d3c7bc; }
.source-band-text a { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); }
.source-band-text a:hover { color: var(--accent-strong); }
html.dark .source-band-text a { color: #f0a56e; }
html.dark .source-band-text a:hover { color: #ffc08d; }
.source-band-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
html.dark .source-band-list, html.dark .source-band-list > div { border-color: var(--line-dark); }
.source-band-list > div { display: grid; gap: 0.25rem; border-top: 1px solid var(--border); padding: 1rem 0; }
.source-band-list > div:first-child { border-top: 0; }
.source-band-list p:first-child { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); }
html.dark .source-band-list p:first-child { color: #f0a56e; }
.source-band-list p:last-child { font-size: 0.875rem; line-height: 1.5rem; color: #655a50; }
html.dark .source-band-list p:last-child { color: #d3c7bc; }

.home-features { border-top: 1px solid var(--border); background: #f3f1ed; }
html.dark .home-features { border-color: var(--line-dark); background: #050505; }
.home-features-inner { display: grid; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
.feature-tile { overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: #171411; }
html.dark .feature-tile { border-color: var(--line-dark); background: #111; color: #fff; }
.feature-tile-text { padding: 2rem 1.5rem 0; }
.feature-tile-text h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 600; letter-spacing: -0.05em; }
.feature-tile-text p { margin-top: 0.75rem; max-width: 32rem; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
.feature-tile-text .arrow-link { margin-top: 1.25rem; }
.feature-tile-media { padding: 1.5rem; }
.shot-frame { overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: #f3f1ed; }
html.dark .shot-frame { border-color: var(--line-dark); background: #1a1a1a; }
.shot-frame img { margin: 0 auto; aspect-ratio: 16 / 10; width: 100%; object-fit: contain; }

.home-work { border-top: 1px solid var(--border); background: #fff; }
html.dark .home-work { border-color: var(--line-dark); background: #080808; }
.home-work-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.home-work-head { text-align: center; }
.home-work-head h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 600; letter-spacing: -0.05em; }
.home-work-head p { margin: 0.75rem auto 0; max-width: 42rem; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
.home-work-list { margin-top: 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-work-list > a { display: grid; gap: 0.75rem; padding: 1.25rem 0; }
.home-work-list > a + a { border-top: 1px solid var(--border); }
html.dark .home-work-list, html.dark .home-work-list > a { border-color: var(--line-dark); }
.home-work-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--accent); }
.home-work-list h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }
.home-work-list h3 + p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.home-work-cta { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: #171411; }
html.dark .home-work-cta { color: #fff; }
.home-work-more { margin-top: 2rem; text-align: center; }

@media (min-width: 640px) {
  .standard-hero { padding-left: 2rem; padding-right: 2rem; }
  .source-band-inner { padding-left: 2rem; padding-right: 2rem; }
  .source-band-text p { font-size: 1.125rem; }
  .source-band-list > div { grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; }
  .feature-tile-text { padding-left: 2rem; padding-right: 2rem; }
  .feature-tile-media { padding-left: 2rem; padding-right: 2rem; }
  .home-work-head p { font-size: 1.125rem; }
}
@media (min-width: 768px) {
  .home-work-list > a { grid-template-columns: 190px minmax(0, 1fr) 170px; align-items: center; }
  .home-work-cta { text-align: right; }
}
@media (min-width: 1024px) {
  .standard-hero { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: center; padding: 2rem 2.5rem 3rem; }
  .source-band-inner { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); padding: 4rem 2.5rem; }
  .home-features-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ---------- Shared page sections ---------- */
.band-warm { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #f3eee7; color: #171411; }
html.dark .band-warm { border-color: var(--line-dark); background: #171311; color: #f4ede6; }
.simple-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.simple-h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.04em; }
.simple-copy { margin-top: 1rem; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
html.dark .simple-copy { color: rgba(255, 255, 255, 0.7); }
.line-list { margin-top: 1.25rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.line-list li { padding: 1rem 0; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
.line-list li + li { border-top: 1px solid var(--border); }
html.dark .line-list, html.dark .line-list li { border-color: var(--line-dark); }
html.dark .line-list li { color: rgba(255, 255, 255, 0.7); }
.note-line { border-left: 2px solid var(--accent); padding-left: 1.25rem; font-size: 0.875rem; line-height: 1.5rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
html.dark .button-primary.on-band { background: #f4ede6; color: #171311; }
html.dark .button-primary.on-band:hover { background: #fff; }
html.dark .button-secondary.on-band { border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------- Portfolio ---------- */
.pf-grid-bg { opacity: 0.7; }
.pf-glow-1 { left: -8%; top: 1rem; height: 18rem; width: 18rem; background: rgba(185, 88, 43, 0.14); }
.pf-glow-2 { right: -8%; top: 6rem; height: 20rem; width: 20rem; background: rgba(244, 237, 230, 0.44); }
html.dark .pf-glow-1 { background: rgba(224, 122, 69, 0.14); }
html.dark .pf-glow-2 { background: rgba(71, 48, 34, 0.3); }
.pf-hero { padding-top: 4rem; padding-bottom: 3rem; }
.pf-hero-text { position: relative; z-index: 10; max-width: 48rem; }
.pf-hero-text h1 { font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 600; letter-spacing: -0.07em; }
.pf-hero-text p { margin-top: 1rem; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
.pf-tabs {
  position: relative; z-index: 10; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 2rem;
  border-bottom: 1px solid var(--border); padding-bottom: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
}
html.dark .pf-tabs { border-color: var(--line-dark); }
.pf-tabs button { border-bottom: 2px solid transparent; padding-bottom: 0.75rem; color: #6e6358; }
.pf-tabs button:hover { color: #171411; }
.pf-tabs button[aria-pressed="true"] { border-color: var(--accent); color: #171411; }
html.dark .pf-tabs button:hover, html.dark .pf-tabs button[aria-pressed="true"] { color: #fff; }
.pf-meta { position: relative; z-index: 10; margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; row-gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; }
.pf-meta p { color: #6e6358; }
.pf-primary { background: #fff; }
html.dark .pf-primary { background: #080808; }
.pf-section { padding-top: 3rem; padding-bottom: 3rem; }
.pf-secondary { border-top: 1px solid var(--border); background: #f5f2ec; }
html.dark .pf-secondary { border-color: var(--line-dark); background: #0c0c0c; }
.pf-secondary-head { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
html.dark .pf-secondary-head { border-color: var(--line-dark); }
.pf-secondary-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.05em; }
.pf-secondary-head p { margin-top: 0.75rem; max-width: 48rem; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
.pf-secondary-body { margin-top: 2rem; }
[data-filter="startup"] .pf-secondary, [data-filter="github"] .pf-primary, [data-filter="github"] .pf-secondary-head { display: none; }
[data-filter="github"] .pf-secondary { border-top: 0; background: #fff; }
html.dark [data-filter="github"] .pf-secondary { background: #080808; }
[data-filter="github"] .pf-secondary-body { margin-top: 0; }
.filter-used .pf-section .reveal { animation: none; }
.pf-grid { display: grid; gap: 1.5rem; }
.pf-tile { overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: #171411; }
html.dark .pf-tile { border-color: var(--line-dark); background: #111; color: #fff; }
.pf-tile-image { display: block; width: 100%; border-bottom: 1px solid var(--border); background: #f3f1ed; padding: 1rem; text-align: left; }
html.dark .pf-tile-image { border-color: var(--line-dark); background: #1a1a1a; }
.pf-tile-image img { margin: 0 auto; aspect-ratio: 16 / 10; width: 100%; object-fit: contain; }
.pf-tile-body { padding: 1.5rem; }
.pf-tile-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--accent); }
.pf-tile-body h3 { margin-top: 0.5rem; font-size: clamp(1.55rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.04em; }
.pf-tile-desc { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.pf-tile-tech { margin-top: 1rem; font-size: 0.875rem; line-height: 1.5rem; color: #6e6358; }
.pf-tile-body .arrow-link { margin-top: 1.25rem; }
.pf-directory { border-radius: 1rem; border: 1px solid var(--border); background: #f7f2eb; padding: 1.5rem; }
html.dark .pf-directory { border-color: var(--line-dark); background: #12100e; }
.pf-directory-grid { margin-top: 0.75rem; display: grid; gap: 1.5rem; }
.pf-directory-grid h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -0.05em; }
.pf-directory-grid h2 + p { margin-top: 0.75rem; max-width: 42rem; font-size: 0.875rem; line-height: 1.5rem; color: #655a50; }
html.dark .pf-directory-grid h2 + p { color: rgba(255, 255, 255, 0.7); }
.pf-directory-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf-directory-nav a {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; border: 1px solid var(--border); background: #fff;
  padding: 0.5rem 0.75rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: #5f564d;
}
.pf-directory-nav a:hover { border-color: var(--accent); color: var(--accent); }
html.dark .pf-directory-nav a { border-color: var(--line-dark); background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.7); }
.pf-directory-nav span { color: var(--accent); }
.pf-groups { margin-top: 3rem; display: grid; gap: 3.5rem; }
.pf-group { scroll-margin-top: 5rem; border-top: 1px solid var(--border); padding-top: 2rem; }
html.dark .pf-group { border-color: var(--line-dark); }
.pf-group-head { margin-bottom: 1.75rem; display: grid; gap: 1rem; }
.pf-group-head h3 { margin-top: 0.5rem; font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 600; letter-spacing: -0.045em; }
.pf-group-head h3 + p { margin-top: 0.75rem; max-width: 48rem; font-size: 0.875rem; line-height: 1.5rem; color: #655a50; }
html.dark .pf-group-head h3 + p { color: rgba(255, 255, 255, 0.7); }
.pf-group-count { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); }

.image-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.75); padding: 1rem; }
.image-modal-box { position: relative; max-height: 90vh; width: 100%; max-width: 64rem; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: #15110f; }
.image-modal-close {
  position: absolute; right: 1rem; top: 1rem; display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.4); color: #fff;
}
.image-modal-close:hover { border-color: rgba(255, 255, 255, 0.2); }
.image-modal-box img { max-height: 90vh; width: 100%; object-fit: contain; }

/* ---------- Articles ---------- */
.article-index { min-height: 100vh; }
.articles-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.articles-grid-bg { opacity: 0.55; }
.articles-hero-inner { position: relative; display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
.articles-eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.24em; color: var(--accent); }
.articles-eyebrow span { height: 1px; width: 2rem; background: var(--accent); }
.articles-title { margin-top: 1.5rem; max-width: 56rem; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 7.8rem); line-height: 0.88; letter-spacing: -0.075em; color: var(--text); }
.articles-title span { display: block; font-style: italic; color: var(--accent); }
.articles-lede { margin-top: 2rem; max-width: 42rem; font-size: 1.125rem; line-height: 2rem; color: var(--muted); }
.articles-archive { align-self: end; border-left: 1px solid var(--border-strong); padding-left: 1.5rem; }
.articles-archive-count { margin-top: 1rem; font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.06em; color: var(--text); }
.articles-archive-note { margin-top: 0.5rem; max-width: 15rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--muted); }
.articles-archive .chip-row { margin-top: 1.5rem; }
.articles-shelf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
.articles-shelf-head h2 { margin-top: 0.5rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.04em; }
.articles-shelf-head > p { font-size: 0.875rem; line-height: 1.25rem; }
.article-feature { margin-top: 2rem; display: grid; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.article-feature-main { padding: 1.5rem; }
.article-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.article-feature-main h3 { margin-top: 1.75rem; max-width: 56rem; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5rem); line-height: 0.95; letter-spacing: -0.065em; color: var(--text); }
.article-feature-subtitle { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; line-height: 2rem; color: var(--muted); }
.article-feature-summary { margin-top: 1.75rem; max-width: 48rem; font-size: 1rem; line-height: 1.75rem; }
.article-feature-main .chip-row { margin-top: 2rem; }
.article-feature-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.article-feature-meta { border-top: 1px solid var(--border); background: var(--surface-alt); padding: 1.5rem; }
.article-feature-facts { display: grid; gap: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; }
.fact { margin-top: 0.5rem; font-weight: 500; color: var(--text); }
.fact-sub { margin-top: 0.25rem; }
.article-feature-disclaimer { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: 0.75rem; line-height: 1.25rem; color: var(--muted); }
.articles-stats { margin-top: 3rem; display: grid; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.articles-stats span { font-weight: 600; color: var(--text); }

.article-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.article-header-inner { padding-top: 2rem; padding-bottom: 2rem; }
.article-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.article-crumbs a { color: var(--accent); }
.article-crumbs a:hover { color: var(--accent-strong); }
.article-title-block { margin-top: 3rem; max-width: 64rem; }
.article-title-block h1 { margin-top: 1rem; font-family: var(--serif); font-size: clamp(3rem, 7vw, 7rem); line-height: 0.9; letter-spacing: -0.075em; color: var(--text); }
.article-subtitle { margin-top: 1.75rem; max-width: 48rem; font-size: 1.25rem; line-height: 2rem; color: var(--muted); }
.article-facts { margin-top: 2.5rem; display: grid; gap: 1.25rem; border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: 0.875rem; line-height: 1.25rem; }
.article-facts p:last-child { margin-top: 0.5rem; font-weight: 500; }
.article-layout { display: grid; gap: 3rem; padding-top: 3rem; padding-bottom: 3rem; }
.article-body { min-width: 0; }
.article-abstract { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.article-abstract p:last-child { margin-top: 1rem; max-width: 56rem; font-family: var(--serif); font-size: 1.25rem; line-height: 2rem; color: var(--text); }
.article-metrics { margin-top: 2.5rem; display: grid; gap: 0.75rem; }
.article-metrics > div { border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface); padding: 1.25rem; }
.metric-value { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.05em; color: var(--text); }
.metric-label { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); }
.metric-detail { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.25rem; color: var(--muted); }
.article-quick { margin-top: 2.5rem; }
.article-quick-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.article-quick-head h2 { margin-top: 0.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.article-quick-head > p { max-width: 24rem; text-align: right; font-size: 0.75rem; line-height: 1.25rem; color: var(--muted); }
.article-charts { margin-top: 1.25rem; display: grid; gap: 1rem; }
.chart { border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface); padding: 1.25rem; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.chart-head h3 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.chart-head span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.chart figcaption > p { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.25rem; color: var(--muted); }
.chart-rows { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.chart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 52px; align-items: center; gap: 0.75rem; font-size: 0.75rem; line-height: 1rem; }
.chart-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.chart-track { height: 0.5rem; overflow: hidden; border-radius: 9999px; background: var(--surface-alt); }
.chart-bar { display: block; height: 100%; border-radius: 9999px; background: var(--border-strong); }
.chart-bar.tone-accent { background: var(--accent); }
.chart-bar.tone-ink { background: var(--text); }
.chart-value { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.article-short { margin-top: 2.5rem; border-left: 2px solid var(--accent); background: var(--surface-alt); padding: 1.25rem; }
.article-short p:last-child { margin-top: 0.75rem; max-width: 56rem; font-size: 1rem; line-height: 1.75rem; color: var(--text); }
.article-sections { margin-top: 4rem; }
.article-sections section { scroll-margin-top: 6rem; }
.article-sections section + section { margin-top: 3.5rem; }
.article-section-head { display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.article-section-head span { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--accent); }
.article-section-head h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.article-copy { margin-top: 1.25rem; max-width: 48rem; display: grid; gap: 1.25rem; font-size: 1rem; line-height: 2rem; color: var(--muted); }
.article-copy ul { display: grid; gap: 0.75rem; border-left: 2px solid var(--accent); padding-left: 1.25rem; color: var(--text); }
.article-tables { margin-top: 4rem; display: grid; gap: 2.5rem; }
.article-tables .data-table:first-child { margin-top: 2rem; }
.data-table { overflow: hidden; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface); }
.data-table figcaption { border-bottom: 1px solid var(--border); padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--text); }
.data-table-scroll { overflow-x: auto; }
.data-table table { width: 100%; min-width: 34rem; text-align: left; font-size: 0.875rem; line-height: 1.25rem; }
.data-table thead { background: var(--surface-alt); font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.data-table th { padding: 0.75rem 1rem; font-weight: 600; }
.data-table tbody tr { color: var(--text); }
.data-table tbody tr + tr { border-top: 1px solid var(--border); }
.data-table td { padding: 0.75rem 1rem; color: var(--muted); }
.data-table td:first-child { font-weight: 600; color: var(--text); }
.article-note { margin-top: 4rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface-alt); padding: 1.5rem; }
.article-note p:last-child { margin-top: 0.75rem; max-width: 48rem; font-size: 1rem; line-height: 1.75rem; color: var(--text); }
.article-toc { border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface); padding: 1.25rem; }
.article-toc nav { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; }
.article-toc a { display: block; color: var(--muted); }
.article-toc a:hover { color: var(--accent); }
.article-links { margin-top: 1rem; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface-alt); padding: 1.25rem; }
.article-links > div { margin-top: 1rem; display: grid; gap: 0.75rem; }
.article-links a { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--text); }
.article-links a:hover { color: var(--accent); }
.article-links svg { margin-top: 0.125rem; flex-shrink: 0; transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.article-links a:hover svg { transform: translateX(0.125rem); }
.article-back { margin-top: 1.25rem; }

/* ---------- Contact ---------- */
.contact-grid-bg { opacity: 0.6; }
.contact-glow-1 { left: -8rem; top: -6rem; height: 20rem; width: 20rem; background: rgba(185, 88, 43, 0.18); }
.contact-glow-2 { bottom: -8rem; right: -7rem; height: 24rem; width: 24rem; background: rgba(255, 255, 255, 0.7); }
html.dark .contact-glow-1 { background: rgba(224, 122, 69, 0.16); }
html.dark .contact-glow-2 { background: rgba(79, 48, 32, 0.28); }
.contact-hero { position: relative; z-index: 10; display: grid; gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; }
.contact-hero-text { max-width: 56rem; }
.contact-hero-text h1 { margin-top: 1.25rem; font-size: clamp(3.4rem, 7vw, 7rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.075em; }
.contact-hero-text h1 span { display: block; color: var(--accent); }
.contact-intro { margin-top: 1.75rem; max-width: 42rem; font-size: 1.125rem; line-height: 2rem; color: #5f564d; }
html.dark .contact-intro { color: rgba(255, 255, 255, 0.7); }
.contact-hero-text .button-row { margin-top: 2.25rem; }
.contact-card {
  position: relative; min-height: 360px; overflow: hidden; border-radius: 22px; border: 1px solid var(--border);
  background: #fffaf5; padding: 1.75rem; color: #171411; box-shadow: 0 24px 70px rgba(82, 43, 23, 0.14);
}
html.dark .contact-card { border-color: var(--line-dark); background: #171311; color: #f4ede6; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28); }
.contact-ring { position: absolute; border-radius: 9999px; border: 1px solid; }
.contact-ring-1 { right: -4rem; top: -4rem; height: 14rem; width: 14rem; border-color: rgba(240, 165, 110, 0.25); }
.contact-ring-2 { right: -1.5rem; top: -1.5rem; height: 10rem; width: 10rem; border-color: rgba(240, 165, 110, 0.2); }
.contact-at { position: absolute; bottom: 2rem; right: 2rem; font-size: 10rem; font-weight: 600; line-height: 1; color: rgba(185, 88, 43, 0.045); }
html.dark .contact-at { color: rgba(255, 255, 255, 0.035); }
.contact-card-inner { position: relative; display: flex; height: 100%; flex-direction: column; justify-content: space-between; }
.contact-card-icon { display: inline-flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center; border-radius: 1rem; background: #f0a56e; color: #171311; }
.contact-card-label { margin-top: 1.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: #f0a56e; }
.contact-card-email { margin-top: 0.5rem; display: block; word-break: break-all; font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.contact-card-email:hover { color: var(--accent); }
html.dark .contact-card-email:hover { color: #fff; }
.contact-card-foot { margin-top: 3.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
html.dark .contact-card-foot { border-color: var(--line-dark); }
.contact-card-foot p { font-size: 0.875rem; line-height: 1.25rem; color: #6e6358; }
.contact-card-foot a { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: #171411; }
.contact-card-foot a:hover { color: var(--accent); }
html.dark .contact-card-foot a { color: #f4ede6; }
html.dark .contact-card-foot a:hover { color: #f0a56e; }
.contact-channels { display: grid; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.contact-channels h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.04em; }
.contact-channels h2 + p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.contact-links { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.contact-channel-grid { display: grid; gap: 0.75rem; }
.contact-channel {
  display: flex; min-height: 9rem; flex-direction: column; justify-content: space-between; border-radius: 1rem; border: 1px solid var(--border);
  background: #f7f4ef; padding: 1.25rem;
  transition-property: color, background-color, border-color, transform; transition-duration: 200ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-channel.is-featured { border-color: #d8b79f; background: #f6e9df; color: #171411; }
.contact-channel:hover { transform: translateY(-0.125rem); border-color: var(--accent); }
html.dark .contact-channel { border-color: var(--line-dark); background: #111; }
html.dark .contact-channel.is-featured { background: #171311; color: #f4ede6; }
html.dark .contact-channel:hover { border-color: var(--accent); }
.contact-channel-icon { color: var(--accent); }
.contact-channel-label { display: block; font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: #6e6358; }
.contact-channel-value { margin-top: 0.25rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; word-break: break-all; font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.contact-channel-arrow { flex-shrink: 0; transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.contact-channel:hover .contact-channel-arrow { transform: translateX(0.25rem); }

/* ---------- LinuxMice, security, 404 ---------- */
.lm-grid-bg { opacity: 0.7; }
.lm-hero { position: relative; padding-top: 4rem; padding-bottom: 4rem; }
.lm-hero h1 { margin-top: 1rem; font-size: clamp(3.6rem, 9vw, 8rem); font-weight: 600; letter-spacing: -0.08em; }
.lm-hero h1 + p { margin-top: 1.5rem; max-width: 56rem; font-size: 1.125rem; line-height: 2rem; color: #5f564d; }
.lm-columns { display: grid; gap: 2.5rem; }
.lm-band-title { max-width: 48rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.04em; }
.lm-band-copy { margin-top: 1.25rem; max-width: 56rem; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
html.dark .lm-band-copy { color: #d3c7bc; }
.lm-band-actions { margin-top: 2rem; }
.sec-hero { padding-top: 4rem; padding-bottom: 4rem; }
.sec-hero h1 { margin-top: 1rem; max-width: 64rem; font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 600; letter-spacing: -0.07em; }
.sec-hero h1 + p { margin-top: 1.5rem; max-width: 48rem; font-size: 1.125rem; line-height: 2rem; color: #5f564d; }
.sec-hero > .button-primary, .nf-actions { margin-top: 2rem; }
.sec-columns { display: grid; gap: 3rem; }
.sec-note { margin-top: 3rem; color: #6e6358; }

/* ---------- Legal ---------- */
.legal-hero { border-bottom: 1px solid var(--border); background: #fff; }
html.dark .legal-hero { border-color: var(--line-dark); background: #080808; }
.legal-hero-inner { padding-top: 4rem; padding-bottom: 2.5rem; text-align: center; }
.legal-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 600; letter-spacing: -0.08em; }
.legal-hero h1 + p { margin: 1rem auto 0; max-width: 42rem; font-size: 0.875rem; line-height: 1.5rem; color: #6e6358; }
.legal-body { background: #f3f1ed; }
html.dark .legal-body { background: #050505; }
.legal-body-inner { margin: 0 auto; max-width: 64rem; padding: 3rem 1.5rem; }
.legal-body article { border-radius: 10px; background: #fff; padding: 2rem 1.5rem; color: #171411; }
html.dark .legal-body article { background: #111; color: #fff; }
.legal-body pre { white-space: pre-wrap; font-size: 0.875rem; line-height: 1.75rem; }
/* The operator's details, folded shut at the end of the Terms. */
.operator { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1rem; font-size: 0.875rem; line-height: 1.6; }
html.dark .operator { border-color: var(--line-dark); }
.operator summary { cursor: pointer; width: fit-content; font-weight: 600; opacity: 0.7; }
.operator summary:hover { opacity: 1; }
.operator summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.operator p { margin-top: 0.75rem; max-width: 46rem; }
.operator ul { margin-top: 0.5rem; display: grid; gap: 0.25rem; }
.operator a { color: var(--accent); text-decoration: underline; }

/* ---------- Source ---------- */
.src-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(185, 88, 43, 0.18) 0%, rgba(185, 88, 43, 0.08) 22%, rgba(246, 241, 234, 0) 54%), linear-gradient(180deg, #f6f1ea 0%, #f8f4ee 100%);
}
html.dark .src-hero {
  border-color: var(--line-dark);
  background: linear-gradient(135deg, rgba(224, 122, 69, 0.2) 0%, rgba(224, 122, 69, 0.08) 25%, rgba(16, 13, 11, 0) 58%), linear-gradient(180deg, #100d0b 0%, #0a0908 100%);
}
.src-grid-bg { opacity: 0.6; }
.source-hero-wash, .source-hero-strata { position: absolute; inset: 0; pointer-events: none; }
.source-hero-wash {
  background: linear-gradient(112deg, rgba(185, 88, 43, 0.22) 0%, rgba(185, 88, 43, 0.1) 24%, rgba(185, 88, 43, 0) 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 46%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 68%, transparent 100%);
}
html.dark .source-hero-wash {
  background: linear-gradient(112deg, rgba(224, 122, 69, 0.24) 0%, rgba(224, 122, 69, 0.1) 28%, rgba(224, 122, 69, 0) 66%), linear-gradient(180deg, rgba(255, 238, 220, 0.05) 0%, rgba(255, 238, 220, 0) 48%);
}
.source-hero-strata {
  background-image: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(185, 88, 43, 0.08) 42.2%, transparent 42.6%, transparent 100%),
    linear-gradient(115deg, transparent 0%, transparent 67%, rgba(23, 20, 17, 0.06) 67.2%, transparent 67.6%, transparent 100%);
  opacity: 0.8;
}
html.dark .source-hero-strata {
  background-image: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(240, 165, 110, 0.1) 42.2%, transparent 42.6%, transparent 100%),
    linear-gradient(115deg, transparent 0%, transparent 67%, rgba(255, 255, 255, 0.06) 67.2%, transparent 67.6%, transparent 100%);
}
.src-hero-inner { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.src-hero-text { position: relative; z-index: 10; max-width: 56rem; }
.src-hero-text h1 { margin-top: 1rem; font-size: 3rem; font-weight: 600; line-height: 0.95; color: #171411; }
html.dark .src-hero-text h1 { color: #f4ede6; }
.src-hero-copy { margin-top: 1.5rem; max-width: 48rem; font-size: 1.125rem; line-height: 1.75rem; color: #5f564d; }
html.dark .src-hero-copy { color: #d3c7bc; }
.src-pills { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.src-pills span {
  border-radius: 9999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.75); padding: 0.375rem 0.75rem;
  font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: #5f564d; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
html.dark .src-pills span { border-color: var(--line-dark); background: rgba(255, 255, 255, 0.03); }
.src-hero-actions { margin-top: 2rem; }
.src-contact {
  position: relative; z-index: 10; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.95);
  color: #171411; box-shadow: 0 16px 40px rgba(8, 8, 8, 0.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html.dark .src-contact { border-color: var(--line-dark); background: rgba(8, 8, 8, 0.95); color: #fff; }
.src-contact-head { border-bottom: 1px solid var(--border); padding: 1.25rem; }
html.dark .src-contact-head { border-color: var(--line-dark); }
.src-contact-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--accent); }
.src-contact-head h2 { margin-top: 0.75rem; font-size: 1.875rem; line-height: 1.25; font-weight: 600; }
.src-contact-head h2 + p { margin-top: 1rem; max-width: 36rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.src-channel { display: grid; gap: 0.75rem; padding: 1.25rem; background: #fff; color: #171411; transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.src-channel + .src-channel { border-top: 1px solid var(--border); }
html.dark .src-channel + .src-channel { border-color: var(--line-dark); }
.src-channel.is-featured { background: #f6e9df; }
html.dark .src-channel { background: #080808; color: #fff; }
html.dark .src-channel.is-featured { background: #171311; color: #f4ede6; }
.src-channel:hover { background: rgba(0, 0, 0, 0.02); }
html.dark .src-channel:hover { background: rgba(255, 255, 255, 0.02); }
.src-channel-icon { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; color: var(--accent); }
.src-channel-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: #6e6358; }
.src-channel-value { margin-top: 0.25rem; word-break: break-all; font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.src-channel-arrow { color: var(--accent); }
.src-company { border-bottom: 1px solid var(--border); background: #fff; }
html.dark .src-company { border-color: var(--line-dark); background: #080808; }
.src-block { padding-top: 3rem; padding-bottom: 3rem; }
.src-split { display: grid; gap: 2.5rem; }
.src-h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.src-lead { margin-top: 1rem; font-size: 1rem; line-height: 1.75rem; color: #5f564d; }
html.dark .src-lead { color: rgba(255, 255, 255, 0.7); }
.src-stack { display: grid; gap: 2rem; }
.src-facts { display: grid; column-gap: 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.src-facts > div { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.src-facts > div:last-child { border-bottom: 0; }
html.dark .src-facts, html.dark .src-facts > div { border-color: var(--line-dark); }
.src-facts dt { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: #6e6358; }
.src-facts dd { margin-top: 0.25rem; font-size: 1rem; line-height: 1.75rem; }
.src-facts a { color: var(--accent); }
.src-facts a:hover { color: var(--accent-strong); }
.src-h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.src-services, .src-capabilities, .src-workflow { margin-top: 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.src-services > div, .src-capabilities > div, .src-workflow li { display: grid; gap: 0.5rem; padding: 1rem 0; }
.src-services > div + div, .src-capabilities > div + div, .src-workflow li + li { border-top: 1px solid var(--border); }
html.dark .src-services, html.dark .src-services > div, html.dark .src-capabilities, html.dark .src-capabilities > div, html.dark .src-workflow, html.dark .src-workflow li { border-color: var(--line-dark); }
.src-services h4, .src-capabilities h4, .src-workflow h4 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.src-services p { font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.src-services .src-service-cta { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--accent); }
.src-note { margin-top: 1rem; font-size: 0.875rem; line-height: 1.5rem; color: #6e6358; }
.src-ai { border-bottom: 1px solid var(--border); background: #f3eee7; color: #171411; }
html.dark .src-ai { border-color: var(--line-dark); background: #171311; color: #f4ede6; }
.src-ai-head { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
html.dark .src-ai-head { border-color: var(--line-dark); }
.src-ai-head > div:first-child { max-width: 48rem; }
.src-ai .src-lead { color: #5f564d; }
html.dark .src-ai .src-lead { color: #d3c7bc; }
.src-ai-actions { margin-top: 1.25rem; }
html.dark .src-ai-actions .button-secondary:hover { border-color: #f0a56e; color: #f0a56e; }
.src-ai-grid { margin-top: 2rem; display: grid; gap: 2.5rem; }
.src-ai .src-h3, .src-ai h4 { color: #171411; }
html.dark .src-ai .src-h3, html.dark .src-ai h4 { color: #fff; }
.src-capabilities p, .src-stack-desc, .src-operating p:not(.src-note) { font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
html.dark .src-capabilities p:not(.src-bullets), html.dark .src-stack-desc, html.dark .src-operating p:not(.src-note) { color: #d3c7bc; }
.src-capabilities .src-bullets { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.25rem; color: #6e6358; }
.src-stack-block { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.src-operating { border-top: 1px solid var(--border); padding-top: 1.5rem; }
html.dark .src-stack-block, html.dark .src-operating { border-color: var(--line-dark); }
.src-stack-desc { margin-top: 0.5rem; }
.src-stack-items { margin-top: 1rem; display: grid; column-gap: 1.5rem; row-gap: 0.75rem; }
.src-stack-items div { border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
html.dark .src-stack-items div { border-color: var(--line-dark); color: rgba(255, 255, 255, 0.7); }
.src-ai-side { display: grid; gap: 2rem; align-content: start; }
.src-workflow span { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--accent); }
.src-workflow p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.src-operating p:not(.src-note) { margin-top: 0.75rem; }
.src-portfolio { border-bottom: 1px solid var(--border); background: #f3f1ed; }
html.dark .src-portfolio { border-color: var(--line-dark); background: #060606; }
.src-collections { display: grid; gap: 2rem; }
.src-collection-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
html.dark .src-collection-head { border-color: var(--line-dark); }
.src-collection-head h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.src-collection-head h3 + p { margin-top: 0.5rem; max-width: 42rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.src-collection-count { padding-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: #6e6358; }
.src-project { display: grid; gap: 1rem; padding: 1rem 0; transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.src-project + .src-project { border-top: 1px solid var(--border); }
html.dark .src-project + .src-project { border-color: var(--line-dark); }
.src-project:hover { background: rgba(0, 0, 0, 0.02); }
html.dark .src-project:hover { background: rgba(255, 255, 255, 0.02); }
.src-project-image { overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: #f5efe7; }
html.dark .src-project-image { border-color: var(--line-dark); background: #151211; }
.src-project-image img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; padding: 0.75rem; }
.src-project h4 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.src-project-desc { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.src-project-tech { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.25rem; color: #6e6358; }
.src-project-cta { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--accent); }
.src-more { margin-top: 2rem; }
.src-legal { background: #fff; }
html.dark .src-legal { background: #080808; }
.src-legal-grid { display: grid; gap: 2.5rem; }
.src-legal-note { max-width: 48rem; }
.src-legal-links { margin-top: 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.src-legal-links li + li { border-top: 1px solid var(--border); }
html.dark .src-legal-links, html.dark .src-legal-links li { border-color: var(--line-dark); }
.src-legal-links a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.src-legal-links a:hover { color: var(--accent); }
.src-snapshot { overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: #f6e9df; padding: 1.5rem; color: #171411; }
html.dark .src-snapshot { border-color: var(--line-dark); background: #171311; color: #f4ede6; }
.src-snapshot-note { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5rem; color: #5f564d; }
.src-metrics { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 0.75rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; }
html.dark .src-metrics { border-color: var(--line-dark); }
.src-metric-value { font-size: 1.35rem; font-weight: 600; color: #171411; }
html.dark .src-metric-value { color: #fff; }
.src-metric-label { margin-top: 0.25rem; font-size: 11px; line-height: 1rem; color: #6e6358; }
.src-copy { margin-top: 1.25rem; }
.src-copy-hint { margin-top: 1rem; max-width: 24rem; font-size: 0.75rem; line-height: 1.25rem; color: #6e6358; }
.src-tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: #6e6358; }
.src-tags span { border-radius: 9999px; border: 1px solid var(--border); padding: 0.25rem 0.75rem; }
html.dark .src-tags span { border-color: var(--line-dark); }

@media (min-width: 640px) {
  .simple-section { padding-top: 4rem; padding-bottom: 4rem; }
  .pf-hero-text p { font-size: 1.125rem; }
  .pf-tile-body { padding-left: 1.75rem; padding-right: 1.75rem; }
  .pf-directory { padding: 2rem; }
  .pf-directory-grid h2 + p { font-size: 1rem; line-height: 1.75rem; }
  .pf-group-head h3 + p { font-size: 1rem; }
  .articles-hero-inner { padding-top: 5rem; padding-bottom: 5rem; }
  .articles-lede { font-size: 1.25rem; line-height: 1.75rem; }
  .articles-shelf-head h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .article-feature-main { padding: 2.25rem; }
  .article-feature-meta { padding: 2.25rem; }
  .articles-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-header-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .article-subtitle { font-size: 1.5rem; line-height: 2rem; }
  .article-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-layout { padding-top: 4rem; padding-bottom: 4rem; }
  .article-abstract { padding: 2.25rem 0; }
  .article-abstract p:last-child { font-size: 1.5rem; line-height: 2.25rem; }
  .article-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart { padding: 1.5rem; }
  .article-short { padding-left: 1.5rem; padding-right: 1.5rem; }
  .article-section-head h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .data-table figcaption, .data-table th, .data-table td { padding-left: 1.25rem; padding-right: 1.25rem; }
  .article-note { padding: 2rem; }
  .contact-card { padding: 2.25rem; }
  .contact-card-email { font-size: 1.875rem; line-height: 2.25rem; }
  .contact-channels h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .contact-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lm-hero { padding-top: 5rem; padding-bottom: 5rem; }
  .lm-hero h1 + p { font-size: 1.25rem; line-height: 1.75rem; }
  .lm-band-title { font-size: 2.25rem; line-height: 2.5rem; }
  .sec-hero { padding-top: 5rem; padding-bottom: 5rem; }
  .legal-body-inner { padding-left: 2rem; padding-right: 2rem; }
  .legal-body article { padding-left: 2rem; padding-right: 2rem; }
  .src-hero-text h1 { font-size: 3.75rem; line-height: 1; }
  .src-hero-copy { font-size: 1.25rem; }
  .src-contact-head { padding: 1.5rem; }
  .src-contact-head h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .src-channel { grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; }
  .src-h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .src-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src-facts .span-2 { grid-column: span 2 / span 2; }
  .src-stack-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src-workflow li { grid-template-columns: 36px minmax(0, 1fr); }
  .src-collection-head h3 { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 768px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-group-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .src-services > div { grid-template-columns: 220px minmax(0, 1fr) 140px; align-items: start; }
  .src-services .src-service-cta { text-align: right; }
  .src-capabilities > div { grid-template-columns: 220px minmax(0, 1fr); }
  .src-project { grid-template-columns: 112px minmax(0, 1fr) 120px; align-items: start; }
  .src-project-cta { padding-top: 0.25rem; text-align: right; }
}
@media (min-width: 1024px) {
  .pf-hero { padding-top: 5rem; padding-bottom: 3.5rem; }
  .pf-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .pf-directory-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); align-items: end; }
  .pf-directory-nav { justify-content: flex-end; }
  .articles-hero-inner { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; padding-top: 6rem; padding-bottom: 6rem; }
  .articles-archive { margin-bottom: 0.5rem; }
  .article-feature { grid-template-columns: minmax(0, 1fr) 280px; }
  .article-feature-main { padding: 3rem; }
  .article-feature-meta { border-top: 0; border-left: 1px solid var(--border); padding: 2rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 5rem; padding-top: 5rem; padding-bottom: 5rem; }
  .article-aside { position: sticky; top: 5rem; align-self: start; }
  .contact-hero { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); padding-top: 6rem; padding-bottom: 6rem; }
  .contact-channels { grid-template-columns: 280px minmax(0, 1fr); padding-top: 4rem; padding-bottom: 4rem; }
  .lm-hero { padding-top: 6rem; padding-bottom: 6rem; }
  .lm-columns { grid-template-columns: 0.75fr 1.25fr; }
  .sec-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-hero-inner { padding-top: 5rem; }
  .legal-body-inner { padding-top: 4rem; padding-bottom: 4rem; }
  .src-hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); padding-top: 5rem; padding-bottom: 4rem; }
  .src-hero-text h1 { font-size: 4.5rem; }
  .src-split { grid-template-columns: 260px minmax(0, 1fr); }
  .src-h2 { font-size: 3rem; line-height: 1; }
  .src-ai-head { display: flex; align-items: flex-end; justify-content: space-between; }
  .src-ai-actions { margin-top: 0; }
  .src-ai-grid { grid-template-columns: minmax(0, 1.15fr) 320px; }
  .src-legal-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (min-width: 1280px) {
  .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .src-hero-text h1 { font-size: 6rem; }
  .src-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
