/* palette: bg=#CBCBC6 fg=#141414 accent=#2B4E9E */
/* fonts: display="Archivo" body="Space Grotesk" mono="IBM Plex Mono" */

:root {
  --bg: #CBCBC6;        /* concrete grey — dominant background */
  --bg-alt: #BCBCB6;    /* darker concrete — alternating sections */
  --bg-light: #D9D9D4;  /* lighter concrete panel */
  --fg: #141414;        /* industrial near-black */
  --fg-soft: #2C2C2A;   /* slightly lighter foreground */
  --muted: #5F5F59;     /* secondary text — weathered concrete */
  --accent: #2B4E9E;    /* steel cobalt — the bluish brand mark */
  --accent-deep: #1C3869; /* darker steel for hover */
  --line: #141414;      /* hard brutalist rule */
  --border: rgba(20, 20, 20, 0.16);
  --border-strong: rgba(20, 20, 20, 0.42);
  --serif: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle concrete grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

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: #fff; }

/* ------------------------------------------------------------------ */
/* Layout primitives                                                   */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; z-index: 2; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--light { background: var(--bg-light); }

.section--dark {
  background: var(--fg);
  color: var(--bg);
}
.section--dark .eyebrow { color: #8f8f8a; }
.section--dark .muted { color: #9a9a93; }

/* Eyebrow / mono label */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* Headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.02; margin: 0; }

.h-display {
  font-size: clamp(3.1rem, 10vw, 8.4rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 0.96;
}

.h-section {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-weight: 800;
  max-width: 16ch;
}

h1 em, h2 em, .h-display em, .h-section em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 54ch;
  font-weight: 400;
}

.muted { color: var(--muted); }

p { margin: 0 0 1.2em; }

/* ------------------------------------------------------------------ */
/* Buttons / links                                                     */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 2px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.section--dark .btn--ghost { color: var(--bg); border-color: var(--bg); }
.section--dark .btn--ghost:hover { background: var(--bg); color: var(--fg); }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(203, 203, 198, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 2px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--fg);
  background: rgba(203, 203, 198, 0.94);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand .brand__dot { color: var(--accent); }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 36px; }
}
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: 2px solid var(--fg);
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--fg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 99;
  background: var(--fg);
  color: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-120%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu a .idx { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 400; }
.mobile-menu .btn { margin-top: 28px; justify-content: center; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f2f2ee;
  background: var(--fg);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroZoom 9s var(--ease) forwards;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.2) 40%, rgba(20,20,20,0.85) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 140px 0 64px;
}
.hero .eyebrow { color: #a8b8e0; }
.hero h1 {
  color: #f4f4f0;
  margin: 0 0 32px;
  max-width: 17ch;
}
.hero h1 em { color: #7f9fe8; }
.hero__lead { color: #d4d4cf; max-width: 50ch; margin-bottom: 40px; }

.hero__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 2px solid rgba(255,255,255,0.18);
}
.hero__meta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bcbcb6;
}
.hero__meta-inner span strong { color: #f2f2ee; font-weight: 500; }

/* ------------------------------------------------------------------ */
/* Stats strip                                                         */
/* ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--fg);
  border-left: 2px solid var(--fg);
}
@media (min-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  padding: 32px 28px;
}
.stat__num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.stat__label {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg-soft);
}

/* ------------------------------------------------------------------ */
/* Section header block                                                */
/* ------------------------------------------------------------------ */
.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 48px;
  }
  .section-head__text { max-width: 60ch; }
}

/* ------------------------------------------------------------------ */
/* Manifesto                                                           */
/* ------------------------------------------------------------------ */
.manifesto { text-align: left; }
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.manifesto__quote em { color: #7f9fe8; font-style: normal; }
.manifesto__mark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.7;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.manifesto__foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid rgba(255,255,255,0.18);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a93;
}

/* ------------------------------------------------------------------ */
/* Timeline / progression                                              */
/* ------------------------------------------------------------------ */
.timeline { display: grid; gap: 0; border-top: 2px solid var(--fg); }
.tl-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 36px 0;
  border-bottom: 2px solid var(--fg);
  position: relative;
}
@media (min-width: 820px) {
  .tl-item {
    grid-template-columns: 96px 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    padding: 44px 0;
  }
}
.tl-item__num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 6px;
}
.tl-item__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.tl-item__body { color: var(--fg-soft); font-size: 16px; line-height: 1.7; }
.tl-item:hover .tl-item__num { color: var(--fg); }

/* ------------------------------------------------------------------ */
/* Services grid                                                       */
/* ------------------------------------------------------------------ */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--fg);
  border-left: 2px solid var(--fg);
}
@media (min-width: 680px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid-cards--4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  padding: 36px 32px 40px;
  background: var(--bg);
  transition: background .35s var(--ease), transform .35s var(--ease);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.card:hover { background: var(--bg-light); }
.card__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 28px;
}
.card__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.card__body { color: var(--fg-soft); font-size: 15.5px; line-height: 1.65; flex: 1; }
.card__foot { margin-top: 24px; }

