/* palette: bg=#ECECEA fg=#0D0D0D accent=#E8488E */
/* fonts: display="Archivo" body="Inter" mono="Space Mono" */

:root {
  --bg: #ECECEA;
  --bg-alt: #E2E2DF;
  --fg: #0D0D0D;
  --fg-soft: #262625;
  --muted: #8C8C87;
  --accent: #E8488E;
  --accent-deep: #C9306F;
  --border: rgba(13, 13, 13, 0.14);
  --border-soft: rgba(13, 13, 13, 0.08);

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

  --maxw: 1280px;
  --pad: 20px;
}

[data-theme="dark"] {
  --bg: #0D0D0D;
  --bg-alt: #161615;
  --fg: #ECECEA;
  --fg-soft: #CFCFCB;
  --muted: #7C7C78;
  --border: rgba(236, 236, 234, 0.16);
  --border-soft: rgba(236, 236, 234, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
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 { margin: 0; font-family: var(--serif); font-weight: 500; }
p { margin: 0; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

@media (min-width: 768px) { :root { --pad: 32px; } }

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 236, 234, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.4s var(--ease), background 0.5s var(--ease);
}
[data-theme="dark"] .header { background: rgba(13, 13, 13, 0.82); }
.header[data-scrolled="true"] { box-shadow: 0 1px 24px -8px rgba(0,0,0,0.25); }

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 0; }
  .nav__link {
    position: relative;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 6px 20px;
    color: var(--fg-soft);
    border-left: 1px solid var(--border-soft);
    transition: color 0.3s var(--ease);
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 20px; bottom: -2px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.35s var(--ease);
  }
  .nav__link:hover { color: var(--fg); }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 14px; }
  .nav__link[aria-current="page"] { color: var(--fg); }
}

.nav__cta {
  display: none;
}
@media (min-width: 900px) {
  .nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 9px 20px;
    border: 1px solid var(--fg);
    border-radius: 999px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
  }
  .nav__cta:hover { background: var(--fg); color: var(--bg); }
}

/* hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: flex-end;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), width 0.35s var(--ease);
}
.menu-toggle span:nth-child(2) { width: 18px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 24px; }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 11vw, 3rem);
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 32px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 clamp(28px, 6vw, 60px);
  overflow: hidden;
}
.hero__wordmark {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-size: clamp(4.5rem, 23vw, 20rem);
  white-space: nowrap;
  margin: clamp(10px, 3vw, 28px) 0 0;
  padding: 0 var(--pad);
  color: var(--fg);
  user-select: none;
}
.hero__wordmark em { font-style: normal; color: var(--accent); }

.hero__diagonal {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero__diagonal line { stroke: var(--border); stroke-width: 1; }

.hero__body {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: auto auto 0;
  padding: 0 var(--pad);
  display: grid;
  gap: clamp(32px, 6vw, 48px);
}
@media (min-width: 900px) {
  .hero__body { grid-template-columns: 1fr 1.1fr; align-items: end; }
}
.hero__caption {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  align-self: end;
}
.hero__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero__statement em { font-style: normal; color: var(--accent); }

.hero__meta {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: clamp(40px, 8vw, 72px) auto 0;
  padding: 18px var(--pad) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

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

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(44px, 7vw, 80px);
}
@media (min-width: 900px) {
  .section__head { grid-template-columns: 1fr 1fr; align-items: end; }
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section__title em { font-style: normal; color: var(--accent); }
.section__lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 46ch;
}

/* ---------- Manifesto word strip (intro) ---------- */
.manifesto {
  position: relative;
  padding: clamp(80px, 13vw, 170px) 0 clamp(60px, 10vw, 130px);
  overflow: hidden;
}
.manifesto__word {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(5rem, 24vw, 22rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  text-stroke: 1px var(--border);
  white-space: nowrap;
  user-select: none;
  padding: 0 var(--pad);
}
.manifesto__body {
  position: relative;
  max-width: var(--maxw);
  margin: clamp(-30px, -4vw, -10px) auto 0;
  padding: 0 var(--pad);
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .manifesto__body { grid-template-columns: 1fr 1fr; align-items: start; }
  .manifesto__body .eyebrow { grid-column: 1 / 2; }
}
.manifesto__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.manifesto__statement em { font-style: normal; color: var(--accent); }
.manifesto__sub { color: var(--fg-soft); font-size: 1.05rem; line-height: 1.75; max-width: 42ch; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc-card {
  position: relative;
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  transition: padding-left 0.4s var(--ease);
}
@media (min-width: 768px) {
  .svc-card { padding-right: clamp(24px, 3vw, 44px); }
  .svc-card:nth-child(odd) { border-right: 1px solid var(--border); padding-right: clamp(32px, 4vw, 56px); }
  .svc-card:nth-child(even) { padding-left: clamp(32px, 4vw, 56px); }
}
.svc-card:hover { padding-left: 14px; }
@media (min-width: 768px) {
  .svc-card:nth-child(even):hover { padding-left: clamp(46px, 5vw, 72px); }
}
.svc-card__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 6px;
}
.svc-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.svc-card__text { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.72; max-width: 44ch; }
.svc-card__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card__tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Works / case cards ---------- */
.works { display: grid; gap: clamp(28px, 4vw, 44px); }
@media (min-width: 768px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work-card { display: flex; flex-direction: column; gap: 18px; }
.work-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.08); filter: grayscale(0.55) contrast(1.04); }
.work-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  letter-spacing: -0.015em;
}
.work-card__text { color: var(--fg-soft); font-size: 0.98rem; line-height: 1.7; }

