/* ==================== 自定义滚动条 ==================== */

/* Webkit 浏览器（Chrome、Safari、Edge）*/
::-webkit-scrollbar {
    width: 8px;  /* 滚动条宽度 */
}

::-webkit-scrollbar-track {
    background: #19262F;  /* 滚动条轨道背景色 */
}

::-webkit-scrollbar-thumb {
    background: #203A4D;  /* 滚动条滑块颜色 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #216A9E;  /* 滚动条滑块悬停颜色 */
}

/* ==================== 无滚动条辅助类 ==================== */

/* 隐藏所有浏览器的滚动条 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;     /* IE 和 Edge */
    scrollbar-width: none;         /* Firefox */
}

/* ==================== 动画定义 ==================== */

/* 渐变显示动画：从透明 + 向下 => 不透明 + 原位置 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动显示动画 - 隐藏状态 */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* 滚动显示动画 - 显示状态 */
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 浮动装饰球体动画 ==================== */

/* 应用浮动动画 */
.animate-blob {
    animation: blob 7s infinite;
}

/* 浮动球体的3D变换动画 */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* 动画延迟 - 2秒 */
.animation-delay-2000 {
    animation-delay: 2s;
}

/* 动画延迟 - 4秒 */
.animation-delay-4000 {
    animation-delay: 4s;
}

/* ==================== 导航栏链接样式 ==================== */

/* 导航链接基础样式 */
.nav-link {
    color: #D1D5DB;           /* 灰色-300 */
    font-weight: 500;
    transition: color 0.2s;
}

/* 导航链接悬停效果 */
.nav-link:hover {
    color: #216A9E;           /* 强调色：青色 */
}

/* ==================== 进度和流程可视化 ==================== */

/* 进度条动画 */
@keyframes progressBar {
    0% { width: 0; }
    100% { width: 100%; }
}

.progress-bar {
    height: 3px;
    background: var(--dogma-blue);
    animation: progressBar 2s ease-out forwards;
    box-shadow: 0 0 10px rgba(33, 106, 158, 0.6);
}

/* 步骤指示器 */
.step-indicator {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #216A9E;
    box-shadow: 0 0 15px rgba(33, 106, 158, 0.5);
    transition: all 0.3s ease;
}

.step-dot:hover {
    transform: scale(1.5);
    box-shadow: 0 0 25px rgba(33, 106, 158, 0.8);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--dogma-blue);
    opacity: 0.5;
}

/* 平行线连接器 */
.parallel-connector {
    position: relative;
    padding: 2rem 0;
}

.parallel-connector::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--dogma-blue);
    transform: translateX(-50%);
}

/* 周期流程卡片增强 */
.cycle-flow-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.cycle-flow-item:nth-child(1) { animation-delay: 0.1s; }
.cycle-flow-item:nth-child(2) { animation-delay: 0.2s; }
.cycle-flow-item:nth-child(3) { animation-delay: 0.3s; }

/* 脉冲闪烁效果 */
@keyframes pulse-bright {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px rgba(33, 106, 158, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 30px rgba(33, 106, 158, 0.7); }
}

.pulse-glow {
    animation: pulse-bright 2s ease-in-out infinite;
}

/* 滑入效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* 数字计数动画 */
@keyframes countUp {
    from { content-visibility: auto; }
}

.count-number {
    font-weight: 800;
    font-size: 2.5rem;
}

/* 卡片悬停升起效果 */
.card-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(33, 106, 158, 0.15);
}

/* 边框动画 */
@keyframes borderGlow {
    0%, 100% { box-shadow: inset 0 0 10px rgba(33, 106, 158, 0.2), 0 0 10px rgba(33, 106, 158, 0.2); }
    50% { box-shadow: inset 0 0 20px rgba(33, 106, 158, 0.4), 0 0 20px rgba(33, 106, 158, 0.4); }
}

.border-glow {
    animation: borderGlow 3s ease-in-out infinite;
}

/* 渐进显示文本 */
@keyframes textReveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal {
    animation: textReveal 1s ease-out;
}

/* 微交互 - 悬停缩放 */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ==================== 高级动画效果 ==================== */

/* 渐进式消退动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 旋转进入 */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* 缩放脉冲 */
@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 彩虹边框动画 */
@keyframes borderShift {
    0% {
        border-color: #216A9E;
        box-shadow: 0 0 20px rgba(33, 106, 158, 0.3);
    }
    33% {
        border-color: #7FC5EE;
        box-shadow: 0 0 20px rgba(127, 197, 238, 0.3);
    }
    66% {
        border-color: #216A9E;
        box-shadow: 0 0 20px rgba(33, 106, 158, 0.3);
    }
    100% {
        border-color: #216A9E;
        box-shadow: 0 0 20px rgba(33, 106, 158, 0.3);
    }
}

/* 流动背景渐变 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 闪烁发光 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer-effect {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(33, 106, 158, 0.3), 
        transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* 平滑滑动 */
@keyframes smoothSlide {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.smooth-slide {
    animation: smoothSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 浮动元素持续动画 */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.float-in {
    animation: floatUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 列表项逐行显示 */
@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stagger-item {
    animation: staggerIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* 响应式工卡片布局优化 */
@media (max-width: 768px) {
    .cycle-card {
        padding: 1.5rem;
    }
    
    .card-lift:hover {
        transform: translateY(-4px);
    }
}

/* ========================================================================== */
/* dogmaOS 银白科技主题（2026-07）                                             */
/*                                                                            */
/* 维护说明：后续试色优先只改下面 :root 中的变量。                              */
/* 本节只覆盖颜色、材质和导航外观，不改变页面结构、内容或原有动画逻辑。          */
/* ========================================================================== */

:root {
    /* 01. 银白背景层级 */
    --dogma-silver-0: #FFFFFF;
    --dogma-silver-1: #F6F8FB;
    --dogma-silver-2: #E8EDF4;
    --dogma-silver-3: #CBD8E1;

    /* 02. 主色：接近 Logo 的深钴蓝；light 用于光晕和渐变 */
    --dogma-blue: #216A9E;
    --dogma-blue-light: #7FC5EE;
    --dogma-blue-rgb:33,106,158;

    /* 03. 第三配色：光谱紫，只用于少量区分和视觉撞色 */
    --dogma-violet: #5EA5D8;
    --dogma-violet-rgb:94,165,216;

    /* 04. 浅色主题文字与通用描边 */
    --dogma-ink: #0B2130;
    --dogma-copy: #334755;
    --dogma-muted: #697786;
    --dogma-line: rgba(88, 117, 137, 0.20);

    /* 05. iPhone 控制中心式玻璃材质 */
    --dogma-glass: rgba(255, 255, 255, 0.64);
    --dogma-glass-strong: rgba(255, 255, 255, 0.82);
    --dogma-glass-line: rgba(255, 255, 255, 0.92);
    --dogma-glass-shadow: 0 18px 50px rgba(49, 75, 94, 0.16),
                          inset 0 1px 0 rgba(255, 255, 255, 0.96),
                          inset 0 -1px 0 rgba(92, 122, 143, 0.10);
}

html {
    color-scheme: light;
}

body, #main-scroll {
    color: var(--dogma-copy);
    background-color: var(--dogma-silver-1) !important;
    /* 多层极淡渐变形成银白金属/磨砂质感；固定背景避免滚动时割裂。 */
    background-image: none !important;
    background-attachment: fixed !important;
}

/* ---------- 原深色背景映射为银白层级 ---------- */
.bg-primary, [class*="bg-primary/"] {
    background-color: rgba(246, 248, 251, 0.86) !important;
}

.bg-primary-light, [class*="bg-primary-light/"] {
    background-color: rgba(255, 255, 255, 0.74) !important;
    background-image: none;
}

.bg-white\/5, .hover\:bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.58) !important;
}

/* 浅色页面需要深色文字；类名保持不变以避免改动现有 HTML 内容。 */
.text-white, .text-gray-100, .text-gray-200 {
    color: var(--dogma-ink) !important;
}

.text-gray-300 {
    color: var(--dogma-copy) !important;
}

.text-gray-400, .text-gray-500, .text-gray-600, [class*="text-gray-400/"] {
    color: var(--dogma-muted) !important;
}

.text-primary, .hover\:text-white:hover { color: var(--dogma-ink) !important; }

.bg-gray-700 { background-color: color-mix(in srgb, var(--dogma-silver-2) 24%, transparent) !important; }

.border-gray-800, .border-gray-700, .border-gray-600, [class*="border-gray-800/"], [class*="border-gray-600/"], .border-white\/10 {
    border-color: var(--dogma-line) !important;
}

/* ---------- Logo 蓝与第三撞色的统一映射 ---------- */
.text-accent, .hover\:text-accent:hover, .group:hover .group-hover\:text-accent, .text-accent-glow {
    color: var(--dogma-blue) !important;
}

.bg-accent, [class*="bg-accent/"] {
    background-color: rgba(var(--dogma-blue-rgb), 0.13) !important;
}

.bg-accent:not([class*="bg-accent/"]) {
    background-color: var(--dogma-blue) !important;
}

.border-accent, [class*="border-accent/"] {
    border-color: rgba(var(--dogma-blue-rgb), 0.32) !important;
}

.from-accent {
    --tw-gradient-from: var(--dogma-blue) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(var(--dogma-blue-rgb), 0) var(--tw-gradient-to-position) !important;
}

.via-accent {
    --tw-gradient-to: rgba(var(--dogma-blue-rgb), 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--dogma-blue-light) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.to-accent, .to-accent {
    --tw-gradient-to: var(--dogma-blue-light) var(--tw-gradient-to-position) !important;
}

.text-sand, [class*="text-sand/"] {
    color: var(--dogma-violet) !important;
}

.bg-sand\/10, .bg-sand\/20, .bg-sand\/30, .bg-sand\/5, .bg-sand\/10, .bg-sand\/20 {
    background-color: rgba(var(--dogma-violet-rgb), 0.10) !important;
}

[class*="border-purple-"] {
    border-color: rgba(var(--dogma-violet-rgb), 0.24) !important;
}

/* 白底上继续保留原有漂浮光球动画，仅调整混合方式以保持可见。 */
.mix-blend-screen {
    mix-blend-mode: multiply !important;
}

.hero-gradient {
    background: var(--dogma-page) !important;
}

/* 首页大标题在银白背景上使用深蓝—亮蓝—紫的清晰科技渐变。 */
.title-fix {
    background-image: none !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0,0.25)) drop-shadow(0 12px 28px rgba(var(--dogma-blue-rgb), 0.14));
}

/* 卡片改为轻微悬浮的银白玻璃，不改 hover 位移和进入动画。 */
.bg-primary-light:not(#mobile-menu):not(.dropdown-menu), .cycle-card, .card-lift {
    box-shadow: 0 12px 36px rgba(39, 70, 92, 0.08),
                inset 0 1px 0 rgba(255, 255, 255,0.88);
}

.card-lift:hover, .cycle-card:hover {
    border-color: rgba(var(--dogma-blue-rgb), 0.38) !important;
    box-shadow: 0 20px 48px rgba(var(--dogma-blue-rgb), 0.14) !important;
}

/* ---------- iPhone 控制中心式玻璃导航 ---------- */
#navbar {
    top: 0.75rem;
    padding: 0 0.85rem;
    background: transparent !important;
    border: 0 !important;
    pointer-events: none;
}

/* 导航外壳：一个悬浮的圆角玻璃模块。 */
#navbar > .max-w-7xl {
    pointer-events: auto;
    max-width: 76rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    background: var(--dogma-glass);
    border: 1px solid var(--dogma-glass-line);
    border-radius: 1.65rem;
    box-shadow: var(--dogma-glass-shadow);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
    backdrop-filter: blur(26px) saturate(155%);
}

#navbar .h-20 {
    height: 4.1rem;
}

/* Logo 自身也是一个较轻的小玻璃按键。 */
#navbar a.flex-shrink-0 {
    display: inline-flex;
    align-items: center;
    min-height: 2.65rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255,0.72);
    border-radius: 1rem;
    background: rgba(255, 255, 255,0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255,0.92);
}

#navbar a.flex-shrink-0 .text-white {
    color: var(--dogma-ink) !important;
}

/* 清除 Tailwind 的固定大间距，改成控制中心模块之间的紧凑间隔。 */
#navbar .space-x-8 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

#navbar .space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    padding: 0.62rem 0.88rem;
    color: #18384F !important;
    border: 1px solid rgba(255, 255, 255,0.60);
    border-radius: 0.95rem;
    background: linear-gradient(145deg, rgba(255, 255, 255,0.54), rgba(222, 232, 240,0.34));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255,0.88),
                0 3px 10px rgba(51, 78, 98,0.06);
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease,
                box-shadow 0.22s ease, transform 0.22s ease;
}

.nav-link:hover {
    color: var(--dogma-blue) !important;
    border-color: rgba(var(--dogma-blue-rgb), 0.28);
    background: rgba(255, 255, 255,0.82);
    box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 18px rgba(var(--dogma-blue-rgb), 0.12);
    transform: translateY(-1px);
}

/* 原页面已有 text-accent 当前页标记：变成 iOS 蓝色“已开启”模块。 */
.nav-link.text-accent {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255,0.44);
    background: linear-gradient(145deg, var(--dogma-blue-light), var(--dogma-blue));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255,0.38),
                0 9px 22px rgba(var(--dogma-blue-rgb), 0.24);
}

.dropdown-menu {
    padding: 0.45rem;
    color: var(--dogma-copy);
    background: var(--dogma-glass-strong) !important;
    border: 1px solid var(--dogma-glass-line) !important;
    border-radius: 1rem !important;
    box-shadow: var(--dogma-glass-shadow) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.dropdown-menu a {
    color: var(--dogma-copy);
    border-radius: 0.7rem;
}

.dropdown-menu a:hover {
    color: var(--dogma-blue) !important;
    background: rgba(var(--dogma-blue-rgb), 0.08) !important;
}

#mobile-menu-btn {
    color: var(--dogma-blue) !important;
    border: 1px solid rgba(255, 255, 255,0.78);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255,0.55);
    box-shadow: inset 0 1px 0 #FFFFFF, 0 5px 16px rgba(48, 76, 96,0.10);
}

#mobile-menu {
    /* 独立层级保证菜单在带滤镜的玻璃导航中始终浮于页面内容之上。 */
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: min(92vw, 32rem);
    margin: 0.55rem auto 0;
    color: var(--dogma-copy);
    background: var(--dogma-glass-strong) !important;
    border: 1px solid var(--dogma-glass-line) !important;
    border-radius: 1.25rem;
    box-shadow: var(--dogma-glass-shadow);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    overflow: hidden;
}

#mobile-menu a {
    color: var(--dogma-copy) !important;
    border-radius: 0.8rem;
}

#mobile-menu a:hover {
    color: var(--dogma-blue) !important;
    background: rgba(var(--dogma-blue-rgb), 0.08);
}

/* 银白主题滚动条。 */
::-webkit-scrollbar-track {
    background: var(--dogma-silver-2);
}

::-webkit-scrollbar-thumb {
    background: #A8BBC9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dogma-blue-light);
}

@media (max-width: 900px) {
    #navbar {
        top: 0.5rem;
        padding: 0 0.55rem;
    }

    #navbar > .max-w-7xl {
        border-radius: 1.3rem;
    }

    #navbar .h-20 {
        height: 3.75rem;
    }
}

/* 尊重系统的“减少动态效果”设置；不删除项目原有动画。 */
@media (prefers-reduced-motion: reduce) {
    #navbar, .nav-link {
        scroll-behavior: auto;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .card-lift:active {
        transform: translateY(-8px);
    }
}

/* 性能优化：使用will-change */
.card-lift {
    will-change: transform, box-shadow;
}

.progress-bar {
    will-change: width;
}

/* ========================================================================== */
/* dogmaOS THEME V2 — 统一调色 / Liquid Glass / 页面级组件                    */
/*                                                                            */
/* 【最常改区域】只调整下面 A 组变量，就会联动页面背景、卡片、导航和光晕。      */
/* 之前 01 组改色无效，是因为旧背景使用了固定的 #FFFFFF 与 rgba；V2 已全部接通。 */
/* ========================================================================== */

