/* palette: bg=#FFFFFF fg=#141414 accent=#5324E8 */
/* fonts: display="UnifrakturMaguntia" body="Inter" mono="JetBrains Mono" */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F1F1EF;
  --fg: #141414;
  --fg-soft: #2E2E2E;
  --muted: #6E6E6E;
  --accent: #5324E8;
  --accent-deep: #3A17AE;
  --accent-soft: #A98CFF;
  --border: rgba(20, 20, 20, 0.12);
  --border-soft: rgba(20, 20, 20, 0.08);
  --black: 'UnifrakturMaguntia', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  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 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.eyebrow--light { color: var(--accent-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(83, 36, 232, 0.6); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.arrow-link span { transition: transform 0.3s var(--ease); }
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }
.arrow-link:hover span { transform: translateX(5px); }

/* ---------- Ruler (measuring-tape marquee) ---------- */
.ruler {
  position: relative;
  height: 15px;
  overflow: hidden;
}
.ruler::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--fg) 0 1px, transparent 1px 11px);
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ruler::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: translateX(-50%);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--border-soft), 0 10px 30px -22px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand__mark { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav { display: none; gap: 4px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav__link {
  font-size: 14px;
  color: var(--fg-soft);
  padding: 7px 16px;
  border-radius: 9999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__link:hover { color: var(--fg); background: var(--bg-alt); }
.nav__link--active { background: var(--bg-alt); color: var(--fg); }

.header__cta {
  display: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border: 1px solid var(--fg);
  border-radius: 9999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.header__cta:hover { background: var(--fg); color: var(--bg); }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 11px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.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); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 90px 28px 40px;
}
.mobile-menu__inner a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu__cta { color: var(--accent); }
.mobile-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(48px, 10vh, 100px);
  overflow: hidden;
}
.hero__top { padding-bottom: 40px; }
.hero__eyebrow { animation: fadeUp 0.9s var(--ease) both; }
.hero__title {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 36px;
  animation: fadeUp 1s var(--ease) 0.08s both;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__intro {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  color: var(--fg-soft);
  margin-bottom: 36px;
  animation: fadeUp 1s var(--ease) 0.16s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  animation: fadeUp 1s var(--ease) 0.24s both;
}
.wordmark {
  width: 100%;
  overflow: hidden;
  line-height: 0.8;
  padding: 0 8px;
}
.wordmark__big {
  display: block;
  font-family: var(--black);
  font-weight: 400;
  font-size: clamp(5rem, 23vw, 24rem);
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  color: var(--fg);
  transform: translateY(14%);
  animation: wordmarkRise 1.4s var(--ease) 0.3s both;
}
@keyframes wordmarkRise {
  from { opacity: 0; transform: translateY(40%); }
  to { opacity: 1; transform: translateY(14%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.section__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}
.section__foot { margin-top: 52px; }

/* ---------- Index block (reference 4 columns) ---------- */
.index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 40px;
}
@media (min-width: 768px) { .index-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .index-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.index-col--right { text-align: left; }
@media (min-width: 1024px) { .index-col--right { text-align: right; } }
.index-col__name { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 14px; }
.index-col__bio { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.68; max-width: 42ch; }
.index-col__bio a { border-bottom: 1px solid var(--border); transition: border-color 0.25s, color 0.25s; }
.index-col__bio a:hover { color: var(--accent); border-color: var(--accent); }
.index-col__head {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.index-list li { padding: 5px 0; color: var(--fg-soft); font-size: 1.02rem; }
.index-list a {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.index-list a:hover { color: var(--accent); border-color: var(--accent); }
.index-list--plain li { color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 7px 15px;
  background: var(--bg-alt);
  border-radius: 6px;
  color: var(--fg-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.index-block .chip { background: var(--bg-alt); }
.section--alt .chip { background: var(--bg); }
.chip:hover { background: var(--fg); color: var(--bg); }

/* ---------- Service list ---------- */
.service-list { border-top: 1px solid var(--border); }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
}
.service-item:hover { padding-left: 20px; }
.service-item__no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
  min-width: 34px;
}
.service-item__body { flex: 1; }
.service-item__name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.service-item__desc { color: var(--muted); max-width: 60ch; font-size: 1.02rem; }
.service-item__arrow {
  align-self: center;
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.service-item:hover .service-item__arrow { color: var(--accent); transform: translateX(6px); }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 680px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { display: flex; flex-direction: column; }
.work-card__media {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  aspect-ratio: 3 / 2;
  margin-bottom: 20px;
}
.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work-card:hover .work-card__img { transform: scale(1.05); }
.work-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-card__title {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
}
.work-card__meta { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }

/* ---------- Manifesto ---------- */
.manifesto__quote {
  position: relative;
  margin: 0;
  max-width: 24ch;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.manifesto .container { max-width: 1000px; }
.manifesto__mark {
  font-family: var(--black);
  color: var(--accent-soft);
  font-size: 1.1em;
  line-height: 0;
  margin-right: 6px;
  vertical-align: -0.1em;
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg-alt); padding: 36px 30px 44px; }
.section--alt .step { background: var(--bg-alt); }
.step__no { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step__title { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; margin: 18px 0 12px; }
.step__desc { color: var(--muted); font-size: 0.98rem; line-height: 1.62; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--fg); padding-top: 20px; }
.stat__num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.stat__label { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- CTA ---------- */
.cta__inner { max-width: 760px; }
.cta__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.cta__text { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 52ch; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 72px 0 36px; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.3fr 2fr; } }
.footer__wordmark {
  font-family: var(--black);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
}
.footer__tagline { color: var(--muted); margin-top: 16px; max-width: 34ch; font-size: 0.98rem; }
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 560px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer__col a, .footer__col span {
  display: block;
  color: var(--fg-soft);
  font-size: 0.98rem;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(60px, 11vw, 140px) 0 clamp(50px, 8vw, 90px);
  border-bottom: 1px solid var(--border);
}
.page-hero__title {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 18ch;
  margin-bottom: 30px;
}
.page-hero__title em { font-style: normal; color: var(--accent); }
.page-hero__intro {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--fg-soft);
}

/* ---------- Prose / story ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--fg-soft); margin-bottom: 24px; font-size: 1.08rem; line-height: 1.78; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--fg); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.two-col__aside { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); line-height: 1.8; }

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 700px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { background: var(--bg); padding: 40px 34px; }
.section--alt .principle { background: var(--bg-alt); }
.principle__no { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.principle__title { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; margin: 16px 0 12px; }
.principle__desc { color: var(--muted); font-size: 1rem; line-height: 1.64; }

/* ---------- Team (monogram, no faces) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 560px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.14); }
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 22px;
}
.team-card__name { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.team-card__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 6px 0 14px; }
.team-card__bio { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 820px) { .quote-grid { grid-template-columns: 1fr 1fr; } }
.quote-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 34px;
  background: var(--bg);
}
.section--alt .quote-card { background: var(--bg); }
.quote-card p { font-size: 1.2rem; line-height: 1.5; font-weight: 300; letter-spacing: -0.01em; margin-bottom: 22px; }
.quote-card__who { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; padding: 0 0 26px; max-width: 70ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.info-block { margin-bottom: 34px; }
.info-block h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.info-block p, .info-block a { font-size: 1.1rem; color: var(--fg-soft); line-height: 1.55; }
.info-block a { border-bottom: 1px solid var(--border); transition: color 0.25s, border-color 0.25s; }
.info-block a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; 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 {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 2px;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: #AEAEAE; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.checkbox input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox a { color: var(--fg); border-bottom: 1px solid var(--border); }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; padding: clamp(50px, 8vw, 90px) 0 clamp(70px, 10vw, 130px); }
.legal__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 44px; }
.legal h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--fg-soft); margin-bottom: 18px; line-height: 1.75; }
.legal ul { list-style: none; margin: 0 0 18px; padding: 0; }
.legal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--fg-soft);
  line-height: 1.7;
}
.legal ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.legal a { color: var(--accent); border-bottom: 1px solid var(--border); }

/* ---------- Thank you ---------- */
.thanks {
  min-height: 72vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 24px; }
.thanks__title em { font-style: normal; color: var(--accent); }
.thanks__text { color: var(--muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }

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

/* ---------- 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);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg);
  padding: 32px 36px;
  max-width: 480px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
}
@media (min-width: 560px) { .cookie-popup { align-items: flex-end; justify-content: flex-start; } }
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cookie-popup__card h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 11px 24px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cookie-popup__actions button:hover { border-color: var(--fg); }
.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); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .wordmark__big { transform: translateY(14%); }
}
