/* palette: bg=#FCFBF8 fg=#141312 accent=#E2231A */
/* fonts: display="Fraunces" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #FCFBF8;          /* near-white De Stijl canvas */
  --bg-alt: #F2EFE6;      /* alternating section background */
  --fg: #141312;          /* primary text / black lines */
  --fg-soft: #2C2A27;     /* slightly lighter fg */
  --muted: #6B675F;       /* secondary text */
  --accent: #E2231A;      /* De Stijl red */
  --accent-deep: #B5160E; /* darker red for hover */
  --blue: #1742B0;        /* De Stijl blue block */
  --yellow: #F4C20D;      /* De Stijl yellow block */
  --line: #141312;        /* thick architectural border */
  --border: rgba(20, 19, 18, 0.14);
  --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: 1280px;
}

*, *::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; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- layout helpers ---------- */
.container { 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; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 28px;
  display: inline-block;
}
.rule { height: 2px; background: var(--line); width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); }
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 2px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header[data-scrolled="true"] { box-shadow: 0 6px 24px -12px rgba(20,19,18,0.35); }
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 16px; height: 16px;
  background: var(--accent);
  display: inline-block;
}
.nav { display: none; gap: 34px; }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header__cta { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

/* hamburger */
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 2px solid var(--line); background: var(--bg);
}
.menu-toggle span { width: 18px; 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); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
  padding: 40px 24px;
  border-top: 2px solid var(--line);
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 30px;
  padding: 16px 0;
  border-bottom: 2px solid var(--border);
}
.mobile-menu .btn { margin-top: 28px; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}
.hero__blocks { position: absolute; inset: 0; pointer-events: none; }
.hero__blocks span { position: absolute; display: block; }
.b-red   { width: 220px; height: 220px; background: var(--accent); top: 14%; right: 8%; opacity: .92; animation: floaty 9s var(--ease) infinite alternate; }
.b-blue  { width: 130px; height: 320px; background: var(--blue); bottom: -40px; left: 6%; opacity: .9; }
.b-yellow{ width: 160px; height: 110px; background: var(--yellow); top: 22%; left: 12%; animation: floaty 11s var(--ease) infinite alternate-reverse; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(26px); } }
.hero__inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; text-align: center; padding: 120px 0; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub {
  max-width: 560px; margin: 32px auto 0;
  font-size: 19px; color: var(--fg-soft); line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- featured work ---------- */
.work__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.work__grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 768px) { .work__grid { grid-template-columns: repeat(6, 1fr); } }
.case {
  border: 2px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: 0 18px 44px -16px rgba(20,19,18,0.3); }
@media (min-width: 768px) {
  .case--lg { grid-column: span 4; }
  .case--sm { grid-column: span 2; }
  .case--half { grid-column: span 3; }
}
.case__media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--line); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case__media img { transform: scale(1.06); }
.case__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case__tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
}
.case h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.case p { color: var(--muted); font-size: 15px; }
.case .link-arrow { margin-top: auto; }

/* ---------- expertise / accordion split ---------- */
.expertise__grid { display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .expertise__grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; } }
.expertise h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.expertise__lead { color: var(--fg-soft); margin: 24px 0 32px; max-width: 420px; }
.acc__item { border-top: 2px solid var(--line); }
.acc__item:last-child { border-bottom: 2px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 26px 0; text-align: left;
}
.acc__icon { width: 30px; height: 30px; flex: none; color: var(--fg); }
.acc__title { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); flex: 1; }
.acc__chev { transition: transform .35s var(--ease); flex: none; }
.acc__item[data-open="true"] .acc__chev { transform: rotate(180deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc__item[data-open="true"] .acc__panel { max-height: 420px; }
.acc__inner { padding: 0 0 30px 48px; }
.acc__inner p { color: var(--muted); margin-bottom: 18px; }
.acc__inc { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg); margin-bottom: 10px; }
.acc__list { list-style: none; padding: 0; margin: 0; font-family: var(--serif); font-size: 17px; }
.acc__list li { padding: 4px 0; color: var(--fg-soft); }

/* ---------- manifesto (dark band) ---------- */
.manifesto {
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.manifesto p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 0 auto;
}
.manifesto p em { font-style: italic; color: var(--yellow); }
.manifesto .quote-mark { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); color: var(--accent); line-height: 0.5; display: block; margin-bottom: 10px; }

