/* Pattern Recognition Company — shared stylesheet
   Design system: "Recognition Reticle" — corner-bracket marks borrowed from
   the company's own detection software, drawn in darkroom safelight amber. */

/* ---------- Fonts (self-hosted, no external CDN at runtime) ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragment-mono/fragment-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragment-mono/fragment-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Design tokens ---------- */

:root {
  --color-ink: #14171c;
  --color-ink-soft: #1f242b;
  --color-paper: #eef1ef;
  --color-paper-raised: #ffffff;
  --color-signal: #59ca4e;
  --color-signal-dim: #45ae3b;
  --color-lens: #57c6d1;
  --color-slate: #565c66;
  --color-line: #d8dbd8;
  --color-line-on-ink: #333a42;

  /* Dark is the site's permanent design language — not gated behind
     prefers-color-scheme. --color-ink/--color-paper stay as fixed brand
     anchors for the always-dark footer/splash surfaces. */
  --color-fg: #eef1ef;
  --color-bg: #0d1013;
  --color-surface: #171b20;
  --color-muted: #9aa1ab;
  --color-border: #262b31;

  --font-display: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.16vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.24vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.75vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 3.75rem);

  --content-max: 1240px;
  --content-pad: clamp(1.25rem, 3vw, 3rem);
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p + p { margin-top: 1em; }

a {
  text-decoration-color: var(--color-signal);
  text-underline-offset: 0.2em;
}

a:not([class]) {
  color: var(--color-lens);
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2.5px solid var(--color-signal);
  outline-offset: 3px;
  border-radius: 1px;
}

.on-ink a:focus-visible,
.on-ink button:focus-visible,
.on-ink summary:focus-visible {
  outline-color: var(--color-signal);
  outline-offset: 4px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--color-signal);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
  padding: 0.6em 1em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section-head::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  border-left: 2px solid var(--color-signal);
  border-bottom: 2px solid var(--color-signal);
  transform: translateY(-0.1em);
  flex: none;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-signal);
  margin-bottom: 0.5em;
}

.section-title {
  font-size: var(--step-2);
}

.lede {
  max-width: 62ch;
  color: var(--color-muted);
}

/* ---------- Scroll reveal (progressive enhancement) ----------
   Elements are visible by default (no-JS / reduced-motion / crawlers).
   Only when <html class="js"> is present does JS + IntersectionObserver
   arm the fade/rise-in transition via .is-visible. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), padding 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgb(0 0 0 / 35%);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  padding-block: 0.85rem;
  transition: padding 0.25s var(--ease);
}

.site-header.is-scrolled .wrap {
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 0;
}

.brand img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .brand-name { display: none; }
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.primary-nav a {
  text-decoration: none;
  color: var(--color-fg);
  padding-block: 0.25rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.primary-nav a:hover {
  border-color: var(--color-signal);
  color: var(--color-lens);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  flex-shrink: 0;
}

.lang-switch a,
.lang-switch span {
  padding: 0.4em 0.5em;
  text-decoration: none;
  color: var(--color-muted);
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

@media (min-width: 480px) {
  .lang-switch a,
  .lang-switch span {
    padding: 0.4em 0.65em;
  }
}

.lang-switch span[aria-current] {
  color: var(--color-fg);
  background: var(--color-border);
}

.lang-switch a:hover {
  color: var(--color-fg);
  background: color-mix(in srgb, var(--color-signal) 14%, transparent);
}

.mobile-nav {
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step--1);
  white-space: nowrap;
  padding: 0.65em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav[open] summary {
  border-color: var(--color-signal);
}

.mobile-nav ul {
  position: absolute;
  right: var(--content-pad);
  margin-top: 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  min-width: 12rem;
  box-shadow: 0 12px 28px -12px rgb(20 23 28 / 25%);
  animation: nav-drop 0.22s var(--ease) both;
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav ul { animation: none; }
}

.mobile-nav a {
  text-decoration: none;
  color: var(--color-fg);
}

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--color-paper);
  overflow: hidden;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(20 23 28 / 15%) 0%, rgb(20 23 28 / 45%) 55%, rgb(20 23 28 / 92%) 100%),
    var(--grain);
  background-repeat: no-repeat, repeat;
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: color-mix(in srgb, var(--color-signal) 70%, transparent);
  box-shadow: 0 0 24px 4px color-mix(in srgb, var(--color-signal) 55%, transparent);
  opacity: 0;
  animation: scan-sweep 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scan-sweep {
  0% { top: 0%; opacity: 0; }
  6% { opacity: 0.65; }
  48% { opacity: 0.65; }
  55% { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scan { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-signal);
  margin-bottom: 0.75em;
  display: block;
}

.hero h1 {
  font-size: var(--step-4);
  max-width: 16ch;
}

.hero .accent {
  background: linear-gradient(100deg, var(--color-signal) 0%, #a6f08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-eyebrow,
.hero h1 {
  animation: hero-rise 0.8s var(--ease) both;
}
.hero h1 { animation-delay: 0.12s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1 { animation: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3vw, 2rem);
  transform: translateX(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--color-paper);
  border: 1.5px solid color-mix(in srgb, var(--color-paper) 45%, transparent);
  border-radius: 50%;
  animation: cue-bob 2.2s ease-in-out infinite;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  border-color: var(--color-signal);
  background: color-mix(in srgb, var(--color-ink) 40%, transparent);
}

.scroll-cue svg {
  width: 1rem;
  height: 1rem;
}

@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* ---------- Reticle-on-hover (products, team) ---------- */

