/* palette: bg=#F2EEE3 fg=#16130E accent=#E23B26 */
/* fonts: display="Jost" body="Work Sans" mono="Space Mono" */

:root {
  --bg: #F2EEE3;         /* off-white, dominant background */
  --bg-alt: #E7E1D1;     /* alternating section background */
  --fg: #16130E;         /* near-black primary text */
  --fg-soft: #37312A;    /* softened foreground */
  --muted: #6E675A;      /* secondary text */
  --accent: #E23B26;     /* Bauhaus red — primary accent / CTA */
  --accent-deep: #B22C1A;/* darker red for hover */
  --yellow: #F2B705;     /* Bauhaus yellow */
  --blue: #1B45A6;       /* Bauhaus blue */
  --paper: #FBF9F3;      /* card / raised surface */
  --border: rgba(22, 19, 14, 0.14);
  --border-strong: rgba(22, 19, 14, 0.9);
  --serif: 'Jost', ui-sans-serif, sans-serif;
  --sans: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space 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);
  font-size: 17px;
  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; }
p { margin: 0; }

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

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--yellow); }
.section--dark .eyebrow::before { background: var(--yellow); }

.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; color: var(--fg-soft); max-width: 60ch; }
.section--dark .lead { color: rgba(242, 238, 227, 0.82); }
em { font-style: italic; color: var(--accent); font-family: var(--serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid var(--fg);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s 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(242,238,227,.5); }
.section--dark .btn--ghost:hover { background: var(--yellow); border-color: var(--yellow); color: var(--fg); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--accent);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.arrow-link:hover { gap: 16px; color: var(--accent); }
.arrow-link span { transition: transform .3s var(--ease); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 238, 227, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1.5px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 8px 30px -18px rgba(0,0,0,.35);
  border-bottom-color: var(--border-strong);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.brand__mark {
  width: 30px; height: 30px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.brand__mark::before { content: ""; position: absolute; top: 0; right: 0; width: 15px; height: 15px; background: var(--yellow); }
.brand__mark::after { content: ""; position: absolute; bottom: 0; left: 0; width: 15px; height: 15px; background: var(--blue); }
.brand strong { font-weight: 500; }

.nav { display: none; align-items: center; gap: 34px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  position: relative;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent);
  transition: width .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__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 26px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .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); }

.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 34px;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  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) both; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,.35) 0%, rgba(10,8,6,.15) 40%, rgba(10,8,6,.78) 100%);
}
.hero__bars { position: absolute; top: 0; left: 0; z-index: 2; display: flex; }
.hero__bars span { width: 46px; height: 12px; }
.hero__bars span:nth-child(1){ background: var(--accent);} .hero__bars span:nth-child(2){ background: var(--yellow);} .hero__bars span:nth-child(3){ background: var(--blue);}
.hero__inner { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(60px, 10vw, 120px); padding-top: 120px; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--yellow); }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: 15ch;
}
.hero h1 em { color: var(--yellow); }
.hero__sub { margin-top: 28px; max-width: 48ch; font-size: clamp(1rem, 1.7vw, 1.2rem); color: rgba(255,255,255,.88); }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero__actions .btn--ghost:hover { background: #fff; color: var(--fg); }

/* ---------- Split / editorial ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media { position: relative; overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; bottom: -18px; left: -18px; width: 90px; height: 90px; background: var(--blue); z-index: -1;
}
.split__tag { position: absolute; top: 20px; left: 20px; background: var(--yellow); color: var(--fg); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; }
.split h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 26px; }
.split p + p { margin-top: 20px; }
.split__cta { margin-top: 34px; }

/* ---------- Section heading block ---------- */
.head-block { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.head-block h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; }
.head-block p { margin-top: 22px; }

/* ---------- Services / cards grid ---------- */
.grid { display: grid; gap: 1.5px; background: var(--border-strong); border: 1.5px solid var(--border-strong); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: 40px 34px 44px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.card:hover { background: var(--paper); }
.card__no { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.card__icon { width: 42px; height: 42px; margin: 26px 0 22px; }
.card h3 { font-size: 1.55rem; line-height: 1.12; margin-bottom: 14px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.card__foot { margin-top: auto; padding-top: 24px; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
}
.manifesto .mark { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: 0; color: var(--yellow); display: block; height: 0.5em; }
.manifesto .attrib { margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(242,238,227,.6); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.5px; background: var(--border); border: 1.5px solid var(--border); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 40px 30px; }
.section--alt .stat { background: var(--bg-alt); }
.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 span { color: var(--accent); }
.stat__label { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* ---------- Work / case list ---------- */
.work { display: grid; gap: 1.5px; background: var(--border-strong); border: 1.5px solid var(--border-strong); }
@media (min-width: 768px) { .work { grid-template-columns: repeat(2, 1fr); } }
.work__item { background: var(--bg); overflow: hidden; }
.work__media { overflow: hidden; aspect-ratio: 16/11; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work__item:hover .work__media img { transform: scale(1.05); }
.work__body { padding: 30px 32px 36px; }
.work__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.work__body h3 { font-size: 1.7rem; margin: 12px 0 12px; line-height: 1.1; }
.work__body p { color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1.5px solid var(--border-strong); }
.faq__item { border-bottom: 1.5px solid var(--border-strong); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 4px; text-align: left; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -0.01em;
}
.faq__q .sign { flex: none; width: 26px; height: 26px; position: relative; transition: transform .35s var(--ease); }
.faq__q .sign::before, .faq__q .sign::after { content: ""; position: absolute; background: var(--accent); }
.faq__q .sign::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq__q .sign::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: transform .35s var(--ease); }
.faq__item[data-open="true"] .sign::after { transform: translateX(-50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 4px 30px; color: var(--muted); max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; margin: 0 auto 30px; }
.cta-band .lead { margin: 0 auto 40px; text-align: center; }
.cta-band .btn { margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.info-list { list-style: none; padding: 0; margin: 34px 0 0; }
.info-list li { padding: 22px 0; border-top: 1.5px solid var(--border); display: grid; gap: 4px; }
.info-list .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.info-list .v { font-size: 17px; color: var(--fg-soft); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--fg); background: var(--paper);
  border: 1.5px solid var(--border-strong); padding: 14px 16px; border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { border-bottom: 1px solid var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { color: var(--bg); }
.footer__blurb { margin-top: 22px; color: rgba(242,238,227,.66); max-width: 40ch; font-size: 15.5px; }
.footer h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 20px; font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: rgba(242,238,227,.78); font-size: 15px; transition: color .3s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1.5px solid rgba(242,238,227,.16);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(242,238,227,.55); font-family: var(--mono); letter-spacing: .04em;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .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; }
  .hero__media img { animation: none; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(56px, 8vw, 90px); border-bottom: 1.5px solid var(--border-strong); position: relative; }
.page-hero::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 12px; background: var(--accent); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 300; max-width: 16ch; }
.page-hero h1 em { color: var(--accent); }
.page-hero .lead { margin-top: 28px; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 48px 0 16px; letter-spacing: -0.01em; }
.legal h3 { font-family: var(--serif); font-size: 1.25rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.8; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 16px 0; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------- Thanks ---------- */
.thanks { min-height: 72vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks .mark { width: 70px; height: 70px; margin: 0 auto 34px; background: var(--accent); position: relative; }
.thanks .mark::before { content: ""; position: absolute; top: 0; right: 0; width: 35px; height: 35px; background: var(--yellow); }
.thanks .mark::after { content: ""; position: absolute; bottom: 0; left: 0; width: 35px; height: 35px; background: var(--blue); }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 300; margin-bottom: 20px; }
.thanks p { color: var(--muted); margin-bottom: 34px; }

/* ---------- 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);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:1.5px solid var(--border-strong);border-radius:0; }
.cookie-popup__label { font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:14px; }
.cookie-popup__card h3 { font-size:1.5rem;margin-bottom:12px;letter-spacing:-0.01em; }
.cookie-popup__card p { font-size:14.5px;color:var(--muted);line-height:1.7; }
.cookie-popup__card p a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.cookie-popup__actions { display:flex;gap:12px;margin-top:22px; }
.cookie-popup__actions button { padding:11px 24px;border:1.5px solid var(--border-strong);cursor:pointer;font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;transition:background .3s var(--ease),color .3s var(--ease); }
.cookie-popup__actions button: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); color:#fff; }

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