/* Fraus Index — design system (vanilla CSS) */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap");

:root {
  --ink: #0b1220;
  --ink-soft: #1c2738;
  --slate: #5a6678;
  --muted: #8b95a5;
  --line: rgba(11, 18, 32, 0.1);
  --line-strong: rgba(11, 18, 32, 0.16);
  --paper: #eef1f5;
  --paper-deep: #e2e7ee;
  --signal: #0f6e6a;
  --signal-bright: #14837e;
  --signal-soft: rgba(15, 110, 106, 0.12);
  --warn: #9a6b2f;
  --low: #8a4b4b;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--signal-soft);
  color: var(--ink);
}

.site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-slate {
  color: var(--slate);
}

.text-muted {
  color: var(--muted);
}

.text-ink {
  color: var(--ink);
}

.text-ink-soft {
  color: var(--ink-soft);
}

.text-signal {
  color: var(--signal);
}

.text-warn {
  color: var(--warn);
}

.text-low {
  color: var(--low);
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .site-header {
    padding-inline: 2rem;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo__mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.logo__word {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo--light,
.logo--light .logo__word {
  color: var(--paper);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.55);
}

.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch__item:hover {
  color: var(--ink);
}

.lang-switch__item.is-active {
  background: var(--ink);
  color: var(--paper);
}

.header-actions__ghost {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
}

@media (min-width: 640px) {
  .header-actions__ghost {
    display: inline;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--ink-soft);
}

.btn--signal:hover {
  background: var(--signal);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 6rem;
}

@media (min-width: 640px) {
  .hero__content {
    padding-inline: 2rem;
    padding-bottom: 7rem;
  }
}

.hero__brand {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .hero__brand {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .hero__brand {
    font-size: 3rem;
  }
}

.hero__title {
  margin: 1.5rem 0 0;
  max-width: 56rem;
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .hero__title {
    margin-top: 1.75rem;
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

.hero__subtitle {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}

@media (min-width: 640px) {
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

.hero__search {
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .hero__search {
    margin-top: 3rem;
  }
}

/* Backdrop */
.backdrop {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.backdrop__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(15, 110, 106, 0.09), transparent 42%),
    radial-gradient(ellipse at 85% 20%, rgba(42, 53, 72, 0.08), transparent 40%),
    linear-gradient(180deg, #f5f7fa 0%, #eef1f5 55%, #e8edf3 100%);
}

.backdrop__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(238, 241, 245, 0.55) 70%,
    rgba(238, 241, 245, 0.92) 100%
  );
}

.investigation-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 48s linear infinite;
}

.backdrop__map {
  position: absolute;
  left: 50%;
  top: 8%;
  height: 72%;
  width: 120%;
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.45;
}

/* Search */
.search {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.search__shell {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 50px rgba(11, 18, 32, 0.08);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search__shell:focus-within {
  border-color: rgba(15, 110, 106, 0.45);
  box-shadow: 0 18px 50px rgba(15, 110, 106, 0.12);
}

.search__field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .search__field {
    padding-inline: 1.25rem;
  }
}

.search__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--muted);
}

.search__input {
  width: 100%;
  height: 3.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

@media (min-width: 640px) {
  .search__input {
    height: 4rem;
    font-size: 1.125rem;
  }
}

.search__input::placeholder {
  color: var(--muted);
}

.search__submit {
  margin: 0.375rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--ink);
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search__submit:hover {
  background: var(--signal);
}

@media (min-width: 640px) {
  .search__submit {
    padding-inline: 1.75rem;
    font-size: 1rem;
  }
}

/* Sections */
.section {
  position: relative;
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 7rem;
  }
}

.section--border {
  border-top: 1px solid var(--line);
}

.section--deep {
  background: rgba(226, 231, 238, 0.4);
}

.section__lead {
  max-width: 42rem;
}

.section__title {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .section__title {
    font-size: 2.25rem;
  }
}

.section__body {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}

.pillars {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillar__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.pillar__title {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.pillar__body {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate);
}

/* Community */
.community {
  position: relative;
  overflow: hidden;
}

.community__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 40%,
    rgba(15, 110, 106, 0.08),
    transparent 55%
  );
}

.community__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .community__grid {
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .community__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
  }
}

