/*
 * Scoutvane: marketing site styles.
 * Every style lives in this file: the CSP allows style-src 'self' only,
 * so the HTML must not use <style> blocks or style="" attributes.
 */

/* ---------- Fonts (self-hosted, SIL OFL; see assets/fonts/*-OFL.txt) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --ink-0: #070f1a;
  --ink-1: #0b1726;
  --ink-2: #0f1e30;
  --navy: #13253a;
  --line: rgba(185, 196, 210, 0.13);
  --line-strong: rgba(185, 196, 210, 0.26);
  --slate: #6b7a8f;
  --text: #e9eef4;
  --text-2: #aab7c7;
  --text-3: #8796ab;
  --brass: #c9a24a;
  --brass-hi: #e3c27b;
  --brass-lo: #9b7a2f;
  --brass-wash: rgba(201, 162, 74, 0.12);
  --ok: #86d0a6;
  --paper: #f4efe3;
  --paper-2: #e9e1cd;
  --paper-ink: #1c2635;
  --radius: 14px;
  --gutter: 16px;
  --maxw: 1180px;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--ink-1);
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink-1);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(201, 162, 74, 0.35); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--brass); color: var(--ink-1); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-brass {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: #0b1726;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 28px -12px rgba(201, 162, 74, 0.7);
}
.btn-brass:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 32px -12px rgba(201, 162, 74, 0.85); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); color: var(--text); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-hi); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Language hint: English pages, Turkish visitors (assets/js/lang-hint.js) ---------- */
.lang-hint { background: var(--brass-wash); border-bottom: 1px solid var(--line); }
.lang-hint[hidden] { display: none; }
.lang-hint-inner { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.lang-hint-inner p { margin: 0; padding: 8px 0; font-size: 0.9375rem; color: var(--text); }
.lang-hint-go { color: var(--brass-hi); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-hint-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-hint-close {
  flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); font: 400 1.375rem/1 var(--font-body); cursor: pointer;
}
.lang-hint-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 19, 32, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  text-decoration: none; color: var(--text);
}
.brand img { width: 32px; height: 32px; }
.brand-name {
  font: 600 1.0625rem/1 var(--font-display);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); text-decoration: none;
  font: 500 0.8125rem/1 var(--font-mono); letter-spacing: 0.08em;
}
.lang:hover { color: var(--brass-hi); border-color: var(--brass); }
@media (min-width: 1080px) {
  .nav { display: flex; gap: 26px; margin-left: 40px; }
  .nav a {
    position: relative; padding: 6px 0;
    color: var(--text-2); text-decoration: none; font-size: 0.9375rem;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
  }
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  .nav { gap: 20px; margin-left: 28px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 20px 0 64px;
  background:
    radial-gradient(90% 70% at 78% 30%, rgba(27, 51, 80, 0.95) 0%, rgba(11, 23, 38, 0) 70%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink-1) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/graticule.svg") 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 65% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 65% 35%, #000 25%, transparent 80%);
}
.hero-grid { display: grid; gap: 12px; align-items: center; }
.hero-visual {
  position: relative; order: -1;
  width: min(74vw, 340px); aspect-ratio: 1; margin-inline: auto;
}
.hero-visual::before {
  /* portolan rhumb lines radiating from the compass */
  content: ""; position: absolute; z-index: -1; inset: -90%;
  background: url("../img/rhumb.svg") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 62%);
  mask-image: radial-gradient(circle, #000 20%, transparent 62%);
}
.hero-visual::after {
  content: ""; position: absolute; z-index: -1; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.2) 0%, rgba(201, 162, 74, 0.05) 45%, transparent 70%);
}
.compass-fallback, .compass-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.compass-fallback { padding: 10%; object-fit: contain; transition: opacity 0.8s ease; }
.compass-canvas { opacity: 0; transition: opacity 1s ease; }
.hero-visual.is-3d .compass-canvas { opacity: 1; }
.hero-visual.is-3d .compass-fallback { opacity: 0; }
.readout {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  margin: 0; padding: 7px 12px; white-space: nowrap;
  border: 1px solid rgba(201, 162, 74, 0.35); border-radius: 999px;
  background: rgba(7, 15, 26, 0.7); color: var(--brass-hi);
  font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.6s ease 0.4s;
}
.hero-visual.is-3d .readout { opacity: 1; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0;
  color: var(--brass);
  font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; flex: none; background: currentColor; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 1.35rem + 4.3vw, 4.5rem);
  font-weight: 500; line-height: 1.02;
}
.hero h1 em { font-style: normal; color: var(--brass-hi); }
.lead {
  margin-top: 20px; max-width: 60ch;
  color: var(--text-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ticket {
  position: relative; margin: 36px 0 0; max-width: 580px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(7, 15, 26, 0.6);
  font: 400 0.8125rem/1.5 var(--font-mono);
}
.ticket::before {
  content: "Örnek kayıt";
  position: absolute; top: -10px; right: 14px; margin: 0;
  padding: 3px 8px; border-radius: 4px;
  background: var(--ink-1); border: 1px solid var(--line-strong);
  color: var(--text-3); font: 500 0.625rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
}
:lang(en) .ticket::before { content: "Sample record"; }
.ticket > div {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px;
  padding: 9px 14px; border-top: 1px dashed var(--line);
}
.ticket > div:first-of-type { border-top: 0; }
.ticket dt { padding-top: 1px; color: var(--text-3); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ticket dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ticket .sev { color: #f0a080; }
.ticket .ok { color: var(--ok); }

@media (min-width: 900px) {
  .hero { padding: 48px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; }
  .hero-visual { order: 0; width: 100%; max-width: 560px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 72px 0; }
.section::before {
  /* nautical ruler: minor ticks every 10px, brass majors every 100px */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(201, 162, 74, 0.55) 0 1px, transparent 1px 100px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.section-alt { background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); }
.section-head { max-width: 780px; }
.section h2 { margin-top: 14px; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.section-lead { margin-top: 16px; max-width: 64ch; color: var(--text-2); font-size: 1.0625rem; }
@media (min-width: 900px) {
  .section { padding: 112px 0; }
}

/* What it does: source cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 44px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(201, 162, 74, 0.45); transform: translateY(-3px); }
.card h3 { margin-top: 18px; font-size: 1.375rem; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 0.975rem; }
.card .proof {
  margin-top: auto; padding-top: 18px;
  color: var(--brass); font: 400 0.75rem/1.4 var(--font-mono); letter-spacing: 0.04em;
}
.icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, 0.5); color: var(--brass-hi);
  background: radial-gradient(circle at 30% 25%, rgba(201, 162, 74, 0.24), rgba(201, 162, 74, 0.04));
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Evidence chain + report page */
.evidence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 72px; }
@media (min-width: 960px) { .evidence { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.evidence h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.evidence-intro { margin-top: 14px; color: var(--text-2); }
.chain { margin: 28px 0 0; padding: 0; list-style: none; }
.chain li { position: relative; padding: 0 0 20px 36px; }
.chain li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--brass); background: var(--ink-1);
}
.chain li::after {
  content: ""; position: absolute; left: 6px; top: 22px; bottom: 2px; width: 1px;
  background: linear-gradient(var(--brass), var(--line-strong));
}
.chain li:last-child { padding-bottom: 0; }
.chain li:last-child::after { display: none; }
.chain strong { display: block; color: var(--text); font-weight: 600; }
.chain span { display: block; margin-top: 2px; color: var(--text-2); font-size: 0.95rem; }
.chain code { font: 500 0.875em var(--font-mono); color: var(--brass-hi); }

.dossier { display: flex; justify-content: center; margin: 0; padding: 12px 8px 24px; perspective: 1600px; }
.paper {
  position: relative; width: 100%; max-width: 470px;
  padding: 24px 22px 26px; border-radius: 6px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 20px 40px -24px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: rotateY(-9deg) rotateX(7deg) rotateZ(-1.2deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
  .dossier:hover .paper { transform: rotateY(-3deg) rotateX(3deg) rotateZ(-0.4deg); }
}
.paper-top { display: flex; justify-content: space-between; gap: 12px; font: 600 0.6875rem/1 var(--font-mono); letter-spacing: 0.08em; }
.tlp { padding: 4px 6px; border-radius: 2px; background: #000; color: #ffc000; }
.paper-id { color: #5b6677; }
.paper-title {
  margin: 20px 0 0; padding-right: 92px;
  font: 650 1.0625rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy);
}
.paper-label { margin-top: 16px; font: 600 0.625rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #7a6a45; }
.paper .bluf { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; color: #2a3646; }
.paper .lines { margin-top: 10px; }
.paper .lines span { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #d8cfb9; }
.paper .lines .l90 { width: 90%; }
.paper .lines .l75 { width: 75%; }
.paper .lines .l60 { width: 60%; }
.inv { margin-top: 10px; font: 400 0.6875rem/1.45 var(--font-mono); }
.inv div { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #d3c9b1; }
.inv div:first-child { border-top: 1px solid #cdbf9f; }
.inv .h { color: #6b5a30; }
.paper-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font: 500 0.625rem/1.4 var(--font-mono); letter-spacing: 0.06em; color: #5b6677; }
.seal {
  position: absolute; top: 52px; right: 16px;
  display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%;
  border: 2px solid rgba(155, 122, 47, 0.85); color: #8a6a22; text-align: center;
  font: 700 0.5625rem/1.25 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-14deg);
}
.seal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(155, 122, 47, 0.7); }

/* How it works: live example panel (driven by assets/js/flow.js) */
.flow {
  position: relative; margin: 44px 0 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: radial-gradient(100% 70% at 50% 0%, rgba(27, 51, 80, 0.55), transparent 70%), rgba(7, 15, 26, 0.7);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.flow-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  font: 500 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.06em;
}
.flow-title { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; color: var(--text-2); }
.flow-live { text-transform: uppercase; letter-spacing: 0.12em; }
.flow-target { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brass-hi); }
.flow-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(134, 208, 166, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(134, 208, 166, 0); }
}
.flow-clock { display: none; margin: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (min-width: 420px) { .flow-clock { display: block; } }

.flow-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 24px 14px 22px; }
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-wires path { fill: none; stroke: rgba(185, 196, 210, 0.16); stroke-width: 1.5; transition: stroke 0.4s ease; }
.flow-wires path.is-lit { stroke: rgba(201, 162, 74, 0.42); }
.flow-wires path.is-flow { stroke: var(--brass); stroke-dasharray: 5 7; animation: wire-flow 0.7s linear infinite; }
@keyframes wire-flow { to { stroke-dashoffset: -12; } }
.flow-wires circle { fill: #f3dc9e; opacity: 0; }
.flow-wires circle.is-on { opacity: 1; }
.flow-col { position: relative; z-index: 1; min-width: 0; }
.flow-col-k { display: none; margin: 0 0 12px; color: var(--text-3); font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.flow-list { display: grid; margin: 0; padding: 0; list-style: none; }
.flow-sources { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.flow-engine { grid-template-columns: minmax(0, 1fr); gap: 22px; width: min(100%, 230px); margin-inline: auto; }
.flow-outputs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.fnode {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 6px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--ink-1);
  color: var(--text-3); font-size: 0.75rem; line-height: 1.25;
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.fnode::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--slate); transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.fnode.src, .fnode.out { flex-direction: column; min-height: 58px; }
.fnode.eng { font-size: 0.875rem; font-weight: 600; }
.fnode.is-on { border-color: rgba(201, 162, 74, 0.5); color: var(--text); }
.fnode.is-on::before { background: var(--brass); box-shadow: 0 0 8px rgba(201, 162, 74, 0.85); }
.fnode.out.is-on::before { background: var(--ok); box-shadow: 0 0 8px rgba(134, 208, 166, 0.75); }
.fnode.is-busy {
  border-color: var(--brass); color: var(--text);
  animation: node-busy 0.9s ease-in-out infinite alternate;
}
@keyframes node-busy {
  from { box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.1), 0 0 18px -6px rgba(201, 162, 74, 0.6); }
  to { box-shadow: 0 0 0 7px rgba(201, 162, 74, 0.04), 0 0 30px -4px rgba(201, 162, 74, 0.95); }
}

@media (min-width: 760px) {
  .flow-head { padding: 14px 22px; font-size: 0.75rem; }
  .flow-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch; gap: 72px; padding: 30px 32px 28px;
  }
  .flow-col { display: flex; flex-direction: column; }
  .flow-col-k { display: block; }
  .flow-col .flow-list { margin-block: auto; }
  .flow-sources, .flow-outputs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow-engine { gap: 26px; width: 100%; }
  .fnode { justify-content: flex-start; gap: 10px; min-height: 42px; padding: 9px 14px; text-align: left; font-size: 0.875rem; }
  .fnode.src, .fnode.out { flex-direction: row; min-height: 42px; }
  .fnode.eng { justify-content: center; min-height: 52px; font-size: 0.9375rem; }
}

.flow-progress {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 4px 14px 0; list-style: none;
}
.fseg { min-width: 0; }
.fseg-bar { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(185, 196, 210, 0.14); }
.fseg-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); transform: scaleX(1); transform-origin: left center; }
.fseg-label {
  display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-3); font: 500 0.6875rem/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s ease;
}
.fseg.is-done .fseg-label { color: var(--text-2); }
.fseg.is-active .fseg-label { color: var(--brass-hi); }
.flow-log {
  display: flex; align-items: flex-start; gap: 10px; min-height: 72px; margin: 14px 0 0;
  padding: 12px 14px 16px; border-top: 1px dashed var(--line);
  color: var(--text); font: 400 0.75rem/1.5 var(--font-mono);
}
.flow-log-time { flex: none; color: var(--brass); font-variant-numeric: tabular-nums; }
.flow-log-text { display: inline-block; min-width: 0; }
.flow-log.is-new .flow-log-text { animation: log-in 0.45s ease-out; }
@keyframes log-in { from { opacity: 0; transform: translateY(4px); } }
.flow-script { display: none; }
@media (min-width: 760px) {
  .flow-progress { gap: 10px; padding: 4px 32px 0; }
  .flow-log { min-height: 0; padding: 14px 32px 18px; font-size: 0.8125rem; }
}

/* Compact step descriptions under the panel */
.steps-compact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .steps-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cstep {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line); transition: border-color 0.4s ease;
}
.cstep.is-active { border-top-color: var(--brass); }
.cstep-dial { width: 34px; height: 34px; }
.cstep-k { color: var(--brass); font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.cstep h3 { margin-top: 6px; font-size: 1.25rem; }
.cstep-text { margin-top: 4px; color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }

/* Why it is different */
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 48px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar {
  position: relative; overflow: hidden; padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(120% 80% at 100% 0%, rgba(201, 162, 74, 0.09), transparent 55%), rgba(7, 15, 26, 0.35);
}
.pillar-k { color: var(--brass); font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.pillar h3 { margin-top: 12px; font-size: 1.625rem; }
.pillar p { margin-top: 12px; color: var(--text-2); }
.pillar ul { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pillar li { position: relative; padding-left: 20px; color: var(--text); font-size: 0.95rem; }
.pillar li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px;
  background: var(--brass); transform: rotate(45deg);
}

.compare-wrap { margin-top: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare caption { padding: 16px 18px; caption-side: top; text-align: left; color: var(--text-2); font-size: 0.875rem; }
.compare th, .compare td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { color: var(--text-3); font: 500 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.compare thead th.us { color: var(--brass); }
.compare tbody th { width: 26%; color: var(--text); font-weight: 600; }
.compare td { color: var(--text-2); }
.compare td.us { background: rgba(201, 162, 74, 0.07); color: var(--text); }
@media (max-width: 599px) {
  .compare { font-size: 0.8125rem; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare caption { padding: 14px 12px; }
}

/* Pricing */
.tiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 52px; }
@media (min-width: 920px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; } }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 24px 24px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.tier.featured {
  border-color: rgba(201, 162, 74, 0.7);
  background: radial-gradient(120% 60% at 50% 0%, rgba(201, 162, 74, 0.16), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 30px 70px -36px rgba(201, 162, 74, 0.45);
}
.chip {
  position: absolute; top: -12px; left: 22px; margin: 0;
  padding: 6px 10px; border-radius: 999px; background: var(--brass); color: var(--ink-1);
  font: 600 0.6875rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.tier h3 { font-size: 1.75rem; }
.tier-for { margin-top: 8px; color: var(--text-2); font-size: 0.975rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 22px; font: 500 2.6rem/1.05 var(--font-display); }
.price small { color: var(--text-2); font: 400 0.9375rem/1 var(--font-body); }
.tier ul { display: grid; gap: 10px; margin: 24px 0 28px; padding: 0; list-style: none; }
.tier li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 0.975rem; }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 6px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg);
}
.tier .btn { width: 100%; margin-top: auto; }
.price-note { margin-top: 22px; color: var(--text-3); font-size: 0.875rem; }

/* KVKK / privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 44px; }
@media (min-width: 900px) { .privacy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.privacy-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 15, 26, 0.45); }
.privacy-card h3 { font-size: 1.4rem; }
.privacy-card ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 18px; color: var(--text-2); }
.privacy-card li::marker { color: var(--brass); }
.privacy-card a { color: var(--brass-hi); }

/* Founder (motion: assets/js/founder.js) */
.founder {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 26px; align-items: start; padding: 28px 22px;
  border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(90% 120% at 0% 0%, rgba(201, 162, 74, 0.08), transparent 60%), rgba(7, 15, 26, 0.45);
}
.founder::before {
  /* faint compass-rose watermark */
  content: ""; position: absolute; z-index: -1; top: -200px; right: -220px; width: 560px; height: 560px;
  background: url("../img/rhumb.svg") center / contain no-repeat; opacity: 0.6; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 66%);
  mask-image: radial-gradient(circle, #000 12%, transparent 66%);
}
.founder-photo { position: relative; z-index: 0; display: block; width: 156px; margin: 0; }
.founder-photo::before {
  /* brass light sweeping round the frame (the photo itself never moves) */
  content: ""; position: absolute; z-index: -1; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 200deg, rgba(227, 194, 123, 0.15) 250deg, rgba(227, 194, 123, 0.9) 320deg, rgba(255, 244, 214, 1) 338deg, transparent 352deg);
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.founder-photo::after {
  /* soft glow */
  content: ""; position: absolute; z-index: -2; inset: -26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.22), rgba(201, 162, 74, 0.06) 55%, transparent 70%);
}
.founder-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border: 3px solid var(--brass); border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(201, 162, 74, 0.12), 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}
.founder h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.founder-name { position: relative; display: inline-block; max-width: 100%; }
.founder-name .w { display: inline-block; white-space: nowrap; }
.founder-name .ch { display: inline-block; }
.founder-name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--brass), var(--brass-hi) 55%, rgba(227, 194, 123, 0));
  transform-origin: left center;
}
.founder-role { margin-top: 8px; color: var(--brass-hi); font-weight: 600; }
.founder-bio { margin-top: 16px; max-width: 70ch; color: var(--text-2); }
.founder-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.founder-skills li {
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 0.8125rem; line-height: 1.3;
}
.founder-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.founder-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 0.9375rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.founder-links a:hover, .founder-links a:focus-visible {
  border-color: var(--brass); color: var(--brass-hi); background: rgba(201, 162, 74, 0.06);
  transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(201, 162, 74, 0.85);
}
.founder-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 820px) {
  .founder { grid-template-columns: 200px minmax(0, 1fr); gap: 44px; padding: 40px; }
  .founder-photo { width: 200px; }
  .founder::before { top: -160px; right: -160px; width: 640px; height: 640px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* ambient motion: paused until founder.js marks the card as on screen */
  .founder::before { animation: founder-drift 140s linear infinite paused; }
  .founder-photo::before { animation: founder-sweep 10s linear infinite paused; }
  .founder-photo::after { animation: founder-glow 4.5s ease-in-out infinite alternate paused; }
  .founder.is-live::before, .founder.is-live .founder-photo::before, .founder.is-live .founder-photo::after { animation-play-state: running; }

  /* one-time reveal: hidden only after founder.js adds .fx, played when .is-in arrives */
  .founder.fx .founder-photo, .founder.fx .fx-up, .founder.fx .founder-name .ch { opacity: 0; }
  .founder.fx .founder-name::after { transform: scaleX(0); }
  .founder.fx.is-in .founder-photo { animation: founder-pop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) both; }
  .founder.fx.is-in .fx-up { animation: founder-rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) both; }
  .founder.fx.is-in .founder-name .ch { animation: founder-letter 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) var(--d, 0ms) both; }
  .founder.fx.is-in .founder-name::after { animation: founder-draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0ms) both; }
}
@media (prefers-reduced-motion: reduce) {
  .founder-links a:hover, .founder-links a:focus-visible { transform: none; }
}
@keyframes founder-drift { to { transform: rotate(1turn); } }
@keyframes founder-sweep { to { transform: rotate(1turn); } }
@keyframes founder-glow { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes founder-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes founder-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes founder-letter { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
@keyframes founder-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Contact band */
.section-tight { padding: 56px 0; }
@media (min-width: 900px) { .section-tight { padding: 72px 0; } }
.contact-band {
  display: grid; gap: 20px; padding: 24px 20px;
  border: 1px solid rgba(201, 162, 74, 0.32); border-radius: 16px;
  background: radial-gradient(70% 140% at 0% 0%, rgba(201, 162, 74, 0.1), transparent 60%), var(--ink-2);
}
.contact-band h2 { margin-top: 10px; font-size: 1.5rem; }
.contact-band p.contact-line { margin-top: 6px; color: var(--text-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn { min-height: 46px; font-size: 0.9375rem; }
.btn .mail-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .contact-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 28px 32px; }
}

/* Footer */
.site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.875rem; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.footer-logo { width: 220px; }
.footer-tag { margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--brass-hi); }
.legal { margin-top: 18px; }

/* 404 */
.notfound { display: grid; place-items: center; min-height: 70vh; padding: 64px 0; text-align: center; }
.notfound img { width: 140px; margin: 0 auto 24px; }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.notfound p { margin-top: 12px; color: var(--text-2); }
.notfound .eyebrow { justify-content: center; margin-bottom: 14px; }
.notfound .cta-row { justify-content: center; }

/* ---------- "What it does" live desk (desk.js) ---------- */
.desk {
  position: relative; margin: 40px 0 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: radial-gradient(90% 60% at 100% 0%, rgba(201, 162, 74, 0.08), transparent 70%), rgba(7, 15, 26, 0.7);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.desk-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  font: 500 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.06em;
}
.desk-stats { display: flex; gap: 18px; margin: 0; }
.desk-stats div { display: flex; align-items: baseline; gap: 7px; }
.desk-stats dt { color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; }
.desk-stats dd { margin: 0; color: var(--text); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.desk-stats div:last-child dd { color: var(--brass-hi); }
.desk-body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .desk-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.desk-feed, .desk-file { min-width: 0; padding: 18px 16px 20px; }
.desk-file { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
@media (min-width: 880px) { .desk-file { border-top: 0; border-left: 1px solid var(--line); } }
.desk-k { margin: 0 0 12px; color: var(--text-3); font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.feed, .file { display: grid; align-content: start; gap: 8px; height: 304px; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.file { gap: 0; height: 260px; }
.feed-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 9px 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.025); font-size: 0.875rem;
}
.feed-src {
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
  color: var(--text-3); font: 500 0.625rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.feed-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.feed-tag { white-space: nowrap; color: var(--text-3); font: 500 0.625rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.feed-row.is-match { border-color: rgba(201, 162, 74, 0.55); background: linear-gradient(90deg, rgba(201, 162, 74, 0.13), rgba(201, 162, 74, 0.02)); }
.feed-row.is-match .feed-text { color: var(--text); }
.feed-row.is-match .feed-tag { color: var(--brass-hi); }
.feed-row.is-hostile { border-color: rgba(240, 140, 110, 0.55); background: linear-gradient(90deg, rgba(240, 140, 110, 0.13), rgba(240, 140, 110, 0.02)); }
.feed-row.is-hostile .feed-text { color: var(--text); }
.feed-row.is-hostile .feed-tag { color: #f4a586; }
.feed-row.is-drop { opacity: 0.5; }
.feed-row.is-drop .feed-text { text-decoration: line-through; text-decoration-color: rgba(170, 183, 199, 0.55); }
.feed-row::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(227, 194, 123, 0.2), transparent);
}
.file-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px dashed var(--line); color: var(--text-2); font: 400 0.75rem/1.3 var(--font-mono);
}
.fr-ref { color: var(--brass); }
.fr-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.fr-hash { color: var(--text-3); }
.fr-seal {
  padding: 2px 6px; border: 1px solid rgba(134, 208, 166, 0.6); border-radius: 4px; color: var(--ok);
  font-size: 0.625rem; letter-spacing: 0.06em; white-space: nowrap; transform: rotate(-5deg);
}
@media (max-width: 560px) { .fr-hash { display: none; } .feed-tag { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .feed-row { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.45s ease, border-color 0.45s ease; }
  .feed-row:not(.is-in) { opacity: 0; transform: translateY(-14px); }
  .feed-row.is-out { opacity: 0; transform: translateY(14px); }
  .feed-row.is-scan::after { animation: desk-scan 0.8s ease-in-out; }
  .file-row { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 1.4s ease; }
  .file-row:not(.is-in) { opacity: 0; transform: translateX(-20px); }
  .file-row.is-out { opacity: 0; }
  .file-row.is-new { background-color: rgba(201, 162, 74, 0.14); }
  .fr-seal { transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.35); }
  .file-row:not(.is-sealed) .fr-seal { opacity: 0; transform: scale(1.9) rotate(-22deg); }
}
@keyframes desk-scan { to { transform: translateX(100%); } }

/* ---------- Scroll reveal (reveal.js) and entrance motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.34s; }
  .ticket .ok { animation: ok-pulse 2.8s ease-in-out 1.4s infinite; }

  .reveal {
    opacity: 0; translate: 0 22px;
    transition: opacity 0.75s ease var(--reveal-delay, 0ms), translate 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  }
  .chain > li.reveal { translate: -16px 0; }
  .reveal.is-in { opacity: 1; translate: 0 0; }
  .dossier.reveal .seal { opacity: 0; }
  .dossier.reveal.is-in .seal { animation: seal-stamp 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.55s both; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ok-pulse { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 10px rgba(110, 200, 150, 0.55); } }
@keyframes seal-stamp {
  from { opacity: 0; transform: scale(1.9) rotate(-32deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(-12deg); }
  to { opacity: 1; transform: rotate(-14deg); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .card:hover, .btn-brass:hover { transform: none; }
}