:root {
    /* A1｜用户选择的四个基础色：影响背景层次、边框色温与玻璃反射。 */
    --dogma-silver-0: #7F8D9B; /* 暖紫灰：阴影与最深层次 */
    --dogma-silver-1: #8FA8BA; /* 蓝灰：环境光与次级背景 */
    --dogma-silver-2: #568FB8; /* 中蓝：边缘反射与装饰线 */
    --dogma-silver-3: #E0E8EA; /* 最浅色：页面主底色 */

    /* A2｜主色：影响链接、当前导航、进度环、重点图标与主按钮。 */
    --dogma-blue: #216A9E;       /* lch 的兼容回退色 */
    --dogma-blue-light: #7FC5EE; /* lch 的兼容回退色 */
    --dogma-blue-rgb:33,106,158;

    /* A3｜第三撞色：影响紫色标签、第三阶段、局部辉光；不要大面积使用。 */
    --dogma-violet: #5EA5D8;
    --dogma-violet-rgb:94,165,216;

    /* B｜语义色由 A 组自动混合。一般不需要改；改 A 组即可全站联动。 */
    --dogma-page: color-mix(in srgb, var(--dogma-silver-3) 68%, white);
    --dogma-page-deep: color-mix(in srgb, var(--dogma-silver-1) 15%, white);
    --dogma-surface: color-mix(in srgb, var(--dogma-silver-3) 28%, rgba(255, 255, 255,0.68));
    --dogma-surface-strong: color-mix(in srgb, var(--dogma-silver-3) 38%, rgba(255, 255, 255,0.78));
    --dogma-ink: color-mix(in srgb, var(--dogma-silver-0) 18%, #092030);
    --dogma-copy: color-mix(in srgb, var(--dogma-silver-0) 28%, #243E50);
    --dogma-muted: color-mix(in srgb, var(--dogma-silver-1) 48%, #526A7B);
    --dogma-line: color-mix(in srgb, var(--dogma-silver-2) 25%, transparent);

    /* C｜玻璃参数：alpha 越小越通透；blur 越大，背后内容越柔化。 */
    --dogma-glass: rgba(255, 255, 255, 0.18);
    --dogma-glass-strong: rgba(255, 255, 255, 0.28);
    --dogma-glass-highlight: rgba(255, 255, 255, 0.72);
    --dogma-glass-line: rgba(255, 255, 255, 0.58);
    --dogma-glass-blur: 12px;
    --dogma-glass-shadow: 0 18px 42px rgba(45, 75, 96, 0.10),
                          inset 0 1px 0 rgba(255, 255, 255,0.78),
                          inset 0 -1px 0 rgba(74, 114, 143,0.08);

    --dogma-nav-height: 68px;
    --dogma-nav-clearance: 7.75rem;
}

@supports (color: lch(50% 20 250)) {
    :root {
        --dogma-blue: #216A9E;
        --dogma-blue-light: #7FC5EE;
        --dogma-violet: #5EA5D8;
    }
}














html {
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: var(--dogma-nav-clearance);
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--dogma-blue-rgb), 0.22) transparent;
}

body, #main-scroll {
    color: var(--dogma-copy) !important;
    background-color: var(--dogma-page) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: none !important;
    background-attachment: fixed !important;
}

body {
    min-height: 100vh;
}

section[id] {
    scroll-margin-top: var(--dogma-nav-clearance);
}

/* 内页统一留出导航安全区，修复图 1 中标题被导航遮挡的问题。 */
body > .min-h-screen.pt-24, body > main.pt-24, .dogma-subpage-main {
    padding-top: var(--dogma-nav-clearance) !important;
}

/* ---------- 背景、卡片与旧 Tailwind 色统一 ---------- */
.bg-primary, [class*="bg-primary/"] {
    background-color: transparent !important;
}

.bg-primary-light, [class*="bg-primary-light/"] {
    background-color: var(--dogma-surface) !important;
    background-image: none !important;
    border-color: var(--dogma-line) !important;
}

.bg-white\/5, .hover\:bg-white\/5:hover {
    background-color: rgba(255, 255, 255,0.18) !important;
}

.text-white, .text-gray-100, .text-gray-200 {
    color: var(--dogma-ink) !important;
}

.text-gray-300 { color: var(--dogma-copy) !important; }

.text-gray-400, .text-gray-500, .text-gray-600, [class*="text-gray-400/"] {
    color: var(--dogma-muted) !important;
}

.border-gray-800, .border-gray-700, .border-gray-600, [class*="border-gray-800/"], [class*="border-gray-700/"], [class*="border-gray-600/"], .border-white\/10 {
    border-color: var(--dogma-line) !important;
}

.text-accent, .hover\:text-accent:hover, .group:hover .group-hover\:text-accent, .text-accent-glow, .text-accent {
    color: var(--dogma-blue) !important;
}

.bg-accent, [class*="bg-accent/"] {
    background-color: color-mix(in srgb, var(--dogma-blue) 13%, transparent) !important;
}

.bg-accent:not([class*="bg-accent/"]) { background-color: var(--dogma-blue) !important; }

.border-accent, [class*="border-accent/"] {
    border-color: color-mix(in srgb, var(--dogma-blue) 30%, transparent) !important;
}

.from-accent {
    --tw-gradient-from: var(--dogma-blue) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: transparent var(--tw-gradient-to-position) !important;
}

.via-accent {
    --tw-gradient-stops: var(--tw-gradient-from), var(--dogma-blue-light) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.to-accent, .to-accent { --tw-gradient-to: var(--dogma-blue-light) var(--tw-gradient-to-position) !important; }

/* 旧页面大量使用 from/via/to-primary；统一改成浅色语义层，避免残留深色块。 */
.from-primary, [class*="from-primary/"] {
    --tw-gradient-from: var(--dogma-page) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: transparent var(--tw-gradient-to-position) !important;
}

.via-primary-light, [class*="via-primary-light/"] {
    --tw-gradient-stops: var(--tw-gradient-from), var(--dogma-surface-strong) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.to-primary, [class*="to-primary/"] { --tw-gradient-to: var(--dogma-page-deep) var(--tw-gradient-to-position) !important; }

.to-primary-light, [class*="to-primary-light/"] { --tw-gradient-to: var(--dogma-surface-strong) var(--tw-gradient-to-position) !important; }

.text-sand, [class*="text-sand/"] { color: var(--dogma-violet) !important; }

[class*="bg-purple-4"], [class*="bg-purple-5"] { background-color: color-mix(in srgb, var(--dogma-violet) 9%, transparent) !important; }

[class*="border-purple-"] { border-color: color-mix(in srgb, var(--dogma-violet) 24%, transparent) !important; }

.cycle-1::before { background: var(--dogma-blue) !important; }
.cycle-2::before { background: var(--dogma-blue) !important; }
.cycle-3::before { background: var(--dogma-coral) !important; }

.bg-primary-light:not(#mobile-menu):not(.dropdown-menu), .cycle-card, .card-lift, .dogma-content-card {
    box-shadow: 0 14px 38px rgba(49, 80, 102,0.075), inset 0 1px 0 rgba(255, 255, 255,0.62) !important;
}

.card-lift:hover, .cycle-card:hover, .dogma-content-card:hover {
    border-color: color-mix(in srgb, var(--dogma-blue) 36%, transparent) !important;
    box-shadow: 0 22px 50px rgba(var(--dogma-blue-rgb),0.12), inset 0 1px 0 rgba(255, 255, 255,0.72) !important;
}

/* ---------- 所有一级大标题的独立 Liquid Glass 外壳 ---------- */
.dogma-glass-title {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: fit-content;
    max-width: min(92vw, 1100px);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.24em 0.48em 0.30em !important;
    color: var(--dogma-ink) !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0,0.25)) drop-shadow(0 10px 24px rgba(var(--dogma-blue-rgb),0.10));
}

.dogma-glass-title::before {
    content: "";
    position: absolute;
    inset: -0.10em -0.18em;
    z-index: -1;
    border: 1px solid var(--dogma-glass-line);
    border-radius: 0.34em;
    background:
        linear-gradient(145deg, rgba(255, 255, 255,0.30), rgba(255, 255, 255,0.07)),
        var(--dogma-glass);
    box-shadow: var(--dogma-glass-shadow);
    -webkit-backdrop-filter: blur(10px) saturate(155%);
    backdrop-filter: blur(10px) saturate(155%);
}

/* ---------- 全站统一超通透 Liquid Glass 导航 ---------- */
.dogma-navbar {
    position: fixed;
    top: 0.72rem;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0.8rem;
    pointer-events: none;
}

.dogma-nav-shell {
    width: min(100%, 1240px);
    margin: 0 auto;
    pointer-events: auto;
    border: 1px solid var(--dogma-glass-line);
    border-radius: 1.65rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255,0.28), rgba(255, 255, 255,0.04) 58%, rgba(127, 197, 238,0.07)),
        var(--dogma-glass);
    box-shadow: var(--dogma-glass-shadow);
    -webkit-backdrop-filter: blur(var(--dogma-glass-blur)) saturate(165%);
    backdrop-filter: blur(var(--dogma-glass-blur)) saturate(165%);
}

.dogma-nav-row {
    min-height: var(--dogma-nav-height);
    padding: 0.48rem 0.72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dogma-brand {
    min-width: max-content;
    height: 3.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.20rem 0.82rem 0.20rem 0.30rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255,0.54);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255,0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255,0.68);
}

/* 使用原透明 Logo；保持完整展示并自动适应容器。 */
.dogma-logo-mark {
    position: relative;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    overflow: hidden;
    border-radius: 0.78rem;
}

.dogma-logo-mark img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
    left: 0;
    top: 0;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: none;
}

.dogma-brand-word {
    color: var(--dogma-ink);
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.dogma-brand-word span { color: var(--dogma-blue); }

.dogma-desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-container { position: relative; }

.nav-link {
    min-height: 2.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.62rem 0.82rem;
    color: var(--dogma-copy) !important;
    font-weight: 600;
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.nav-link svg { width: 0.9rem; height: 0.9rem; transition: transform .22s ease; }

.nav-link:hover, .nav-link:focus-visible {
    color: var(--dogma-blue) !important;
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
}

.nav-link.is-active {
    color: var(--dogma-blue) !important;
    background: transparent;
    box-shadow: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.54rem);
    left: 0;
    width: 13rem;
    padding: 0.48rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(.98);
    border: 1px solid var(--dogma-glass-line) !important;
    border-radius: 1.08rem !important;
    background: linear-gradient(145deg, rgba(255, 255, 255,0.34), rgba(255, 255, 255,0.12)), var(--dogma-glass-strong) !important;
    box-shadow: var(--dogma-glass-shadow) !important;
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.dropdown-container:hover .dropdown-menu, .dropdown-container:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-container:hover .nav-link svg, .dropdown-container:focus-within .nav-link svg { transform: rotate(180deg); }

.dogma-dropdown-link {
    display: block;
    padding: 0.67rem 0.76rem;
    color: var(--dogma-copy);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 0.76rem;
}

.dogma-dropdown-link:hover, .dogma-dropdown-link.is-current {
    color: var(--dogma-blue);
    background: color-mix(in srgb, var(--dogma-blue) 9%, transparent);
}

.dogma-menu-button {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    color: var(--dogma-blue);
    border: 1px solid rgba(255, 255, 255,0.48);
    border-radius: 0.98rem;
    background: rgba(255, 255, 255,0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255,0.62);
}













.dogma-mobile-menu {
    width: min(92vw, 33rem);
    max-height: calc(100vh - 6.6rem);
    margin: 0.55rem auto 0;
    padding: 0.65rem;
    overflow-y: auto;
    pointer-events: auto;
    border: 1px solid var(--dogma-glass-line);
    border-radius: 1.25rem;
    background: var(--dogma-blue);
    box-shadow: var(--dogma-glass-shadow);
    -webkit-backdrop-filter: blur(17px) saturate(170%);
    backdrop-filter: blur(17px) saturate(170%);
}

.dogma-mobile-group + .dogma-mobile-group { margin-top: 0.28rem; }

.dogma-mobile-link, .dogma-mobile-children a {
    display: block;
    padding: 0.64rem 0.75rem;
    color: var(--dogma-copy) !important;
    border-radius: 0.72rem;
}

.dogma-mobile-link { font-weight: 700; }
.dogma-mobile-link.is-active { color: var(--dogma-blue) !important; background: rgba(var(--dogma-blue-rgb),0.08); }
.dogma-mobile-children { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.25rem; padding: 0.16rem 0.36rem 0.38rem; }
.dogma-mobile-children a { padding: 0.46rem 0.55rem; font-size: 0.82rem; background: rgba(255, 255, 255,0.10); }

/* ---------- 低存在感玻璃滚动条 ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent !important; }
::-webkit-scrollbar-thumb {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(var(--dogma-blue-rgb),0.20) !important;
    background-clip: padding-box !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255,0.22);
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--dogma-blue-rgb),0.35) !important; }

/* ---------- 每页右下角：滚动进度环 + 返回顶部 ---------- */
.dogma-scroll-top {
    --scroll-progress: 0deg;
    position: fixed;
    right: clamp(1rem, 2.2vw, 2rem);
    bottom: clamp(1rem, 2.2vw, 2rem);
    z-index: 900;
    width: 3.45rem;
    height: 3.45rem;
    padding: 3px;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(14px) scale(.94);
    pointer-events: none;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(var(--dogma-blue) var(--scroll-progress), rgba(255, 255, 255,0.34) 0);
    box-shadow: 0 12px 28px rgba(45, 75, 96,0.14);
    transition: opacity .25s ease, transform .25s ease;
}

.dogma-scroll-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.dogma-scroll-top > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--dogma-blue);
    border: 1px solid rgba(255, 255, 255,0.64);
    border-radius: 50%;
    background: rgba(255, 255, 255,0.30);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    backdrop-filter: blur(10px) saturate(160%);
}

.dogma-scroll-top svg { width: 1.25rem; height: 1.25rem; }

