/* palette: bg=#141414 fg=#F4F2EC accent=#E2571F */
/* fonts: display="Archivo" body="Inter" mono="Fira Code" */

:root {
  --bg: #141414;          /* dark base — hero, footer, dark bands */
  --bg-2: #1C1C1A;        /* raised dark surface */
  --bg-alt: #EDEBE3;      /* light industrial grey section */
  --bg-alt-2: #E2DFD4;    /* light section, deeper */
  --fg: #F4F2EC;          /* primary text on dark */
  --fg-soft: #CFCCC3;     /* softened light text */
  --muted: #8C897F;       /* secondary text */
  --ink: #16150F;         /* primary text on light */
  --ink-soft: #45433B;    /* softened dark text on light */
  --accent: #E2571F;      /* Braun rust-orange accent */
  --accent-deep: #C4491A; /* hover accent */
  --panel-green: #1F3B33; /* case-study panel */
  --panel-blue: #17232E;  /* case-study panel */
  --panel-clay: #2A1A12;  /* case-study panel */
  --border: rgba(244, 242, 236, 0.14);
  --border-dk: rgba(22, 21, 15, 0.14);
  --serif: 'Archivo', ui-sans-serif, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Fira Code', ui-monospace, 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);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  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 { margin: 0; font-family: var(--serif); font-weight: 300; }
p { margin: 0; }

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

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--light { background: var(--bg-alt); color: var(--ink); }
.section--light-2 { background: var(--bg-alt-2); color: var(--ink); }

.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;
}
@media (min-width: 768px) { .eyebrow { font-size: 12px; } }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; line-height: 1.02; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.75; color: var(--fg-soft); max-width: 46ch; }
.section--light .lead, .section--light-2 .lead { color: var(--ink-soft); }
em { font-style: italic; color: var(--accent); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  background: rgba(20, 20, 20, 0.92);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.brand sup { font-size: 0.55em; color: var(--accent); top: -0.55em; }
.nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav__clock {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.header__cta {
  display: none;
  padding: 9px 20px;
  border-radius: 9999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
@media (min-width: 900px) { .header__cta { display: inline-block; } }
.header__cta:hover { background: var(--accent); color: var(--fg); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9999px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 16px; height: 1.5px; background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s 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: 68px 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.mobile-menu .header__cta { display: inline-block; margin-top: 24px; align-self: flex-start; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(40px, 8vw, 80px);
  padding-bottom: 0;
  overflow: hidden;
}
.hero__top { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { margin-bottom: clamp(20px, 4vw, 40px); }
.hero h1 {
  font-size: clamp(3.1rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 300;
  max-width: 16ch;
}
.hero__grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 6vw, 72px);
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; }
}
.hero__cta-circle {
  width: 168px;
  height: 168px;
  border-radius: 9999px;
  border: 1px dashed rgba(244,242,236,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  color: var(--fg);
  background: rgba(226,87,31,0.14);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hero__cta-circle:hover { background: var(--accent); transform: scale(1.04); border-color: var(--accent); }
.hero__notes { display: grid; gap: 28px; }
@media (min-width: 560px) { .hero__notes { grid-template-columns: 1fr 1fr; } }
.note {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.note::before { content: "["; color: var(--accent); font-family: var(--mono); }
.hero__bar {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: grid;
  gap: 14px;
  align-items: center;
}
@media (min-width: 768px) { .hero__bar { grid-template-columns: 1fr auto auto; } }
.hero__bar-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-soft);
  max-width: 22ch; line-height: 1.4;
}
.hero__bar-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero__bar-meta strong { color: var(--fg); font-weight: 500; }
.dotmark { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; flex-shrink: 0; }
.dotmark span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.dotmark span:nth-child(2), .dotmark span:nth-child(6), .dotmark span:nth-child(7) { background: var(--accent); }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
}
.manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.4;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
  height: 0.5em;
}
.manifesto__by {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- services (tight rams grid) ---------- */
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}
.services-grid {
  display: grid;
  border-top: 1px solid var(--border-dk);
}
.service {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--border-dk);
  align-items: start;
}
@media (min-width: 768px) {
  .service { grid-template-columns: 64px 1fr 1.3fr; gap: 32px; align-items: baseline; }
}
.service__num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.service__title { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.08; }
.service__desc { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border-dk);
  border-radius: 9999px;
  color: var(--ink-soft);
}

