@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Liepājas pastaigas — Nocturne-based dark theme
   Tokens vendored from the Nocturne design system.
   ============================================================ */

:root {
  --color-bg: #1a1715;
  --color-bg-deep: #131110;
  --color-surface: #241f1c;
  --color-surface-2: #2b2522;
  --color-text: #e9e9ed;
  --color-accent: oklch(0.660 0.125 45);
  --color-divider: rgba(233, 233, 237, 0.16);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: oklch(0.965 0.02 45);
  --color-accent-200: oklch(0.925 0.05 45);
  --color-accent-300: oklch(0.865 0.08 45);
  --color-accent-400: oklch(0.775 0.11 45);
  --color-accent-500: oklch(0.69 0.125 45);
  --color-accent-600: oklch(0.59 0.115 45);
  --color-accent-700: oklch(0.48 0.1 45);
  --color-accent-800: oklch(0.37 0.075 45);
  --color-accent-900: oklch(0.265 0.05 45);
  --color-section: oklch(0.300 0.090 45);
  --color-section-glow: oklch(0.390 0.100 45);
  --color-section-ghost: oklch(0.500 0.090 45);


  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 72px;
  --space-12: 104px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Ambient page glow — accent as light, never as a flood */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 620px at 78% -8%, oklch(0.660 0.125 45 / 0.16), transparent 62%),
    radial-gradient(720px 520px at -10% 22%, rgba(38, 42, 96, 0.45), transparent 60%);
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--color-neutral-100);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-accent-300); text-decoration: none; text-underline-offset: 3px; transition: color 200ms var(--ease); }
a:hover { color: var(--color-accent-200); text-decoration: underline; }

img { display: block; max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: oklch(0.660 0.125 45 / 0.32); }

.wrap { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--space-5); position: relative; z-index: 1; }
.muted { color: var(--color-neutral-400); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--color-neutral-300); max-width: 62ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-accent-800); color: var(--color-neutral-100);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* — fading rules, a Nocturne signature — */
.hr {
  height: 1px; border: 0; margin: var(--space-8) 0;
  background: linear-gradient(90deg, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent);
}

/* ── kicker ─────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent-300); margin-bottom: var(--space-4);
}
.kicker::before {
  content: ''; width: 28px; height: 2px; border-radius: 2px;
  background: var(--color-accent); display: block;
}

/* ── buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  min-height: 52px; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease), color 220ms var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  border-color: var(--color-accent); color: var(--color-accent-200); background: transparent;
  box-shadow: 0 0 0 0 oklch(0.660 0.125 45 / 0.4);
}
.btn-primary:hover {
  background: oklch(0.660 0.125 45 / 0.14); color: var(--color-accent-100);
  box-shadow: 0 10px 30px -12px oklch(0.660 0.125 45 / 0.7);
}
.btn-primary:active { background: oklch(0.660 0.125 45 / 0.24); }

.btn-secondary {
  border-color: var(--color-neutral-700); color: var(--color-neutral-200); background: transparent;
}
.btn-secondary:hover { border-color: var(--color-neutral-500); background: rgba(233, 233, 237, 0.05); }

.btn-ghost { color: var(--color-accent-300); padding-inline: var(--space-2); min-height: 44px; }
.btn-ghost:hover { color: var(--color-accent-200); }

/* ── tags ───────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; line-height: 1; padding: 7px 12px;
  border-radius: var(--radius-full);
}
.tag-accent { background: var(--color-accent-900); color: var(--color-accent-300); border: 1px solid var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-900); color: var(--color-neutral-300); border: 1px solid var(--color-neutral-800); }
.tag-outline { background: transparent; border: 1px solid var(--color-neutral-800); color: var(--color-neutral-300); padding: 9px 14px; font-size: 0.9rem; transition: border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease); }
.tag-outline:hover { border-color: var(--color-accent-700); color: var(--color-accent-200); transform: translateY(-2px); }

/* ── header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(22, 24, 38, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.site-header.is-stuck { background: rgba(16, 18, 32, 0.92); border-bottom-color: var(--color-divider); }

.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: var(--space-3) var(--space-5);
  display: flex; align-items: center; gap: var(--space-5);
}

.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--color-neutral-100); letter-spacing: -0.01em; }

.nav-desktop { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; flex-wrap: wrap; }
.nav-link {
  position: relative; color: var(--color-neutral-300); font-size: 0.94rem;
  padding: 10px 12px; border-radius: var(--radius-sm);
}
.nav-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--color-accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease);
}
.nav-link:hover { color: var(--color-neutral-100); text-decoration: none; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--color-neutral-100); }

.header-cta { margin-left: var(--space-3); min-height: 46px; padding: 10px var(--space-5); font-size: 0.94rem; }

.burger {
  display: none; margin-left: auto; width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-md); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--color-neutral-200); border-radius: 2px; transition: transform 260ms var(--ease), opacity 200ms; }
.burger:hover { border-color: var(--color-accent-700); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--color-bg-deep);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 260ms var(--ease), transform 320ms var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu-top { display: flex; justify-content: flex-end; margin-bottom: var(--space-4); }
.menu-close {
  width: 48px; height: 48px; border-radius: var(--radius-md); cursor: pointer;
  background: transparent; border: 1px solid var(--color-neutral-800); color: var(--color-neutral-200);
  font-size: 1.4rem; line-height: 1;
}
.mobile-menu a {
  color: var(--color-neutral-200); font-size: 1.15rem; padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-neutral-900);
}
.mobile-menu a:hover { color: var(--color-accent-200); text-decoration: none; }
.mobile-menu .btn { margin-top: var(--space-5); }

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--color-accent-700), var(--color-accent-400));
}

/* ── sections ───────────────────────────────────────── */
.section { padding: var(--space-12) 0; position: relative; }
.section-tight { padding: var(--space-10) 0; }
.section-head { max-width: 66ch; margin-bottom: var(--space-8); }

