/* Composura — website v0.1 — shared styles
   Visual world: concept B "Samenstel" (three unequal parts forming one square).
   Grammar: the mark's 29:16 proportion drives the page grid; porcelain / graphite / Delft blue.
   Colours live in tokens only. Light and dark both meet WCAG AA (values measured). */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FAFAF7;            /* porcelain */
  --bg-raised: #F1F1EC;
  --fg: #161616;            /* graphite */
  --fg-muted: #5D5D5A;      /* 6.3:1 on bg */
  --accent: #1E3A5F;        /* Delft blue, 11.0:1 on bg */
  --on-accent: #FAFAF7;
  --rule: #DDDDD6;
  --rule-strong: #B9B9B2;
  --field-bg: #1E3A5F;      /* the one committed colour field */
  --field-fg: #FAFAF7;      /* 11.0:1 */
  --field-muted: #C9D8EA;   /* 7.9:1 */
  --field-rule: #3B5578;
  --selection-bg: #1E3A5F;
  --selection-fg: #FAFAF7;
  --shadow-accent: rgba(30, 58, 95, 0.32);
  --shadow-ink: rgba(22, 22, 22, 0.14);
  --field-light: rgba(250, 250, 247, 0.07);
  --bg-veil: rgba(250, 250, 247, 0.78);   /* the scrim that keeps the hero headline on near-background */

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --measure: 62ch;
  --radius: 3px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-theme: 320ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101214;
    --bg-raised: #17191C;
    --fg: #ECECE8;
    --fg-muted: #A4A6A8;      /* 7.7:1 */
    --accent: #8DB2DF;        /* 8.6:1 */
    --on-accent: #101214;
    --rule: #2A2D31;
    --rule-strong: #44484E;
    --selection-bg: #8DB2DF;
    --selection-fg: #101214;
    --shadow-accent: rgba(141, 178, 223, 0.22);
    --shadow-ink: rgba(0, 0, 0, 0.5);
    --bg-veil: rgba(16, 18, 20, 0.78);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101214;
  --bg-raised: #17191C;
  --fg: #ECECE8;
  --fg-muted: #A4A6A8;
  --accent: #8DB2DF;
  --on-accent: #101214;
  --rule: #2A2D31;
  --rule-strong: #44484E;
  --selection-bg: #8DB2DF;
  --selection-fg: #101214;
  --shadow-accent: rgba(141, 178, 223, 0.22);
  --shadow-ink: rgba(0, 0, 0, 0.5);
  --bg-veil: rgba(16, 18, 20, 0.78);
}

@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--rule-strong) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-theme) ease, color var(--t-theme) ease;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--selection-bg); color: var(--selection-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--rule-strong); transition: text-decoration-color var(--t-fast) ease, color var(--t-fast) ease; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, 5.75rem); line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--fg-muted); max-width: 36ch; }
.muted { color: var(--fg-muted); }
.small { font-size: 0.9rem; line-height: 1.55; }
strong { font-weight: 600; }
.wordmark { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; }
.placeholder { color: var(--fg-muted); font-style: italic; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; gap: 2rem var(--gutter); }
@media (min-width: 840px) {
  .grid-29-16 { grid-template-columns: 29fr 16fr; }   /* the mark's own proportion */
  .grid-16-29 { grid-template-columns: 16fr 29fr; }
}
main { flex: 1 0 auto; }
/* Section rhythm: one scale, stepped per breakpoint (4.5 / 7 / 9 rem). */
section { padding-top: 0; padding-bottom: 4.5rem; }
.rule-top { border-top: 1px solid var(--rule); padding-top: 3rem; }
.field + section { padding-top: 4.5rem; }
@media (min-width: 720px) {
  section { padding-bottom: 7rem; }
  .rule-top { padding-top: 4rem; }
  .field + section { padding-top: 7rem; }
}
@media (min-width: 1100px) {
  section { padding-bottom: 9rem; }
  .rule-top { padding-top: 5rem; }
  .field + section { padding-top: 9rem; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); padding-top: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid transparent; transition: border-color var(--t-theme) ease, background-color var(--t-theme) ease, padding 400ms var(--ease-out); }
