/* palette: bg=#0C0A09 fg=#F5EFE7 accent=#E0953E */
/* fonts: display="Fraunces" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #0C0A09;
  --bg-alt: #15110C;
  --bg-card: #1A150F;
  --fg: #F5EFE7;
  --fg-soft: #D7CDBF;
  --muted: #938A7C;
  --accent: #E0953E;
  --accent-deep: #C47A2A;
  --line: rgba(245, 239, 231, 0.12);
  --line-soft: rgba(245, 239, 231, 0.07);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
}

*, *::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-weight: 400; margin: 0; }
p { margin: 0; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.eyebrow--muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid transparent;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #1A0F03; }
.btn--primary:hover { background: var(--fg); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

.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-soft);
  transition: gap 0.4s var(--ease), color 0.4s var(--ease);
}
.arrow-link:hover { gap: 14px; color: var(--accent); }
.arrow-link span { transition: transform 0.4s var(--ease); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 9, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 40px -16px rgba(0, 0, 0, 0.7);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-deep) 70%, #5a3410);
  flex-shrink: 0;
}
.brand__name { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; }
.nav { display: none; gap: 34px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-size: 14px;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--accent); transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--fg); }
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px; width: 30px; height: 30px;
  align-items: center; justify-content: center;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: transform 0.35s var(--ease), opacity 0.2s 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: 70px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: 30px; padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(48px, 9vh, 110px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,9,0.55) 0%, rgba(12,10,9,0.25) 35%, rgba(12,10,9,0.82) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 880px; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub {
  margin-top: 28px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-soft);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; right: 32px; bottom: 40px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: none;
}
@media (min-width: 768px) { .hero__scroll { display: block; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head .eyebrow { margin-bottom: 20px; }
.section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section h2 em { font-style: italic; color: var(--accent); }
.section__lead { margin-top: 24px; font-size: 19px; line-height: 1.75; color: var(--fg-soft); max-width: 620px; }

/* ---------- Intro / statement ---------- */
.statement { text-align: left; }
.statement p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 980px;
  color: var(--fg);
}
.statement p em { font-style: italic; color: var(--accent); }
.statement .muted-span { color: var(--muted); }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--bg);
  padding: clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: background 0.5s var(--ease);
}
.section--alt .svc { background: var(--bg-alt); }
.svc:hover { background: var(--bg-card); }
.svc__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.svc h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 28px; line-height: 1.1; }
.svc p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.svc__foot { margin-top: auto; padding-top: 26px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid; gap: 18px; padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 800px) { .step { grid-template-columns: 120px 1fr 1.2fr; gap: 40px; align-items: start; } }
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; padding-top: 6px; }
.step h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; }
.step p { color: var(--fg-soft); font-size: 17px; line-height: 1.75; }

/* ---------- Dark/inverted manifesto band ---------- */
.band {
  background: var(--accent);
  color: #1A0F03;
  padding: clamp(90px, 13vw, 180px) 0;
}
.band__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 1000px;
}
.band__mark { font-family: var(--serif); font-size: clamp(5rem, 12vw, 11rem); line-height: 0.5; display: block; height: 0.5em; opacity: 0.55; }
.band__cite { margin-top: 36px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Work / cases ---------- */
.cases { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 800px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { display: block; }
.case__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--bg-card); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.case:hover .case__media img { transform: scale(1.06); }
.case__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 22px; display: block; }
.case h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 12px; line-height: 1.1; }
.case p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(36px, 5vw, 56px) 28px; }
.section--alt .stat { background: var(--bg-alt); }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: -0.02em; line-height: 1; }
.stat__num em { font-style: normal; color: var(--accent); font-size: 0.55em; }
.stat__label { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Logos / trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.trust span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Values / about list ---------- */
.values { display: grid; gap: 0; }
.value { padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line-soft); }
.value:last-child { border-bottom: 1px solid var(--line-soft); }
@media (min-width: 800px) { .value { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 48px; align-items: baseline; } }
.value h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.value p { color: var(--fg-soft); font-size: 17px; line-height: 1.75; }

/* ---------- Team (text-only / monogram) ---------- */
.team { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--bg-alt); padding: clamp(28px, 3.5vw, 40px); }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; color: #1A0F03; font-weight: 500;
}
.member h3 { font-family: var(--serif); font-size: 1.4rem; margin-top: 24px; }
.member__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.member p { color: var(--muted); font-size: 15px; margin-top: 16px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq__item { border-top: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 28px 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.25;
}
.faq__q span.ico { flex-shrink: 0; width: 22px; height: 22px; position: relative; transition: transform 0.4s var(--ease); }
.faq__q span.ico::before, .faq__q span.ico::after { content: ""; position: absolute; background: var(--accent); transition: opacity 0.3s var(--ease); }
.faq__q span.ico::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq__q span.ico::after { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq__item[data-open="true"] .faq__q span.ico::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__a p { padding-bottom: 28px; color: var(--fg-soft); font-size: 17px; line-height: 1.8; max-width: 700px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.025em; }
.cta h2 em { font-style: italic; color: var(--accent); }
.cta p { margin: 28px auto 0; max-width: 540px; color: var(--fg-soft); font-size: 18px; }
.cta__actions { margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-info dl { margin: 0; display: grid; gap: 28px; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.contact-info dd { margin: 8px 0 0; font-size: 18px; color: var(--fg-soft); line-height: 1.6; }
.contact-info dd a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.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 {
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--fg);
  padding: 15px 16px; font-family: var(--sans); font-size: 16px; border-radius: 4px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(60px, 9vw, 120px) 0; }
.legal__wrap { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.02; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 18px; letter-spacing: 0.06em; }
.legal h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 56px; margin-bottom: 16px; }
.legal h3 { font-family: var(--serif); font-size: 1.3rem; margin-top: 32px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 17px; line-height: 1.8; }
.legal p { margin-top: 16px; }
.legal ul { margin: 16px 0 0; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Thank you ---------- */
.thanks { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -0.025em; line-height: 1; }
.thanks h1 em { font-style: italic; color: var(--accent); }
.thanks p { margin-top: 26px; color: var(--fg-soft); font-size: 19px; }
.thanks .btn { margin-top: 38px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding: clamp(60px, 8vw, 100px) 0 40px; }
.footer__top { display: grid; gap: 48px; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .brand { margin-bottom: 22px; }
.footer__tag { color: var(--muted); font-size: 16px; max-width: 320px; line-height: 1.7; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a { color: var(--fg-soft); font-size: 15px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
}
.footer__bottom p, .footer__bottom a { font-size: 13px; color: var(--muted); }
.footer__bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- 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; }
  .hero__bg img { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 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(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-card); border: 1px solid var(--line); padding: 32px 36px; max-width: 480px; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cookie-popup__card h3 { font-family: var(--serif); font-size: 1.5rem; margin-top: 14px; }
.cookie-popup__card p { margin-top: 14px; font-size: 14.5px; line-height: 1.65; color: var(--fg-soft); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 24px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; border-radius: 9999px; transition: all 0.3s var(--ease); flex: 1; }
.cookie-popup__actions button:hover { border-color: var(--accent); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #1A0F03; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--fg); border-color: var(--fg); }

::selection { background: var(--accent); color: #1A0F03; }