/* ---------- 独立二级内容页通用结构 ---------- */
.dogma-subpage-main { min-height: 100vh; padding-bottom: 5rem; }
.dogma-subpage-wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.dogma-subpage-hero { min-height: 56vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 3.5rem 0 4rem; }
.dogma-eyebrow { margin-bottom: 1.25rem; color: var(--dogma-blue); font: 600 .78rem/1.2 "Fira Code",monospace; letter-spacing: .18em; text-transform: uppercase; }
.dogma-subpage-lead { max-width: 730px; margin: 1.8rem auto 0; color: var(--dogma-muted); font-size: clamp(1rem,2vw,1.2rem); line-height: 1.85; }
.dogma-content-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.dogma-content-card { padding: 1.55rem; border: 1px solid var(--dogma-line); border-radius: 1.4rem; background: var(--dogma-surface); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.dogma-content-card:hover { transform: translateY(-5px); }
.dogma-content-card .icon { width: 2.7rem; height: 2.7rem; display:grid; place-items:center; margin-bottom:1rem; color:var(--dogma-blue); border-radius:.9rem; background:rgba(var(--dogma-blue-rgb),.09); }
.dogma-content-card h2 { margin-bottom:.65rem; color:var(--dogma-ink); font-size:1.2rem; font-weight:800; }
.dogma-content-card p { color:var(--dogma-muted); line-height:1.75; }
.dogma-placeholder-note { margin: 1rem 0 0; padding: 1rem 1.2rem; color: var(--dogma-copy); border:1px dashed color-mix(in srgb,var(--dogma-blue) 30%,transparent); border-radius:1rem; background:rgba(255, 255, 255,.15); }

/* ---------- Members 专属：前两屏吸附，之后恢复普通滚动 ---------- */
.members-page { overflow-x: hidden; }
html:has(.members-page) { scroll-snap-type: y proximity; }
.members-snap-zone { min-height: 200vh; }
.members-snap-panel { min-height: 100vh; scroll-snap-align: start; scroll-snap-stop: always; display:grid; place-items:center; position:relative; padding:var(--dogma-nav-clearance) 1rem 2rem; overflow:hidden; }
.members-about-inner { text-align:center; max-width:1050px; }
.members-about-copy { max-width:680px; margin:1.8rem auto 0; color:var(--dogma-muted); font-size:clamp(1rem,2vw,1.2rem); line-height:1.8; }
.members-orbit { position:absolute; width:min(72vw,760px); aspect-ratio:1; border:1px solid rgba(var(--dogma-blue-rgb),.12); border-radius:50%; animation:members-orbit 22s linear infinite; pointer-events:none; }
.members-orbit::before, .members-orbit::after {content:"";position:absolute;border:1px solid rgba(var(--dogma-violet-rgb),.10);border-radius:50%;inset:14%;}.members-orbit::after {inset:30%;border-color:rgba(var(--dogma-blue-rgb),.13)}
@keyframes members-orbit{to{transform:rotate(360deg)}}
.members-scroll-cue { margin-top:2rem; color:var(--dogma-blue); display:inline-flex; align-items:center; gap:.55rem; font-weight:700; }
.members-scroll-cue svg { animation:members-cue 1.7s ease-in-out infinite; }
@keyframes members-cue{50%{transform:translateY(7px)}}
.members-photo-panel { align-content:center; }
.members-team-photo { width:min(1120px,94vw); max-height:66vh; object-fit:cover; border:1px solid var(--dogma-glass-line); border-radius:2rem; box-shadow:0 26px 70px rgba(38, 64, 82,.16), inset 0 1px 0 white; }
.members-photo-copy { width:min(900px,90vw); margin:1.3rem auto 0; text-align:center; color:var(--dogma-muted); line-height:1.75; }
.members-roster { width:min(1120px,calc(100% - 2rem)); margin:0 auto; padding:6rem 0; }
.members-roster-heading { text-align:center; margin-bottom:2.2rem; color:var(--dogma-ink); font-size:clamp(2rem,4vw,3.2rem); font-weight:800; }
.members-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
.members-page .members-grid { display:block; }
.member-photo-card { position:relative; min-height:430px; overflow:hidden; border:1px solid var(--dogma-glass-line); border-radius:1.55rem; background:var(--dogma-surface); box-shadow:0 16px 42px rgba(42, 71, 91,.11); transition:transform .35s ease,box-shadow .35s ease; }
.member-photo-card:hover { transform:translateY(-7px); box-shadow:0 25px 56px rgba(var(--dogma-blue-rgb),.15); }
.member-photo-card img { width:100%; height:100%; min-height:430px; object-fit:cover; filter:saturate(.82) contrast(.96); transition:transform .6s ease,filter .6s ease; }
.member-photo-card:hover img { transform:scale(1.045); filter:saturate(.98) contrast(1); }
.member-photo-card:nth-child(3n/**/+2) img {object-position:48% center}.member-photo-card:nth-child(3n) img {object-position:70% center}
.member-card-overlay { position:absolute; inset:auto 0 0; padding:5rem 1.3rem 1.3rem; color:white; background:linear-gradient(transparent,rgba(8, 28, 42,.84)); }
.member-card-overlay h3 { font-size:1.35rem; font-weight:800; }.member-card-overlay p {margin-top:.2rem;color:rgba(255, 255, 255,.76)}

@media (max-width: 1060px) {
    .dogma-desktop-nav { gap: 0.2rem; }
    .nav-link { padding-left: 0.62rem; padding-right: 0.62rem; font-size: 0.87rem; }
    .dogma-brand-word { font-size: 1.15rem; }
}

@media (max-width: 900px) {
    :root { --dogma-nav-height: 60px; --dogma-nav-clearance: 6.8rem; }
    .dogma-navbar { top: 0.5rem; padding: 0 .5rem; }
    .dogma-nav-shell { border-radius: 1.3rem; }
    .dogma-nav-row { padding: .38rem .48rem; }
    .dogma-desktop-nav { display:none; }
    .dogma-menu-button { display:inline-flex; }
    .dogma-brand { height:2.7rem; padding-right:.68rem; }
    .dogma-logo-mark { width:2.1rem;height:2.1rem;flex-basis:2.1rem; }
    .dogma-logo-mark img { width:4.75rem;height:4.75rem;left:-1.3rem;top:-.72rem; }
    .dogma-brand-word { font-size:1.08rem; }
    .dogma-content-grid, .members-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .dogma-glass-title { max-width:88vw; padding:.28em .38em .32em !important; }
    .dogma-content-grid, .members-grid { grid-template-columns:1fr; }
    .dogma-subpage-hero { min-height:48vh; padding-top:2rem; }
    .members-team-photo { max-height:54vh; border-radius:1.3rem; }
    .member-photo-card, .member-photo-card img { min-height:390px; }
    .dogma-scroll-top { width:3.1rem;height:3.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior:auto; }
    .members-orbit, .members-scroll-cue svg { animation:none; }
}

/* ------------------------------- */
/* 标题渐变（按亮/暗模式切换） */
/* 作用于主页面大标题：.dogma-glass-title 与 .title-fix */

.dogma-glass-title, .title-fix, h1 {
    color: var(--dogma-heading) !important;
    -webkit-text-fill-color: var(--dogma-heading) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background-image: none !important;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0,0.18));
}




/* ========================================================================== */
/* dogmaOS THEME V3 — 透明 Logo / 字母玻璃标题 / 完整内容页 / 统一页脚         */
/* ========================================================================== */

/* 01｜品牌锁定：Logo 与队名直接放在导航玻璃层上，不再拥有第二层玻璃外壳。 */
.dogma-brand {
    height: auto;
    padding: 0.12rem 0.35rem 0.12rem 0.08rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* 原 PNG 自带透明通道。这里仅裁出上半部分的帆船图形，不绘制背景与边框。 */
.dogma-logo-mark {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.dogma-logo-mark img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: none;
}

.member-group-section {
    margin-bottom: 3rem;
}

.member-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255,.08);
}

.member-group-label {
    color: var(--dogma-blue);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.member-group-header h2 {
    font-size: clamp(1.9rem, 2.5vw, 2.6rem);
    margin: 0;
}

.member-group-meta {
    color: rgba(191, 222, 244, 0.75);
    font-size: 0.95rem;
}

.group-members-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.member-card-role {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255,0.08);
    border-radius: 999px;
    color: #E2EAF0;
    font-size: 0.84rem;
}

.member-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.member-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 1060px) {
    .group-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .group-members-grid { grid-template-columns: 1fr; }
}

/* 02｜一级标题玻璃化：玻璃效果直接发生在字母内部，不再给文字套矩形玻璃盒。 */
.dogma-glass-title {
    width: auto;
    max-width: min(94vw, 1180px);
    padding: 0 !important;
    color: var(--dogma-heading) !important;
    -webkit-text-fill-color: var(--dogma-heading) !important;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255,0.35);
    background-image: none !important;
    background-size: 180% 100%;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255,0.92))
        drop-shadow(0 4px 6px rgba(0, 0, 0,0.25))
        drop-shadow(0 10px 22px rgba(var(--dogma-blue-rgb),0.16));
}

.dogma-glass-title::before { content: none !important; }

/* 03｜下拉菜单与顶栏使用同一透明度、模糊量和边缘高光。 */
.dogma-nav-shell, .dropdown-menu, .dogma-mobile-menu, #mobile-menu {
    background:
        linear-gradient(135deg, rgba(255, 255, 255,0.28), rgba(255, 255, 255,0.04) 58%, rgba(127, 197, 238,0.07)),
        var(--dogma-glass) !important;
    border-color: var(--dogma-glass-line) !important;
    box-shadow: var(--dogma-glass-shadow) !important;
    -webkit-backdrop-filter: blur(var(--dogma-glass-blur)) saturate(165%) !important;
    backdrop-filter: blur(var(--dogma-glass-blur)) saturate(165%) !important;
}

/* 04｜从原单页迁入的完整内容：只调整容器，不删除原文与原组件。 */
.dogma-rich-page { min-height: 100vh; padding-bottom: 2rem; }
.dogma-rich-hero {
    min-height: 48vh;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: var(--dogma-nav-clearance) 1rem 3rem;
    text-align: center;
}
.dogma-rich-hero .dogma-eyebrow { margin-bottom: 1.2rem; }
.dogma-rich-page > .dogma-legacy-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto 5rem;
}

/* ========================================================================== */
/* Content-page tidal hero                                                    */
/* Homepage, Team and Education do not use header.dogma-wave-hero and remain  */
/* untouched. One shared composition keeps every other content page aligned. */
/* ========================================================================== */
.dogma-tidal-hero {
    --dogma-hero-gutter: max(1.25rem, calc((100vw - 76rem) / 2));
    --dogma-hero-copy-width: clamp(30rem, 46vw, 44rem);
    --dogma-hero-wave-height: clamp(15rem, 32svh, 22rem);
    position: relative;
    isolation: isolate;
    left: 50%;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 100vh !important;
    min-height: 100svh !important;
    box-sizing: border-box;
    margin-left: -50vw;
    padding: var(--dogma-nav-clearance) var(--dogma-hero-gutter) clamp(10.5rem, 24svh, 15rem) !important;
    display: grid !important;
    grid-template-columns: minmax(26rem, 47vw) minmax(0, 1fr);
    align-content: start !important;
    align-items: start;
    justify-items: stretch !important;
    text-align: left !important;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--dogma-blue);
}

.dogma-tidal-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: .28;
    background-image: none;
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000000, transparent 66%);
    pointer-events: none;
}

.dogma-tidal-hero-copy, .dogma-tidal-hero > .dogma-tidal-hero-copy {
    position: relative !important;
    z-index: 4;
    width: 100% !important;
    max-width: var(--dogma-hero-copy-width) !important;
    margin: clamp(1.25rem, 4svh, 3rem) 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-self: start;
}

.dogma-tidal-hero-copy::before { content: none !important; }
.dogma-tidal-hero .dogma-eyebrow {
    margin: 0 0 1rem !important;
    letter-spacing: .31em;
}
.dogma-tidal-hero h1 {
    display: block !important;
    width: max-content !important;
    max-width: min(44rem, 48vw) !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    font-size: clamp(3.5rem, 6.8vw, 6.5rem) !important;
    line-height: .96 !important;
    text-align: left !important;
    color: var(--dogma-heading) !important;
    -webkit-text-fill-color: var(--dogma-heading) !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    filter: drop-shadow(0 .45rem 1.2rem rgba(16, 59, 90, .08));
}
.dogma-tidal-hero .dogma-subpage-lead {
    max-width: 28rem;
    margin: 1.35rem 0 0 !important;
    text-align: left !important;
    color: var(--dogma-copy);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.7;
}

.dogma-tidal-waves {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--dogma-hero-wave-height);
    overflow: hidden;
    pointer-events: none;
}
.dogma-tidal-waves::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(190, 221, 243, 0) 0%, rgba(105, 177, 229, .08) 48%, rgba(51, 140, 203, .13) 100%);
}
.dogma-tidal-wave {
    position: absolute;
    left: -9%;
    bottom: 0;
    width: 118%;
    height: 100%;
    overflow: visible;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}
.dogma-tidal-wave path { vector-effect: non-scaling-stroke; }
.dogma-tidal-wave-fill {
    stroke: none;
    transform-origin: 50% 100%;
}
.dogma-tidal-wave-fill-back {
    opacity: .95;
    filter: blur(1.4px);
    animation: dogma-tide-fill-back 13.5s ease-in-out infinite alternate;
}
.dogma-tidal-wave-fill-mid {
    opacity: .98;
    filter: blur(.7px);
    animation: dogma-tide-fill-mid 11.2s ease-in-out -1.6s infinite alternate;
}
.dogma-tidal-wave-fill-front {
    opacity: 1;
    animation: dogma-tide-fill-front 8.9s ease-in-out infinite alternate;
}
.dogma-tidal-wave-back {
    fill: none;
    stroke: rgba(127, 188, 232, .24);
    stroke-width: 1.05;
    filter: blur(.4px);
    animation: dogma-tide-drift-deep 12.4s ease-in-out infinite alternate;
}
.dogma-tidal-wave-mid {
    fill: none;
    stroke: rgba(33, 106, 158, .40);
    stroke-width: 1.42;
    animation: dogma-tide-drift 9.2s ease-in-out infinite alternate;
}
.dogma-tidal-wave-pulse {
    fill: none;
    stroke: rgba(24, 90, 137, .78);
    stroke-width: 2.1;
    stroke-dasharray: 2 8;
    animation: dogma-tide-pulse 4.8s linear infinite;
}
@keyframes dogma-tide-drift-deep {
    from { transform: translate3d(-.9%, 8px, 0) scaleY(.968); }
    to { transform: translate3d(1%, -10px, 0) scaleY(1.055); }
}
@keyframes dogma-tide-drift {
    from { transform: translate3d(-1.4%, 5px, 0) scaleY(.96); }
    to { transform: translate3d(1.4%, -8px, 0) scaleY(1.04); }
}
@keyframes dogma-tide-drift-reverse {
    from { transform: translate3d(1.4%, -7px, 0) scaleY(1.05); }
    to { transform: translate3d(-1.5%, 9px, 0) scaleY(.95); }
}
@keyframes dogma-tide-pulse {
    to { stroke-dashoffset: -120; transform: translate3d(.8%, -3px, 0); }
}
@keyframes dogma-tide-fill-back {
    from { transform: translate3d(-.8%, 9px, 0) scaleY(.975); opacity: .78; }
    to { transform: translate3d(1%, -7px, 0) scaleY(1.04); opacity: 1; }
}
@keyframes dogma-tide-fill-mid {
    from { transform: translate3d(1.1%, 7px, 0) scaleY(.988); opacity: .82; }
    to { transform: translate3d(-1.2%, -8px, 0) scaleY(1.03); opacity: 1; }
}
@keyframes dogma-tide-fill-front {
    from { transform: translate3d(1.5%, 5px, 0) scaleY(1.012); opacity: .9; }
    to { transform: translate3d(-1.4%, -6px, 0) scaleY(.982); opacity: 1; }
}


