.orientation-page { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.65; background: radial-gradient(circle at 15% 0, rgba(37,99,235,.1), transparent 34%), var(--bg-color); color: var(--text-color); }
.orientation-page *, .orientation-page *::before, .orientation-page *::after { box-sizing: border-box; }
.orientation-page a { color: var(--link-color); }
.orientation-page :focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; }
.orientation-header { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 1rem; padding-block: 1rem; }
.orientation-header a { font-weight: 700; text-decoration: none; }
.tour-intro { max-width: 780px; padding: clamp(2rem, 7vw, 5rem) 0 2rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--link-color); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tour-intro h1 { margin: 0; color: var(--heading-color); font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 1.03; letter-spacing: -.04em; }
.tour-intro > p:last-child { max-width: 70ch; color: var(--muted-color); font-size: 1.08rem; }
.tour { padding-bottom: 1.5rem; }
.tour-status { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 44px; margin-bottom: 1rem; }
.progress { grid-column: 2; display: flex; justify-content: center; gap: clamp(.35rem, 1.4vw, .75rem); margin: 0; padding: 0; list-style: none; }
.progress a { display: block; width: 13px; height: 13px; border: 2px solid var(--border-color); border-radius: 50%; background: var(--surface-color); transition: transform .2s, background .2s; }
.progress a[aria-current="step"] { border-color: var(--link-color); background: var(--link-color); transform: scale(1.3); }
.tour-exit { grid-column: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; justify-self: end; min-width: 0; }
.tour-exit > p { margin: 0; padding-right: .85rem; color: var(--muted-color); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.skip { min-height: 44px; padding: 0 0 0 .85rem; border: 0; border-left: 1px solid var(--border-color); background: transparent; color: var(--link-color); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tour-step { scroll-margin-top: 1rem; }
.tour-step + .tour-step { margin-top: 4rem; }
.tour-js .tour-step[hidden] { display: none; }
/* In the interactive tour every exhibit occupies the same frame. The spacing
   above later steps is only needed by the no-JavaScript, all-steps fallback. */
.tour-js .tour-step { margin-top: 0; }
.tour-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr); min-height: 530px; overflow: hidden; border: 1px solid var(--border-color); border-radius: 26px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface-color) 90%, #2563eb 10%), var(--card-color)); box-shadow: 0 22px 60px var(--shadow-color); }
.visual { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 310px; padding: 2rem; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(34,211,238,.15), transparent 32%), linear-gradient(145deg, rgba(37,99,235,.11), rgba(124,58,237,.12)); color: var(--heading-color); }
.visual::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(80,120,180,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(80,120,180,.25) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent); }
.callout { position: relative; align-self: center; max-height: 500px; overflow: auto; margin: 1.25rem 1.25rem 1.25rem -2rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--border-color); border-radius: 20px; background: color-mix(in srgb, var(--card-color) 94%, transparent); box-shadow: 0 14px 35px var(--shadow-color); backdrop-filter: blur(14px); }
.callout h2 { margin: 0 0 1rem; color: var(--heading-color); font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.12; }
.callout h3 { margin-bottom: .4rem; font-size: 1rem; }
.callout p, .callout li, .callout dd { color: var(--text-color); }
.callout ul { padding-left: 1.2rem; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin: 1rem 0 0; }
.roles div { padding: .55rem; border-radius: 8px; background: var(--surface-color); }
.roles dt { font-weight: 800; font-size: .8rem; }
.roles dd { margin: 0; color: var(--muted-color); font-size: .78rem; }
.boundary { padding: .75rem 1rem; border-left: 3px solid #7c3aed; background: var(--surface-color); }
.boundary p { margin-bottom: 0; }
.prompts { font-size: .88rem; }
.step-actions { display: flex; justify-content: flex-end; gap: .75rem; padding-top: 1rem; }
.tour-button, .tour-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--card-color); color: var(--text-color); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.tour-next, .tour-restart, .tour-finish, .tour-cta { border-color: transparent; background: linear-gradient(120deg, #155ed0, #6345c5); color: #fff !important; }
.tour-button:disabled { opacity: .42; cursor: not-allowed; }
.choice-grid { display: grid; gap: .75rem; }
.choice-grid section { padding: 1rem; border: 1px solid var(--border-color); border-radius: 13px; background: var(--surface-color); }
.choice-grid h3 { margin-top: 0; }
.visual-welcome { flex-direction: column; gap: .5rem; font-size: 1.2rem; }
.visual-welcome strong { z-index: 1; font-size: clamp(2rem, 5vw, 4rem); }
.orbit { position: absolute; width: 290px; height: 150px; border: 1px solid rgba(37,99,235,.5); border-radius: 50%; transform: rotate(24deg); }
.orbit-b { transform: rotate(-35deg); border-color: rgba(124,58,237,.55); }
.visual-network .node { position: absolute; z-index: 1; min-width: 92px; padding: .65rem; border: 1px solid var(--border-color); border-radius: 999px; background: var(--card-color); text-align: center; font-weight: 800; box-shadow: 0 7px 20px var(--shadow-color); }
.visual-network::after { content: ""; width: 58%; height: 58%; border: 1px solid rgba(37,99,235,.45); border-radius: 50%; }
.visual-network .core { min-width: 125px; background: linear-gradient(120deg,#155ed0,#6345c5); color:#fff; }
.n1 { top: 16%; }.n2 { right: 9%; }.n3 { bottom: 14%; }.n4 { left: 8%; }
.visual-flow { flex-wrap: wrap; gap: .65rem; align-content: center; }
.visual-flow span { z-index: 1; padding: .7rem .85rem; border-radius: 10px; background: var(--card-color); box-shadow: 0 6px 18px var(--shadow-color); font-weight: 750; }
.visual-flow span:not(:last-child)::after { content: "→"; margin-left: .8rem; color: var(--link-color); }
.visual-sections, .visual-paths { gap: 1rem; }
.visual-sections > span, .visual-paths > span { z-index: 1; display: grid; gap: .7rem; width: 42%; padding: 1.2rem; border: 1px solid var(--border-color); border-radius: 15px; background: var(--card-color); }
.visual-sections i { height: 8px; border-radius: 9px; background: var(--border-color); }
.visual-outputs { flex-wrap: wrap; gap: .7rem; align-content: center; }
.visual-outputs b { z-index: 1; width: 100%; text-align: center; font-size: 1.5rem; }
.visual-outputs span { z-index: 1; padding: .65rem; border-radius: 9px; background: var(--card-color); box-shadow: 0 5px 16px var(--shadow-color); }
.visual-record { z-index: 1; flex-direction: column; align-items: stretch; gap: .9rem; max-width: 430px; margin: auto; border-radius: 16px; background: var(--card-color); box-shadow: 0 14px 35px var(--shadow-color); }
.record-head { color: var(--link-color); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.record-tags { display: flex; gap: .5rem; }.record-tags i { padding: .35rem .55rem; border-radius: 7px; background: var(--surface-color); font-style: normal; }
.visual-assistant { gap: 1rem; }.assistant-mark { z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg,#0891b2,#6d28d9); color:#fff; font-weight:900; }
.visual-assistant div { z-index: 1; display:grid; gap:.6rem; }.visual-assistant i { padding:.65rem; border-radius:9px; background:var(--card-color); font-style:normal; box-shadow:0 4px 14px var(--shadow-color); }
.visual-paths { flex-wrap: wrap; }.visual-paths i { font-style: normal; color: var(--muted-color); }.visual-paths em { z-index:1; font-weight:900; }
.orientation-footer { padding-block: 1rem; border-top: 1px solid var(--border-color); color: var(--muted-color); }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
@media (max-width: 760px) {
  .tour-status { grid-template-columns: 1fr; }.tour-exit { grid-row: 1; grid-column: 1; }.progress { grid-row: 2; grid-column: 1; }.tour-stage { display: flex; flex-direction: column; min-height: 0; }.visual { order: 1; min-height: 270px; }.callout { order: 2; max-height: none; overflow: visible; margin: 0; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }.step-actions { order: 3; }.roles { grid-template-columns: 1fr; }.visual-paths > span { width: 100%; }.visual-paths em { width: 100%; text-align:center; }
}
@media (max-width: 460px) { .tour-intro { padding-top: 2.5rem; }.orientation-header { padding-right: 7.5rem; align-items:flex-start; flex-direction:column; }.step-actions { display:grid; grid-template-columns:1fr 1.4fr; }.tour-button { padding-inline:.6rem; font-size:.85rem; }.visual { min-height:230px; padding:1rem; }.visual-sections > span { width:48%; padding:.8rem; }.visual-network .node { min-width:75px; font-size:.72rem; }.visual-network .core { min-width:105px; }.callout { padding:1.25rem; }.tour-exit { row-gap:.25rem; }.tour-exit > p { font-size:.78rem; }.skip { font-size:.82rem; }.progress a { width:12px; height:12px; } }
@media (prefers-reduced-motion: reduce) { .orientation-page *, .orientation-page *::before, .orientation-page *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; } }
#explore .callout { max-height: none; }

/* Lab-tour presentation: keep the tour centered at a comfortable reading width. */
.orientation-page .container { max-width: 1328px; padding-inline: clamp(24px, 4.5vw, 64px); }
.orientation-page { min-height: 100vh; }
.orientation-header { position: relative; min-height: 56px; padding-block: .65rem; border-bottom: 1px solid var(--border-color); }
.orientation-header h1 { position: absolute; left: 50%; margin: 0; transform: translateX(-50%); color: var(--heading-color); font-size: clamp(1.2rem, 2vw, 1.85rem); line-height: 1.2; white-space: nowrap; }
.orientation-header a { color: var(--text-color); }
.orientation-header .home-link { display: inline-flex; gap: .5rem; align-items: center; }
.tour { padding-top: 10px; }
.tour-status { margin: .5rem 0 .65rem; }
.tour-stage { grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); min-height: 0; height: clamp(500px, calc(100dvh - 235px), 680px); border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 20px; overflow: visible; }
.welcome-overview { min-width: 0; padding: clamp(18px, 2vw, 30px); overflow: auto; border-radius: 22px; background: #f8fafc; color: #101827; box-shadow: 0 20px 55px rgba(0,5,14,.28); }
.entrance-map { position: relative; }
.welcome-overview img { display: block; width: 100%; height: auto; border-radius: 14px; }
.guide-marker { z-index: 1; padding: .28rem .65rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(6,21,37,.82); color: #fff; box-shadow: 0 4px 14px rgba(0,5,14,.22); font-size: clamp(.68rem, .9vw, .8rem); font-weight: 800; line-height: 1.35; letter-spacing: .01em; backdrop-filter: blur(6px); }
.entrance-map-label { position: absolute; top: clamp(8px, 1.4vw, 14px); left: clamp(8px, 1.4vw, 14px); }
.map-point { position: relative; display: flow-root; }
.map-point .guide-marker { position: absolute; top: -.35rem; }
.map-point-philosophy .guide-marker { left: clamp(8px, 2vw, 22px); }
.map-point-tour .guide-marker { right: clamp(8px, 2vw, 22px); }
.welcome-overview p { margin: .6rem 0; }
.welcome-overview .orientation-topic { display: table; margin: .8rem auto; padding: .4rem 1.1rem; border-radius: 999px; background: #e9f1ff; color: #155ed0; font-weight: 800; }
.welcome-overview .orientation-action { display: table; padding: .55rem 1.1rem; border: 1px solid #cbd5e1; border-radius: 999px; color: #155ed0; font-weight: 800; }
.welcome-overview .entrance-quote { color: #4b5563; font-style: italic; }
.welcome-overview .entrance-languages { display: flex; gap: .75rem; align-items: center; font-size: 1.15rem; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; }
.welcome-overview .entrance-introduction { font-size: 1.02rem; line-height: 1.55; }
.welcome-overview details { margin-top: .8rem; padding: .65rem 1rem; border-radius: 10px; background: #e9edf3; }
.welcome-overview summary { cursor: pointer; font-weight: 750; }
.orientation-page .welcome-overview :is(p, summary, details, strong) { color: #101827 !important; }
.orientation-page .welcome-overview .entrance-quote { color: #4b5563 !important; }
.orientation-page .welcome-overview details { background: #e9edf3 !important; background-image: none !important; box-shadow: none !important; }
#welcome .callout { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; max-height: none; margin: 0; padding: clamp(22px, 2.2vw, 34px) clamp(26px, 3vw, 42px); border-radius: 22px; background: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97)); color: #eef5ff; box-shadow: inset 0 1px rgba(255,255,255,.05); }
#welcome .callout h2 { margin: 0 0 .6rem; color: #f6f9ff; font-size: clamp(1.75rem, 2vw, 2.25rem); line-height: 1.2; }
#welcome .callout p { margin: .3rem 0; color: #e6edf7; font-size: clamp(.88rem, .95vw, 1rem); line-height: 1.5; }
#welcome .callout section { margin-top: .5rem; padding-left: .75rem; border-left: 2px solid rgba(244,114,182,.65); }
#welcome .callout h3 { margin: 0 0 .12rem; color: #fff; font-size: clamp(.9rem, .96vw, 1rem); }
#welcome .title-rule { display: block; width: 80px; height: 4px; margin: 0 0 .6rem; border-radius: 3px; background: #2f6eff; }
#welcome .callout .map-message { color: #fff; font-weight: 800; }
#welcome .callout .from-here { margin-top: .55rem; font-weight: 750; }
.entrance-options { display: grid; gap: .32rem; margin: .15rem 0 .45rem; padding: 0; list-style: none; }
.entrance-options li { color: #e6edf7; font-size: clamp(.86rem, .92vw, .98rem); line-height: 1.4; }
.entrance-options li span { display: inline-block; width: 1.7rem; }
#welcome .callout .assistant-note { display: grid; gap: .2rem; margin-top: .8rem; padding: .65rem .8rem; border: 1px solid rgba(86,168,255,.28); border-left: 3px solid #56a8ff; border-radius: 0 8px 8px 0; background: rgba(86,168,255,.1); color: #d9ecff; font-size: .86rem; line-height: 1.45; }
#welcome .callout .assistant-note strong { color: #fff; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
#welcome .callout .orientation-invitation { margin-top: .8rem; color: #fff; font-weight: 750; }
.step-actions { padding-top: 10px; }
.tour-button { min-height: 48px; }

@media (min-width: 901px) and (min-height: 700px) {
  .orientation-page { height: 100dvh; overflow: hidden; }
  .orientation-footer { display: none; }
}

@media (max-width: 900px) {
  .orientation-header h1 { position: static; order: -1; width: 100%; transform: none; text-align: center; }
  .orientation-header { flex-wrap: wrap; }
  .tour-stage { display: flex; flex-direction: column; height: auto; }
  #welcome .callout { min-height: 410px; }
}
@media (max-width: 600px) {
  .orientation-header { display: grid; grid-template-columns: 1fr auto; padding-right: 16px; }
  .orientation-header h1 { grid-column: 1 / -1; font-size: 1.1rem; }
  .orientation-header h1 span { display: none; }
  .tour { padding-top: 12px; }
  .welcome-overview { padding: 15px; border-radius: 16px; }
  .welcome-overview .orientation-topic { border-radius: 12px; text-align: center; }
  #welcome .callout { min-height: 0; padding: 28px 22px; border-radius: 16px; }
  #welcome .callout h2 { font-size: 1.75rem; }
  #welcome .callout p { font-size: 1rem; line-height: 1.8; }
}

/* Step 4: the homepage archive, retained at its original scale and rhythm. */
.outputs-overview { position: relative; min-width: 0; padding: clamp(18px, 2vw, 30px); overflow: auto; border-radius: 22px; background: #f8fafc; color: #111827; box-shadow: 0 20px 55px rgba(0,5,14,.28); }
.outputs-preview-sizer { position: relative; width: 100%; }
.outputs-preview-stage { width: 980px; max-width: none; transform: scale(var(--outputs-preview-scale, 1)); transform-origin: top left; }
.outputs-preview-content .preview-disabled-media { cursor: default; }
.outputs-preview-content { position: relative; padding: 1px 0 30px; color: #111; --accent2: #2b64ff; --line: #e3e8f0; --radius2: 14px; --muted: #5f6b7a; --shadow: 0 12px 30px rgba(18,26,40,.08); --focus: 0 0 0 3px rgba(43,100,255,.3); }
.outputs-preview-content .outputs-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.outputs-preview-content .outputs-heading h2 { margin: 0; color: #111827 !important; font-size: 1.5em; }
.outputs-preview-content .analytics-link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 6px 10px; border: 1px solid rgba(43,100,255,.32); border-radius: 999px; background: rgba(43,100,255,.08) !important; color: #2b64ff !important; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.outputs-preview-content .outputs-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.outputs-preview-content .output-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 116px; padding: 7px 10px; border: 1px solid #e3e8f0 !important; border-radius: 14px; background: rgba(255,255,255,.75) !important; box-shadow: 0 6px 18px rgba(18,26,40,.05) !important; }
.outputs-preview-content .output-stat span { color: #5f6b7a !important; font-size: 12px; white-space: nowrap; }
.outputs-preview-content .output-stat strong { color: #111827 !important; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1; }
.outputs-preview-content details.fold { position: relative; margin: 12px 0; border: 1px solid #e3e8f0 !important; border-radius: 14px; background: #fff !important; color: #111 !important; box-shadow: 0 8px 22px rgba(18,26,40,.06) !important; }
.outputs-preview-content details.fold > summary { padding: 14px 16px; color: #111827 !important; font-weight: 750; cursor: pointer; }
.outputs-preview-content .fold-body { margin-top: 10px; padding: 0 16px 16px; background: #fff !important; background-image: none !important; color: #111827 !important; }
.outputs-preview-content .box { padding: 0; border-color: transparent !important; background: transparent !important; background-image: none !important; color: #111827 !important; box-shadow: none !important; }
.outputs-preview-content .outputs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; background: transparent !important; background-image: none !important; color: #111827 !important; list-style: none; }
.outputs-preview-content .outputs-grid li { position: relative; min-width: 0; padding: 14px; border: 1px solid #e3e8f0 !important; border-radius: 12px; background: #fff !important; color: #111 !important; box-shadow: 0 5px 15px rgba(18,26,40,.05) !important; }
.outputs-preview-content a { color: #155ed0 !important; }
.outputs-preview-content a[aria-disabled="true"] { color: #64748b !important; cursor: default; }
.outputs-preview-content .preview-link:focus-visible, .outputs-preview-content summary:focus-visible { outline: 3px solid #155ed0; outline-offset: 3px; }
.outputs-preview-content .guide-marker.outputs-marker { position: absolute; z-index: 3; padding: .35rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; background: rgba(255,255,255,.97); color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.12); font-size: .8rem; white-space: nowrap; pointer-events: none; }
.outputs-marker-title { top: 2px; left: 450px; }
.outputs-marker-analytics { top: 52px; right: 0; }
.outputs-archive-marker-row { display: flex; align-items: center; min-height: 32px; margin: 0 0 8px; }
.outputs-preview-content .guide-marker.outputs-marker-archive { position: static; display: inline-flex; }
.outputs-categories-marker-row { display: flex; align-items: center; justify-content: flex-end; min-height: 32px; margin: 0 18px 4px 0; }
.outputs-preview-content .guide-marker.outputs-marker-categories { position: static; display: inline-flex; }
.outputs-marker-media { top: 42px; right: 18px; }
#outputs .outputs-callout { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; max-height: none; margin: 0; padding: clamp(22px, 2.2vw, 34px) clamp(26px, 3vw, 42px); overflow: auto; border-radius: 22px; background: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97)); color: #eef5ff; box-shadow: inset 0 1px rgba(255,255,255,.05); }
#outputs .outputs-callout h2 { margin: 0 0 .6rem; color: #f6f9ff; font-size: clamp(1.75rem, 2vw, 2.25rem); }
#outputs .outputs-callout .title-rule { display: block; width: 80px; height: 4px; margin: 0 0 .6rem; border-radius: 3px; background: #2f6eff; }
#outputs .outputs-callout :is(p, h3) { color: #e6edf7; }
#outputs .outputs-callout p { margin: .25rem 0; font-size: clamp(.8rem, .88vw, .94rem); line-height: 1.45; }
#outputs .outputs-callout h3 { margin: .48rem 0 .08rem; color: #fff; font-size: clamp(.88rem, .94vw, .98rem); }
#outputs .outputs-callout .outputs-question { margin-bottom: .4rem; color: #91c8ff; font-weight: 800; }
#outputs .outputs-callout .preview-guidance { margin-top: .65rem; padding: .55rem .7rem; border-left: 2px solid rgba(86,168,255,.55); background: rgba(86,168,255,.08); color: #c9d8ea; font-size: .78rem; }
@media (max-width: 900px) { .outputs-overview { max-height: 690px; } #outputs .outputs-callout { overflow: visible; } }
@media (max-width: 600px) { .outputs-overview { padding: 15px; border-radius: 16px; } #outputs .outputs-callout { padding: 28px 22px; border-radius: 16px; } #outputs .outputs-callout p, #outputs .outputs-callout h3 { font-size: 1rem; line-height: 1.65; } }

/* Step 2: a live, light-theme rendering of the homepage Research Hub. */
.hub-overview { position: relative; min-width: 0; padding: clamp(18px, 2vw, 30px); overflow: auto; border-radius: 22px; background: #f8fafc; color: #182033; box-shadow: 0 20px 55px rgba(0,5,14,.28); }
.orientation-preview--light {
  color-scheme: light;
  --bg-color: #ffffff;
  --text-color: #24292f;
  --card-color: #ffffff;
  --surface-color: #f6f8fa;
  --muted-color: #57606a;
  --border-color: #d0d7de;
  --link-color: #0969da;
  --link-hover-color: #0757b9;
  --focus-color: #0969da;
  --shadow-color: rgba(31, 35, 40, .12);
  /* Legacy homepage tokens consumed by the cloned Research Hub. */
  --text: #111827;
  --muted: #475569;
  --line: rgba(18, 26, 40, .12);
  --card: #ffffff;
  --accent2: #1b46c9;
  --shadow: 0 10px 30px rgba(18, 26, 40, .08);
  --shadow2: 0 12px 34px rgba(18, 26, 40, .12);
  color: var(--text-color);
  scrollbar-color: #a8b4c5 #eef2f7;
}
.hub-overview :is(p, h3, li, strong, span) { color: inherit; }
.hub-marker { position: absolute; }
.hub-marker-architect { top: 2px; right: 0; }
.hub-marker-profiles { top: 1px; right: 0; }
.hub-marker-assistant { top: 10px; right: 12px; }
.hub-marker-explore { right: 0; bottom: 4px; }
#hub .callout { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; max-height: none; margin: 0; padding: clamp(22px, 2.2vw, 34px) clamp(26px, 3vw, 42px); overflow: auto; border-radius: 22px; background: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97)); color: #eef5ff; box-shadow: inset 0 1px rgba(255,255,255,.05); }
#hub .callout h2 { margin: 0 0 .6rem; color: #f6f9ff; font-size: clamp(1.75rem, 2vw, 2.25rem); line-height: 1.2; }
#hub .title-rule { display: block; width: 80px; height: 4px; margin: 0 0 .6rem; border-radius: 3px; background: #2f6eff; }
#hub .callout p { margin: .28rem 0; color: #e6edf7; font-size: clamp(.86rem, .92vw, .98rem); line-height: 1.48; }
#hub .callout strong { color: #fff; }
.hub-guide { display: grid; gap: .42rem; margin: .55rem 0; }
.hub-guide div { padding-left: .75rem; border-left: 2px solid rgba(244,114,182,.65); }
.hub-guide dt { color: #fff; font-size: clamp(.84rem, .9vw, .96rem); font-weight: 800; line-height: 1.3; }
.hub-guide dd { margin: .08rem 0 0; color: #d7e2ef; font-size: clamp(.78rem, .84vw, .9rem); line-height: 1.38; }
#hub .callout .hub-members-path { margin-top: .4rem; color: #d7e2ef; font-size: clamp(.78rem, .84vw, .9rem); }
#hub .hub-members-path a { color: #91c8ff; font-weight: 750; text-underline-offset: .15em; }
#hub .callout .orientation-invitation { margin-top: .65rem; color: #fff; font-weight: 750; }

@media (max-width: 900px) {
  .hub-overview { max-height: 690px; }
  #hub .callout { min-height: 0; overflow: visible; }
}
@media (max-width: 600px) {
  .hub-overview { padding: 15px; border-radius: 16px; }
  .hub-marker-architect { top: 0; left: 0; right: auto; }
  .hub-marker-profiles { top: -4px; }
  .hub-marker-explore { bottom: -30px; }
  #hub .callout { padding: 28px 22px; border-radius: 16px; }
  #hub .callout p, .hub-guide dt, .hub-guide dd { font-size: 1rem; line-height: 1.65; }
}
.hub-overview .guide-marker { color: #fff !important; }
#hub .callout .hub-question { margin-bottom: .45rem; color: #91c8ff; font-weight: 800; }
#hub .callout .preview-guidance { margin: .45rem 0; padding: .55rem .65rem; border: 1px solid rgba(86,168,255,.3); border-radius: 8px; background: rgba(86,168,255,.08); color: #d9ecff; font-size: clamp(.76rem, .82vw, .88rem); }

.research-hub-preview-sizer { position: relative; width: 100%; }
.research-hub-preview-stage { width: 430px; max-width: none; transform: scale(var(--hub-preview-scale, 1)); transform-origin: top left; }
.hub-preview-content { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: var(--shadow); color: #1a2133 !important; }
.hub-preview-content .profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hub-preview-content .avatar { flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border: 1px solid rgba(43,100,255,.22); border-radius: 14px; background: rgba(255,255,255,.08); }
.hub-preview-content .avatar img { width: 100%; height: 100%; object-fit: contain; }
.hub-preview-content .profile-name { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.hub-preview-content .profile-role { color: #57606a !important; font-size: .8rem; }
.hub-preview-content .profile-body { color: #1a2133 !important; font-size: .84rem; }
.hub-preview-content .research-identifiers-title { margin-top: 12px; color: #555 !important; font-size: .9em; }
.hub-preview-content .research-identifiers { display: grid; grid-template-columns: minmax(105px,1fr) minmax(140px,1.35fr); align-items: center; gap: 13px 25px; margin-top: 13px; }
.hub-preview-content .research-identifiers a { display: flex; align-items: center; width: max-content; max-width: 100%; }
.hub-preview-content .research-identifiers img { max-width: 100%; }
.hub-preview-content .research-identifiers > a:nth-of-type(1) { grid-area: 1 / 1; }
.hub-preview-content .research-identifiers > a:nth-of-type(2) { grid-area: 1 / 2; }
.hub-preview-content .research-identifiers > a:nth-of-type(3) { grid-area: 2 / 1; }
.hub-preview-content .research-identifiers > a:nth-of-type(4) { grid-area: 2 / 2; }
.hub-preview-content .research-identifiers > a:nth-of-type(5) { grid-area: 3 / 1; }
.hub-preview-content .research-identifiers > a:nth-of-type(6) { grid-area: 3 / 2; }
.hub-preview-content .research-identifiers .synapse-logo { height: 26px !important; }
.hub-preview-content .research-identifiers .doi-badge { grid-area: 4 / 1; }
.hub-preview-content .assistant-card { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.hub-preview-content .assistant-card h3 { margin: 0 0 4px; color: red !important; font-size: .95rem; }
.hub-preview-content .assistant-card p { margin: 0; font-size: .8rem; line-height: 1.4; }
.hub-preview-content .assistant-button { display: inline-block; margin-top: 8px; padding: 6px 12px; }
.hub-preview-content .profile-body ul { margin: 10px 0 0; padding-left: 18px; }
.hub-preview-content .profile-body li { margin: 6px 0; }
.hub-preview-content .profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hub-preview-content .profile-links a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 8px 20px rgba(18,26,40,.05); font-size: 13px; text-decoration: none; }
.hub-preview-content .note { margin-top: 10px; color: #57606a !important; font-size: .8rem; }
.hub-preview-content .kbd { padding: 2px 6px; border: 1px solid #d0d7de; border-bottom-width: 2px; border-radius: 8px; background: #fff; font-family: ui-monospace, monospace; }
.hub-preview-content .preview-link { text-underline-offset: .15em; }
.hub-preview-content .preview-link:focus-visible { outline: 3px solid #155ed0; outline-offset: 3px; }
.orientation-preview--light .hub-preview-content { color: var(--text-color) !important; }
.orientation-preview--light .hub-preview-content :is(.profile-role, .research-identifiers-title, .muted, .note) { color: var(--muted-color) !important; }
.orientation-preview--light .hub-preview-content :is(a, .assistant-button) { color: var(--link-color) !important; }
.orientation-preview--light .hub-preview-content :is(a, .assistant-button):hover { color: var(--link-hover-color) !important; }
.orientation-preview--light .hub-preview-content .assistant-button { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.orientation-preview--light .hub-preview-content .assistant-button:hover { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.orientation-preview--light .hub-preview-content .profile-links a:hover { border-color: #8ab4f8 !important; background: #f0f7ff !important; box-shadow: var(--shadow2) !important; }
.orientation-preview--light .hub-preview-content .kbd { border-color: var(--border-color) !important; background: var(--surface-color) !important; color: var(--text-color) !important; }
.orientation-preview--light .hub-preview-content img { filter: none !important; opacity: 1 !important; }
/* The tour document is deliberately dark. Counter its shared, important card
   translation only inside this exhibit so the cloned homepage card stays light. */
[data-theme="dark"] .orientation-preview--light .hub-preview-content { border-color: var(--line) !important; background: rgba(255,255,255,.72) !important; box-shadow: var(--shadow) !important; }
[data-theme="dark"] .orientation-preview--light .hub-preview-content .assistant-card { border-color: var(--line) !important; background: var(--card) !important; box-shadow: var(--shadow) !important; }
[data-theme="dark"] .orientation-preview--light .hub-preview-content .profile-links a { border-color: var(--line) !important; background: rgba(255,255,255,.75) !important; color: var(--link-color) !important; box-shadow: 0 8px 20px rgba(18,26,40,.05) !important; }
.orientation-preview--light::-webkit-scrollbar { width: 11px; height: 11px; }
.orientation-preview--light::-webkit-scrollbar-track { background: #eef2f7; }
.orientation-preview--light::-webkit-scrollbar-thumb { border: 3px solid #eef2f7; border-radius: 999px; background: #a8b4c5; }
.hub-preview-markers { position: absolute; inset: 0; pointer-events: none; }
.orientation-page .hub-preview-markers .guide-marker { z-index: 3; padding: .42rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; background: rgba(255,255,255,.96); color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.12); pointer-events: none; }
.hub-preview-markers .hub-marker-architect { top: 36px; right: 20px; }
.hub-preview-markers .hub-marker-profiles { top: 116px; right: 20px; }
.hub-preview-markers .hub-marker-assistant { top: 326px; right: 20px; }
.hub-preview-markers .hub-marker-explore { right: 20px; bottom: 82px; }

/* Step 3: the homepage Projects and Method sections at their original scale. */
.research-map-overview { min-width: 0; padding: clamp(18px, 2vw, 30px); overflow: auto; border-radius: 22px; background: #f8fafc; box-shadow: 0 20px 55px rgba(0,5,14,.28); }
.research-map-preview-sizer { position: relative; width: 100%; }
.research-map-preview-stage { width: 980px; max-width: none; transform: scale(var(--research-preview-scale, 1)); transform-origin: top left; }
.research-map-preview-content { padding: 1px 0 24px; color: #111; }
.research-map-preview-content .research-map-section { margin-top: 26px; }
.research-map-preview-content h2 { position: relative; margin: 0 0 10px; color: #111827 !important; font-size: 20px; line-height: 1.7; letter-spacing: .02em; }
.research-map-preview-content .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.research-map-preview-content .card { position: relative; min-height: 132px; padding: 14px 14px 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82); color: #111; box-shadow: var(--shadow); }
.research-map-preview-content .card .ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 10px; border: 1px solid rgba(43,100,255,.18); border-radius: 12px; background: rgba(43,100,255,.08); }
.research-map-preview-content .card svg { width: 20px; height: 20px; stroke: var(--accent2); }
.research-map-preview-content .card strong { display: block; margin-bottom: 6px; color: #111827 !important; font-size: 14px; }
.research-map-preview-content .card p { margin: 0; color: #475569 !important; font-size: 12.8px; line-height: 1.7; }
.research-map-preview-content .box { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); color: #111; box-shadow: var(--shadow); }
.research-map-preview-content .box li { color: #111 !important; }
.orientation-page[data-theme="dark"] .research-map-preview-content .card,
[data-theme="dark"] .research-map-preview-content .card { border-color: var(--line) !important; background: rgba(255,255,255,.82) !important; box-shadow: var(--shadow) !important; }
.orientation-page[data-theme="dark"] .research-map-preview-content .box,
[data-theme="dark"] .research-map-preview-content .box { border-color: var(--line) !important; background: rgba(255,255,255,.62) !important; color: #111 !important; box-shadow: var(--shadow) !important; }
.orientation-page[data-theme="dark"] .research-map-preview-content .box > div,
[data-theme="dark"] .research-map-preview-content .box > div { border-color: #e6e6e6 !important; background: #fafafa !important; color: #555 !important; }
.research-map-preview-content .preview-link:focus-visible { outline: 3px solid #155ed0; outline-offset: 3px; }
.research-map-preview-content .guide-marker.research-marker { position: absolute; top: -2px; left: 145px; padding: .35rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; background: rgba(255,255,255,.97); color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.12); font-size: .8rem; white-space: nowrap; pointer-events: none; }
.research-map-preview-content .research-marker-method { left: 125px; }
#workflow .research-map-callout { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; max-height: none; margin: 0; padding: clamp(22px, 2.2vw, 34px) clamp(26px, 3vw, 42px); overflow: auto; border-radius: 22px; background: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97)); color: #eef5ff; box-shadow: inset 0 1px rgba(255,255,255,.05); }
#workflow .research-map-callout h2 { margin: 0 0 .6rem; color: #f6f9ff; font-size: clamp(1.75rem, 2vw, 2.25rem); }
#workflow .research-map-callout .title-rule { display: block; width: 80px; height: 4px; margin: 0 0 .6rem; border-radius: 3px; background: #2f6eff; }
#workflow .research-map-callout :is(p, h3) { color: #e6edf7; }
#workflow .research-map-callout p { margin: .28rem 0; font-size: clamp(.82rem, .9vw, .96rem); line-height: 1.48; }
#workflow .research-map-callout strong { color: #fff; }
#workflow .research-map-callout section { margin-top: .5rem; padding-left: .75rem; border-left: 2px solid rgba(86,168,255,.55); }
#workflow .research-map-callout h3 { margin: 0 0 .12rem; color: #fff; font-size: clamp(.9rem, .96vw, 1rem); }
#workflow .research-map-callout .research-map-question { margin-bottom: .45rem; color: #91c8ff; font-weight: 800; }
#workflow .research-map-callout .orientation-invitation { margin-top: .65rem; color: #fff; font-weight: 750; }

@media (max-width: 900px) {
  .research-map-overview { max-height: 690px; }
  #workflow .research-map-callout { min-height: 0; overflow: visible; }
}
@media (max-width: 600px) {
  .research-map-overview { padding: 15px; border-radius: 16px; }
  #workflow .research-map-callout { padding: 28px 22px; border-radius: 16px; }
  #workflow .research-map-callout p, #workflow .research-map-callout h3 { font-size: 1rem; line-height: 1.65; }
}

@media (max-width: 600px) {
  .hub-preview-markers .hub-marker-architect { top: 20px; left: 20px; right: auto; }
  .hub-preview-markers .hub-marker-profiles { top: 105px; }
  .hub-preview-markers .hub-marker-assistant { top: 290px; }
  .hub-preview-markers .hub-marker-explore { bottom: 60px; }
}

/* Step 1: controlled live rendering of the homepage entrance source. */
.home-entrance-preview-content { position: relative; min-height: 100%; }
/* The tour retains its dark chrome while the live homepage exhibit always uses
   the homepage's light presentation, independently of the document theme. */
.home-entrance-preview-content.light-preview {
  color-scheme: light;
  --bg-color: #ffffff;
  --text-color: #24292f;
  --card-color: #ffffff;
  --surface-color: #f6f8fa;
  --muted-color: #57606a;
  --border-color: #d0d7de;
  --link-color: #0969da;
  --link-hover-color: #0757b9;
  --focus-color: #0969da;
  color: var(--text-color) !important;
}
.orientation-page .light-preview :is(h1, h2, h3, h4, h5, h6, p, div, span, li, summary, strong) { color: inherit !important; }
.orientation-page .light-preview a { color: var(--link-color) !important; }
.orientation-page .light-preview a:hover { color: var(--link-hover-color) !important; }
.home-entrance-preview-content .title-row { position: relative; }
.home-entrance-preview-content .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.home-entrance-preview-content .lab-hero-image { display: block; width: 100%; height: auto; border-radius: 14px; }
.home-entrance-preview-content .philosophy-hero { margin: 14px 0 18px; color: #666 !important; font-size: .9rem; font-style: italic; line-height: 1.9; letter-spacing: .04em; }
.home-entrance-preview-content .lang-switch { display: flex; align-items: center; }
.home-entrance-preview-content .lang-switch a { display: inline-flex; align-items: center; gap: .25rem; }
.home-entrance-preview-content .lead { margin: 0; color: #1c2336 !important; font-size: 1rem; line-height: 1.55; }
.home-entrance-preview-content details { margin-top: 20px !important; padding: 15px !important; border: 1px solid transparent; border-radius: 10px !important; background: #f5f7fb !important; }
.home-entrance-preview-content details[open] { border-color: #cbd5e1; }
.home-entrance-preview-content summary { cursor: pointer; }
.home-entrance-preview-content details > div { color: #24292f !important; }
.home-entrance-preview-content .orientation-entry { margin: 0 0 18px; }
.home-entrance-preview-content .preview-link { border-radius: 6px; box-shadow: 0 0 0 2px rgba(29,78,216,.14); text-underline-offset: .15em; }
.home-entrance-preview-content .preview-link:hover { box-shadow: 0 0 0 3px rgba(29,78,216,.3); }
.home-entrance-preview-content :is(.preview-link, summary):focus-visible { outline: 3px solid #155ed0; outline-offset: 3px; }
.orientation-page .light-preview .intro-philosophy-link { border: 1px solid #cbd5e1; background: rgba(255,255,255,.96) !important; color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.1); }
.orientation-page .light-preview .intro-philosophy-link:hover { border-color: #94a3b8; background: #f0f7ff !important; color: #1f2937 !important; box-shadow: 0 5px 14px rgba(15,23,42,.14); }
.orientation-page .light-preview .intro-philosophy-link:focus-visible { border-color: #60a5fa; background: #f0f7ff !important; color: #1f2937 !important; outline: 3px solid #2563eb; outline-offset: 3px; }
.light-preview .preview-orientation-control { padding: 8px 14px; border: 1px dashed #94a3b8; border-radius: 999px; background: #f1f5f9; color: #475569; font: inherit; font-size: .95rem; font-weight: 700; cursor: not-allowed; opacity: .82; }
.light-preview .preview-orientation-control:hover { border-color: #94a3b8; background: #f1f5f9; color: #475569; }
.light-preview .guide-marker.preview-marker { border-color: #cbd5e1; background: rgba(255,255,255,.96); color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.12); backdrop-filter: blur(6px); }
.preview-marker { position: absolute; z-index: 3; pointer-events: none; }
.preview-marker-start { top: 8px; left: 8px; }
.preview-philosophy-marker-row { display: flex; justify-content: flex-start; min-height: 31px; margin: 4px 0 6px; pointer-events: none; }
.preview-philosophy-marker-row .preview-marker-philosophy { position: static; }
.preview-marker-tour { top: clamp(165px, 45%, 250px); right: 8px; }
.preview-loading, .preview-error { margin: 0; padding: 2rem; text-align: center; }
#welcome .callout .preview-guidance { margin: .55rem 0; padding: .6rem .7rem; border: 1px solid rgba(86,168,255,.3); border-radius: 8px; background: rgba(86,168,255,.08); color: #d9ecff; font-size: clamp(.78rem, .84vw, .9rem); }

@media (max-width: 600px) {
  .preview-marker-tour { top: 39%; }
  .home-entrance-preview-content .preview-link { box-shadow: 0 0 0 1px rgba(29,78,216,.2); }
}

/* Keep the archive preview light even when the surrounding Orientation is dark. */
.orientation-page[data-theme="dark"] .orientation-preview--light .outputs-preview-content details.fold,
[data-theme="dark"] .orientation-preview--light .outputs-preview-content details.fold { border-color: #e3e8f0 !important; background: #fff !important; background-image: none !important; color: #111827 !important; box-shadow: 0 8px 22px rgba(18,26,40,.06) !important; }
.orientation-page[data-theme="dark"] .orientation-preview--light .outputs-preview-content details.fold > summary,
[data-theme="dark"] .orientation-preview--light .outputs-preview-content details.fold > summary { border-color: #e3e8f0 !important; background: transparent !important; background-image: none !important; color: #111827 !important; }
.orientation-page[data-theme="dark"] .orientation-preview--light .outputs-preview-content :is(.fold-body, .box, .outputs-grid),
[data-theme="dark"] .orientation-preview--light .outputs-preview-content :is(.fold-body, .box, .outputs-grid) { background-image: none !important; color: #111827 !important; }
.orientation-page[data-theme="dark"] .orientation-preview--light .outputs-preview-content .fold-body,
[data-theme="dark"] .orientation-preview--light .outputs-preview-content .fold-body { background-color: #fff !important; }
.orientation-page[data-theme="dark"] .orientation-preview--light .outputs-preview-content :is(.box, .outputs-grid),
[data-theme="dark"] .orientation-preview--light .outputs-preview-content :is(.box, .outputs-grid) { background-color: transparent !important; box-shadow: none !important; }
.orientation-page[data-theme="dark"] .orientation-preview--light .outputs-preview-content .outputs-grid li,
[data-theme="dark"] .orientation-preview--light .outputs-preview-content .outputs-grid li { border-color: #e3e8f0 !important; background: #fff !important; background-image: none !important; color: #111827 !important; box-shadow: 0 5px 15px rgba(18,26,40,.05) !important; }
.orientation-page[data-theme="dark"] .outputs-preview-content .output-stat,
[data-theme="dark"] .outputs-preview-content .output-stat { border-color: #e3e8f0 !important; background: rgba(255,255,255,.75) !important; color: #111827 !important; box-shadow: 0 6px 18px rgba(18,26,40,.05) !important; }
.orientation-page[data-theme="dark"] .outputs-preview-content .output-stat span,
[data-theme="dark"] .outputs-preview-content .output-stat span { color: #5f6b7a !important; }
.orientation-page[data-theme="dark"] .outputs-preview-content .output-stat strong,
[data-theme="dark"] .outputs-preview-content .output-stat strong { color: #111827 !important; }

/* Step 5: controlled live rendering of the homepage contact gateway. */
.contact-overview { min-width: 0; padding: clamp(18px, 2vw, 30px); overflow: auto; border-radius: 22px; background: #f8fafc; box-shadow: 0 20px 55px rgba(0,5,14,.28); }
.contact-preview-sizer { position: relative; width: 100%; }
.contact-preview-stage { width: 760px; max-width: none; transform: scale(var(--contact-preview-scale, 1)); transform-origin: top left; }
.contact-preview-content { position: relative; padding: 10px 0 24px; color: #111827 !important; }
.contact-preview-content .collab-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; color: #111827 !important; font-size: 22px; line-height: 1.45; }
.contact-preview-content .collab-title span:last-child { color: #475569 !important; font-size: 13px; font-weight: 600; }
.contact-preview-content .language-flags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-preview-content .language-flags img.emoji { display: block; width: 20px; height: 20px; }
.contact-preview-content .box { padding: 24px; border: 1px solid #dbe3ee; border-radius: 16px; background: rgba(255,255,255,.82) !important; color: #111827 !important; box-shadow: 0 10px 28px rgba(18,26,40,.08); }
.contact-preview-content p { position: relative; margin: 0 0 18px; color: #111827 !important; line-height: 1.75; }
.contact-preview-content p:last-child { margin-bottom: 0; }
.contact-preview-content .muted { padding: 18px; border-radius: 12px; background: #f5f7fb !important; color: #475569 !important; }
.contact-preview-content a { color: #0969da !important; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: .16em; }
.contact-preview-content .preview-link:focus-visible { outline: 3px solid #155ed0; outline-offset: 3px; }
[data-theme="dark"] .orientation-preview--light .contact-preview-content .box { border-color: #dbe3ee !important; background: rgba(255,255,255,.82) !important; color: #111827 !important; box-shadow: 0 10px 28px rgba(18,26,40,.08) !important; }
[data-theme="dark"] .orientation-preview--light .contact-preview-content .muted { background: #f5f7fb !important; color: #475569 !important; }
[data-theme="dark"] .orientation-preview--light .contact-preview-content :is(p, strong) { color: inherit !important; }
.contact-preview-content .guide-marker.contact-marker { position: absolute; z-index: 3; right: 10px; display: inline-flex; padding: .35rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; background: rgba(255,255,255,.97); color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.12); font-size: .8rem; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.contact-preview-content .contact-marker-policy { top: 10px; }
.contact-preview-content .contact-marker-style { top: -5px; }
.contact-preview-content .contact-marker-language { top: 52px; }
.contact-preview-content .contact-marker-email { top: -7px; }
#contact .contact-callout { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; max-height: none; margin: 0; padding: clamp(22px, 2.2vw, 34px) clamp(26px, 3vw, 42px); overflow: auto; border-radius: 22px; background: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97)); color: #eef5ff; box-shadow: inset 0 1px rgba(255,255,255,.05); }
#contact .contact-callout h2 { margin: 0 0 .6rem; color: #f6f9ff; font-size: clamp(1.75rem, 2vw, 2.25rem); line-height: 1.2; }
#contact .contact-callout .title-rule { display: block; width: 80px; height: 4px; margin: 0 0 .6rem; border-radius: 3px; background: #2f6eff; }
#contact .contact-callout :is(p, h3) { color: #e6edf7; }
#contact .contact-callout p { margin: .25rem 0; font-size: clamp(.78rem, .84vw, .9rem); line-height: 1.45; }
#contact .contact-callout strong { color: #fff; }
#contact .contact-callout section { margin-top: .44rem; padding-left: .75rem; border-left: 2px solid rgba(86,168,255,.55); }
#contact .contact-callout h3 { margin: 0 0 .1rem; color: #fff; font-size: clamp(.86rem, .9vw, .96rem); }
#contact .contact-callout .contact-question { margin-bottom: .4rem; color: #91c8ff; font-weight: 800; }
#contact .contact-callout .preview-guidance { margin-top: .7rem; padding: .55rem .65rem; border: 1px solid rgba(86,168,255,.3); border-radius: 8px; background: rgba(86,168,255,.08); color: #d9ecff; font-size: clamp(.74rem, .78vw, .84rem); }

@media (max-width: 900px) {
  .contact-overview { max-height: 690px; }
  #contact .contact-callout { min-height: 0; overflow: visible; }
}
@media (max-width: 600px) {
  .contact-overview { padding: 15px; border-radius: 16px; }
  .contact-preview-content .contact-marker-style { top: -31px; }
  #contact .contact-callout { padding: 28px 22px; border-radius: 16px; }
  #contact .contact-callout p, #contact .contact-callout h3 { font-size: 1rem; line-height: 1.65; }
}

/* Step 6: homepage reading corner and conversation salon in permanent light mode. */
.ideas-overview { min-width: 0; padding: clamp(18px, 2vw, 30px); overflow: auto; color-scheme: light; border-radius: 22px; background: #f8fafc; box-shadow: 0 20px 55px rgba(0,5,14,.28); }
.ideas-preview-sizer { position: relative; width: 100%; }
.ideas-preview-stage { width: 760px; max-width: none; transform: scale(var(--ideas-preview-scale, 1)); transform-origin: top left; }
.ideas-preview-content { padding: 1px 0 24px; color: #111827 !important; }
.ideas-preview-section { margin: 0 0 38px; }
.ideas-preview-section h2 { margin: 0 0 8px; color: #111827 !important; font-size: 22px; line-height: 1.7; }
.ideas-preview-section details.fold { margin: 0; overflow: hidden; border: 1px solid #dbe3ee; border-radius: 16px; background: #fff !important; background-image: none !important; color: #111827 !important; box-shadow: 0 8px 22px rgba(18,26,40,.06); }
.ideas-preview-section details.fold > summary { min-height: 54px; padding: 14px 18px; cursor: pointer; color: #111827 !important; font-weight: 750; line-height: 1.55; }
.ideas-preview-section details.fold > summary:focus-visible { outline: 3px solid #155ed0; outline-offset: -3px; }
.ideas-preview-section .box { padding: 18px; border: 0; border-top: 1px solid #e3e8f0; border-radius: 0; background: #fff !important; background-image: none !important; color: #111827 !important; box-shadow: none; }
.ideas-preview-section .muted { color: #5f6b7a !important; }
.ideas-preview-section .outputs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; background: transparent !important; }
.ideas-preview-section .outputs-grid li { min-width: 0; border: 1px solid #e3e8f0; border-radius: 13px; background: #fff !important; background-image: none !important; color: #111827 !important; box-shadow: 0 5px 15px rgba(18,26,40,.05); }
.ideas-preview-section .outputs-grid :is(a, .preview-unavailable) { display: block; min-height: 100%; padding: 14px; color: #0969da !important; text-decoration: none; }
.ideas-preview-section .outputs-grid a:hover { background: #f0f7ff !important; }
.ideas-preview-section .outputs-grid a:focus-visible { outline: 3px solid #155ed0; outline-offset: 2px; }
.ideas-preview-section .outputs-grid strong { color: #111827 !important; }
.ideas-preview-section .face-icon { float: left; width: 58px; height: 58px; margin: 0 12px 6px 0; border-radius: 50%; object-fit: cover; filter: none !important; opacity: 1 !important; }
.ideas-preview-section .preview-unavailable { color: #64748b !important; cursor: default; }
.ideas-marker-row { display: flex; min-height: 34px; pointer-events: none; }
.ideas-heading-marker-row { justify-content: flex-end; margin: -40px 4px 6px 0; }
.ideas-control-marker-row { justify-content: flex-end; margin: 0 4px 7px 0; }
.ideas-preview-content .guide-marker.ideas-marker { position: static; display: inline-flex; align-items: center; padding: .35rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; background: rgba(255,255,255,.97); color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.12); font-size: .8rem; line-height: 1.3; white-space: nowrap; }
[data-theme="dark"] .orientation-preview--light .ideas-preview-content :is(h2, details.fold, details.fold > summary, .box, .outputs-grid li, strong) { color: #111827 !important; }
[data-theme="dark"] .orientation-preview--light .ideas-preview-content :is(details.fold, .box, .outputs-grid li) { background: #fff !important; background-image: none !important; }
#ideas .ideas-callout { align-self: stretch; max-height: none; margin: 0; padding: clamp(22px, 2.2vw, 34px) clamp(26px, 3vw, 42px); overflow: auto; border-radius: 22px; background: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97)); color: #eef5ff; box-shadow: inset 0 1px rgba(255,255,255,.05); }
#ideas .ideas-callout h2 { margin: 0 0 .6rem; color: #f6f9ff; font-size: clamp(1.75rem, 2vw, 2.25rem); line-height: 1.2; }
#ideas .ideas-callout .title-rule { display: block; width: 80px; height: 4px; margin: 0 0 .6rem; border-radius: 3px; background: #2f6eff; }
#ideas .ideas-callout :is(p, h3) { color: #e6edf7; }
#ideas .ideas-callout p { margin: .3rem 0; font-size: clamp(.78rem, .84vw, .9rem); line-height: 1.5; }
#ideas .ideas-callout strong, #ideas .ideas-callout h3 { color: #fff; }
#ideas .ideas-callout section { margin-top: .6rem; padding-left: .75rem; border-left: 2px solid rgba(244,114,182,.65); }
#ideas .ideas-callout h3 { margin: 0 0 .12rem; font-size: clamp(.86rem, .9vw, .96rem); }
#ideas .ideas-callout .preview-guidance { margin-top: .75rem; padding: .6rem .7rem; border: 1px solid rgba(244,114,182,.32); border-radius: 8px; background: rgba(244,114,182,.09); color: #fce7f3; }
@media (max-width: 900px) { .ideas-overview { max-height: 690px; } #ideas .ideas-callout { overflow: visible; } }
@media (max-width: 600px) { .ideas-overview { padding: 15px; border-radius: 16px; } .ideas-preview-section .outputs-grid { grid-template-columns: 1fr; } #ideas .ideas-callout { padding: 28px 22px; border-radius: 16px; } #ideas .ideas-callout p, #ideas .ideas-callout h3 { font-size: 1rem; line-height: 1.65; } }

/* Step 7: homepage FAQ and departure footer in permanent light mode. */
.faq-overview { min-width: 0; padding: clamp(18px, 2vw, 30px); overflow: auto; color-scheme: light; border-radius: 22px; background: #f8fafc; box-shadow: 0 20px 55px rgba(0,5,14,.28); }
.faq-preview-sizer { position: relative; width: 100%; }
.faq-preview-stage { width: 760px; max-width: none; transform: scale(var(--faq-preview-scale, 1)); transform-origin: top left; }
.faq-preview-content { padding: 1px 0 18px; color: #111827 !important; }
.faq-preview-content section { margin: 0; }
.faq-preview-content h2 { margin: 0 0 14px; color: #111827 !important; font-size: 22px; line-height: 1.6; }
.faq-preview-content .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-preview-content .box { padding: 22px; border: 1px solid #dbe3ee; border-radius: 16px; background: #fff !important; background-image: none !important; color: #111827 !important; box-shadow: 0 8px 22px rgba(18,26,40,.07); }
.faq-preview-content .box p { margin: 0 0 20px; color: #111827 !important; line-height: 1.72; }
.faq-preview-content .box p:last-child { margin-bottom: 0; }
.faq-preview-content .box strong { color: #111827 !important; }
.faq-marker-row { display: flex; justify-content: flex-end; min-height: 31px; margin: 0 0 6px; pointer-events: none; }
.faq-preview-content .guide-marker.faq-marker { position: static; display: inline-flex; align-items: center; padding: .35rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; background: rgba(255,255,255,.97); color: #1f2937 !important; box-shadow: 0 4px 12px rgba(15,23,42,.12); font-size: .8rem; line-height: 1.3; white-space: nowrap; }
.faq-preview-content .guide-marker.faq-marker::first-letter { color: #db2777; }
.faq-completion-row { margin: 18px 4px 5px; }
.faq-preview-content footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 0; padding: 18px 0 0; border-top: 1px solid #dbe3ee; color: #475569 !important; font-size: 13px; }
[data-theme="dark"] .orientation-preview--light .faq-preview-content :is(h2, .box, .box p, .box strong) { color: #111827 !important; }
[data-theme="dark"] .orientation-preview--light .faq-preview-content .box { border-color: #dbe3ee !important; background: #fff !important; background-image: none !important; box-shadow: 0 8px 22px rgba(18,26,40,.07) !important; }
#faq .faq-callout { align-self: stretch; max-height: none; margin: 0; padding: clamp(22px, 2.2vw, 34px) clamp(26px, 3vw, 42px); overflow: auto; border-radius: 22px; background: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97)); color: #eef5ff; box-shadow: inset 0 1px rgba(255,255,255,.05); }
#faq .faq-callout h2 { margin: 0 0 .6rem; color: #f6f9ff; font-size: clamp(1.75rem, 2vw, 2.25rem); line-height: 1.2; }
#faq .faq-callout .title-rule { display: block; width: 80px; height: 4px; margin: 0 0 .6rem; border-radius: 3px; background: #2f6eff; }
#faq .faq-callout :is(p, h3) { color: #e6edf7; }
#faq .faq-callout p { margin: .25rem 0; font-size: clamp(.76rem, .8vw, .87rem); line-height: 1.45; }
#faq .faq-callout strong, #faq .faq-callout h3 { color: #fff; }
#faq .faq-callout section { margin-top: .48rem; padding-left: .75rem; border-left: 2px solid rgba(244,114,182,.65); }
#faq .faq-callout h3 { margin: 0 0 .1rem; font-size: clamp(.84rem, .88vw, .94rem); }
#faq .faq-callout .faq-question { color: #f9a8d4; font-weight: 800; }
#faq .completion-guidance { display: block; margin-top: .75rem; padding: .75rem .85rem; border: 1px solid rgba(244,114,182,.38); border-radius: 10px; background: rgba(244,114,182,.11); color: #fce7f3; font-size: clamp(.76rem, .8vw, .87rem); line-height: 1.48; }
@media (max-width: 900px) { .faq-overview { max-height: 690px; } #faq .faq-callout { overflow: visible; } }
@media (max-width: 600px) { .faq-overview { padding: 15px; border-radius: 16px; } .faq-preview-content .two { grid-template-columns: 1fr; } .faq-preview-content footer { flex-direction: column; } #faq .faq-callout { padding: 28px 22px; border-radius: 16px; } #faq .faq-callout p, #faq .faq-callout h3 { font-size: 1rem; line-height: 1.65; } }

/* The orientation follows the same resolved light/dark mode as the homepage.
   These tokens deliberately theme both halves of every exhibit together; the
   preview-specific rules above remain responsible only for layout and scale. */
:root {
  --orientation-panel: #f8fafc;
  --orientation-card: #ffffff;
  --orientation-soft: #eef2f7;
  --orientation-ink: #111827;
  --orientation-muted: #475569;
  --orientation-line: #dbe3ee;
  --orientation-accent: #155ed0;
  --orientation-guide: rgba(255, 255, 255, .97);
  --orientation-guide-ink: #1f2937;
  --orientation-callout: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,246,255,.98));
}
[data-theme="dark"] {
  --orientation-panel: #101c2d;
  --orientation-card: #16243a;
  --orientation-soft: #1b2b43;
  --orientation-ink: #f4f8ff;
  --orientation-muted: #c3cfe0;
  --orientation-line: #45617f;
  --orientation-accent: #9ac5ff;
  --orientation-guide: rgba(18, 32, 51, .97);
  --orientation-guide-ink: #eef5ff;
  --orientation-callout: linear-gradient(145deg, rgba(18,38,63,.97), rgba(10,29,49,.97));
}

html,
body.orientation-page { background-color: var(--bg-color); }
body.orientation-page { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--link-color) 12%, transparent), transparent 45%), var(--bg-color) !important; }

/* The cloned homepage exhibits are visual references to the light homepage.
   Keep their legacy homepage tokens light even when the tour chrome is dark. */
.orientation-page .orientation-preview--light,
.orientation-page .light-preview {
  color-scheme: light;
  --text-color: #24292f;
  --heading-color: #111827;
  --muted-color: #57606a;
  --border-color: #d0d7de;
  --link-color: #0969da;
  --link-hover-color: #0757b9;
  --card-color: #ffffff;
  --surface-color: #f6f8fa;
  --text: #24292f;
  --muted: #57606a;
  --line: #dbe3ee;
  --card: #ffffff;
  --accent2: #155ed0;
}

.orientation-page :is(.welcome-overview, .hub-overview, .research-map-overview, .outputs-overview, .contact-overview, .ideas-overview, .faq-overview) {
  color-scheme: light;
  --orientation-panel: #f8fafc;
  --orientation-card: #ffffff;
  --orientation-soft: #eef2f7;
  --orientation-ink: #111827;
  --orientation-muted: #475569;
  --orientation-line: #dbe3ee;
  --orientation-accent: #155ed0;
  --orientation-guide: rgba(255, 255, 255, .97);
  --orientation-guide-ink: #1f2937;
  background: var(--orientation-panel) !important;
  color: var(--orientation-ink) !important;
}
.orientation-page :is(.home-entrance-preview-content, .hub-preview-content, .research-map-preview-content, .outputs-preview-content, .contact-preview-content, .ideas-preview-content, .faq-preview-content) {
  color: var(--orientation-ink) !important;
}
.orientation-page :is(.home-entrance-preview-content, .hub-preview-content, .research-map-preview-content, .outputs-preview-content, .contact-preview-content, .ideas-preview-content, .faq-preview-content)
  :is(h2, h3, p, li, strong, summary, dt, dd, footer, .lead, .philosophy-hero, .muted) {
  color: inherit !important;
}
.orientation-page :is(.home-entrance-preview-content, .hub-preview-content, .research-map-preview-content, .outputs-preview-content, .contact-preview-content, .ideas-preview-content, .faq-preview-content)
  :is(.card, .box, details, details.fold, .fold-body, .outputs-grid li, .output-stat) {
  border-color: var(--orientation-line) !important;
  background: var(--orientation-card) !important;
  background-image: none !important;
  color: var(--orientation-ink) !important;
  box-shadow: 0 8px 22px var(--shadow-color) !important;
}
.orientation-page :is(.home-entrance-preview-content, .hub-preview-content, .research-map-preview-content, .outputs-preview-content, .contact-preview-content, .ideas-preview-content, .faq-preview-content)
  :is(.muted, .philosophy-hero, .output-stat span, footer) { color: var(--orientation-muted) !important; }
.orientation-page :is(.home-entrance-preview-content, .hub-preview-content, .research-map-preview-content, .outputs-preview-content, .contact-preview-content, .ideas-preview-content, .faq-preview-content) a { color: var(--orientation-accent) !important; }
.orientation-page :is(.guide-marker, .intro-philosophy-link, .preview-orientation-control) {
  border-color: var(--orientation-line) !important;
  background: var(--orientation-guide) !important;
  color: var(--orientation-guide-ink) !important;
}
.orientation-page .welcome-overview :is(p, summary, details, strong) { color: var(--orientation-ink) !important; }
.orientation-page .welcome-overview .entrance-quote { color: var(--orientation-muted) !important; }
.orientation-page .welcome-overview :is(details, .orientation-topic) { background: var(--orientation-soft) !important; }

.orientation-page :is(#welcome, #hub, #workflow, #outputs, #contact, #ideas, #faq) .callout {
  border-color: var(--orientation-line);
  background: var(--orientation-callout) !important;
  color: var(--orientation-ink) !important;
}
.orientation-page :is(#welcome, #hub, #workflow, #outputs, #contact, #ideas, #faq) .callout :is(h2, h3, p, li, strong, dt, dd) {
  color: inherit !important;
}
.orientation-page .callout :is(.assistant-note, .preview-guidance, .completion-guidance) {
  border-color: color-mix(in srgb, var(--orientation-accent) 38%, transparent) !important;
  background: color-mix(in srgb, var(--orientation-accent) 10%, transparent) !important;
  color: var(--orientation-ink) !important;
}
[data-theme="dark"] .orientation-page .tour-button:disabled { opacity: .68; }


/* Prevent guide labels from covering preview copy on narrow phone screens. */
@media (max-width: 600px) {
  .preview-marker-tour { top: 48%; }
  html[lang="ja"] .research-map-preview-content .research-marker-projects { left: 190px; }

  .hub-preview-markers .hub-marker-architect { top: 4px; }
  .hub-preview-markers .hub-marker-profiles { top: 82px; }
  .hub-preview-markers .hub-marker-assistant { top: 270px; }
  .hub-preview-markers .hub-marker-explore { bottom: 32px; }
}
