/* Shared identity: the generated raster silhouette stays identical in both themes. */
:root {
  color-scheme: light;
  --page: #f7f8f0;
  --ink: #102519;
  --forest-soft: #3f5849;
  --water: #3f6b55;
  --brand-ink: #103720;
  --focus: #805012;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #10271f;
  --ink: #eef3e7;
  --forest-soft: #b9cbbd;
  --water: #abc9ae;
  --line: #496052;
  --brand-ink: #c5e765;
  --focus: #e7a0b4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #10271f;
    --ink: #eef3e7;
    --forest-soft: #b9cbbd;
    --water: #abc9ae;
    --line: #496052;
    --brand-ink: #c5e765;
    --focus: #e7a0b4;
  }
}
html, body, .principles article, .exits article, .offer-grid article { background: var(--page); }
body { color: var(--ink); }
.product-list article div p, .developer-note > p, footer p { color: var(--forest-soft); }
.wordmark { gap: 12px; font-size: 1.15rem; }
.wordmark .brand-mark, .brand-mark {
  display: inline-block;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--brand-ink);
  mask: url("/brand/notorganic-knot.png") center / contain no-repeat;
  border-radius: 0;
  transform: none;
}
.site-header { gap: 24px; flex-wrap: wrap; padding-block: 16px; }
.site-header nav { margin-left: auto; gap: 20px; }
.site-header .account-link { color: var(--page); background: var(--brand-ink); }
/* Sun = light, moon = dark. The entire button is a 44px touch target. */
.theme-control { display: inline-flex; align-items: center; justify-content: center; }
.theme-control[hidden] { display: none; }
.theme-toggle { width: 76px; height: 44px; flex: none; padding: 4px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.theme-track { position: relative; display: block; width: 66px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--page); }
.theme-thumb { position: absolute; inset: 3px auto auto 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); transition: transform 180ms ease-out; }
.theme-toggle svg { position: absolute; top: 8px; width: 16px; height: 16px; transition: color 180ms ease-out; }
.theme-sun { left: 8px; color: var(--page); }
.theme-moon { right: 8px; color: var(--ink); }
.theme-toggle[aria-checked="true"] .theme-thumb { transform: translateX(32px); }
.theme-toggle[aria-checked="true"] .theme-sun { color: var(--ink); }
.theme-toggle[aria-checked="true"] .theme-moon { color: var(--page); }
.theme-toggle:hover .theme-track { border-color: currentColor; }
a:focus-visible, .theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .theme-thumb, .theme-toggle svg { transition: none; } }
.hero .brand-mark { width: 100px; height: 100px; background: #c5e765; margin: 0 auto 12px; }
.hero { gap: clamp(32px, 4vw, 64px); grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr); }
.hero-copy h1 { font-size: clamp(3.3rem, 6.4vw, 5.5rem); line-height: 1; }
.account-orbit { min-height: 520px; }
.orbit-center { inset: 28% 23%; min-width: 0; padding: 22px; }
.orbit-center strong { font-size: 1.05rem; }
.orbit-product {
  width: 116px;
  min-width: 0;
  min-height: 124px;
  padding: 14px;
  gap: 3px;
  border-radius: 14px;
  color: #082718;
}
.app-logo { display: block; width: 72px; height: 72px; object-fit: contain; flex: none; }
.orbit-product .app-logo { width: 64px; height: 64px; margin: 0 auto 5px; }
.orbit-product span { margin: 0; }
.orbit-interleave { background: #d7e3c0; }
.twyne-logo { background: #ad2834; mask: url("/brand/twyne.svg") center / contain no-repeat; }
.orbit-twyne { top: 0; right: 12%; }
.orbit-stich { top: 28%; left: 0; }
.orbit-interleave { bottom: 20%; right: 0; }
.orbit-keating { bottom: 0; left: 17%; }
.product-list article { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 38px 0; }
.product-list > article > .app-logo { width: 88px; height: 88px; }
.product-list > article > .twyne-logo { width: 72px; height: 72px; margin: 8px; }
:root[data-theme="dark"] .product-list .twyne-logo { background: #f38b97; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product-list .twyne-logo { background: #f38b97; }
}
.language-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.language-links [aria-current="page"] { font-weight: 800; text-decoration-thickness: 2px; }
.portfolio-grid .app-logo { margin-bottom: 12px; }
.prose-body { min-width: 0; width: 100%; }
.table-scroll { max-width: 100%; }
.portfolio-interleave { background: #d7e3c0; }
.plain-version, .ownership { color: #082718; }
.plain-version .button { color: #f7f8f0; }
.product-list article:hover .product-verb { color: #f7f8f0; }
/* Below-fold content must remain present in full-page captures and without observers. */
.js-reveal [data-reveal] { opacity: 1; transform: none; }
.js-reveal [data-reveal].is-revealed { animation: settle-in 550ms ease-out both; }
@keyframes settle-in { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero,
  :root:not([data-theme="light"]) .page-hero { background: #213f2a; color: #eef3e7; }
}
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-hero { background: #213f2a; color: #eef3e7; }
:root[data-theme="dark"] .page-hero .kicker { color: #c5e765; }
:root[data-theme="dark"] .hero .button-primary { background: #c5e765; color: #082718; }
:root[data-theme="dark"] .orbit-ring { border-color: #839b62; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-hero .kicker { color: #c5e765; }
  :root:not([data-theme="light"]) .hero .button-primary { background: #c5e765; color: #082718; }
  :root:not([data-theme="light"]) .orbit-ring { border-color: #839b62; }
}
@media (max-width: 1100px) {
  .site-header { gap: 14px; }
  .site-header nav { gap: 14px; }
  .hero { padding: 64px 36px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .account-orbit { width: min(460px, 100%); }
  .site-header nav a:not(.account-link) { display: none; }
}
@media (max-width: 600px) {
  .site-header { gap: 10px; }
  .wordmark { font-size: 1rem; gap: 8px; }
  .wordmark .brand-mark { width: 34px; height: 34px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; margin: 0; }
  .site-header nav a[href*="products"], .site-header nav a[href*="services"] { display: inline-flex; align-items: center; min-height: 44px; }
  .theme-control { margin-left: auto; }
  .hero { padding: 44px 22px 32px; gap: 40px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
  .account-orbit { min-height: 390px; }
  .orbit-product { width: 90px; min-height: 104px; padding: 10px; }
  .orbit-product .app-logo { width: 48px; height: 48px; }
  .orbit-product strong { font-size: 0.86rem; }
  .orbit-center { inset: 32% 25%; padding: 12px; }
  .hero .brand-mark { width: 66px; height: 66px; margin-bottom: 6px; }
  .orbit-center strong { font-size: 0.8rem; }
  .product-list article { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
  .product-list > article > .app-logo { width: 64px; height: 64px; margin: 0; }
  .product-list .product-verb { grid-column: 2; }
  .exits { grid-template-columns: 1fr; }
  .account-points { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal].is-revealed { animation: none; }
}
