/* palette: bg=#0B0F0A fg=#EEF1E8 accent=#B5FF3C */
/* fonts: display="Fraunces" body="Space Grotesk" mono="Space Mono" */

:root {
  --bg: #0B0F0A;
  --bg-alt: #14181F;
  --bg-card: #161B14;
  --bg-light: #F2F1EC;
  --fg: #EEF1E8;
  --fg-soft: #BFC5B6;
  --muted: #6F7466;
  --line: rgba(238, 241, 232, 0.10);
  --line-strong: rgba(238, 241, 232, 0.22);
  --accent: #B5FF3C;
  --accent-deep: #7BCB1A;
  --warn: #F26C3B;

  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Courier New', monospace;

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

  --container: 1280px;
  --gap-pad: clamp(20px, 4vw, 48px);
}

*, *::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.72;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; }
::selection { background: var(--accent); color: var(--bg); }

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

/* eyebrow / label */
.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;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 14px var(--accent);
}
.eyebrow--plain::before { display: none; }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 10, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  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"] {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 10, 0.92);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent);
  align-self: center;
}
.brand__suffix {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav { display: none; }
@media (min-width: 980px) {
  .nav {
    display: flex;
    gap: 32px;
    align-items: center;
  }
}
.nav__link {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color .2s var(--ease);
  position: relative;
}
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--accent {
  background: var(--accent);
  color: #0A0F00;
}
.btn--accent:hover { background: var(--fg); transform: translateY(-2px); }
.btn__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #0A0F00;
  font-size: 13px;
}
.btn--primary .btn__dot { background: var(--accent); }

.menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
@media (min-width: 980px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 22px; height: 1.5px;
  background: var(--fg);
  transition: transform .25s var(--ease), opacity .25s 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); }

.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg);
  padding: 40px var(--gap-pad);
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu[data-open="true"] { transform: translateY(0); }
.mobile-menu__link {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gap-pad) 60px;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(181, 255, 60, 0.12), transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(123, 203, 26, 0.08), transparent 50%),
              #0B0F0A;
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(238,241,232,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(238,241,232,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 80px; }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 9.5vw, 9rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 24px 0 0;
  color: var(--fg);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero h1 .small {
  font-family: var(--mono);
  font-size: 0.18em;
  display: inline-block;
  vertical-align: top;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 12px;
  line-height: 1.4;
}
.hero__lede {
  font-size: 17px;
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 44ch;
  margin: 0 0 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
}
.hero__meta strong {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  margin-top: 4px;
}

/* MARQUEE / RAIL */
.rail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 16px 0;
  overflow: hidden;
}
.rail__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: rail 36s linear infinite;
  width: max-content;
}
.rail__item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rail__item::after { content: "◇"; color: var(--accent); }
@keyframes rail { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTION BASE */
section { position: relative; }
.section {
  padding: clamp(80px, 12vw, 160px) 0;
}
.section--alt { background: var(--bg-alt); }
.section--light { background: var(--bg-light); color: #131613; }
.section--light .eyebrow { color: #595E55; }
.section--light .h2 { color: #131613; }

.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
@media (min-width: 880px) {
  .section__head { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
}
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 16px 0 0;
  color: var(--fg);
}
.h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.section__intro {
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.72;
  max-width: 48ch;
}

/* MANIFESTO */
.manifesto {
  padding: clamp(100px, 16vw, 220px) 0;
  background: var(--bg);
  text-align: center;
}
.manifesto__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gap-pad);
}
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 32px 0 40px;
}
.manifesto__quote em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.manifesto__sign {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* SERVICES GRID — dark cards à la reference */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: linear-gradient(155deg, #1A2014 0%, #0F140B 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -40%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(181, 255, 60, 0.14), transparent 70%);
  pointer-events: none;
}
.service-card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card__num::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.service-card__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
}
.service-card__body {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.service-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* CASE STUDIES — magazine grid */
.studies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 32px;
}
@media (min-width: 880px) {
  .studies {
    grid-template-columns: repeat(12, 1fr);
  }
  .studies__item:nth-child(1) { grid-column: span 7; }
  .studies__item:nth-child(2) { grid-column: span 5; margin-top: 64px; }
  .studies__item:nth-child(3) { grid-column: span 5; }
  .studies__item:nth-child(4) { grid-column: span 7; margin-top: -32px; }
}
.studies__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.studies__cover {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.studies__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.studies__item:hover .studies__cover img { transform: scale(1.04); }
.studies__cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,15,10,0.55) 100%);
}
.studies__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.studies__meta strong { color: var(--accent); font-weight: 400; }
.studies__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
.studies__excerpt {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* STATS — large mismatched display */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 48px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .stat { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}
.stat__num {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.stat__num span { color: var(--accent); font-style: normal; }
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__desc {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.6;
  margin-top: 8px;
  max-width: 28ch;
}

/* PRINCIPLES — numbered list, asymmetric */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle {
  background: var(--bg);
  padding: 56px 36px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}
.principle__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
}
.principle__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--fg);
}
.principle__body {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.7;
  margin: 0;
}

