:root {
  --paper: #f3f6f7;
  --paper-2: #e7edef;
  --ink: #101820;
  --muted: #5c6a72;
  --line: #cbd5d9;
  --blue: #3559e0;
  --cyan: #63d7e6;
  --orange: #ff7043;
  --lime: #c6ff3e;
  --white: #ffffff;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --display: "Arial Narrow", "Aptos Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { color: var(--white); background: var(--blue); }
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.progress { position: fixed; inset: 0 0 auto; z-index: 90; height: 3px; pointer-events: none; }
.progress span { display: block; width: 0; height: 100%; background: var(--orange); }

.site-header,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.site-header {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 750; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--blue);
  color: white;
  background: var(--blue);
  box-shadow: 3px 3px 0 rgb(53 89 224 / .2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .brand-mark { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--cyan); }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-spark { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.brand-mark circle { fill: var(--cyan); stroke: var(--blue); stroke-width: 1.5; }
.main-nav { display: flex; gap: clamp(22px, 4vw, 50px); font-size: 14px; }
.main-nav a, .header-link { position: relative; padding-block: 8px; }
.main-nav a::after, .header-link::after, .text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.main-nav a:hover::after, .header-link:hover::after, .text-link:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.header-link { font: 650 12px/1 var(--mono); letter-spacing: .02em; }
.language-switch { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: #8b989f; background: rgb(255 255 255 / .55); font: 700 10px/1 var(--mono); letter-spacing: .04em; }
.language-switch > span { color: var(--line); }
.language-switch button { padding: 7px 8px; border: 0; border-radius: var(--radius-pill); color: inherit; background: transparent; cursor: pointer; transition: color .2s ease, background .2s ease; }
.language-switch button:hover, .language-switch button[aria-pressed="true"] { color: white; background: var(--blue); }
.language-switch button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
html[lang="en"] .hero h1 {
  max-width: 820px;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(52px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.05em;
  white-space: nowrap;
}
html[lang="en"] .section-heading h2,
html[lang="en"] .about-title h2,
html[lang="en"] .contact h2,
html[lang="en"] .project-copy h3,
html[lang="en"] .signal-intro h3,
html[lang="en"] .about-aside blockquote {
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.05em;
}
html[lang="en"] .section-heading h2 { font-size: clamp(42px, 5.2vw, 68px); }
html[lang="en"] .about-title h2,
html[lang="en"] .contact h2 { font-size: clamp(46px, 5.8vw, 76px); }
html[lang="en"] .project-copy h3 { font-size: clamp(32px, 3.3vw, 48px); }
html[lang="en"] .signal-intro h3 { max-width: 560px; font-size: clamp(38px, 4.1vw, 58px); }

.skip-link,
.button,
.node,
.hero-note,
.skill-row span { border-radius: var(--radius-sm); }

.brand-mark { border-radius: var(--radius-sm); }
.hero-stage,
.project-card,
.signal-console,
.signal-stats,
.aistat-preview,
.wave-preview { border-radius: var(--radius-lg); }
.hero-stage,
.signal-stats,
.signal-console { overflow: hidden; }
.project-card::before,
.project-card::after { border-radius: inherit; }
.signal-stats span,
.metric,
.tier-preview .tier,
.tier-preview i { border-radius: var(--radius-sm); }
.contact-links { display: grid; gap: 14px; border-top: 0; }
.contact-links a { border: 1px solid var(--line); border-radius: var(--radius-lg); }

main { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }
.hero {
  min-height: calc(100vh - 82px);
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  grid-template-rows: 1fr auto;
  gap: 20px 40px;
  padding-block: clamp(66px, 10vh, 120px) 28px;
  border-bottom: 1px solid var(--line);
}
.hero-copy { align-self: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker, .project-index, .aside-label {
  margin: 0;
  color: var(--muted);
  font: 650 11px/1.4 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: clamp(24px, 4vh, 44px); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgb(255 112 67 / .12); }
.hero h1, .section-heading h2, .about h2, .contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.065em;
}
.hero h1 { font-size: clamp(56px, 7.2vw, 104px); line-height: .96; max-width: 760px; }
.hero h1 span { color: var(--blue); }
html[lang="en"] .hero h1 br,
html[lang="en"] .hero h1 span { white-space: nowrap; }
.hero-intro { max-width: 600px; margin: clamp(30px, 5vh, 54px) 0 0; color: #3f4c53; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 15px 18px; min-width: 158px; font-weight: 700; font-size: 14px; transition: transform .25s ease, background .25s ease; }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover { transform: translateY(-3px); background: var(--blue); }
.text-link { position: relative; font-weight: 700; font-size: 14px; padding-block: 8px; }

.hero-stage { align-self: stretch; min-height: 520px; position: relative; border-left: 1px solid var(--line); overflow: hidden; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .48;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.signal-map { position: absolute; inset: 0; }
.signal-map svg { width: 100%; height: 100%; overflow: visible; }
.track { fill: none; stroke-width: 2; }
.track-base { stroke: #9ba9af; stroke-dasharray: 3 7; }
.track-live { stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100 1000; animation: signal 4s linear infinite; filter: drop-shadow(0 0 6px rgb(53 89 224 / .4)); }
.node { position: absolute; padding: 8px 10px; border: 1px solid var(--line); background: rgb(243 246 247 / .9); font: 650 10px/1 var(--mono); letter-spacing: .08em; }
.node b { color: var(--blue); margin-right: 5px; }
.node-one { left: 5%; top: 71%; }
.node-two { left: 37%; top: 21%; }
.node-three { right: 2%; top: 15%; }
.pulse { position: absolute; width: 15px; height: 15px; border: 4px solid var(--paper); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.pulse-one { left: 18%; top: 54%; }
.pulse-two { left: 56%; top: 52%; }
.pulse-three { right: 14%; top: 20%; }
.hero-note { position: absolute; right: 0; bottom: 24px; width: min(84%, 340px); padding: 20px; color: white; background: var(--blue); }
.hero-note span { display: block; margin-bottom: 12px; color: #bfcbff; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-note strong { font-size: 17px; }
.hero-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font: 600 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
@keyframes signal { to { stroke-dashoffset: -1100; } }

.section { padding-block: clamp(90px, 12vw, 160px); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-kicker { color: var(--blue); margin-bottom: 15px; }
.section-heading h2 { font-size: clamp(42px, 6vw, 76px); line-height: .96; }
.section-heading > p { max-width: 460px; justify-self: end; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.project-card { position: relative; min-height: 520px; padding: clamp(24px, 3vw, 38px); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 18px 46px rgb(16 24 32 / .12); }
.project-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.project-topline { display: flex; justify-content: space-between; position: relative; z-index: 3; }
.project-arrow { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid currentColor; border-radius: 50%; transition: transform .25s ease, color .25s ease, background .25s ease; }
.project-card:hover .project-arrow { transform: rotate(45deg); }
.project-copy { position: absolute; z-index: 2; left: clamp(24px, 3vw, 38px); right: clamp(24px, 3vw, 38px); bottom: clamp(24px, 3vw, 38px); }
.project-label { margin: 0 0 10px; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.project-copy h3 { max-width: 690px; margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 56px); line-height: .98; letter-spacing: -.05em; }
.project-copy > p:last-child { max-width: 580px; margin: 18px 0 0; line-height: 1.65; opacity: .75; }
.project-signal {
  isolation: isolate;
  grid-column: 1 / -1;
  min-height: 630px;
  padding-bottom: 76px;
  color: white;
  background: #101d4d;
}
.project-signal::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgb(99 215 230 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(99 215 230 / .07) 1px, transparent 1px),
    radial-gradient(circle at 75% 35%, rgb(53 89 224 / .34), transparent 38%),
    linear-gradient(135deg, #101d4d, #15275f 58%, #0d173d);
  background-size: 38px 38px, 38px 38px, auto, auto;
}
.project-signal::after {
  content: "INTELLIGENCE / NOT INFORMATION";
  position: absolute;
  z-index: -1;
  left: 38px;
  bottom: 42px;
  color: rgb(255 255 255 / .045);
  font: 800 clamp(48px, 7.8vw, 106px)/.8 var(--display);
  letter-spacing: -.055em;
  white-space: nowrap;
}
.project-signal .project-index { color: #8fa8df; }
.project-signal .project-arrow { color: var(--cyan); }
.signal-layout { position: absolute; inset: 92px clamp(24px, 3vw, 38px) 76px; display: grid; grid-template-columns: minmax(280px, .76fr) minmax(480px, 1.24fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.signal-intro { position: relative; z-index: 2; }
.signal-intro .project-label { display: flex; align-items: center; gap: 9px; color: var(--cyan); }
.signal-intro .project-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgb(255 112 67 / .13); }
.signal-intro h3 { max-width: 520px; margin: 18px 0 0; font-family: var(--display); font-size: clamp(40px, 4.6vw, 64px); line-height: .94; letter-spacing: -.055em; }
.signal-intro > p:last-of-type { max-width: 510px; margin: 24px 0 0; color: #b9c6e7; font-size: 15px; line-height: 1.75; }
.signal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 34px; border: 1px solid rgb(255 255 255 / .13); background: rgb(255 255 255 / .13); }
.signal-stats span { display: grid; gap: 7px; padding: 15px 12px; background: #142352; }
.signal-stats b { color: white; font: 700 22px/1 var(--mono); }
.signal-stats small { color: #8196c7; font: 650 7px/1.2 var(--mono); letter-spacing: .08em; }
.signal-console { position: relative; z-index: 2; min-width: 0; border: 1px solid rgb(122 159 240 / .35); color: #d9e2f8; background: rgb(8 17 49 / .84); box-shadow: 20px 24px 0 rgb(4 10 31 / .2); transition: transform .35s ease, border-color .35s ease; }
.project-signal:hover .signal-console { transform: translateY(-6px); border-color: rgb(99 215 230 / .65); }
.console-head, .console-foot { display: flex; justify-content: space-between; gap: 18px; padding: 14px 17px; color: #7990c4; font: 650 8px/1 var(--mono); letter-spacing: .09em; }
.console-head { border-bottom: 1px solid rgb(122 159 240 / .22); }
.console-head span:first-child { color: #c7d4f2; }
.console-head i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.console-main { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 310px; }
.trend-chart { position: relative; min-width: 0; padding: 20px 16px 17px; border-right: 1px solid rgb(122 159 240 / .22); overflow: hidden; background-image: linear-gradient(rgb(99 215 230 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(99 215 230 / .07) 1px, transparent 1px); background-size: 32px 32px; }
.chart-label { display: flex; justify-content: space-between; position: relative; z-index: 2; color: #8298c9; font: 650 8px/1 var(--mono); letter-spacing: .08em; }
.chart-label b { color: var(--cyan); font-size: 11px; }
.trend-chart svg { position: absolute; left: 0; right: 0; bottom: 25px; width: 100%; height: 72%; overflow: visible; }
.chart-area { fill: url(#signalFill); }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 7px rgb(99 215 230 / .52)); }
.chart-now { position: absolute; right: 15px; bottom: 12px; color: var(--orange); font: 700 8px/1 var(--mono); }
.signal-feed { list-style: none; margin: 0; padding: 0 17px; }
.signal-feed li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; min-height: 94px; border-bottom: 1px solid rgb(122 159 240 / .18); }
.signal-feed li:last-child { border-bottom: 0; }
.signal-feed b, .signal-feed em { font: 700 10px/1 var(--mono); font-style: normal; }
.signal-feed b { color: #6881b9; }
.signal-feed em { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgb(99 215 230 / .36); border-radius: 50%; color: var(--cyan); }
.signal-feed span { display: grid; gap: 8px; min-width: 0; }
.signal-feed strong { overflow: hidden; color: #eef3ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.signal-feed small { color: #6f86ba; font: 600 7px/1 var(--mono); letter-spacing: .06em; }
.console-foot { border-top: 1px solid rgb(122 159 240 / .22); }
.console-foot span:first-child { color: var(--cyan); }
.signal-ticker { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; height: 38px; padding-inline: 26px; border-top: 1px solid rgb(122 159 240 / .24); color: #6f86ba; background: rgb(6 13 38 / .62); font: 650 8px/1 var(--mono); letter-spacing: .1em; }
.signal-ticker i { width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }
.project-rank { color: #f0ede6; background: #0b0b0c; }
.project-rank .project-index { color: #888783; }
.project-rank .project-arrow { color: var(--lime); }
.tier-preview { position: absolute; top: 105px; left: 12%; right: -8%; display: grid; grid-template-columns: 54px repeat(3, 64px); grid-auto-rows: 54px; gap: 8px; align-items: center; transform: rotate(-3deg); opacity: .92; }
.tier-preview .tier { align-self: stretch; display: grid; place-items: center; color: #0b0b0c; font: 900 19px/1 var(--mono); }
.tier-s { background: #ff7f7f; }
.tier-a { background: #ffbf7f; }
.tier-b { background: #ffdf7f; }
.tier-preview i { width: 48px; height: 48px; border-radius: 8px; background: #242429; border: 1px solid #38383e; }
.project-aistat { color: white; background: #172836; }
.project-aistat .project-index { color: #8da3b1; }
.aistat-preview { position: absolute; top: 94px; left: 12%; right: 12%; display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 15px; border: 1px solid rgb(255 255 255 / .14); border-radius: 18px; background: rgb(255 255 255 / .08); backdrop-filter: blur(14px); }
.mac-pill { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / .1); font: 600 10px/1 var(--mono); }
.mac-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.mac-pill em { margin-left: auto; color: var(--cyan); font-style: normal; }
.usage-ring { grid-row: span 2; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--cyan) 0 68%, #425461 68%); }
.usage-ring::before { content: ""; position: absolute; width: 69px; height: 69px; border-radius: 50%; background: #223542; }
.usage-ring span { position: relative; font: 700 22px/1 var(--mono); }
.usage-ring small { font-size: 10px; }
.metric { padding: 10px 12px; border-radius: 8px; background: rgb(255 255 255 / .07); }
.metric span { display: block; margin-bottom: 7px; color: #879aa6; font: 600 8px/1 var(--mono); letter-spacing: .1em; }
.metric b { font-size: 13px; }
.project-listening { grid-column: 1 / -1; min-height: 470px; color: #163442; background: #d8f3f5; }
.project-listening .project-copy { right: 48%; }
.wave-preview { position: absolute; right: 4%; top: 22%; width: 41%; height: 170px; display: flex; align-items: center; gap: clamp(4px, .8vw, 10px); padding: 24px; border-radius: 80px; background: #eefafb; }
.wave-preview span { flex: 1; height: var(--h); border-radius: 20px; background: var(--blue); transform-origin: center; animation: wave 1.8s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.02); }
@keyframes wave { to { transform: scaleY(.55); opacity: .65; } }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.about-title h2, .contact h2 { font-size: clamp(48px, 7vw, 88px); line-height: .94; }
.about-title h2 span, .contact h2 span { color: var(--blue); }
.about-body { padding-top: 28px; }
.about-body p { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.about-body .about-lead { color: var(--ink); font-size: clamp(20px, 2vw, 26px); line-height: 1.55; }
.skill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 38px; }
.skill-row span { padding: 9px 12px; border: 1px solid var(--line); font: 600 10px/1 var(--mono); letter-spacing: .04em; }
.about-aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr auto; gap: 40px; align-items: end; margin-top: 25px; padding: 36px 0 0; border-top: 1px solid var(--line); }
.about-aside blockquote { margin: 0; font-family: var(--display); font-size: clamp(30px, 4vw, 48px); font-weight: 750; line-height: 1.1; letter-spacing: -.04em; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.contact-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 460px; justify-self: end; align-self: center; }
.contact-links a {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--blue);
  background: transparent;
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.contact-links a:hover {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 5px 5px 0 rgb(53 89 224 / .14);
  transform: translate(-3px, -3px);
}
.contact-links a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.contact-links svg { display: block; width: clamp(28px, 3vw, 38px); height: auto; overflow: visible; }
.contact-links rect,
.contact-links path { stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.contact-links a:nth-child(n+2) path { stroke: none; fill: currentColor; }
.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); font: 600 10px/1.4 var(--mono); letter-spacing: .05em; }
.site-footer > span { justify-self: end; }
.site-footer .brand { color: var(--ink); font-family: var(--body); font-size: 14px; }
.back-to-top {
  position: fixed;
  z-index: 80;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  display: grid;
  width: 54px;
  height: 54px;
  padding: 7px 0 6px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 50%;
  color: white;
  background: var(--ink);
  box-shadow: 0 10px 30px rgb(16 24 32 / .2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--blue); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.back-to-top span { font: 500 20px/.8 var(--mono); }
.back-to-top small { font: 700 7px/1 var(--mono); letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 74px; }
  .hero-stage { min-height: 420px; border-left: 0; border-top: 1px solid var(--line); }
  .hero-meta { gap: 18px; flex-wrap: wrap; }
  .section-heading, .about, .contact { grid-template-columns: 1fr; }
  .section-heading > p { justify-self: start; }
  .project-grid { grid-template-columns: 1fr; }
  .project-signal, .project-listening { grid-column: auto; }
  .project-listening .project-copy { right: clamp(24px, 3vw, 38px); }
  .project-signal { min-height: 820px; }
  .signal-layout { grid-template-columns: 1fr; gap: 34px; align-content: start; }
  .signal-intro > p:last-of-type { max-width: 620px; }
  .signal-console { width: 100%; }
  .project-listening { padding-bottom: 250px; }
  .wave-preview { top: auto; bottom: 32px; width: 50%; opacity: .5; }
  .about-aside { grid-template-columns: 1fr; align-items: start; }
  .contact { align-items: start; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .site-header { position: relative; height: 70px; }
  .header-actions { position: absolute; top: 50%; right: var(--pad); gap: 0; transform: translateY(-50%); }
  .header-link { display: none; }
  .language-switch { gap: 5px; }
  .language-switch button { padding-inline: 3px; }
  .brand > span:last-child { font-size: 14px; }
  .hero { min-height: auto; padding-top: 66px; }
  .hero-copy { min-width: 0; overflow: hidden; }
  .hero h1 { font-size: clamp(48px, 15.5vw, 66px); line-height: .88; letter-spacing: -.075em; }
  html[lang="en"] .hero h1 { font-size: clamp(40px, 11.5vw, 52px); line-height: .98; letter-spacing: -.045em; white-space: normal; }
  .hero-intro { max-width: 100%; font-size: 15px; line-height: 1.72; overflow-wrap: anywhere; word-break: break-word; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .hero-stage { min-height: 340px; }
  .node-two { left: 30%; }
  .hero-meta { display: grid; }
  .section { padding-block: 86px; }
  .section-heading { gap: 24px; margin-bottom: 34px; }
  .project-card { min-height: 500px; }
  .project-signal { min-height: 910px; padding-bottom: 64px; }
  .project-signal::after { display: none; }
  .signal-layout { inset: 82px 20px 58px; gap: 26px; }
  .signal-intro h3 { font-size: 39px; }
  html[lang="en"] .signal-intro h3 { font-size: clamp(34px, 10.5vw, 42px); }
  .signal-intro > p:last-of-type { margin-top: 18px; font-size: 14px; }
  .signal-stats { margin-top: 24px; }
  .signal-stats span { padding: 12px 8px; }
  .signal-stats b { font-size: 18px; }
  .signal-stats small { font-size: 6px; }
  .console-head span:last-child, .console-foot span:last-child { display: none; }
  .console-main { grid-template-columns: 1fr; }
  .trend-chart { min-height: 205px; border-right: 0; border-bottom: 1px solid rgb(122 159 240 / .22); }
  .signal-feed li { min-height: 76px; }
  .signal-ticker { justify-content: space-between; padding-inline: 16px; }
  .signal-ticker span:nth-of-type(n+4), .signal-ticker i:nth-of-type(n+3) { display: none; }
  .back-to-top { width: 48px; height: 48px; }
  .project-copy h3 { font-size: 38px; }
  html[lang="en"] .project-copy h3 { font-size: clamp(31px, 9.5vw, 38px); }
  .project-listening { min-height: 490px; }
  .wave-preview { left: 24px; right: 24px; width: auto; opacity: .45; }
  .about { gap: 38px; }
  .contact { gap: 44px; }
  .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; justify-self: start; }
  .contact-links svg { width: 32px; }
  .site-footer { grid-template-columns: 1fr auto; padding-block: 30px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