/* The title cover and the article are two separate snap pages. */
html.dogma-content-scroll {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
}
.dogma-page-frame {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.dogma-tidal-hero + .dogma-snap-container {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}


/* Left-side kinetic motifs for content-page heroes. */
.dogma-left-scene {
    position: absolute;
    z-index: 3;
    left: max(calc(var(--dogma-hero-gutter) + .2rem), 1.6rem);
    bottom: calc(var(--dogma-hero-wave-height) - 1.75rem);
    width: clamp(18rem, 31vw, 30rem);
    height: clamp(11rem, 24svh, 17rem);
    pointer-events: none;
    opacity: .98;
    filter: drop-shadow(0 1rem 2rem rgba(23, 85, 130, .10));
}
.dogma-left-scene--orbit {
    width: clamp(15rem, 22vw, 20rem);
    height: clamp(13rem, 23svh, 17rem);
    left: max(calc(var(--dogma-hero-gutter) + .2rem), 1.8rem);
    bottom: calc(var(--dogma-hero-wave-height) - 1.4rem);
}
.dogma-left-scene--bio {
    width: clamp(17rem, 25vw, 21rem);
    height: clamp(12rem, 22svh, 16rem);
    left: max(calc(var(--dogma-hero-gutter) + .5rem), 1.8rem);
    bottom: calc(var(--dogma-hero-wave-height) - 1.55rem);
}
.dogma-left-scene--right {
    left: auto !important;
    right: max(var(--dogma-hero-gutter), 3.25rem) !important;
    top: clamp(11rem, 24svh, 14.5rem) !important;
    bottom: auto !important;
    width: clamp(20rem, 31vw, 31rem);
    height: clamp(13rem, 27svh, 18rem);
}
.dogma-left-scene--right.dogma-left-scene--orbit {
    width: clamp(18rem, 25vw, 23rem);
    height: clamp(14rem, 26svh, 18rem);
}
.dogma-left-scene--right.dogma-left-scene--bio {
    width: clamp(19rem, 27vw, 25rem);
    height: clamp(14rem, 25svh, 18rem);
}
.dogma-left-scene::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 82%;
    height: 74%;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 44%, rgba(151, 201, 237, .24), rgba(151, 201, 237, .08) 42%, rgba(151, 201, 237, 0) 74%);
    filter: blur(12px);
    opacity: .78;
}
.dogma-left-scene__glow {
    position: absolute;
    inset: auto 6% 4% 2%;
    height: 42%;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 46%, rgba(129, 190, 233, .22), rgba(129, 190, 233, .08) 45%, rgba(129, 190, 233, 0) 74%);
    filter: blur(10px);
    animation: dogma-scene-glow 7.6s ease-in-out infinite alternate;
}
.dogma-left-scene__graphic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.dogma-left-scene__soft-line {
    fill: none;
    stroke: rgba(81, 159, 214, .22);
    stroke-width: 2.4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.dogma-left-scene__route-shadow {
    fill: none;
    stroke: rgba(121, 185, 231, .22);
    stroke-width: 5.4;
    stroke-linecap: round;
    filter: blur(1px);
    vector-effect: non-scaling-stroke;
}
.dogma-left-scene__route {
    fill: none;
    stroke: rgba(28, 103, 156, .86);
    stroke-width: 2.9;
    stroke-linecap: round;
    stroke-dasharray: 2 8;
    vector-effect: non-scaling-stroke;
    animation: dogma-scene-route 9s linear infinite;
}
.dogma-left-scene__node {
    fill: #103B5A;
    stroke: rgba(232, 243, 251, .95);
    stroke-width: 2.8;
    vector-effect: non-scaling-stroke;
    animation: dogma-scene-node 3.8s ease-in-out infinite;
}
.dogma-left-scene__node--b { animation-delay: -.8s; }
.dogma-left-scene__node--c { animation-delay: -1.7s; }
.dogma-left-scene__node--d { animation-delay: -2.4s; }
.dogma-left-scene__orbit {
    fill: none;
    stroke: rgba(92, 165, 218, .28);
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    transform-origin: 46% 49%;
    animation: dogma-scene-orbit 12s ease-in-out infinite alternate;
}
.dogma-left-scene__orbit--outer { stroke-width: 1.6; }
.dogma-left-scene__orbit--mid { stroke-width: 1.4; animation-delay: -2.5s; opacity: .88; }
.dogma-left-scene__orbit--inner { stroke-width: 1.2; animation-delay: -4.2s; opacity: .74; }
.dogma-left-scene__petri {
    fill: rgba(235, 245, 252, .28);
    stroke: rgba(76, 154, 209, .34);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}
.dogma-left-scene__petri--main { filter: drop-shadow(0 0.8rem 1.4rem rgba(88, 167, 223, .12)); }
.dogma-left-scene__petri--small, .dogma-left-scene__petri--tiny { fill: rgba(239, 247, 252, .18); stroke-width: 2.2; }
.dogma-left-scene__helix {
    fill: none;
    stroke: rgba(53, 150, 219, .54);
    stroke-width: 2.25;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.dogma-left-scene__helix--alt { opacity: .7; stroke-dasharray: 2 8; animation: dogma-scene-route 10s linear infinite reverse; }
.dogma-left-scene__bubble {
    fill: rgba(27, 100, 152, .78);
    opacity: .88;
    animation: dogma-scene-bubble 6s ease-in-out infinite;
}
.dogma-left-scene__bars rect {
    fill: rgba(107, 178, 229, .26);
    stroke: rgba(49, 134, 194, .32);
    stroke-width: 1.2;
    animation: dogma-scene-bars 7s ease-in-out infinite alternate;
}
.dogma-left-scene__bars rect:nth-child(2) { animation-delay: -.9s; }
.dogma-left-scene__bars rect:nth-child(3) { animation-delay: -1.6s; }
.dogma-left-scene__bars rect:nth-child(4) { animation-delay: -2.3s; }
.dogma-left-scene__ship {
    position: absolute;
    display: block;
    width: clamp(2.5rem, 4.1vw, 4rem);
    aspect-ratio: 595 / 696;
    animation: dogma-scene-float 7s ease-in-out infinite;
}
.dogma-left-scene__ship img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 .65rem 1.05rem rgba(16, 59, 90, .14));
}
.dogma-left-scene__ship--route { left: 2.6%; bottom: 7%; }
.dogma-left-scene__ship--orbit { left: 19%; top: 31%; }
.dogma-left-scene__ship--bio {
    width: clamp(2.9rem, 4.5vw, 4.2rem);
    left: 49%;
    top: 26%;
    transform: translateX(-50%);
}
.dogma-left-scene__ship--data { left: 3%; bottom: 11%; }
.dogma-left-scene__labels {
    position: absolute;
    inset: 0;
}
.dogma-left-scene__label {
    position: absolute;
    color: rgba(22, 83, 126, .68);
    font-size: clamp(.58rem, .74vw, .76rem);
    letter-spacing: .24em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: dogma-scene-label 7.4s ease-in-out infinite alternate;
}
@keyframes dogma-scene-route {
    to { stroke-dashoffset: -160; }
}
@keyframes dogma-scene-node {
    0%, 100% { transform: scale(1); opacity: .94; }
    50% { transform: scale(1.14); opacity: 1; }
}
@keyframes dogma-scene-orbit {
    from { transform: translateY(2px) scale(.988); opacity: .65; }
    to { transform: translateY(-4px) scale(1.02); opacity: .95; }
}
@keyframes dogma-scene-bubble {
    0%, 100% { transform: translateY(0) scale(1); opacity: .86; }
    50% { transform: translateY(-8px) scale(1.08); opacity: 1; }
}
@keyframes dogma-scene-bars {
    from { transform: translateY(3px); opacity: .72; }
    to { transform: translateY(-6px); opacity: .96; }
}
@keyframes dogma-scene-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-1.2deg); }
}
@keyframes dogma-scene-label {
    from { transform: translateY(0); opacity: .58; }
    to { transform: translateY(-5px); opacity: .9; }
}
@keyframes dogma-scene-glow {
    from { transform: scale(.96); opacity: .6; }
    to { transform: scale(1.04); opacity: .95; }
}












/* Keep current right-side subjects above the shared waves. */
.dogma-tidal-hero .software-hero-visual, .dogma-tidal-hero .software-system-field, .dogma-tidal-hero .model-code-field {
    z-index: 3;
}

@media (max-width: 760px) {
    .dogma-tidal-hero {
        --dogma-hero-gutter: 1.25rem;
        --dogma-hero-wave-height: clamp(11rem, 28svh, 15rem);
        height: 100vh;
        height: 100svh;
        min-height: 100vh !important;
        min-height: 100svh !important;
        grid-template-columns: 1fr;
        padding: var(--dogma-nav-clearance) 1.25rem 7.5rem !important;
    }
    .dogma-tidal-hero-copy, .dogma-tidal-hero > .dogma-tidal-hero-copy {
        max-width: min(29rem, 92vw) !important;
        margin-top: 1.5rem !important;
    }
    .dogma-tidal-hero h1 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(3rem, 14vw, 4.8rem) !important;
    }
    .dogma-left-scene { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dogma-tidal-wave, .dogma-left-scene *, .dogma-left-scene, .software-terminal-logo { animation: none !important; }
}

/* Editorial emphasis is shared across all static and dynamically loaded pages. */
main em, footer em {font-style:italic!important;}
.wiki-reference-normal :is(p,li,a,span,b,strong), .wiki-reference-normal:where(p,li) {font-weight:400!important;}
header.dogma-rich-hero .dogma-eyebrow {display:none!important;}

/* 05｜Members：保留分类工具栏；去掉分类数字，三列略缩小并扩大间距。 */
.members-roster { width: min(1040px, calc(100% - 2rem)); }
.members-roster-titlebar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.members-roster-titlebar svg { width: 2.2rem; height: 2.2rem; color: var(--dogma-blue); }
.members-roster-titlebar h2 {
    color: var(--dogma-ink);
    font-size: clamp(2rem,4vw,3rem);
    font-weight: 800;
}
.member-filter-bar {
    position: sticky;
    top: calc(0.72rem + 0.6rem);
    z-index: 50;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 2.4rem;
    padding: 0;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    scrollbar-width: none;
}
.member-filter-bar::-webkit-scrollbar { display:none; }
.member-filter-button {
    flex: 0 0 auto;
    padding: 0.58rem 1rem;
    color: var(--dogma-muted);
    border: 1px solid var(--dogma-line);
    border-radius: 999px;
    background: rgba(255, 255, 255,0.10);
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.member-filter-button:hover, .member-filter-button.is-active {
    color: var(--dogma-blue);
    border-color: color-mix(in srgb,var(--dogma-blue) 42%,white);
    background: rgba(var(--dogma-blue-rgb),0.08);
    transform: translateY(-1px);
}
.members-grid { gap: 1.75rem; }
.member-photo-card { min-height: 382px; }
.member-photo-card img { min-height: 382px; }
.member-card-programme { margin-top: .35rem; color: rgba(255, 255, 255,.68) !important; font-size: .82rem; }
.member-card-group { margin-top: .75rem; display:inline-flex; padding:.25rem .55rem; border:1px solid rgba(255, 255, 255,.28); border-radius:999px; color:rgba(255, 255, 255,.82) !important; font-size:.72rem; }

/* 06｜全站统一页脚：从正文背景自然过渡，不使用突兀的整块深色底。 */
.dogma-footer {
    position: relative;
    margin-top: 2rem;
    padding: 7rem 1rem 2rem;
    color: var(--dogma-copy);
    background: var(--dogma-blue);
}
.dogma-footer::before {
    content: "";
    position: absolute;
    top: 4rem;
    left: 50%;
    width: min(1120px, calc(100% - 2rem));
    height: 1px;
    transform: translateX(-50%);
    background: var(--dogma-blue);
}
.dogma-footer-inner { width:min(1120px,100%); margin:0 auto; }
.dogma-footer-grid { display:grid; grid-template-columns:1.35fr .85fr 1fr; gap:3rem; padding:1rem 0 3rem; }
.dogma-footer-grid h2 { margin-bottom:1rem; color:var(--dogma-blue); font-size:1rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.dogma-footer-grid p, .dogma-footer-grid a { color:var(--dogma-muted); line-height:1.75; }
.dogma-footer-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem 1rem; }
.dogma-footer-links a:hover, .dogma-footer-email:hover { color:var(--dogma-blue); }
.dogma-footer-lockup { display:flex; align-items:center; gap:.55rem; margin-bottom:.8rem; }
.dogma-footer-logo { position:relative; width:2.4rem; height:2.4rem; overflow:hidden; }
.dogma-footer-logo img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
    left: 0;
    top: 0;
    object-fit: contain;
}
.dogma-footer-copy { padding-top:1.5rem; text-align:center; color:color-mix(in srgb,var(--dogma-muted) 72%,transparent); border-top:1px solid var(--dogma-line); font-size:.78rem; }

@media (max-width: 900px) {
    .member-filter-bar { top: calc(0.5rem + 0.6rem); }
    .dogma-logo-mark { width:2.35rem;height:2.35rem;flex-basis:2.35rem; }
    .dogma-logo-mark img { width:100%;height:100%;left:0;top:0;object-fit:contain; }
    .dogma-footer-grid { grid-template-columns:1fr 1fr; }
    .dogma-footer-brand { grid-column:1 / -1; }
}

@media (max-width: 620px) {
    .dogma-rich-hero { min-height:42vh; }
    .members-roster-titlebar { align-items:flex-start; }
    .member-filter-bar { justify-content:flex-start; gap:.45rem; }
    .member-filter-button { padding:.55rem .95rem; font-size:.86rem; }
    .member-photo-card, .member-photo-card img { min-height:360px; }
    .dogma-footer { padding-top:6rem; }
    .dogma-footer-grid { grid-template-columns:1fr; gap:2rem; }
    .dogma-footer-brand { grid-column:auto; }
}

/* ==================== 全站翻页定格滚动 ==================== */
.dogma-snap-container {
    height: 100vh;
    width: 100%;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.dogma-snap-container::-webkit-scrollbar {
    display: none;
}
.dogma-snap-child {
    scroll-snap-align: start;
    min-height: 100vh;
}

/* ==================== 团队开场动画（frame + logo） ==================== */
.team-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--dogma-ink);
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    filter: drop-shadow(0 6px 18px hsla(0, 0%, 0%, 0%));
}

.frame-layer {
    position: absolute;
    inset: 0;
    will-change: transform, opacity;
}

.frame-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-bg-images {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    max-width: 490px;
    will-change: transform, filter;
    pointer-events: none;
}

.bg-logo-single {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}






@media (max-width: 768px) {
    .bg-logo-wrap {
        width: 80%;
    }
}

/* ========================================================================== */
/* Members 页：下滑后导航栏收缩为左上角圆形 Logo                               */
/* 高度 / 玻璃颜色 / 透明度均保持不变，仅宽度向左收缩成圆球。                 */
/* ========================================================================== */

/* 展开态：玻璃壳开启平滑变形（展开时内容延迟淡入，避免从圆球中溢出） */
.dogma-nav-shell {
    transition:
        width .6s cubic-bezier(.4, 0, .2, 1),
        transform .6s cubic-bezier(.4, 0, .2, 1),
        border-radius .6s cubic-bezier(.4, 0, .2, 1),
        padding .6s cubic-bezier(.4, 0, .2, 1);
}

.dogma-nav-row {
    transition: border-radius .6s cubic-bezier(.4, 0, .2, 1), padding .6s cubic-bezier(.4, 0, .2, 1);
}

.dogma-navbar .dogma-desktop-nav, .dogma-navbar .dogma-brand-word, .dogma-navbar .dogma-menu-button {
    transition: opacity .35s ease .28s, width .5s ease .1s;
}

.dogma-logo-mark {
    transition: width .5s ease, height .5s ease, flex-basis .5s ease;
}

/* ============ 收缩态：整条导航向左收成圆形（仿右下角滚动进度环按钮） ============ */
.dogma-navbar.is-collapsed .dogma-nav-shell {
    --scroll-progress: 0deg;
    width: calc(var(--dogma-nav-height) + 2px);
    height: calc(var(--dogma-nav-height) + 2px);
    transform: translate(calc((var(--dogma-nav-height) + 2px - min(100vw, 1240px)) / 2 + 0.8rem + 0.72rem + 1px - 0.6rem - 0.3rem + var(--dogma-ball-offset-x, 0rem)), 0.6rem);
    border: 0;
    padding: 3px;
    border-radius: 50%;
    overflow: hidden;
    background: conic-gradient(var(--dogma-blue) var(--scroll-progress), rgba(255, 255, 255,0.34) 0);
    box-shadow: 0 12px 28px rgba(45, 75, 96,0.14);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* 内圈：半透明白色圆底 + 毛玻璃，与返回顶部按钮的内圈一致 */
.dogma-navbar.is-collapsed .dogma-nav-row {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255,0.64);
    border-radius: 50%;
    background: rgba(255, 255, 255,0.30);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    backdrop-filter: blur(10px) saturate(160%);
}





.dogma-navbar.is-collapsed .dogma-brand {
    min-width: 0;
    padding: 0;
    gap: 0;
}

.dogma-navbar.is-collapsed .dogma-logo-mark {
    width: 2.4rem;
    height: 2.4rem;
    flex-basis: 2.4rem;
}

/* 收缩时隐藏除 Logo 外的所有内容（立即淡出、宽度归零） */
.dogma-navbar.is-collapsed .dogma-desktop-nav, .dogma-navbar.is-collapsed .dogma-brand-word, .dogma-navbar.is-collapsed .dogma-menu-button {
    transition: opacity .25s ease 0s, width .4s ease 0s;
    opacity: 0;
    width: 0;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    pointer-events: none;
}

/* 圆球 Logo 主题切换：浅色主图 / 深色白色图 */




@media (max-width: 900px) {
    .dogma-navbar.is-collapsed .dogma-logo-mark {
        width: 2rem;
        height: 2rem;
        flex-basis: 2rem;
    }
}

/* ========================================================================== */
/* 2026 页面框架扩展：集中可调参数                                             */
/* ========================================================================== */
:root {
    /* 只调整收球后的水平位置，不改变原动画：负值向左，正值向右。 */
    --dogma-ball-offset-x: 0rem;
    /* 内容页左侧目录主题线。 */
    --dogma-index-line: linear-gradient(180deg, var(--dogma-blue-light), var(--dogma-blue), rgba(var(--dogma-blue-rgb), .18));
    --dogma-index-width: 12.25rem;
    /* 保持正文左起点不变：正文向右增加 9rem，同时等量压缩右侧平衡占位。 */
    --dogma-content-width: 1144px;
    --dogma-index-balance-width: calc(var(--dogma-index-width) - 9rem);
    --dogma-content-gap: clamp(1.5rem, 3vw, 3.5rem);
    /* Dry Lab · Software 的正文尺度：全站文章、图像与图注共用。 */
    --dogma-article-width: 64rem;
}

