:root {
  --bg: #07111f;
  --bg-deep: #040b15;
  --surface: #0c192a;
  --surface-2: #102036;
  --line: rgba(133, 176, 218, 0.24);
  --line-strong: rgba(115, 175, 226, 0.46);
  --text: #f4f8ff;
  --muted: #93a6bc;
  --orange: #ff7b3f;
  --orange-2: #ff9f43;
  --cyan: #35d6ff;
  --cyan-soft: rgba(53, 214, 255, 0.12);
  --purple: #a78bfa;
  --shell: 1180px;
  --header-height: 72px;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; line-height: 1.6; }
button, input, summary { font: inherit; }
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header, main, .site-footer { position: relative; z-index: 2; }
#galaxy-bg { position: fixed; inset: 0; z-index: 0; opacity: .34; mix-blend-mode: screen; }
#galaxy-bg canvas { width: 100% !important; height: 100% !important; }
.site-ambient { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .78; background: radial-gradient(65% 46% at 72% 8%, rgba(37, 111, 187, .18), transparent 68%), radial-gradient(46% 34% at 9% 43%, rgba(20, 72, 128, .1), transparent 70%), linear-gradient(180deg, rgba(7,17,31,.62) 0%, rgba(6,16,29,.76) 55%, rgba(5,13,24,.84) 100%); }
.site-ambient::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(90, 145, 198, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 145, 198, .06) 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent 82%); }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); border-bottom: 1px solid rgba(133, 176, 218, .16); background: rgba(5, 13, 24, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #fff; font-size: 1.15rem; font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; align-self: stretch; gap: 22px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav a { position: relative; display: grid; place-items: center; padding: 0 7px; border-radius: 6px; color: #b5c2d2; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .18s, background .18s; }
.primary-nav a::after { display: none; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a.is-active { color: var(--cyan); background: rgba(53,214,255,.065); outline: none; }
.primary-nav .primary-nav-cta { align-self: center; min-height: 34px; padding: 0 11px; border: 1px solid rgba(53,214,255,.42); border-radius: 7px; background: rgba(12,31,49,.7); color: #dff8ff; font-size: .69rem; }
.primary-nav .primary-nav-cta::after { display: none; }
.primary-nav .nav-canvas { border-color: rgba(167,139,250,.5); background: rgba(63,43,100,.3); color: #e8dcff; }
.primary-nav .nav-workshop { border-color: rgba(53,214,255,.5); background: rgba(11,52,69,.35); color: #c8f6ff; }
.primary-nav .primary-nav-cta:hover, .primary-nav .primary-nav-cta:focus-visible { border-color: currentColor; background: rgba(53,214,255,.1); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-link, .contact-menu summary { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; color: #c9d4e1; font-size: .78rem; font-weight: 750; text-decoration: none; cursor: pointer; list-style: none; transition: color .18s, border-color .18s, background .18s; }
.header-link svg, .contact-menu summary svg { width: 17px; height: 17px; }
.header-link:hover, .header-link:focus-visible { color: var(--cyan); outline: none; }
.contact-menu { position: relative; }
.contact-menu summary::-webkit-details-marker { display: none; }
.contact-menu summary { border-color: rgba(53, 214, 255, .72); color: #f3fbff; background: rgba(53, 214, 255, .05); }
.contact-menu summary:hover, .contact-menu summary:focus-visible, .contact-menu[open] summary { background: rgba(53, 214, 255, .11); box-shadow: 0 0 22px rgba(53, 214, 255, .1); outline: none; }
.contact-popover { position: absolute; top: calc(100% + 13px); right: 0; width: 242px; padding: 10px; border: 1px solid rgba(53, 214, 255, .54); border-radius: 12px; background: #f4f8ff; box-shadow: 0 22px 65px rgba(0, 0, 0, .48); color: #102036; }
.contact-popover::before { content: ""; position: absolute; top: -6px; right: 24px; width: 11px; height: 11px; transform: rotate(45deg); border-top: 1px solid rgba(53, 214, 255, .54); border-left: 1px solid rgba(53, 214, 255, .54); background: #f4f8ff; }
.contact-popover img { display: block; width: 220px; height: 220px; border-radius: 8px; }
.contact-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: .72rem; white-space: nowrap; }
.contact-row > span { flex: 1; }
.contact-row button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 1px solid #0f876c; border-radius: 7px; background: #123c36; color: #eafff8; font-size: .68rem; font-weight: 800; cursor: pointer; }
.contact-row button svg { width: 13px; height: 13px; }
.contact-row button:hover, .contact-row button:focus-visible { background: #0f594d; outline: 2px solid rgba(15, 135, 108, .22); }

.hero { position: relative; min-height: 0; padding-top: 12px; }
.hero::after { content: ""; position: absolute; right: -14%; bottom: 4%; width: 68%; height: 62%; z-index: -1; background: radial-gradient(ellipse, rgba(33, 110, 193, .28), transparent 67%); filter: blur(24px); }
.hero-card { display: grid; grid-template-columns: minmax(0, .98fr) minmax(430px, 1.02fr); align-items: stretch; min-height: 450px; overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-copy { position: relative; z-index: 3; align-self: center; padding: 28px 18px 28px 48px; }
.eyebrow, .section-kicker { margin: 0; color: #a8b9cd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 16px 0 16px; color: #f7faff; font-size: clamp(2.7rem, 4.35vw, 4.2rem); font-weight: 950; letter-spacing: -.055em; line-height: 1.02; text-shadow: 0 12px 34px rgba(0, 0, 0, .42); }
.hero h1 .gf { color: var(--orange); background: linear-gradient(110deg, #ff6a3d, #ff9b42); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 24px rgba(255, 110, 61, .18)); }
.hero-title-sub { color: #f7faff; font-size: .77em; white-space: nowrap; }
.hero-description { max-width: 570px; margin: 0; color: #a4b4c7; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 44px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 9px; color: #edf6ff; font-size: .82rem; font-weight: 850; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
.button-primary { border-color: transparent; background: linear-gradient(110deg, #2bc9ef, #48bff4); color: #03111c; box-shadow: 0 10px 28px rgba(53, 214, 255, .18); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 0 14px 36px rgba(53, 214, 255, .3); }
.button-secondary { background: rgba(13, 29, 48, .56); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--cyan); background: rgba(53, 214, 255, .07); }
.hero-visual { position: relative; z-index: 1; align-self: stretch; min-height: 440px; overflow: hidden; border-radius: 0; background: transparent; }
.hero-video-fade { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 5%, #000 18%, #000 82%, rgba(0,0,0,.25) 95%, transparent 100%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,.25) 5%, #000 17%, #000 83%, rgba(0,0,0,.25) 95%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 5%, #000 18%, #000 82%, rgba(0,0,0,.25) 95%, transparent 100%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,.25) 5%, #000 17%, #000 83%, rgba(0,0,0,.25) 95%, transparent 100%); mask-composite: intersect; }
.hero-visual video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; mix-blend-mode: screen; opacity: .96; filter: contrast(1.04) saturate(1.08); transform: scale(1.035); }
.hero-halo { position: absolute; inset: 17% 10% 10% 8%; z-index: 1; border-radius: 50%; background: radial-gradient(circle, rgba(34, 117, 224, .36), transparent 66%); filter: blur(20px); pointer-events: none; }
.hero-note { position: absolute; right: 2%; top: 47%; z-index: 2; margin: 0; color: rgba(212, 228, 244, .72); font-family: cursive; font-size: .92rem; letter-spacing: .12em; line-height: 1.8; transform: rotate(-9deg); }
.hero-note::after { content: ""; display: block; width: 100px; height: 1px; margin-top: 7px; background: var(--cyan); transform: rotate(-13deg); transform-origin: left; }

.quick-dock { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(520px, 1.1fr); min-height: 88px; margin-top: 12px; border: 1px solid rgba(120, 169, 216, .38); border-radius: 11px; background: linear-gradient(145deg, rgba(18, 38, 62, .96), rgba(8, 19, 33,.97)); box-shadow: 0 22px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05); }
.resource-search { display: flex; align-items: center; gap: 12px; margin: 15px; padding: 0 17px; border: 1px solid rgba(123, 169, 213, .38); border-radius: 9px; background: rgba(7, 17, 31, .5); }
.resource-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53, 214, 255, .08); }
.resource-search svg { flex: 0 0 auto; width: 21px; height: 21px; color: #c2d1e1; }
.resource-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #f3f8ff; font-size: .84rem; }
.resource-search input::placeholder { color: #7f92a8; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-links a { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; color: #d2deeb; font-size: .7rem; font-weight: 700; text-align: center; text-decoration: none; transition: color .18s, background .18s; }
.quick-links a + a::before { content: ""; position: absolute; top: 24%; bottom: 24%; left: 0; width: 1px; background: var(--line); }
.quick-links a svg { width: 22px; height: 22px; }
.quick-links a:hover, .quick-links a:focus-visible { color: var(--cyan); background: rgba(53, 214, 255, .04); outline: none; }

.section { padding-top: 54px; scroll-margin-top: calc(var(--header-height) + 18px); }
.section-heading, .resource-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .resource-heading h2 { margin: 3px 0 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: #9bacc0; font-size: .8rem; }
.section-heading > p span { color: var(--cyan); margin-left: 7px; }
.featured-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr); gap: 14px; }
.canvas-feature, .feature-link { border: 1px solid rgba(126, 172, 215, .34); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 35, 58, .9), rgba(7, 17, 30, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 46px rgba(0, 0, 0, .2); }
.canvas-feature { display: grid; grid-template-columns: minmax(265px, .7fr) minmax(360px, 1.3fr); min-height: 330px; overflow: visible; }
.canvas-copy { position: relative; z-index: 2; padding: 30px 20px 24px 28px; }
.feature-badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--cyan); color: #02131e; font-size: .66rem; font-weight: 900; }
.canvas-copy h3 { margin: 15px 0 6px; font-size: clamp(1.55rem, 2.7vw, 2.2rem); letter-spacing: -.04em; }
.canvas-copy > p { margin: 0 0 22px; color: #a9b9ca; font-size: .9rem; }
.canvas-copy .button { min-height: 40px; padding-inline: 17px; }
.feature-meta { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: #7f94aa; font-size: .65rem; }
.feature-meta i { width: 3px; height: 3px; border-radius: 50%; background: #66809a; }
.canvas-media { position: relative; min-width: 0; overflow: hidden; border-radius: 0 var(--radius) var(--radius) 0; background: transparent; -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 5%, #000 18%, #000 82%, rgba(0,0,0,.25) 95%, transparent 100%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,.25) 5%, #000 17%, #000 83%, rgba(0,0,0,.25) 95%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 5%, #000 18%, #000 82%, rgba(0,0,0,.25) 95%, transparent 100%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,.25) 5%, #000 17%, #000 83%, rgba(0,0,0,.25) 95%, transparent 100%); mask-composite: intersect; }
.canvas-media video { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.04); transform: scale(1.035); transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; }
.canvas-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,9,18,.32), transparent 24%, transparent 76%, rgba(4,9,18,.32)), linear-gradient(0deg, rgba(4,9,18,.38), transparent 30%); }
.canvas-media:hover video, .canvas-media:focus-visible video { transform: scale(1.035); filter: saturate(1.08) contrast(1.06); }
.canvas-media:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.media-shine { position: absolute; z-index: 2; right: 0; bottom: 0; width: 46%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 13px var(--cyan); }
.featured-side { display: grid; grid-template-rows: minmax(206px, 1fr) auto; gap: 12px; }
.workshop-feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 206px; overflow: visible; padding: 24px; border: 1px solid rgba(53, 214, 255, .4); border-radius: var(--radius); background: linear-gradient(90deg, rgba(5,14,27,.93) 0%, rgba(5,14,27,.66) 48%, rgba(5,14,27,.16) 100%), url("assets/images/miaobi-workshop-feature.webp") 55% center / cover no-repeat; color: #f4f8ff; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 46px rgba(0,0,0,.22); }
.workshop-feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 40%, rgba(3,10,20,.76)); }
.workshop-badge, .workshop-copy, .workshop-feature > b { position: relative; z-index: 2; }
.workshop-badge { align-self: flex-start; margin-bottom: 8px; padding: 3px 8px; border: 1px solid rgba(53,214,255,.48); border-radius: 999px; background: rgba(5,25,39,.72); color: var(--cyan); font-size: .6rem; font-weight: 850; }
.workshop-copy { display: grid; gap: 5px; }
.workshop-copy strong { font-size: 1.32rem; letter-spacing: -.03em; }
.workshop-copy small { color: #a8bacb; font-size: .7rem; line-height: 1.55; }
.workshop-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.workshop-tags i { padding: 3px 6px; border: 1px solid rgba(53,214,255,.25); border-radius: 5px; background: rgba(5,20,34,.64); color: #9edff0; font-size: .57rem; font-style: normal; }
.workshop-feature > b { align-self: flex-end; margin-top: 9px; color: var(--cyan); font-size: .7rem; }
.feature-link { --feature-accent: var(--cyan); display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; min-height: 108px; padding: 16px 18px; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.feature-link-purple { --feature-accent: var(--purple); }
.feature-link:hover, .feature-link:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--feature-accent) 62%, transparent); box-shadow: 0 20px 42px rgba(0, 0, 0, .3), 0 0 22px color-mix(in srgb, var(--feature-accent) 12%, transparent); outline: none; }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid color-mix(in srgb, var(--feature-accent) 44%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--feature-accent) 8%, transparent); color: var(--feature-accent); }
.feature-icon svg { width: 25px; height: 25px; }
.feature-link > span:nth-child(2) { display: grid; gap: 4px; }
.feature-link strong { font-size: 1.06rem; }
.feature-link small { color: #8fa1b6; font-size: .72rem; }
.feature-link > b { color: var(--feature-accent); font-size: 1.35rem; font-weight: 400; transition: transform .18s; }
.feature-link:hover > b { transform: translateX(5px); }

.resource-center { padding-bottom: 54px; }
.resource-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.resource-heading h2 small { margin-left: 13px; color: #8da0b5; font-size: .78rem; font-weight: 500; letter-spacing: 0; }
.resource-filters { display: flex; gap: 3px; padding: 3px; border: 1px solid rgba(118, 163, 206, .16); border-radius: 9px; background: rgba(12, 25, 43, .7); }
.resource-filters button { min-width: 68px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #9fb0c2; font-size: .72rem; font-weight: 750; cursor: pointer; }
.resource-filters button:hover, .resource-filters button:focus-visible { color: #fff; outline: none; }
.resource-filters button.is-active { background: var(--cyan); color: #03121c; box-shadow: 0 5px 18px rgba(53, 214, 255, .16); }
.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.resource-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; min-height: 88px; padding: 12px 10px; border-bottom: 1px solid rgba(126, 172, 215, .18); text-decoration: none; transition: padding .18s, background .18s, border-color .18s; }
.resource-item:hover, .resource-item:focus-visible { padding-right: 16px; padding-left: 16px; border-color: rgba(53, 214, 255, .5); background: linear-gradient(90deg, rgba(53, 214, 255, .06), transparent); outline: none; }
.resource-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(127, 176, 221, .44); border-radius: 9px; background: rgba(16, 33, 54, .72); color: #dceafb; }
.resource-icon svg { width: 23px; height: 23px; }
.resource-item > span:nth-child(2) { display: grid; gap: 2px; }
.resource-item strong { font-size: .9rem; }
.resource-item small { color: #8497ac; font-size: .7rem; }
.resource-item > b { color: #9eb4c9; font-size: 1.15rem; font-weight: 400; transition: color .18s, transform .18s; }
.resource-item:hover > b { color: var(--cyan); transform: translateX(4px); }
.resource-item.is-hidden { display: none; }
.resource-empty { margin: 26px 0 0; padding: 28px; border: 1px dashed var(--line); color: #8ea1b6; text-align: center; }

.community { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 22px; min-height: 154px; margin-bottom: 42px; padding: 26px 30px; overflow: visible; border: 1px solid rgba(79, 176, 235, .42); border-radius: var(--radius); background: linear-gradient(90deg, rgba(7,18,33,.96) 0%, rgba(7,18,33,.8) 44%, rgba(7,18,33,.42) 100%), url("assets/images/community-horizon.webp") center 57% / cover no-repeat; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 46px rgba(0,0,0,.2); }
.community-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(126, 172, 215, .38); border-radius: 10px; color: #dceafa; }
.community-icon svg { width: 29px; height: 29px; }
.community h2 { margin: 0; font-size: 1.3rem; }
.community p { margin: 3px 0 0; color: #96a8bc; font-size: .78rem; }
.site-footer { border-top: 1px solid rgba(126, 172, 215, .16); background: rgba(3, 9, 17, .38); color: #788ca2; font-size: .7rem; }
.site-footer .shell { display: flex; justify-content: space-between; padding-block: 23px; }
.site-footer p { margin: 0; }
.copy-toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; padding: 10px 15px; border: 1px solid rgba(53, 214, 255, .5); border-radius: 8px; background: #0b2433; color: #eafbff; font-size: .76rem; box-shadow: 0 18px 42px rgba(0,0,0,.42); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .18s, transform .18s; }
.copy-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Restored from the original homepage: cursor-following text echoes. */
.hero-echo-target { --echo-activity: 0; --echo-front-x: 0px; --echo-front-y: 0px; isolation: isolate; position: relative; display: inline-block; transform: translate3d(var(--echo-front-x), var(--echo-front-y), 0); will-change: transform; }
.hero h1 .gf.hero-echo-target { --echo-rgb: 255 139 68; }
.hero-title-sub.hero-echo-target { --echo-rgb: 232 244 255; }
.echo-section-title.hero-echo-target { --echo-rgb: 83 205 255; }
.hero-echo-target::before { content: attr(data-echo-text); position: absolute; inset: 0; z-index: -1; color: rgb(var(--echo-rgb) / .2); opacity: var(--echo-activity); pointer-events: none; user-select: none; filter: blur(.35px); transform: translate3d(var(--echo-x1), var(--echo-y1), 0); text-shadow: var(--echo-x2) var(--echo-y2) 1px rgb(var(--echo-rgb) / .17), var(--echo-x3) var(--echo-y3) 1.3px rgb(var(--echo-rgb) / .145), var(--echo-x4) var(--echo-y4) 1.6px rgb(var(--echo-rgb) / .12), var(--echo-x5) var(--echo-y5) 2px rgb(var(--echo-rgb) / .095), var(--echo-x6) var(--echo-y6) 2.4px rgb(var(--echo-rgb) / .072), var(--echo-x7) var(--echo-y7) 2.8px rgb(var(--echo-rgb) / .05), var(--echo-x8) var(--echo-y8) 3.2px rgb(var(--echo-rgb) / .03); -webkit-text-fill-color: rgb(var(--echo-rgb) / .2); will-change: transform, opacity; }

/* Layered card response used by the original cards, tuned for the denser portal layout. */
.interactive-card { --card-rx: 0deg; --card-ry: 0deg; --card-mx: 50%; --card-my: 50%; --card-back-x: 0px; --card-back-y: 0px; --edge-angle: 0deg; position: relative; isolation: isolate; transform-style: preserve-3d; will-change: transform; transition: transform .22s cubic-bezier(.16,1,.3,1), border-color .2s, box-shadow .24s, filter .22s; }
.interactive-card:hover, .interactive-card:focus-within { z-index: 8; transform: perspective(1200px) rotateX(var(--card-rx)) rotateY(var(--card-ry)) translateY(-8px) scale(1.012); border-color: rgba(53,214,255,.64); box-shadow: 0 28px 58px rgba(0,0,0,.42), 0 0 28px rgba(53,214,255,.14), inset 0 1px 0 rgba(255,255,255,.11); }
.interactive-card::before { content: ""; position: absolute; inset: 0; z-index: 7; border-radius: inherit; background: radial-gradient(320px circle at var(--card-mx) var(--card-my), rgba(255,255,255,.15), rgba(53,214,255,.045) 35%, transparent 68%); opacity: 0; pointer-events: none; transition: opacity .16s; }
.interactive-card:hover::before, .interactive-card:focus-within::before { opacity: 1; }
.workshop-feature.interactive-card::before { z-index: 3; }
.interactive-card > :not(.card-backplate):not(.card-edge-glow) { position: relative; z-index: 3; }
.card-backplate { position: absolute !important; inset: -8px; z-index: 0 !important; border: 1px solid rgba(53,214,255,.3); border-radius: calc(var(--radius) + 7px); background: linear-gradient(145deg, rgba(53,214,255,.11), rgba(6,13,25,.55)); box-shadow: 0 25px 64px rgba(0,0,0,.55); opacity: .6; pointer-events: none; transform: translateZ(-28px) translate3d(var(--card-back-x),var(--card-back-y),0); transition: opacity .18s, transform .18s, border-color .18s; }
.hero-card .card-backplate { border-radius: 24px; }
.card-edge-glow { position: absolute !important; inset: -4px; z-index: 5 !important; padding: 1.5px; overflow: hidden; border-radius: calc(var(--radius) + 3px); background: conic-gradient(from var(--edge-angle), transparent 0deg 55deg, rgba(53,214,255,.84) 92deg, rgba(167,139,250,.62) 123deg, transparent 162deg 246deg, rgba(255,123,63,.68) 284deg, rgba(53,214,255,.76) 314deg, transparent 348deg); box-shadow: 0 0 18px rgba(53,214,255,.22), 0 0 32px rgba(167,139,250,.1); opacity: .72; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: edge-orbit 4.8s linear infinite; }
.hero-card .card-edge-glow { border-radius: 21px; }
.interactive-card:hover .card-backplate, .interactive-card:focus-within .card-backplate { opacity: .95; border-color: rgba(53,214,255,.55); transform: translateZ(-38px) translate3d(var(--card-back-x),var(--card-back-y),0); }
.interactive-card:hover .card-edge-glow, .interactive-card:focus-within .card-edge-glow { inset: -7px; opacity: 1; filter: saturate(1.35); }
@property --edge-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes edge-orbit { to { --edge-angle: 360deg; } }

@media (max-width: 980px) {
  .header-inner { gap: 24px; }
  .primary-nav { gap: 18px; }
  .primary-nav a:nth-child(4), .header-link span { display: none; }
  .hero-card { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); }
  .hero-copy { padding-left: 34px; }
  .hero h1 { font-size: clamp(2.65rem, 5.7vw, 3.8rem); }
  .quick-dock { grid-template-columns: 1fr; }
  .resource-search { min-height: 54px; }
  .quick-links { min-height: 78px; border-top: 1px solid var(--line); }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-side { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); grid-template-rows: none; }
  .feature-link { min-height: 160px; }
}

@media (max-width: 720px) {
  :root { --header-height: 64px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { height: auto; min-height: var(--header-height); }
  .header-inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 9px; }
  .brand span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .primary-nav { order: 3; width: 100%; height: 34px; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { flex: 0 0 auto; font-size: .72rem; }
  .header-actions { gap: 4px; }
  .header-link, .contact-menu summary { min-height: 36px; padding-inline: 10px; font-size: .7rem; }
  .contact-popover { position: fixed; top: 106px; right: 14px; }
  .hero { min-height: 0; padding-top: 14px; }
  .hero-card { display: block; min-height: 0; }
  .hero-copy { padding: 32px 22px 18px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.35rem); }
  .hero-title-sub { font-size: .68em; letter-spacing: -.055em; }
  .hero-description { font-size: .88rem; }
  .hero-actions { gap: 9px; }
  .button { min-height: 42px; padding-inline: 16px; gap: 13px; }
  .hero-visual { min-height: 350px; margin-top: 0; overflow: hidden; border-top: 1px solid rgba(88,159,218,.15); border-left: 0; }
  .hero-note { right: 0; top: 50%; font-size: .72rem; }
  .quick-dock { margin-top: 16px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .quick-links a { min-height: 72px; }
  .quick-links a:nth-child(3)::before { display: none; }
  .quick-links a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-top: 58px; }
  .section-heading, .resource-heading { align-items: flex-start; }
  .section-heading > p { display: none; }
  .canvas-feature { grid-template-columns: 1fr; }
  .canvas-copy { padding: 26px 22px; }
  .canvas-media { min-height: 230px; border-top: 1px solid var(--line); border-left: 0; }
  .featured-side { grid-template-columns: 1fr; }
  .workshop-feature { min-height: 230px; }
  .feature-link { min-height: 118px; padding: 18px; }
  .resource-heading { display: grid; }
  .resource-heading h2 small { display: block; margin: 8px 0 0; }
  .resource-filters { width: 100%; overflow-x: auto; }
  .resource-filters button { flex: 1; }
  .resource-list { grid-template-columns: 1fr; }
  .community { grid-template-columns: 54px 1fr; padding: 23px 20px; }
  .community-icon { width: 52px; height: 52px; }
  .community .button { grid-column: 1 / -1; justify-self: stretch; }
  .site-footer .shell { display: grid; gap: 4px; }
}

@media (max-width: 430px) {
  .header-link { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 240px; }
  .hero-visual { min-height: 330px; }
  .resource-item { grid-template-columns: 43px 1fr auto; gap: 12px; }
  .resource-icon { width: 43px; height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  video { display: none !important; }
  .hero-visual { background: url("assets/video/hero-ai-dancer-poster.webp") center bottom / contain no-repeat; }
  .canvas-media { background: url("assets/video/paopao-canvas-showcase-poster.webp") center / cover no-repeat; }
  .hero-echo-target, .interactive-card, .interactive-card:hover, .interactive-card:focus-within { transform: none !important; }
  .hero-echo-target::before { display: none; }
}