.quote {
  margin: 0;
  border-left: 2px solid var(--signal);
  padding-left: 1.5rem;
}

@media (min-width: 640px) {
  .quote {
    padding-left: 2rem;
  }
}

.quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .quote p {
    font-size: 1.875rem;
  }
}

.quote footer {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Company cards / directory */
.directory-actions {
  margin-top: 2rem;
}

.company-card {
  display: block;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.company-card:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 640px) {
  .company-card {
    padding-inline: 0.5rem;
  }
}

.company-card__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .company-card__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.company-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.company-card__name {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.company-card:hover .company-card__name {
  color: var(--signal);
}

.company-card__summary {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-card__stats {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.company-card__scores {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .company-card__scores {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }
}

.score-box {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0.75rem;
  text-align: right;
}

.score-box__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-box__value {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.score-box__value--sm {
  font-size: 1.125rem;
  color: var(--ink);
}

/* Page header (companies list) */
.page-hero {
  border-bottom: 1px solid var(--line);
  background: rgba(226, 231, 238, 0.4);
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .page-hero {
    padding-block: 4rem;
  }
}

.page-hero h1 {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

.search--compact .search__input {
  height: 3rem;
  font-size: 1rem;
}

.search--compact .search__submit {
  font-size: 0.875rem;
}

.list-count {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.company-list {
  padding-bottom: 5rem;
}

.empty-state {
  padding-block: 4rem;
  color: var(--slate);
}

/* Dossier */
.dossier {
  padding-block: 3rem 4rem;
}

@media (min-width: 640px) {
  .dossier {
    padding-block: 4rem;
  }
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--ink);
}

.dossier__header {
  margin-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.dossier__header h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .dossier__header h1 {
    font-size: 3rem;
  }
}

.dossier__legal {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--slate);
}

.dossier__summary {
  margin: 1.25rem 0 0;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-soft);
}

.dossier__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .dossier__grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.panel {
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.06);
  backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .panel {
    padding: 2rem;
  }
}

.panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.panel__top h2 {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.metrics {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.metric__label {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.metric__value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.metric__unit {
  color: var(--muted);
}

.meter {
  height: 0.375rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
}

.meter__fill {
  height: 100%;
  border-radius: 999px;
  transform-origin: left center;
  animation: meter-fill 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.meter__fill--signal {
  background: var(--signal);
}

.meter__fill--warn {
  background: var(--warn);
}

.meter__fill--low {
  background: var(--low);
}

.panel-note {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.evidences h2 {
  margin: 0.5rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.evidence-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.evidence-item {
  border-left: 2px solid rgba(15, 110, 106, 0.5);
  padding-left: 1rem;
}

.evidence-item__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.evidence-item__title {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}

.evidence-item__title:hover {
  color: var(--signal);
}

.evidence-item__claim {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate);
}

.disclaimer {
  margin: 3rem 0 0;
  max-width: 48rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 3.5rem 1.25rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    padding-inline: 2rem;
    padding-block: 4rem;
  }
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.site-footer__blurb {
  margin: 1rem 0 0;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.footer-cols {
  display: flex;
  gap: 3rem;
  font-size: 0.875rem;
}

.footer-cols p {
  margin: 0 0 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-cols a {
  display: block;
  margin-top: 0.625rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-cols a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__slogan {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-line {
  from {
    stroke-dashoffset: 240;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-node {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.35);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

@keyframes meter-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.animate-fade-up {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-fade-up-delay-1 {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.animate-fade-up-delay-2 {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.animate-fade-up-delay-3 {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.connection-line {
  stroke-dasharray: 240;
  animation: draw-line 2.4s ease-out both;
}

.pulse-node {
  transform-origin: center;
  animation: pulse-node 3.6s ease-in-out infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Auth + forms */
.header-actions__user {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
}

@media (min-width: 640px) {
  .header-actions__user {
    display: inline;
  }
}

.btn--block {
  width: 100%;
}

.auth-page {
  display: flex;
  justify-content: center;
  padding: 3rem 1.25rem 5rem;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.06);
}

.auth-card__title {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.auth-card__lead {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--slate);
}

.auth-card__footer {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--slate);
}

.auth-card__footer a {
  color: var(--signal);
  font-weight: 500;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field__input {
  width: 100%;
  border: 1px solid rgba(11, 18, 32, 0.14);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input:focus {
  border-color: rgba(15, 110, 106, 0.45);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.field__textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 1.55;
}

.field__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.field__hint a {
  color: var(--signal);
}

.field-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.check input {
  margin-top: 0.2rem;
}

.form-alert {
  margin-top: 1.25rem;
  border: 1px solid rgba(138, 75, 75, 0.25);
  border-radius: 0.5rem;
  background: rgba(138, 75, 75, 0.08);
  padding: 0.85rem 1rem;
  color: var(--low);
}

.form-alert p {
  margin: 0;
  font-size: 0.875rem;
}

.form-alert p + p {
  margin-top: 0.35rem;
}

.form-alert--success {
  border-color: rgba(15, 110, 106, 0.25);
  background: rgba(15, 110, 106, 0.08);
  color: var(--signal);
}

.form-alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.report-page {
  padding-block: 2rem 5rem;
}

.report-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .report-layout {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
}

.report-form {
  margin-top: 0;
}

.report-aside {
  border-left: 2px solid var(--signal);
  padding-left: 1.25rem;
}

.report-aside__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}

.report-aside__list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.7;
}

.dossier-cta {
  margin-top: 1.5rem;
}

.company-autocomplete {
  position: relative;
}

.company-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% - 0.15rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(11, 18, 32, 0.14);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.12);
  max-height: 16rem;
  overflow: auto;
}

.company-suggestions__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 0.375rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.company-suggestions__item:hover,
.company-suggestions__item.is-active {
  background: rgba(15, 110, 106, 0.08);
}

.company-suggestions__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.company-suggestions__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.link-button {
  margin-left: 0.5rem;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--signal);
  cursor: pointer;
  text-decoration: underline;
}

.header-actions__user {
  text-decoration: none;
}

.header-actions__user:hover {
  color: var(--ink);
}

.account-page {
  padding-block: 2rem 5rem;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .account-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.account-stat {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem 1.1rem;
}

.account-stat__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-stat__value {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
}

.account-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .account-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status-tabs__item {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.status-tabs__item:hover {
  color: var(--ink);
}

.status-tabs__item.is-active {
  border-color: rgba(15, 110, 106, 0.35);
  background: rgba(15, 110, 106, 0.1);
  color: var(--signal);
}

.account-report-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-report__top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .account-report__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.account-report__title {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.account-report__company {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.account-report__company a {
  color: var(--signal);
  font-weight: 500;
}

.account-report__pattern {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.account-report__excerpt {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--slate);
}

.account-report__meta {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.account-empty {
  margin-top: 0.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill--pending {
  background: rgba(154, 107, 47, 0.12);
  color: var(--warn);
}

.status-pill--published {
  background: rgba(15, 110, 106, 0.12);
  color: var(--signal);
}

.status-pill--rejected {
  background: rgba(138, 75, 75, 0.12);
  color: var(--low);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(11, 18, 32, 0.04);
  color: var(--ink);
}

.admin-shell {
  background: var(--paper);
}

.admin-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.admin-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .admin-topbar__inner {
    padding-inline: 2rem;
  }
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.admin-nav a {
  color: var(--slate);
}

.admin-nav a:hover,
.admin-nav a.is-active {
  color: var(--ink);
}

.admin-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem;
  text-align: center;
}

.admin-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.admin-actions form {
  margin: 0;
}

.support__inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .support__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.support__card {
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.05);
}

.support__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.support__address {
  display: block;
  margin-top: 0.75rem;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink);
}

.support__copy {
  margin-top: 1rem;
}

.support__note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate);
}

.site-footer__support {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__support-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__btc {
  margin: 0.65rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__btc code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__btc .link-button {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__support-note {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}