/* 混合滚动模板：整个页面使用同一文档流，仅标题到正文吸附一次。 */
.dogma-content-scroll {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

.dogma-rich-page.dogma-with-index, .dogma-content-page.dogma-with-index {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
}

.dogma-with-index > .dogma-rich-hero {
    min-height: 100vh;
    padding: var(--dogma-nav-clearance) 1rem 3rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.dogma-page-frame {
    width: min(1500px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: var(--dogma-index-width) minmax(0, var(--dogma-content-width)) var(--dogma-index-balance-width);
    gap: var(--dogma-content-gap);
    justify-content: center;
    align-items: start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.dogma-page-frame::after {
    content: "";
    grid-column: 3;
    grid-row: 1;
}

.dogma-page-index { grid-column: 1; }
.dogma-page-content { grid-column: 2; min-width: 0; }
.dogma-page-content > .dogma-legacy-section, .dogma-page-content > section {
    width: min(100%, var(--dogma-article-width));
    max-width: var(--dogma-article-width);
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: clamp(2rem, 6vh, 5rem);
    scroll-snap-align: none;
    scroll-margin-top: var(--dogma-nav-clearance);
}

/* 旧页面 section 自带 dogma-snap-child；进入正文后统一关闭章节级吸附。 */
.dogma-page-content .dogma-snap-child {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

/* 按要求不加外框/玻璃底，仅保留蓝色渐变竖线。 */
.dogma-page-index {
    position: sticky;
    top: var(--dogma-nav-clearance);
    margin-top: calc(var(--dogma-nav-clearance) + .5rem);
    padding: .35rem 0 .5rem 1.1rem;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
}

.dogma-page-index::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 999px;
    background: var(--dogma-blue);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255,.72),
        0 0 10px rgba(var(--dogma-blue-rgb),.24),
        0 5px 18px rgba(var(--dogma-blue-rgb),.12);
}

.dogma-page-index-label {
    margin-bottom: .8rem;
    color: var(--dogma-muted);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dogma-page-index nav { display: grid; gap: .22rem; }
.dogma-page-index a {
    padding: .5rem .15rem;
    color: var(--dogma-muted);
    font-size: 1.06rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
    transition: color .2s ease, transform .2s ease;
}
.dogma-page-index a:hover, .dogma-page-index a.is-active { color: var(--dogma-blue); transform: translateX(.25rem); }
.dogma-page-index a.is-subsection { padding-left: .65rem; font-size: .92rem; }

.dogma-section-card {
    margin-bottom: 2rem;
    padding: clamp(1.35rem, 3vw, 2.4rem);
    border: 1px solid var(--dogma-line);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--dogma-surface) 86%, transparent);
    box-shadow: 0 16px 42px rgba(42, 71, 91,.07);
}
.dogma-section-card h2 { color: var(--dogma-ink); font-size: clamp(1.65rem, 2.4vw, 2.15rem); font-weight: 800; }
.dogma-section-card h3 { margin-top: 1.4rem; color: var(--dogma-ink); font-size: 1.05rem; font-weight: 700; }
.dogma-section-card p { margin-top: .85rem; color: var(--dogma-copy); line-height: 1.8; }
.dogma-section-card ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--dogma-copy); list-style: disc; }
.dogma-section-card li + li { margin-top: .45rem; }

/* 普通项目正文采用编辑式排版：不使用卡片外框，仅靠标题、留白和细线建立层级。 */
.dogma-content-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.dogma-content-page:not(.education-page):not(.hp-overview-page) .dogma-section-card {
    width: min(100%, var(--dogma-article-width));
    max-width: var(--dogma-article-width);
    margin: 0 auto 0;
    padding: clamp(3rem, 8vh, 7rem) clamp(.25rem, 2vw, 1.5rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dogma-content-page:not(.education-page):not(.hp-overview-page) .dogma-section-card h2, .dogma-rich-page .dogma-legacy-section h2 {
    color: var(--dogma-blue) !important;
    font-size: clamp(1.65rem, 2.5vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -.018em;
}

.dogma-content-page:not(.education-page):not(.hp-overview-page) .dogma-section-card h3, .dogma-rich-page .dogma-legacy-section h3 {
    color: var(--dogma-ink) !important;
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    line-height: 1.3;
}

.dogma-content-page:not(.education-page):not(.hp-overview-page) .dogma-section-card p, .dogma-rich-page .dogma-legacy-section p {
    max-width: min(100%, var(--dogma-article-width));
    color: var(--dogma-copy) !important;
    font-size: clamp(.98rem, 1.15vw, 1.08rem);
    line-height: 1.9;
}

.dogma-content-page:not(.education-page):not(.hp-overview-page) .dogma-section-card ul, .dogma-content-page:not(.education-page):not(.hp-overview-page) .dogma-section-card ol, .dogma-rich-page .dogma-legacy-section ul {
    max-width: min(100%, var(--dogma-article-width));
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Education keeps its interactive multi-column scenes while its long-form
   evidence follows the same shared article axis as Software. */
.education-page .edu-fb-block, .education-page .edu-fb-fig {
    width: min(100%, var(--dogma-article-width));
    max-width: var(--dogma-article-width);
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
}

.education-page .edu-fb-body, .education-page .edu-outlook .edu-sec-head, .education-page .edu-outlook-text {
    width: min(100%, var(--dogma-article-width));
    max-width: var(--dogma-article-width);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

/* Results is a long evidence page. Keep its text continuously visible instead
   of re-hiding whole sections as they cross the viewport threshold. */
.wetlab-results-page .reveal-on-scroll, .wetlab-results-page .reveal-hidden, .wetlab-results-page .reveal-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.dogma-rich-page .dogma-legacy-section .bg-primary-light, .dogma-rich-page .dogma-legacy-section .bg-primary {
    border-color: transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .dogma-page-frame {
        width: 100%;
        margin-left: .25rem;
        padding-right: .6rem;
        grid-template-columns: minmax(7rem, 26vw) minmax(0, 1fr);
        gap: .75rem;
    }
    .dogma-page-frame::after { display:none; }
    .dogma-page-index { grid-column:1; }
    .dogma-page-content { grid-column:2; }
    .dogma-page-index {
        position: sticky;
        top: var(--dogma-nav-clearance);
        margin-top: calc(var(--dogma-nav-clearance) + .35rem);
        padding-left: .85rem;
    }
    .dogma-page-index nav { display: grid; gap: .1rem; overflow: visible; padding: 0; }
    .dogma-page-index-label { font-size: .72rem; }
    .dogma-page-index a { padding:.38rem .1rem; font-size:.84rem; }
    .dogma-page-index a.is-subsection { padding-left:.35rem; font-size:.77rem; }
}

/* Human Practice overview */
.hp-phase-orbit {
    position: relative;
    width: min(30rem, 82vw);
    aspect-ratio: 1;
    margin: 2rem auto 0;
    border: 1px solid rgba(var(--dogma-blue-rgb), .25);
    border-radius: 50%;
    animation: hp-orbit-spin 22s linear infinite;
}
.hp-phase-orbit::before { content:""; position:absolute; inset:18%; border:1px dashed rgba(var(--dogma-blue-rgb),.25); border-radius:50%; }
.hp-phase-orbit span { position:absolute; padding:.65rem 1rem; color:var(--dogma-blue); font-weight:800; border-radius:999px; background:var(--dogma-surface); box-shadow:0 10px 30px rgba(var(--dogma-blue-rgb),.12); }
.hp-phase-orbit span:nth-child(1) {left:50%;top:0;transform:translate(-50%,-50%)}
.hp-phase-orbit span:nth-child(2) {right:0;bottom:18%;transform:translate(50%,50%)}
.hp-phase-orbit span:nth-child(3) {left:0;bottom:18%;transform:translate(-50%,50%)}
.hp-phase-orbit b { position:absolute; inset:38%; display:grid; place-items:center; color:var(--dogma-ink); font-size:2rem; border-radius:50%; background:radial-gradient(circle,rgba(var(--dogma-blue-rgb),.16),transparent 72%); }
@keyframes hp-orbit-spin { to { transform:rotate(360deg); } }

/* Education framework interactions */
.education-orbit { position:relative; width:min(31rem,82vw); aspect-ratio:1; margin:2.5rem auto; border:1px solid rgba(var(--dogma-blue-rgb),.22); border-radius:50%; animation:education-spin 34s linear infinite; }
.education-orbit b { position:absolute; inset:37%; display:grid; place-items:center; border-radius:50%; color:white; background:linear-gradient(145deg,var(--dogma-blue),var(--dogma-blue-light)); }
.education-orbit span { --i:0; position:absolute; left:50%; top:50%; width:4.7rem; height:4.7rem; margin:-2.35rem; display:grid; place-items:center; color:var(--dogma-copy); font-size:.76rem; font-weight:700; border:1px solid var(--dogma-line); border-radius:50%; background:var(--dogma-surface); transform:rotate(calc(var(--i) * 45deg)) translateX(13rem) rotate(calc(var(--i) * -45deg)); }
.education-orbit span:nth-of-type(1) {--i:0}.education-orbit span:nth-of-type(2) {--i:1}.education-orbit span:nth-of-type(3) {--i:2}.education-orbit span:nth-of-type(4) {--i:3}.education-orbit span:nth-of-type(5) {--i:4}.education-orbit span:nth-of-type(6) {--i:5}.education-orbit span:nth-of-type(7) {--i:6}.education-orbit span:nth-of-type(8) {--i:7}
@keyframes education-spin { to { transform:rotate(360deg); } }

.education-mindmap { position:relative; min-height:19rem; margin-top:1.5rem; display:grid; place-items:center; }
.education-mindmap::before { content:""; position:absolute; width:17rem; height:17rem; border:2px dotted rgba(var(--dogma-blue-rgb),.3); border-radius:50%; animation:education-spin 26s linear infinite reverse; }
.education-mindmap b { position:relative; z-index:1; color:var(--dogma-blue); }
.education-mindmap span { position:absolute; padding:.5rem .8rem; border-radius:999px; color:var(--dogma-copy); background:var(--dogma-surface); box-shadow:0 8px 24px rgba(42, 71, 91,.1); }
.education-mindmap span:nth-of-type(1) {top:1rem}.education-mindmap span:nth-of-type(2) {right:8%;top:46%}.education-mindmap span:nth-of-type(3) {bottom:1rem}.education-mindmap span:nth-of-type(4) {left:8%;top:46%}

.intelligence-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:1.5rem; }
.intelligence-grid article { position:relative; min-height:8.5rem; padding:1.2rem; overflow:hidden; border:1px solid var(--dogma-line); border-radius:1rem; background:var(--dogma-surface); transition:transform .25s ease,border-color .25s ease; }
.intelligence-grid article:hover, .intelligence-grid article:focus { transform:translateY(-4px); border-color:rgba(var(--dogma-blue-rgb),.45); }
.intelligence-grid article > span { color:var(--dogma-blue); font-family:"Fira Code",monospace; font-size:.74rem; }
.intelligence-grid article h3 { margin-top:.5rem; }
.intelligence-grid article p { opacity:0; transform:translateY(.5rem); transition:.25s ease; }
.intelligence-grid article:hover p, .intelligence-grid article:focus p { opacity:1; transform:none; }

.boat-switcher { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.4rem; }
.boat-switcher button { padding:.7rem 1rem; color:var(--dogma-copy); border:1px solid var(--dogma-line); border-radius:999px; background:transparent; transition:.2s ease; }
.boat-switcher button:hover, .boat-switcher button.is-active { color:white; border-color:transparent; background:var(--dogma-blue); transform:translateX(.25rem); }
.audience-copy { margin-top:1rem; padding:1rem 1.2rem; color:var(--dogma-copy); border-left:3px solid var(--dogma-blue); background:rgba(var(--dogma-blue-rgb),.06); }
.education-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; margin-top:1.4rem; }
.education-steps span { padding:1.1rem .8rem; text-align:center; color:var(--dogma-blue); border-radius:1rem; background:rgba(var(--dogma-blue-rgb),.07); }

.education-timeline { position:relative; display:grid; gap:1rem; margin-top:1.5rem; padding-left:2rem; }
.education-timeline::before { content:""; position:absolute; left:.4rem; top:0; bottom:0; width:2px; background:var(--dogma-index-line); }
.education-timeline article { position:relative; padding:1rem 1.1rem; border:1px solid var(--dogma-line); border-radius:1rem; background:var(--dogma-surface); }
.education-timeline article::before { content:""; position:absolute; left:-2.05rem; top:1.45rem; width:.75rem; height:.75rem; border:2px solid var(--dogma-blue); border-radius:50%; background:var(--dogma-surface); }
.education-timeline time { color:var(--dogma-blue); font-weight:800; }

.activity-grid { display:grid; gap:.7rem; margin-top:1.5rem; }
.activity-strip { position:relative; min-height:4.6rem; padding:0 1.2rem; display:grid; grid-template-columns:3rem 1fr auto; align-items:center; gap:1rem; overflow:hidden; color:white; text-align:left; border:0; border-radius:1rem; transition:transform .2s ease; }
.activity-strip::after { content:""; position:absolute; right:-3rem; top:0; width:10rem; height:100%; background:rgba(255, 255, 255,.14); transform:skewX(-28deg); }
.activity-strip:hover { transform:translateX(.45rem); }
.activity-strip svg { position:relative; z-index:1; }
.activity-color-0 {background:linear-gradient(90deg,#216A9E,#7FC5EE)}.activity-color-1 {background:linear-gradient(90deg,#5698C7,#8DC0E4)}.activity-color-2 {background:linear-gradient(90deg,#195E8F,#4590C5)}.activity-color-3 {background:linear-gradient(90deg,#5597C6,#7DB7E1)}

.activity-modal[hidden] { display:none; }
.activity-modal { position:fixed; inset:0; z-index:1500; display:grid; place-items:center; padding:1rem; background:rgba(8, 21, 31,.48); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.activity-modal > div { width:min(42rem,100%); padding:2rem; color:var(--dogma-copy); border:1px solid var(--dogma-glass-line); border-radius:1.5rem; background:var(--dogma-surface); box-shadow:var(--dogma-glass-shadow); }
.activity-modal h2 { margin:.4rem 0 1rem; color:var(--dogma-ink); font-size:2rem; font-weight:800; }
.activity-modal-close { position:fixed; top:1.5rem; right:1.5rem; width:3rem; height:3rem; color:white; font-size:2rem; border-radius:50%; background:var(--dogma-blue); }
.activity-chat { display:grid; gap:.7rem; margin-top:1.4rem; }
.activity-chat p { width:86%; padding:.8rem 1rem; border-radius:1rem 1rem 1rem .2rem; background:rgba(var(--dogma-blue-rgb),.09); }
.activity-chat p:nth-child(2) { margin-left:auto; border-radius:1rem 1rem .2rem 1rem; }
.feedback-placeholder, .education-video-placeholder { min-height:12rem; margin-top:1.3rem; display:grid; place-items:center; gap:.7rem; color:var(--dogma-muted); border:1px dashed rgba(var(--dogma-blue-rgb),.3); border-radius:1.2rem; background:rgba(var(--dogma-blue-rgb),.04); }
.education-video-placeholder svg { width:2rem; height:2rem; color:var(--dogma-blue); animation:education-pulse 2s ease-in-out infinite; }
.rowing-finale { overflow:hidden; text-align:center; }
.rowing-boat { margin:2rem 0; font-size:3rem; animation:rowing-cross 8s linear infinite; }
.rowing-finale blockquote { color:var(--dogma-blue); font-size:clamp(1.2rem,2.4vw,1.8rem); font-weight:700; line-height:1.5; }
@keyframes rowing-cross { from{transform:translateX(-55%)} to{transform:translateX(55%)} }
@keyframes education-pulse { 50%{transform:scale(1.12);opacity:.65} }

@media (max-width:620px) {
    .education-orbit span { width:3.8rem;height:3.8rem;margin:-1.9rem;transform:rotate(calc(var(--i) * 45deg)) translateX(9rem) rotate(calc(var(--i) * -45deg));font-size:.65rem; }
    .intelligence-grid, .education-steps { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-phase-orbit, .education-orbit, .education-mindmap::before, .rowing-boat, .education-video-placeholder svg { animation:none; }
}

/* ==========================================================================
   Wet Lab 2026：沿用 dogmaOS 色系、字体和玻璃语言的编辑式实验排版
   ========================================================================== */

.wetlab-editorial-page .dogma-page-content {
    padding-bottom: clamp(4rem, 10vh, 8rem);
}

.wetlab-editorial-page .dogma-page-content > section {
    position: relative;
}

.wetlab-editorial-page .dogma-page-content > section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(.25rem, 2vw, 1.5rem);
    right: clamp(.25rem, 2vw, 1.5rem);
    height: 1px;
    background: var(--dogma-blue);
}

.wetlab-section-kicker {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
    color: var(--dogma-muted);
    font-family: "Fira Code", monospace;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wetlab-section-kicker span {
    color: var(--dogma-blue);
}

.wetlab-overview-section {
    position: relative;
    overflow: hidden;
}

.wetlab-overview-section::after {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: -8rem;
    width: 18rem;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--dogma-blue-rgb), .16);
    border-radius: 50%;
    box-shadow: 0 0 0 2.5rem rgba(var(--dogma-blue-rgb), .035), 0 0 0 5rem rgba(var(--dogma-blue-rgb), .025);
    pointer-events: none;
}

.wetlab-overview-map {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(.5rem, 2vw, 1.2rem);
    width: fit-content;
    max-width: 100%;
    margin-top: 2rem;
    padding: .75rem 1rem;
    overflow-x: auto;
    border: 1px solid var(--dogma-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--dogma-surface) 74%, transparent);
    box-shadow: 0 12px 30px rgba(var(--dogma-blue-rgb), .07);
    scrollbar-width: none;
}

.wetlab-overview-map::-webkit-scrollbar { display: none; }
.wetlab-overview-map span {
    flex: 0 0 auto;
    color: var(--dogma-ink);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
}
.wetlab-overview-map svg {
    flex: 0 0 auto;
    width: 1rem;
    color: var(--dogma-blue);
}

.wetlab-module-heading {
    display: block;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.wetlab-module-heading > div {
    position: relative;
    width: 100%;
    padding-left: 4.4rem;
}

.wetlab-module-number {
    position: absolute;
    left: 0;
    top: -.15rem;
    color: color-mix(in srgb, var(--dogma-blue) 55%, transparent);
    font-family: "Fira Code", monospace;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -.08em;
}

.wetlab-module-number::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + .65rem);
    width: 1.15rem;
    height: 1px;
    background: rgba(var(--dogma-blue-rgb), .4);
}

.wetlab-module-heading .wetlab-section-kicker {
    margin-bottom: .35rem;
}

.wetlab-module-heading h2 {
    margin: 0;
}

.wetlab-module-summary {
    max-width: min(100%, var(--dogma-article-width));
    margin: 1.15rem 0 0 4.4rem !important;
    padding-left: 1rem;
    border-left: 2px solid rgba(var(--dogma-blue-rgb), .28);
    color: var(--dogma-muted) !important;
    font-size: .94rem !important;
    line-height: 1.75 !important;
}

.wetlab-reading-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(17rem, .92fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.wetlab-reading-grid.is-reversed .wetlab-copy-stack { order: 2; }
.wetlab-reading-grid.is-reversed .wetlab-image-placeholder { order: 1; }

.wetlab-copy-stack {
    min-width: 0;
}

.wetlab-copy-stack h4 {
    margin-top: 1.35rem;
    color: var(--dogma-ink);
    font-size: 1rem;
    font-weight: 800;
}

.wetlab-copy-stack h4:first-child {
    margin-top: 0;
}

.wetlab-copy-stack h4::before {
    content: "";
    display: inline-block;
    width: .55rem;
    height: .55rem;
    margin-right: .65rem;
    border: 2px solid var(--dogma-blue);
    border-radius: 50%;
    vertical-align: .05em;
}

.wetlab-copy-stack p {
    margin-top: .6rem !important;
}

.wetlab-copy-stack ul {
    margin: .75rem 0 0 1.25rem !important;
    color: var(--dogma-copy);
    list-style: none !important;
}

.wetlab-copy-stack li {
    position: relative;
    padding-left: 1rem;
    line-height: 1.65;
}

.wetlab-copy-stack li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: .32rem;
    height: .32rem;
    border-radius: 50%;
    background: var(--dogma-blue);
    box-shadow: 0 0 8px rgba(var(--dogma-blue-rgb), .35);
}

.wetlab-image-placeholder {
    position: relative;
    min-height: 18rem;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .55rem;
    padding: 1.5rem;
    overflow: hidden;
    color: var(--dogma-muted);
    text-align: center;
    border: 1px dashed rgba(var(--dogma-blue-rgb), .38);
    border-radius: 1.35rem;
    background: var(--dogma-surface);
    background-size: 1.5rem 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255,.12), 0 18px 44px rgba(var(--dogma-blue-rgb), .07);
}

.wetlab-image-placeholder::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(var(--dogma-blue-rgb), .1);
    border-radius: .9rem;
    pointer-events: none;
}

.wetlab-image-placeholder svg {
    width: 1.8rem;
    height: 1.8rem;
    color: var(--dogma-blue);
}

.wetlab-image-placeholder strong {
    color: var(--dogma-ink);
    font-size: .9rem;
}

.wetlab-image-placeholder span {
    max-width: 19rem;
    font-size: .76rem;
}

.wetlab-image-placeholder.is-compact {
    min-height: 11rem;
}

.wetlab-image-placeholder.is-wide {
    width: 100%;
    min-height: clamp(22rem, 48vw, 34rem);
    margin-top: 2.25rem;
    aspect-ratio: 16 / 8;
}

.wetlab-image-placeholder.is-panorama {
    width: 100%;
    min-height: clamp(16rem, 35vw, 25rem);
    margin-top: 2.25rem;
    aspect-ratio: 16 / 6;
}

/* 占位图被正式图片替换后使用；README 中给出了完整替换示例。 */
.wetlab-figure {
    width: 100%;
    margin: 0;
}

.wetlab-figure.is-wide, .wetlab-figure.is-panorama {
    margin-top: 2.25rem;
}

.wetlab-figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--dogma-line);
    border-radius: 1.35rem;
    object-fit: cover;
    box-shadow: 0 18px 44px rgba(var(--dogma-blue-rgb), .09);
}

