/* ==========================================================================
   MIR Ventures — site stylesheet
   Editorial, light, type-led. Inter for UI/body, Instrument Serif for display.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --paper-3: #e1ddd3;
  --white: #fffdf9;
  --ink: #121417;
  --ink-2: #41454b;
  --ink-3: #6f747c;
  --line: rgba(18, 20, 23, 0.12);
  --line-strong: rgba(18, 20, 23, 0.28);
  --accent: #1a5fd0;
  --accent-ink: #0f47a1;
  --accent-soft: rgba(26, 95, 208, 0.10);
  --on-accent: #ffffff;
  --nav-bg: rgba(245, 243, 238, 0.82);
  --success: #1f7a4d;
  --danger: #b4302a;

  --on-ink: #f5f3ee;
  --on-ink-2: rgba(245, 243, 238, 0.72);
  --on-ink-3: rgba(245, 243, 238, 0.48);
  --line-on-ink: rgba(245, 243, 238, 0.16);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 72px;

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

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'calt';
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }

.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;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--flush { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .lead { max-width: 52ch; }
.section-head__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 24px); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--sticky > :first-child { position: static; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__aside { align-items: flex-start; text-align: left; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: clamp(3.2rem, 8vw, 6.75rem); line-height: 0.96; letter-spacing: -0.025em; }
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.25rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.06; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }

.display strong, .h1 strong, .h2 strong, .h3 strong,
.display .bold, .h1 .bold, .h2 .bold, .h3 .bold,
.display em, .h1 em, .h2 em {
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--plain::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }

.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.prose h2 { font-size: 2rem; margin-top: 2em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.2rem; margin-top: 1.4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p:first-of-type { font-size: 1.15em; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-ink); }
.prose strong, .prose .bold { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 2px solid var(--ink); font-family: var(--font-serif); font-size: 1.35em; line-height: 1.35; color: var(--ink); }
.prose img { border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   Buttons, tags, links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-size: 0.9375rem; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--on-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--on-ink:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; pointer-events: none; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-2);
  white-space: nowrap;
}
.tag--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.tag--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--live .dot { animation: pulse 1.6s ease-in-out infinite; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.link:hover { color: var(--accent); border-color: var(--accent); }
.link svg { width: 14px; height: 14px; }
.link--muted { color: var(--ink-3); border-color: transparent; }
.link--muted:hover { color: var(--ink); border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 50%; }
.brand__name { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.brand__name span { font-style: italic; color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.btn { color: var(--paper); }
.nav__links a.btn:hover { background: var(--accent); color: var(--on-accent); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.3s var(--ease), background 0.2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background: var(--ink); transition: transform 0.3s var(--ease); }
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(6px); }
html.nav-open .nav__toggle span { background: transparent; }
html.nav-open .nav__toggle span::before { transform: rotate(45deg); }
html.nav-open .nav__toggle span::after { transform: rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: inline-flex; }
  /* Absolute (not fixed): the nav's backdrop-filter makes it the containing block
     for fixed descendants, which would collapse a fixed inset box. */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  html.nav-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s; }
  html.nav-open { overflow: hidden; }
  .nav__links a { height: 60px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.85rem; font-weight: 400; color: var(--ink); }
  .nav__links a:hover { background: transparent; }
  .nav__cta { margin: 20px 0 0; align-self: flex-start; height: 48px !important; padding: 0 22px !important; border-radius: 999px !important; border-bottom: 0 !important; font-family: var(--font-sans) !important; font-size: 0.9375rem !important; background: var(--ink) !important; color: var(--paper) !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero__copy .display { max-width: 12ch; }
.hero__copy .lead { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual {
  position: relative; min-height: 420px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}
.hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__visual .overlay { position: absolute; inset: 0; z-index: 1; }
.hero__visual::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(18,20,23,0) 40%, rgba(18,20,23,0.65) 100%);
}
.hero__visual--empty::after { background: none; }
.hero__visual--empty { border: 1px solid var(--line); }
.mantra {
  position: absolute; left: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 36px); z-index: 3;
  font-family: var(--font-serif); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 0.98;
  letter-spacing: -0.02em; color: #fff; text-transform: none;
  text-shadow: 0 1px 24px rgba(0,0,0,0.25);
}
.hero__visual--empty .mantra { color: var(--ink); text-shadow: none; }
.mantra strong { font-weight: 400; font-style: italic; }
.hero__visual .corner { position: absolute; top: 18px; right: 18px; z-index: 3; }

