/* Theme layer: loaded after styles.css and overrides its tokens.
   Sense colours: touch = coral, sound = blue, vision = amber.
   White background and a highly legible sans-serif; distinctiveness comes from the interactions.
   Palette is provisional until the B-1 answers; change it here only. */
:root {
  --paper: #ffffff; --paper-2: #f4f4f5; --ink: #111111; --ink-2: #3b3b3f; --muted: #6b6b70; --line: #e4e4e7;
  --night: #111111; --night-2: #1c1c1e; --night-line: #333336; --night-text: #b4b4b9;
  --touch: #ff5233; --touch-ink: #b8321a; --sound: #3a5bff; --sound-ink: #2440d8; --vision: #f2b400; --vision-ink: #8a6100;
  --white: var(--paper); --off-white: var(--paper-2); --black: var(--ink);
  --grey-900: #232326; --grey-700: var(--ink-2); --grey-500: var(--muted); --grey-300: #d4d4d8; --grey-200: var(--line); --grey-100: var(--paper-2);
  --signal-red: var(--touch-ink); --signal-blue: var(--sound-ink); --human-green: var(--touch-ink); --discovery-yellow: var(--vision);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --page-width: 1180px;
}
html { background: var(--paper); }
body { background: var(--paper); color: var(--ink); font-size: 16px; }
::selection { background: var(--touch); color: #fff; }
h1, h2 { font-family: var(--font-heading); font-weight: 650; letter-spacing: -0.032em; line-height: 1.06; }
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.015em; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--touch-ink); outline-offset: 4px; }

/* Header */
header { background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid var(--line); }
.brand-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-lab { font-family: var(--font-mono); letter-spacing: .04em; }
nav a { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2); }
nav a::after { background: var(--touch); height: 2px; }
nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"]::after { right: 0; }

/* Labels, buttons, links */
.tiny-label, .next-question-label { font-family: var(--font-mono); letter-spacing: .14em; color: var(--muted); }
.button-link { font-family: var(--font-mono); border-radius: 999px; padding: 10px 18px; border-color: var(--ink); color: var(--ink); background: transparent; }
.button-link.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-link.primary:hover { background: var(--touch-ink); border-color: var(--touch-ink); }
.button-link.secondary { border-color: var(--grey-300); }
.button-link.secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link, .affiliation-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--touch); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--touch-ink); }
.page-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; }
.lead { color: var(--ink-2); font-size: 1.08rem; }

/* Sense chips */
.sense { display: inline-flex; align-items: center; gap: 7px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sense::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sense--touch::before { background: var(--touch); }
.sense--sound::before { background: var(--sound); }
.sense--vision::before { background: var(--vision); }
.sense-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Home hero */
.signal-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; padding: 56px 0 72px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); flex: none; }
.hero-kicker-text { font: 500 .74rem/1.6 var(--font-mono); letter-spacing: .04em; color: var(--ink-2); }
.hero-kicker-text a { color: inherit; }
.hero-name { font-family: var(--font-heading); font-weight: 700; font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.045em; margin: 0 0 24px; }
.hero-opening { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 16px; max-width: 34ch; }
.hero-body { color: var(--ink-2); max-width: 56ch; margin-bottom: 20px; }
.signal-hero .sense-row { margin: 4px 0 28px; }
.signal-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-contact { font-family: var(--font-mono); font-size: .76rem; text-decoration: underline; text-decoration-color: var(--touch); text-underline-offset: 4px; margin-left: 6px; }

