﻿html:has(.atlas), body:has(.atlas), body:has(.atlas) > .body { overflow: visible; background: #080b18; }
html:has(.atlas) { scroll-behavior: smooth; }
body:has(.atlas) > .body { overflow-x: clip; }
body:has(.atlas) .ty-header { background: rgba(9,12,25,.94); border-color: #303342; }
body:has(.atlas) .ty-header-inner { max-width: 1680px; padding-inline: clamp(20px,5vw,90px); }
body:has(.atlas) .ty-cta { background: #d5f88b; border-color: #d5f88b; color: #101820 !important; }
.atlas { --lime: #d1fb86; --ink: #f2f3f9; --pad: clamp(24px,6.5vw,125px); color: var(--ink); background: #080b18; font-family: "Inter","Microsoft JhengHei",sans-serif; }
.atlas * { box-sizing: border-box; }
.atlas h1,.atlas h2,.atlas h3,.atlas p,.atlas figure { margin: 0; }
.atlas-story { position: relative; isolation: isolate; }
.atlas-stage { height: 100vh; height: 100svh; position: sticky; top: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 72% 49%,#212751 0%,#10142d 35%,#090c1c 66%,#080b18 92%); }
.atlas-stage:before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(#848fab .8px,transparent 1px); background-size: 27px 27px; mask-image: linear-gradient(95deg,transparent,#000); }
.atlas-stage canvas { display: block; width: 100%; height: 100%; position: relative; }
.atlas-chapter { min-height: 100vh; min-height: 100svh; position: relative; display: flex; align-items: center; padding: 72px var(--pad); scroll-margin-top: 40px; }
.atlas-opening { margin-top: -100vh; margin-top: -100svh; min-height: calc(100svh - 68px); }
.atlas-wrap { width: min(43%,670px); position: relative; }
.atlas .atlas-kicker,.atlas small,.atlas-strip,.atlas-legend,.atlas-tags { font: 500 .75rem/1.5 "IBM Plex Mono",Consolas,monospace; letter-spacing: .12em; }
.atlas .atlas-kicker { display: flex; align-items: center; gap: 12px; color: #d6d9ec; margin-bottom: 27px; }
.atlas-kicker i { display: inline-block; width: 25px; height: 8px; background: repeating-linear-gradient(113deg,transparent 0 3px,var(--lime) 3px 5px); }
.atlas-kicker span,.atlas-strip em { color: #8188a7; font-style: normal; }
.atlas h1,.atlas h2 { font-weight: 800; color: var(--ink); text-transform: none; letter-spacing: -.06em; }
.atlas h1 { font-size: clamp(4.2rem,6.6vw,8rem); line-height: 1.12; }
.atlas h1 span { display: block; color: var(--lime); }
.atlas h2 { font-size: clamp(3rem,4.3vw,5.2rem); line-height: 1.18; }
.atlas h2 strong { color: #b2bdff; font-weight: inherit; }
.atlas p { color: #bcc2d5; font-size: 1.02rem; line-height: 1.9; letter-spacing: .035em; }
.atlas-wrap p { max-width: 27em; margin: 25px 0 30px; }
.atlas-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.atlas a.atlas-button { display: inline-flex; padding: 13px 22px; border-radius: 3px; font-weight: 750; background: var(--lime); color: #111725 !important; text-decoration: none; }
.atlas a.atlas-button:hover { background: #e4ffb4; }
.atlas a.atlas-link { color: #e1e4ee !important; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid #75819d; text-decoration: none; }
.atlas a.atlas-link:hover { border-color: var(--lime); color: var(--lime) !important; }
.atlas-legend { position: absolute; right: var(--pad); bottom: 16%; color: #c5cbe0; font-size: .8rem; display: grid; gap: 3px; }
.atlas-legend span { color: #bdc6ff; font-size: .75rem; }
.atlas-legend b { display: inline-block; vertical-align: middle; width: 22px; height: 1px; background: #a7b2f5; margin-right: 6px; }
.atlas-strip { position: absolute; bottom: 0; inset-inline: var(--pad); border-top: 1px solid #ffffff30; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; color: #b6bbd0; }
.atlas-strip a { color: inherit !important; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.atlas-strip i { width: 12px; height: 18px; border-radius: 9px; border: 1px solid #939bb8; position: relative; }
.atlas-strip i:after { content: ""; position: absolute; top: 3px; left: 4px; height: 5px; border-left: 2px solid var(--lime); }
.atlas-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0 0 24px; }
.atlas-tags li { border: 1px solid #424861; padding: 5px 9px; color: #c9d3ff; }
.atlas-work,.atlas-contact { position: relative; padding: clamp(70px,9vw,150px) var(--pad); }
.atlas-work { background: linear-gradient(#090c19,#111629); }
.atlas-wide { max-width: 1560px; margin: auto; }
.atlas-work-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.atlas-projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,2vw,40px); }
.atlas-projects a { text-decoration: none !important; }
.atlas-projects img.paper-overview { object-fit: contain; background: #1e302f; }
.atlas-projects figure { overflow: hidden; aspect-ratio: 1.56; background: #1b2234; margin-bottom: 20px; }
.atlas-projects img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.atlas-projects a:hover img { transform: scale(1.035); }
.atlas small { color: var(--lime); }
.atlas h3 { color: var(--ink); font-size: clamp(1.15rem,1.5vw,1.7rem); line-height: 1.5; margin: 7px 0; letter-spacing: -.02em; }
.atlas-contact { border-top: 1px solid #353a4c; background: radial-gradient(ellipse at 80% 100%,#2e3564,#111629 65%); }
.atlas-contact .atlas-button { margin-top: 30px; }
.atlas a:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
@media(max-width: 760px) {
    .atlas { --pad: clamp(20px,6vw,38px); }
    .atlas-chapter { min-height: max(770px,100svh); display: block; padding-top: 43px; }
    .atlas-opening { min-height: max(710px,calc(100svh - 65px)); }
    .atlas-wrap { width: 100%; }
    .atlas h1 { font-size: clamp(3rem,11.4vw,5rem); line-height: 1.12; }
    .atlas h2 { font-size: clamp(2.4rem,8.2vw,4rem); }
    .atlas .atlas-kicker { margin-bottom: 15px; }
    .atlas-wrap p { margin: 16px 0 19px; line-height: 1.65; max-width: 35em; }
    .atlas-actions { gap: 18px; }
    .atlas a.atlas-button { padding: 10px 15px; }
    .atlas-legend { bottom: 10%; }
    .atlas-strip span { display: none; }
    .atlas-strip { padding-block: 12px; }
    .atlas-tags { margin-bottom: 15px; }
    .atlas-work-head { display: grid; justify-content: start; justify-items: start; }
    .atlas-projects { grid-template-columns: 1fr; gap: 40px; }
}
@media(prefers-reduced-motion: reduce) {
    html:has(.atlas) { scroll-behavior: auto; }
    .atlas-projects img { transition: none; }
}

.factory-scene { position:absolute; width:52%; right:2.5%; top:50%; translate:0 -50%; opacity:0; }
.factory-scene svg { display:block; width:100%; overflow:visible; filter:drop-shadow(0 18px 22px #03061180); }
.factory-scene figcaption { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px 16px; color:#dce1ef; font:500 .85rem/1.5 "Microsoft JhengHei",sans-serif; }
.factory-scene figcaption > span:first-child { color:#b8c1d9; padding-right:12px; border-right:1px solid #56617c; }
.factory-key { display:inline-flex; align-items:center; gap:6px; opacity:.64; }
.factory-key:before { content:""; width:8px; height:3px; background:var(--tone); }
.factory-key.edge { --tone:#67eee0; }
.factory-key.ai { --tone:#ac9aff; }
.factory-key.systems { --tone:#c9ed87; }
.factory-scene[data-focus=edge] .edge,.factory-scene[data-focus=ai] .ai,.factory-scene[data-focus=systems] .systems { opacity:1; color:var(--tone); }
.factory-flow { animation:factory-transmit 2.2s linear infinite; }
.factory-parcel { animation:factory-carry 3.3s linear infinite; }
.factory-scan { animation:factory-expose 1.65s ease-in-out infinite; }
.factory-led { animation:factory-expose 1.4s steps(3,end) infinite alternate; }
.factory-check { stroke-dasharray:24; animation:factory-ack 3.3s ease infinite; }
.factory-scene:not(.is-running) * { animation-play-state:paused; }
@keyframes factory-transmit { to { stroke-dashoffset:-40; } }
@keyframes factory-carry { 0% { opacity:0; transform:translate(-12px,-6px); } 12%,85% { opacity:1; } 100% { opacity:0; transform:translate(31px,15.5px); } }
@keyframes factory-expose { 50% { opacity:.25; } }
@keyframes factory-ack { 0%,18% { stroke-dashoffset:24; } 55%,100% { stroke-dashoffset:0; } }
@media(max-width:760px) {
    .factory-scene { width:98%; right:1%; top:72%; }
    .factory-labels { font-size:22px; }
    .factory-scene figcaption { gap:6px 13px; font-size:.8rem; }
    .factory-scene figcaption > span:first-child { width:100%; padding:0; border:0; text-align:center; }
    .atlas-chapter:not(.atlas-opening) .atlas-wrap { background:linear-gradient(#0a0d1ff2 85%,transparent); padding-bottom:12px; }
}
@media(prefers-reduced-motion:reduce) {
    .factory-scene * { animation:none !important; }
}
.factory-inline { display:none; }
@media(max-width:760px) and (max-height:740px) {
    .factory-scene { visibility:hidden; }
    .factory-inline { display:block; width:100%; margin:28px auto 0; }
    .atlas-chapter:not(.atlas-opening) { min-height:100svh; padding-top:60px; padding-bottom:65px; }
    .atlas-chapter:not(.atlas-opening) .atlas-wrap { background:none; }
}
@media(prefers-reduced-motion:reduce) {
    .factory-inline * { animation:none !important; }
}
