/* palette: bg=#ECE8E2 fg=#1A1A18 accent=#E0A23E */
/* fonts: display="Fraunces" body="Inter" mono="JetBrains Mono" */

:root {
  --bg: #ECE8E2;            /* warm off-white page background (from reference hero) */
  --bg-alt: #E2DDD4;        /* alternating section background */
  --bg-dark: #1B1A17;       /* dark charcoal band / promo bar (from reference) */
  --fg: #1A1A18;            /* primary near-black text */
  --fg-soft: #34322D;       /* slightly lighter foreground */
  --muted: #6E6A61;         /* secondary text */
  --accent: #E0A23E;        /* amber/gold accent (the reference CTA pill) */
  --accent-deep: #C5852A;   /* darker amber for hover */
  --line: #1A1A18;
  --border: rgba(26, 26, 24, 0.14);
  --border-soft: rgba(26, 26, 24, 0.08);
  --border-dark: rgba(236, 232, 226, 0.16);

  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::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;
  -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: #1A1A18; }

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

.section { padding: clamp(72px, 12vw, 156px) 0; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }

.h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 340;
}
.h2 em { font-style: italic; color: var(--accent-deep); }

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 56ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn--accent { background: var(--accent); color: #1A1A18; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid currentColor; color: inherit; }
.btn--ghost:hover { transform: translateY(-2px); opacity: 0.7; }
.btn--ghost-light { border: 1px solid var(--border-dark); color: var(--bg); }
.btn--ghost-light:hover { background: rgba(236,232,226,0.08); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 0.3s var(--ease);
}
.arrow-link span { color: var(--accent-deep); transition: transform 0.3s var(--ease); }
.arrow-link:hover { gap: 14px; }

/* ---------- promo bar ---------- */
.promo {
  background: var(--bg-dark);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 9px 16px;
}
.promo strong { color: var(--accent); font-weight: 500; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  background: rgba(236, 232, 226, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.header[data-scrolled="true"] { box-shadow: 0 1px 0 var(--border-soft), 0 8px 30px -16px rgba(0,0,0,0.25); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  font-weight: 420;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand b { font-weight: 420; }
.brand i { font-style: italic; color: var(--accent-deep); }

.nav { display: none; gap: 34px; }
@media (min-width: 980px) { .nav { display: flex; } }
.nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent-deep);
  transition: width 0.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__actions { display: flex; align-items: center; gap: 16px; }
.header__cta { display: none; }
@media (min-width: 980px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 8px;
}
@media (min-width: 980px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.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 ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 96px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 360;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a em { font-style: italic; color: var(--accent-deep); }
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #F4F1EB;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,16,20,0.45) 0%, rgba(15,16,20,0.20) 45%, rgba(15,16,20,0.72) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(56px, 9vw, 110px);
  padding-top: 120px;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.78);
  margin-bottom: 26px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hero h1 {
  font-size: clamp(3.2rem, 9.5vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 320;
  max-width: 16ch;
  margin-bottom: 30px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: italic; font-weight: 340; color: var(--accent); }
.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  max-width: 50ch;
  color: rgba(244,241,235,0.88);
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- manifesto / dark band ---------- */
.band-dark {
  background: var(--bg-dark);
  color: #E9E5DD;
  position: relative;
  overflow: hidden;
}
.band-dark .eyebrow { color: rgba(233,229,221,0.6); }
.band-dark .manifesto {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 940px;
  margin: 28px auto 0;
  text-align: center;
}
.band-dark .manifesto em { font-style: italic; color: var(--accent); }
.band-dark .manifesto-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 8px;
}
.band-dark__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(224,162,62,0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- services grid ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
@media (min-width: 880px) {
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head--split .lead { margin-bottom: 6px; }
}

.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.svc {
  background: var(--bg);
  padding: clamp(30px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: background 0.4s var(--ease);
}
.svc:hover { background: var(--bg-alt); }
.svc__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.svc h3 { font-size: 1.55rem; line-height: 1.12; letter-spacing: -0.01em; font-weight: 380; }
.svc p { color: var(--muted); font-size: 0.97rem; line-height: 1.65; margin: 0; }
.svc .arrow-link { margin-top: auto; padding-top: 14px; }

/* ---------- work / case cards ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-grid .work:nth-child(3) { grid-column: 1 / -1; }

.work { display: flex; flex-direction: column; }
.work__media {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 11;
  background: var(--bg-alt);
}
.work:nth-child(3) .work__media { aspect-ratio: 21 / 9; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .work__media img { transform: scale(1.05); }
.work__meta { display: flex; gap: 12px; margin: 20px 0 8px; }
.work__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.work h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 360; }
.work p { color: var(--muted); font-size: 0.98rem; margin: 12px 0 16px; max-width: 54ch; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--bg);
  padding: 38px 28px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.step__no { font-family: var(--mono); font-size: 13px; color: var(--accent-deep); letter-spacing: 0.08em; }
.step h3 { font-size: 1.32rem; font-weight: 380; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-dark); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-dark); padding: 48px 26px; text-align: center; }
.stat__n { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; font-weight: 320; color: #F4F1EB; }
.stat__n em { font-style: italic; color: var(--accent); }
.stat__l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(233,229,221,0.6); margin-top: 14px; }

/* ---------- principles / team text cards ---------- */
.people { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--bg); padding: clamp(28px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #1A1A18;
}
.person h3 { font-size: 1.28rem; font-weight: 380; letter-spacing: -0.01em; }
.person .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: -8px; }
.person p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- testimonial ---------- */
.quote-wrap { max-width: 880px; margin: 0 auto; text-align: center; }
.quote {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.quote em { font-style: italic; color: var(--accent-deep); }
.quote-cite { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 30px; }
.quote-flag { font-size: 11px; color: var(--accent-deep); letter-spacing: 0.08em; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); padding: 26px 0; }
.faq__q { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 380; letter-spacing: -0.01em; display: flex; gap: 16px; }
.faq__q .mk { color: var(--accent-deep); font-family: var(--mono); font-size: 0.9rem; padding-top: 6px; }
.faq__a { color: var(--muted); font-size: 1rem; margin: 14px 0 0 34px; max-width: 64ch; }

/* ---------- CTA + form ---------- */
.cta-band { background: var(--bg-alt); }
.form-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (min-width: 920px) { .form-wrap { grid-template-columns: 1fr 1fr; } }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-deep); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { align-self: flex-start; margin-top: 6px; }

.contact-list { display: flex; flex-direction: column; gap: 26px; }
.contact-list .item { display: flex; flex-direction: column; gap: 4px; }
.contact-list .item .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list .item .v { font-size: 1.08rem; color: var(--fg); }
.contact-list .item .v a:hover { color: var(--accent-deep); }

/* ---------- footer ---------- */
.footer { background: var(--bg-dark); color: #D7D3CB; padding: clamp(60px, 8vw, 96px) 0 36px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer .brand { color: #F4F1EB; font-size: 1.7rem; }
.footer__tag { color: rgba(215,211,203,0.7); margin: 18px 0 0; max-width: 38ch; font-size: 0.98rem; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(215,211,203,0.55); font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 0.96rem; color: #D7D3CB; transition: color 0.25s var(--ease); }
.footer ul a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 26px;
  border-top: 1px solid var(--border-dark);
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(215,211,203,0.5);
}
@media (min-width: 720px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- legal / article pages ---------- */
.page-hero { padding: clamp(120px, 16vw, 180px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 330; max-width: 18ch; }
.page-hero h1 em { font-style: italic; color: var(--accent-deep); }
.page-hero .lead { margin-top: 22px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 14px; letter-spacing: -0.01em; font-weight: 380; }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin: 28px 0 8px; }
.prose p { color: var(--fg-soft); margin: 0 0 16px; }
.prose ul { color: var(--fg-soft); padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- thanks ---------- */
.thanks { min-height: 78vh; display: flex; align-items: center; }
.thanks__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 330; }
.thanks h1 em { font-style: italic; color: var(--accent-deep); }
.thanks p { color: var(--muted); margin: 22px auto 34px; max-width: 48ch; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg 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); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg); padding: 32px 36px; max-width: 480px; border-radius: 4px; box-shadow: 0 20px 60px -12px rgba(0,0,0,0.4); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 10px; letter-spacing: -0.01em; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 13px; letter-spacing: 0.04em; border-radius: 9999px; transition: background 0.25s, color 0.25s; }
.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-deep); border-color: var(--accent-deep); color: #1A1A18; }

/* ---------- misc ---------- */
.divider-label { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