.launch {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px 18px;
  padding: 14px 18px 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  max-width: 100%;
}
.launch__label { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.launch__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.6s ease-in-out infinite; }
.launch__label strong { color: var(--ink); font-weight: 600; }
.launch__clock { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.launch__clock small { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-left: 3px; }
.launch__clock b { font-weight: 400; font-variant-numeric: tabular-nums; min-width: 1.2ch; display: inline-block; text-align: right; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { min-height: 320px; }
}

/* Stats strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 24px 28px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--font-serif); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.55em; color: var(--ink-3); margin-left: 4px; }
.stat__label { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Cards (companies, projects)
   -------------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(18,20,23,0.35); border-color: var(--line-strong); }
.card--next { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card:focus-visible { border-radius: var(--radius); }
.card__media {
  position: relative; aspect-ratio: 16 / 10; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card__media--contain { padding: 12%; }
.card__media--contain img { object-fit: contain; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media--contain:hover img, .card:hover .card__media--contain img { transform: none; }
.card__initial { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--ink); opacity: 0.85; }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card__title { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.card__meta { font-size: 0.8125rem; color: var(--ink-3); }
.card__text { color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__index { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.empty {
  padding: clamp(40px, 6vw, 72px); text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-2);
}
.empty .h3 { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Register band (dark)
   -------------------------------------------------------------------------- */
.band { background: var(--ink); color: var(--on-ink); }
.band .h1, .band .h2, .band .h3 { color: var(--on-ink); }
.band .eyebrow { color: var(--on-ink-3); }
.band .lead { color: var(--on-ink-2); }
.band ::selection { background: var(--paper); color: var(--ink); }
.band__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .band__grid { grid-template-columns: minmax(0, 1fr); } }

.band .field {
  display: flex; align-items: stretch;
  border: 1px solid var(--line-on-ink); border-radius: 999px; background: rgba(255,255,255,0.04);
  padding: 6px 6px 6px 22px;
  transition: border-color 0.2s, background 0.2s;
}
.band .field:focus-within { border-color: rgba(245,243,238,0.5); background: rgba(255,255,255,0.06); }
.band .field input { flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--on-ink); font-size: 1rem; }
.band .field input::placeholder { color: var(--on-ink-3); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.form .input, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white);
  color: var(--ink); outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form .input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form .input:focus, .form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18,20,23,0.06); }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__hint { font-size: 0.8125rem; color: var(--ink-3); }
.form__captcha:empty { display: none; }
.form__captcha .input { max-width: 9rem; }
.form__captcha .captcha__hint { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--ink-3); }
.form__captcha .captcha__widget { min-height: 65px; }
.form__success, .form__error { display: none; padding: 16px 20px; border-radius: 12px; font-size: 0.95rem; }
.form__success { background: rgba(31,122,77,0.10); color: var(--success); }
.form__error { background: rgba(180,48,42,0.10); color: var(--danger); }
.form.is-done .form__fields { display: none; }
.form.is-done .form__success { display: block; }
.form.is-error .form__error { display: block; }
.band .form__success { background: rgba(245,243,238,0.08); color: var(--on-ink); }
.band .form__error { background: rgba(255,120,110,0.14); color: #ffb3ad; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.details { display: grid; gap: 0; border-top: 1px solid var(--line); }
.details__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details__key { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.details__val { font-size: 1.05rem; color: var(--ink); }
.details__val a:hover { color: var(--accent); }
.social { display: flex; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.social svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--ink-2); font-size: 0.95rem; }
.footer h4 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--ink-2); font-size: 0.95rem; transition: color 0.2s; }
.footer li a:hover { color: var(--ink); }
.footer__bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.8125rem; color: var(--ink-3); }
.footer__bottom a { color: var(--ink-2); }
.footer__bottom a:hover { color: var(--ink); }
.footer__bottom .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------------------------
   Secondary pages (legal, auth)
   -------------------------------------------------------------------------- */
.page { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); }
.page__head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 56px); }
.page__head .h1 { margin-top: 18px; }
.page__body { max-width: 70ch; }
.page__body > h2:first-child, .page__body > h1:first-child { display: none; } /* stored HTML repeats the page title */
.page__foot { max-width: 70ch; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; }

.auth { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: clamp(32px, 6vw, 80px) 0; }
.auth__card { width: 100%; max-width: 440px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.auth__card .brand { margin-bottom: 28px; }
.auth__card .h2 { margin-bottom: 6px; }
.auth__card .muted { margin-bottom: 28px; }
.auth__switch { margin-top: 24px; font-size: 0.9rem; color: var(--ink-3); text-align: center; }
.auth__switch a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.auth__error { padding: 12px 16px; border-radius: 10px; background: rgba(180,48,42,0.10); color: var(--danger); font-size: 0.9rem; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Cookie consent
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  width: min(420px, calc(100vw - 40px));
  padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); box-shadow: 0 24px 60px -24px rgba(18,20,23,0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.cookie.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s; }
.cookie p { font-size: 0.875rem; color: var(--ink-2); }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 8px; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > :nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].is-visible > :nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-visible > :nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].is-visible > :nth-child(5) { transition-delay: 0.32s; }
[data-reveal-stagger].is-visible > :nth-child(6) { transition-delay: 0.40s; }
[data-reveal-stagger].is-visible > :nth-child(n+7) { transition-delay: 0.48s; }

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