/* ZAP Agency: layout, type, components. Mobile first; desktop from 60em (960px). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--zap-black);
}
body {
  margin: 0;
  font-family: var(--zap-font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--zap-black);
  background: var(--zap-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: text-decoration-color var(--ease), color var(--ease), background-color var(--ease); }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }

/* Focus: off-white on dark, black on light. Never lime. */
:focus-visible { outline: 3px solid var(--zap-black); outline-offset: 3px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .menu-panel :focus-visible { outline-color: var(--zap-offwhite); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -10rem; z-index: 100;
  background: var(--zap-offwhite); color: var(--zap-black);
  padding: 0.75rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); }
.band--tight { padding-block: calc(var(--band-y) * 0.6); }
.dark { background: var(--zap-black); color: var(--zap-offwhite); }
.light { background: var(--zap-offwhite); color: var(--zap-black); }

@media (min-width: 60em) {
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
}

/* ---------- Type ---------- */
.display, h1, h2, h3, .h1, .h2, .h3 { font-weight: 700; }
.display { font-size: var(--fs-display); letter-spacing: -0.03em; line-height: 0.95; }
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; line-height: 1.05; }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.2; }
p, li { max-width: var(--measure); }
.lead { font-size: var(--fs-lead); letter-spacing: -0.005em; line-height: 1.45; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.label {
  display: block; font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3em; line-height: 1.4;
  color: var(--zap-grey-dark);
}
.dark .label, .site-footer .label, .menu-panel .label { color: var(--zap-grey); }
.muted { color: var(--zap-grey-dark); }
.dark .muted { color: var(--zap-grey); }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* The page's single lime accent */
.lime-rule { width: 4rem; height: 4px; border: 0; margin: 2rem 0; background: var(--zap-lime); }
.lime-word { color: var(--zap-lime); }


/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 2px solid currentColor; border-radius: 0; cursor: pointer;
  background: transparent;
}
.btn--fill-light { background: var(--zap-offwhite); color: var(--zap-black); border-color: var(--zap-offwhite); }
.btn--fill-light:hover { background: transparent; color: var(--zap-offwhite); }
.btn--fill-dark { background: var(--zap-black); color: var(--zap-offwhite); border-color: var(--zap-black); }
.btn--fill-dark:hover { background: transparent; color: var(--zap-black); }
.btn--outline:hover { background: var(--zap-offwhite); color: var(--zap-black); }
.light .btn--outline:hover { background: var(--zap-black); color: var(--zap-offwhite); }
.text-link { font-weight: 700; text-decoration: underline; }
.text-link::after { content: " \2192"; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--zap-black); color: var(--zap-offwhite);
  border-bottom: 1px solid var(--zap-hairline-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
/* Logo: approved L1 masters (company/brand/logo/). Wordmark min 72px, lockup min 160px. */
.wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.wordmark img { display: block; width: 6.5rem; height: auto; }          /* 104px on phones */
@media (min-width: 60em) { .wordmark img { width: 7.5rem; } }           /* 120px on desktop */

.nav-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 500; }
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav-list .btn { min-height: 2.75rem; padding: 0.5rem 1rem; }
.nav-list .btn:hover { text-decoration: none; }

.menu-btn {
  display: none; min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem 0.25rem;
  background: none; border: 0; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.3em;
}

/* With JavaScript, phones get the Menu button and full-screen panel.
   Without it, the links simply wrap in the header. */
@media (max-width: 59.99em) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; }
  .nav-list .nav-cta { display: none; }
  .no-js .nav-list { gap: 0 1rem; font-size: 0.9375rem; }
}

.menu-panel {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: var(--zap-black); color: var(--zap-offwhite);
}
.menu-panel[hidden] { display: none; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-bottom: 1px solid var(--zap-hairline-dark); }
.menu-panel__links { list-style: none; margin: 2.5rem 0; padding: 0; }
.menu-panel__links a {
  display: block; padding: 0.5rem 0; font-size: var(--fs-h1); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; text-decoration: none;
}
.menu-panel__links a[aria-current="page"], .menu-panel__links a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.menu-panel__contact a { display: inline-block; padding-block: 0.4rem; }

/* ---------- Home ---------- */
.hero { min-height: calc(80svh - var(--header-h)); display: flex; align-items: center; }
.hero .display { max-width: 12ch; margin-top: 1.25rem; }
.hero__foot { display: flex; flex-direction: column; gap: 1.75rem; }
.hero__foot p { max-width: 34rem; }
@media (min-width: 60em) {
  .hero .display { grid-column: 1 / span 9; max-width: none; }
  .hero__foot { flex-direction: row; align-items: center; gap: 3rem; }
}

.numbered { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--zap-hairline-light); }
.numbered li { max-width: none; border-bottom: 1px solid var(--zap-hairline-light); }
.numbered a { display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem; padding-block: 1.5rem; text-decoration: none; }
.numbered a:hover .h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.numbered__n { font-size: var(--fs-small); font-weight: 500; color: var(--zap-grey-dark); padding-top: 0.3em; font-variant-numeric: tabular-nums; }
.numbered p { grid-column: 2; color: var(--zap-charcoal); }
@media (min-width: 60em) {
  .numbered { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; border-top: 0; }
  .numbered li:nth-child(-n+2) { border-top: 1px solid var(--zap-hairline-light); }
}