.reticle-frame {
  position: relative;
}

.reticle-frame::before,
.reticle-frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-signal);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  transform: scale(0.85);
}
.reticle-frame::before {
  top: -7px; left: -7px;
  border-right: none;
  border-bottom: none;
}
.reticle-frame::after {
  bottom: -7px; right: -7px;
  border-left: none;
  border-top: none;
}

.card:hover .reticle-frame::before,
.card:hover .reticle-frame::after,
.card:focus-within .reticle-frame::before,
.card:focus-within .reticle-frame::after {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reticle-frame::before,
  .reticle-frame::after {
    transition: opacity 0.01s linear;
    transform: none;
  }
}

/* ---------- Ambient spotlight (cards) ---------- */

.spotlight {
  position: relative;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--color-signal) 20%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.spotlight:hover::before,
.spotlight:focus-within::before {
  opacity: 1;
}

@media (hover: none) {
  .spotlight::before { display: none; }
}

/* ---------- Products ---------- */

.card-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: transform 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

.card-media {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: clamp(1rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 285px);
  aspect-ratio: 4 / 5;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover .card-media {
  border-color: color-mix(in srgb, var(--color-signal) 55%, var(--color-border));
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / 35%);
}

.card-media a {
  display: contents;
}

.card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: transform 0.4s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .card-media, .card-media img { transition: none; }
  .card:hover .card-media img { transform: none; }
}

.card h3 {
  font-size: var(--step-1);
}

.card p {
  color: var(--color-muted);
  font-size: var(--step--1);
  max-width: 32ch;
}

.card-cta {
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--color-fg);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: auto;
  padding-top: 0.35em;
  border-bottom: 1.5px solid var(--color-signal);
  width: fit-content;
  transition: color 0.2s var(--ease), transform 0.15s var(--ease);
}

.card-cta:hover {
  color: var(--color-lens);
}

.card-cta:active {
  transform: translateY(1px);
}

.card-cta::after {
  content: "\2192";
  transition: transform 0.2s var(--ease);
}