.section-alt {
  background: linear-gradient(180deg, rgba(30, 32, 48, 0) 0%, rgba(30, 32, 48, 0.75) 22%, rgba(30, 32, 48, 0.75) 78%, rgba(30, 32, 48, 0) 100%);
}

/* ── hero ───────────────────────────────────────────── */
.hero { padding: var(--space-12) 0 var(--space-10); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-10); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--radius-lg);
  mix-blend-mode: lighten; background-color: transparent;
}
.hero-figure::after {
  content: ''; position: absolute; inset: -8%;
  background: radial-gradient(closest-side, oklch(0.660 0.125 45 / 0.22), transparent 72%);
  z-index: -1; filter: blur(20px);
}

.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-5); margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.fact-value { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 600; color: var(--color-neutral-100); line-height: 1; display: block; }
.fact-label { font-size: 0.9rem; color: var(--color-neutral-400); margin-top: var(--space-2); display: block; }

/* ── cards ──────────────────────────────────────────── */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  position: relative; background: var(--color-surface);
  border: 1px solid var(--color-neutral-900); border-radius: var(--radius-lg);
  padding: var(--space-6); overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), oklch(0.660 0.125 45 / 0.13), transparent 70%);
  transition: opacity 320ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--color-neutral-800); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card-num {
  font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 0.14em;
  color: var(--color-accent-400); margin-bottom: var(--space-4); display: block;
}
.card h3 { font-size: 1.25rem; margin-bottom: var(--space-3); }
.card p { color: var(--color-neutral-400); font-size: 0.98rem; margin: 0; }

/* article card */
.post {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-neutral-900);
  border-radius: var(--radius-lg);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.post:hover { transform: translateY(-5px); border-color: var(--color-neutral-800); box-shadow: var(--shadow-md); }
.post-media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-bg-deep); }
.post-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease), filter 500ms var(--ease);
  filter: saturate(0.85) brightness(0.9);
}
.post:hover .post-media img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.post-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.post-body h3 { margin: 0; font-size: 1.22rem; }
.post-body p { color: var(--color-neutral-400); font-size: 0.98rem; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 0.85rem; color: var(--color-neutral-500); margin-top: auto; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--color-accent-300); }
.post-link .arrow { transition: transform 260ms var(--ease); display: inline-block; }
.post:hover .post-link .arrow, .post-link:hover .arrow { transform: translateX(5px); }

/* ── stats band (section ground — presence at page scale) ── */
.band {
  background: linear-gradient(135deg, var(--color-section) 0%, #1d2050 55%, var(--color-section-glow) 100%);
  padding: var(--space-10) 0; position: relative; overflow: hidden;
}
.band::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(720px 320px at 84% 120%, rgba(76, 83, 151, 0.55), transparent 70%);
  pointer-events: none;
}
.band .wrap { position: relative; z-index: 1; }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-6); }
.band-value { font-family: var(--font-heading); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1; color: #fff; }
.band-label { color: rgba(233, 233, 237, 0.72); font-size: 0.95rem; margin-top: var(--space-3); }

/* ── timeline ───────────────────────────────────────── */
.timeline { position: relative; padding-left: 42px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-accent-800) 8%, var(--color-accent-800) 92%, transparent);
}
.tl-item { position: relative; padding-bottom: var(--space-8); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -37px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--color-bg); border: 2px solid var(--color-accent-500);
  box-shadow: 0 0 0 5px oklch(0.660 0.125 45 / 0.12);
  transition: box-shadow 400ms var(--ease), background 400ms var(--ease);
}
.tl-item.is-visible::before { background: var(--color-accent-500); box-shadow: 0 0 0 8px oklch(0.660 0.125 45 / 0.18); }
.tl-year { font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.12em; color: var(--color-accent-400); }
.tl-item h4 { margin: var(--space-2) 0 var(--space-2); }
.tl-item p { color: var(--color-neutral-400); font-size: 0.98rem; margin: 0; }

