/* K/S 视觉第二版：清晰的黑白底色，让交互本身成为主角。 */
:root {
  --bg: #08090b;
  --bg-soft: #0d0f13;
  --panel: #101216;
  --line: rgba(231, 234, 243, .13);
  --line-strong: rgba(231, 234, 243, .28);
  --text: #f4f4f2;
  --muted: #a7a9b2;
  --faint: #777b87;
  --ice: #a6b9ff;
  --ice-deep: #899ad9;
  --purple: #f4f4f2;
}

body { background: var(--bg); }
.page-grain, .ticker, .hero-grid, .hero::after, .art-orbit, .art-glow, .crystal, .art-label, .art-index { display: none; }
.scroll-progress { height: 1px; box-shadow: none; }
.section-shell, .site-header { width: min(100% - 112px, 1420px); }
.site-header { height: 78px; }
.brand { gap: 10px; }
.brand-avatar { border: 1px solid #454e69; border-radius: 3px; box-shadow: none; }
.brand-name { font-size: 16px; letter-spacing: 0; }
.site-nav a { color: #a8abb3; font-size: 12px; }
.site-nav .nav-contact { min-height: 36px; color: var(--text); border-color: var(--line-strong); border-radius: 0; }
.site-nav .nav-contact:hover { color: var(--bg); background: var(--text); }

.hero { min-height: 790px; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); gap: clamp(28px, 4vw, 70px); padding-top: 120px; padding-bottom: 105px; }
.hero-copy { max-width: 720px; }
.hero-copy > * { animation: hero-enter .75s both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.eyebrow { color: var(--ice); font-size: 10px; }
.signal-dot { width: 5px; height: 5px; box-shadow: none; }
.eyebrow-line { background: var(--line-strong); }
h1 { margin: 34px 0 30px; font-size: clamp(59px, 5.6vw, 94px); line-height: 1.17; font-weight: 640; letter-spacing: -.065em; }
.hero-title-muted { color: var(--text); }
.hero-title-accent { color: var(--ice); text-shadow: none; }
.hero-period { color: var(--text); }
.hero-lead { max-width: 570px; color: #b1b2bb; font-size: 16px; line-height: 1.85; }
.hero-lead strong { color: var(--text); }
.button { min-height: 48px; font-size: 13px; }
.button-primary { color: var(--text); background: transparent; border: 1px solid var(--line-strong); border-radius: 0; }
.button-primary:hover { color: var(--bg); background: var(--text); }
.button-text { color: var(--muted); }
.button-text:hover { color: var(--text); }
.hero-bottom { color: var(--faint); }
.hero-bottom i { background: var(--ice); }
.hero-bottom a { color: var(--muted); }

.hero-art { width: min(100%, 560px); aspect-ratio: 1 / .94; justify-self: end; margin: 0; border: 1px solid var(--line); background: #0a0b0e; transform: none; }
.hero-art::before, .hero-art::after { display: none; }
.art-frame { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 19px 20px; color: #8c91a0; font: 9px/1.5 var(--mono); letter-spacing: .11em; pointer-events: none; }
.art-frame::before, .art-frame::after { content: ""; position: absolute; bottom: 18px; width: 18px; height: 18px; border-bottom: 1px solid #606a86; }
.art-frame::before { left: 19px; border-left: 1px solid #606a86; }
.art-frame::after { right: 19px; border-right: 1px solid #606a86; }
#hero-particles { inset: 9% 2% 14%; width: 96%; height: 77%; mix-blend-mode: normal; }
.morph-button { left: auto; right: 20px; bottom: 16px; min-height: 35px; padding: 5px 2px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #68718a; border-radius: 0; font-size: 10px; transform: none; backdrop-filter: none; }
.morph-button:hover { color: var(--ice); background: transparent; border-color: var(--ice); }
.morph-indicator, .morph-button:hover .morph-indicator { color: var(--ice); }

.focus, .lab, .about { padding-top: 115px; padding-bottom: 120px; }
.section-kicker, .section-number { color: var(--ice); }
.section-heading h2, .about h2, .contact h2 { font-weight: 620; }
.section-heading h2 em, .about h2 em, .contact h2 em { color: var(--text); }
.section-heading > p { color: var(--muted); }
.focus-grid { gap: 28px; margin-top: 58px; }
.focus-card { min-height: 270px; padding: 23px 0 0; border: 0; border-top: 1px solid var(--line-strong); background: transparent; }
.focus-card::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.focus-card:hover::after { transform: scaleX(1); }
.focus-card::before, .focus-symbol { display: none; }
.focus-card:hover { transform: none; border-color: var(--ice); background: transparent; }
.focus-card { display: block; min-height: 0; }
.focus-media { margin: 23px 0 24px; overflow: hidden; aspect-ratio: 1.42; background: #111723; }
.focus-media img { display: block; width: 100%; height: 100%; object-fit: cover; transform: perspective(700px) rotateX(var(--image-tilt-x, 0deg)) rotateY(var(--image-tilt-y, 0deg)) scale(1); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.focus-card:hover .focus-media img { transform: perspective(700px) rotateX(var(--image-tilt-x, 0deg)) rotateY(var(--image-tilt-y, 0deg)) scale(1.055); }
.focus-card:hover .card-arrow { transform: translate(3px, -3px); }
.card-arrow { transition: transform .25s ease; }
.card-top { color: var(--faint); }
.card-label { color: var(--ice); }
.card-bottom h3 { margin: 11px 0 13px; font-size: clamp(30px, 2.4vw, 38px); }
.card-bottom > p:last-child { color: var(--muted); }

.approach { grid-template-columns: .4fr 1fr; padding-top: 115px; padding-bottom: 120px; }
.approach-aside { min-height: 0; }
.approach-graphic { display: none; }
.approach-list li { border-color: var(--line); }
.approach-list strong { color: var(--text); }
.approach-list p { color: var(--muted); }

.studio { padding-top: 115px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.studio-grid { display: grid; grid-template-columns: minmax(250px, .37fr) minmax(0, .63fr); gap: 26px; margin-top: 55px; }
.studio-controls { display: flex; flex-direction: column; min-height: 510px; padding: 34px; border: 1px solid var(--line-strong); background: #0c0e12; }
.studio-control-block + .studio-control-block { margin-top: 37px; }
.studio-control-title { display: block; margin-bottom: 16px; color: var(--faint); font: 11px var(--mono); letter-spacing: .1em; }
.studio-options { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-options button { min-width: 76px; min-height: 40px; padding: 0 13px; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); cursor: pointer; font-size: 13px; transition: color .2s, background .2s, border-color .2s; }
.studio-options button:hover { color: var(--text); border-color: var(--ice); }
.studio-options button[aria-pressed="true"] { color: #08090b; background: var(--ice); border-color: var(--ice); }
.studio-notes { margin-top: auto; padding-top: 40px; }
.studio-notes span { color: var(--faint); font: 11px var(--mono); letter-spacing: .05em; }
.studio-notes strong { color: var(--ice); font-weight: 500; }
.studio-notes p { max-width: 340px; margin: 15px 0 0; color: var(--text); font-size: 17px; line-height: 1.7; }
.studio-disclaimer { margin: 34px 0 0; padding-top: 19px; color: var(--faint); border-top: 1px solid var(--line); font: 10px var(--mono); }
.studio-preview { --pbg: #111b38; --ptext: #f7f8fe; --paccent: #a4b6ff; --psoft: #202d52; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 510px; padding: 27px 31px; overflow: hidden; color: var(--ptext); border: 1px solid #4b567a; background: var(--pbg); transition: color .45s, background .45s, border-color .45s; }
.studio-preview[data-theme="light"] { --pbg: #eff0e9; --ptext: #1b2538; --paccent: #3d568e; --psoft: #d4d9dc; border-color: #a6afbf; }
.studio-preview[data-theme="warm"] { --pbg: #33221e; --ptext: #fff5e9; --paccent: #ffd08d; --psoft: #5a3930; border-color: #866955; }
.preview-top, .preview-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 10px; color: var(--paccent); font: 10px var(--mono); letter-spacing: .08em; }
.preview-top { padding-bottom: 17px; border-bottom: 1px solid currentColor; }
.preview-bottom { margin-top: auto; padding-top: 17px; border-top: 1px solid currentColor; }
.preview-content { position: relative; flex: 1; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 12px; }
.preview-copy { position: relative; z-index: 2; padding: 35px 0; }
.preview-kicker { color: var(--paccent); font: 10px var(--mono); letter-spacing: .12em; }
.preview-copy h3 { margin: 24px 0 20px; font-size: clamp(32px, 3.2vw, 55px); line-height: 1.22; letter-spacing: -.06em; }
.preview-copy p { max-width: 300px; margin: 0 0 31px; opacity: .78; font-size: 14px; line-height: 1.8; }
.preview-cta { display: inline-flex; align-items: center; gap: 24px; padding-bottom: 9px; color: var(--paccent); border-bottom: 1px solid currentColor; font-size: 13px; }
.preview-cta b { font-weight: 400; }
.preview-sculpture { position: relative; width: 100%; aspect-ratio: 1; animation: sculpture-turn 14s ease-in-out infinite alternate; }
.preview-sculpture i { position: absolute; inset: 11%; border: 2px solid var(--paccent); border-radius: 50%; background: linear-gradient(130deg, transparent 54%, var(--psoft)); transform: rotate(-26deg) skewY(-16deg); opacity: .8; }
.preview-sculpture i:nth-child(2) { inset: 23% 4%; transform: rotate(55deg) skewY(12deg); opacity: .62; }
.preview-sculpture i:nth-child(3) { inset: 6% 28%; transform: rotate(100deg) skewY(-12deg); opacity: .46; }
.studio-preview[data-layout="center"] .preview-content { grid-template-columns: 1fr; text-align: center; }
.studio-preview[data-layout="center"] .preview-copy { justify-self: center; }
.studio-preview[data-layout="center"] .preview-copy p { margin-inline: auto; }
.studio-preview[data-layout="center"] .preview-sculpture { position: absolute; width: 43%; right: -8%; bottom: -18%; opacity: .32; }
@keyframes sculpture-turn { from { transform: rotate(-13deg) scale(.96); } to { transform: rotate(14deg) scale(1.04); } }

.lab-panel { margin-top: 55px; border-color: var(--line-strong); background: var(--bg-soft); box-shadow: none; }
.lab-panel::after { display: none; }
.lab-panel-top { color: var(--ice); }
.lab-panel-top > span:last-child, .lab-prefix { color: var(--faint); }
.lab-panel-bottom { border-color: var(--line); }
.lab-tags span { color: var(--muted); border-color: var(--line); }
.idea-button { color: var(--ice); }
.pelican-feature { margin-top: 18px; border-color: var(--line); background: transparent; }
.pelican-overline, .pelican-intro h3 em { color: var(--ice); }
.pelican-controls button { color: var(--text); background: transparent; border-color: var(--line-strong); }
.pelican-controls button:hover, .pelican-controls button[aria-pressed="true"] { color: var(--bg); background: var(--text); }
.pelican-stage { border-color: var(--line); background: #10151b; }
.pelican-stage::before { display: none; }
.stage-status i { box-shadow: none; }

.open-lab-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); gap: 12px 45px; align-items: end; margin: 95px 0 30px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.open-lab-heading > span { grid-column: 1 / -1; color: var(--ice); font: 10px var(--mono); letter-spacing: .13em; }
.open-lab-heading h3 { max-width: 760px; margin: 0; font-size: clamp(32px, 3.4vw, 51px); line-height: 1.25; letter-spacing: -.05em; font-weight: 600; }
.open-lab-heading h3 em { color: var(--ice); font-style: normal; }
.open-lab-heading p { max-width: 330px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.open-lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.open-card { min-width: 0; padding: 23px; border: 1px solid var(--line-strong); background: #0d1017; }
.open-card-top { display: flex; justify-content: space-between; gap: 10px; color: var(--ice); font: 10px var(--mono); letter-spacing: .08em; }
.open-card-top span:last-child { color: var(--faint); }
.open-card-copy { display: grid; grid-template-columns: .8fr 1fr; gap: 20px; align-items: end; margin: 31px 0 22px; }
.open-card-copy h4 { margin: 0; color: var(--text); font-size: clamp(29px, 2.4vw, 39px); line-height: 1.2; letter-spacing: -.055em; font-weight: 600; }
.open-card-copy p { max-width: 260px; margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.physics-stage, .three-stage { position: relative; height: 340px; overflow: hidden; border: 1px solid #35435d; background: #101627; }
.physics-stage { background-image: linear-gradient(#d8e2ff0b 1px, transparent 1px), linear-gradient(90deg, #d8e2ff0b 1px, transparent 1px); background-size: 32px 32px; cursor: grab; }
.physics-stage:active { cursor: grabbing; }
.physics-stage canvas, .three-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.three-stage { cursor: grab; }
.three-stage.is-dragging { cursor: grabbing; }
.stage-hint { position: absolute; left: 17px; bottom: 15px; z-index: 2; color: #a7b8e3; font: 9px var(--mono); letter-spacing: .09em; pointer-events: none; }
.three-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 25px; color: var(--muted); font-size: 13px; text-align: center; }
.three-fallback[hidden] { display: none; }
.open-card-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.open-card-controls button { min-height: 36px; padding: 0 13px; color: var(--text); background: transparent; border: 1px solid #48536a; cursor: pointer; font: 11px var(--mono); transition: background .2s, border-color .2s, color .2s; }
.open-card-controls button:hover, .open-card-controls button[aria-pressed="true"] { color: #101627; background: var(--ice); border-color: var(--ice); }
.open-card-controls button:disabled { opacity: .35; cursor: not-allowed; }
.open-card-credit { margin: 19px 0 0; color: var(--faint); font: 10px var(--mono); line-height: 1.6; }
.open-card-credit a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

.about-portrait { border-color: var(--line-strong); background: #0a1231; }
.about-portrait::after { display: none; }
.about-portrait img { filter: none; }
.about-portrait span { background: #08090bd9; backdrop-filter: none; }
.about-copy p { color: var(--muted); }
.contact { border-color: var(--line); background: var(--bg-soft); }
.contact::before, .contact-glow { display: none; }
.contact-lead { color: var(--muted); }
.contact-row strong { color: var(--text); }
.contact-row button { color: var(--bg); background: var(--text); border-radius: 0; }
.contact-row button:hover { background: var(--ice); }
.toast { color: var(--bg); background: var(--text); border-radius: 0; box-shadow: none; }
.reveal { transform: translateY(18px); transition-duration: .7s; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .section-shell, .site-header { width: min(100% - 72px, 1420px); }
  .hero { grid-template-columns: 1fr .9fr; }
  h1 { font-size: clamp(55px, 6.2vw, 78px); }
  .hero-art { margin: 0; }
  .focus-card { min-height: 280px; }
  .studio-grid { grid-template-columns: .4fr .6fr; }
  .studio-controls { padding: 25px; }
}
@media (max-width: 800px) {
  .section-shell, .site-header { width: min(100% - 48px, 1420px); }
  .site-header { height: 72px; }
  .menu-toggle { border-radius: 0; background: var(--bg); }
  .site-nav { background: var(--bg); }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 52px; padding-top: 155px; padding-bottom: 92px; }
  h1 { font-size: clamp(55px, 10vw, 80px); }
  .hero-art { position: relative; top: auto; right: auto; width: min(100%, 620px); aspect-ratio: 1 / .8; margin: 0; opacity: 1; }
  .hero-bottom { bottom: 23px; }
  .focus-grid { gap: 25px; }
  .focus-card { min-height: 200px; }
  .focus-media { aspect-ratio: 1.6; }
  .approach { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-controls { min-height: 0; }
  .studio-notes { padding-top: 38px; }
  .studio-preview { min-height: 470px; }
  .open-lab-heading { grid-template-columns: 1fr; }
  .open-lab-heading > span { grid-column: 1; }
  .open-lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .section-shell, .site-header { width: min(100% - 36px, 1420px); }
  .hero { gap: 36px; padding-top: 132px; padding-bottom: 82px; }
  .eyebrow { font-size: 9px; }
  h1 { margin: 26px 0 24px; font-size: clamp(45px, 11vw, 63px); line-height: 1.19; }
  .hero-lead { font-size: 15px; }
  .hero-art { width: 100%; aspect-ratio: 1 / .85; }
  #hero-particles { opacity: 1 !important; }
  .art-frame { padding: 13px; font-size: 7px; }
  .art-frame::before { left: 13px; }
  .art-frame::after { right: 13px; }
  .morph-button { left: auto; right: 14px; bottom: 11px; opacity: 1; transform: none; }
  .focus, .lab, .about { padding-top: 90px; padding-bottom: 95px; }
  .focus-card { min-height: 190px; }
  .focus-media { aspect-ratio: 1.55; }
  .section-heading h2, .about h2 { font-size: clamp(43px, 10vw, 58px); }
  .studio { padding-top: 90px; padding-bottom: 95px; }
  .studio-controls { padding: 22px; }
  .studio-preview { min-height: 425px; padding: 18px; }
  .preview-top, .preview-bottom { font-size: 8px; }
  .preview-copy h3 { font-size: clamp(29px, 7vw, 40px); }
  .preview-content { grid-template-columns: 1fr .45fr; }
  .preview-sculpture { width: 170%; margin-left: -50%; }
  .pelican-feature { padding: 22px; }
  .open-lab-heading { margin-top: 76px; }
  .open-card { padding: 17px; }
  .open-card-copy { grid-template-columns: 1fr; gap: 9px; }
  .open-card-copy h4 br { display: none; }
  .physics-stage, .three-stage { height: 295px; }
  .contact { background: var(--bg-soft); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-copy > * { animation: none; }
  .preview-sculpture { animation: none; }
}
