/* Content follows the story without taking the forest away from the visitor. */
/* Backdrop filters can paint a rectangular blur outside rounded cards over
   the WebGL canvas. Keep the translucent surface itself without that halo. */
.home-copy, .chapter-copy, .desktop-nav, .mobile-nav summary {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home-copy, .chapter-copy { background: rgba(253,251,245,.94); }

/* Unified chapter card scale and larger, concise typography across all three stops. */
.chapter-copy, .editorial-copy, .products-copy, .creative-copy {
  width: min(41vw, 492px);
  max-width: 492px;
  padding: 30px 32px;
  color: #221f1a;
}
.chapter-copy .eyebrow { margin: 0 0 10px; color: #8f4d34; font-size: 13.5px; font-weight: 850; letter-spacing: .09em; }
.chapter-copy h2, .chapter-copy h2.product-title, .creative-copy h2 {
  font-size: clamp(42px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 850;
  margin: 0 0 14px;
  text-wrap: balance;
}
.chapter-copy .description, .creative-copy .description {
  font-size: 18.5px;
  line-height: 1.6;
  color: #3f3a32;
  font-weight: 650;
  max-width: none;
  margin: 0 0 22px;
}

/* Single unified interactive row spec across #watch, #products, and #workflow. */
.social-links-platform, .product-choices, .creative-routes { display: grid; gap: 11px; margin: 0; }
.creative-routes:empty, .creative-route[hidden] { display: none !important; }
.social-links-platform .social-pending,
.creative-route {
  border: 1px solid rgba(120,102,82,.28);
  border-radius: 15px;
  background: #fffefb;
  box-shadow: 0 3px 10px rgba(48,42,30,.05);
  color: #201d19;
  transition: background 180ms var(--motion), border-color 180ms var(--motion), box-shadow 180ms var(--motion);
}
.creative-route:hover {
  background: #ffffff;
  border-color: rgba(140,88,62,.55);
  box-shadow: 0 6px 18px rgba(48,42,30,.09);
}
.creative-route[open] {
  background: #ffffff;
  border-color: rgba(140,88,62,.48);
  box-shadow: 0 8px 22px rgba(48,42,30,.10);
}

/* #watch platform rows */
.social-links-platform .social-link,
.social-links-platform .social-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  min-height: 78px;
  padding: 15px 18px;
  font-size: 19.5px;
  font-weight: 800;
  text-decoration: none;
}
.social-links-platform .social-link:has(.social-copy),
.social-links-platform .social-pending:has(.social-copy) {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  justify-content: stretch;
}
.social-icon { display: block; width: 32px; height: 32px; justify-self: center; object-fit: contain; }
.social-copy { display: block; min-width: 0; }
.social-name { display: block; color: #1f1d19; font-size: 19.5px; font-weight: 800; line-height: 1.28; }
.social-note { display: block; margin-top: 4px; color: #5a5348; font-size: 15px; font-weight: 600; line-height: 1.38; }

/* #products rows */
/* Product artwork and the narrow-screen layout are specific to this chapter. */
.product-choice img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.product-choice .k-entry__action i { font-style: normal; }
.product-detail { padding: 4px 18px 18px; border: 0; }
.product-detail p { margin: 0 0 11px; font-size: 16.5px; line-height: 1.62; color: #3c3730; font-weight: 600; }
.product-detail .product-meta { color: #6c6052; font-size: 14.5px; font-weight: 750; }
.product-detail .screen-preview { margin: 0 0 14px; }
.product-detail .screen-preview img { height: 104px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.detail-actions a { font-size: 16px; font-weight: 800; color: #2b251e; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b79c84; }
.detail-actions a:hover { text-decoration-color: currentColor; }
.product-close { margin-top: 14px; padding: 4px 0; border: 0; background: transparent; color: #5e5246; font-size: 14.5px; font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* #workflow rows */
.creative-chapter { display: flex; align-items: center; padding: 100px clamp(24px,4vw,64px) 64px; }
.creative-route, .creative-step, .creative-role { overflow: hidden; }
.creative-step, .creative-role { border: 1px solid rgba(128,112,92,.22); border-radius: 12px; background: rgba(252,250,244,.9); }
.creative-route > summary, .creative-step > summary, .creative-role > summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.creative-route > summary::-webkit-details-marker, .creative-step > summary::-webkit-details-marker, .creative-role > summary::-webkit-details-marker { display: none; }
.creative-route > summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 78px;
  padding: 15px 18px;
}
.creative-step > summary:hover, .creative-role > summary:hover { background: rgba(255,255,255,.88); }
.creative-route > summary:focus-visible, .creative-step > summary:focus-visible, .creative-role > summary:focus-visible { outline: 3px solid #8c624c; outline-offset: -3px; }
.creative-route-number { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #ebe0cc; color: #5c4131; font-size: 14px; font-weight: 850; }
.creative-route-title { flex: 1; min-width: 0; }
.creative-route-title b, .creative-route-title small { display: block; }
.creative-route-title b { font-size: 19.5px; font-weight: 800; line-height: 1.28; color: #1f1d19; }
.creative-route-title small { margin-top: 4px; color: #5a5348; font-size: 15px; font-weight: 600; line-height: 1.38; }
.creative-plus { flex: 0 0 auto; color: #8f4d34; font-size: 22px; font-weight: 750; line-height: 1; transition: transform 250ms var(--motion); }
[open] > summary > .creative-plus { transform: rotate(45deg); }
.creative-body { padding: 4px 18px 18px; color: #3c3730; font-size: 16px; line-height: 1.65; }
.creative-body p { margin: 0 0 11px; }
.creative-body p:last-child { margin-bottom: 0; }
.creative-lead { margin: 0 0 12px; }
.creative-steps, .creative-roles { display: grid; gap: 8px; }
.creative-step > summary { gap: 11px; min-height: 52px; padding: 10px 14px; }
.creative-step > summary span:first-child { color: #8f4d34; font-size: 13.5px; font-weight: 850; }
.creative-step > summary b { flex: 1; color: #1f1d19; font-size: 16.5px; font-weight: 800; }
.creative-detail { padding: 0 14px 13px 38px; font-size: 15.5px; line-height: 1.62; }
.creative-detail a { color: #624536; font-weight: 800; text-underline-offset: 3px; }
.creative-role > summary { gap: 10px; min-height: 48px; padding: 9px 13px; }
.creative-role > summary b { flex: 1; color: #1f1d19; font-size: 15.5px; }
.creative-role > summary span { color: #6a6156; font-size: 13.5px; }
.creative-role > summary i { color: #8f4d34; font-size: 19px; line-height: 1; font-style: normal; transition: transform 250ms var(--motion); }
.creative-role[open] > summary i { transform: rotate(45deg); }
.creative-role > p { padding: 0 13px 13px; }
@media (max-width: 760px) {
  .chapter-copy, .editorial-copy, .products-copy, .creative-copy { width: 100%; max-width: 500px; margin: 0 auto; padding: 22px 22px; }
  .chapter-copy h2, .chapter-copy h2.product-title, .creative-copy h2 { font-size: clamp(36px, 9.5vw, 40px); margin-bottom: 12px; }
  .chapter-copy .description, .creative-copy .description { font-size: 17px; margin-bottom: 18px; }
  .creative-chapter { display: block; padding: calc(48vh + 16px) 20px 56px; padding: calc(48svh + 16px) 20px 56px; }
  .social-links-platform .social-link,
  .social-links-platform .social-pending,
  .creative-route > summary { min-height: 72px; padding: 13px 16px; gap: 13px; }
  .social-name, .creative-route-title b { font-size: 18px; }
  .social-note, .creative-route-title small { font-size: 14px; }
  .detail-actions a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .creative-plus, .creative-role > summary i { transition: none; } }

/* A separate forest-world experience: the work surface remains visible while
   its controls and explanation sit along the edges of the viewport. */
.pipeline-open { display: inline-flex; align-items: center; gap: 18px; min-height: 42px; padding: 9px 14px; border: 1px solid rgba(121,95,70,.25); border-radius: 10px; background: #302c26; color: #fffdf5; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pipeline-open:hover { background: #4c4032; }
.pipeline-open:focus-visible, .pipeline-back:focus-visible, .pipeline-stages button:focus-visible { outline: 3px solid #a6653e; outline-offset: 3px; }
.pipeline-open-entry { justify-content: space-between; width: 100%; margin-top: 4px; }
.pipeline-experience[hidden] { display: none !important; }
.pipeline-experience { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: hidden; background: #f2ede0; color: #292720; }
.pipeline-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; touch-action: auto; }
.pipeline-canvas:focus-visible { outline: 3px solid #a6653e; outline-offset: -4px; }
.pipeline-canvas canvas { display: block; width: 100%; height: 100%; }
.workshop-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; overflow: hidden; background: #efeadd; pointer-events: none; }
.workshop-loading[hidden] { display: none; }
.workshop-loading img { display: block; width: min(700px, 100vw); height: auto; transform: translateY(-4vh); }
.pipeline-status { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 9px 13px; border-radius: 10px; background: rgba(250,248,238,.94); color: #51493b; font-size: 13px; font-weight: 700; text-align: center; }
.pipeline-status[hidden] { display: none; }
.pipeline-header { position: absolute; z-index: 3; top: 20px; left: 24px; right: 24px; display: flex; align-items: flex-start; gap: 16px; pointer-events: none; }
.pipeline-back { pointer-events: auto; flex: 0 0 auto; min-height: 46px; padding: 10px 16px; border: 1px solid rgba(138,123,102,.3); border-radius: 13px; background: rgba(253,251,245,.96); color: #28241e; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pipeline-heading { padding: 10px 16px; border: 1px solid rgba(255,255,255,.86); border-radius: 14px; background: rgba(253,251,245,.95); }
.pipeline-heading h2 { margin: 0; color: #24211b; font-size: 22px; line-height: 1.2; font-weight: 850; }
.pipeline-subtitle { margin: 3px 0 0; color: #63584a; font-size: 13.5px; font-weight: 650; line-height: 1.35; }
.pipeline-controls { position: absolute; z-index: 3; top: auto; right: 24px; bottom: 22px; left: 24px; inset: auto 24px 22px; display: flex; align-items: flex-end; gap: 16px; pointer-events: none; }
.pipeline-detail { pointer-events: auto; flex: 0 0 min(390px,36vw); max-height: min(44vh,340px); overflow-y: auto; padding: 18px 20px; border: 1px solid rgba(255,255,255,.86); border-radius: 18px; background: rgba(253,251,245,.96); box-shadow: 0 10px 30px rgba(42,36,26,.13); }
.pipeline-detail [hidden] { display: none !important; }
.pipeline-detail h3 { margin: 4px 0 8px; font-size: 21px; line-height: 1.28; font-weight: 850; }
.pipeline-detail p { margin: 0; color: #433e34; font-size: 15px; line-height: 1.62; font-weight: 600; }
.pipeline-detail .pipeline-kicker { color: #8f4d34; font-size: 12.5px; font-weight: 850; letter-spacing: .04em; }
.pipeline-detail .pipeline-footnote { margin-top: 9px; color: #686054; font-size: 13.5px; }
.pipeline-stages { pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-left: auto; }
.pipeline-stages button { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 9px 13px; border: 1px solid rgba(126,110,89,.24); border-radius: 11px; background: rgba(253,251,245,.96); color: #433d33; font: inherit; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.pipeline-stages button span { color: #8a5c44; font-size: 11.5px; }
.pipeline-stages button[aria-current] { border-color: #2b2620; background: #2b2620; color: #fffdf8; }
.pipeline-stages button[aria-current] span { color: #ecc9af; }
@media (max-width: 760px) {
  .pipeline-header { top: 12px; left: 12px; right: 12px; gap: 8px; }
  .pipeline-back { min-height: 40px; padding: 7px 10px; font-size: 12px; }
  .pipeline-heading { padding: 6px 10px; }
  .pipeline-heading h2 { font-size: 15px; }
  .pipeline-subtitle { font-size: 10.5px; }
  .pipeline-controls { left: 12px; right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
  .pipeline-detail { flex: none; width: min(100%, 360px); max-height: 24vh; padding: 10px 12px; }
  .pipeline-detail h3 { font-size: 15px; margin-bottom: 3px; }
  .pipeline-detail p { font-size: 12px; line-height: 1.5; }
  .pipeline-stages { justify-content: stretch; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; width: 100%; }
  .pipeline-stages button { justify-content: center; min-height: 40px; padding: 6px 3px; font-size: 11px; }
}
@media (max-width: 360px) {
  .pipeline-header { gap: 5px; }
  .pipeline-heading { padding: 8px; }
  .pipeline-heading h2 { margin: 0; font-size: 12px; white-space: nowrap; }
  .pipeline-subtitle { display: none; }
}

/* Workstations and their handoffs share the existing compact controls. */
.pipeline-navigation { pointer-events: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 0; margin-left: auto; }
.pipeline-team-list { width: min(100%, 610px); }
.pipeline-team-list > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(126,110,89,.24); border-radius: 11px; background: rgba(253,251,245,.96); color: #302b23; font-size: 14px; font-weight: 800; list-style: none; cursor: pointer; }
.pipeline-team-list > summary::-webkit-details-marker { display: none; }
.pipeline-team-list > summary span { font-size: 19px; line-height: 1; color: #8f4d34; }
.pipeline-team-list[open] > summary span { transform: rotate(45deg); }
.pipeline-team-list > summary:focus-visible, .pipeline-bots button:focus-visible { outline: 3px solid #a6653e; outline-offset: 2px; }
.pipeline-bots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-height: min(28vh, 190px); overflow: auto; padding: 7px 0 0; }
.pipeline-bots button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 12px; border: 1px solid rgba(126,110,89,.22); border-radius: 10px; background: rgba(253,251,245,.96); color: #433d33; font: inherit; font-size: 13.5px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.pipeline-bots button[aria-current] { border-color: #2b2620; background: #2b2620; color: #fffdf8; }
.pipeline-detail [data-bot-panel] p + p { margin-top: 7px; }
.pipeline-detail [data-bot-panel] strong { color: #302c26; }
@media (max-width: 760px) {
  .pipeline-navigation { align-items: stretch; gap: 5px; width: 100%; }
  .pipeline-team-list { width: 100%; }
  .pipeline-team-list > summary { min-height: 44px; padding: 5px 10px; }
  .pipeline-bots { justify-content: flex-start; flex-wrap: nowrap; max-height: none; overflow-x: auto; overscroll-behavior-inline: contain; padding: 5px 0 2px; }
  .pipeline-bots button { flex: 0 0 auto; min-height: 44px; padding: 6px 9px; font-size: 11px; }
}

.pipeline-handoff { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:9px; }
.pipeline-handoff span { color:#766b5c; font-size:11px; font-weight:700; }
.pipeline-handoff button { min-height:36px; padding:5px 8px; border:1px solid rgba(126,110,89,.2); border-radius:8px; background:rgba(255,255,250,.9); color:#514132; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.pipeline-handoff button:focus-visible { outline:3px solid #a6653e; outline-offset:2px; }
@media(max-width:760px) { .pipeline-handoff button { min-height:44px; } }

@media(max-width:760px) { .pipeline-detail[data-mode="bot"] { max-height:min(32vh,260px); } }
@media(max-width:760px) {
  .pipeline-handoff:has(button:nth-of-type(3)) span { flex-basis:100%; }
}
@media(max-width:360px) {
  .pipeline-handoff:has(button:nth-of-type(3)) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .pipeline-handoff:has(button:nth-of-type(3)) span { grid-column:1 / -1; }
  .pipeline-handoff:has(button:nth-of-type(3)) button { min-width:0; padding:4px; font-size:10px; }
}
@media(max-width:360px) {
  .pipeline-detail[data-mode="bot"] { max-height:min(45vh,280px); }
}

.pipeline-detail .pipeline-route-status { margin:9px 0 0; padding-top:8px; border-top:1px solid rgba(113,106,89,.23); color:#645343; font-size:12px; font-weight:700; }

.pipeline-route-status button { min-height:36px; padding:4px 8px; border:1px solid rgba(126,110,89,.2); border-radius:7px; background:rgba(255,255,250,.92); color:#514132; font:inherit; font-size:12px; cursor:pointer; }
.pipeline-route-status button:focus-visible { outline:3px solid #a6653e; outline-offset:2px; }
@media(max-width:760px) { .pipeline-route-status button { min-height:44px; } }

.pipeline-route-status[hidden] { display:none!important; }
.pipeline-route-status { position:absolute; z-index:4; top:22px; right:24px; display:flex; align-items:center; gap:8px; max-width:calc(100% - 48px); margin:0; padding:5px 8px 5px 12px; border:1px solid rgba(126,110,89,.2); border-radius:10px; background:rgba(250,248,238,.96); color:#514132; font-size:12px; font-weight:700; }
@media(max-width:760px) { .pipeline-route-status { top:60px; right:12px; max-width:calc(100% - 24px); } }
.pipeline-route-status button { flex:0 0 auto; white-space:nowrap; }
@media(max-width:760px) {
  .pipeline-route-status { gap:4px; font-size:11px; }
  .pipeline-route-status button { font-size:11px; }
}

.pipeline-closeup { float:right; min-height:36px; margin:0 0 6px 8px; padding:5px 9px; border:1px solid rgba(126,110,89,.24); border-radius:8px; background:rgba(255,255,250,.94); color:#514132; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.pipeline-closeup[hidden] { display:none; }
.pipeline-closeup:focus-visible { outline:3px solid #a6653e; outline-offset:2px; }
@media(max-width:760px) { .pipeline-closeup { min-height:44px; } }

.pipeline-compact { float:right; min-height:36px; margin:0 0 6px 8px; padding:5px 8px; border:1px solid rgba(126,110,89,.24); border-radius:8px; background:rgba(255,255,250,.94); color:#514132; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.pipeline-compact[hidden] { display:none; }
.pipeline-compact:focus-visible { outline:3px solid #a6653e; outline-offset:2px; }
.pipeline-detail.is-compact [data-bot-panel]:not([hidden]) > p:not(.pipeline-kicker) { display:none; }
@media(max-width:760px) { .pipeline-compact { min-height:44px; } }
.pipeline-detail.is-compact .pipeline-handoff { display:none; }

@media(max-width:360px) { .pipeline-detail[data-mode="bot"] article > h3 { clear:both; margin-top:4px; } }

.pipeline-route-text { min-width:0; white-space:nowrap; }
@media(max-width:360px) { .pipeline-route-prefix { display:none; } }

/* Keep all six responsibilities available while giving the factory more room. */
@media (max-width: 760px) {
  .pipeline-stages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pipeline-stages button { min-width: 0; min-height: 44px; padding: 5px 1px; }
  .pipeline-stages button span { display: none; }
}
@media (max-width: 360px) {
  .pipeline-stages button { font-size: 10px; letter-spacing: -.02em; }
}

.social-copy { display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.social-note { color:#5a5348; font-size:15px; line-height:1.38; font-weight:600; }

@media (max-width:760px) {
  .pipeline-stages [data-pipeline-stage="operate"] span, .pipeline-stages [data-pipeline-stage="context"] span { display:block; font-size:9px; line-height:1; }
}

@media (max-width:760px) {
  .pipeline-stages [data-pipeline-stage="operate"], .pipeline-stages [data-pipeline-stage="context"] { flex-direction:column; gap:1px; line-height:1.15; }
}

/* Keep the full chapter card in view on common phone screens. Taller cards
   still extend the chapter naturally so their remaining content can scroll. */
@media (max-width: 760px) {
  .chapter-content, .creative-chapter {
    padding-top: clamp(150px, 32svh, 300px);
  }
}
@media (max-width: 360px) {
  .product-entry .product-choice {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 6px 10px;
    padding: 12px;
  }
  .product-entry .product-choice img { width: 40px; height: 40px; }
}
/* On short phone screens a chapter can be taller than the viewport; mandatory
   snapping can jump past its remaining controls before they can be reached. */
@media (max-width: 760px) and (max-height: 740px) {
  html { scroll-snap-type: none; }
}
