/* ============================================================
   PCMS-HRG — editorial interface layer
   Robotics identity with readable content and focused chromatic motion.
   ============================================================ */

:root {
    --interface-cyan: #5cf5ff;
    --interface-violet: #a57bff;
    --interface-amber: #ffc84d;
    --interface-line: rgba(126, 228, 255, 0.18);
    --interface-line-strong: rgba(126, 228, 255, 0.36);
    --editorial-max: 1180px;
    --space-section: clamp(3.5rem, 6vw, 5rem);
    --font-display: 'Spectral', 'Noto Serif TC', Georgia, 'Times New Roman', serif;
    --font-data: 'IBM Plex Mono', ui-monospace, monospace;
    --font-tech: var(--font-display);
}

html { background: #03050c; }

:root[data-lang="zh-Hant"] {
    --font-display: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
    --font-data: 'IBM Plex Mono', 'PingFang TC', 'Microsoft JhengHei', monospace;
}

body {
    position: relative;
    font-size: 1rem;
    line-height: 1.72;
    color: #dce7f4;
    background-color: #03050c;
    background-image:
        radial-gradient(circle at 50% -15%, rgba(63, 92, 190, 0.16), transparent 45%),
        linear-gradient(180deg, #050915 0%, #060a14 42%, #03050c 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('../img/brand/deep-field.svg') center center / cover no-repeat;
    opacity: 0.65;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 85%, transparent);
}

#page-main,
.site-footer { position: relative; z-index: 3; }

/* ---------- Navigation: compact instrument strip ---------- */
.top-bar {
    padding: 1.12rem 0 0.5rem;
    background: rgba(4, 8, 17, 0.82);
    border-bottom-color: rgba(126, 228, 255, 0.12);
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px) saturate(1.2);
}

.brand-logo { height: 38px; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.008em;
    animation: none;
}
.brand-line,
.brand-line::before,
.brand-line::after { animation: none; }
.brand-line {
    color: #cceeff;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.brand-line::before,
.brand-line::after { display: none; }

.social-link-named {
    gap: 0.5rem;
    padding: 0.24rem 0.2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: var(--font-data);
    font-size: 0.66rem;
    letter-spacing: 0.09em;
    color: #b8efff;
}

.social-link-named:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #fff;
    text-shadow: none;
}

.tab-nav {
    top: var(--header-height, 69px);
    background: rgba(5, 9, 18, 0.78);
    border-bottom-color: rgba(126, 228, 255, 0.1);
    backdrop-filter: blur(18px) saturate(1.15);
}