.cols3 { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.cols3 > * > * + * { margin-top: 0.75rem; }
@media (min-width: 60em) { .cols3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.routes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; }
.routes li { max-width: none; border-top: 1px solid var(--zap-hairline-light); }
.routes a { display: flex; flex-direction: column; gap: 0.5rem; padding-block: 1.5rem; text-decoration: none; min-height: 2.75rem; }
.routes a:hover .text-link { text-decoration-thickness: 2px; }
@media (min-width: 60em) {
  .routes { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .routes a { padding-top: 2rem; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: calc(var(--band-y) * 0.85) calc(var(--band-y) * 0.7); }
.page-head h1 { margin-top: 1.25rem; max-width: 18ch; }
.page-head .lead { margin-top: 0; max-width: 40rem; }
.page-head h1 + .lead { margin-top: 1.5rem; }

/* ---------- Services ---------- */
.jump { padding-block: 2rem 0; }
.jump ol { list-style: none; margin: 1rem 0 0; padding: 0; }
.jump a { display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; color: var(--zap-charcoal); }
.jump a:hover { text-decoration: underline; }
.jump a[aria-current="true"] { font-weight: 700; color: var(--zap-black); }
.svc { padding-block: 3.5rem; border-top: 1px solid var(--zap-hairline-light); }
.svc:first-child { border-top: 0; }
.svc h2 { margin-top: 1rem; }
.svc .lead { margin-top: 1.25rem; }
.svc ul { margin-top: 1.5rem; padding-left: 1.1em; }
.svc li + li { margin-top: 0.4rem; }
.svc .text-link { display: inline-block; margin-top: 1.75rem; padding-block: 0.4rem; }
@media (min-width: 60em) {
  .svc-layout { align-items: start; }
  .jump { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 2rem); padding-block: 4.5rem; }
  .svc-list { grid-column: 5 / span 7; padding-block: 1rem; }
}

/* ---------- About ---------- */
.statement { margin-top: 2rem; font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; max-width: 34ch; letter-spacing: -0.01em; }
@media (min-width: 60em) { .statement { font-size: 2rem; } }
.split > .label { margin-bottom: 1.5rem; }
@media (min-width: 60em) {
  .split > .label { grid-column: 1 / span 3; margin: 0.4rem 0 0; }
  .split > .split__body { grid-column: 5 / span 7; }
}
.principles { counter-reset: p; }
.principles h3::before { counter-increment: p; content: "0" counter(p); display: block; margin-bottom: 1rem; font-size: var(--fs-small); font-weight: 500; color: var(--zap-grey); }
.details-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }
.details-list dt { color: var(--zap-grey-dark); }
.details-list dd { margin: 0; }

/* ---------- Contact ---------- */
.topics { margin-top: 2rem; border-top: 1px solid var(--zap-hairline-light); }
.topic { border-bottom: 1px solid var(--zap-hairline-light); }
.topic > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem; padding-block: 1.25rem;
  font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
}
.topic > summary::-webkit-details-marker { display: none; }
.topic > summary::after { content: "+"; font-weight: 400; font-size: 1.75rem; line-height: 1; }
.topic[open] > summary::after { content: "\2212"; }
.topic > summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.topic__body { padding-bottom: 2rem; }
.topic__body > * + * { margin-top: 1.25rem; }
.topic__body ul { padding-left: 1.1em; }
.topic__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.addr { font-weight: 700; word-break: break-all; }
.copy-btn { min-height: 2.75rem; padding: 0.5rem 1rem; background: none; border: 1px solid var(--zap-black); cursor: pointer; font-size: var(--fs-small); font-weight: 700; }
.copy-btn:hover { background: var(--zap-black); color: var(--zap-offwhite); }
.copy-btn[hidden] { display: none; }
@media (min-width: 60em) {
  .contact-layout > .topics-wrap { grid-column: 1 / span 7; }
  .contact-layout > aside { grid-column: 9 / span 4; }
}
.contact-layout > aside { margin-top: 3.5rem; }
@media (min-width: 60em) { .contact-layout > aside { margin-top: 2rem; } }
.addr-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.addr-list li + li { margin-top: 1rem; }

/* ---------- Legal ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.5rem; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul { padding-left: 1.1em; }
.toc { margin-top: 1.5rem; padding-left: 1.1em; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(70svh - var(--header-h)); display: flex; align-items: center; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.notfound .links a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--zap-black); color: var(--zap-offwhite); padding-block: 4rem 2rem; border-top: 1px solid var(--zap-hairline-dark); }
.footer-mark { display: inline-block; text-decoration: none; }
.footer-mark img { display: block; width: 12.5rem; height: auto; }      /* 200px lockup */
.footer-cols { display: grid; gap: 2.5rem; margin-top: 3rem; }
.footer-cols ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; word-break: break-all; }
.footer-cols a:hover { text-decoration: underline; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--zap-hairline-dark); color: var(--zap-grey); max-width: none; }
@media (min-width: 60em) {
  .footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .footer-top > :first-child { grid-column: 1 / span 4; }
  .footer-cols { grid-column: 6 / span 7; grid-template-columns: 1.4fr 1fr 1fr; margin-top: 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utilities (no inline styles: strict CSP) ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 2.5rem; }
.pt-0 { padding-top: 0; }
.span-all { grid-column: 1 / -1; }
.js .menu-panel .menu-close { display: inline-flex; align-items: center; }
.toc a, .addr-list a, .split__body .text-link { display: inline-block; padding-block: 0.4rem; }
.toc li + li { margin-top: 0.15rem; }

/* Founder (About) */
.founder { display: grid; gap: 1.5rem; }
.founder__photo { max-width: 16rem; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--zap-charcoal); }
@media (min-width: 60em) {
  .founder { grid-template-columns: 16rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}