/* ---------- selected work: full-bleed colored panels ---------- */
.work { padding: 0; }
.panel {
  padding: clamp(64px, 10vw, 128px) 0;
  color: var(--fg);
  overflow: hidden;
}
.panel--green { background: var(--panel-green); }
.panel--blue { background: var(--panel-blue); }
.panel--clay { background: var(--panel-clay); }
.panel__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .panel__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.panel__index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: rgba(244,242,236,0.55); text-transform: uppercase; }
.panel h3 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 18px 0 28px;
}
.panel__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.panel__tags .tag { color: var(--fg-soft); border-color: var(--border); }
.panel__tags .tag--accent { background: var(--accent); color: var(--fg); border-color: var(--accent); }
.panel__note {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-soft);
  max-width: 40ch;
}
.panel__note::before { content: "["; color: var(--accent); font-family: var(--mono); }
.panel__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}
.panel__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- process ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--border-dk); }
.step {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--border-dk);
}
@media (min-width: 768px) { .step { grid-template-columns: 120px 1fr 1.4fr; gap: 32px; align-items: baseline; } }
.step__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--accent); line-height: 1; font-weight: 300; }
.step__title { font-size: clamp(1.35rem, 2.5vw, 1.9rem); letter-spacing: -0.02em; }
.step__desc { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 40px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--border); padding-top: 22px; }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.stat__num em { color: var(--accent); }
.stat__label { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- principles (text-only cards) ---------- */
.principles { display: grid; gap: 1px; background: var(--border-dk); border: 1px solid var(--border-dk); }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle {
  background: var(--bg-alt);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.principle__k { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.principle h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
.principle p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* ---------- team (monogram, no faces) ---------- */
.team-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member {
  border: 1px solid var(--border-dk);
  padding: 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.avatar--mono {
  width: 68px; height: 68px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
  color: var(--fg); border-radius: 4px; letter-spacing: -0.02em;
}
.member h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.member__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.member p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ---------- CTA ---------- */
.cta { text-align: left; }
.cta__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.cta h2 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; }
.cta__aside { display: grid; gap: 28px; align-content: start; }
.contact-line { border-top: 1px solid var(--border); padding-top: 16px; }
.contact-line span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-line a, .contact-line p { font-size: 1.05rem; color: var(--fg); }

/* ---------- form ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { -webkit-appearance: none; appearance: none; }
.field select option { background: var(--bg); color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  justify-self: start;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.section--light .btn--ghost, .section--light-2 .btn--ghost { border-color: var(--border-dk); color: var(--ink); }
.section--light .btn--ghost:hover, .section--light-2 .btn--ghost:hover { background: var(--ink); color: var(--bg-alt); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.arrow-link:hover { gap: 14px; border-bottom-color: var(--accent); }
.section--light .arrow-link { color: var(--ink); border-color: var(--border-dk); }

/* ---------- footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; gap: 48px; margin-bottom: 72px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.footer__brand h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.01em; }
.footer__brand sup { font-size: 0.5em; color: var(--accent); }
.footer__tag { margin-top: 18px; color: var(--fg-soft); max-width: 34ch; font-size: 15px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a { font-size: 15px; color: var(--fg-soft); transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__col p { font-size: 14px; color: var(--fg-soft); line-height: 1.6; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: grid;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 768px) { .footer__bottom { grid-template-columns: 1fr auto; align-items: center; } }
.footer__bottom a:hover { color: var(--fg); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(60px, 9vw, 110px); }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 300; max-width: 15ch; }
.page-hero .lead { margin-top: 32px; }

/* ---------- prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; margin: 56px 0 18px; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 32px 0 12px; }
.prose p { color: var(--fg-soft); margin-bottom: 18px; font-size: 16px; }
.prose ul { color: var(--fg-soft); padding-left: 20px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--border); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !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);-webkit-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-2);border:1px solid var(--border);padding:32px 36px;max-width:480px;border-radius:6px; }
.cookie-popup__label { font-family:var(--mono);font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:var(--accent);margin-bottom:14px; }
.cookie-popup__card h3 { font-family:var(--serif);font-weight:400;font-size:1.35rem;margin-bottom:12px;letter-spacing:-0.01em; }
.cookie-popup__card p { font-size:14px;color:var(--fg-soft);line-height:1.65; }
.cookie-popup__card p a { color:var(--accent); }
.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 0.2s var(--ease),color 0.2s var(--ease); }
.cookie-popup__actions button:first-child:hover { border-color:var(--fg); }
.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);color:var(--fg);border-color:var(--accent); }

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
