/* CZL Labs site. Implements Chen's "v4 promo page (iso brand)" mockup: isometric factory art,
   Bricolage Grotesque + JetBrains Mono (self hosted, the CSP blocks Google Fonts), 1.5px ink rules,
   hard offset shadows, one pastel band per product. Values are copied from the mockup. Light only. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600; font-display: swap;
}

:root {
  color-scheme: light only;
  --ink: #171A21;
  --body: #3B414C;
  --faint: #4E5562;
  --paper: #EEF1F4;
  --dot: #D3D9E1;
  --accent: #C9F25C;
  --vg-bg: #FFE7DA; --vg: #F25C1F;
  --cn-bg: #DCE6FF; --cn: #3B6CF6;
  --wlw-bg: #FFF3C7; --wlw: #F5C842;
  --hover: #B8400F;
  --rule: 1.5px solid var(--ink);
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: var(--ink); }
a:hover { color: var(--hover); }
a:focus-visible { outline: 3px solid var(--cn); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 0.75rem; z-index: 20; border: var(--rule); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.dots { background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; }

/* Nav */
.site-header { background: var(--paper); border-bottom: var(--rule); }
.nav { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 29px; width: auto; }
.brand span { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 16px; font-weight: 600; }
.nav-links a { text-decoration: none; }

/* Type */
.pill {
  align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: #fff; border: var(--rule); border-radius: 999px; padding: 7px 12px;
}
h1 { font-size: clamp(60px, 8vw, 116px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; }
h2 { font-size: clamp(48px, 6vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.h2-small { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.h2-statement { max-width: 820px; font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.035em; line-height: 1; }
.h2-huge { font-size: clamp(52px, 8vw, 120px); letter-spacing: -0.05em; line-height: 0.9; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow-sm { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.tagline { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.body { max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--body); }

/* Buttons: ink border + hard offset shadow */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  text-decoration: none; background: #fff; border: 2px solid var(--ink); padding: 13px 20px; border-radius: 12px;
  font-weight: 700; font-size: 17px; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-accent { background: var(--accent); padding: 14px 22px; }
.hero .btn { padding: 14px 22px; }
.btn-vg { background: var(--vg); }
.btn-cn { background: var(--cn); color: #fff; }
.btn-cn:hover { color: #fff; }
.btn-wlw { background: var(--wlw); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-lede { max-width: 500px; font-size: 22px; line-height: 1.45; color: var(--body); }
.hero-art { flex: 1.3 1 520px; min-width: 0; }
.art-hero { width: 100%; height: auto; display: block; }

/* Product bands */
.band { border-top: var(--rule); }
.band-vg { background: var(--vg-bg); }
.band-cn { background: var(--cn-bg); }
.band-wlw { background: var(--wlw-bg); }
.band-white { background: #fff; }
.feature { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feature-flip { flex-wrap: wrap-reverse; }
.feature-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.art-feature { width: 100%; max-width: 340px; height: auto; display: block; }
.feature-copy { flex: 1.2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feature-copy .buttons { margin-top: 6px; }
/* ClipNotes is the mirrored band: inset its copy by the same amount the art is inset in
   the other bands, so all three read as the same width. */
@media (min-width: 1000px) { .feature-flip .feature-copy { padding-left: 96px; } }

/* Under construction + company */
.stack { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.stack-lg { padding-top: 88px; padding-bottom: 88px; gap: 44px; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.soon {
  flex: 1 1 340px; min-width: 0; background: #fff; border: 2px dashed var(--ink); border-radius: 20px; padding: 24px;
  display: flex; gap: 20px; align-items: center;
}
.soon > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.soon h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.soon p { font-size: 16px; line-height: 1.5; color: var(--body); }
.art-soon { width: 120px; flex: 0 0 120px; height: auto; }
.pillar { flex: 1 1 260px; min-width: 0; background: var(--paper); border: var(--rule); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { font-size: 24px; font-weight: 800; }
.pillar p { font-size: 16px; line-height: 1.55; color: var(--body); }

.founder { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; border-top: var(--rule); padding-top: 40px; }
.founder-photo { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--paper); }
.founder-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.founder-copy h3 { font-size: 26px; font-weight: 800; }
.founder-copy p { max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--body); }
.founder-copy a { font-weight: 700; font-size: 17px; }

/* Chen's SF skyline as a full bleed strip before contact */
.skyline-band { border-top: var(--rule); line-height: 0; background: #65abed; }
.skyline-band img { width: 100%; height: auto; display: block; }

/* Contact */
.contact { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.contact-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-copy p { font-size: 19px; color: var(--body); }
.contact-email { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Footer */
.site-footer { border-top: var(--rule); background: #fff; }
.footer-row { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding-top: 64px; padding-bottom: 64px; }

/* Motion from the mockup: conveyor belts, bobbing ghost, chimney puffs */
.belt { animation: belt 1.1s linear infinite; }
@keyframes belt { to { stroke-dashoffset: -22; } }
.ghost { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.puff { transform-box: fill-box; transform-origin: center; animation: puff 2.4s ease-out infinite; opacity: 0; }
.p1 { animation-delay: 0.8s; } .p2 { animation-delay: 1.6s; }
@keyframes puff { 0% { opacity: 0; transform: translateY(8px) scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .belt, .ghost, .puff, .btn { animation: none; transition: none; }
  .puff { opacity: 1; }
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .hero { padding-top: 48px; }
  .feature, .stack, .stack-lg, .contact { padding-top: 64px; padding-bottom: 64px; }
  .feature { gap: 32px; }
  .art-feature { max-width: 220px; }
  .art-soon { width: 72px; flex-basis: 72px; }
}

/* Real product art in the bands. Card and book get the template's ink outline + hard shadow. */
.product-img { display: block; height: auto; }
.img-ghost { width: 100%; max-width: 360px; }
.img-card { width: 100%; max-width: 340px; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.img-book { width: 100%; max-width: 250px; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink); }
@media (max-width: 640px) {
  .img-ghost { max-width: 240px; }
  .img-card { max-width: 300px; }
  .img-book { max-width: 180px; }
}
