/* palette: bg=#0B0420 fg=#F5E9C9 accent=#E8B547 */
/* fonts: display="Syne" body="Inter" mono="JetBrains Mono" */

:root {
  --bg: #0B0420;
  --bg-alt: #1A0B3D;
  --bg-deeper: #06021A;
  --fg: #F5E9C9;
  --fg-soft: #DCC9A0;
  --muted: #8B7AB8;
  --accent: #E8B547;
  --accent-deep: #C99030;
  --accent-glow: rgba(232, 181, 71, 0.18);
  --violet: #6B3FA0;
  --magenta: #B83A8C;
  --border: rgba(245, 233, 201, 0.14);
  --border-strong: rgba(245, 233, 201, 0.28);
  --display: 'Syne', ui-sans-serif, sans-serif;
  --sans: 'Inter', ui-sans-serif, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1280px;
}

*, *::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;
  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; }
input, textarea, select { font: inherit; color: inherit; }

/* Cosmic background field */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 12%, rgba(184, 58, 140, 0.18), transparent 45%),
    radial-gradient(ellipse at 85% 78%, rgba(107, 63, 160, 0.22), transparent 50%),
    radial-gradient(circle at 50% 110%, rgba(232, 181, 71, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(245, 233, 201, 0.45), transparent),
    radial-gradient(1px 1px at 65% 80%, rgba(245, 233, 201, 0.32), transparent),
    radial-gradient(1.2px 1.2px at 80% 18%, rgba(232, 181, 71, 0.5), transparent),
    radial-gradient(1px 1px at 12% 75%, rgba(245, 233, 201, 0.4), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(245, 233, 201, 0.3), transparent),
    radial-gradient(1px 1px at 35% 55%, rgba(232, 181, 71, 0.35), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

::selection { background: var(--accent); color: var(--bg-deeper); }

/* Container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--fg);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
p { margin: 0 0 1.2em; color: var(--fg-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ─────────── Header ─────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 4, 32, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header[data-scrolled="true"] {
  background: rgba(6, 2, 26, 0.92);
  border-bottom-color: var(--border);
}
.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (min-width: 768px) {
  .header__inner { padding: 22px 32px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand__mark {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}
.brand__mark svg { width: 100%; height: 100%; }

.nav { display: none; }
@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .nav a {
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--fg-soft);
    transition: color .25s var(--ease);
    position: relative;
  }
  .nav a:hover { color: var(--accent); }
  .nav a.is-active { color: var(--accent); }
}

.header__cta { display: none; }
@media (min-width: 900px) {
  .header__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.04em;
    border-radius: 9999px;
    font-family: var(--mono);
    transition: all .3s var(--ease);
  }
  .header__cta:hover {
    background: var(--accent);
    color: var(--bg-deeper);
    transform: translateY(-1px);
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-deeper);
  padding: 100px 32px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu nav a {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.mobile-menu nav a:last-child { border: 0; }

/* ─────────── Hero ─────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 4, 32, 0.35) 0%, rgba(11, 4, 32, 0.65) 60%, rgba(11, 4, 32, 0.95) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(184, 58, 140, 0.35), transparent 50%);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

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

.hero__eyebrow {
  margin-bottom: 32px;
  display: inline-flex;
}
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 9rem);
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 14ch;
  line-height: 0.96;
  margin-bottom: 36px;
  font-family: var(--display);
}
.hero__sub {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fg-soft);
  line-height: 1.6;
  margin-bottom: 48px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  align-items: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.hero__meta dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta dd {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.hero__meta dd em {
  color: var(--accent);
  font-style: normal;
}

/* Cosmic ring decoration */
.hero__ring {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}
.hero__ring::before, .hero__ring::after {
  content: '';
  position: absolute;
  inset: 80px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.hero__ring::after { inset: 180px; border-color: var(--accent); opacity: 0.35; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-deeper);
}
.btn--primary:hover {
  background: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px var(--accent-glow);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color .3s var(--ease);
}
.text-link:hover { border-bottom-color: var(--accent); }
.text-link::after {
  content: '→';
  transition: transform .3s var(--ease);
}
.text-link:hover::after { transform: translateX(4px); }

/* ─────────── Section base ─────────── */
section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.section-head__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.section-head__lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-soft);
  max-width: 50ch;
}
.section-head .eyebrow { margin-bottom: 28px; display: inline-flex; }

/* ─────────── Services ─────────── */
.services {
  background: var(--bg-deeper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 700px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}
.service {
  background: var(--bg-deeper);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: background .4s var(--ease);
  position: relative;
  min-height: 380px;
}
.service:hover {
  background: var(--bg-alt);
}
.service__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.service__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.service__icon svg { width: 100%; height: 100%; }
.service h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.service p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin: 0;
}
.service__tag {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.service__tag span:last-child { color: var(--accent); }

/* ─────────── Manifesto ─────────── */
.manifesto {
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.manifesto__quote {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--fg);
}
.manifesto__quote em {
  color: var(--accent);
  font-style: italic;
}
.manifesto__attr {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifesto__star {
  display: inline-block;
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 32px;
}

/* ─────────── Work / Cases ─────────── */
.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .work__grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
  }
  .work__item:nth-child(3n+2) {
    grid-column: 2;
    margin-top: 80px;
  }
  .work__item:nth-child(3n+3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: center;
  }
}
.work__item {
  display: block;
  position: relative;
}
.work__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
}
.work__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.work__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 4, 32, 0.6));
  pointer-events: none;
}
.work__item:hover .work__cover img { transform: scale(1.05); }
.work__meta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.work__title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.work__excerpt {
  color: var(--fg-soft);
  font-size: 15px;
  margin-top: 8px;
  max-width: 50ch;
}

