/* palette: bg=#F1F0EE fg=#0B0B0B accent=#6E29E0 */
/* fonts: display="Archivo" body="Inter" mono="Space Mono" */

:root {
  --bg: #F1F0EE;        /* near-white neutral from reference */
  --bg-alt: #FFFFFF;    /* alternating white sections */
  --bg-sky: #DCE7F2;    /* sky-blue tint behind project shots */
  --fg: #0B0B0B;        /* primary near-black */
  --fg-soft: #2A2A2A;   /* softened foreground */
  --muted: #8A8A86;     /* secondary text */
  --accent: #6E29E0;    /* violet accent from hero pixel cubes */
  --accent-deep: #5316B8;
  --signal: #F5320C;    /* red micro-badge */
  --border: rgba(11, 11, 11, 0.12);
  --serif: 'Archivo', ui-sans-serif, sans-serif;
  --sans: 'Inter', ui-sans-serif, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bg-rgb: 241, 240, 238;
}

*, *::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; }

.container { max-width: 1280px; 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, 100px) 0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Headings ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 800; margin: 0; }
.h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 60ch;
}
p { margin: 0 0 1.1em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.header[data-scrolled="true"] { box-shadow: 0 1px 0 var(--border); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-weight: 800;
  font-size: 1.05rem; letter-spacing: -0.02em;
}
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg); }
.brand__dot--accent { background: var(--accent); }

