/* palette: bg=#EE2C0E fg=#0D0D0D accent=#FFD400 */
/* fonts: display="Archivo" body="Inter" mono="Space Mono" */

:root {
  --bg: #EE2C0E;          /* saturated red-orange field from reference */
  --bg-alt: #0D0D0D;      /* inverted dark band */
  --bg-cream: #F3EDE2;    /* light editorial panel */
  --fg: #0D0D0D;          /* primary black text */
  --fg-soft: #1c1c1c;
  --muted: rgba(13, 13, 13, 0.62);
  --muted-inv: rgba(243, 237, 226, 0.66);
  --accent: #FFD400;      /* pop yellow highlight */
  --accent-deep: #E6BE00;
  --on-dark: #F3EDE2;
  --border: rgba(13, 13, 13, 0.16);
  --border-dark: rgba(243, 237, 226, 0.16);
  --serif: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space 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);
  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; }
::selection { background: var(--fg); color: var(--bg); }

.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.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 44, 14, 0.86);
  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-bottom: 2px solid transparent;
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.9);
  border-bottom-color: var(--fg);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand sup { font-size: 9px; font-weight: 700; }
.nav { display: none; gap: 34px; align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity 0.25s var(--ease);
}
.nav a:hover { opacity: 0.55; }
.nav a.is-active { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (min-width: 900px) { .nav { display: flex; } }

.header__cta {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 20px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.header__cta:hover { transform: translateY(-2px); background: #000; }
@media (min-width: 900px) { .header__cta { display: inline-block; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 8px;
}
.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  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(7.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(-7.5px) rotate(-45deg); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 12vw, 4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.02;
  padding: 6px 0;
  border-bottom: 2px solid var(--fg);
}
.mobile-menu .mm-foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 0;
  padding-top: 24px;
}

/* ---------- Hero (flat poster) ---------- */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 0 32px;
  position: relative;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero__top span { max-width: 220px; display: block; }
.hero__top .right { text-align: right; }
.hero__mark {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.82;
  font-size: clamp(6rem, 30vw, 24rem);
  margin: 0;
  display: flex;
  align-items: flex-start;
  animation: heroIn 1s var(--ease) both;
}
.hero__mark sup { font-size: 0.14em; font-weight: 700; margin-top: 0.3em; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__caption {
  text-align: center;
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(1.1rem, 3.4vw, 2.1rem);
  max-width: 780px;
  margin: 0 auto;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  display: none;
}
@media (min-width: 768px) { .hero__scroll { display: block; } }

/* ---------- Section base ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--dark { background: var(--bg-alt); color: var(--on-dark); }
.section--cream { background: var(--bg-cream); color: var(--fg); }
.section--dark .eyebrow, .section--dark .muted { color: var(--on-dark); }

.h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.94;
  margin: 0;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.72;
  max-width: 42ch;
}

/* ---------- Manifesto / build section ---------- */
.build {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .build { grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
}
.build__num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  margin: 32px 0 0;
}
.build__body { margin-top: 20px; }
.build__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 2px solid currentColor;
}
.build__list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.section--dark .build__list li { border-bottom-color: var(--border-dark); }
.build__list li span:first-child { opacity: 0.5; min-width: 32px; }

/* ---------- Mosaic ---------- */
.mosaic-wrap { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .mosaic-wrap { grid-template-columns: 1fr 220px; gap: 48px; } }
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mosaic .tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(0.6rem, 1.4vw, 0.95rem);
  line-height: 0.95;
  padding: 6px;
  color: var(--fg);
}
.mosaic .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.mosaic .tile:hover img { transform: scale(1.06); }
.tile--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.tile--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.tile--y { background: var(--accent); }
.tile--k { background: var(--bg-alt); color: var(--on-dark); }
.tile--c { background: var(--bg-cream); }
.tile--r { background: var(--bg); }
.tile--g { background: #1e8f5b; color: var(--on-dark); }
.tile--b { background: #2b52d6; color: var(--on-dark); }

.worklist { display: flex; flex-direction: column; gap: 4px; }
.worklist__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 14px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 10px;
}
.workitem {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s var(--ease);
}
.section--dark .workitem { border-bottom-color: var(--border-dark); }
.workitem:hover { padding-left: 8px; }
.workitem img { width: 52px; height: 40px; object-fit: cover; flex-shrink: 0; }
.workitem .wi-name {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.workitem .wi-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--fg); }
.section--dark .svc-grid { border-top-color: var(--on-dark); }
.svc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.section--dark .svc { border-bottom-color: var(--border-dark); }
@media (min-width: 768px) {
  .svc { grid-template-columns: 90px 1.1fr 1.4fr; gap: 32px; align-items: baseline; padding: 40px 0; }
}
.svc__num { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.55; }
.svc__title {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
}
.svc__desc { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.section--dark .svc__desc { color: var(--muted-inv); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 8px 0; }
.stat__num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.85;
}
.stat__num .u { color: var(--accent); }
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0.7;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg); padding: 14px 0; white-space: nowrap; }
.marquee__track { display: inline-block; animation: scrollx 26s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  padding: 0 18px;
}
.marquee span::after { content: "◆"; margin-left: 36px; color: var(--fg); }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Quote / pull ---------- */
.pull {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.0;
  max-width: 900px;
  margin: 0 auto;
}
.pull em { color: var(--accent); font-style: normal; }
.pull__mark { font-size: clamp(4rem, 10vw, 8rem); line-height: 0.6; display: block; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--fg); max-width: 900px; }
.section--dark .faq { border-top-color: var(--on-dark); }
.faq details { border-bottom: 1px solid var(--border); padding: 0; }
.section--dark .faq details { border-bottom-color: var(--border-dark); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 700; font-size: 1.6rem; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 26px; max-width: 62ch; font-size: 16px; line-height: 1.72; color: var(--muted); }
.section--dark .faq p { color: var(--muted-inv); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .h2 { max-width: 16ch; margin: 0 auto 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 34px;
  background: var(--fg);
  color: var(--bg);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { transform: translateY(-3px); background: #000; }
.btn--accent { background: var(--accent); color: var(--fg); }
.btn--accent:hover { background: var(--accent-deep); }
.section--dark .btn { background: var(--on-dark); color: var(--bg-alt); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.info-list .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.info-list .v { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.05; }
.info-list .v.small { font-size: 1rem; word-break: break-word; }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: -3px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--on-dark); padding: 80px 0 40px; }
.footer__mark {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.82;
  font-size: clamp(4rem, 18vw, 16rem);
  margin: 0 0 40px;
}
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 40px; border-top: 2px solid var(--on-dark); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; } }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; opacity: 0.6; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--accent); }
.footer .fcol p { color: var(--muted-inv); font-size: 15px; line-height: 1.7; margin: 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

/* ---------- Legal / article pages ---------- */
.legal { padding: clamp(60px, 10vw, 120px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 0.96; margin: 0 0 12px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 48px; }
.legal h2 { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal p, .legal li { font-size: 16px; line-height: 1.78; color: var(--fg-soft); }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Thanks ---------- */
.thanks { min-height: calc(100vh - 68px); display: flex; align-items: center; text-align: center; }
.thanks .big {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 0.86;
  margin: 0 0 24px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(70px, 11vw, 150px) 0 clamp(50px, 8vw, 90px); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 0.84;
  margin: 18px 0 0;
}
.page-hero p { max-width: 52ch; margin: 28px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; }

/* ---------- 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__mark, .marquee__track { animation: none; }
}

/* ---------- 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-cream); color: var(--fg); padding: 32px 36px; max-width: 480px; border-radius: 0; border: 2px solid var(--fg); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.cookie-popup__card h3 { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1; }
.cookie-popup__card p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--fg-soft); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 12px 24px; border: 2px solid var(--fg); cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s var(--ease); }
.cookie-popup__actions button:first-child:hover { background: rgba(13,13,13,0.06); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg-cream); }
.cookie-popup__actions button:last-child:hover { background: #000; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