/* ─────────── Process ─────────── */
.process {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .process__grid { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
}
.step {
  background: var(--bg-alt);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  min-height: 360px;
}
.step__num {
  font-family: var(--display);
  font-size: 80px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.step h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.7;
  margin: 0;
}
.step__symbol {
  position: absolute;
  top: 36px;
  right: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ─────────── Team (text + monogram) ─────────── */
.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}
.member {
  border: 1px solid var(--border);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(26, 11, 61, 0.3);
  transition: all .4s var(--ease);
}
.member:hover {
  border-color: var(--accent);
  background: rgba(232, 181, 71, 0.05);
  transform: translateY(-4px);
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  color: var(--bg-deeper);
  letter-spacing: -0.02em;
  position: relative;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.avatar--gold { background: var(--accent); }
.avatar--violet { background: var(--violet); color: var(--fg); }
.avatar--magenta { background: var(--magenta); color: var(--fg); }

.member__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.member__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -16px;
}
.member__bio {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.65;
  margin: 0;
}
.member__divider {
  width: 32px;
  height: 1px;
  background: var(--border-strong);
  margin-top: auto;
}

/* ─────────── CTA + form ─────────── */
.cta {
  background: var(--bg-deeper);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  position: relative;
}
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.cta h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.025em;
  font-weight: 400;
}
.cta__lede {
  margin: 24px 0 0;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 42ch;
}
.cta__contact {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta__contact dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cta__contact dd {
  margin: 0;
  font-size: 16px;
  color: var(--fg);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  gap: 20px;
}
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  color: var(--fg);
  font-size: 17px;
  outline: none;
  transition: border-color .25s var(--ease);
  font-family: var(--sans);
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-bottom-color: var(--accent);
}
.form textarea { resize: vertical; min-height: 120px; padding-top: 16px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(245, 233, 201, 0.35); }
.form__submit {
  align-self: flex-start;
  margin-top: 16px;
}
.form__legal {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.form__legal a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ─────────── Footer ─────────── */
.footer {
  background: var(--bg-deeper);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}
.footer__brand h4 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.footer__brand p {
  max-width: 36ch;
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.7;
}
.footer__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__col a {
  color: var(--fg-soft);
  font-size: 14px;
  transition: color .25s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__base {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 700px) {
  .footer__base {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

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

/* ─────────── Cookie popup ─────────── */
.cookie-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 2, 26, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.cookie-popup[data-open="true"] {
  opacity: 1;
  pointer-events: all;
}
.cookie-popup__card {
  background: var(--bg-alt);
  padding: 32px 36px;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 24px 80px -8px rgba(0, 0, 0, 0.6);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cookie-popup__card h3 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--fg);
}
.cookie-popup__card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin-bottom: 24px;
}
.cookie-popup__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-popup__actions button {
  padding: 12px 22px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all .25s var(--ease);
  color: var(--fg);
  background: transparent;
}
.cookie-popup__actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cookie-popup__actions button:last-child {
  background: var(--accent);
  color: var(--bg-deeper);
  border-color: var(--accent);
}
.cookie-popup__actions button:last-child:hover {
  background: var(--fg);
  border-color: var(--fg);
}

/* ─────────── About / Generic page hero ─────────── */
.page-hero {
  padding: 220px 0 100px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 18ch;
  line-height: 0.98;
}
.page-hero h1 em { color: var(--accent); font-style: italic; font-weight: 400; }
.page-hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 60ch;
  margin-top: 32px;
  color: var(--fg-soft);
}

/* ─────────── About content ─────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.4fr; gap: 80px; }
}
.about-grid h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.about-grid p { color: var(--fg-soft); font-size: 17px; line-height: 1.8; }
.about-grid p + p { margin-top: 1em; }

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 80px;
}
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
}
.value__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.value h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.value p {
  font-size: 14px;
  color: var(--fg-soft);
  margin: 0;
  line-height: 1.65;
}

/* ─────────── Services page ─────────── */
.service-detail {
  padding: clamp(60px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--border);
}
.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .service-detail__inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
}
.service-detail__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(8rem, 18vw, 14rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.service-detail h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 24px;
}
.service-detail p { font-size: 17px; line-height: 1.8; color: var(--fg-soft); }
.service-detail ul {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-detail ul li {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg);
  padding-left: 24px;
  position: relative;
}
.service-detail ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 4px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}
.contact-info dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-info dd {
  margin: 0;
  font-size: 17px;
  color: var(--fg);
  line-height: 1.6;
}

/* Legal pages */
.legal {
  padding: 220px 0 120px;
  max-width: 800px;
}
.legal h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 48px;
}
.legal h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.legal p, .legal li {
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 1em;
}
.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 1.5em;
}
.legal__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Thanks */
.thanks {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 200px 24px 100px;
}
.thanks h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 24px;
}
.thanks p {
  font-size: 18px;
  max-width: 50ch;
  margin: 0 auto 40px;
  color: var(--fg-soft);
}

/* utility */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