/* ── steps ──────────────────────────────────────────── */
.step { text-align: left; }
.step-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  border: 1px solid var(--color-accent-800); background: var(--color-accent-900);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-300); font-size: 1.4rem; margin-bottom: var(--space-4);
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}
.step:hover .step-icon { transform: translateY(-3px) rotate(-4deg); background: var(--color-accent-800); }
.step h4 { margin-bottom: var(--space-2); }
.step p { color: var(--color-neutral-400); font-size: 0.96rem; margin: 0; }

/* ── data table ─────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--color-neutral-900); border-radius: var(--radius-lg); background: var(--color-surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.96rem; }
table.data caption { text-align: left; padding: var(--space-5) var(--space-5) 0; color: var(--color-neutral-400); font-size: 0.9rem; }
table.data th, table.data td { padding: var(--space-4) var(--space-5); text-align: left; }
table.data thead th {
  font-family: var(--font-heading); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-neutral-400);
  border-bottom: 1px solid var(--color-neutral-800);
}
table.data tbody tr { border-bottom: 1px solid var(--color-neutral-900); transition: background 220ms var(--ease); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody tr:hover { background: oklch(0.660 0.125 45 / 0.06); }
table.data td:first-child { color: var(--color-neutral-100); }

/* ── route map (schematic) ──────────────────────────── */
.routemap { background: var(--color-surface); border: 1px solid var(--color-neutral-900); border-radius: var(--radius-lg); padding: var(--space-6); }
.routemap svg { width: 100%; height: auto; }
.route-path { fill: none; stroke: var(--color-accent-500); stroke-width: 2.5; stroke-linecap: round; }
.js .route-path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.is-visible .route-path { animation: draw 2.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.route-stop { fill: var(--color-bg); stroke: var(--color-accent-400); stroke-width: 2; }
.js .route-stop { opacity: 0; }
.is-visible .route-stop { animation: pop 500ms var(--ease) forwards; }
.route-stop:nth-of-type(1) { animation-delay: 0.5s; }
.route-stop:nth-of-type(2) { animation-delay: 1.0s; }
.route-stop:nth-of-type(3) { animation-delay: 1.5s; }
.route-stop:nth-of-type(4) { animation-delay: 2.0s; }
.route-stop:nth-of-type(5) { animation-delay: 2.4s; }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.route-label { fill: var(--color-neutral-400); font-size: 13px; font-family: var(--font-body); }

/* ── quotes ─────────────────────────────────────────── */
.quote {
  background: var(--color-surface); border: 1px solid var(--color-neutral-900);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}
.quote:hover { transform: translateY(-4px); border-color: var(--color-accent-800); }
.quote-mark { color: var(--color-accent-600); font-size: 2.4rem; line-height: 0.6; font-family: Georgia, serif; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--color-neutral-200); }
.quote figcaption { font-size: 0.9rem; color: var(--color-neutral-500); }
.quote figcaption strong { color: var(--color-neutral-300); font-weight: 500; display: block; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-list { display: grid; gap: var(--space-3); }
details.faq {
  background: var(--color-surface); border: 1px solid var(--color-neutral-900);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 260ms var(--ease), background 260ms var(--ease);
}
details.faq[open] { border-color: var(--color-accent-800); background: var(--color-surface-2); }
details.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-5) var(--space-6);
  font-family: var(--font-heading); font-size: 1.08rem; font-weight: 500; color: var(--color-neutral-100);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ''; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2px solid var(--color-accent-400); border-bottom: 2px solid var(--color-accent-400);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 300ms var(--ease);
}
details.faq[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details.faq summary:hover { background: oklch(0.660 0.125 45 / 0.06); }
.faq-answer { padding: 0 var(--space-6) var(--space-5); color: var(--color-neutral-400); }
details.faq[open] .faq-answer { animation: fadeSlide 400ms var(--ease); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── CTA panel ──────────────────────────────────────── */
.cta-panel {
  border: 1px solid var(--color-accent-800); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(43, 39, 65, 0.85), rgba(30, 32, 48, 0.6));
  padding: var(--space-10); display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-8); justify-content: space-between; position: relative; overflow: hidden;
}
.cta-panel::after {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px;
  background: radial-gradient(closest-side, oklch(0.660 0.125 45 / 0.22), transparent);
  animation: float 12s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate3d(-40px, 40px, 0) scale(1.15); } }