/* ------------------------------------------------------------------ */
/* Work / case studies                                                 */
/* ------------------------------------------------------------------ */
.work-list { display: grid; gap: 2px; background: var(--fg); border: 2px solid var(--fg); }
.work {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  transition: background .35s var(--ease);
}
@media (min-width: 820px) { .work { grid-template-columns: 0.9fr 1.1fr; } }
.work:hover { background: var(--bg-light); }
.work__media { overflow: hidden; aspect-ratio: 16 / 10; }
@media (min-width: 820px) { .work__media { aspect-ratio: auto; } }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: grayscale(0.35) contrast(1.05); }
.work:hover .work__media img { transform: scale(1.05); filter: grayscale(0); }
.work__text { padding: 36px 32px 40px; display: flex; flex-direction: column; justify-content: center; }
.work__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.work__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 16px;
}
.work__body { color: var(--fg-soft); font-size: 16px; max-width: 48ch; }
.work__meta {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Principles grid                                                     */
/* ------------------------------------------------------------------ */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--fg);
  border-left: 2px solid var(--fg);
}
@media (min-width: 680px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle {
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  padding: 32px 26px 36px;
}
.principle__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; }
.principle__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 18px 0 10px;
}
.principle__body { font-size: 14.5px; color: var(--fg-soft); line-height: 1.6; }

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq { border-top: 2px solid var(--fg); }
.faq details {
  border-bottom: 2px solid var(--fg);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 48px 28px 0;
  position: relative;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 26px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq__body {
  padding: 0 48px 32px 0;
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 68ch;
}

/* ------------------------------------------------------------------ */
/* CTA band                                                            */
/* ------------------------------------------------------------------ */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .eyebrow { color: rgba(255,255,255,0.75); }
.cta-band__grid { display: grid; gap: 32px; }
@media (min-width: 880px) {
  .cta-band__grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 56px; }
}
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.025em; line-height: 1.0; }
.cta-band p { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 46ch; }
.cta-band .btn { background: var(--fg); border-color: var(--fg); color: #fff; }
.cta-band .btn:hover { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--accent); border-color: #fff; }

/* ------------------------------------------------------------------ */
/* Contact / forms                                                     */
/* ------------------------------------------------------------------ */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

.info-block { border-top: 2px solid var(--fg); padding-top: 24px; margin-bottom: 36px; }
.info-block__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.info-block__value { font-size: 1.1rem; line-height: 1.5; }
.info-block__value a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg-light);
  border: 2px solid var(--fg);
  padding: 14px 16px;
  width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.field--row { display: grid; gap: 22px; }
@media (min-width: 560px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.form__consent a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ------------------------------------------------------------------ */
/* Prose (legal pages)                                                 */
/* ------------------------------------------------------------------ */
.prose { max-width: 760px; }
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  line-height: 1.1;
}
.prose h3 { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.75; }
.prose ul { padding-left: 20px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.page-head { padding: clamp(120px, 16vw, 200px) 0 clamp(40px, 6vw, 72px); border-bottom: 2px solid var(--fg); }
.page-head .eyebrow { margin-bottom: 20px; }

/* Thank-you page */
.thanks { min-height: 72vh; display: flex; align-items: center; }
.thanks__inner { max-width: 720px; }
.thanks__mark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem);
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer {
  background: var(--fg);
  color: #bcbcb6;
  padding: clamp(64px, 9vw, 110px) 0 40px;
  position: relative;
  z-index: 2;
}
.footer__top {
  display: grid;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 840px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; } }
.footer__brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  color: #f2f2ee;
  line-height: 1;
}
.footer__brand .brand__dot { color: var(--accent); }
.footer__tag { margin-top: 20px; max-width: 34ch; color: #9a9a93; font-size: 15.5px; }
.footer__col h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f6f69;
  margin: 0 0 20px;
}
.footer__col a, .footer__col p { display: block; color: #cfcfc9; font-size: 15px; margin-bottom: 12px; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6f6f69;
}
.footer__bottom a:hover { color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ------------------------------------------------------------------ */
/* Reveal animation                                                    */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/* 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);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg);
  padding: 32px 36px;
  max-width: 480px;
  border: 2px solid var(--fg);
  box-shadow: 10px 10px 0 var(--accent);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cookie-popup__card h3 { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 14px; color: var(--fg-soft); line-height: 1.6; margin: 0; }
.cookie-popup__card p a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button {
  padding: 12px 24px;
  border: 2px solid var(--fg);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease);
  flex: 1;
}
.cookie-popup__actions button:hover { background: var(--bg-alt); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Utility */
.stack-lg > * + * { margin-top: 28px; }
.text-max { max-width: 62ch; }
.mt-lg { margin-top: 48px; }
.nowrap { white-space: nowrap; }