.nav-pill {
  display: none;
  align-items: center; gap: 4px;
  background: var(--fg);
  border-radius: 9999px;
  padding: 6px 8px;
}
.nav-pill a {
  font-size: 13px; color: var(--bg);
  padding: 7px 16px; border-radius: 9999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-pill a:hover, .nav-pill a[aria-current="page"] { background: rgba(255,255,255,.16); }
.nav-pill .nav-pill__brace { font-family: var(--mono); color: var(--muted); padding: 7px 12px; }

.header__cta {
  display: none;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  align-items: center; gap: 7px;
}
.header__cta .badge {
  background: var(--signal); color: #fff;
  border-radius: 9999px; padding: 3px 9px;
  font-size: 10px; letter-spacing: .08em;
}
@media (min-width: 900px) {
  .nav-pill, .header__cta { display: inline-flex; }
}

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--fg);
}
.menu-toggle span { width: 18px; height: 2px; background: var(--bg); 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: 900px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 100px 24px 40px;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-menu[data-open="true"] { transform: none; }
.mobile-menu a {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.2rem);
  letter-spacing: -0.03em;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu__foot { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero__meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding-top: 24px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span::before { content: "◷"; color: var(--accent); }
.hero__meta span:last-child::before { content: "◉"; }

.hero__stage { position: relative; padding: 30px 0 40px; }
.hero__frame {
  position: relative; z-index: 1;
  width: min(74vw, 380px); margin: 0 auto;
  aspect-ratio: 3/4; overflow: hidden;
  border-radius: 2px;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 8s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__cube {
  position: absolute; z-index: 2; top: 6%; left: 50%;
  transform: translateX(-130%);
  width: 56px; height: 56px;
  background: var(--accent);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  box-shadow: 14px 14px 0 -2px var(--accent-deep);
}

.hero__type {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  z-index: 1; pointer-events: none;
  text-align: center;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(3.5rem, 14vw, 11rem);
  letter-spacing: -0.05em; line-height: 0.9;
  white-space: nowrap;
}
.hero__type em { font-style: normal; color: var(--accent); }
.hero__type .dot { color: var(--accent); }
.hero__caption {
  text-align: center; font-family: var(--mono);
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
  margin-top: 18px;
}
.hero__caption strong { color: var(--fg); font-weight: 400; }
.hero__sub {
  text-align: center; max-width: 56ch; margin: 26px auto 0;
  font-size: clamp(1rem, 2vw, 1.18rem); color: var(--fg-soft);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 9999px;
  font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { transform: translateY(-2px); background: var(--accent); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--fg); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { transform: translateY(-2px); background: var(--accent-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow:hover { gap: 12px; border-color: var(--fg); }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(2px); }

/* ---------- Section head ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.sec-head__text { max-width: 56ch; }
.sec-head .index { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Projects grid ---------- */
.projects { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects { grid-template-columns: repeat(3, 1fr); } }

.project { display: flex; flex-direction: column; }
.project__shot {
  aspect-ratio: 4/5; overflow: hidden; border-radius: 4px;
  background: var(--bg-sky);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.project__shot img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  box-shadow: 0 18px 50px -16px rgba(11,11,11,.32);
  transition: transform .6s var(--ease);
}
.project:hover .project__shot img { transform: scale(1.04) translateY(-4px); }
.project__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; }
.project__title { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.project__tag { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.project__desc { color: var(--fg-soft); font-size: .96rem; margin-top: 8px; }

/* ---------- Categories grid ---------- */
.cats { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat {
  padding: 34px 28px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  transition: background .3s var(--ease);
}
@media (min-width: 640px) { .cat:nth-child(odd) { border-right: 1px solid var(--border); } }
@media (min-width: 1000px) {
  .cat { border-right: 1px solid var(--border); }
  .cat:nth-child(3n) { border-right: 0; }
  .cat:nth-child(odd) { border-right: 1px solid var(--border); }
}
.cat:hover { background: var(--bg-alt); }
.cat__num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.cat__title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.cat__desc { color: var(--fg-soft); font-size: .95rem; }

/* ---------- Manifesto (dark band) ---------- */
.manifesto { background: var(--fg); color: var(--bg); }
.manifesto .container { text-align: center; }
.manifesto .eyebrow { color: rgba(255,255,255,.55); }
.manifesto .eyebrow::before { background: var(--accent); }
.manifesto__quote {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em; line-height: 1.12;
  max-width: 18ch; margin: 0 auto;
}
.manifesto__quote em { font-style: normal; color: var(--accent); }
.manifesto__mark { font-family: var(--serif); font-size: clamp(4rem,10vw,8rem); line-height: .5; color: var(--accent); display: block; margin-bottom: 10px; }
.manifesto__by { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.55); margin-top: 36px; letter-spacing: .08em; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.04em; line-height: 1; }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }

/* ---------- Approach / steps ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { background: var(--bg); padding: 38px 32px; }
.step__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.step__title { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin: 14px 0 10px; }
.step__desc { color: var(--fg-soft); font-size: .98rem; }

/* ---------- Feature list (services) ---------- */
.svc-list { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
.svc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 6px; padding: 36px 32px;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -8px rgba(0,0,0,.14); }
.svc__no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.svc__title { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 14px 0 12px; }
.svc__desc { color: var(--fg-soft); }
.svc__points { list-style: none; padding: 0; margin: 18px 0 0; }
.svc__points li { padding: 9px 0; border-top: 1px solid var(--border); font-size: .94rem; display: flex; gap: 10px; }
.svc__points li::before { content: "→"; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 26px 0; display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.4rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-soft); padding-bottom: 26px; margin: 0; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: #fff; }
.cta .container { text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch; margin: 0 auto 22px; }
.cta p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 32px; }
.cta .btn--solid { background: #fff; color: var(--fg); }
.cta .btn--solid:hover { background: var(--fg); color: #fff; }
.cta .eyebrow { color: rgba(255,255,255,.7); }
.cta .eyebrow::before { background: #fff; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.info-row { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; border-top: 1px solid var(--border); }
.info-row__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info-row__value { font-size: 1.1rem; }

form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-alt); color: var(--fg);
  transition: border-color .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; }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: clamp(60px, 8vw, 100px) 0 40px; }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; }
.footer__tag { color: rgba(255,255,255,.6); margin-top: 18px; max-width: 36ch; font-size: .98rem; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); font-weight: 400; margin: 0 0 18px; }
.footer__col a { display: block; padding: 6px 0; color: rgba(255,255,255,.82); transition: color .25s var(--ease); font-size: .96rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .04em;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(120px, 18vw, 200px) 0 clamp(48px, 7vw, 90px); }
.page-hero h1 { font-size: clamp(3rem, 10vw, 8rem); letter-spacing: -0.05em; line-height: 0.92; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lead { margin-top: 28px; }

/* ---------- Legal ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 48px 0 16px; }
.legal h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* ---------- Thanks ---------- */
.thanks { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.thanks .container { max-width: 700px; }
.thanks h1 { font-size: clamp(2.6rem, 9vw, 6rem); letter-spacing: -0.04em; line-height: 0.95; }
.thanks h1 em { font-style: normal; color: var(--accent); }

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

/* ---------- Cookie popup ---------- */
.cookie-popup { position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center;padding:24px;background:rgba(0,0,0,0.4);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);padding:32px 36px;max-width:480px;border-radius:6px;box-shadow:0 24px 70px -20px rgba(0,0,0,.5); }
.cookie-popup__label { font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);margin-bottom:12px; }
.cookie-popup__card h3 { font-family:var(--serif);font-size:1.4rem;letter-spacing:-0.02em;margin:0 0 10px; }
.cookie-popup__card p { font-size:.9rem;color:var(--fg-soft);margin:0;line-height:1.6; }
.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;border-radius:9999px;transition:background .25s var(--ease),color .25s var(--ease); }
.cookie-popup__actions button:first-child: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); }