.cta-panel > * { position: relative; z-index: 1; }
.cta-copy { max-width: 60ch; }
.cta-copy h2 { margin-bottom: var(--space-3); }
.cta-copy p { color: var(--color-neutral-300); margin: 0; }

/* ── breadcrumbs ────────────────────────────────────── */
.crumbs { font-size: 0.9rem; color: var(--color-neutral-500); padding-top: var(--space-6); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.crumbs li::after { content: '/'; margin-left: var(--space-2); color: var(--color-neutral-700); }
.crumbs li:last-child::after { content: ''; }
.crumbs a { color: var(--color-neutral-400); }

/* ── prose (article body) ───────────────────────────── */
.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--space-10); }
.prose h3 { margin-top: var(--space-8); }
.prose p, .prose li { color: var(--color-neutral-300); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--color-accent-500); }
.prose figure { margin: var(--space-8) 0; }
.prose figure img { border-radius: var(--radius-lg); }
.prose figcaption { font-size: 0.88rem; color: var(--color-neutral-500); margin-top: var(--space-3); }
.callout {
  border-left: 2px solid var(--color-accent-600); background: rgba(43, 39, 65, 0.5);
  padding: var(--space-5) var(--space-6); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0;
}
.callout strong { color: var(--color-neutral-100); }

/* ── forms ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: 0.92rem; color: var(--color-neutral-300); }
.input {
  font-family: var(--font-body); font-size: 1rem; color: var(--color-text);
  background: var(--color-bg-deep); border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-md); padding: var(--space-4); min-height: 52px;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
  width: 100%;
}
.input:hover { border-color: var(--color-neutral-700); }
.input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px oklch(0.660 0.125 45 / 0.18); outline: none; }
textarea.input { min-height: 150px; resize: vertical; }

/* ── footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-divider); background: var(--color-bg-deep); padding: var(--space-10) 0 var(--space-6); margin-top: var(--space-12); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--space-6) var(--space-8); }
.site-footer h3 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-neutral-400); margin-bottom: var(--space-4); }
.site-footer p, .site-footer li { color: var(--color-neutral-400); font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--color-neutral-300); }
.site-footer a:hover { color: var(--color-accent-200); }
.footer-bottom {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--color-neutral-900);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between;
  font-size: 0.88rem; color: var(--color-neutral-500);
}
.footer-bottom p { margin: 0; font-size: 0.88rem; color: var(--color-neutral-500); }

/* ── cookie banner ──────────────────────────────────── */
.cookie {
  position: fixed; left: var(--space-5); right: var(--space-5); bottom: var(--space-5); z-index: 120;
  max-width: 560px; margin-left: auto;
  background: var(--color-surface-2); border: 1px solid var(--color-neutral-800);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform 520ms var(--ease);
}
.cookie.is-shown { transform: none; }
.cookie h4 { margin-bottom: var(--space-2); font-size: 1.05rem; }
.cookie p { font-size: 0.92rem; color: var(--color-neutral-400); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.cookie-actions .btn { min-height: 46px; padding: 10px var(--space-5); font-size: 0.94rem; }
.cookie-prefs { display: none; margin-top: var(--space-5); border-top: 1px solid var(--color-neutral-800); padding-top: var(--space-5); }
.cookie-prefs.is-shown { display: block; animation: fadeSlide 320ms var(--ease); }
.pref-row { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); }
.pref-row input { margin-top: 6px; width: 20px; height: 20px; accent-color: var(--color-accent); }
.pref-row span { font-size: 0.9rem; color: var(--color-neutral-400); }
.pref-row strong { display: block; color: var(--color-neutral-200); font-weight: 500; }

/* ── back to top ────────────────────────────────────── */
.to-top {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 70;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--color-surface-2); border: 1px solid var(--color-neutral-800);
  color: var(--color-neutral-200); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), border-color 220ms;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--color-accent-600); color: var(--color-accent-200); }

/* ── scroll reveal ──────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 40ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 120ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 280ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 440ms; }

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-desktop, .header-cta { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: var(--space-10) 0; }
  .cta-panel { padding: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .cookie { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  body::before, .site-header, .cookie, .to-top, .scroll-progress { display: none !important; }
  body { background: #fff; color: #000; }
}


/* — site-specific layer — */
h1, h2 { letter-spacing: -0.03em; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.card { border-radius: var(--radius-lg); }
.post { border-radius: var(--radius-lg); }
.post-media { aspect-ratio: 16 / 9; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.section-head { max-width: 58ch; }