.card-cta:hover::after,
.card-cta:focus-visible::after {
  transform: translateX(3px);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.about-body p {
  color: var(--color-muted);
}

.about-body strong {
  color: var(--color-fg);
  font-weight: 600;
}

/* Location motif — map excerpt with a pin marking Lübeck, framed with the
   same corner-bracket language used elsewhere in the design system */
.map-motif {
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.map-motif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-motif::before,
.map-motif::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-signal);
  pointer-events: none;
}
.map-motif::before {
  top: -1px; left: -1px;
  border-right: none;
  border-bottom: none;
}
.map-motif::after {
  bottom: -1px; right: -1px;
  border-left: none;
  border-top: none;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.team-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover .team-photo {
  border-color: color-mix(in srgb, var(--color-signal) 55%, var(--color-border));
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / 35%);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card:hover .team-photo img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .team-photo, .team-photo img { transition: none; }
  .card:hover .team-photo img { transform: none; }
}

.team-name {
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.3;
  margin-top: 0.9rem;
  min-height: 2.6em;
}

.team-role {
  color: var(--color-lens);
  font-size: var(--step--1);
  margin-top: 0.2rem;
}

.team-bio {
  color: var(--color-muted);
  font-size: var(--step--1);
  margin-top: 0.6rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--color-ink);
  background-image: var(--grain);
  background-repeat: repeat;
  color: var(--color-paper);
}

.site-footer a {
  color: var(--color-paper);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-bottom: 1px solid var(--color-line-on-ink);
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-signal);
  margin-bottom: 0.85em;
}

.footer-heading::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-left: 2px solid var(--color-signal);
  border-bottom: 2px solid var(--color-signal);
  flex: none;
}

.footer-grid address {
  font-style: normal;
  color: color-mix(in srgb, var(--color-paper) 80%, transparent);
  line-height: 1.7;
}

.footer-grid p {
  color: color-mix(in srgb, var(--color-paper) 80%, transparent);
  font-size: var(--step--1);
}

.footer-grid a:not(.card-cta) {
  text-decoration-color: var(--color-signal);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--color-paper) 70%, transparent);
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.copyright-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}

.footer-legal-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-legal-links a:hover {
  border-color: var(--color-signal);
}

.footer-bottom .lang-switch a,
.footer-bottom .lang-switch span {
  color: inherit;
}
.footer-bottom .lang-switch span[aria-current] {
  background: var(--color-line-on-ink);
  color: var(--color-paper);
}

/* ---------- Legal pages ---------- */

.legal-header {
  border-bottom: 1px solid var(--color-border);
}

.legal-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-block: 0.85rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.legal-back {
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--color-fg);
  display: inline-flex;
  gap: 0.5rem;
}

.legal-main {
  max-width: 72ch;
  margin-inline: auto;
  padding-inline: var(--content-pad);
  padding-block: clamp(3rem, 6vw, 5rem);
  overflow-wrap: anywhere;
}

.legal-main h1 {
  font-size: var(--step-3);
  margin-bottom: 0.35em;
}

.legal-meta {
  color: var(--color-muted);
  font-size: var(--step--1);
  margin-bottom: 2.5rem;
}

.legal-main h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
}

.legal-main h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-main h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.legal-main p {
  color: var(--color-muted);
}

.legal-main ul {
  margin: 1em 0;
  padding-left: 1.3em;
  color: var(--color-muted);
  list-style: disc;
}
.legal-main li + li { margin-top: 0.5em; }

.legal-main address {
  font-style: normal;
  color: var(--color-muted);
  line-height: 1.8;
  margin: 1em 0;
}

.legal-main strong { color: var(--color-fg); }

/* ---------- Splash (root index) ---------- */

.splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-ink);
  background-image: var(--grain);
  background-repeat: repeat;
  color: var(--color-paper);
  text-align: center;
  padding: var(--content-pad);
}

.splash-inner {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.splash img { height: 48px; width: auto; }

.splash h1 {
  font-size: var(--step-1);
  font-weight: 400;
}

.splash-choices {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.splash-choices a {
  font-family: var(--font-display);
  font-size: var(--step-0);
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-paper);
  padding: 0.75em 1.75em;
  border: 1.5px solid var(--color-paper);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  position: relative;
}

.splash-choices a:hover {
  background: transparent;
  color: var(--color-paper);
}

.splash-choices a:active {
  transform: translateY(1px);
}
