/* ziaz.eu home page sections (loaded after base.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Section rhythm ─────────────────────────────────── */
.section { padding: 120px 0; border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.hero-cta-row { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.hero-cta-row .hero-actions { margin: 0; }
.pledge { display: inline-flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 18px; max-width: 46ch; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-sunk); font-size: 14px; line-height: 1.5; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pledge-mark { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
@media (max-width: 600px) { .pledge { max-width: none; } }
.h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.032em; max-width: 20ch; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.section-head { margin-bottom: 64px; }
.note { font-size: 14px; color: var(--ink-3); }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 96px 0 112px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; }
.hero h1 .soft { color: var(--ink-3); }
.hero .lede { margin-top: 28px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* One record, many uses */
.record-map { margin-top: 88px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; align-items: center; }
.record-card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px; position: relative; z-index: 1;
}
.record-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.avatar-blank { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-sunk); border: 1px solid var(--line); flex: none; }
.record-card-head strong { display: block; font-size: 16px; }
.record-card-head small { display: block; font-size: 13px; color: var(--ink-3); }
.record-rows { list-style: none; margin: 0; padding: 0; }
.record-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.record-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.record-rows span:last-child { color: var(--ink-3); font-size: 13.5px; text-align: right; }
.uses { list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; display: grid; gap: 14px; }
.uses::before { /* spine */
  content: ""; position: absolute; left: 32px; top: 30px; bottom: 30px; width: 1px; background: var(--line);
  transform-origin: top; }
.uses::after { /* card → spine */
  content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 1px; background: var(--line); }
.uses li { position: relative; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg-raised) 60%, transparent); }
.uses li::before { content: ""; position: absolute; left: -33px; top: 50%; width: 32px; height: 1px; background: var(--line); transform-origin: left; }
.uses strong { display: block; font-size: 15.5px; }
.uses span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.map-caption { grid-column: 1 / -1; margin-top: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .js .record-map .uses::before { animation: grow-y .7s .2s ease-out both; }
  .js .record-map .uses li { animation: fade-in .5s ease-out both; }
  .js .record-map .uses li::before { animation: grow-x .4s ease-out both; }
  .js .record-map .uses li:nth-child(1), .js .record-map .uses li:nth-child(1)::before { animation-delay: .5s; }
  .js .record-map .uses li:nth-child(2), .js .record-map .uses li:nth-child(2)::before { animation-delay: .65s; }
  .js .record-map .uses li:nth-child(3), .js .record-map .uses li:nth-child(3)::before { animation-delay: .8s; }
  .js .record-map .uses li:nth-child(4), .js .record-map .uses li:nth-child(4)::before { animation-delay: .95s; }
}
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .record-map { grid-template-columns: 1fr; margin-top: 56px; }
  .uses { padding: 40px 0 0 32px; }
  .uses::before { left: 12px; top: 0; bottom: 30px; }
  .uses::after { display: none; }
  .uses li::before { left: -21px; width: 20px; }
}

/* ── Commitments ────────────────────────────────────── */
.commitments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.commitment { padding: 40px 48px 48px 0; border-bottom: 1px solid var(--line); }
.commitment:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.commitment .num { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.commitment h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin-top: 14px; letter-spacing: -0.022em; }
.commitment p { margin-top: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .commitments { grid-template-columns: 1fr; }
  .commitment, .commitment:nth-child(even) { padding: 32px 0; border-left: 0; }
}

/* ── Community loop ─────────────────────────────────── */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.loop li { position: relative; padding: 28px 24px 0 0; border-top: 2px solid var(--line); counter-increment: step; }
.loop li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -13px; left: 0; background: var(--bg); padding-right: 10px; font-family: var(--mono); font-size: 13px; color: var(--brand); line-height: 24px; }
.loop h3 { font-size: 19px; letter-spacing: -0.015em; }
.loop p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.loop-note { margin-top: 40px; padding: 18px 20px; border-left: 2px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } .loop li { padding-right: 0; } }

