/* Public experience layer: navigation, editorial hierarchy and guest information. */
:root { --site-ink: #12384d; --site-secondary: #486373; --site-border: #d3dfe5; }
body.knot-site { color: var(--site-ink); }
body.knot-site :is(button,a):focus-visible { outline: 2px solid #12607b; outline-offset: 4px; }
body.knot-site :is(.site-header,.guest-guide,.host-section,.program-status,.contact-layout,.contact-intro) { line-height: 1.85; letter-spacing: .035em; }
body.knot-site .site-header { position: absolute; z-index: 50; inset: var(--safe-top) var(--safe-right) auto var(--safe-left); min-height: 88px; display: flex; align-items: center; gap: 28px; padding: 10px max(24px,4vw); padding-right: 110px; background: #fff; border-bottom: 1px solid #e6ecef; }
.site-brand { display: flex; flex-shrink: 0; align-items: center; gap: 8px; text-decoration: none; color: #12384d; font-size: 16px; font-weight: 500; }
.site-brand img { object-fit: contain; width: 76px; height: 57px; }
.site-brand small { display: block; font-size: 10px; letter-spacing: .09em; color: #486373; }
.site-header nav { margin-left: auto; display: flex; gap: clamp(12px,1.5vw,26px); align-items: center; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: #244b61; font-size: 13px; white-space: nowrap; text-decoration: none; }
.site-header nav a:last-child { padding: 6px 14px; border: 1px solid #7b949f; border-radius: 3px; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
body.knot-site .knot-menu, body.knot-site[data-page="top"] .knot-menu { top: max(20px,var(--safe-top)); opacity: 1; visibility: visible; pointer-events: auto; transform: none; background: #fff; }
body.knot-site .knot-nav-inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(950px,100%); gap: 16px; }
body.knot-site .knot-nav a { writing-mode: horizontal-tb; font-size: clamp(16px,2vw,24px); padding: 14px 16px; text-align: left; border-bottom: 1px solid #d3dfe5; }
body.knot-site .knot-nav p { margin: 0; }
/* Visibility must change immediately so the first Tab can enter the menu. */
body.knot-site .knot-nav { transition: opacity 200ms ease; }
body.knot-site .knot-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
body.knot-site .knot-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
body.knot-site .knot-legal-footer a { min-height: 32px; display: inline-flex; align-items: center; }
body.knot-site[data-page="top"] .encounter-hero { padding-top: clamp(138px,16svh,180px); }
body.knot-site[data-page="top"] .encounter-copy { isolation: isolate; max-width: 860px; padding: 22px 24px 26px; background: #fff; border-radius: 4px; }
body.knot-site[data-page="top"] .encounter-copy h1 { font-size: clamp(21px,2.2vw,32px); line-height: 1.65; text-shadow: none; }
.program-label { margin: 0 0 12px; color: #486373; font-size: 12px; letter-spacing: .12em; }
.program-description { max-width: 43em; margin: 20px auto; font-size: 16px; color: #38586a; line-height: 1.95; }
.program-disclaimer { margin: 16px 0 0; font-size: 12px; color: #486373; }
body.knot-site[data-page="top"] .encounter-copy .program-label { font-size: 12px; letter-spacing: .12em; line-height: 1.7; margin: 0 0 12px; }
body.knot-site[data-page="top"] .encounter-copy .program-description { font-size: 16px; letter-spacing: .025em; line-height: 1.95; margin: 20px auto; text-wrap: pretty; }
body.knot-site[data-page="top"] .encounter-copy .program-disclaimer { font-size: 12px; line-height: 1.7; letter-spacing: .02em; margin: 16px 0 0; text-wrap: balance; }
body.knot-site .amoeba-news-carousel .news-text > span { color: #466374; }
body.knot-site #aboutBelief .plant-thought-label { color: #486653; font-size: 12px; }
.primary-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
body.knot-site .action-link { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 10px 20px; border: 1px solid #76909d; border-radius: 3px; color: #173e54; text-decoration: none; font-size: 15px; font-weight: 500; background: #fff; }
body.knot-site .action-link.primary { color: #fff; background: #173e54; border-color: #173e54; }
body.knot-site[data-page="top"] .hero-article-carousel { margin-top: 32px; }
body.knot-site[data-page="top"] .hero-article-slide { box-shadow: 0 10px 32px #12384d08; }
body.knot-site[data-page="top"] .hero-article-text p { font-size: 16px; color: #38586a; }
body.knot-site[data-page="top"] :is(.hero-article-kicker,.hero-article-kicker span,.hero-article-kicker small,.hero-article-points,.hero-article-points span) { color: #486373; font-size: 12px; }
body.knot-site .hero-article-controls { flex-wrap: wrap; }
body.knot-site .carousel-playback { display: flex; justify-content: center; gap: 14px; align-items: center; margin-top: 12px; }
body.knot-site [data-news-pause] { min-height: 44px; border: 1px solid #76909d; border-radius: 3px; padding: 8px 14px; background: #fff; color: #244b61; font: inherit; font-size: 13px; cursor: pointer; }
body.knot-site .carousel-status { color: #486373; font-size: 12px; }
body.knot-site[data-page="top"] .hero-article-controls .hero-article-dots [data-news-dot] small { color: #486373; font-size: 11px; }
body.knot-site[data-page="top"] .hero-article-controls .hero-article-dots [data-news-dot][aria-selected="true"] small { color: #fff; }
body.knot-site[data-page="top"] .particle-earth-guide { color: #486373; font-size: 12px; }
body.knot-site .city-memory-card:not(.is-open) { visibility: hidden; }
body.knot-site .amoeba-news-carousel .news-text { background: #fff; }
body.knot-site .amoeba-news-carousel .news-text p { color: #38586a; }
body.knot-site :is(.updated-note,.updated-note time) { color: #486373; font-size: 12px; }
body.knot-site .deep-sea-scene { min-height: max(620px,85svh); }
body.knot-site .city-memory-scene { min-height: max(580px,80svh); }
body.knot-site :is(.deep-sea-copy,.city-memory-copy) { padding: 20px; background: #fffffff5; border-radius: 3px; max-width: calc(100% - 48px); }
body.knot-site :is(.deep-sea-copy,.city-memory-copy) { width: min(560px,48vw); }
body.knot-site :is(.deep-sea-copy,.city-memory-copy) h2 { font-size: clamp(23px,2.4vw,34px); line-height: 1.75; letter-spacing: .06em; text-wrap: balance; }
body.knot-site :is(.deep-sea-copy,.city-memory-copy) :is(p,span) { color: #486373; font-size: 12px; }
body.knot-site .guest-guide, body.knot-site .program-status { max-width: 1120px; margin: 0 auto; padding: clamp(48px,7vw,96px) max(20px,4vw); background: #fff; }
body.knot-site .guest-guide h2, body.knot-site .program-status h2 { margin: 12px 0 20px; font-size: clamp(24px,3vw,36px); font-weight: 500; line-height: 1.6; }
body.knot-site .eyebrow { margin: 0; font-size: 12px; letter-spacing: .12em; color: #486373; }
.guest-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 32px 0; }
.guest-facts > div { padding: 24px 0; border-top: 1px solid #76909d; }
.guest-facts dt { color: #486373; font-size: 14px; margin-bottom: 12px; }
.guest-facts dd { margin: 0; }
.guest-facts strong { font-size: clamp(20px,2.4vw,27px); font-weight: 500; }
.guest-guide p { color: #38586a; font-size: 16px; }
.guest-promises { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.guest-promises h3 { font-size: 19px; font-weight: 500; }
.host-section { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(0,1.8fr); align-items: start; gap: clamp(28px,5vw,70px); max-width: 1000px; margin: 48px auto; padding: clamp(28px,5vw,64px) max(20px,4vw); background: #fff; }
.host-section img { width: 100%; height: auto; border-radius: 3px; }
body.knot-site .host-section h2 { font-size: 30px; font-weight: 500; margin: 12px 0; }
.host-section p { font-size: 16px; color: #38586a; }
.host-section .host-role { font-size: 14px; }
body.knot-site .plant-chapter-label span { color: #537160; }
body.knot-site :is(.plant-thought-label,.plant-process-list li > span,.plant-value-grid article > span) { color: #486653; font-size: 12px; }
body.knot-site .activities-belief-label { color: #466374; }
body.knot-site[data-page="about"] .about-hero-note { font-size: 16px; }
body.knot-site :is(.plant-chapter-copy,.plant-thought) p { line-height: 1.95; }
body.knot-site[data-page="contact"] .contact-intro { max-width: 1100px; margin: 0 auto; padding: 148px max(20px,4vw) 28px; }
.contact-intro h1 { font-size: clamp(30px,4vw,48px); font-weight: 500; margin: 12px 0; }
.contact-intro p { max-width: 45em; font-size: 16px; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(230px,1fr); gap: clamp(28px,5vw,64px); max-width: 1100px; margin: 0 auto; padding: 16px max(20px,4vw) 80px; }
body.knot-site .contact-layout .contact-form { margin: 0; padding: 0; max-width: none; border: 0; }
.contact-help { border-top: 1px solid #b3c6cf; padding-top: 18px; }
.contact-help h2 { font-size: 20px; font-weight: 500; }
.contact-help h3, .contact-help summary { font-size: 16px; font-weight: 500; }
.contact-help p { font-size: 15px; color: #38586a; }
.contact-help details { padding: 18px 0; border-bottom: 1px solid #d3dfe5; }
.contact-help summary { cursor: pointer; min-height: 44px; }
.local-preview-note { padding: 12px 16px; background: #f1f6f8; color: #244b61; border-left: 3px solid #547c91; margin-bottom: 20px; }
.public-data-error { padding: 28px; border: 1px solid #c7d7df; color: #244b61; }
.public-data-error button { padding: 10px 18px; min-height: 44px; background: #fff; border: 1px solid #76909d; color: #244b61; font: inherit; }
/* No overlay: the page is usable immediately, even if JS or an image fails. */
body.knot-site #loading { display: none; }
@media (min-width: 1200px) {
  body.knot-site[data-page="top"] .encounter-copy { max-width: 720px; margin-left: max(0px,calc((100% - 1120px)/2)); margin-right: auto; text-align: left; padding-left: 0; }
  body.knot-site[data-page="top"] .encounter-copy .primary-actions { justify-content: flex-start; }
}
@media (max-width: 1199px) { .site-header nav { display: none; } }
@media (max-width: 959px) {
  body.knot-site[data-page="top"] .encounter-hero { display: flex; flex-direction: column; }
  body.knot-site[data-page="top"] .encounter-copy { order: 0; }
  body.knot-site[data-page="top"] .particle-earth-guide { position: static; order: 1; align-self: flex-end; margin: 16px 0 0; }
  body.knot-site[data-page="top"] .particle-earth { position: relative; inset: auto; order: 2; margin-left: calc(-1 * var(--page-gutter)); flex: none; }
  body.knot-site[data-page="top"] .hero-article-carousel { order: 3; margin-top: 8px; }
}
@media (max-width: 760px) {
  .guest-facts,.guest-promises,.contact-layout { grid-template-columns: minmax(0,1fr); }
  .guest-facts { gap: 0; }
  .host-section { grid-template-columns: minmax(0,1fr); }
  .host-section img { width: min(230px,65%); }
  body.knot-site .knot-nav-inner { grid-template-columns: minmax(0,1fr); }
  body.knot-site .deep-sea-copy,body.knot-site .city-memory-copy { left: 20px; top: 48px; max-width: calc(100% - 40px); width: auto; padding: 16px; }
  .contact-help { margin-top: 20px; }
}
@media (max-width: 600px) {
  body.knot-site .site-header { padding-left: 16px; padding-right: 88px; min-height: 86px; }
  .site-brand { font-size: 14px; gap: 6px; }
  .site-brand img { width: 50px; height: 45px; }
  .site-brand small { font-size: 9px; letter-spacing: .035em; }
  body.knot-site[data-page="top"] .encounter-copy { padding: 20px 16px; }
  .program-description { text-align: left; font-size: 15px; }
  .primary-actions .action-link { flex: 1 1 100%; }
  body.knot-site .hero-article-dots button small { color: #486373; }
  body.knot-site .hero-article-dots button.is-active small { color: #fff; }
  body.knot-site .hero-article-dots button span { font-size: 12px; }
  body.knot-site .knot-footer { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { body.knot-site * { scroll-behavior: auto; } }

/* Keep the scenes visual; only the interaction hint needs a caption. */
body.knot-site .copy-keep { white-space: nowrap; }
body.knot-site[data-page="about"] .plant-chapter { padding-block: clamp(56px,6vw,88px); }
body.knot-site[data-page="about"] .landscape-section .plant-chapter h2 { font-size: clamp(24px,3.2vw,40px); }
body.knot-site[data-page="about"] .plant-thought { margin-top: 32px; padding-top: 28px; }
body.knot-site[data-page="about"] .plant-thought h3 { font-size: clamp(22px,2.2vw,30px); margin-bottom: 20px; }
body.knot-site[data-page="about"] .plant-chapter-copy > :last-child { margin-bottom: 0; }
body.knot-site .scene-caption {
  position: absolute;
  z-index: 1;
  inset: auto max(20px,4vw) 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 8px 12px;
  width: fit-content;
  max-width: calc(100% - 40px);
  color: #38586a;
  background: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.8;
  pointer-events: none;
}
