/* palette: bg=#E5E3DD fg=#171614 accent=#E5531D */
/* fonts: display="Archivo" body="Inter" mono="Fira Code" */

:root {
  --bg: #E5E3DD;        /* light warm-grey, industrial paper */
  --bg-alt: #D7D4CD;    /* alternating section band */
  --panel: #EFEEEA;     /* raised card surface */
  --fg: #171614;        /* near-black charcoal */
  --fg-soft: #33312C;   /* softened foreground */
  --muted: #6E6B63;     /* secondary text */
  --accent: #E5531D;    /* Braun industrial orange */
  --accent-deep: #BE3F0E; /* darker accent for hover */
  --border: rgba(23, 22, 20, 0.14);
  --border-soft: rgba(23, 22, 20, 0.08);
  --serif: 'Archivo', ui-sans-serif, system-ui, 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);
  --maxw: 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: 18px;
  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 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; line-height: 1.06; }
p { margin: 0 0 1.2em; }

.container { 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;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .muted { color: rgba(229, 227, 221, 0.62); }

.muted { color: var(--muted); }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.6; color: var(--fg-soft); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.section--dark .btn--ghost { color: var(--bg); border-color: rgba(229,227,221,0.4); }
.section--dark .btn--ghost:hover { background: var(--accent); border-color: var(--accent); }

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(229, 227, 221, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 20px -8px rgba(0,0,0,0.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 14px; height: 14px;
  background: var(--accent);
  display: inline-block;
}
.nav { display: none; gap: 34px; }
.nav a {
  font-size: 14px;
  color: var(--fg-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s 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: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
}
.menu-toggle span { width: 22px; height: 2px; 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(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); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 70px 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.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-size: 34px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.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;
  filter: grayscale(0.15) contrast(1.02);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(229,227,221,0.97) 0%, rgba(229,227,221,0.90) 42%, rgba(229,227,221,0.42) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 1; padding: 120px 0 80px; width: 100%; }
.hero__grid-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 15ch;
  margin: 0 0 32px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { max-width: 540px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--fg-soft); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.hero__stat { background: var(--bg); padding: 22px 20px; }
.hero__stat b { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; display: block; letter-spacing: -0.02em; }
.hero__stat span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
@media (min-width: 768px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Grid feature/services ---------- */
.grid-head { display: grid; gap: 24px; margin-bottom: 60px; }
.grid-head h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 400; }
@media (min-width: 900px) {
  .grid-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

.cards { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: background 0.35s var(--ease);
}
.card:hover { background: var(--panel); }
.card__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 26px; }
.card h3 { font-size: 1.55rem; font-weight: 500; margin-bottom: 14px; letter-spacing: -0.02em; }
.card p { font-size: 15.5px; line-height: 1.68; color: var(--muted); margin: 0; }
.card__tail { margin-top: auto; padding-top: 26px; }

/* ---------- Split product band ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--rev .split__media { order: 2; } }
.split__media { position: relative; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 400; margin-bottom: 22px; }
.split .lede { margin-bottom: 26px; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.spec-list li {
  display: grid; grid-template-columns: 30px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 15.5px; color: var(--fg-soft);
}
.spec-list li span:first-child { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* ---------- Manifesto / pull quote ---------- */
.manifesto { text-align: left; }
.manifesto__mark { font-family: var(--serif); font-size: 6rem; line-height: 0.6; color: var(--accent); display: block; margin-bottom: 10px; }
.manifesto p.statement {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 960px;
  margin: 0;
}
.manifesto p.statement em { font-style: normal; color: var(--accent); }
.manifesto__by { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 40px; color: var(--muted); }

/* ---------- Essay / longform ---------- */
.essay { max-width: 760px; }
.essay p { font-size: 19px; line-height: 1.8; color: var(--fg-soft); }
.essay p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 4.6rem; line-height: 0.72;
  padding: 8px 14px 0 0; color: var(--accent); font-weight: 500;
}
.essay h3 { font-size: 1.8rem; font-weight: 500; margin: 48px 0 16px; }

/* ---------- Numbered process ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg); padding: 36px 28px; }
.step b { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; color: var(--accent); display: block; margin-bottom: 18px; letter-spacing: -0.03em; }
.step h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; font-family: var(--sans); letter-spacing: 0; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 30px;
}
.quote-band blockquote em { font-style: normal; color: var(--accent); }
.quote-band cite { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(229,227,221,0.6); }

/* ---------- Stats band ---------- */
.statband { display: grid; gap: 1px; background: rgba(229,227,221,0.16); border: 1px solid rgba(229,227,221,0.16); }
@media (min-width: 768px) { .statband { grid-template-columns: repeat(3, 1fr); } }
.statband__i { background: var(--fg); padding: 40px 30px; }
.statband__i b { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; display: block; letter-spacing: -0.02em; }
.statband__i span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(229,227,221,0.6); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 28px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 30px; color: var(--muted); font-size: 16px; max-width: 70ch; margin: 0; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 300; margin-bottom: 26px; letter-spacing: -0.03em; }
.cta-final h2 em { font-style: normal; color: var(--accent); }
.cta-final .hero__actions { justify-content: center; }

/* ---------- Form ---------- */
.form-wrap { display: grid; gap: 56px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1fr; gap: 80px; } }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-detail { border-top: 1px solid var(--border); }
.contact-detail dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding-top: 22px; }
.contact-detail dd { margin: 4px 0 22px; font-size: 17px; border-bottom: 1px solid var(--border); padding-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: 80px 0 40px; }
.footer__top { display: grid; gap: 46px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.footer__brand .brand__mark { background: var(--accent); }
.footer p { color: rgba(229,227,221,0.6); font-size: 15px; max-width: 34ch; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(229,227,221,0.5); font-weight: 400; margin-bottom: 20px; }
.footer__col a { display: block; padding: 7px 0; color: rgba(229,227,221,0.82); font-size: 15px; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(229,227,221,0.16);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(229,227,221,0.5);
}
.footer__bottom a { color: rgba(229,227,221,0.5); }
.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; transition: none; }
  .hero__bg img { animation: none; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position:fixed; inset:0; z-index:9999; display:flex; align-items:flex-end; padding:24px; background:rgba(23,22,20,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:1px solid var(--border); border-radius:4px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4); }
.cookie-popup__label { font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.14em; color:var(--accent); margin-bottom:12px; }
.cookie-popup__card h3 { font-size:1.4rem; font-weight:500; margin-bottom:12px; }
.cookie-popup__card p { font-size:14px; 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:14px; font-weight:600; transition: background 0.25s var(--ease), color 0.25s 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); border-color: var(--accent); color:#fff; }

/* ---------- Legal / longform pages ---------- */
.page-head { padding: clamp(120px, 16vw, 200px) 0 clamp(50px, 7vw, 90px); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 400; max-width: 16ch; }
.legal { max-width: 800px; }
.legal h2 { font-size: 1.7rem; font-weight: 500; margin: 46px 0 14px; }
.legal h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--sans); margin: 30px 0 10px; }
.legal p, .legal li { font-size: 16px; color: var(--fg-soft); line-height: 1.75; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 40px; }

/* thanks */
.thanks { min-height: 74vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 620px; margin: 0 auto; }
.thanks h1 { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 300; margin-bottom: 22px; }
.thanks h1 em { font-style: normal; color: var(--accent); }