.wetlab-figure.is-wide img {
    min-height: clamp(22rem, 48vw, 34rem);
    aspect-ratio: 16 / 8;
}

.wetlab-figure.is-panorama img {
    min-height: clamp(16rem, 35vw, 25rem);
    aspect-ratio: 16 / 6;
}

.wetlab-figure figcaption {
    margin-top: .75rem;
    color: var(--dogma-muted);
    font-size: .76rem;
    line-height: 1.6;
}

/* Dry Lab Model: preserve the supplied figures while fitting them into the
   existing editorial system. Inline figures may float beside the narrative;
   full figures and galleries return to the full content width. */
.dogma-reading-flow {
    display: flow-root;
}

.dogma-inline-figure {
    width: clamp(17.5rem, 36%, 28.75rem);
    margin-top: .35rem;
    margin-bottom: 1.25rem;
}

.dogma-inline-figure.is-right {
    float: right;
    margin-left: 2rem;
}

.dogma-inline-figure.is-left {
    float: left;
    margin-right: 2rem;
}

.dogma-full-figure {
    clear: both;
    width: 100%;
    margin: 2.5rem 0 0;
}

.dogma-figure-gallery {
    clear: both;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.dogma-gallery-figure {
    min-width: 0;
    margin: 0;
}

.drylab-model-page .wetlab-copy-stack h3[data-subsection] {
    display: flex;
    align-items: baseline;
    gap: .7rem;
}

.drylab-model-page .wetlab-copy-stack h3[data-subsection]::before {
    content: attr(data-subsection);
    flex: 0 0 auto;
    color: var(--dogma-blue);
    font-family: "Fira Code", monospace;
    font-size: .72em;
    font-weight: 600;
    letter-spacing: .05em;
}

@media (max-width: 768px) {
    .dogma-inline-figure {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .dogma-figure-gallery {
        grid-template-columns: 1fr;
    }
}

.wetlab-experiment-heading {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.wetlab-experiment-heading .wetlab-module-number {
    position: relative;
    flex: 0 0 auto;
}

.wetlab-experiment-heading .wetlab-module-number::after {
    display: none;
}

.wetlab-experiment-heading .wetlab-section-kicker {
    margin: .2rem 0 .3rem;
}

.wetlab-experiment-heading h2 {
    margin: 0;
}

.wetlab-experiment-section > .wetlab-module-summary {
    max-width: min(100%, var(--dogma-article-width));
    margin-bottom: 2.25rem !important;
}

.wetlab-protocol-row {
    margin-top: 2rem;
    border-top: 1px solid rgba(var(--dogma-blue-rgb), .32);
    border-bottom: 1px solid var(--dogma-line);
}

.wetlab-protocol-row summary {
    min-height: 4.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem .2rem;
    color: var(--dogma-copy);
    cursor: pointer;
    list-style: none;
    transition: color .22s ease, padding .22s ease, background .22s ease;
}

.wetlab-protocol-row summary::-webkit-details-marker { display: none; }
.wetlab-protocol-row summary:hover {
    padding-left: .75rem;
    padding-right: .75rem;
    color: var(--dogma-blue);
    background: var(--dogma-surface);
}

.wetlab-protocol-row summary > span {
    display: grid;
    grid-template-columns: 1.15rem auto;
    gap: .1rem .7rem;
    align-items: center;
}

.wetlab-protocol-row summary > span > svg {
    grid-row: 1 / span 2;
    width: 1.1rem;
    color: var(--dogma-blue);
}

.wetlab-protocol-row summary b {
    color: var(--dogma-ink);
    font-size: .86rem;
}

.wetlab-protocol-row summary small {
    color: var(--dogma-muted);
    font-family: "Fira Code", monospace;
    font-size: .68rem;
}

.wetlab-protocol-chevron {
    width: 1rem;
    flex: 0 0 auto;
    color: var(--dogma-blue);
    transition: transform .28s ease;
}

.wetlab-protocol-row[open] .wetlab-protocol-chevron {
    transform: rotate(180deg);
}

.wetlab-protocol-panel {
    padding: .35rem .2rem 1.5rem;
}

.wetlab-document-placeholder {
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px dashed rgba(var(--dogma-blue-rgb), .34);
    border-radius: 1rem;
    background: rgba(var(--dogma-blue-rgb), .035);
}

.wetlab-document-placeholder > svg {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    color: var(--dogma-blue);
}

.wetlab-document-placeholder strong {
    color: var(--dogma-ink);
}

.wetlab-document-placeholder p {
    margin: .35rem 0 0 !important;
    color: var(--dogma-muted) !important;
    font-size: .82rem !important;
    line-height: 1.55 !important;
}

.wetlab-document-placeholder a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .75rem;
    color: var(--dogma-blue);
    font-size: .78rem;
    font-weight: 800;
}

.wetlab-document-placeholder a svg {
    width: .85rem;
}

.wetlab-pdf-frame {
    overflow: hidden;
    border: 1px solid var(--dogma-line);
    border-radius: 1rem;
    background: var(--dogma-surface);
}

.wetlab-pdf-frame iframe, .wetlab-pdf-frame object {
    width: 100%;
    min-height: 70vh;
    display: block;
    border: 0;
}

.wetlab-pdf-frame > a {
    display: block;
    padding: .85rem 1rem;
    color: var(--dogma-blue);
    font-size: .78rem;
    font-weight: 800;
    border-top: 1px solid var(--dogma-line);
}

.wetlab-module-register {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .6rem;
    margin-top: 2rem;
}

.wetlab-module-register span {
    min-height: 5.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .65rem;
    padding: .85rem;
    color: var(--dogma-copy);
    font-size: .72rem;
    line-height: 1.35;
    border-top: 2px solid rgba(var(--dogma-blue-rgb), .38);
    background: rgba(var(--dogma-blue-rgb), .035);
}

.wetlab-module-register b {
    color: var(--dogma-blue);
    font-family: "Fira Code", monospace;
    font-size: .7rem;
}

.wetlab-timeline {
    --timeline-date-width: 6.3rem;
    display: grid;
    gap: .25rem;
    margin-top: 1rem;
    padding: 0;
}

.wetlab-timeline::before {
    content: none;
}

.wetlab-timeline article {
    position: relative;
    display: grid;
    grid-template-columns: var(--timeline-date-width) 1.4rem minmax(0, 1fr);
    grid-template-rows: auto minmax(5.2rem, auto) auto;
    column-gap: 1rem;
    min-height: 10.5rem;
    padding: .15rem 0 1.25rem;
}

.wetlab-timeline article::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: calc(var(--timeline-date-width) + .7rem);
    top: .55rem;
    bottom: 0;
    width: 2px;
    background: var(--dogma-blue);
    transform: translateX(-50%);
}

.wetlab-timeline time {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
    padding: 0;
    color: var(--dogma-blue);
    font-family: "Fira Code", monospace;
    text-align: right;
    border: 0;
    background: none;
    box-shadow: none;
}

.wetlab-timeline .week-start { grid-column: 1; grid-row: 1; align-self: start; }
.wetlab-timeline .week-end { grid-column: 1; grid-row: 3; align-self: end; }

.wetlab-timeline time::after {
    content: "";
    position: absolute;
    right: -1rem;
    width: .58rem;
    height: .58rem;
    border: 2px solid color-mix(in srgb, var(--dogma-surface) 86%, transparent);
    border-radius: 50%;
    background: var(--dogma-blue);
    box-shadow: 0 0 0 3px rgba(var(--dogma-blue-rgb), .12), 0 0 15px rgba(var(--dogma-blue-rgb), .28);
}

.wetlab-timeline .week-start::after { top: .28rem; }
.wetlab-timeline .week-end::after { bottom: .28rem; }

.wetlab-timeline time small {
    color: var(--dogma-muted);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .13em;
}

.wetlab-timeline time b {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.wetlab-week-event {
    position: relative;
    z-index: 1;
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    min-width: 0;
    padding: .45rem 0;
    border: 0;
    background: none;
}

.wetlab-week-event::before {
    content: "";
    position: absolute;
    left: -1.68rem;
    top: 50%;
    width: 1.05rem;
    height: 1px;
    background: rgba(var(--dogma-blue-rgb), .38);
}

.wetlab-week-event h4 {
    color: var(--dogma-ink);
    font-size: .9rem;
    font-weight: 800;
}

.wetlab-week-event p {
    margin: .4rem 0 0 !important;
    color: var(--dogma-muted) !important;
    font-size: .84rem !important;
    line-height: 1.65 !important;
}

/* Experiments: complete plasmid map with interactive and static detail views. */
.plasmid-comparison-section {
    overflow: hidden;
}

.plasmid-option-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0 .85rem;
}

.plasmid-option-heading > span {
    flex: 0 0 auto;
    padding: .34rem .58rem;
    color: var(--dogma-blue);
    font-family: "Fira Code", monospace;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    border: 1px solid rgba(var(--dogma-blue-rgb), .26);
    border-radius: 999px;
    background: rgba(var(--dogma-blue-rgb), .055);
}

.plasmid-option-heading h3 {
    color: var(--dogma-ink);
    font-size: 1rem;
    font-weight: 800;
}

.plasmid-option-heading p {
    margin: .2rem 0 0 !important;
    color: var(--dogma-muted) !important;
    font-size: .82rem !important;
    line-height: 1.55 !important;
}

.plasmid-option-heading.is-static {
    margin-top: 3rem;
}

.plasmid-figure {
    position: relative;
    margin: 0;
}

.plasmid-map-stage {
    position: relative;
    min-height: clamp(34rem, 64vw, 49rem);
    isolation: isolate;
    overflow: visible;
}

.plasmid-map-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 1;
    width: min(84%, 56rem);
    height: auto;
    padding: 0;
    border: 0;
    border-radius: .18rem;
    background: #FFFFFF;
    box-shadow: 0 14px 34px rgba(22, 65, 96,.12);
    transform: translateX(-50%);
}

.plasmid-hotspot, .plasmid-static-marker {
    position: absolute;
    left: 52%;
    top: 18%;
    z-index: 5;
    width: 15%;
    height: 12%;
    padding: 0;
    border: 0;
    background: transparent;
}

.plasmid-hotspot {
    cursor: zoom-in;
    outline: none;
}

.plasmid-hotspot-frame {
    position: absolute;
    inset: 0;
    border: 2px solid var(--dogma-blue);
    background: rgba(var(--dogma-blue-rgb), .025);
    box-shadow: 0 0 0 1px rgba(255, 255, 255,.45) inset;
    transition: transform .25s ease, filter .25s ease, background .25s ease;
}

.plasmid-static-marker {
    border: 2px solid var(--dogma-blue);
    background: rgba(var(--dogma-blue-rgb), .025);
    box-shadow: 0 0 0 1px rgba(255, 255, 255,.45) inset;
}

.plasmid-interaction-hint {
    position: absolute;
    left: 53%;
    top: 31.5%;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--dogma-blue);
    font-family: "Fira Code", monospace;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .04em;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.plasmid-interaction-hint svg {
    width: .88rem;
    height: .88rem;
}

.plasmid-detail-popout {
    position: absolute;
    top: 1%;
    left: 50%;
    right: auto;
    z-index: 10;
    width: min(86%, 68rem);
    padding: .75rem .85rem .85rem;
    border: 1px solid rgba(var(--dogma-blue-rgb), .3);
    border-radius: .35rem;
    background: color-mix(in srgb, var(--dogma-surface) 98%, transparent);
    box-shadow: 0 34px 80px rgba(21, 62, 91,.25), inset 0 1px 0 rgba(255, 255, 255,.32);
    transform: translateX(-50%);
}

