/* Shared visual refresh. No remote assets, trackers or database work. */
.public-site { background: #fffdf8; }
.public-site .site-header { background: #fffdf8; }
.public-site .button:not(.button-quiet):not(.button-light) {
  background: #4338a0; border-color: #4338a0; color: white;
  box-shadow: 0 4px 0 #30277c;
}
.public-site .button:hover { transform: translateY(-2px); }
.public-hero { padding-top: clamp(2.5rem, 5vw, 5rem); overflow: clip; background: radial-gradient(ellipse at 90% 20%, #efeaff, transparent 53%), #fffdf8; }
.public-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.public-hero-copy { padding-block: 1rem 3rem; min-width: 0; }
.public-eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #375e57; margin-bottom: 1.25rem; }
.public-eyebrow > span { width: .65rem; height: .65rem; background: #348b72; border-radius: 50%; box-shadow: 0 0 0 5px #e1f1e8; }
.public-hero h1 { font-size: clamp(2.75rem, 4.5vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; max-width: 13ch; }
.public-hero h1 > span { color: #5742ac; }
.public-hero .text-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; margin-top: 1.5rem; max-width: 46ch; }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.public-hero-note { color: #596173; font-size: .85rem; line-height: 1.6; max-width: 47ch; margin-top: 1.25rem; }
.interest-scene { position: relative; min-height: 31rem; isolation: isolate; padding: 3rem 1rem; }
.scene-orbit { position: absolute; inset: 2rem -1rem 2rem 0; border-radius: 48% 52% 55% 45%; border: 1px dashed #b6b0ce; transform: rotate(-12deg); z-index: -1; background: radial-gradient(circle, #ede6ff 0 55%, transparent 56%); }
.scene-spark { position: absolute; right: 1rem; top: .5rem; color: #ac6219; transform: rotate(13deg); }
.scene-caption { position: relative; font-size: .85rem; font-weight: 600; color: #625578; text-align: center; margin-bottom: 1.5rem; }
.scene-card { display: flex; position: relative; text-decoration: none; color: #24334c; border: 1px solid #ded8e8; border-radius: 1.5rem; box-shadow: 0 12px 30px #3927670e, 0 3px 0 #3927670a; transition: transform 160ms ease, box-shadow 160ms ease; }
.scene-card:hover { box-shadow: 0 16px 32px #3927671c; }
.scene-make { flex-direction: column; background: white; width: 75%; margin-left: 5%; padding: 1rem 1.2rem 1.3rem; transform: rotate(-4deg); }
.scene-make:hover { transform: rotate(-2deg) translateY(-4px); }
.scene-art { display: flex; align-items: center; justify-content: center; height: 8.5rem; background: #e9e1fd; border-radius: .9rem; color: #59418f; margin-bottom: 1rem; position: relative; overflow: hidden; }
.scene-code::before, .scene-code::after { content: ""; position: absolute; width: 5rem; height: 5rem; border: 1px solid #c3b0ee; border-radius: 1rem; transform: rotate(25deg); }
.scene-code::before { left: -2rem; top: -1rem; }
.scene-code::after { right: -1.5rem; bottom: -2rem; }
.scene-code-dot { position: absolute; top: 1rem; right: 1rem; width: .65rem; height: .65rem; border-radius: 100%; background: #c27b36; }
.scene-card-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: #686077; }
.scene-make strong { font-size: 1.45rem; margin-top: .2rem; }
.scene-card-link { display: flex; gap: .5rem; align-items: center; margin-top: .75rem; font-size: .85rem; color: #5742ac; }
.scene-dream, .scene-play { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .15rem .85rem; padding: 1rem; width: 76%; margin-top: .8rem; margin-left: 22%; background: #fff0ce; transform: rotate(5deg); }
.scene-dream:hover { transform: rotate(2deg) translateY(-3px); }
.scene-mini-art { grid-row: span 2; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: #fff9e8; }
.scene-dream > span:not(.scene-mini-art), .scene-play > span:not(.scene-mini-art) { grid-column: 2; font-size: .8rem; }
.scene-dream > svg, .scene-play > svg { grid-column: 3; grid-row: 1 / 3; }
.scene-play { background: #e0f1e9; margin-left: 4%; margin-top: 1.2rem; transform: rotate(-3deg); }
.scene-play .scene-mini-art { background: #f3fcf7; }
.scene-play:hover { transform: rotate(-1deg) translateY(-3px); }
.scene-note { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; font-size: .8rem; color: #625578; margin-top: 1.5rem; }
.public-interest-trail { border-top: 1px solid #e8e3ec; background: #ffffff90; padding-block: 1.75rem; }
.public-interest-trail .club-threads { margin: 0; }
.public-site .project-card { background: white; border: 1px solid #e1dce7; border-radius: 1.5rem; padding: 1.6rem; box-shadow: 0 6px 20px #29203a06; }
.public-site .projects-grid { gap: 1rem; }
.public-site .explore-card, .public-site .explore-grid > a { border-color: #e1dce7; box-shadow: 0 5px 18px #3e2d5b06; }
.public-site .explore-card:hover, .public-site .explore-grid > a:hover { border-color: #9786c3; box-shadow: 0 10px 24px #3e2d5b0d; }
.public-site main > div:has(> .page-width > h1.text-title) { background: linear-gradient(110deg, #fff9eb, #f0ecfb); }
.public-site #cycle-title + ol { gap: 1.25rem; }
.public-site #cycle-title + ol > span { display: none; }
.public-site #cycle-title + ol > li { background: white; border: 1px solid #e8e1ed; border-radius: 1.5rem; padding: 1.6rem; }
.public-site #cycle-title + ol > li > span { border: 0; background: #c6b4ef; width: 2rem; height: .6rem; border-radius: 1rem; }
.public-site #cycle-title + ol > li:nth-of-type(2) > span { background: #9ecfbb; }
.public-site #cycle-title + ol > li:nth-of-type(3) > span { background: #f4cd80; }
.public-site section:has(> .page-width #invite-title) { border-radius: 2rem 2rem 0 0; background: #302953; }

/* The school assigns the visual tier. Private-chat bands remain separate. */
.app-shell[data-dashboard-tier]:has(.home) { --color-ink: #24324c; --color-ink-soft: #566176; --color-paper: #fff; --color-edge: #e2deeb; --color-mist: #f4f1f8; --on-accent: #fff; background: #f7f5fb; color: #24324c; }
.app-shell[data-dashboard-tier="up-to-8"]:has(.home) { background: #fff9ec; --color-mist: #fff3d9; }
.app-shell[data-dashboard-tier="9-12"]:has(.home) { background: #f7f6fd; }
.app-shell[data-dashboard-tier="13-15"]:has(.home) { background: #f1f3fa; }
.app-shell[data-dashboard-tier="16+"]:has(.home) { background: #f5f5f0; }
.app-shell[data-dashboard-tier] .app-header { background: #ffffffed; color: #24324c; border-color: #e3dfeb; backdrop-filter: blur(12px); box-shadow: 0 3px 12px #29203a05; }
.app-shell[data-dashboard-tier] .app-primary-nav a { color: #47536b; }
.app-shell[data-dashboard-tier] .app-primary-nav a[aria-current="page"] { background: #eae5fa; color: #493291; border-color: #b6a6dc; }
.home[data-dashboard-tier] { --home-bg: transparent; color: #24324c; background: transparent; padding-bottom: 3rem; overflow: clip; }
.home[data-dashboard-tier] > .home-banner { height: 10rem; border: 0; border-radius: 0 0 2rem 2rem; opacity: .85; }
.home[data-dashboard-tier] .home-body { position: relative; margin-top: -3.5rem; }
.home[data-dashboard-tier] .home-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); color: #24324c; background: white; border: 1px solid #ddd7e9; box-shadow: 0 8px 30px #30254f09; border-radius: 1.75rem; padding: clamp(1.2rem, 3vw, 2rem); gap: 1rem 1.5rem; }
.home[data-dashboard-tier] .home-hello { display: block; min-width: 0; }
.home[data-dashboard-tier] .home-news-section, .home[data-dashboard-tier] .home-next-action { grid-column: 1 / -1; }
.home[data-dashboard-tier] .home-hero::before, .home[data-dashboard-tier] .home-hero::after { display: none; }
.home[data-dashboard-tier] .home-hello h1 { color: #24324c; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home[data-dashboard-tier] .home-tier-label { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; color: #67518c; text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; font-weight: 700; }
.home[data-dashboard-tier] .home-intro { margin-top: .6rem; font-size: 1rem; line-height: 1.5; color: #566176; }
.home[data-dashboard-tier] .home-avatar > * { width: 5rem; height: 5rem; border: 3px solid white; box-shadow: 0 0 0 1px #d8d0e6; font-size: 2rem; }
.home[data-dashboard-tier] .rank-badge { margin-top: .7rem; color: #574276; background: #eee7f8; border: 0; box-shadow: none; transform: none; font-size: .75rem; }
.home[data-dashboard-tier] .home-news-section { width: 100%; }
.home[data-dashboard-tier] .home-news a { background: #f3effc; color: #493276; border: 1px solid #dcd3ee; box-shadow: none; border-radius: 1rem; padding: .75rem 1rem; }
.home[data-dashboard-tier] .home-count { background: #5742ac; color: white; }
.home[data-dashboard-tier] .home-caught-up { background: #edf6f0; color: #30624f; border: 0; padding: .85rem 1rem; border-radius: 1rem; box-shadow: none; }
.home[data-dashboard-tier] .home-next-action { width: 100%; background: #f7f5fc; color: #34405c; border: 1px solid #e6e0f0; border-radius: 1.1rem; padding: 1rem; }
.home[data-dashboard-tier] .home-next-action .button { background: #4338a0; color: white; border-color: #4338a0; box-shadow: none; min-height: 3rem; white-space: normal; text-align: center; }
.home[data-dashboard-tier] .home-heading { color: #24324c; font-size: 1.3rem; line-height: 1.3; gap: .65rem; margin-bottom: 1rem; }
.home[data-dashboard-tier] .home-heading::after { display: none; }
.home[data-dashboard-tier] .home-card, .home[data-dashboard-tier] .home-club { border: 1px solid #ded9e8; box-shadow: 0 4px 15px #30254f05; border-radius: 1.25rem; color: #24324c; background: white; transform: none; }
.home[data-dashboard-tier] .home-card:hover, .home[data-dashboard-tier] .home-club:hover { transform: translateY(-3px); border-color: #a99ac4; box-shadow: 0 8px 20px #30254f0d; }
.home[data-dashboard-tier] .home-card-line, .home[data-dashboard-tier] .home-club-post, .home[data-dashboard-tier] .home-club-count { color: #566176; }
.home[data-dashboard-tier] .home-club-art, .home[data-dashboard-tier] .home-card-art { background: color-mix(in srgb, var(--club, #6654a3) 12%, white); color: var(--club, #6654a3); border: 0; border-radius: 1rem; box-shadow: none; }
.home[data-dashboard-tier] .home-club-art { display: grid; place-items: center; }
.home[data-dashboard-tier] .home-club-art > .interface-icon { position: static; color: var(--club, #6654a3); transform: none; width: 2.25rem; height: 2.25rem; }
.home[data-dashboard-tier] .home-club-art::before, .home[data-dashboard-tier] .home-club-art::after, .home[data-dashboard-tier] .home-card-art::before, .home[data-dashboard-tier] .home-card-art::after { display: none; }
.home[data-dashboard-tier] .home-count { min-width: 2rem; height: 2rem; padding: .2rem .5rem; font-size: 1rem; border: 0; box-shadow: none; }
.home[data-dashboard-tier] .home-club-name { color: #24324c; font-size: 1.25rem; }
.home[data-dashboard-tier] .home-clubs { gap: 1rem; }
.home[data-dashboard-tier] .home-personalise { background: #ffffffc7; color: #24324c; border: 1px solid #ded9e8; border-radius: 1.25rem; margin-top: 0; }
.home[data-dashboard-tier] .home-board::before, .home[data-dashboard-tier] .home-board::after { display: none; }
.home[data-dashboard-tier] .home-board, .home[data-dashboard-tier] .home-discovery, .discovery-blocks { display: flex; flex-direction: column; gap: 2rem; }
.home[data-dashboard-tier] .home-bento { gap: 1.5rem; }
.home[data-dashboard-tier] .home-bento > * { min-width: 0; }
.home[data-dashboard-tier] .home-studio { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2rem; }
.home[data-dashboard-tier] .studio-main { padding-top: 3.5rem; gap: 2rem; }
.home[data-dashboard-tier] .studio-side { top: 7rem; }
.home[data-dashboard-tier] .home-studio .home-hero { display: flex; flex-direction: column; align-items: flex-start; }
.home[data-dashboard-tier="up-to-8"] .home-hero { border: 2px solid #e8cd8d; background: #fffdf5; border-radius: 2rem; box-shadow: 0 6px 0 #f1e3c0; }
.home[data-dashboard-tier="up-to-8"] .home-tier-label { color: #8a5c17; }
.home[data-dashboard-tier="up-to-8"] .home-hello h1 { font-size: clamp(2rem, 4vw, 3rem); }
.home[data-dashboard-tier="up-to-8"] .home-intro { font-size: 1.2rem; }
.home[data-dashboard-tier="up-to-8"] .home-next-action { background: #fff3d7; border-color: #efdcaf; }
.home[data-dashboard-tier="up-to-8"] .home-next-action .button { min-height: 3.5rem; font-size: 1.1rem; }
.discovery-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.discovery-paths a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem 1rem; padding: 1.3rem; color: #24324c; background: #e5f3eb; border: 1px solid #bcd6c7; border-radius: 1.5rem; text-decoration: none; }
.discovery-paths a:nth-child(2) { background: #fff0c9; border-color: #e6cf96; }
.discovery-paths .icon-tile { grid-row: span 2; }
.discovery-paths strong { font-size: 1.45rem; }
.discovery-paths a > span:not(.icon-tile) { grid-column: 2; color: #455667; font-size: 1rem; }
.discovery-paths a > svg { grid-column: 3; grid-row: 1 / 3; }
.discovery-paths a:hover { box-shadow: 0 4px 0 #24324c15; transform: translateY(-2px); }
.home[data-dashboard-tier="up-to-8"] .home-clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home[data-dashboard-tier="up-to-8"] .home-club { display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem; border: 2px solid #e1ddcf; border-radius: 1.75rem; }
.home[data-dashboard-tier="up-to-8"] .home-club-art { width: 5rem; height: 5rem; }
.home[data-dashboard-tier="up-to-8"] .home-club-name { font-size: 1.45rem; }
.home[data-dashboard-tier="9-12"] .home-hero { background: linear-gradient(120deg, #fff 50%, #f1eafd); border-top: 5px solid var(--accent, #9c7bd4); }
.home[data-dashboard-tier="9-12"] .home-project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.home[data-dashboard-tier="9-12"] .home-card-art { width: 4rem; height: 4rem; }
.home[data-dashboard-tier="13-15"] .home-hero { border: 1px solid #cec8e1; background: #e8e3f6; border-left: 5px solid var(--accent, #735bad); }
.home[data-dashboard-tier="13-15"] .home-next-action { background: #ffffffc9; }
.home[data-dashboard-tier="13-15"] .home-tier-label { color: #524179; }
.home[data-dashboard-tier="13-15"] .bento-project, .home[data-dashboard-tier="13-15"] .bento-clubs { padding: 0; background: none; border: 0; box-shadow: none; }
.home[data-dashboard-tier="16+"] .home-tier-label { color: #426454; }
.home[data-dashboard-tier="16+"] .home-hero { border-top: 4px solid var(--accent, #729b85); border-radius: 1.25rem; }
.home[data-dashboard-tier="16+"] .home-hello h1 { font-size: 2.1rem; }
.home[data-dashboard-tier="16+"] .home-card { border-left: 4px solid var(--club, #729b85); }
.home[data-dashboard-tier="16+"] .home-club { border-radius: 1rem; }
.home[data-dashboard-tier="16+"] .home-avatar > * { width: 3.75rem; height: 3.75rem; font-size: 1.5rem; }
.home[data-dashboard-tier] a:focus-visible, .interest-scene a:focus-visible { outline: 3px solid #7351ac; outline-offset: 4px; }
@media (width < 60rem) {
  .public-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .public-hero h1 { max-width: 18ch; font-size: clamp(2.75rem, 7vw, 4.4rem); }
  .public-hero-copy { padding-bottom: 1rem; }
  .interest-scene { max-width: 33rem; width: 100%; margin-inline: auto; }
  .home[data-dashboard-tier] .home-studio { grid-template-columns: 1fr; }
  .home[data-dashboard-tier] .studio-side { position: static; }
  .home[data-dashboard-tier] .studio-main { padding-top: 0; }
}
@media (width < 40rem) {
  .public-hero { padding-top: 2rem; }
  .public-hero h1 { font-size: 2.8rem; max-width: 13ch; }
  .public-hero-actions { flex-direction: column; align-items: stretch; }
  .interest-scene { min-height: 29rem; padding: 2.5rem .25rem 2rem; }
  .scene-card { border-radius: 1.2rem; }
  .scene-make { width: 80%; margin-left: 2%; }
  .scene-dream, .scene-play { width: 86%; margin-left: 12%; gap: .1rem .6rem; padding: .8rem; }
  .scene-play { margin-left: 2%; }
  .scene-make strong { font-size: 1.25rem; }
  .scene-caption { font-size: .75rem; }
  .home[data-dashboard-tier] > .home-banner { height: 7rem; }
  .home[data-dashboard-tier] .home-body { margin-top: -2rem; }
  .home[data-dashboard-tier] .home-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.2rem; }
  .home[data-dashboard-tier] .home-avatar > * { width: 3.5rem; height: 3.5rem; font-size: 1.4rem; }
  .home[data-dashboard-tier] .home-hello h1 { font-size: 1.8rem; }
  .home[data-dashboard-tier] .home-hello { min-width: 0; }
  .home[data-dashboard-tier] .home-intro { font-size: .95rem; }
  .home[data-dashboard-tier] .home-next-action, .home[data-dashboard-tier] .home-news-section { grid-column: 1 / -1; }
  .home[data-dashboard-tier] .home-next-action { flex-direction: column; align-items: stretch; }
  .home[data-dashboard-tier] .home-clubs { grid-template-columns: 1fr; }
  .home[data-dashboard-tier] .home-clubs-head { flex-wrap: wrap; gap: .75rem; }
  .home[data-dashboard-tier] .home-club { padding: 1rem; }
  .discovery-paths { grid-template-columns: 1fr; }
  .home[data-dashboard-tier="up-to-8"] .home-club { flex-direction: row; }
  .home[data-dashboard-tier] .home-tier-label { font-size: .62rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .public-site .button, .scene-card, .home[data-dashboard-tier] *, .discovery-paths a { animation: none; transition: none; }
  .scene-card:hover, .home[data-dashboard-tier] a:hover, .public-site .button:hover { transform: none; }
}
