/* palette: bg=#FBF8F2 fg=#13294B accent=#CB4124 */
/* fonts: display="Archivo" body="Inter" mono="Space Mono" */

:root {
  --bg: #FBF8F2;          /* warm white */
  --bg-alt: #ECF1F8;      /* pale cobalt wash for alternating sections */
  --fg: #13294B;          /* deep cobalt ink */
  --fg-soft: #2C426E;     /* softer cobalt */
  --muted: #6E6A5E;       /* warm secondary text */
  --accent: #CB4124;      /* terracotta */
  --accent-deep: #9F3017; /* darker terracotta for hover */
  --cobalt: #1C53A6;      /* talavera cobalt */
  --mustard: #E2A019;     /* mustard */
  --border: rgba(19, 41, 75, 0.14);
  --border-soft: rgba(19, 41, 75, 0.08);
  --serif: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bg-rgb: 251, 248, 242;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  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 { font-family: var(--serif); font-weight: 800; margin: 0; letter-spacing: -0.025em; line-height: 1.02; }
p { margin: 0; }

/* ---------- layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
section { padding: clamp(80px, 12vw, 160px) 0; }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

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

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--border-soft);
  border-bottom-color: var(--border-soft);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--cobalt);
  position: relative; flex: none;
  display: grid; place-items: center;
}
.brand__mark::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: var(--mustard);
  box-shadow: inset 0 0 0 3px var(--accent);
}
.brand b { font-weight: 800; }
.nav { display: none; align-items: center; gap: 34px; }
@media (min-width: 940px) { .nav { display: flex; } }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--fg-soft); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav .nav__cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 9px 18px; border: 1px solid var(--border); border-radius: 9999px;
  color: var(--fg); transition: background .25s, color .25s;
}
.nav .nav__cta:hover { background: var(--fg); color: var(--bg); }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px;
}
@media (min-width: 940px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s; }
.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 {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  display: block; font-family: var(--serif); font-weight: 800; font-size: 30px;
  letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden; padding: 0;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,40,.35) 0%, rgba(10,20,40,.15) 40%, rgba(8,16,34,.82) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.hero .eyebrow { color: var(--mustard); }
.hero .eyebrow::before { background: var(--mustard); }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 9rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.92;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--mustard); }
.hero__sub {
  margin-top: 28px; max-width: 46ch; font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.6; color: rgba(255,255,255,.82);
}
.hero__row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .03em;
  padding: 14px 26px; border-radius: 9999px;
  background: var(--accent); color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--soft {
  background: var(--bg-alt); color: var(--fg); border: 1px solid var(--border);
}
.btn--soft:hover { background: #fff; }
.btn svg { width: 15px; height: 15px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .03em;
  color: var(--accent); transition: gap .25s var(--ease);
}
.arrow-link:hover { gap: 14px; color: var(--accent-deep); }

/* ---------- statement / two-col ---------- */
.statement { background: var(--bg); }
.statement__grid {
  display: grid; gap: 56px;
}
@media (min-width: 900px) { .statement__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.statement h2 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.04;
}
.statement__lead {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 700; font-family: var(--serif);
  letter-spacing: -0.02em; line-height: 1.12; color: var(--fg);
}
.statement__lead .accent { color: var(--accent); }
.statement__body { margin-top: 26px; }
.statement__body p { color: var(--fg-soft); font-size: 1.05rem; max-width: 52ch; }
.statement__body .btn { margin-top: 30px; }

/* ---------- stats / snapshot ---------- */
.snapshot__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.snapshot__head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.snapshot__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-top: 8px;
}
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 40px 0; border-bottom: 1px solid var(--border-soft);
}
@media (min-width: 760px) {
  .stat { padding: 56px 28px 40px 0; border-right: 1px solid var(--border-soft); }
  .stat:nth-child(4n) { border-right: 0; padding-right: 0; }
}
.stat__num {
  font-family: var(--serif); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--cobalt);
}
.stat__num span { color: var(--accent); }
.stat__label { margin-top: 14px; font-size: 14px; color: var(--fg-soft); line-height: 1.45; max-width: 24ch; }

