/* Site compositions consume the shared Zefuo foundations and primitives. */
body { font-size: var(--text-body); }
.section-wrap { max-width: var(--layout-content); }
.wordmark { gap: 9px; }
.footer-brand { color: var(--color-accent); }
.manifesto .wordmark { color: var(--color-accent); }
.site-footer {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-8);
}
.site-footer .footer-brand { font-size: 32px; min-height: var(--touch-target); }
.footer-copyright { font-size: var(--text-small); color: var(--color-text-secondary); white-space: nowrap; }
.footer-email {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  margin-left: auto;
  font-size: var(--text-ui);
  color: var(--color-text);
  white-space: nowrap;
  text-underline-offset: 4px;
}
.footer-email:hover { color: var(--color-accent-text); text-decoration: underline; }
@media (max-width: 700px) {
  .site-footer { gap: var(--space-3); padding-block: 20px; }
  .site-footer .footer-brand { font-size: 28px; }
  .footer-copyright { font-size: 11px; }
  .footer-email { font-size: 12px; }
}
.wordmark-symbol { order: -1; width: 38px; height: 38px; transform: translateY(1px); }
/* Keep the same z and f glyphs at the same size as the wordmark closes. */
:root { --site-header-height: 100px; }
html { scroll-padding-top: calc(var(--site-header-height) + 24px); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
  height: var(--site-header-height);
}
.site-header::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: var(--site-header-height);
  z-index: -1;
  background: var(--color-paper);
  transition: box-shadow 700ms var(--ease-out);
}
.site-header.is-compact::before { box-shadow: 0 1px 0 var(--color-border); }
.header-brand {
  --logo-duration: 700ms;
  --logo-ease: cubic-bezier(.65, 0, .2, 1);
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  min-height: var(--touch-target);
  color: var(--color-text);
  transition: color var(--logo-duration) var(--logo-ease);
}
.header-brand::before {
  content: 'zefuo';
  grid-area: 1 / 1;
  font-kerning: none;
  visibility: hidden;
}
.wordmark-type {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.wordmark-e, .wordmark-uo {
  display: grid;
  grid-template-columns: 1fr;
  transition: grid-template-columns var(--logo-duration) var(--logo-ease), opacity 450ms var(--logo-ease);
}
.wordmark-e > span, .wordmark-uo > span { min-width: 0; }
.is-compact .wordmark-e, .is-compact .wordmark-uo {
  grid-template-columns: 0fr;
  opacity: 0;
}
.is-compact .header-brand { color: var(--color-accent); }
.mobile-nav {
  position: fixed;
  top: var(--site-header-height);
  z-index: 29;
  max-height: calc(100svh - var(--site-header-height));
  overflow-y: auto;
}
@media (max-width: 800px) { :root { --site-header-height: 82px; } }
@media (max-width: 700px) {
  :root { --site-header-height: 79px; }
}
@media (max-height: 560px) { :root { --site-header-height: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .header-brand, .wordmark-e, .wordmark-uo,
  .site-header::before { transition: none; }
}
.header-cta { background: var(--color-accent); color: var(--color-on-accent); }
.button-dark:hover:not(:disabled) { background: #59443a; }
.header-cta:hover:not(:disabled) { background: var(--color-accent-hover); }
.hero-signature { display: block; width: 70px; height: 5px; background: var(--color-accent); margin: 26px auto 0; transform: skewX(-35deg); }
.hero-description, .product-summary, .manifesto-foot p, .service-copy > p,
.approach-intro > p:last-of-type { color: var(--color-text-secondary); }
.section-symbol { display: block; width: 28px; height: 28px; margin-bottom: 20px; }
.contact-section { background: var(--color-accent-soft); }
.contact-symbol { position: absolute; right: 18px; top: 55px; width: 330px; height: 330px; color: var(--color-accent); opacity: .085; pointer-events: none; }
.dialog-symbol { position: absolute; right: 43px; top: 65px; width: 33px; height: 33px; }
.approach-symbol { display: block; margin-top: 35px; width: 58px; height: 58px; }
.dialog-close { display: grid; place-items: center; color: var(--color-text-secondary); width: var(--touch-target); height: var(--touch-target); }
.field-label, legend, .dialog-intro, .form-note { color: var(--color-text-secondary); }
.interest-options input:checked + span { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent-text); }
.menu-toggle { align-items: center; justify-content: center; }
.menu-toggle .icon { width: 27px; height: 27px; }
.service-features > span:before { content: ''; width: 18px; height: 18px; background: currentColor; mask: url('../images/arrow-up-right.svg') center/contain no-repeat; }
.process-toggle { display: grid; place-items: center; width: 20px; height: 20px; }
.process-toggle:before, .process-toggle:after { display: none; }
.process-toggle .icon { transition: transform var(--duration-ui) var(--ease-out); }
details[open] .process-toggle .icon { transform: rotate(45deg); }
.scroll-instruction .icon, .scroll-cue .icon, .back-to-top .icon { width: 18px; height: 18px; }
.step-icon .icon { width: 19px; height: 19px; }
.step-check .icon { width: 16px; height: 16px; }
#run-workflow .icon { width: 15px; height: 15px; }
::selection { color: var(--color-text); background: var(--color-accent-soft); }
/* P07 surrounds the product demos; each app retains its own colors. */
.services, .product-tabs { background: var(--color-surface); }
.product-tabs, .product-tags span, .process-list details,
.process-list details:first-child, dialog, .interest-options span { border-color: var(--color-border); }
.product-tabs button:hover { background: var(--color-paper); }
.product-tabs button[aria-selected=true] .tab-dot { background: var(--color-accent); }
.showcase-topline > .eyebrow, .demo-label, .demo-label > span,
.mobile-demo-label, .product-tags span, .handwritten, .drawn-arrow,
.product-note, .product-status, .scroll-cue, .scroll-instruction,
.section-label, .service-number, .service-features, .approach-intro .eyebrow,
.process-index, .process-content p, .process-content > span,
.contact-bottom p, .footer-top > p, .back-to-top, .footer-bottom,
dialog > .eyebrow { color: var(--color-text-secondary); }
.stage-orbit { border-color: #cba48c33; }
.slide-count > span { color: var(--color-text-secondary); }
.service-features > span:before, .contact-inner .status-dot { color: var(--color-accent); background: var(--color-accent); }
.mobile-art { background: var(--color-accent-soft); }
.mobile-art:before, .mobile-art:after { border-color: var(--color-accent-mid); }
.art-cross { color: var(--color-accent-mid); }
.art-caption, .art-footnote { color: var(--color-text-secondary); }
.ai-art { background: var(--color-paper); border-color: var(--color-border); }
dialog::backdrop { background: #3e2e286b; }
@media (max-width: 800px) { .menu-toggle { display: inline-flex; } .approach-symbol { display: none; } }
@media (max-width: 700px) {
  body { font-size: var(--text-body-mobile); }
  .hero-signature { width: 45px; height: 4px; margin-top: 20px; }
  .section-symbol { display: inline-block; width: 21px; height: 21px; margin: 0 10px 0 0; vertical-align: middle; }
  .contact-symbol { width: 210px; height: 210px; right: -40px; top: 190px; }
  .dialog-symbol { width: 27px; height: 27px; right: 26px; top: 55px; }
  .wordmark-symbol { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .process-toggle .icon { transition: none; } }
