/* =========================================================================
   ZK DESIGN AGENCY — Homepage (Maximalist)
   Reuses brand tokens from zk.css (petrol / cream / amber) inside the bold,
   color-blocked "maximalist" layout. Page-specific — not shared with the
   rest of the site, which keeps its existing zk.css/zk.js system.
   ========================================================================= */

:root {
  --ink: #13241d;        /* petrol — dark ground, borders, primary text */
  --white: #ffffff;
  --paper: #ece7db;      /* cream — light ground */
  --paper-alt: #ddd0ab;  /* warm cream-alt for section rhythm */
  --amber: #d67c2c;      /* accent — bold blocks + accents on dark bg */
  --amber-deep: #7f5210; /* AA-safe accent for small text on light bg */
  --line-on-dark: rgba(236,231,219,0.18);
  --line-on-light: rgba(19,36,29,0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.55; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; line-height: 0.96; margin: 0; letter-spacing: -0.02em; text-transform: uppercase; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow { font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; padding: 16px 30px; border: 3px solid var(--ink); border-radius: 999px; cursor: pointer; white-space: nowrap; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.btn-solid { background: var(--ink); color: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.btn-solid:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }

header.site { position: sticky; top: 0; z-index: 90; background: var(--paper); border-bottom: 3px solid var(--ink); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.brand .sl { color: var(--amber-deep); }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 700; font-size: 0.92rem; text-transform: uppercase; }
.nav-links a:hover { color: var(--amber-deep); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 6px; margin: -6px 0; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 3px solid var(--ink);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px clamp(20px,5vw,56px) 22px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { padding: 13px 0; border-top: 2px solid var(--line-on-light); }
  .nav-menu .btn { margin-top: 14px; }
}

/* ---- HERO (amber block) ---- */
.hero { background: var(--amber); color: var(--ink); position: relative; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; }
.hero-shape.s1 { width: 480px; height: 480px; background: rgba(236,231,219,0.35); top: -180px; right: -140px; }
.hero-shape.s2 { width: 220px; height: 220px; background: rgba(19,36,29,0.28); bottom: -80px; left: -60px; }
.hero-content { position: relative; z-index: 2; padding: clamp(56px, 9vw, 96px) 0; }
.hero h1 { font-size: clamp(3rem, 9vw, 8rem); color: var(--ink); }
.hero h1 .hl { background: var(--ink); color: var(--amber); padding: 0 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lede { max-width: 44ch; margin-top: 28px; font-size: 1.18rem; font-weight: 600; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero-stats { display: flex; gap: clamp(28px, 5vw, 56px); flex-wrap: wrap; margin-top: clamp(48px, 8vw, 80px); }
.hero-stat { background: var(--ink); color: var(--white); padding: 20px 26px; border-radius: 16px; }
.hero-stat .n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--amber); }
.hero-stat .l { margin-top: 4px; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }

/* ---- MARQUEE (petrol) ---- */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; white-space: nowrap; padding: 20px 0; border-bottom: 3px solid var(--ink); }
.marquee__track { display: inline-flex; animation: scroll-x 26s linear infinite; }
.marquee__item { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.6rem; text-transform: uppercase; padding-right: 2.4rem; }
.marquee__item .dot { color: var(--amber); padding: 0 1rem; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- MANIFESTO (paper) ---- */
.split-2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }
.manifesto h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.manifesto h2 .hl { color: var(--amber-deep); }
.lede-lg { margin-top: 20px; font-size: 1.1rem; color: var(--ink); max-width: 52ch; }
.trait-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.trait-grid li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.94rem; padding: 12px 0; border-bottom: 2px solid var(--line-on-light); }

/* ---- CAPABILITIES (petrol) ---- */
.cap-band { background: var(--ink); color: var(--white); }
.cap-band .eyebrow { color: var(--amber); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-cell { background: #1a2e24; padding: 32px 26px; transition: background .25s ease; }
.cap-cell:hover { background: var(--amber); color: var(--ink); }
.cap-cell:hover .cap-num { color: var(--ink); }
.cap-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: var(--amber); font-size: 1.4rem; }
.cap-cell h3 { font-size: 1.3rem; margin-top: 14px; color: inherit; }
.cap-cell p { margin-top: 10px; color: #c9c6bd; font-size: 0.88rem; }
.cap-cell:hover p { color: #262626; }

/* ---- WORK ---- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.work-card--wide { grid-column: span 2; }
@media (max-width: 900px) { .work-card--wide { grid-column: span 1; } }
.work-card { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 3px solid var(--ink); background: var(--white); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.work-card:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--ink); }
.work-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-tag { position: absolute; left: 14px; top: 14px; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 0.7rem; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.work-body { padding: 20px 22px 24px; border-top: 3px solid var(--ink); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.work-title { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.work-meta { margin-top: 8px; font-size: 0.86rem; color: #4a4a4a; font-weight: 600; }
.work-yr { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: var(--amber-deep); font-size: 0.85rem; white-space: nowrap; }

/* ph-art placeholder cards (matches work.html's real treatment for case studies without live screenshots) */
.ph-art { position: absolute; inset: 0; display: grid; place-items: center; }
.ph-art .mark { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(2.4rem,7vw,4.6rem); letter-spacing: -0.03em; color: rgba(236,231,219,0.18); }
.ph-art .mark .sl { color: rgba(214,124,44,0.55); }

/* ---- TESTIMONIALS (paper-alt) ---- */
.quotes-band { background: var(--paper-alt); }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card { background: var(--white); border: 3px solid var(--ink); border-radius: 20px; padding: 30px 28px; }
.quote-mark { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--amber-deep); }
.quote-text { margin-top: 6px; font-size: 1.05rem; font-weight: 600; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; flex: none; }
.quote-name { font-weight: 800; font-size: 0.95rem; }
.quote-role { margin-top: 2px; font-size: 0.82rem; color: #4a4a4a; font-weight: 600; }

/* ---- PROCESS (paper) ---- */
.process-band { background: var(--paper); color: var(--ink); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
.process-cell { background: var(--white); border: 3px solid var(--ink); border-radius: 18px; padding: 28px 24px; }
.process-cell .n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--amber-deep); }
.process-cell h3 { font-size: 1.35rem; margin-top: 14px; }
.process-cell p { margin-top: 10px; font-size: 0.88rem; font-weight: 600; }

/* ---- CTA (amber) ---- */
.cta-band { background: var(--amber); color: var(--ink); text-align: center; }
.cta-band h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 16ch; margin: 0 auto; }
.cta-band .lede { max-width: 46ch; margin: 20px auto 0; font-weight: 600; }
.cta-band .hero-ctas { justify-content: center; }

footer.site-foot { background: var(--ink); color: var(--white); padding: 48px 0 28px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 3px solid #2a2a2a; }
.foot-brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.8rem; text-transform: uppercase; }
.foot-brand .sl { color: var(--amber); }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.foot-links a:hover { color: var(--amber); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 0.82rem; font-weight: 600; color: #a8a49a; }
.foot-bottom a { color: #a8a49a; }
.foot-bottom a:hover { color: var(--amber); }

.reveal { opacity: 0.001; transform: translateY(24px) scale(0.98); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