/* ---------- cards / services ---------- */
.section-head { max-width: 60ch; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
.section-head p { margin-top: 22px; color: var(--fg-soft); font-size: 1.08rem; max-width: 56ch; }

.cards {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: 4px;
  padding: 34px 30px; display: flex; flex-direction: column;
  box-shadow: 0 4px 24px -4px rgba(19,41,75,0.07);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover { box-shadow: 0 12px 40px -8px rgba(19,41,75,0.16); transform: translateY(-4px); }
.card__idx { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.card__title { font-size: 1.55rem; font-weight: 800; margin-top: 18px; line-height: 1.08; }
.card__text { margin-top: 14px; color: var(--fg-soft); font-size: 1rem; flex: 1; }
.card__tag { margin-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* work / spotlight cards with image */
.work-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work {
  border: 1px solid var(--border-soft); border-radius: 4px; overflow: hidden; background: #fff;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.work:hover { box-shadow: 0 16px 44px -10px rgba(19,41,75,0.18); transform: translateY(-4px); }
.work__media { aspect-ratio: 16 / 10; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .work__media img { transform: scale(1.05); }
.work__body { padding: 28px 28px 32px; }
.work__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.work__title { font-size: 1.6rem; font-weight: 800; margin-top: 12px; line-height: 1.08; }
.work__text { margin-top: 12px; color: var(--fg-soft); font-size: 1rem; }
.work__foot { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- manifesto (dark band) ---------- */
.manifesto { background: var(--fg); color: var(--bg); }
.manifesto .eyebrow { color: var(--mustard); }
.manifesto .eyebrow::before { background: var(--mustard); }
.manifesto__quote {
  font-family: var(--serif); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.12;
  max-width: 18ch; margin: 0 auto; text-align: center;
}
.manifesto__quote em { font-style: normal; color: var(--mustard); }
.manifesto__mark {
  font-family: var(--serif); font-size: clamp(5rem, 14vw, 11rem); line-height: 0.6;
  color: var(--accent); text-align: center; height: 0.5em; display: block;
}
.manifesto__by { margin-top: 44px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.55); }

/* ---------- events / list ---------- */
.list-rows { border-top: 1px solid var(--border); }
.row {
  display: grid; gap: 12px; padding: 34px 0;
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: 1fr;
  transition: background .3s;
}
@media (min-width: 820px) {
  .row { grid-template-columns: 140px 1fr 200px auto; align-items: center; gap: 28px; }
}
.row:hover { background: rgba(28,83,166,0.03); }
.row__date { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .02em; }
.row__title { font-family: var(--serif); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }
.row__where { font-size: 14px; color: var(--fg-soft); }
.row__act { font-family: var(--mono); font-size: 12px; }

/* ---------- testimonial ---------- */
.quote-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote-card {
  background: var(--bg-alt); border-radius: 4px; padding: 38px 34px;
  display: flex; flex-direction: column;
}
.quote-card p { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.32; letter-spacing: -0.01em; }
.quote-card__foot { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; color: #fff; font-size: 15px; flex: none;
}
.quote-card__name { font-weight: 600; font-size: 15px; }
.quote-card__role { font-size: 13px; color: var(--muted); }

/* ---------- team / principles (text cards) ---------- */
.people { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); }
@media (min-width: 700px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--bg); padding: 34px 30px; }
.person__head { display: flex; align-items: center; gap: 14px; }
.person__name { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; }
.person__role { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.person__bio { margin-top: 18px; color: var(--fg-soft); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: #fff; }
.cta__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.cta .eyebrow { color: rgba(255,255,255,.85); }
.cta .eyebrow::before { background: rgba(255,255,255,.85); }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.02; }
.cta p { margin-top: 22px; font-size: 1.1rem; color: rgba(255,255,255,.9); }
.cta__row { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: var(--fg); color: #fff; }

/* ---------- forms ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; } }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 16px; font: inherit; font-size: 15px;
  background: #fff; color: var(--fg);
  border: 1px solid var(--border); border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(28,83,166,0.12);
}
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.info-block { margin-bottom: 34px; }
.info-block h3 { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.info-block p { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.6; }
.info-block a:hover { color: var(--accent); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border-soft); padding: 8px 0; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  text-align: left; padding: 26px 0; font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); letter-spacing: -0.015em;
}
.faq__q span.sign { font-family: var(--mono); font-weight: 400; color: var(--accent); font-size: 1.4rem; flex: none; transition: transform .3s var(--ease); }
.faq__item[data-open="true"] .faq__q span.sign { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 0 28px; color: var(--fg-soft); max-width: 70ch; font-size: 1.02rem; }

/* ---------- legal ---------- */
.legal { padding-top: 64px; }
.legal__wrap { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 16px; }
.legal .lead { color: var(--muted); font-family: var(--mono); font-size: 13px; margin-bottom: 48px; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; font-family: var(--serif); }
.legal p, .legal li { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--fg); color: rgba(255,255,255,.7); padding: 80px 0 40px; }
.footer__top { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer .brand { color: #fff; }
.footer__tag { margin-top: 22px; max-width: 38ch; color: rgba(255,255,255,.6); font-size: 1rem; }
.footer__col h4 { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,.72); font-size: 14.5px; margin-bottom: 12px; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.footer__bottom a:hover { color: #fff; }

/* ---------- reveal ---------- */
.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; }
}

/* ---------- 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(8,16,34,0.45); 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-radius: 6px; box-shadow: 0 24px 70px -12px rgba(8,16,34,0.5); border: 1px solid var(--border-soft); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 14px; color: var(--fg-soft); line-height: 1.6; }
.cookie-popup__card p a { color: var(--cobalt); text-decoration: underline; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; border-radius: 9999px; transition: background .2s, color .2s; }
.cookie-popup__actions button:first-child:hover { background: var(--bg-alt); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- misc ---------- */
.page-hero { padding: clamp(120px, 18vw, 200px) 0 clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--border-soft); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.96; max-width: 18ch; }
.page-hero p { margin-top: 28px; max-width: 56ch; font-size: 1.18rem; color: var(--fg-soft); line-height: 1.6; }
.tape { background: var(--mustard); color: var(--fg); overflow: hidden; padding: 14px 0; }
.tape__track { display: flex; gap: 48px; white-space: nowrap; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; animation: tape 28s linear infinite; }
.tape__track span { display: inline-flex; align-items: center; gap: 48px; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
