/* palette: bg=#0D0D12 fg=#ECECF0 accent=#8B5CF6 */
/* fonts: display="Space Grotesk" body="Inter" mono="JetBrains Mono" */

:root {
  --bg: #0D0D12;          /* dominant near-black navy from reference */
  --bg-alt: #101019;      /* alternating section background */
  --bg-card: #16161F;     /* card surface */
  --bg-card-2: #1B1B26;   /* raised / hover surface */
  --fg: #ECECF0;          /* primary off-white text */
  --fg-soft: #C5C5D0;     /* slightly softer fg */
  --muted: #8A8A97;       /* secondary text */
  --accent: #8B5CF6;      /* dominant purple accent (toggle / tags) */
  --accent-deep: #7C3AED; /* darker purple for hover */
  --green: #34D399;
  --blue: #60A5FA;
  --amber: #F5A623;
  --pink: #E879F9;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px -16px rgba(0, 0, 0, 0.6);

  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .section-head h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 22px;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform .4s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.8);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav a {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--fg-soft);
    transition: color .3s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
}
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--fg);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 30px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(139,92,246,0.22), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(96,165,250,0.12), transparent 55%),
    linear-gradient(180deg, rgba(13,13,18,0.55), var(--bg) 92%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero__inner { position: relative; z-index: 2; max-width: 960px; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 26px 0 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  color: var(--fg-soft);
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 56ch;
  margin: 34px 0 0;
  line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero__meta span strong { color: var(--fg); font-weight: 600; display: block; font-size: 24px; font-family: var(--serif); margin-bottom: 2px; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.bento-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.bento-card h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 10px; }
.bento-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (min-width: 1040px) {
  .bento-card--wide { grid-column: span 2; }
  .bento-card--tall { grid-row: span 2; }
}

/* code card */
.code-card { background: #0A0A0F; }
.code-block {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
}
.code-block .ln { color: #3A3A48; user-select: none; padding-right: 16px; }
.code-block .kw { color: var(--accent); }
.code-block .str { color: var(--green); }
.code-block .fn { color: var(--blue); }
.code-block .cm { color: #565664; }
.code-block .pr { color: var(--amber); }

/* tag pills */
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: 0.01em;
  transition: transform .3s var(--ease);
}
.tag:hover { transform: translateY(-2px); }
.tag--purple { color: var(--accent); border-color: rgba(139,92,246,0.45); background: rgba(139,92,246,0.08); }
.tag--green  { color: var(--green);  border-color: rgba(52,211,153,0.45); background: rgba(52,211,153,0.08); }
.tag--blue   { color: var(--blue);   border-color: rgba(96,165,250,0.45); background: rgba(96,165,250,0.08); }
.tag--amber  { color: var(--amber);  border-color: rgba(245,166,35,0.45); background: rgba(245,166,35,0.08); }
.tag--pink   { color: var(--pink);   border-color: rgba(232,121,249,0.45); background: rgba(232,121,249,0.08); }

/* experience / tabbed list */
.xp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.xp-tab {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.xp-tab[aria-current="true"] { color: var(--fg); background: rgba(139,92,246,0.16); border-color: rgba(139,92,246,0.4); }
.xp-list { display: flex; flex-direction: column; }
.xp-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.xp-row:last-child { border-bottom: 0; }
.xp-row strong { font-weight: 600; font-size: 15px; }
.xp-row .role { color: var(--muted); font-size: 13px; }
.xp-row .date { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* world-map dot motif */
.map-dots { position: relative; min-height: 180px; }
.map-dots__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.3px, transparent 1.6px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(80% 120% at 50% 50%, #000 40%, transparent 78%);
  mask-image: radial-gradient(80% 120% at 50% 50%, #000 40%, transparent 78%);
  opacity: 0.5;
}
.map-dots__pin {
  position: absolute; left: 36%; top: 52%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(139,92,246,0.55);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(139,92,246,0.55); }
  100% { box-shadow: 0 0 0 18px rgba(139,92,246,0); }
}

/* file resource cards */
.file-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
.file-item { text-align: left; }
.file-icon {
  width: 36px; height: 44px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card-2);
  position: relative;
  margin-bottom: 12px;
}
.file-icon::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--bg);
  border-left: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-bottom-left-radius: 4px;
}
.file-icon--pdf { background: rgba(245,166,35,0.14); border-color: rgba(245,166,35,0.4); }
.file-item span { font-size: 13px; color: var(--fg-soft); line-height: 1.4; display: block; }

/* passcode / inline cta card */
.passcode-card { display: flex; flex-direction: column; }
.passcode-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px 14px; margin: 14px 0 12px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 1000px;
  margin: 0 auto;
}
.manifesto__quote em { font-style: normal; color: var(--accent); }
.manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.5;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}
.manifesto__by {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 44px;
}

/* ---------- Services list (editorial rows) ---------- */
.svc-list { border-top: 1px solid var(--border); }
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(28px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .45s var(--ease);
}
.svc-row:hover { padding-left: 14px; }
@media (min-width: 860px) {
  .svc-row { grid-template-columns: 80px 1.1fr 1.4fr auto; gap: 32px; align-items: start; }
}
.svc-row__num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.svc-row__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.svc-row__desc { color: var(--muted); font-size: 16px; line-height: 1.7; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 36px 28px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.stat__num span { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- Work / case study cards ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform .5s var(--ease), border-color .4s var(--ease);
}
.work-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.work-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-card:hover .work-card__img img { transform: scale(1.05); }
.work-card__body { padding: 24px 26px 28px; }
.work-card__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.work-card__body h3 { font-size: 24px; margin: 12px 0 10px; letter-spacing: -0.01em; }
.work-card__body p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  background: var(--bg-card);
}
.step__num { font-family: var(--mono); color: var(--accent); font-size: 13px; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- Values / principles cards ---------- */
.values { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; background: var(--bg-card); }
.value .dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 20px; }
.value h3 { font-size: 20px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- Team (monogram, no faces) ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 860px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member { border: 1px solid var(--border); border-radius: 16px; padding: 26px; background: var(--bg-card); }
.avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
}
.member h3 { font-size: 18px; }
.member .role { color: var(--accent); font-family: var(--mono); font-size: 12px; margin-top: 4px; }
.member p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--accent); font-size: 26px; transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 16px; line-height: 1.75; padding: 0 0 28px; max-width: 64ch; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 90px);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(139,92,246,0.18), transparent 55%),
    radial-gradient(100% 100% at 0% 100%, rgba(96,165,250,0.10), transparent 55%),
    var(--bg-card);
  text-align: center;
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; line-height: 1.05; }
.cta-band p { color: var(--fg-soft); font-size: 18px; max-width: 52ch; margin: 22px auto 36px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.contact-info dl { margin: 0; }
.contact-info .item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-info dd { margin: 0; font-size: 17px; color: var(--fg); }

.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #5a5a66; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: var(--bg-card-2);
}
.field textarea { resize: vertical; min-height: 140px; }
.form .btn { justify-content: center; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.prose .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 48px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.01em; margin: 48px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.78; }
.prose p { margin-bottom: 18px; }
.prose ul { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(139,92,246,0.4); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: clamp(56px, 8vw, 96px) 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer__brand p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 38ch; line-height: 1.7; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.footer__col a { display: block; padding: 7px 0; color: var(--fg-soft); font-size: 15px; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:flex-start;padding:24px;background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .3s; }
.cookie-popup[data-open="true"] { opacity:1;pointer-events:all; }
.cookie-popup__card { background:var(--bg-card);border:1px solid var(--border-strong);padding:32px 36px;max-width:480px;border-radius:16px;box-shadow:var(--shadow-lg); }
.cookie-popup__label { font-family:var(--mono);font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--accent);margin-bottom:14px; }
.cookie-popup__card h3 { font-size:21px;margin-bottom:12px; }
.cookie-popup__card p { color:var(--muted);font-size:14px;line-height:1.65; }
.cookie-popup__card p a { color:var(--fg-soft);border-bottom:1px solid var(--border-strong); }
.cookie-popup__actions { display:flex;gap:12px;margin-top:22px; }
.cookie-popup__actions button { padding:11px 24px;border:1px solid var(--border-strong);border-radius:999px;cursor:pointer;font-family:var(--mono);font-size:13px;transition:border-color .3s var(--ease),background .3s var(--ease); }
.cookie-popup__actions button:hover { border-color:var(--accent); }
.cookie-popup__actions button:last-child { background:var(--accent);color:#fff;border-color:var(--accent); }
.cookie-popup__actions button:last-child:hover { background:var(--accent-deep); }