.site-header.scrolled { border-bottom-color: var(--rule); padding-top: 0.75rem; padding-bottom: 0.75rem; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; }
.brand svg { width: 28px; height: 28px; display: block; }
.brand .wordmark { font-size: 0.9rem; letter-spacing: 0.2em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.95rem; color: var(--fg-muted); padding-top: 0.25rem; padding-bottom: 0.25rem; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.controls { display: flex; align-items: center; gap: 0.5rem; margin-left: 1.5rem; }
.ctrl { appearance: none; background: none; border: 1px solid transparent; color: var(--fg-muted); font: inherit; font-size: 0.8rem; letter-spacing: 0.06em; padding: 0.35rem 0.5rem; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 32px; transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.ctrl:hover { color: var(--fg); border-color: var(--rule); }
.lang-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.lang-switch .ctrl { border: 0; border-radius: 0; min-width: 2.4rem; justify-content: center; }
.lang-switch .ctrl[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
@media (max-width: 719px) {
  .site-header { position: static; }  /* two rows: let it scroll away on phones */
  .site-header .wrap { row-gap: 1rem; }
  .controls { margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 1.5rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius); font-family: var(--font-text); font-weight: 500; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform 400ms var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--shadow-accent); }
.btn-primary { box-shadow: 0 0 0 0 var(--shadow-accent); transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.btn-quiet { color: var(--fg); border-color: var(--rule-strong); }
.btn-quiet:hover { border-color: var(--fg); transform: translateY(-2px); box-shadow: 0 14px 28px -16px var(--shadow-ink); }
.btn svg { width: 16px; height: 16px; transition: transform 400ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 500; color: var(--accent); }
.arrow-link svg { width: 16px; height: 16px; transition: transform 400ms var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link:hover { text-decoration: underline; text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { padding-top: 3rem; padding-bottom: 4.5rem; }
@media (min-width: 720px) { .hero { padding-top: 5rem; padding-bottom: 7rem; } }
@media (min-width: 1100px) { .hero { padding-top: 7rem; padding-bottom: 9rem; } }
.hero .mark { width: clamp(72px, 11vw, 150px); height: auto; display: block; margin-bottom: clamp(2.5rem, 6vw, 5rem); color: var(--fg); }
.hero h1 { max-width: 14ch; }
.hero .side { align-self: end; }
.hero .lead { margin-top: 0; }
@media (max-width: 839px) { .hero .side { margin-top: 1rem; } }

/* Home hero as a stage: full-bleed, near the height of the viewport, with a slowly moving scene behind the headline.
   The scene is the "assemble" loop (figure.loop in .hero-media); a <video autoplay muted loop playsinline poster>
   can take its place later — .hero-media video is styled below and index.html marks the slot.
   A scrim rises from the bottom so the headline and lead always sit on (near) the page background: AA in both themes. */
.hero-stage { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-stage .wrap { position: relative; z-index: 2; }
.hero-stage .hero-media { position: absolute; inset: 0; z-index: 0; margin: 0; width: auto; max-width: none; pointer-events: none; opacity: 0.55; }
.hero-stage .hero-media svg, .hero-stage .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-stage .hero-media .lp-ink { fill: var(--accent); fill-opacity: 0.55; }   /* the square settles in soft Delft blue, never a hard block behind the words */
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--bg) 0%, var(--bg) 14%, var(--bg-veil) 46%, transparent 78%); }
@media (min-width: 840px) {
  .hero-stage { min-height: calc(100vh - 7rem); min-height: min(calc(100svh - 7rem), 920px); }
  .hero-stage h1 { font-size: clamp(2.8rem, 7.4vw, 7rem); max-width: 12ch; }
  .hero-stage .hero-media svg { transform-origin: 60% 40%; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 840px) {
  .hero-stage .hero-media svg { animation: hero-drift 28s ease-in-out infinite alternate; }   /* the slow push-in of a filmed background */
}
@keyframes hero-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(1.5%, -1%); } }
@media (max-width: 839px) {
  /* On a phone the scene becomes a band below the words: no cropping, no text over moving lines. */
  .hero-stage { justify-content: flex-start; padding-bottom: 0; }
  .hero-stage .hero-media { order: 2; position: relative; inset: auto; width: 100%; opacity: 0.85; margin-top: 2.5rem; }
  .hero-stage .hero-media svg { position: relative; height: auto; aspect-ratio: 29 / 16; }
  .hero-stage .hero-media video { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .hero-stage::after { display: none; }
}

/* Signature moment: the three parts assemble into one square on load. */
.mark .part { transform-box: fill-box; transform-origin: center; }
.hero .mark { touch-action: none; }
.hero .mark.ready .part { animation: none; transition: transform 700ms var(--ease-out); will-change: transform; }
.hero .mark.ready .part.dragging { transition: none; }
.hero .mark.ready .part { cursor: grab; }
.hero .mark.ready .part.dragging { cursor: grabbing; }
@media (prefers-reduced-motion: no-preference) {
  .hero .mark .part-a { animation: part-a 1100ms var(--ease-out) both; }
  .hero .mark .part-b { animation: part-b 1100ms 120ms var(--ease-out) both; }
  .hero .mark .part-c { animation: part-c 1100ms 240ms var(--ease-out) both; }
  .hero h1 { animation: rise 900ms 500ms var(--ease-out) both; }
  .hero .side { animation: rise 900ms 700ms var(--ease-out) both; }
}
@keyframes part-a { from { transform: translate(-18px, -18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes part-b { from { transform: translate(-18px, 22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes part-c { from { transform: translate(22px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Mark in page body (about page) */
.mark-explained { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.mark-explained svg { width: min(100%, 320px); height: auto; color: var(--fg); overflow: visible; }
.mark-explained svg rect { transform-box: fill-box; transform-origin: center; transition: transform 700ms var(--ease-out); }
.mark-explained svg:hover rect:nth-child(1) { transform: translate(-4px, -4px); }
.mark-explained svg:hover rect:nth-child(2) { transform: translate(-4px, 4px); }
.mark-explained svg:hover rect:nth-child(3) { transform: translate(4px, 0); }
.mark-explained .legend { display: grid; gap: 1rem; }
.mark-explained .legend div { display: grid; grid-template-columns: 20px 1fr; gap: 0.9rem; align-items: start; }
.mark-explained .legend span.sw { display: block; width: 14px; height: 14px; margin-top: 0.4rem; border-radius: 2px; background: var(--fg); }
.mark-explained .legend span.sw.muted { background: var(--rule-strong); }
.mark-explained .legend span.sw.accent { background: var(--accent); }
@media (min-width: 840px) { .mark-explained { grid-template-columns: 16fr 29fr; gap: var(--gutter); } }

/* ---------- Definition rows (not cards) ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rows li { display: grid; gap: 0.75rem var(--gutter); padding-top: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }
.rows h3 { font-family: var(--font-display); transition: transform 500ms var(--ease-out), color var(--t-fast) ease; }
.rows li:hover h3 { transform: translateX(6px); }
.rows p { margin: 0; }
@media (min-width: 720px) { .rows li { grid-template-columns: 16fr 29fr; padding-top: 2rem; padding-bottom: 2rem; } }

/* ---------- Principles ---------- */
.principles { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 1.25rem var(--gutter); padding-top: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); align-items: start; }
@media (max-width: 839px) { .principles p { grid-column: 2; } }   /* text under the heading, not in the glyph column */
.principles .glyph { width: 44px; height: 44px; color: var(--fg); overflow: visible; }
.principles .glyph .part { transform-box: fill-box; transform-origin: center; transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out); }
.principles li:hover .glyph .part-a { transform: translate(-2px, -2px); }
.principles li:hover .glyph .part-b { transform: translate(-2px, 2px); }
.principles li:hover .glyph .part-c { transform: translate(2px, 0); }
.principles .glyph .faint { opacity: 0.22; }
.principles .glyph .blue { fill: var(--accent); }
.principles h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
@media (min-width: 840px) { .principles li { grid-template-columns: 44px 16fr 29fr; padding-top: 2.75rem; padding-bottom: 2.75rem; } .principles h2 { margin-bottom: 0; } }

/* ---------- Looping illustrations (figure.loop) ----------
   Small business moments drawn in SVG, in the mark's own 29:16 frame: a document, a ledger and a chart that
   assemble into the square (home); an invoice composed line by line (about); a chart settling into a report
   (principles). The markup is the still frame; site.js animates transform and opacity in a 12 s loop and
   pauses it off-screen. Under prefers-reduced-motion nothing moves. Colours are tokens, so both themes work. */
.loop { display: block; margin: 2.5rem 0 0; width: min(100%, 440px); }
.loop svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--fg); }
.loop [data-in] { transform-box: fill-box; transform-origin: center; }
.loop .ol { transform-origin: left center; }
.loop .ob { transform-origin: center bottom; }
.loop line, .loop path, .loop circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.loop .lp-frame { fill: var(--bg-raised); stroke: var(--rule); stroke-width: 1; }
.loop .lp-ink { fill: currentColor; }
.loop .lp-fg { stroke: currentColor; }
.loop .lp-mut { stroke: var(--fg-muted); }
.loop .lp-rule { stroke: var(--rule-strong); }
.loop .lp-acc { stroke: var(--accent); }
.loop .lp-acc-fill { fill: var(--accent); }
.loop .lp-bar { fill: var(--rule-strong); }
.loop .lp-draw { stroke-dasharray: 1; stroke-linecap: butt; }
.hero .loop { margin-top: 2.5rem; }
@media (min-width: 840px) { .hero .loop { margin-top: 3rem; } }

/* ---------- The colour field ---------- */
.field { background: var(--field-bg); color: var(--field-fg); padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 720px) { .field { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1100px) { .field { padding-top: 9rem; padding-bottom: 9rem; } }
.field { position: relative; isolation: isolate; overflow: hidden; }
.field::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 700ms var(--ease-out); background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--field-light), transparent 70%); }
.field.lit::before { opacity: 1; }
.field h2 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); max-width: 14ch; }
.field p { color: var(--field-muted); }
.field .arrow-link { color: var(--field-fg); }
.field ::selection { background: var(--field-fg); color: var(--field-bg); }
.field :focus-visible { outline-color: var(--field-fg); }
.field .side { align-self: end; }

/* ---------- Contact ---------- */
.mail-link { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.6rem, 4.4vw, 3.6rem); line-height: 1.1; text-decoration: none; display: inline-block; border-bottom: 1px solid var(--rule-strong); padding-bottom: 0.15em; transition: border-color var(--t-fast) ease; overflow-wrap: anywhere; }
.mail-link:hover { border-color: var(--fg); }

/* ---------- Document pages (privacy, colophon) ---------- */
.doc { max-width: 68ch; }
.doc h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-top: 2.75rem; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.doc h2:first-of-type { margin-top: 3rem; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.doc li { margin-bottom: 0.35em; }
.doc dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.doc dt { color: var(--fg-muted); }
.doc dd { margin: 0; }
.notice { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--fg-muted); font-size: 0.95rem; max-width: 68ch; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2rem; }
.site-footer .big { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(2rem, 8.6vw, 7.5rem); line-height: 1; margin: 0 0 clamp(2rem, 5vw, 4rem); color: var(--fg); white-space: nowrap; overflow: hidden; }
/* One short line; the full company details live on the colophon page. Everything may wrap on a phone. */
.footer-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0; max-width: none; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--fg-muted); font-size: 0.9rem; line-height: 1.7; overflow-wrap: anywhere; }
.footer-line .sep { margin-left: 0.6em; margin-right: 0.6em; color: var(--rule-strong); }
.footer-line a { color: var(--fg-muted); text-decoration: none; }
.footer-line a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- Scroll reveals (JS adds .rv; without JS everything is simply visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .rv.seen { opacity: 1; transform: none; }
  .js .site-footer .big { letter-spacing: 0.3em; opacity: 0; transition: letter-spacing 1400ms var(--ease-out), opacity 1000ms var(--ease-out); }
  .js .site-footer .big.seen { letter-spacing: 0.12em; opacity: 1; }
  .js .principles .glyph .part-a:not(.in) { transform: translate(-10px, -10px); opacity: 0; }
  .js .principles .glyph .part-b:not(.in) { transform: translate(-10px, 12px); opacity: 0; }
  .js .principles .glyph .part-c:not(.in) { transform: translate(12px, 0); opacity: 0; }
}

/* ---------- Page transitions: header and footer stay, the content crossfades ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 220ms ease-out both vt-out; }
  ::view-transition-new(root) { animation: 360ms var(--ease-out) both vt-in; }
  ::view-transition-old(site-header), ::view-transition-new(site-header), ::view-transition-old(site-footer), ::view-transition-new(site-footer) { animation: none; mix-blend-mode: normal; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