/* ── Products ───────────────────────────────────────── */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line-soft); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product:nth-of-type(even) .product-copy { order: 2; }
.product-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* A soft-tinted chip around each product's own mark */
.product-chip { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-raised)); border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent); }
.product-chip img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.product-id h3 { font-size: 22px; letter-spacing: -0.02em; }
.product-id small { display: block; color: var(--ink-3); font-size: 13.5px; font-weight: 400; letter-spacing: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status-live { color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, transparent); background: var(--live-soft); }
.status-live::before { background: var(--live); }
.product-commit { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.product-title { margin-top: 10px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.028em; }
.product-body { margin-top: 16px; color: var(--ink-2); }
.product-body + .product-body { margin-top: 12px; }
.product-link { margin-top: 28px; }
/* Product links: a quiet outline pill; the arrow chip slides and the border lifts on hover */
.product-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 6px 0 20px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cta-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-sunk); color: var(--ink-2); transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.product-cta:hover { border-color: color-mix(in srgb, var(--ink-3) 70%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 9%, transparent), var(--shadow); transform: translateY(-1px); }
.product-cta:hover .cta-arrow { transform: translateX(3px); background: var(--action); color: var(--action-ink); }
.product-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .product-cta, .cta-arrow { transition: none; }
  .product-cta:hover, .product-cta:hover .cta-arrow { transform: none; }
}
.product-pending { margin-top: 28px; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .product:nth-of-type(even) .product-copy { order: 0; }
}

/* Product screenshots: real app captures (demo data), 16:10, sized so nothing shifts */
.shot { margin: 0; }
.frame { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.frame-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.shot-wide { margin: 0 0 48px; max-width: 880px; }

/* Product slideshows (assets/slideshow.js): stacked screenshots that crossfade.
   The stage keeps the 16:10 box, so changing slides never moves the page. */
.slides-stage { position: relative; aspect-ratio: 16 / 10; }
.slides-stage .slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.slides-stage .slide.is-active { opacity: 1; }
.slides-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 12px; }
.slideshow .slides-caption { margin: 0; font-size: 13px; color: var(--ink-3); }
.slides-dots { display: flex; gap: 2px; margin-left: auto; }
.slides-dot { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.slides-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .25s ease, background-color .25s ease; }
.slides-dot:hover::before { background: var(--ink-3); }
.slides-dot[aria-current="true"]::before { width: 18px; background: var(--ink-2); }
.slides-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  .slides-stage .slide, .slides-dot::before { transition: none; }
}

/* ── Fuel, plainly ──────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts div { padding: 28px 40px 28px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 17px; }
.facts dd { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ── Live community feeds ───────────────────────────── */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.feed[hidden] { display: none; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.tag { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-sunk); color: var(--ink-2); }
.tag-member { background: var(--brand-soft); color: var(--brand); }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.018em; }
.story-parts { margin: 0; display: grid; gap: 12px; }
.story-parts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.story-parts dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); }
.placeholder { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 40px 28px; text-align: center; color: var(--ink-2); }
.placeholder p { max-width: 52ch; margin: 0 auto; }
.placeholder .note { margin-top: 8px; }
.feed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.loading { color: var(--ink-3); font-size: 15px; }

/* ── Field notes ────────────────────────────────────── */
.notes-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notes-list a { display: grid; grid-template-columns: 140px 1fr 32px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.notes-list .kind { font-size: 13px; color: var(--ink-3); }
.notes-list strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.notes-list small { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.notes-list .arrow { color: var(--ink-3); transition: transform .15s ease, color .15s ease; justify-self: end; }
.notes-list a:hover .arrow { transform: translateX(4px); color: var(--ink); }
.notes-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 640px) { .notes-list a { grid-template-columns: 1fr 24px; gap: 6px 16px; } .notes-list .kind { grid-column: 1 / -1; } }

/* ── Founders ───────────────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.person { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.person-head { display: flex; align-items: center; gap: 16px; }
.initials { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-sunk); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 18px; color: var(--ink-2); flex: none; }
.person h3 { font-size: 20px; letter-spacing: -0.015em; }
.person .role { color: var(--ink-3); font-size: 14.5px; }
.person p { margin-top: 18px; color: var(--ink-2); font-size: 15.5px; }
.person .chips { margin-top: 16px; }
.person .link-arrow { margin-top: 24px; align-self: flex-start; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } .person { padding: 24px; } }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { margin-top: 14px; max-width: 42ch; }
.footer-soon { color: var(--ink-3); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 56px 0 80px; }
  .card { padding: 22px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.chip { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-sunk); color: var(--ink-2); }