.tab-list { gap: clamp(0.15rem, 1vw, 0.8rem); }
.tab-btn {
    padding: 0.86rem 0.82rem 0.76rem;
    font-family: var(--font-data);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tab-btn:hover,
.tab-btn.active { background: transparent; }
.tab-btn.active { border-bottom-color: var(--interface-cyan); text-shadow: none; }
.tab-btn-back { border-left: 0; background: transparent; }
.tab-btn-back:hover { background: transparent; }

/* ---------- Editorial rhythm and type ---------- */
.page-content { max-width: var(--editorial-max); padding-top: clamp(3rem, 6vw, 5.5rem); }
.section { margin-bottom: var(--space-section); }
.section-divider {
    margin: calc(var(--space-section) / 2) 0;
    border: 0;
    height: 1px;
    opacity: 1;
    background: linear-gradient(90deg, rgba(92, 245, 255, 0.55), rgba(165, 123, 255, 0.18) 48%, transparent 90%);
}

/* Match the compact About rhythm, with each boundary owning its spacing. */
.page-content > .section { margin-bottom: 0; }
.page-content > .section + .section { margin-top: var(--space-section); }

p,
:root[data-lang="en"] p {
    font-size: clamp(1.06rem, 0.38vw + 0.94rem, 1.18rem);
    line-height: 1.74;
    color: #b2c2d2;
    text-align: left;
}

:root[data-lang="zh-Hant"] body { font-family: var(--font-display); }

h1, h2, h3, h4,
.hero-title,
.home-intro-title,
.section-title,
.subsection-title,
.activity-title,
.honour-rank,
.honour-event,
.line-name,
.tech-card-title,
.coach-name,
.connect-title {
    font-family: var(--font-display);
    font-weight: 400;
}

.hero-title {
    max-width: 760px;
    font-size: clamp(3rem, 5.8vw, 5.4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: wrap;
    -webkit-text-stroke: 0.25px rgba(232, 252, 255, 0.35);
    text-shadow: none;
}
.hero-title span {
    background-image: linear-gradient(100deg, #27eeff 0%, #5898ff 48%, #bd68ff 100%);
    filter: drop-shadow(0 0 18px rgba(79, 167, 255, 0.25));
}
.hero-kicker,
.section-eyebrow,
.line-focus,
.activity-date,
.pill,
.line-tag,
.member-joined,
.result-table th,
.honour-foot,
.vf-readout,
.vision-tag,
.btn-tab-link {
    font-family: var(--font-data);
}
.hero-actions .btn-primary-action {
    color: #07101b;
    background: #9cdee9;
    border-color: #9cdee9;
    text-shadow: none;
}
.hero-actions .btn-primary-action:hover { background: #c4eef4; color: #07101b; }

.hero-kicker {
    padding: 0.24rem 0.65rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: #d2fbff;
    font-weight: 600;
    background: rgba(3, 10, 20, 0.56);
    text-shadow: 0 2px 3px #020710;
    border: 0;
    border-left: 2px solid var(--interface-cyan);
    border-radius: 0;
}
.hero-sub {
    max-width: 760px;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.68;
    color: #edf6ff;
    font-weight: 500;
    text-shadow: 0 2px 3px #020710, 0 0 16px rgba(2, 7, 16, 0.65);
    text-align: left;
}
.home-intro-title {
    animation: none;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #ecf8ff;
}

.section-title,
h1.section-title {
    color: #eaf8ff;
    -webkit-text-fill-color: currentColor;
    background: none;
    text-shadow: none;
    font-weight: 300;
    letter-spacing: -0.024em;
    line-height: 1.1;
    -webkit-text-stroke: 0.2px rgba(207, 240, 255, 0.32);
}

h1.section-title { font-size: clamp(2.55rem, 4.8vw, 4.35rem); }
h2.section-title { font-size: clamp(2rem, 3.4vw, 2.95rem); }
.subsection-title { font-size: clamp(1.25rem, 2vw, 1.72rem); font-weight: 400; letter-spacing: -0.014em; }

/* A complete title stays in the layout while its letters reveal in sequence. */
h1.title-type { background: none; color: #eaf8ff; -webkit-text-fill-color: currentColor; }
.title-type span { background: none; filter: none; -webkit-text-fill-color: inherit; }
.title-type .title-type__visual { transition: opacity 240ms ease-out; }
.title-type .title-character {
    position: relative;
    color: #c4f8ff;
    background: var(--title-ink, linear-gradient(100deg, #bafaff, #69dbff 22%, #a3adff 43%, #eda5ff 62%, #ffb6df 80%, #bafaff)) 0 50% / 600% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-spectrum 6s linear infinite;
    animation-delay: var(--ink-delay, 0s);
    animation-play-state: paused;
    text-shadow: 0 0 0.35em rgba(100, 198, 255, 0.15);
}
.hero-title.title-type .title-type__visual {
    filter: drop-shadow(0 3px 2px rgba(0, 3, 10, .9)) drop-shadow(0 0 12px rgba(81, 202, 255, .2));
}
.hero-title.title-type {
    --title-ink: linear-gradient(100deg, #dfffff, #76e7ff 22%, #a2b4ff 43%, #dda7ff 62%, #ffb4e1 80%, #dfffff);
}
.title-type.is-title-running .title-character { animation-play-state: running; }
.title-type.is-title-running .title-character:not(.is-revealed) { opacity: 0; }
.title-type.is-title-resetting .title-type__visual { opacity: 0; }
.title-type .is-cursor::after {
    content: '';
    position: absolute;
    top: 0.1em; bottom: 0.06em; right: -0.06em; width: 2px;
    background: #d3faff;
    box-shadow: 0 0 8px #52d9ff, 0 0 14px rgba(206, 127, 255, 0.65);
    pointer-events: none;
}
@keyframes title-spectrum { to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
    .title-type .title-character { animation: none; opacity: 1 !important; }
    .title-type .title-type__visual { opacity: 1 !important; transition: none; }
    .title-type .is-cursor::after { display: none; }
}
@media print {
    .title-type .title-character { animation: none; opacity: 1 !important; background: none; -webkit-text-fill-color: currentColor; }
    .title-type .title-type__visual { opacity: 1 !important; }
    .title-type .is-cursor::after { display: none; }
    .hero-title.title-type .title-type__visual { filter: none; }
}

.section-title::before {
    width: min(100%, 8rem);
    height: 1px;
    background: linear-gradient(90deg, var(--interface-cyan), var(--interface-violet), transparent);
}

.section-eyebrow {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--interface-cyan);
}

.section-intro {
    width: 100%;
    max-width: none;
    color: #a7b5ca;
}

/* Use the full text column before wrapping, without balancing prose lines. */
#page-main .hero-sub,
#page-main .page-content p:not(.text-center),
#page-main .section-intro {
    text-align: left;
    text-wrap: wrap;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: break-word;
}
.lead { line-height: 1.72; }

:root[data-lang="zh-Hant"] .hero-title,
:root[data-lang="zh-Hant"] .home-intro-title,
:root[data-lang="zh-Hant"] .section-title,
:root[data-lang="zh-Hant"] .subsection-title,
:root[data-lang="zh-Hant"] .activity-title,
:root[data-lang="zh-Hant"] .honour-event {
    letter-spacing: 0.015em;
    line-height: 1.15;
}
:root[data-lang="zh-Hant"] .hero-kicker,
:root[data-lang="zh-Hant"] .section-eyebrow,
:root[data-lang="zh-Hant"] .filter-chip { letter-spacing: 0.1em; }

/* ---------- Continuous activity telemetry reel ---------- */
.activity-showcase {
    position: relative;
    isolation: isolate;
}

.activity-showcase__head {
    display: grid;
    grid-template-columns: minmax(270px, 0.8fr) minmax(320px, 1.2fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: end;
    margin-bottom: 2.1rem;
}

.activity-showcase__head .section-title { margin-bottom: 0; }
.activity-showcase__head .section-intro { margin: 0 0 0.3rem; }

.activity-loop {
    --rank-accent: #5cf5ff;
    --rank-accent-2: #a57bff;
    position: relative;
    left: 50%;
    width: min(1440px, calc(100vw - 1.5rem));
    transform: translateX(-50%);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(92, 245, 255, 0.34);
    border-bottom: 1px solid rgba(165, 123, 255, 0.25);
    background:
        linear-gradient(90deg, rgba(92, 245, 255, 0.055), transparent 18%, transparent 82%, rgba(165, 123, 255, 0.055)),
        linear-gradient(180deg, rgba(7, 14, 28, 0.7), rgba(3, 7, 15, 0.38));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 0 70px rgba(47, 114, 255, 0.07);
    overflow: hidden;
}

.activity-loop::before,
.activity-loop::after {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    width: clamp(26px, 6vw, 92px);
    pointer-events: none;
}
.activity-loop::before { left: 0; background: linear-gradient(90deg, #050914, rgba(5, 9, 20, 0.82) 28%, transparent); }
.activity-loop::after { right: 0; background: linear-gradient(-90deg, #050914, rgba(5, 9, 20, 0.82) 28%, transparent); }

.activity-loop__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    touch-action: auto;
}
.activity-loop__viewport::-webkit-scrollbar { display: none; }

.activity-loop__track {
    --loop-gap: clamp(0.8rem, 1.4vw, 1.2rem);
    display: flex;
    width: max-content;
    will-change: transform;
    animation: activity-loop-scroll 86s linear infinite;
}

.activity-loop__group {
    display: flex;
    flex: none;
    gap: var(--loop-gap);
    padding-right: var(--loop-gap);
}

.activity-slide {
    --rank-accent: #5cf5ff;
    --rank-accent-2: #a57bff;
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1.18fr);
    gap: 1.15rem;
    align-items: center;
    flex: none;
    width: clamp(480px, 39vw, 570px);
    min-height: 178px;
    padding: 1.15rem 2.5rem 1.15rem 1.05rem;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(112deg, rgba(11, 23, 42, 0.9), rgba(6, 10, 22, 0.62)) padding-box,
        linear-gradient(125deg, color-mix(in srgb, var(--rank-accent) 58%, transparent), rgba(116, 169, 207, 0.1) 48%, color-mix(in srgb, var(--rank-accent-2) 36%, transparent)) border-box;
    border: 1px solid transparent;
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
    box-shadow: inset 0 0 34px rgba(92, 245, 255, 0.025);
    transition: transform 220ms ease, filter 220ms ease, background 220ms ease;
}

.activity-slide::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58px;
    height: 58px;
    opacity: 0.58;
    background:
        linear-gradient(135deg, transparent 47%, color-mix(in srgb, var(--rank-accent) 70%, transparent) 48%, transparent 50%),
        linear-gradient(90deg, transparent 78%, color-mix(in srgb, var(--rank-accent-2) 48%, transparent) 79%);
}

.activity-slide:hover,
.activity-slide:focus-visible {
    color: inherit;
    transform: translateY(-5px);
    filter: drop-shadow(0 12px 28px color-mix(in srgb, var(--rank-accent) 17%, transparent));
    outline: 0;
}

.activity-slide.is-gold,
.honour-card.is-gold { --rank-accent: #ffe477; --rank-accent-2: #ff794d; }
.activity-slide.is-world,
.honour-card.is-world { --rank-accent: #62f7ff; --rank-accent-2: #826dff; }
.activity-slide.is-robocup,
.honour-card.is-robocup { --rank-accent: #55fbff; --rank-accent-2: #f054ff; }
.activity-slide.is-qualified,
.honour-card.is-qualified { --rank-accent: #75ffb4; --rank-accent-2: #4bc8ff; }
.activity-slide.is-outreach { --rank-accent: #ff6ee1; --rank-accent-2: #ff995a; }
.activity-slide.is-training { --rank-accent: #68c9ff; --rank-accent-2: #6f7cff; }

.activity-result-badge {
    width: 100%;
    min-height: 132px;
    font-size: clamp(1.9rem, 2.5vw, 2.55rem);
}
.activity-result-badge.is-status {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    letter-spacing: -0.012em;
}

.activity-slide__copy { min-width: 0; }
.activity-slide__date {
    display: block;
    margin-bottom: 0.55rem;
    font-family: var(--font-data);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--rank-accent) 84%, #d7e4ee);
}
.activity-slide__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.03rem, 1.35vw, 1.24rem);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.012em;
    color: #eef8ff;
    text-wrap: wrap;
}
.activity-slide__line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.9rem;
    font-family: var(--font-data);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.activity-slide__line b { color: var(--rank-accent); font-weight: 600; }
.activity-slide__line em {
    padding-left: 0.55rem;
    color: #879bb0;
    border-left: 1px solid rgba(126, 228, 255, 0.2);
    font-style: normal;
}
.activity-slide__arrow {
    position: absolute;
    top: 0.8rem;
    right: 0.95rem;
    color: color-mix(in srgb, var(--rank-accent) 70%, #8194a8);
    font-size: 0.84rem;
    transition: transform 200ms ease, color 200ms ease;
}
.activity-slide:hover .activity-slide__arrow { color: #fff; transform: translate(2px, -2px); }

.activity-loop.is-dragging .activity-loop__track,
.activity-loop:has(.activity-slide:focus) .activity-loop__track { animation-play-state: paused; }
@media (hover: hover) {
    .activity-loop:hover .activity-loop__track { animation-play-state: paused; }
}

.activity-loop:has(.activity-slide:focus-visible) .activity-loop__track {
    animation: none;
    transform: none;
}

.activity-showcase__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}
.activity-showcase__foot > span {
    font-family: var(--font-data);
    font-size: 0.57rem;
    letter-spacing: 0.12em;
    color: rgba(147, 178, 198, 0.54);
}

@keyframes activity-loop-scroll {
    to { transform: translate3d(-50%, 0, 0); }
}



/* ---------- Programme lines and technical columns ---------- */
.line-grid { gap: clamp(2rem, 5vw, 5rem); }
.line-card,
.line-card.is-k1 {
    padding: 1.8rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--accent-t1-dim);
    border-radius: 0;
    box-shadow: none;
    animation: none;
    overflow: visible;
}
.line-card.is-k1 { border-top-color: var(--accent-k1-dim); }
.line-card::before { top: -1px; width: 38%; height: 1px; }
.line-card:hover,
.line-card.is-k1:hover { transform: none; box-shadow: none; }
.line-card:hover .line-name { color: var(--accent-t1); }
.line-card.is-k1:hover .line-name { color: var(--accent-k1); }
.line-badge {
    width: auto;
    height: auto;
    padding: 0.4rem 0.55rem;
    border: 0;
    border-radius: 0;
    border-left: 2px solid currentColor;
    background: transparent;
}
.line-card.is-k1 .line-badge { background: transparent; }

.tech-card {
    padding: 1.6rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line);
    border-radius: 0;
    box-shadow: none;
}
.tech-card:hover { transform: none; border-color: rgba(92, 245, 255, 0.55); box-shadow: none; }
.tech-card-icon {
    width: auto;
    height: auto;
    justify-content: flex-start;
    margin-bottom: 1.2rem;
    border: 0;
    background: transparent;
    font-size: 1.7rem;
}

.fronts-grid {
    --bs-gutter-x: clamp(3rem, 6vw, 6.5rem);
    --bs-gutter-y: 3rem;
    margin-top: 0.35rem;
}
.fronts-grid > div { position: relative; }
.fronts-grid .tech-card {
    padding-top: 1.8rem;
    border-top-color: rgba(92, 245, 255, 0.3);
}
.fronts-grid .tech-card p {
    font-size: 1.03rem;
    line-height: 1.82;
}

@media (min-width: 768px) {
    .fronts-grid > div + div::before {
        content: '';
        position: absolute;
        top: 0.35rem;
        bottom: 0.25rem;
        left: 0;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(92, 245, 255, 0.24) 18%, rgba(165, 123, 255, 0.22) 82%, transparent);
    }
}

.software-stack,
.roster {
    padding: 1.5rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line);
    border-radius: 0;
}

.pill,
.line-tag,
.member-joined {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pill { padding: 0.24rem 0.1rem; border-width: 0 0 1px; }
.line-tag { border-width: 0 0 1px; padding: 0.12rem 0; }
.member-lines { gap: 0.45rem; }
.member-lines .line-tag { font-size: 0.75rem; padding: 0.18rem; }
.member-joined { border-width: 0; padding: 0.1rem 0; font-size: 0.7rem; text-shadow: none; box-shadow: none; }

/* ---------- Robot and team visual stages ---------- */
.robot-showcase {
    padding: 1.25rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line);
    border-radius: 0;
    box-shadow: none;
}
.robot-showcase::before { display: none; }
.robot-stage::after { opacity: 0.6; }

.team-console {
    position: relative;
    isolation: isolate;
    max-width: 570px;
    margin-inline: auto;
    padding: 0.9rem 4rem 0.7rem;
    border-block: 1px solid var(--interface-line);
    background: radial-gradient(ellipse at 50% 20%, rgba(41, 87, 115, 0.1), transparent 75%);
}
.team-console::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 46px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--interface-cyan);
}
.team-watermarks {
    position: absolute;
    z-index: -1;
    inset: 28% 0 1.2rem;
    pointer-events: none;
    overflow: hidden;
}
.team-watermarks img {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: auto;
    height: 180px;
    opacity: 0.48;
    filter: drop-shadow(0 0 10px rgba(92, 245, 255, 0.22));
}
.team-watermarks img + img { left: auto; right: 0; height: 155px; }
.team-console__people-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: fit-content;
    margin: 0 auto 0.6rem;
    font-family: var(--font-data);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: #c1d3df;
}
.team-console__count { color: var(--interface-cyan); font-variant-numeric: tabular-nums; }
.team-console__coaches {
    width: fit-content;
    min-width: 70%;
    margin: 0 auto 0.7rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--interface-line);
}
.team-coach-portraits { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2rem); }
.team-portraits { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem 0.35rem; }
.team-portrait {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.4rem;
    min-width: 0;
    width: calc(16.666% - 0.35rem);
    color: #b7c9d8;
}
.team-portrait img {
    display: block;
    width: 48px;
    height: 48px;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(157, 190, 209, 0.4);
    border-radius: 4px;
    background: #e6ebef;
}
.team-coach-portraits .team-portrait { width: 64px; }
.team-coach-portraits .team-portrait img { width: 48px; height: 48px; border-radius: 50%; border-color: rgba(255, 200, 77, 0.45); }
.team-portrait__name { max-width: 100%; font-size: 0.8rem; line-height: 1.4; text-align: center; text-wrap: balance; }
:root:not([data-lang="zh-Hant"]) .team-portrait__name [lang="zh-Hant"],
:root[data-lang="zh-Hant"] .team-portrait__name [lang="en"] { display: none; }
.team-portrait:hover { color: #fff; }
.team-portrait:hover img { border-color: var(--interface-cyan); }
.team-portrait:focus-visible { outline: 2px solid var(--interface-cyan); outline-offset: 4px; }
.team-console__platform-link {
    display: block;
    width: fit-content;
    margin: 0.8rem auto 0;
    color: #6e899d;
    font-family: var(--font-data);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
}
@media (min-width: 576px) and (max-width: 1199.98px) {
    .team-portrait { width: calc(20% - 0.35rem); }
}
@media (max-width: 575.98px) {
    .team-console { padding-inline: 2.15rem; }
    .team-portrait { width: calc(25% - 0.35rem); }
    .team-portrait img { width: 44px; height: 44px; }
    .team-watermarks img { height: 100px; opacity: 0.32; bottom: 38%; }
    .team-watermarks img + img { height: 85px; }
}

/* ---------- Roster: portraits with rules and breathing room ---------- */
.coach-card,
.member-card,
.contact-coach-card {
    padding: 1.5rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.coach-card::before,
.contact-coach-card::before { display: none; }
.coach-card:hover,
.member-card:hover,
.contact-coach-card:hover {
    transform: none !important;
    border-color: rgba(92, 245, 255, 0.46);
    box-shadow: none;
}
.coach-card:hover .coach-avatar,
.member-card:hover .member-avatar,
.contact-coach-card:hover .contact-coach-avatar { transform: none; }
.coach-avatar,
.member-avatar,
.contact-coach-avatar { animation: none; box-shadow: none; filter: none; }
.coach-avatar,
.member-avatar,
.contact-coach-portrait { object-position: center top; }
.member-avatar--portrait { object-position: center top; }
.member-card[id] { scroll-margin-top: calc(var(--header-height, 69px) + 62px); }
.member-card:hover .member-avatar { box-shadow: none; }
.member-avatar-placeholder,
.team-preview-placeholder {
    display: grid;
    place-items: center;
    background: #101c2a;
    color: #cce8f0;
    font-family: var(--font-data);
    font-size: 1rem;
    letter-spacing: 0.05em;
    box-shadow: none;
}
.team-preview-placeholder:hover { color: #fff; }

.coach-email {
    max-width: 100%;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: normal;
    border-radius: 0;
    background: transparent;
    border-width: 0 0 1px;
    padding: 0.35rem 0;
}
.coach-email:hover { transform: none; box-shadow: none; }

.coach-name,
.contact-coach-name {
    font-size: clamp(1.6rem, 2.15vw, 1.9rem);
    font-weight: 700;
}

.coach-role,
.contact-coach-role {
    --role-color: #9cf8ff;
    --role-soft: rgba(53, 238, 255, 0.16);
    --role-edge: rgba(92, 245, 255, 0.72);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    width: fit-content;
    min-width: 9.8rem;
    margin: 0.45rem auto 0.7rem;
    padding: 0.42rem 0.88rem 0.38rem;
    color: var(--role-color);
    border-top: 1px solid color-mix(in srgb, var(--role-edge) 58%, transparent);
    border-bottom: 1px solid var(--role-edge);
    background: linear-gradient(90deg, transparent 0%, var(--role-soft) 23%, var(--role-soft) 77%, transparent 100%);
    font-family: var(--font-data);
    font-size: clamp(0.76rem, 1vw, 0.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-shadow: none;
    filter: none;
}
.coach-role::before,
.coach-role::after,
.contact-coach-role::before,
.contact-coach-role::after {
    content: '';
    display: block;
    flex: 0 0 auto;
    width: 0.34rem;
    height: 0.34rem;
    border: 1px solid currentColor;
    transform: rotate(45deg);
    box-shadow: none;
    opacity: 0.84;
}
.coach-role--head,
.contact-coach-role--head {
    --role-color: #ffe08a;
    --role-soft: rgba(255, 181, 62, 0.17);
    --role-edge: rgba(255, 207, 104, 0.78);
}
.coach-role--technical,
.contact-coach-role--technical {
    --role-color: #c4a8ff;
    --role-soft: rgba(133, 94, 255, 0.18);
    --role-edge: rgba(176, 132, 255, 0.8);
}
.member-name {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 750;
    color: #d5e7ee;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.member-card:hover .member-name { filter: none; }
.member-cn {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    font-weight: 700;
}
.roster-names li {
    font-size: 0.98rem;
    font-weight: 650;
}
.roster-names li .rn-cn {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Activities as a mission log ---------- */
.activity-block {
    padding: calc(var(--space-section) / 2) 0 0 clamp(1rem, 2.6vw, 2.25rem);
    margin-bottom: calc(var(--space-section) / 2);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line-strong);
    border-left: 1px solid var(--interface-line);
    border-radius: 0;
    box-shadow: none;
}
.activity-block::before {
    top: -1px;
    left: -1px;
    width: clamp(90px, 18vw, 210px);
    height: 1px;
    background: linear-gradient(90deg, var(--interface-cyan), var(--interface-violet), transparent);
    border-radius: 0;
}
.activity-date {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--interface-cyan);
    letter-spacing: 0.16em;
}
.activity-title { font-size: clamp(1.55rem, 3.2vw, 2.45rem); }
.activity-result {
    padding: 0.4rem 0 0.4rem 1rem;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--interface-amber);
    border-radius: 0;
}

.filter-bar { background: transparent; border-radius: 0; border-bottom: 1px solid var(--interface-line); }
.filter-chip {
    font-family: var(--font-data);
    border-radius: 2px;
    background: rgba(12, 22, 39, 0.42);
    box-shadow: none;
}
.filter-chip[aria-pressed="true"] {
    background: linear-gradient(110deg, rgba(0, 240, 255, 0.13), rgba(165, 123, 255, 0.08));
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.09);
}

/* ---------- Media as an editorial gallery ---------- */
.gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
    counter-reset: gallery-figure;
}
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    counter-increment: gallery-figure;
}
.gallery-item:first-child:not(:only-child) { grid-column: 1 / -1; }
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0.45rem;
    object-fit: cover;
    object-position: center;
    background: rgba(5, 12, 23, 0.76);
    border: 1px solid var(--interface-line-strong);
    filter: brightness(0.94) saturate(0.94);
    transition: border-color 0.25s ease, filter 0.35s ease, transform 0.35s ease;
}
.gallery-item:first-child:not(:only-child) img { aspect-ratio: 16 / 9; }
.gallery-item.is-team-hero img { object-position: center 85%; }
.gallery-item.is-wide {
    grid-column: 1 / -1;
    aspect-ratio: auto !important;
}
.gallery-item.is-wide img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.gallery-item.is-portrait {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 720px);
}
.gallery-item.is-portrait:first-child:not(:only-child) img,
.gallery-item.is-portrait img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.gallery--natural .gallery-item img {
    aspect-ratio: auto;
    object-fit: contain;
}
.gallery--video { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.gallery--video .gallery-item:first-child:not(:only-child) { grid-column: auto; }
.gallery-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #050c17;
    border: 1px solid var(--interface-line-strong);
    border-radius: 0;
    object-fit: contain;
}
.gallery-video .gallery-caption::before { content: 'FILM. ' counter(gallery-figure, decimal-leading-zero); }

.home-highlights__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.home-highlights .activity-date { display: block; margin-bottom: 0.8rem; }
.home-highlights .gallery { margin: 0; }
.home-highlights .subsection-title { font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.5; }

@media (max-width: 767.98px) {
    .home-highlights__layout { grid-template-columns: minmax(0, 1fr); }
}

/* Motion belongs to a few focal points, with feedback on deliberate interaction. */
.hero-network {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent 8%, #000 55%);
}
.hero-network[hidden] { display: none; }
.team-scan {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.team-scan__beam {
    display: block;
    height: 64px;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(92, 245, 255, 0.12));
    border-bottom: 1px solid rgba(92, 245, 255, 0.75);
}
@keyframes brand-colour-pass { to { background-position: 220% center; } }

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .team-portrait { transition: transform 220ms ease, border-color 220ms ease; }
    html:not(.effects-paused) .team-portrait:hover,
    html:not(.effects-paused) .team-portrait:focus-visible { transform: translateY(-5px) scale(1.06); }
    html:not(.effects-paused) .coach-card:hover .coach-avatar,
    html:not(.effects-paused) .member-card:hover .member-avatar,
    html:not(.effects-paused) .contact-coach-card:hover .contact-coach-portrait { transform: translateY(-5px) scale(1.06); }
    .team-console,
    .honour-rank,
    .robot-stage img { transition: transform 420ms cubic-bezier(.2,.7,.2,1); }
    .team-console.has-pointer-motion {
        transform: perspective(1100px) rotateX(calc(var(--pointer-y, 0) * -2deg)) rotateY(calc(var(--pointer-x, 0) * 2deg));
    }
    .honour-card.has-pointer-motion .honour-rank {
        transform: perspective(650px) rotateX(calc(var(--pointer-y, 0) * -8deg)) rotateY(calc(var(--pointer-x, 0) * 9deg)) translateY(-4px);
    }
    .robot-showcase.has-pointer-motion .robot-t1 {
        transform: translate(calc(var(--pointer-x, 0) * 12px), calc(var(--pointer-y, 0) * 8px)) rotate(calc(var(--pointer-x, 0) * -2deg));
    }
    .robot-showcase.has-pointer-motion .robot-k1 {
        transform: translate(calc(var(--pointer-x, 0) * -8px), calc(var(--pointer-y, 0) * -5px)) rotate(calc(var(--pointer-x, 0) * 2deg));
    }
    .team-console.has-pointer-motion,
    .honour-card.has-pointer-motion .honour-rank,
    .robot-showcase.has-pointer-motion .robot-stage img { transition-duration: 100ms; }
    html:not(.effects-paused) .brand-link:hover .brand-line {
        background: linear-gradient(100deg, #dceeff 10%, #5cf5ff 40%, #a57bff 65%, #dceeff 90%) 0 50% / 220% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: brand-colour-pass 2.4s ease-out 1;
    }
}
.gallery:has(> .gallery-item:only-child) > .gallery-item,
.gallery-item.is-feature {
    grid-column: 1 / -1;
    justify-self: start;
    width: min(100%, 760px);
}
.gallery-item::before,
.gallery-item::after {
    content: '';
    position: absolute;
    z-index: 2;
    width: 27px;
    height: 27px;
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, filter 0.3s ease;
}
.gallery-item::before {
    top: -5px;
    left: -5px;
    border-top: 1px solid var(--interface-cyan);
    border-left: 1px solid var(--interface-cyan);
}
.gallery-item::after {
    top: -5px;
    right: -5px;
    border-top: 1px solid var(--interface-violet);
    border-right: 1px solid var(--interface-violet);
}
.gallery-item:hover { transform: none; border-color: transparent; box-shadow: none; }
.gallery-item:hover img {
    transform: translateY(-2px);
    filter: brightness(1.03) saturate(1.06);
    border-color: rgba(92, 245, 255, 0.62);
}
.gallery-item:hover::before,
.gallery-item:hover::after { width: 42px; height: 42px; filter: drop-shadow(0 0 6px currentColor); }
.gallery-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    min-height: 2.9rem;
    margin: 0;
    padding: 0.7rem 0 0 3.55rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.45;
    color: #aebfd0;
    background: transparent;
    opacity: 1;
    transform: none;
}
.gallery-caption::before {
    content: 'FIG. ' counter(gallery-figure, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.82rem;
    font-family: var(--font-data);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--interface-amber);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: none; }