/* ---------- Interactive panels (shared) */
.cue-panel, .pad-panel, .gaze-panel { border-radius: 22px; overflow: hidden; }
.cue-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 18px 18px; }
.cue-segment { display: inline-flex; border: 1px solid var(--grey-300); border-radius: 999px; padding: 3px; }
.cue-segment button, .cue-toggle { font: 500 .72rem/1 var(--font-mono); letter-spacing: .02em; border: 0; background: transparent; color: var(--ink-2); padding: 9px 13px; border-radius: 999px; cursor: pointer; min-height: 34px; }
.cue-toggle { border: 1px solid var(--grey-300); }
.cue-segment button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cue-toggle[aria-pressed="true"] { background: var(--sound); border-color: var(--sound); color: #fff; }
.cue-ring figcaption, .mapping-pad figcaption, .gaze-lens { max-width: 860px; }
.gaze-lens figcaption { margin-top: 12px; color: var(--muted); font-size: .86rem; line-height: 1.6; max-width: 62ch; }
.cue-ring, .mapping-pad, .gaze-lens { margin: 0; }

/* Cue ring */
.cue-panel { position: relative; background: var(--night); color: var(--paper); }
.cue-readout { display: flex; gap: 10px; align-items: baseline; padding: 18px 20px 0; font: 400 .74rem/1.4 var(--font-mono); color: var(--night-text); letter-spacing: .03em; }
.cue-readout b { color: var(--paper); font-weight: 500; }
.cue-arrow { color: var(--touch); }
.cue-stage { display: block; touch-action: none; cursor: crosshair; outline-offset: -6px; }
.cue-stage svg { display: block; width: 100%; height: auto; max-height: 440px; margin: 0 auto; }
.cue-guide { fill: none; stroke: var(--night-line); stroke-dasharray: 2 7; }
.cue-band { fill: none; stroke: var(--night-2); stroke-width: 44; }
.cue-ray { stroke: var(--touch); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; }
.cue-pointer { fill: none; stroke: var(--paper); stroke-width: 2; }
.cue-compass { fill: var(--night-text); font: 400 11px var(--font-mono); }
.cue-body { fill: #2b2a27; stroke: #4a4842; stroke-width: 1; transition: fill .18s ease, stroke .18s ease; }
.cue-wave { fill: none; stroke: var(--touch); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cue-motor.is-active .cue-body { fill: var(--touch); stroke: var(--touch); }
.cue-panel .cue-segment { border-color: var(--night-line); }
.cue-panel .cue-segment button, .cue-panel .cue-toggle { color: var(--night-text); }
.cue-panel .cue-toggle { border-color: var(--night-line); }
.cue-panel .cue-segment button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.cue-panel .cue-toggle[aria-pressed="true"] { background: var(--sound); border-color: var(--sound); color: #fff; }
.cue-ring--light .cue-panel { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cue-ring--light .cue-readout { color: var(--muted); }
.cue-ring--light .cue-readout b { color: var(--ink); }
.cue-ring--light .cue-band { stroke: var(--paper-2); }
.cue-ring--light .cue-guide { stroke: var(--grey-300); }
.cue-ring--light .cue-pointer { stroke: var(--ink); }
.cue-ring--light .cue-compass { fill: var(--muted); }
.cue-ring--light .cue-body { fill: #fff; stroke: var(--grey-300); }
.cue-ring--light .cue-segment, .cue-ring--light .cue-toggle { border-color: var(--grey-300); }
.cue-ring--light .cue-segment button, .cue-ring--light .cue-toggle { color: var(--ink-2); }
.cue-ring--light .cue-segment button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Mapping pad */
.pad-panel { background: #fff; border: 1px solid var(--line); }
.pad-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 16px 18px 0; }
.pad-legend { display: flex; gap: 16px; }
.pad-legend .sense--touch { color: var(--touch-ink); }
.pad-legend .sense--sound { color: var(--sound-ink); }
.pad-status { font: 400 .76rem/1.5 var(--font-mono); color: var(--ink-2); }
.mapping-pad { max-width: 780px; }
.mapping-pad svg { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
.mapping-pad svg:active { cursor: grabbing; }
.pad-table { fill: var(--paper-2); stroke: none; }
.pad-target-hit { fill: transparent; cursor: pointer; }
.pad-target-ring { fill: none; stroke: var(--grey-300); stroke-width: 2; transition: stroke .2s, fill .2s; pointer-events: none; }
.pad-target:hover .pad-target-ring { stroke: var(--ink-2); }
.pad-target.is-target .pad-target-ring { stroke: var(--ink); fill: color-mix(in srgb, var(--vision) 35%, transparent); }
.pad-home { fill: var(--ink); }
.pad-trail { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.pad-arrow { stroke-width: 4; stroke-linecap: round; transition: opacity .15s; }
.pad-arrow--sound { stroke: var(--sound); }
.pad-arrow--touch { stroke: var(--touch); }
.pad-hand { fill: var(--ink); stroke: #fff; stroke-width: 3; cursor: grab; }

/* Gaze lens */
.gaze-panel { background: var(--night); }
.gaze-frame { --gx: 50%; --gy: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: none; touch-action: none; }
.gaze-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gaze-mask { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s ease; }
.gaze-frame.is-peripheral .gaze-mask { background: radial-gradient(circle at var(--gx) var(--gy), transparent 0 9%, rgba(14,14,14,.97) 13%); }
.gaze-frame.is-central .gaze-mask { background: radial-gradient(circle at var(--gx) var(--gy), rgba(70,70,70,.97) 0 10%, transparent 14%); }
.gaze-frame.is-full .gaze-mask { opacity: 0; }
.gaze-frame.is-full { cursor: crosshair; }
.gaze-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font: 400 .72rem var(--font-mono); color: var(--paper); background: rgba(18,18,18,.7); padding: 6px 12px; border-radius: 999px; transition: opacity .3s; }
.gaze-frame.is-moved .gaze-hint { opacity: 0; }
.gaze-panel .cue-segment { border-color: var(--night-line); }
.gaze-panel .cue-segment button { color: var(--night-text); }
.gaze-panel .cue-segment button[aria-pressed="true"] { background: var(--vision); color: var(--ink); }

/* ---------- Research thread (home) */
.thread { padding: 40px 0 10px; }
.thread-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; margin-bottom: 40px; }
.thread-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 0 14px; max-width: 20ch; }
.thread-head p { color: var(--ink-2); max-width: 60ch; margin: 0; }
.thread-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.thread-num-row { display: flex; align-items: center; gap: 10px; }
.thread-tick { flex: 1; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.3,.6,.2,1); }
.thread-card:nth-child(2) .thread-tick { transition-delay: .35s; }
.thread-card:nth-child(3) .thread-tick { transition-delay: .7s; }
.thread.is-in .thread-tick, html:not(.reveal-ready) .thread-tick { transform: scaleX(1); }
.thread-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.thread-card:hover { transform: translateY(-4px); background: #fff; border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(20,20,20,.35); }
.thread-num { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); font: 500 .72rem var(--font-mono); position: relative; z-index: 1; }
.thread-card h3 { font-family: var(--font-heading); font-weight: 650; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.025em; margin: 0; }
.thread-q { color: var(--ink-2); margin: 0; font-size: .96rem; }
.thread-finding { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.thread-finding b { display: block; font: 500 .66rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.thread-cta { margin-top: auto; font: 500 .74rem var(--font-mono); }
.thread-next { margin-top: 18px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: baseline; }
.thread-next p { font-family: var(--font-heading); font-weight: 650; letter-spacing: -.025em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0; max-width: 34ch; }
.thread-next p em { font-style: normal; color: var(--touch-ink); }

/* Compact home sections */
.home-block { margin-top: 96px; }
.compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.compact-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); transition: border-color .2s, transform .2s; }
.compact-card:hover { background: #fff; border-color: var(--ink); transform: translateY(-2px); }
.compact-card img { width: 120px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.compact-card h3 { font-size: 1.02rem; margin: 4px 0 6px; line-height: 1.3; }
.compact-card p { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.55; }
.compact-card .tiny-label { margin: 0; font-size: .6rem; }
.compact-card.no-img { grid-template-columns: 1fr; }

/* Existing components, re-skinned */
.featured-publication { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sound); border-radius: 0 0 18px 18px; }
.featured-publication h2 { font-family: var(--font-heading); font-size: 1.45rem; line-height: 1.25; }
.project-row { border-bottom-color: var(--line); }
.project-number { font-family: var(--font-heading); font-weight: 700; color: var(--accent); }
.project-title { font-family: var(--font-heading); font-weight: 650; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -.03em; }
.project-image, .project-concept, .media-block img, .media-block video { border-radius: 14px; }
.case-heading h2 { font-size: 1.6rem; }
.detail-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; }
.detail-number { font-family: var(--font-heading); font-weight: 700; color: var(--detail-accent); }
.metric-value { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.03em; }
.next-question { background: var(--night); border-radius: 22px; }
.next-question::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--touch), var(--sound) 50%, var(--vision)); }
.next-question h2 { font-family: var(--font-heading); font-weight: 650; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.next-question p { color: var(--night-text); }
.study-try { margin: 56px 0 8px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.study-try h2 { font-size: 1.7rem; margin: 6px 0 12px; }
.study-try p { color: var(--ink-2); font-size: .95rem; }
footer { border-top: 1px solid var(--line); }
footer span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--ink-2); }

/* Page entrance and scroll reveal */
main > * { animation: page-in .45s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .signal-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .thread-head, .thread-next, .study-try { grid-template-columns: 1fr; gap: 12px; }
  .thread-grid { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-name { font-size: clamp(3.1rem, 15vw, 4.4rem); }
  .compact-card { grid-template-columns: 88px minmax(0, 1fr); }
  .compact-card img { width: 88px; height: 72px; }
  .cue-controls { padding: 12px 14px 16px; }
  nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  main > * { animation: none; }
  .thread-tick { transition: none; transform: none; }
  .thread-card, .compact-card { transition: none; }
}

/* Align the older section headings with the new grid */
.section-heading { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
@media (max-width: 980px) { .section-heading { grid-template-columns: 1fr; gap: 10px; } }
.next-links a { white-space: normal; }
@media (max-width: 720px) {
  header { position: static; }
  .header-inner { gap: 10px; padding: 12px 0; }
  nav { flex-wrap: wrap; gap: 6px 16px; }
  nav a { font-size: .7rem; }
}

/* Hero portrait (replaces the motor ring on the home page) */
.signal-hero .hero-media { margin: 0 0 0 auto; width: 100%; max-width: 440px; border: 0; padding: 0; }
.signal-hero .personal-portrait { margin: 0; }
.signal-hero .personal-portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 0; background: var(--paper-2); }

/* Study thumbnails on the research thread, with a muted preview on hover */
.thread-thumb { position: relative; aspect-ratio: 1.16; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.thread-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.thread-thumb.thumb-diagram img { object-fit: contain; padding: 8px; }
.thread-thumb.thumb-wristband img { position: absolute; top: -3%; left: 0; width: 204%; height: auto; max-width: none; object-fit: initial; }
.thread-thumb.thumb-vr img { position: absolute; top: -8.6%; left: 0; width: 214%; height: auto; max-width: none; object-fit: initial; }
.thread-card:hover .thread-thumb img { transform: scale(1.03); }
.thread-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--night); opacity: 0; transition: opacity .35s ease; }
.thread-thumb video.is-playing { opacity: 1; }
.thread-thumb-hint { position: absolute; left: 10px; bottom: 10px; font: 500 .62rem/1 var(--font-mono); letter-spacing: .06em; color: #fff; background: rgba(17,17,17,.72); padding: 6px 9px; border-radius: 999px; transition: opacity .25s; }
.thread-card:hover .thread-thumb-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .thread-thumb img { transition: none; } .thread-card:hover .thread-thumb img { transform: none; } }

/* What I can do: one row per ability, each with linked evidence */
.capability-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.capability { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.capability-num { font: 500 .78rem/1.9 var(--font-mono); color: var(--muted); }
.capability-copy h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 650; letter-spacing: -.025em; margin: 0 0 6px; }
.capability-copy p { margin: 0; color: var(--ink-2); font-size: .96rem; max-width: 58ch; }
.capability-evidence { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-chip { display: inline-block; font: 500 .72rem/1.3 var(--font-mono); color: var(--ink); padding: 8px 12px; border: 1px solid var(--grey-300); border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.evidence-chip:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.capability:hover .capability-num { color: var(--touch-ink); }
.about-skills-link { margin-top: 56px; }
@media (max-width: 980px) {
  .capability { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 16px; }
  .capability-evidence { grid-column: 2; }
}

/* Organisation marks: typographic, not third-party logos */
.org-mark { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; aspect-ratio: 16 / 10; padding: 26px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); }
.org-mark-acronym { font: 700 clamp(2.6rem, 5vw, 3.6rem)/.9 var(--font-heading); letter-spacing: -.05em; color: var(--ink); }
.org-mark-name { font: 500 .7rem/1.5 var(--font-mono); letter-spacing: .04em; color: var(--ink-2); max-width: 26ch; }

/* Teaching without illustrative diagrams */
.course-panel { grid-template-columns: 240px minmax(0, 1fr); gap: 20px 48px; }
.course-rail { grid-column: 1; display: flex; flex-direction: column; gap: 10px; }
.course-number { font: 700 2.4rem/1 var(--font-heading); letter-spacing: -.04em; color: var(--ink); }
.course-copy h2 { margin-top: 0; }
.course-demo { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
@media (max-width: 980px) {
  .course-panel, .course-demo { grid-template-columns: 1fr; }
  .course-rail, .course-copy, .course-extra { grid-column: 1; }
}

.thread-status { font: 500 .66rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- B-1 palette: nature colours, "shining forest" ----------
   leaf / forest = her name (빛날 채, 수풀 림); sky & waves = sound; autumn leaves = touch; sunlight = vision. */
:root {
  --forest: #2f5e3b; --forest-2: #244a2e; --leaf: #5e9a47; --leaf-soft: #eaf3e3;
  --sky-soft: #e6f0f9; --sun-soft: #fbf1d6; --autumn-soft: #f8e3db;
  --touch: #c9573a; --touch-ink: #a2432a;
  --sound: #3b7dc0; --sound-ink: #2c6399;
  --vision: #e3a93b; --vision-ink: #8c6413;
  --human-green: var(--forest); --signal-red: var(--touch-ink); --signal-blue: var(--sound-ink); --discovery-yellow: var(--vision);
}
::selection { background: var(--leaf-soft); color: var(--forest-2); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline-color: var(--forest); }
nav a::after { background: var(--leaf); }
.button-link.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.button-link.primary:hover { background: var(--forest-2); border-color: var(--forest-2); }
.text-link, .affiliation-link, .hero-contact { text-decoration-color: var(--leaf); }
.text-link:hover { color: var(--forest); }
.cue-toggle[aria-pressed="true"] { background: var(--sound); border-color: var(--sound); }

/* Soft, clear surfaces */
.thread-card, .compact-card, .featured-publication, .pad-panel, .community-card { background: rgba(255,255,255,.86); border-color: #e7ebe4; box-shadow: 0 1px 2px rgba(30,60,40,.04), 0 10px 30px -22px rgba(30,60,40,.25); }
.thread-card:hover, .compact-card:hover { border-color: var(--leaf); box-shadow: 0 14px 34px -20px rgba(30,60,40,.35); }
.featured-publication { border-top: 3px solid var(--sound); }
.signal-hero .personal-portrait img { border: 6px solid rgba(255,255,255,.9); box-shadow: 0 18px 40px -24px rgba(30,60,40,.45); }

/* Light through leaves: slow, low-contrast, off for reduced motion */
.signal-hero { position: relative; isolation: isolate; }
.signal-hero::before { content: ""; position: absolute; z-index: -1; inset: -36px -4% -24px -4%; pointer-events: none; border-radius: 40px;
  background:
    radial-gradient(38% 46% at 74% 30%, rgba(247,226,170,.75), transparent 70%),
    radial-gradient(30% 38% at 88% 70%, rgba(214,234,201,.8), transparent 72%),
    radial-gradient(26% 34% at 60% 78%, rgba(220,235,247,.7), transparent 70%),
    radial-gradient(22% 28% at 96% 18%, rgba(234,243,227,.9), transparent 70%);
  filter: blur(18px); opacity: .9; animation: komorebi 38s ease-in-out infinite alternate; }
@keyframes komorebi {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  50% { transform: translate3d(1.5%, -1.2%, 0) scale(1.03); opacity: 1; }
  100% { transform: translate3d(-1.2%, 1%, 0) scale(1.01); opacity: .9; }
}
.name-note { color: var(--muted); font-size: .95rem; padding-left: 14px; border-left: 3px solid var(--leaf); }

/* Teaching & community: three distinct community cards */
.community-section { margin-top: 96px; }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.community-card { display: flex; flex-direction: column; border: 1px solid #e7ebe4; border-radius: 20px; overflow: hidden; }
.community-photo { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); }
.community-photo img { width: 100%; height: 100%; object-fit: cover; }
.community-org-badge { position: absolute; left: 12px; bottom: 12px; font: 700 .9rem var(--font-heading); letter-spacing: -.01em; color: #fff; background: rgba(28,60,90,.82); padding: 6px 12px; border-radius: 999px; }
.community-card .org-mark { aspect-ratio: 16 / 10; border: 0; border-radius: 0; }
.community-card--leaf .org-mark { background: var(--leaf-soft); }
.community-card--leaf .org-mark-acronym { color: var(--forest); }
.community-card--sun .org-mark { background: var(--sun-soft); }
.community-card--sun .org-mark-acronym { color: var(--vision-ink); }
.community-card--sky .community-org-badge { background: rgba(44,99,153,.88); }
.community-logo { aspect-ratio: 16 / 10; display: grid; place-items: center; background: #fff; padding: 24px; }
.community-logo img { max-height: 100%; max-width: 70%; object-fit: contain; }
.community-copy { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.community-copy .tiny-label { margin: 0; }
.community-copy h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.community-title { margin: 0; font-weight: 600; color: var(--ink-2); }
.community-copy p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
.community-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 980px) { .community-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .signal-hero::before { animation: none; } }

/* About: the guiding question */
.about-copy .about-question, .about-question { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 650; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink, #111); margin: 0 0 18px; }