/* ---------- process ---------- */
.process { background: var(--bg-alt); }
.process__grid { display: grid; gap: 2px; grid-template-columns: 1fr; margin-top: 56px; background: var(--line); border: 2px solid var(--line); }
@media (min-width: 768px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process__grid { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg-alt); padding: 36px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- stats ---------- */
.stats__grid { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; background: var(--line); border: 2px solid var(--line); }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 40px 24px; text-align: center; }
.stat__n { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.stat__l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 10px; }
.stat:nth-child(2) .stat__n { color: var(--accent); }
.stat:nth-child(3) .stat__n { color: var(--blue); }

/* ---------- testimonial ---------- */
.quote { text-align: center; }
.quote blockquote {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.3;
  max-width: 900px; margin: 0 auto; letter-spacing: -0.01em;
}
.quote cite { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 28px; }
.placeholder-note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); opacity: .6; text-transform: uppercase; margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta { background: var(--blue); color: #fff; border-top: 2px solid var(--line); }
.cta__grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; color: #fff; }
.cta h2 em { color: var(--yellow); font-style: italic; }
.cta p { margin-top: 20px; color: rgba(255,255,255,0.82); max-width: 440px; }
.cta .btn { border-color: #fff; color: #fff; background: transparent; }
.cta .btn:hover { background: #fff; color: var(--blue); }
.cta .btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta .btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px;
  border: 2px solid var(--line); background: var(--bg); color: var(--fg);
  border-radius: 0; transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form__consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }

/* ---------- contact info ---------- */
.info__grid { display: grid; gap: 2px; grid-template-columns: 1fr; background: var(--line); border: 2px solid var(--line); margin-top: 48px; }
@media (min-width: 768px) { .info__grid { grid-template-columns: repeat(3, 1fr); } }
.info__cell { background: var(--bg); padding: 32px 28px; }
.info__cell h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; }
.info__cell p { color: var(--fg-soft); font-size: 16px; line-height: 1.7; }

/* ---------- generic page intro ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(60px, 8vw, 100px); border-bottom: 2px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.98; font-weight: 300; letter-spacing: -0.03em; max-width: 14ch; }
.page-hero h1 em { color: var(--accent); font-style: italic; }
.page-hero__lead { margin-top: 28px; max-width: 560px; font-size: 19px; color: var(--fg-soft); }
.page-hero .deco { position: absolute; width: 180px; height: 180px; background: var(--yellow); right: 4%; top: 30%; opacity: .9; pointer-events: none; }

/* ---------- prose (legal) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 16px; }
.prose h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 16px; line-height: 1.8; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.prose__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- values / about grid ---------- */
.values__grid { display: grid; gap: 2px; grid-template-columns: 1fr; background: var(--line); border: 2px solid var(--line); margin-top: 56px; }
@media (min-width: 768px) { .values__grid { grid-template-columns: repeat(3, 1fr); } }
.value { background: var(--bg); padding: 40px 30px; }
.value__k { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.value h3 { font-size: 1.6rem; margin: 14px 0 12px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- team (monogram, no faces) ---------- */
.team__grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 56px; }
@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: 2px solid var(--line); padding: 28px; background: var(--bg); }
.avatar { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 20px; }
.member h3 { font-size: 1.4rem; }
.member__role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 4px 0 14px; }
.member p { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 860px; margin: 48px auto 0; }
.faq__item { border-top: 2px solid var(--line); }
.faq__item:last-child { border-bottom: 2px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.faq__q .acc__chev { transition: transform .35s var(--ease); }
.faq__item[data-open="true"] .acc__chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__item[data-open="true"] .faq__a { max-height: 320px; }
.faq__a p { padding-bottom: 26px; color: var(--muted); font-size: 16px; max-width: 70ch; }

/* ---------- footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: clamp(60px, 8vw, 100px) 0 40px; }
.footer__grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; } }
.footer__brand { font-family: var(--serif); font-size: 30px; display: inline-flex; align-items: center; gap: 12px; }
.footer__brand .brand__mark { background: var(--accent); width: 18px; height: 18px; }
.footer__tag { color: rgba(252,251,248,0.66); margin-top: 18px; max-width: 360px; font-size: 15px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(252,251,248,0.5); margin-bottom: 18px; font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: rgba(252,251,248,0.82); font-size: 15px; padding: 6px 0; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(252,251,248,0.16); font-size: 13px; color: rgba(252,251,248,0.55); }
.footer__bottom a { color: rgba(252,251,248,0.7); }
.footer__bottom a:hover { color: var(--yellow); }

/* ---------- 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; }
  .b-red, .b-yellow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 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(20,19,18,0.4); -webkit-backdrop-filter: blur(4px); 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: 2px solid var(--line); border-radius: 0; }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.cookie-popup h3 { font-size: 1.5rem; margin-bottom: 12px; }
.cookie-popup p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 11px 24px; border: 2px solid var(--line); cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; background: var(--bg); 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); }