/* Group photographs are mounted plates with notes in the margin, not a pair
   of equal thumbnails. The second plate reverses the reading direction. */
.group-photo-grid { display: block; }
.group-photo {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(250px, 0.65fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: end;
    padding: 2.25rem 0;
    border-top: 1px solid var(--interface-line);
}
.group-photo:nth-child(even) { grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.85fr); }
.group-photo:nth-child(even) .photo-feature { grid-column: 2; grid-row: 1; }
.group-photo:nth-child(even) figcaption { grid-column: 1; grid-row: 1; }
.group-photo .photo-feature {
    width: 100%;
    aspect-ratio: auto;
    padding: 0.5rem;
    background: rgba(5, 12, 23, 0.72);
    border: 1px solid var(--interface-line-strong);
    border-radius: 0;
    box-shadow: none;
}
.group-photo .photo-feature img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    filter: brightness(0.96) saturate(0.94);
}
.group-photo .photo-feature:hover { border-color: rgba(92, 245, 255, 0.6); box-shadow: 0 0 26px rgba(92, 245, 255, 0.08); }
.group-photo .photo-feature:hover img { transform: none; filter: brightness(1.02) saturate(1.02); }
.group-photo figcaption {
    align-self: end;
    margin: 0;
    padding: 0 0 0.25rem;
    border-top: 0;
}