/* ---------- Process steps ---------- */
.process { display: grid; gap: 0; border-top: 1px solid var(--border); }
.process__step {
  display: grid;
  gap: 14px 40px;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .process__step { grid-template-columns: 90px 1fr 1.2fr; align-items: baseline; }
}
.process__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.process__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
}
.process__text { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.72; }

/* ---------- Dark manifesto band ---------- */
.band {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(90px, 14vw, 180px) 0;
  text-align: center;
}
.band__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  max-width: 980px;
  margin: 0 auto;
}
.band__quote em { font-style: normal; color: var(--accent); }
.band__mark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.band__sign {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Stats ---------- */
.stats { display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .stat { padding: clamp(32px, 4vw, 48px) clamp(20px, 2.5vw, 34px); border-right: 1px solid var(--border); }
  .stat:last-child { border-right: 0; }
}
.stat__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Team (monograms, no faces) ---------- */
.team { display: grid; gap: clamp(24px, 3vw, 36px); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  border: 1px solid var(--border);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.team-card:hover { background: var(--bg-alt); transform: translateY(-4px); }
.avatar {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  border-radius: 50%;
}
.team-card__name { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; letter-spacing: -0.01em; }
.team-card__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.team-card__bio { color: var(--fg-soft); font-size: 0.95rem; line-height: 1.68; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: clamp(24px, 3vw, 34px) 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  letter-spacing: -0.015em;
  color: var(--fg);
}
.faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--accent);
  transition: transform 0.35s var(--ease);
}
.faq__icon::before { width: 18px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 18px; transform: translate(-50%, -50%); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.faq__q[aria-expanded="true"] + .faq__a { max-height: 420px; opacity: 1; }
.faq__a p {
  color: var(--fg-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 68ch;
  padding-bottom: clamp(24px, 3vw, 34px);
}

/* ---------- CTA / form ---------- */
.cta { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr 1fr; align-items: start; } }
.cta__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.cta__title em { font-style: normal; color: var(--accent); }
.cta__text { margin-top: 22px; color: var(--fg-soft); font-size: 1.08rem; line-height: 1.75; max-width: 44ch; }
.cta__details { margin-top: 32px; display: grid; gap: 14px; font-family: var(--mono); font-size: 13px; color: var(--fg-soft); }
.cta__details a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.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 {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form__row { display: grid; gap: 22px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__submit { justify-self: start; margin-top: 6px; }
.form__consent { font-size: 13px; color: var(--muted); line-height: 1.6; }
.form__consent a { color: var(--fg-soft); border-bottom: 1px solid var(--border); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(70px, 11vw, 150px) 0 clamp(50px, 8vw, 100px);
  border-bottom: 1px solid var(--border);
}
.page-hero__eyebrow { margin-bottom: 26px; }
.page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.page-hero__title em { font-style: normal; color: var(--accent); }
.page-hero__lead {
  margin-top: 32px;
  max-width: 54ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.68;
  color: var(--fg-soft);
}
.page-hero__row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 30px 0 10px; }
.prose p { color: var(--fg-soft); line-height: 1.8; margin-bottom: 16px; }
.prose ul { color: var(--fg-soft); line-height: 1.8; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--border); }
.prose__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Thanks ---------- */
.thanks {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px var(--pad);
}
.thanks__inner { max-width: 640px; }
.thanks__mark { font-family: var(--serif); font-weight: 800; font-size: 5rem; color: var(--accent); line-height: 1; }
.thanks__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 24px 0 20px;
}
.thanks__text { color: var(--fg-soft); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(64px, 9vw, 110px) 0 36px;
}
.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: clamp(40px, 6vw, 64px);
}
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.3fr 2fr; } }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.footer__wordmark em { font-style: normal; color: var(--accent); }
.footer__tag { color: rgba(236,236,234,0.6); font-size: 0.98rem; line-height: 1.6; max-width: 34ch; }
[data-theme="dark"] .footer__tag { color: rgba(13,13,13,0.55); }
.footer__cols { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer__col a, .footer__col span {
  font-size: 14px;
  color: rgba(236,236,234,0.68);
  line-height: 1.5;
  transition: color 0.3s var(--ease);
}
[data-theme="dark"] .footer__col a, [data-theme="dark"] .footer__col span { color: rgba(13,13,13,0.62); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  max-width: var(--maxw);
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding: 24px var(--pad) 0;
  border-top: 1px solid rgba(236,236,234,0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(236,236,234,0.5);
}
[data-theme="dark"] .footer__bottom { border-color: rgba(13,13,13,0.14); color: rgba(13,13,13,0.5); }

/* ---------- Invert toggle ---------- */
.invert-toggle {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--fg-soft);
  background: rgba(236,236,234,0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 7px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
[data-theme="dark"] .invert-toggle { background: rgba(13,13,13,0.7); }
.invert-toggle__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg); border: 1px solid var(--border); }
[data-theme="dark"] .invert-toggle__dot { background: var(--bg); }

/* ---------- Cookie popup ---------- */
.cookie-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end;
  padding: 24px;
  background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(4px);
  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);
  color: var(--fg);
  padding: 32px 36px;
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.4);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cookie-popup__card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.015em; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 14px; line-height: 1.65; color: var(--fg-soft); }
.cookie-popup__card p a { color: var(--accent); border-bottom: 1px solid var(--border); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 11px 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cookie-popup__actions button:first-child:hover { background: var(--bg-alt); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