.plasmid-detail-popout::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: var(--dogma-blue);
}

.plasmid-detail-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: .55rem;
    color: var(--dogma-blue);
    font-family: "Fira Code", monospace;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .11em;
}

.plasmid-detail-crop {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(7rem, 11vw, 9rem);
    overflow: hidden;
    border-radius: .16rem;
    background: #FFFFFF;
}

.plasmid-detail-crop img {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
}

.plasmid-callout-line {
    position: absolute;
    left: 65%;
    top: 22%;
    z-index: 9;
    width: 18%;
    height: 2px;
    background: var(--dogma-blue);
    transform: rotate(-19deg);
    transform-origin: left center;
}

.plasmid-callout-line::after {
    content: "";
    position: absolute;
    right: -.05rem;
    top: -.27rem;
    width: .58rem;
    height: .58rem;
    border-top: 2px solid var(--dogma-blue);
    border-right: 2px solid var(--dogma-blue);
    transform: rotate(45deg);
}

.plasmid-interactive-figure .plasmid-detail-popout, .plasmid-interactive-figure .plasmid-callout-line {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 38%) scale(.52);
    transform-origin: 58% 85%;
    filter: blur(2px);
    transition: opacity .22s ease, transform .46s cubic-bezier(.18,.88,.24,1.12), filter .3s ease;
}

.plasmid-interactive-figure .plasmid-callout-line {
    transform: rotate(-19deg) scaleX(.12);
    filter: none;
}

.plasmid-hotspot:hover ~ .plasmid-detail-popout, .plasmid-hotspot:focus-visible ~ .plasmid-detail-popout, .plasmid-hotspot:focus ~ .plasmid-detail-popout {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: blur(0);
}

.plasmid-hotspot:hover ~ .plasmid-callout-line, .plasmid-hotspot:focus-visible ~ .plasmid-callout-line, .plasmid-hotspot:focus ~ .plasmid-callout-line {
    opacity: 1;
    transform: rotate(-19deg) scaleX(1);
}

.plasmid-hotspot:hover .plasmid-hotspot-frame, .plasmid-hotspot:focus .plasmid-hotspot-frame {
    filter: drop-shadow(0 0 8px rgba(var(--dogma-blue-rgb), .5));
    transform: scale(1.06);
    background: rgba(var(--dogma-blue-rgb), .065);
}

.plasmid-hotspot:hover ~ .plasmid-interaction-hint, .plasmid-hotspot:focus ~ .plasmid-interaction-hint {
    opacity: 0;
    transform: translateY(-.3rem);
}

.plasmid-static-figure .plasmid-map-stage {
    min-height: clamp(40rem, 72vw, 55rem);
}

.plasmid-static-figure .plasmid-map-image {
    left: 50%;
    width: min(82%, 50rem);
    transform: translateX(-50%);
}

.plasmid-static-figure .plasmid-static-marker {
    left: 52%;
    top: 30%;
    width: 15%;
    height: 12%;
}

.plasmid-static-figure .plasmid-callout-line {
    left: 66%;
    top: 32%;
    width: 15%;
    transform: rotate(-22deg);
}

.plasmid-static-figure .plasmid-detail-popout {
    top: 0;
    left: auto;
    right: 0;
    width: min(86%, 68rem);
    transform: none;
}

.plasmid-figure figcaption {
    margin-top: .7rem;
    color: var(--dogma-muted);
    font-size: .72rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .plasmid-map-stage {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 1rem;
        overflow: visible;
    }

    .plasmid-map-image {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100% !important;
    }

    .plasmid-static-figure .plasmid-map-image {
        left: auto;
        transform: none;
    }

    .plasmid-static-figure .plasmid-map-stage {
        min-height: 0;
    }

    .plasmid-hotspot, .plasmid-static-marker {
        left: 54%;
        top: 18%;
        width: 17%;
        height: 12%;
    }

    .plasmid-static-figure .plasmid-static-marker {
        left: 54%;
        top: 18%;
        width: 17%;
        height: 12%;
    }

    .plasmid-interaction-hint {
        left: auto;
        right: 1.25rem;
        top: 31%;
    }

    .plasmid-detail-popout {
        position: relative;
        top: auto !important;
        left: auto;
        right: auto;
        width: 100%;
        margin-top: .75rem;
        transform: none;
    }

    .plasmid-detail-crop {
        height: 8rem;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .plasmid-detail-crop img {
        position: relative;
        left: auto;
        top: auto;
        width: 44rem;
        transform: none;
    }

    .plasmid-callout-line {
        display: none;
    }

    .plasmid-interactive-figure .plasmid-detail-popout {
        max-height: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-.4rem);
        transition: max-height .38s ease, margin .32s ease, padding .32s ease, opacity .25s ease, transform .32s ease;
    }

    .plasmid-hotspot:hover ~ .plasmid-detail-popout, .plasmid-hotspot:focus ~ .plasmid-detail-popout {
        max-height: 18rem;
        margin-top: .75rem;
        padding: .72rem .8rem .8rem;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plasmid-hotspot-frame, .plasmid-detail-popout, .plasmid-callout-line, .plasmid-interaction-hint {
        transition: none !important;
    }
}

.wetlab-result-block {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(19rem, 1.22fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.wetlab-result-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(10rem, .75fr);
    gap: .8rem;
    align-items: stretch;
}

.wetlab-result-gallery .wetlab-image-placeholder {
    min-height: 18rem;
}

.wetlab-result-gallery .wetlab-image-placeholder.is-compact {
    min-height: 18rem;
}

@media (max-width: 900px) {
    .wetlab-reading-grid, .wetlab-result-block {
        grid-template-columns: 1fr;
    }

    .wetlab-reading-grid.is-reversed .wetlab-copy-stack, .wetlab-reading-grid.is-reversed .wetlab-image-placeholder {
        order: initial;
    }

    .wetlab-reading-grid.is-reversed .wetlab-image-placeholder {
        order: 2;
    }

    .wetlab-module-register {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wetlab-timeline { --timeline-date-width: 5.4rem; }
}

@media (max-width: 620px) {
    .wetlab-module-heading > div {
        padding-left: 3.65rem;
    }

    .wetlab-module-summary {
        margin-left: 0 !important;
    }

    .wetlab-module-number {
        font-size: 1.5rem;
    }

    .wetlab-reading-grid {
        gap: 1.25rem;
    }

    .wetlab-image-placeholder {
        min-height: 13rem;
    }

    .wetlab-module-register, .wetlab-result-gallery {
        grid-template-columns: 1fr;
    }

    .wetlab-module-register span {
        min-height: auto;
    }

    .wetlab-timeline { --timeline-date-width: 4.4rem; }

    .wetlab-timeline article {
        grid-template-columns: var(--timeline-date-width) 1.1rem minmax(0, 1fr);
        column-gap: .7rem;
        min-height: 10rem;
    }

    .wetlab-week-event::before { left: -1.25rem; width: .72rem; }

    .wetlab-document-placeholder {
        align-items: flex-start;
    }
}

/* 下拉导航需要压住正文：保留玻璃模糊，但提高底色覆盖度。 */
.dogma-navbar .dropdown-menu {
    background:
        linear-gradient(145deg, rgba(255, 255, 255,.18), rgba(var(--dogma-blue-rgb),.045)),
        color-mix(in srgb, var(--dogma-surface) 94%, transparent) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    box-shadow: 0 18px 46px rgba(31, 56, 74,.2), inset 0 1px 0 rgba(255, 255, 255,.5) !important;
}



@media (prefers-reduced-motion: reduce) {
    .wetlab-protocol-chevron, .wetlab-protocol-row summary {
        transition: none;
    }
}

/* ========================================================================== */
/* Wet Lab editorial import · supplied 2026-09-14                              */
/* ========================================================================== */

.wetlab-source-page .dogma-page-content {
    padding-bottom: clamp(5rem, 12vh, 9rem);
}

.wetlab-source-page .dogma-page-index {
    max-height: calc(100vh - var(--dogma-nav-clearance) - 1.5rem);
}

.wetlab-source-page .dogma-page-index nav {
    max-height: calc(100vh - var(--dogma-nav-clearance) - 5rem);
    overflow-y: auto;
    padding-right: .45rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--dogma-blue-rgb), .22) transparent;
}

.wetlab-source-page .dogma-page-index a.is-subsection {
    padding-top: .34rem;
    padding-bottom: .34rem;
    padding-left: .65rem;
    font-size: .86rem;
}

.wetlab-source-page .dogma-page-index a.is-detail {
    padding: .27rem .1rem .27rem 1.15rem;
    font-size: .78rem;
    line-height: 1.3;
}

.wetlab-source-page .dogma-page-index a.is-deep-detail {
    padding: .24rem .1rem .24rem 1.65rem;
    color: color-mix(in srgb, var(--dogma-muted) 82%, transparent);
    font-size: .72rem;
    line-height: 1.28;
}

.wetlab-source-section {
    overflow: visible;
}

.wetlab-source-content {
    max-width: 100%;
    margin-top: 1.5rem;
    color: var(--dogma-copy);
    font-size: clamp(.94rem, 1.05vw, 1.03rem);
    line-height: 1.82;
}

.wetlab-source-content > :first-child {
    margin-top: 0 !important;
}

.wetlab-source-content h4, .wetlab-source-content h5, .wetlab-source-content h6 {
    scroll-margin-top: calc(var(--dogma-nav-clearance) + 1rem);
    color: var(--dogma-ink);
    line-height: 1.35;
}

.wetlab-source-content h4 {
    margin: clamp(2.2rem, 5vw, 3.75rem) 0 .8rem;
    padding-left: 1rem;
    border-left: 3px solid var(--dogma-blue);
    font-size: clamp(1.25rem, 1.75vw, 1.55rem);
    font-weight: 800;
}

.wetlab-source-content h5 {
    margin: 2.1rem 0 .7rem;
    color: var(--dogma-blue);
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    font-weight: 800;
}

.wetlab-source-content h6 {
    margin: 1.65rem 0 .55rem;
    font-size: 1rem;
    font-weight: 750;
}

.wetlab-source-content p {
    margin: .85rem 0 0;
    color: var(--dogma-copy);
    line-height: 1.82;
}

.wetlab-source-content strong {
    color: var(--dogma-ink);
    font-weight: 800;
}

.wetlab-source-content em {
    color: color-mix(in srgb, var(--dogma-copy) 88%, var(--dogma-blue));
}

.wetlab-source-content ul, .wetlab-source-content ol {
    margin: 1rem 0 0;
    padding-left: 1.55rem;
    color: var(--dogma-copy);
}

.wetlab-source-content ul { list-style: disc; }
.wetlab-source-content ol { list-style: decimal; }
.wetlab-source-content li { padding-left: .25rem; line-height: 1.75; }
.wetlab-source-content li + li { margin-top: .45rem; }

.wetlab-source-content a {
    color: var(--dogma-blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(var(--dogma-blue-rgb), .32);
    text-underline-offset: .18em;
}

.wetlab-source-figure, .wetlab-source-content figure {
    width: min(100%, var(--dogma-article-width));
    margin: clamp(1.8rem, 5vw, 3.5rem) 0 1rem;
    display: grid;
    justify-items: center;
}

.wetlab-source-figure img, .wetlab-source-content figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 46rem;
    object-fit: contain;
    border: 1px solid var(--dogma-line);
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--dogma-surface) 92%, white);
    box-shadow: 0 18px 46px rgba(var(--dogma-blue-rgb), .10);
}

/* Adaptive scientific figures: preserve readable diagrams without scaling
   small source images or whitespace-heavy exported slides to full width. */
.wetlab-source-content figure.wetlab-source-figure--wide-strip {
    width: min(100%, 54rem);
}

.wetlab-source-content figure.wetlab-source-figure--portrait {
    width: min(100%, 42rem);
}

.wetlab-source-content figure.wetlab-source-figure--small-source img {
    width: auto;
    max-width: min(100%, var(--wetlab-source-pixel-width, 44rem));
}

.wetlab-source-content figure.wetlab-source-figure--smart-crop {
    position: relative;
    display: block;
    width: min(100%, 58rem);
    aspect-ratio: var(--wetlab-crop-aspect, 1.6);
    overflow: hidden;
    border: 1px solid var(--dogma-line);
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--dogma-surface) 94%, white);
    box-shadow: 0 18px 46px rgba(var(--dogma-blue-rgb), .09);
}

.wetlab-source-content figure.wetlab-source-figure--smart-crop-wide {
    width: min(100%, 64rem);
}

.wetlab-source-content figure.wetlab-source-figure--smart-crop img {
    position: absolute;
    top: var(--wetlab-crop-image-top, 0);
    left: var(--wetlab-crop-image-left, 0);
    width: var(--wetlab-crop-image-width, 100%);
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Explicit A/B scientific figure groups use the supplied transparent artwork
   directly. They are excluded from the automatic whitespace cropper. */
.wetlab-ab-grid {
    width: min(100%, 72rem);
    margin: clamp(1.8rem, 5vw, 3.4rem) auto 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(.85rem, 2vw, 1.35rem);
}

.wetlab-ab-grid .wetlab-pair-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 13rem;
    margin: 0;
    padding: clamp(1.35rem, 3vw, 2.25rem) clamp(.8rem, 2vw, 1.35rem) clamp(1rem, 2.5vw, 1.75rem);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(var(--dogma-blue-rgb), .18);
    border-radius: 1.2rem;
    background: var(--dogma-surface);
    box-shadow: 0 14px 38px rgba(var(--dogma-blue-rgb), .08);
}

.wetlab-ab-grid .wetlab-pair-panel img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 31rem;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wetlab-ab-grid .wetlab-pair-panel.wetlab-pair-panel--trimmed {
    min-height: 0;
    padding: 0;
    display: block;
    aspect-ratio: var(--wetlab-crop-aspect, 1.6);
}

.wetlab-ab-grid .wetlab-pair-panel.wetlab-pair-panel--trimmed img {
    position: absolute;
    top: var(--wetlab-crop-image-top, 0);
    left: var(--wetlab-crop-image-left, 0);
    width: var(--wetlab-crop-image-width, 100%);
    max-width: none;
    max-height: none;
}

.wetlab-ab-grid--wide .wetlab-pair-panel {
    min-height: 10rem;
}

.wetlab-ab-grid--plasmid .wetlab-pair-panel img {
    max-height: 27rem;
}

.wetlab-panel-marker {
    position: absolute;
    top: .72rem;
    left: .75rem;
    z-index: 2;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--dogma-blue-rgb), .22);
    border-radius: 999px;
    color: #FFFFFF;
    background: var(--dogma-blue);
    box-shadow: 0 7px 18px rgba(var(--dogma-blue-rgb), .18);
    font-family: "Fira Code", monospace;
    font-size: .82rem;
    font-weight: 800;
}

.wetlab-ab-grid + p {
    width: min(100%, var(--dogma-article-width));
    margin: .85rem auto 2.35rem;
    color: var(--dogma-muted);
    font-size: .84rem;
    line-height: 1.66;
}

@media (max-width: 720px) {
    .wetlab-ab-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .wetlab-ab-grid .wetlab-pair-panel {
        min-height: 9rem;
    }

    .wetlab-ab-grid--process .wetlab-pair-panel {
        min-height: 19rem;
    }
}

.wetlab-source-content figure figcaption[aria-hidden="true"] {
    display: none;
}

.wetlab-source-figure + p, .wetlab-source-content figure + p {
    width: min(100%, var(--dogma-article-width));
    margin: .75rem 0 2.25rem;
    color: var(--dogma-muted);
    font-size: .82rem;
    line-height: 1.62;
}

.wetlab-source-content blockquote {
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid rgba(var(--dogma-blue-rgb), .6);
    border-radius: 0 .8rem .8rem 0;
    background: rgba(var(--dogma-blue-rgb), .055);
}

.wetlab-table-scroll {
    width: 100%;
    margin-top: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--dogma-line);
    border-radius: 1rem;
}

.wetlab-source-content table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
    background: color-mix(in srgb, var(--dogma-surface) 88%, transparent);
}

.wetlab-source-content th, .wetlab-source-content td {
    padding: .78rem .9rem;
    border-bottom: 1px solid var(--dogma-line);
    text-align: left;
    vertical-align: top;
}

.wetlab-source-content th {
    color: var(--dogma-ink);
    background: rgba(var(--dogma-blue-rgb), .08);
    font-weight: 800;
}