/* Narrow margin notes read better ragged-right than with stretched word gaps. */
#page-main .page-content .group-photo figcaption p {
    text-align: left;
    text-align-last: auto;
    text-wrap: wrap;
    hyphens: none;
    -webkit-hyphens: none;
}

/* ---------- Achievements as a ranked record ---------- */
.honour-grid {
    display: block;
    border-bottom: 1px solid var(--interface-line);
}

.honour-card {
    --rank-accent: #5cf5ff;
    --rank-accent-2: #a57bff;
}
.honour-card.is-silver { --rank-accent: #d898ff; --rank-accent-2: #ff57bc; }
.honour-card.is-bronze { --rank-accent: #ffba59; --rank-accent-2: #ff5fd2; }

.honour-card,
.honour-card.is-gold,
.honour-card.is-world,
.honour-card.is-robocup {
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 2.3fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.honour-card::before,
.honour-card.is-robocup::before {
    top: -1px;
    left: 0;
    width: clamp(70px, 13vw, 150px);
    height: 1px;
    background: linear-gradient(90deg, var(--interface-cyan), transparent);
}
.honour-card.is-gold::before { background: linear-gradient(90deg, var(--interface-amber), transparent); }
.honour-card.is-world::before { background: linear-gradient(90deg, var(--interface-cyan), var(--interface-violet), transparent); }
.honour-card.is-silver::before,
.honour-card.is-bronze::before { background: linear-gradient(90deg, var(--rank-accent), transparent); }
.honour-card:hover,
.honour-card.is-gold:hover,
.honour-card.is-robocup:hover { transform: none; border-color: rgba(92, 245, 255, 0.32); box-shadow: none; }

/* The same armoured result plate appears here and inside the Home reel. */
.honour-rank,
.activity-result-badge {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    padding: 1rem 0.85rem 1.72rem;
    overflow: hidden;
    color: #f7fdff;
    background:
        linear-gradient(125deg, color-mix(in srgb, var(--rank-accent) 24%, #081327), #091122 50%, color-mix(in srgb, var(--rank-accent-2) 28%, #090c20)) padding-box,
        linear-gradient(132deg, var(--rank-accent), rgba(255, 255, 255, 0.12) 35%, var(--rank-accent-2) 70%, var(--rank-accent)) border-box;
    border: 1px solid transparent;
    clip-path: polygon(11px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 15px 100%, 0 calc(100% - 15px), 0 11px);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-align: center;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 9px color-mix(in srgb, var(--rank-accent) 76%, transparent),
        0 0 26px color-mix(in srgb, var(--rank-accent-2) 40%, transparent);
    -webkit-text-stroke: 0.42px rgba(238, 253, 255, 0.9);
    box-shadow:
        inset 0 0 0 5px rgba(2, 6, 15, 0.76),
        inset 0 0 34px color-mix(in srgb, var(--rank-accent) 13%, transparent);
    filter:
        drop-shadow(0 0 8px color-mix(in srgb, var(--rank-accent) 24%, transparent))
        drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
}

.honour-rank::before,
.activity-result-badge::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -45% -100%;
    opacity: 0.7;
    background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--rank-accent) 62%, transparent) 48%, rgba(255, 255, 255, 0.78) 50%, color-mix(in srgb, var(--rank-accent-2) 55%, transparent) 52%, transparent 62%);
    transform: translateX(-34%) skewX(-12deg);
    animation: rank-energy-sweep 4.8s cubic-bezier(0.55, 0.02, 0.24, 1) infinite;
    animation-play-state: paused;
}

.honour-card.is-sweep-visible .honour-rank::before,
.activity-loop.is-sweep-visible .activity-result-badge::before { animation-play-state: running; }

.honour-rank::after,
.activity-result-badge::after {
    content: '';
    height: 5px;
    background: linear-gradient(90deg, var(--rank-accent), var(--rank-accent-2), transparent);
    position: absolute;
    right: 0.58rem;
    bottom: 0.38rem;
    left: 0.58rem;
    padding-top: 0.34rem;
    border-top: 1px solid color-mix(in srgb, var(--rank-accent) 36%, transparent);
    font-family: var(--font-data);
    font-size: 0.42rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.13em;
    color: color-mix(in srgb, var(--rank-accent) 84%, #fff);
    text-align: left;
    text-shadow: none;
    -webkit-text-stroke: 0;
}

.honour-rank {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    margin: 0;
    width: 100%;
    min-height: 132px;
    font-size: clamp(2rem, 3.3vw, 3.1rem);
}
.honour-card.is-robocup .honour-rank {
    width: 100%;
    color: #f7fdff;
    background:
        linear-gradient(125deg, color-mix(in srgb, var(--rank-accent) 24%, #081327), #091122 50%, color-mix(in srgb, var(--rank-accent-2) 28%, #090c20)) padding-box,
        linear-gradient(132deg, var(--rank-accent), rgba(255, 255, 255, 0.12) 35%, var(--rank-accent-2) 70%, var(--rank-accent)) border-box;
    background-clip: padding-box, border-box;
    -webkit-background-clip: padding-box, border-box;
    -webkit-text-fill-color: #f7fdff;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 9px color-mix(in srgb, var(--rank-accent) 76%, transparent),
        0 0 26px color-mix(in srgb, var(--rank-accent-2) 40%, transparent);
}
.honour-card.is-status .honour-rank {
    font-size: clamp(1.35rem, 2.4vw, 2.05rem);
    letter-spacing: -0.025em;
}
.honour-card:hover .honour-rank {
    filter:
        drop-shadow(0 0 13px color-mix(in srgb, var(--rank-accent) 44%, transparent))
        drop-shadow(0 13px 30px rgba(0, 0, 0, 0.5));
}
.honour-card > .pill,
.honour-event,
.honour-detail,
.honour-foot { grid-column: 2; }
.honour-card > .pill { justify-self: start; }
.honour-event { font-size: clamp(1.08rem, 2vw, 1.35rem); }
.honour-detail { color: #a6b5c8; }
.honour-foot { border-top: 1px solid rgba(148, 163, 184, 0.1); }

.result-table-wrap {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line-strong);
    border-bottom: 1px solid var(--interface-line);
    border-radius: 0;
    box-shadow: none;
}
.result-table thead { background: rgba(92, 245, 255, 0.025); }
.result-table th { font-size: 0.67rem; letter-spacing: 0.1em; color: #59edf8; }
.result-table td { font-size: 0.9rem; line-height: 1.55; color: #b8c5d5; }
.result-table tr:last-child td { border-bottom: 0; }

.callout,
.press-link {
    padding: 1.25rem 0 1.25rem clamp(1rem, 2vw, 1.5rem);
    background: transparent;
    border: 0;
    border-left: 1px solid var(--interface-line-strong);
    border-radius: 0;
    box-shadow: none;
}
.press-link:hover { transform: none; background: rgba(92, 245, 255, 0.025); border-color: var(--interface-cyan); }

/* ---------- Connect as a compact communications directory ---------- */
.connect-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
    row-gap: 0;
    align-items: center;
    padding: 1.4rem 0;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line);
    border-radius: 0;
    box-shadow: none;
}
.connect-card:hover { transform: none !important; border-color: rgba(92, 245, 255, 0.48); box-shadow: none; }
.connect-icon {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: none;
}
.connect-card:hover .connect-icon { transform: none; }
.connect-title { grid-column: 2; grid-row: 1; margin: 0; }
.connect-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    margin: 1rem 0 0;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}
/* These descriptions sit in one-third-width columns. Full justification
   stretches the few words on each line too far apart, so keep a natural
   ragged edge with normal wrapping. */
#page-main .page-content .connect-card .connect-desc {
    text-align: left;
    text-align-last: auto;
    text-wrap: wrap;
    hyphens: none;
    -webkit-hyphens: none;
}
.connect-btn {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    max-width: 100%;
    margin-top: 1rem;
    padding: 0.25rem 0;
    border: 0;
    border-bottom: 1px solid rgba(92, 245, 255, 0.42);
    border-radius: 0;
    overflow-wrap: anywhere;
}
.connect-card:hover .connect-btn { background: transparent; color: #fff; box-shadow: none; }

.site-footer { background: rgba(3, 6, 13, 0.84); }

/* The mini-game keeps one bounded play surface; the surrounding site chrome
   still follows the editorial system. */
.game-screen { box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38); }
.glossary-table-wrap {
    padding: 1rem 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--interface-line);
    border-radius: 0;
}
.glossary-th { font-family: var(--font-data); }

@media (max-width: 991.98px) {
    .brand-name { font-size: 0.88rem; }
    .activity-showcase__head { grid-template-columns: minmax(240px, 0.7fr) minmax(300px, 1.3fr); gap: 2.5rem; }
}

@media (max-width: 767.98px) {
    .top-bar { padding: 0.98rem 0 0.45rem; }
    .page-content { padding-top: 2.7rem; }
    .activity-block { padding-left: 1rem; }
    .honour-card,
    .honour-card.is-gold,
    .honour-card.is-world,
    .honour-card.is-robocup { display: block; }
    .honour-rank,
    .honour-card.is-robocup .honour-rank { width: min(230px, 100%); margin-bottom: 1.35rem; }
    .activity-showcase__head { display: block; }
    .activity-showcase__head .section-intro { margin-top: 1.25rem; }
    .activity-loop { width: calc(100vw - 0.75rem); }
    .activity-slide {
        display: block;
        width: min(88vw, 390px);
        min-height: 0;
        padding: 1rem 2.15rem 1.15rem 0.9rem;
    }
    .activity-result-badge {
        width: min(230px, 100%);
        min-height: 104px;
        margin-bottom: 1.15rem;
        font-size: 1.9rem;
    }
    .activity-result-badge.is-status { font-size: 1.22rem; }
    .activity-showcase__foot { align-items: flex-end; }
    .connect-card { grid-template-columns: 42px minmax(0, 1fr); }
    .gallery { grid-template-columns: 1fr; }
    .gallery--natural .gallery-item:first-child:not(:only-child) img { aspect-ratio: auto; }
    .gallery-item,
    .gallery-item:first-child:not(:only-child),
    .gallery-item.is-wide,
    .gallery-item.is-feature { grid-column: 1; width: 100%; }
    .gallery-item:first-child:not(:only-child) img { aspect-ratio: 4 / 3; }
    .group-photo,
    .group-photo:nth-child(even) {
        display: block;
        padding: 1.6rem 0 2.2rem;
    }
    .group-photo .photo-feature { margin-bottom: 1rem; }
    .group-photo:nth-child(even) .photo-feature,
    .group-photo:nth-child(even) figcaption { grid-column: auto; grid-row: auto; }

}

@media (max-width: 575.98px) {
    .brand-name { display: none; }
    .tab-btn { padding-inline: 0.72rem; font-size: 0.76rem; }
    .activity-loop::before,
    .activity-loop::after { width: 24px; }
    .activity-slide {
        width: min(88vw, 345px);
        padding: 0.85rem 1.8rem 1rem 0.75rem;
    }
    .activity-result-badge {
        width: min(210px, 100%);
        min-height: 92px;
        margin-bottom: 0.9rem;
        padding-inline: 0.7rem;
        font-size: 1.65rem;
    }
    .activity-result-badge.is-status { font-size: 1.08rem; }
    .activity-slide__title { font-size: 0.98rem; }
    .activity-showcase__foot { display: grid; justify-items: start; }
    .activity-showcase__foot .btn { justify-self: stretch; }
    .line-grid { gap: 3.5rem; }
    .activity-title { font-size: 1.45rem; }
    .hero-inner { padding-inline: 0.85rem; }
    .hero-title { font-size: clamp(2.5rem, 11.4vw, 2.9rem); line-height: 1; }
    .hero-sub { font-size: 0.94rem; line-height: 1.58; }
}

@media (prefers-reduced-motion: reduce) {
    .activity-loop__track { animation: none !important; }
}

/* Team photographs share one stable frame; crops are non-destructive. */
.hero-media { overflow: hidden; background: #08111d; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1000ms ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide .hero-bg { position: absolute; width: 100%; height: 100%; object-position: var(--slide-position, center); filter: brightness(.72) saturate(.72); }
.hero-slide--wide .hero-bg { object-fit: contain; }
/* A stable dark reading area keeps the luminous title clear on every photo. */
.hero::after {
    background:
        linear-gradient(90deg, rgba(4, 10, 20, .84), rgba(4, 10, 20, .7) 46%, rgba(4, 10, 20, .32) 76%, rgba(4, 10, 20, .22)),
        linear-gradient(180deg, rgba(4, 10, 20, .08) 15%, rgba(4, 10, 20, .38) 65%, rgba(4, 10, 20, .94));
}
.hero-slideshow-nav {
    position: absolute; z-index: 4; right: 0.75rem; bottom: 0.75rem;
    display: flex; gap: 0.15rem; align-items: center; padding: 0.2rem;
    background: transparent; border: 1px solid rgba(200, 232, 251, 0.24);
    backdrop-filter: none; color: #e5f8ff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.hero-slideshow-nav button { width: 44px; height: 44px; color: inherit; border: 0; background: transparent; }
.hero-slideshow-nav button:hover { color: #fff; }
.hero-slideshow-nav button:focus-visible { outline: 2px solid var(--interface-cyan); outline-offset: -2px; }
.hero-inner { padding-bottom: 5.4rem; }
@media (max-width: 767.98px) {
    .hero-media { position: relative; aspect-ratio: 1778 / 741; }
    .hero-inner { padding-bottom: 2rem; }
    .hero-slide .hero-bg { inset: 0; filter: brightness(.82) saturate(.76); }
    .hero::after { background: linear-gradient(180deg, rgba(4, 10, 20, .12), rgba(4, 10, 20, .18) 60%, #050a14); }
}

@keyframes rank-energy-sweep {
    0%, 12% { transform: translateX(-38%) skewX(-12deg); opacity: 0; }
    27% { opacity: 0.7; }
    55%, 100% { transform: translateX(38%) skewX(-12deg); opacity: 0; }
}
@keyframes robot-chroma {
    0%, 100% { filter: brightness(1.08) saturate(1.25) drop-shadow(0 0 5px #62efff) drop-shadow(0 0 20px rgba(71, 167, 255, .7)); }
    33% { filter: brightness(1.2) saturate(1.65) drop-shadow(0 0 8px #ee8aff) drop-shadow(0 0 26px rgba(167, 77, 255, .8)); }
    66% { filter: brightness(1.12) saturate(1.4) drop-shadow(0 0 6px #ffe09c) drop-shadow(0 0 22px rgba(255, 109, 163, .75)); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .robot-showcase.has-pointer-motion .robot-stage img { animation: robot-chroma 2.8s ease-in-out infinite; }
    .robot-showcase.has-pointer-motion .robot-k1 { animation-delay: -1.4s; }
}
html.effects-paused .honour-rank::before,
html.effects-paused .activity-result-badge::before,
html.motion-suspended .honour-rank::before,
html.motion-suspended .activity-result-badge::before,
html.motion-suspended .robot-stage img { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .honour-rank::before, .activity-result-badge::before, .robot-stage img { animation: none !important; }
}

/* Larger explanatory copy; compact metadata remains subordinate. */
#page-main .lead, #page-main .section-intro,
#page-main .activity-block > p, #page-main .honour-detail,
#page-main .line-card > p, #page-main .connect-desc,
#page-main .tech-card p, #page-main .about-list {
    font-size: clamp(1.06rem, 0.38vw + 0.94rem, 1.18rem); line-height: 1.78;
}
#page-main .hero-sub { font-size: clamp(1.08rem, 1.32vw, 1.23rem); color: #edf6ff; }
.robot-role { font-size: 0.9rem; }
.activity-view-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.5rem; }
#page-main .activity-view-links .btn {
    display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
    min-height: 48px; height: auto; max-width: 100%; padding: 0.7rem 1.15rem;
    border: 1px solid var(--interface-line-strong); border-radius: 4px;
    font-size: 1rem; line-height: 1.45; letter-spacing: 0.025em; white-space: normal;
    color: #d8f4ff; background: rgba(43, 105, 156, .12);
}
#page-main .activity-view-links .btn:hover { background: rgba(72, 130, 192, .24); border-color: var(--interface-cyan); }
.video-library { padding-top: calc(var(--space-section) / 2); border-top: 1px solid var(--interface-line-strong); scroll-margin-top: calc(var(--header-height, 70px) + 75px); }
.video-library__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr)); gap: 2rem; }
.video-card { max-width: 760px; overflow: hidden; background: rgba(12, 24, 42, 0.65); border: 1px solid var(--interface-line); }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.video-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.video-card__body .activity-date { display: block; margin-bottom: 0.6rem; }
.video-card__body .subsection-title { line-height: 1.35; }

/* Distinct palettes make result types recognisable throughout the site. */
.activity-slide.is-podium { --rank-accent: #db8bff; --rank-accent-2: #ff6399; }
.activity-slide.is-world, .honour-card.is-world { --rank-accent: #61dcff; --rank-accent-2: #4266ff; }
.activity-slide.is-invited, .honour-card.is-invited { --rank-accent: #c2f96a; --rank-accent-2: #37c979; }
.activity-slide.is-test { --rank-accent: #9eb8da; --rank-accent-2: #7f8dde; }
.activity-slide.is-qualified, .honour-card.is-qualified { --rank-accent: #5fffe0; --rank-accent-2: #159ba7; }

/* Native scrolling, styled as a compact rechargeable energy cell. */
::-webkit-scrollbar { width: 13px; height: 12px; }
::-webkit-scrollbar-track {
    border: 3px solid #050b18; border-radius: 9px;
    background: repeating-linear-gradient(180deg, rgba(118, 156, 198, .19) 0 1px, transparent 1px 9px), #091426;
}
::-webkit-scrollbar-thumb {
    min-height: 44px; border: 3px solid #050b18; border-radius: 9px;
    background:
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(5, 11, 24, .65) 12px 14px),
        linear-gradient(180deg, #82fff0 0%, #58b9ff 32%, #ad7cff 65%, #ff80c9 100%);
    box-shadow: inset 0 0 3px rgba(235, 255, 255, .75);
}
::-webkit-scrollbar-thumb:hover {
    background:
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(5, 11, 24, .48) 12px 14px),
        linear-gradient(180deg, #e2ffb3, #6cecff 30%, #b59cff 65%, #ff9ddd);
}
::-webkit-scrollbar-thumb:active {
    background:
        repeating-linear-gradient(180deg, transparent 0 12px, rgba(5, 11, 24, .35) 12px 14px),
        linear-gradient(180deg, #fff4be, #9effeb 32%, #8bceff 65%, #eb9fff);
    box-shadow: inset 0 0 4px #fff;
}
::-webkit-scrollbar-thumb:horizontal {
    background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(5, 11, 24, .6) 12px 14px), linear-gradient(90deg, #82fff0, #58b9ff 32%, #ad7cff 65%, #ff80c9);
}
/* Branching electric discharges stay inside the native thumb.
   The viewport can inherit its scrollbar styles from either html or body. */
:root::-webkit-scrollbar,
body::-webkit-scrollbar { width: 20px; }
/* Recessed magnetic guide; light hugs the two ends of the moving thumb. */
:root::-webkit-scrollbar-track:vertical,
body::-webkit-scrollbar-track:vertical {
    border-width: 1px; border-radius: 0;
    background: linear-gradient(90deg,
        #030714 1px, #293b52 1px 2px, #0b1525 2px 4px,
        #030813 6px calc(100% - 6px), #0e1427 calc(100% - 4px),
        #37354f calc(100% - 2px) calc(100% - 1px), #030714 calc(100% - 1px));
    background-clip: padding-box;
}
:root::-webkit-scrollbar-track-piece:vertical,
body::-webkit-scrollbar-track-piece:vertical {
    --rail-end: top;
    --rail-angle: 180deg;
    --rail-strength: calc(var(--scroll-charge-energy, 0) * var(--scroll-rail-pulse, .7));
    background-image:
        radial-gradient(ellipse at center var(--rail-end),
            rgb(229 251 255 / calc(var(--rail-strength) * .5)),
            hsl(var(--scroll-charge-hue, 185) 100% 72% / calc(var(--rail-strength) * .42)) 25%,
            hsl(calc(var(--scroll-charge-hue, 185) + 75) 100% 70% / calc(var(--rail-strength) * .2)) 50%, transparent 78%),
        linear-gradient(var(--rail-angle),
            hsl(var(--scroll-charge-hue, 185) 100% 85% / var(--rail-strength)),
            hsl(calc(var(--scroll-charge-hue, 185) + 75) 100% 70% / calc(var(--rail-strength) * .6)) 35%, transparent 90%),
        linear-gradient(var(--rail-angle),
            hsl(calc(var(--scroll-charge-hue, 185) + 90) 100% 85% / var(--rail-strength)),
            hsl(calc(var(--scroll-charge-hue, 185) + 165) 100% 70% / calc(var(--rail-strength) * .6)) 35%, transparent 90%);
    background-size: 100% 120px, 1px 100px, 1px 100px;
    background-position: center var(--rail-end), left 2px var(--rail-end), right 2px var(--rail-end);
    background-repeat: no-repeat;
}
:root::-webkit-scrollbar-track-piece:vertical:start,
body::-webkit-scrollbar-track-piece:vertical:start {
    --rail-end: bottom;
    --rail-angle: 0deg;
}
:root::-webkit-scrollbar-thumb:vertical,
body::-webkit-scrollbar-thumb:vertical {
    --scroll-shell-alpha: calc(.6 + var(--scroll-charge-energy, 0) * .4);
    min-height: 64px; border-width: 1px; border-radius: 0;
    background-color: #101a34;
    /* Fixed-size caps and split grip frame a narrower electric core.
       Painted cutouts retain the browser's full rectangular drag target. */
    background-image:
        url('../img/brand/scroll-chassis.svg'),
        linear-gradient(90deg, transparent 4px, rgba(125, 240, 255, var(--scroll-shell-alpha, .65)) 4px 4.5px, transparent 4.5px calc(100% - 4.5px), rgba(190, 157, 255, var(--scroll-shell-alpha, .65)) calc(100% - 4.5px) calc(100% - 4px), transparent calc(100% - 4px)),
        linear-gradient(rgba(6, 15, 29, calc(1 - var(--scroll-charge-alpha, 0))), rgba(6, 15, 29, calc(1 - var(--scroll-charge-alpha, 0)))),
        url('../img/brand/charge-arcs.svg'),
        linear-gradient(90deg, #07111f, #16263c 48%, #07111f);
    /* Keep electric branches at the same scale on short and long pages. */
    background-size: 100% 100%, 100% 100%, 100% 100%, 2400% 128px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, var(--scroll-charge-frame, 0%) 0, 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-y, no-repeat;
    background-clip: padding-box;
    box-shadow: none;
}
:root::-webkit-scrollbar-thumb:vertical:hover,
body::-webkit-scrollbar-thumb:vertical:hover {
    --scroll-shell-alpha: .9;
}
:root::-webkit-scrollbar-thumb:vertical:active,
body::-webkit-scrollbar-thumb:vertical:active {
    --scroll-shell-alpha: 1;
}
::-webkit-scrollbar-corner { background: #050b18; }
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-color: #9c8aff #091426; scrollbar-width: thin; }
    :root { scrollbar-color: hsl(var(--scroll-charge-hue, 185) 85% 75%) #091426; }
}

/* Deep-space instrument texture: quiet central reading area, detail at the edges. */
body {
    background-image: radial-gradient(ellipse at 80% 5%, rgba(32, 78, 132, .15), transparent 50%), linear-gradient(180deg, #050a14, #03060e);
}
body::before { opacity: .85; background-size: cover; }
.hero-slide-count { font: 0.78rem var(--font-data); min-width: 4.5rem; text-align: center; }
@media (min-width: 992px) {
    #who-we-are .robot-showcase-column { padding-top: 0; }
    #who-we-are .robot-showcase { padding-top: 0; border-top: 0; }
    #who-we-are .robot-stage { align-items: flex-start; }
}
/* A gentle side crop makes the wide unboxing group larger without losing faces. */
.hero-slide--wide .hero-bg { width: 113%; max-width: none; left: -6.5%; }

.hero-kicker { font-size: clamp(1.02rem, 1.12vw, 1.18rem); letter-spacing: .13em; }
.site-footer .footer-copy { text-align: right; }
@media (min-width: 992px) { #who-we-are .robot-stage:has(.robot-k1) { align-items: center; } }

/* Portraits stay in front of the two larger robot silhouettes. */
.team-console { padding-inline: 1.35rem; }
.team-portraits { gap: .75rem .45rem; }
.team-portrait { width: calc(16.666% - .45rem); }
.team-portrait img { width: 60px; height: 60px; }
.team-coach-portraits .team-portrait img { width: 54px; height: 54px; }
.team-watermarks { inset: 2% 0 .65rem; overflow: hidden; }
.team-watermarks img { height: 94%; bottom: 0; left: 6%; opacity: .19; filter: grayscale(.4) drop-shadow(0 0 12px rgba(92, 245, 255, .2)); }
.team-watermarks img + img { height: 88%; right: 6%; left: auto; }
@media (max-width: 575.98px) {
    .team-console { padding-inline: .5rem; }
    .team-portrait { width: calc(25% - .45rem); }
    .team-portrait img { width: 54px; height: 54px; }
    /* Size by the available width, not the taller wrapped portrait list. */
    .team-watermarks img {
        width: 44%; height: auto; top: 50%; bottom: auto; left: 4%;
        transform: translateY(-50%);
    }
    .team-watermarks img + img { width: 40%; height: auto; right: 4%; }
}
.science-lightning { position: fixed; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.science-lightning[hidden] { display: none; }

:root .site-footer p.footer-copy { text-align: right; }
#who-we-are p { font-size: clamp(1.06rem, 0.38vw + 0.94rem, 1.18rem); }
@media print { .science-lightning, .hero-network { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    .science-lightning, .hero-network { display: none !important; }
}