/* TEAM — monogram avatars */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .25s var(--ease);
}
.team__card:hover { border-color: var(--accent); }
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: #0A0F00;
  letter-spacing: -0.02em;
}
.avatar--lime { background: var(--accent); }
.avatar--olive { background: #C8D89A; }
.avatar--cream { background: #E4E1C7; }
.avatar--rust { background: #F26C3B; color: #FFF; }
.team__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.team__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.team__bio {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 0;
}

/* TESTIMONIALS */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial__mark {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 0.5;
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}
.testimonial__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.testimonial__author .avatar { width: 44px; height: 44px; font-size: 16px; }
.testimonial__author strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  display: block;
}
.testimonial__author span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.faq__q::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.faq__a {
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 70ch;
}

/* CTA BAND */
.cta-band {
  padding: clamp(80px, 14vw, 180px) 0;
  background: var(--accent);
  color: #0A0F00;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  max-width: 14ch;
  margin-inline: auto;
}
.cta-band h2 em { font-style: italic; }
.cta-band__sub {
  font-size: 17px;
  color: #1A2014;
  max-width: 52ch;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.cta-band .btn--primary {
  background: #0A0F00;
  color: var(--accent);
}
.cta-band .btn--primary:hover { background: var(--bg); transform: translateY(-2px); }

/* FORM */
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__input, .form__select, .form__area {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--fg);
  transition: border-color .2s var(--ease);
}
.form__input:focus, .form__select:focus, .form__area:focus {
  outline: 0;
  border-color: var(--accent);
}
.form__area { resize: vertical; min-height: 120px; }
.form__submit { grid-column: 1 / -1; justify-self: start; }

/* CONTACT GRID */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.contact-row__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.contact-row__value a:hover { color: var(--accent); }

/* FOOTER */
.footer {
  background: #050702;
  color: var(--fg-soft);
  padding: 100px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 880px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer__brand h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 16px 0;
  color: var(--fg);
}
.footer__brand h3 em { font-style: italic; color: var(--accent); }
.footer__brand p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 36ch;
  color: var(--muted);
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 400;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--fg-soft); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* SLOW ZOOM */
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* 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(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg-light);
  color: #131613;
  padding: 32px 32px 28px;
  max-width: 460px;
  border-radius: 14px;
  border: 1px solid #D8D5C8;
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5A604D;
  margin-bottom: 10px;
}
.cookie-popup__card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: #131613;
}
.cookie-popup__card p {
  font-size: 14px;
  line-height: 1.6;
  color: #3A3F33;
  margin: 0;
}
.cookie-popup__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cookie-popup__actions button {
  padding: 11px 22px;
  border-radius: 9999px;
  border: 1px solid #B5B2A2;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: #131613;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cookie-popup__actions button:last-child {
  background: #131613;
  color: var(--accent);
  border-color: #131613;
}
.cookie-popup__actions button:last-child:hover { background: var(--accent); color: #131613; }

/* LEGAL PAGES */
.legal {
  padding: clamp(80px, 12vw, 140px) 0;
}
.legal__wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gap-pad);
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--fg);
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 48px 0 14px;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-soft);
  margin: 0 0 14px;
}
.legal ul { padding-left: 22px; }

.thanks {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--gap-pad);
}
.thanks h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.thanks h1 em { color: var(--accent); font-style: italic; }
.thanks p {
  color: var(--fg-soft);
  max-width: 52ch;
  margin: 0 auto 36px;
  font-size: 17px;
}

/* utility helpers */
.grid-rule { border-top: 1px solid var(--line); }
.text-balance { text-wrap: balance; }