.wetlab-source-protocol {
    margin-top: 1rem;
}

.wetlab-source-protocol + .wetlab-source-protocol {
    margin-top: .7rem;
}

.wetlab-source-protocol .wetlab-pdf-frame {
    display: block;
}

.wetlab-source-protocol .wetlab-pdf-frame object {
    width: 100%;
    min-height: min(72vh, 52rem);
    border: 0;
    border-radius: .9rem;
    background: white;
}

.wetlab-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .8rem;
}

.wetlab-document-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: .55rem .85rem;
    border: 1px solid rgba(var(--dogma-blue-rgb), .26);
    border-radius: .72rem;
    background: rgba(var(--dogma-blue-rgb), .07);
    text-decoration: none;
}

@media (max-width: 760px) {
    .wetlab-source-content {
        font-size: .94rem;
    }

    .wetlab-source-content h4 {
        padding-left: .75rem;
    }

    .wetlab-source-figure {
        margin-top: 2rem;
    }

    .wetlab-source-protocol .wetlab-pdf-frame object {
        min-height: 28rem;
    }
}

/* ========================================================================== */
/* Legacy hero rules retained for page-specific Model / Software artwork.      */
/* They live in a low-priority layer so the shared tidal layout above remains  */
/* the single source of truth for height, title position and responsive flow.  */
/* ========================================================================== */

@layer dogma-legacy-hero {

.dogma-wave-hero {
    --dogma-hero-gutter: max(1.5rem, calc((100vw - 74rem) / 2));
    position: relative;
    isolation: isolate;
    left: 50%;
    width: 100vw;
    min-height: 100svh;
    margin-left: -50vw;
    padding: clamp(8.75rem, 15vh, 10.75rem) var(--dogma-hero-gutter) clamp(15.5rem, 31vh, 20rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    text-align: left;
    background: var(--dogma-page);
}

.dogma-with-index > .dogma-wave-hero {
    padding: clamp(8.75rem, 15vh, 10.75rem) var(--dogma-hero-gutter) clamp(15.5rem, 31vh, 20rem);
}

.dogma-wave-hero.software-system-hero, .dogma-wave-hero.model-matrix-hero {
    background: var(--dogma-page);
}

.dogma-wave-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: .34;
    background-image: none;
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000000, transparent 68%);
    pointer-events: none;
}

.dogma-wave-hero > :not(.dogma-hero-waves):not(.model-code-field):not(.software-system-field):not(.software-hero-visual) {
    position: relative;
    z-index: 4;
}

.dogma-wave-hero > .dogma-eyebrow, .dogma-wave-hero .model-hero-copy, .dogma-wave-hero .software-hero-copy {
    margin-left: 0;
    text-align: left;
}

.dogma-wave-hero .dogma-eyebrow {
    margin: 0 0 1rem;
    color: #3596DB;
    font-size: clamp(.72rem, .9vw, .88rem);
    font-weight: 800;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.dogma-wave-hero h1, .dogma-wave-hero h1.dogma-glass-title {
    width: min(48rem, 54vw);
    max-width: none;
    margin: 0;
    color: var(--dogma-heading) !important;
    -webkit-text-fill-color: var(--dogma-heading) !important;
    -webkit-text-stroke: 0 !important;
    background: none !important;
    background-size: 100% 100% !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    filter: drop-shadow(0 .45rem 1.2rem rgba(16, 59, 90, .08));
    font-size: clamp(3.75rem, 6vw, 6.5rem);
    line-height: .92;
    letter-spacing: -.055em;
    text-align: left;
}

.dogma-wave-hero > .dogma-subpage-lead, .dogma-wave-hero > .hp-lead-quote {
    width: min(39rem, 46vw);
    max-width: none;
    margin-left: 0;
    text-align: left;
}

.dogma-wave-hero > .dogma-subpage-lead {
    margin-top: 1.35rem;
    color: var(--dogma-copy);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.7;
}

.dogma-wave-hero > .hp-lead-quote {
    margin-top: 1.15rem;
}

.dogma-hero-waves {
    position: absolute;
    z-index: 2;
    right: -3%;
    bottom: -1px;
    left: -3%;
    height: clamp(15rem, 32vh, 22rem);
    overflow: hidden;
    pointer-events: none;
}

.dogma-hero-wave-svg {
    display: block;
    width: 106%;
    height: 100%;
    overflow: visible;
}

.dogma-wave-fill-back { fill: rgba(142, 196, 235, .13); }
.dogma-wave-fill-mid { fill: rgba(53, 150, 219, .075); }
.dogma-wave-fill-front { fill: rgba(16, 59, 90, .055); }

.dogma-wave-contour {
    fill: none;
    stroke: #8EC4EB;
    stroke-width: 2.1;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.dogma-wave-contours-mid .dogma-wave-contour {
    stroke: #3596DB;
    stroke-width: 1.65;
    opacity: .56;
}

.dogma-wave-contours-back { animation: dogma-wave-breathe 10s ease-in-out infinite alternate; }
.dogma-wave-contours-mid { animation: dogma-wave-breathe-reverse 13s ease-in-out -4s infinite alternate; }
.dogma-wave-fill-layer { animation: dogma-wave-tide 8.5s ease-in-out -2s infinite alternate; transform-origin: 50% 100%; }

.dogma-current-route {
    fill: none;
    stroke: #3596DB;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-dasharray: 3 10;
    vector-effect: non-scaling-stroke;
    animation: dogma-current-flow 8s linear infinite;
}

.dogma-current-node {
    fill: #103B5A;
    stroke: #E4F1FA;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    transform-box: fill-box;
    transform-origin: center;
    animation: dogma-current-pulse 3.6s ease-in-out infinite;
}

.dogma-current-node:nth-of-type(2) { animation-delay: -1.2s; }
.dogma-current-node:nth-of-type(3) { animation-delay: -2.4s; }

@keyframes dogma-wave-breathe {
    from { transform: translate3d(-1.2%, 5px, 0); opacity: .62; }
    to { transform: translate3d(1.2%, -4px, 0); opacity: .96; }
}

@keyframes dogma-wave-breathe-reverse {
    from { transform: translate3d(1.1%, -2px, 0); opacity: .45; }
    to { transform: translate3d(-1.1%, 5px, 0); opacity: .74; }
}

@keyframes dogma-wave-tide {
    from { transform: translateY(5px) scaleY(.985); }
    to { transform: translateY(-4px) scaleY(1.02); }
}

@keyframes dogma-current-flow {
    to { stroke-dashoffset: -104; }
}

@keyframes dogma-current-pulse {
    0%, 100% { opacity: .72; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1.18); }
}

/* Existing Model and Software motion becomes the reserved right-side subject. */
.dogma-wave-hero.model-matrix-hero .model-hero-copy, .dogma-wave-hero.software-system-hero .software-hero-copy {
    width: min(48rem, 54vw);
    margin: 0;
    padding: 0;
}

.dogma-wave-hero.model-matrix-hero .model-hero-copy::before, .dogma-wave-hero.software-system-hero .software-hero-copy::before {
    content: none;
}

.dogma-wave-hero.model-matrix-hero .model-code-field {
    z-index: 1;
    inset: 0 0 0 48%;
    opacity: .42;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000000 22%, #000000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000000 22%, #000000 84%, transparent);
}

.dogma-wave-hero.software-system-hero .software-system-field {
    z-index: 1;
    opacity: .3;
}

.software-hero-visual {
    position: absolute;
    z-index: 3;
    top: 48%;
    right: var(--dogma-hero-gutter);
    width: min(34rem, 43vw);
    transform: translateY(-54%);
}

.software-hero-visual .software-terminal {
    width: 100%;
    height: clamp(14rem, 23vw, 18rem);
}
.software-terminal-logo {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 51%;
    width: clamp(5.4rem, 8vw, 7.6rem);
    height: auto;
    display: block;
    object-fit: contain;
    transform: translate(-50%, -50%);
    opacity: .96;
    filter: drop-shadow(0 .75rem 1.2rem rgba(16, 59, 90, .18));
    animation: software-logo-float 5.8s ease-in-out infinite;
}
@keyframes software-logo-float {
    0%, 100% { transform: translate(-50%, -50%) translateY(2px); }
    50% { transform: translate(-50%, -50%) translateY(-6px); }
}

.software-hero-visual .software-terminal::before {
    content: "> analyse()\A > simulate()\A > optimise()\A > visualise()\A > for a better tomorrow";
    position: absolute;
    inset: 3rem 2.4rem auto;
    color: color-mix(in srgb, var(--dogma-blue) 76%, var(--dogma-ink));
    font: 600 clamp(.68rem, 1vw, .9rem)/1.85 "Fira Code", monospace;
    white-space: pre;
    opacity: .24;
}

.dogma-wave-hero.hp-rebuild-hero::after, .dogma-wave-hero.software-system-hero::after {
    content: none;
}

/* Award keeps its existing copy and page links, but shares the new title field. */
.award-wave-hero > div {
    position: relative;
    z-index: 4;
    width: min(74rem, calc(100% - 3rem));
    margin: 0 auto;
    padding: 0 !important;
}

.award-wave-hero .text-center {
    width: min(43rem, 49vw);
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.award-wave-hero h1, .award-wave-hero h1.dogma-glass-title {
    width: 100%;
}

.award-wave-hero .text-center p {
    max-width: 39rem;
    margin-left: 0;
}











@media (max-width: 900px) {
    .dogma-wave-hero {
        --dogma-hero-gutter: clamp(1.35rem, 5vw, 3rem);
        padding-top: clamp(8rem, 13vh, 9rem);
    }

    .dogma-wave-hero h1, .dogma-wave-hero h1.dogma-glass-title, .dogma-wave-hero .model-hero-copy, .dogma-wave-hero .software-hero-copy, .dogma-wave-hero > .dogma-subpage-lead, .dogma-wave-hero > .hp-lead-quote, .award-wave-hero .text-center {
        width: min(42rem, 72vw);
    }

    .software-hero-visual { right: -5rem; width: min(31rem, 48vw); opacity: .54; }
}

@media (max-width: 620px) {
    .dogma-wave-hero, .dogma-with-index > .dogma-wave-hero, .dogma-wave-hero.model-matrix-hero, .dogma-wave-hero.software-system-hero {
        min-height: 82svh;
        padding: 7.75rem 1.25rem 13rem;
    }

    .dogma-wave-hero h1, .dogma-wave-hero h1.dogma-glass-title, .dogma-wave-hero .model-hero-copy, .dogma-wave-hero .software-hero-copy, .dogma-wave-hero > .dogma-subpage-lead, .dogma-wave-hero > .hp-lead-quote, .award-wave-hero .text-center {
        width: 100%;
    }

    .dogma-wave-hero h1, .dogma-wave-hero h1.dogma-glass-title {
        font-size: clamp(3.1rem, 15vw, 5rem);
        line-height: .96;
    }

    .dogma-hero-waves { right: -16%; left: -16%; height: 13.5rem; }
    .software-hero-visual { display: none; }
    .dogma-wave-hero.model-matrix-hero .model-code-field { left: 58%; opacity: .2; }
    .award-wave-hero > div { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .dogma-wave-contours-back, .dogma-wave-contours-mid, .dogma-wave-fill-layer, .dogma-current-route, .dogma-current-node {
        animation: none !important;
    }
}
}

/* ========================================================================== */
/* Content-page wave lift                                                     */
/* The hero remains a quiet sticky stage while the wave and article canvas    */
/* travel upward together. Home, Education and Team never receive these       */
/* runtime classes, so their existing scrolling remains unchanged.            */
/* ========================================================================== */

:root {
    --dogma-canvas-texture: none;
}



/* One fixed canvas coordinate system prevents a new background from starting
 * at the hero/article/footer boundaries. The Homepage title keeps its own
 * dedicated visual layer above this shared canvas. */
body, #main-scroll, .dogma-rich-page, .dogma-content-page, .dogma-page-frame, .dogma-page-content, .dogma-content-lift > .dogma-snap-container, .members-snap-zone, .members-roster, .dogma-footer {
    background-color: var(--dogma-page) !important;
    background-image: var(--dogma-canvas-texture) !important;
    background-attachment: fixed !important;
    background-position: 0 0 !important;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat !important;
    background-size: auto, auto, auto, auto, cover !important;
}

html.dogma-wave-lift-ready .dogma-tidal-hero {
    background-color: var(--dogma-page) !important;
    background-image: var(--dogma-canvas-texture) !important;
    background-attachment: fixed !important;
    background-position: 0 0 !important;
}

html.dogma-content-scroll.dogma-wave-lift-ready {
    scroll-snap-type: none !important;
    scroll-padding-top: 0;
}

html.dogma-wave-lift-ready .dogma-rich-page.dogma-with-index, html.dogma-wave-lift-ready .dogma-content-page.dogma-with-index {
    overflow: visible !important;
    scroll-snap-type: none !important;
}

html.dogma-wave-lift-ready .dogma-tidal-hero {
    position: sticky !important;
    top: 0;
    z-index: 1;
    margin-bottom: 0;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

.dogma-hero-fade-target {
    will-change: opacity;
    transition: opacity 60ms linear;
}

.dogma-content-lift {
    --dogma-lift-wave-height: clamp(15rem, 32svh, 22rem);
    --dogma-lift-fade-tail: clamp(6.5rem, 11svh, 9rem);
    position: relative;
    z-index: 6;
    width: 100%;
    margin-top: calc(0px - var(--dogma-lift-wave-height));
    isolation: isolate;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

.dogma-content-shore {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(var(--dogma-lift-wave-height) + var(--dogma-lift-fade-tail));
    overflow: hidden;
    pointer-events: none;
}

/* No colour is drawn above or behind the wave. The wave itself remains
 * untouched; its existing ocean blue is extended only from its lower edge. */
.dogma-content-shore::before {
    content: none;
}

.dogma-content-shore::after { content: none; }

.dogma-content-shore > .dogma-tidal-waves {
    top: 0;
    bottom: auto;
    z-index: 2;
    height: var(--dogma-lift-wave-height);
    overflow: visible;
}

/* The same water body now crosses the former container edge. Its colour
 * gathers inside the lower part of the wave, then releases gradually into
 * the canvas below, so there is no separate strip or horizontal seam. */
.dogma-content-shore > .dogma-tidal-waves::after {
    inset: 60% 0 auto;
    z-index: 0;
    height: calc(40% + var(--dogma-lift-fade-tail));
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(152, 202, 237, .045) 18%,
        rgba(99, 174, 228, .14) 35%,
        rgba(47, 139, 204, .23) 49%,
        rgba(72, 157, 218, .17) 64%,
        rgba(132, 191, 233, .09) 79%,
        rgba(192, 222, 244, .035) 91%,
        transparent 100%
    );
}

/* Filled wave surfaces dissolve into the continuing water colour instead of
 * ending on the SVG viewport's flat lower edge. Contour and pulse lines stay
 * crisp and keep their original motion. */
.dogma-content-shore .dogma-tidal-wave-fill {
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, #000000 0%, #000000 66%, rgba(0, 0, 0, .88) 76%, rgba(0, 0, 0, .38) 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000000 0%, #000000 66%, rgba(0, 0, 0, .88) 76%, rgba(0, 0, 0, .38) 91%, transparent 100%);
}

.dogma-content-shore .dogma-tidal-wave-back, .dogma-content-shore .dogma-tidal-wave-mid, .dogma-content-shore .dogma-tidal-wave-pulse {
    z-index: 2;
}

.dogma-content-lift > .dogma-page-frame, .dogma-content-lift > .dogma-snap-container {
    position: relative;
    z-index: 4;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* Award used an isolated 100vh inner scroller. Returning it to normal flow
 * also allows its final section to meet the shared footer correctly. */
.dogma-content-lift > .dogma-snap-container {
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    scroll-padding-top: 0 !important;
}

.dogma-content-lift .dogma-page-frame {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

html.dogma-content-scroll body > .dogma-footer {
    position: relative;
    z-index: 7;
    clear: both;
    width: 100%;
    margin-top: 0;
}

#main-scroll > .dogma-footer {
    width: 100%;
    margin-top: 0;
    scroll-snap-align: end;
    scroll-snap-stop: normal;
}

@media (max-width: 760px) {
    .dogma-content-lift {
        --dogma-lift-wave-height: clamp(11rem, 28svh, 15rem);
        --dogma-lift-fade-tail: clamp(4.5rem, 9svh, 6.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dogma-hero-fade-target { transition: none !important; }
}
