@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #05060a;
  --surface: #0d1018;
  --text: #f3f5fc;
  --secondary: #b4bdcf;
  --muted: #919db3;
  --ice: #bed0ff;
  --line: #a2b5e32d;
  --font: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: max(6.5vw, calc((100vw - 1400px) / 2));
  --ease: cubic-bezier(0.2, 0.72, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
::selection {
  color: #101425;
  background: #ced9ff;
}
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.section-shell,
.site-header {
  padding-inline: var(--gutter);
}
.mono,
.eyebrow {
  font-family: var(--mono);
}
.eyebrow,
.hero-eyebrow {
  color: #aab9d7;
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.16em;
}
.accent-text {
  color: var(--ice);
}
.subtle {
  color: #a5b0c8;
}
.status-dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #afc5ff;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  transition: background 0.2s;
}
.icon-button:hover {
  background: #ffffff12;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 20;
  background: var(--ice);
  color: var(--bg);
  padding: 10px 20px;
}
.skip-link:focus {
  top: 12px;
}

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 4;
  background: var(--bg);
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: var(--gutter);
  height: 1px;
  background: var(--line);
}
.brand,
.main-nav,
.header-actions,
.header-cta {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  margin-right: auto;
  font-size: 20px;
  font-weight: 610;
  letter-spacing: 0.06em;
}
.brand-mark {
  width: 37px;
  height: 37px;
}
.main-nav {
  gap: clamp(20px, 2.7vw, 46px);
}
.main-nav a,
.header-cta {
  font-size: 14px;
}
.main-nav a {
  color: var(--secondary);
  transition: color 0.2s;
}
.main-nav a:hover {
  color: white;
}
.header-actions {
  gap: 8px;
  margin-left: clamp(22px, 3.3vw, 52px);
}
.header-cta {
  border: 1px solid #404659;
  border-radius: 100px;
  padding: 7px 15px;
  gap: 8px;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.header-cta:hover,
.film-button:hover {
  background: #1b2232;
  border-color: #7e8eb0;
}
.header-cta .icon {
  width: 15px;
  height: 15px;
}
.menu-toggle {
  display: none;
}

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  grid-template-columns: 1.02fr 1fr;
  grid-template-rows: 1fr auto;
  min-height: clamp(590px, calc(92svh - 78px), 880px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 76% 49%, #29386b37, transparent 43%),
    radial-gradient(ellipse at 34% 110%, #171e371c, transparent 66%);
}
.hero-content {
  padding-block: clamp(52px, 7vh, 100px);
  z-index: 1;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #c7d4ef;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, #5a6896, #cfdcfc);
}
.hero h1 {
  margin-top: 24px;
  font-weight: 580;
  font-size: clamp(52px, 5.65vw, 94px);
  line-height: 1.13;
  letter-spacing: -0.068em;
}
.hero h1 span {
  color: #c3d1ff;
  background: linear-gradient(100deg, #e3e8ff 0%, #c1c7ff 50%, #91bffd 98%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  color: var(--secondary);
  font-size: clamp(16px, 1.17vw, 19px);
  line-height: 1.8;
  margin-top: 24px;
}
.hero-actions,
.button,
.text-button {
  display: inline-flex;
  align-items: center;
}
.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.button {
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 11px 20px;
  border-radius: 40px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  transition:
    background 0.23s,
    border-color 0.23s,
    transform 0.28s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: #e9efff;
  color: #101421;
}
.button-primary:hover {
  background: white;
}
.film-button {
  background: #ffffff04;
  color: #e5ebfa;
  border-color: #9aaad33b;
}
.film-button .icon {
  width: 14px;
  height: 14px;
  fill: #d4def9;
  stroke: none;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  transform: translate(var(--pointer-x, 0), var(--pointer-y, 0));
  transition: transform 0.7s var(--ease);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -4% -8%;
  background: radial-gradient(ellipse at center, #7588f01d, transparent 64%);
  pointer-events: none;
}
.brand-object {
  position: relative;
  width: min(100%, 550px);
  animation: brand-float 9s ease-in-out infinite;
}
.brand-object img {
  width: 100%;
}
.mark-light {
  position: absolute;
  inset: 0;
  mask: url("/assets/yue-matrix.svg") center / contain no-repeat;
  background: linear-gradient(
      117deg,
      transparent 39%,
      #dde9ffaf 47%,
      #fff 50%,
      #cadaff80 53%,
      transparent 61%
    )
    125% center / 310% 100% no-repeat;
  animation: light-pass 8s ease-in-out infinite;
}
@keyframes brand-float {
  0%,
  100% {
    transform: translateY(2px) rotate(-1deg);
  }
  48% {
    transform: translateY(-7px) rotate(0.4deg);
  }
}
@keyframes light-pass {
  0%,
  15% {
    background-position: 125% center;
  }
  65%,
  100% {
    background-position: -25% center;
  }
}
.hero-bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  min-height: 56px;
  color: var(--muted);
}
.hero-bottom a,
#motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  font-size: 13px;
  color: var(--muted);
}
.hero-bottom a:hover,
#motion-toggle:hover {
  color: #edf2ff;
}
.hero-bottom a span {
  color: var(--ice);
}
.motion-bars {
  height: 13px;
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.motion-bars i {
  width: 2px;
  height: 6px;
  background: #adbee7;
  animation: equalizer 1.5s ease-in-out infinite;
}
.motion-bars i:nth-child(2) {
  height: 12px;
  animation-delay: -0.3s;
}
.motion-bars i:nth-child(3) {
  height: 8px;
  animation-delay: -0.6s;
}
@keyframes equalizer {
  0%,
  100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1);
  }
}

.projects,
.services,
.about,
.contact {
  padding-block: clamp(65px, 7.2vw, 122px);
}
.section-heading,
.about-top,
.contact-top,
.process-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading {
  margin-bottom: clamp(27px, 3vw, 48px);
}
.section-heading .eyebrow {
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(34px, 3.45vw, 58px);
  font-weight: 540;
  line-height: 1.22;
  letter-spacing: -0.058em;
}
.section-intro {
  color: var(--muted);
  line-height: 1.75;
}
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  padding: clamp(28px, 4vw, 66px);
  gap: clamp(25px, 4vw, 72px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 86% 48%, #26273f85, transparent 67%), #0b0d14;
  overflow: hidden;
}
.project-card + .project-card {
  margin-top: 20px;
}
.project-copy {
  min-width: 0;
}
.project-kicker,
.preview-footer,
.data-screen-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-kicker,
.product-type {
  color: var(--muted);
  font-size: 13px;
}
.product-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.product-type {
  display: inline-block;
  margin-left: 10px;
  font: 12px/1.5 var(--mono);
  letter-spacing: 0.1em;
}
.mini-orb {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 20%,
    #f0f5ff,
    #acbdf7 27%,
    #8074c1 52%,
    #272e4c 80%,
    #a1b6eb
  );
  box-shadow: inset 0 0 1px #fff;
}
.project-copy h3 {
  font-size: clamp(22px, 1.9vw, 32px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.035em;
}
.project-copy > p:not(.project-caption) {
  color: var(--secondary);
  font-size: 16px;
  max-width: 31em;
  margin-top: 13px;
  line-height: 1.82;
}
.task-flow,
.data-flow {
  margin: 24px 0;
  max-width: 340px;
}
.task-rail {
  position: relative;
  height: 26px;
  border: 1px solid #acbce153;
  border-radius: 8px;
  overflow: hidden;
  background: #131723;
}
.task-rail::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  background: linear-gradient(95deg, #9588e0, #778fd5, #b0ddff);
  mask: radial-gradient(circle, #000 1.6px, transparent 2px) left center / 6px
    6px;
}
.task-rail i {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 11%;
  left: 2%;
  border-radius: 6px;
  border: 1px solid #dceaff;
  box-shadow:
    inset 0 0 9px #d3e8ff66,
    0 0 12px #bed1ff33;
  animation: task-progress 7s var(--ease) infinite;
}
@keyframes task-progress {
  0%,
  12%,
  100% {
    left: 2%;
  }
  32%,
  48% {
    left: 44.5%;
  }
  69%,
  86% {
    left: 87%;
  }
}
.flow-labels,
.data-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flow-labels {
  margin-top: 6px;
  font-size: 12px;
  color: var(--secondary);
}
.project-link,
.inline-link,
.copy-email,
.text-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ice);
  font-size: 15px;
}
.project-link:hover,
.inline-link:hover,
.copy-email:hover {
  color: white;
}
.round-arrow {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #a2b8f044;
  border-radius: 50%;
  transition: background 0.2s;
}
.round-arrow .icon {
  width: 14px;
  height: 14px;
}
.project-link:hover .round-arrow {
  background: #a0bbff22;
}
.project-caption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}
.agent-preview,
.data-screen {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #b2c3e744;
  border-radius: 13px;
  background: #11151e;
  box-shadow: 0 14px 44px #0006;
}
.preview-toolbar,
.data-screen-bar {
  padding: 10px 14px;
  gap: 12px;
  background: #181c26;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-toolbar > span:first-child,
.data-screen-bar > span:first-child {
  display: flex;
  gap: 4px;
}
.window-dot,
.data-screen-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #737d92;
}
.window-dot:nth-child(2),
.data-screen-bar i:nth-child(2) {
  opacity: 0.7;
}
.window-dot:nth-child(3),
.data-screen-bar i:nth-child(3) {
  opacity: 0.45;
}
.preview-toolbar .mono {
  color: var(--secondary);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.preview-toolbar .icon,
.data-screen-bar .icon {
  width: 14px;
  height: 14px;
  color: var(--ice);
}
.preview-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  background: #10131b;
}
.preview-tabs button,
.gallery-switch button {
  font-size: 14px;
  border-radius: 20px;
  padding: 5px 15px;
  color: var(--secondary);
  transition:
    background 0.22s,
    color 0.22s;
}
.preview-tabs button[aria-selected="true"],
.gallery-switch button[aria-pressed="true"] {
  color: var(--text);
  background: #31394d;
}
.agent-image-button {
  display: block;
  padding: 0;
  width: 100%;
  position: relative;
}
.agent-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 976 / 720;
  object-fit: contain;
}
.video-hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef3fff2;
  color: #1c2333;
  opacity: 0;
  transform: translate(-50%, -42%);
  transition:
    opacity 0.22s,
    transform 0.25s;
}
.agent-image-button:is(:hover, :focus-visible) .video-hover-play {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.preview-footer {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--secondary);
}
.preview-footer > span:last-child {
  margin-left: auto;
  white-space: nowrap;
}
.data-project {
  background:
    radial-gradient(ellipse at 18% 46%, #1b324854, transparent 67%), #0a0e14;
}
.data-project .project-copy {
  grid-column: 2;
  grid-row: 1;
}
.data-preview {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.data-project {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}
.data-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 27px;
  height: 26px;
}
.data-mark i {
  width: 6px;
  height: 12px;
  background: #aed4fa;
  border-radius: 2px;
}
.data-mark i:nth-child(2) {
  height: 19px;
}
.data-mark i:nth-child(3) {
  height: 26px;
}
.data-flow {
  padding: 0;
  list-style: none;
  gap: 10px;
}
.data-flow li {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #c8d9f6;
  gap: 10px;
  white-space: nowrap;
}
.data-flow li:not(:last-child) {
  flex: 1;
}
.data-flow li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #9cbaf293, #65799c55);
}
.data-screen {
  padding: 0;
  width: 100%;
  display: block;
  transition: border-color 0.3s;
}
.data-screen:hover {
  border-color: #adc9ffb0;
}
.data-screen img {
  width: 100%;
}
.data-screen-bar {
  color: var(--secondary);
  justify-content: space-between;
  font-size: 12px;
}
.data-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}
.data-caption-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ice);
}
.data-caption strong,
.data-caption div > span {
  display: block;
}
.data-caption strong {
  font-size: 14px;
  font-weight: 500;
}
.data-caption div > span {
  color: var(--muted);
  font-size: 13px;
}

.legacy-products {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-block: 1px solid var(--line);
}
.legacy-heading,
.legacy-product {
  padding-block: 24px;
}
.legacy-heading p {
  margin-top: 4px;
}
.legacy-product {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding-inline: 18px;
  transition: background 0.25s;
}
.legacy-product:hover {
  background: #afc9ff0a;
}
.legacy-product > .icon {
  margin-left: auto;
  width: 16px;
  color: var(--muted);
}
.legacy-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #b0c9ff0d;
  border: 1px solid var(--line);
  color: var(--ice);
}
.reminder-icon {
  color: #dbc69d;
  background: #e8cba50c;
}
.legacy-product strong,
.legacy-product small {
  display: block;
}
.legacy-product strong {
  font-weight: 520;
  font-size: 16px;
}
.legacy-product small {
  font-size: 13px;
  color: var(--muted);
}

.services,
.contact {
  border-block: 1px solid var(--line);
  background: #090c12;
}
.service-item {
  border-top: 1px solid var(--line);
}
.service-item:last-child {
  border-bottom: 1px solid var(--line);
}
.service-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 6% 1.1fr 1fr 38px;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
}
.service-item summary::-webkit-details-marker {
  display: none;
}
.service-number,
.service-title span {
  color: var(--muted);
  font: 12px/1.5 var(--mono);
}
.service-title h3 {
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 27px);
}
.service-title span {
  letter-spacing: 0.09em;
}
.service-item summary > p {
  color: var(--secondary);
  font-size: 15px;
}
.service-toggle {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  transition: background 0.25s;
}
.service-toggle .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s;
}
.service-item[open] .service-toggle {
  background: #dce6ff;
  color: #18202f;
}
.service-item[open] .service-toggle .icon {
  transform: rotate(45deg);
}
.service-content {
  padding: 0 0 28px calc(6% + 16px);
  max-width: 900px;
}
.service-content > p,
.about-story p {
  color: var(--secondary);
  line-height: 1.86;
}
.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}
.service-pills span {
  color: var(--secondary);
  border: 1px solid var(--line);
  font-size: 13px;
  border-radius: 18px;
  padding: 3px 12px;
}
.inline-link .icon {
  width: 15px;
  height: 15px;
}
@supports (interpolate-size: allow-keywords) {
  .service-item {
    interpolate-size: allow-keywords;
  }
  .service-item::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.3s var(--ease),
      content-visibility 0.3s allow-discrete;
  }
  .service-item[open]::details-content {
    height: auto;
  }
}

.about-coordinate,
.process-heading .mono,
.contact-top > .mono {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.13em;
}
.about-story {
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.35fr);
  gap: 6vw;
  align-items: center;
  margin-block: 50px 68px;
}
.about-story p {
  margin-top: 18px;
  max-width: 44em;
}
.about-emblem {
  justify-self: center;
  width: min(16vw, 210px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ice);
}
.emblem-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 45px #a5b6ff0b;
}
.about-emblem svg {
  width: 64%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  animation: turn 96s linear infinite;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.about-emblem > span:last-child {
  position: absolute;
  top: calc(100% + 14px);
  color: var(--muted);
  font: 12px var(--mono);
  letter-spacing: 0.1em;
}
.process-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
  gap: 24px;
}
.process-list .mono {
  color: var(--muted);
  font-size: 12px;
}
.process-list h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 10px 0 6px;
}
.process-list p {
  font-size: 15px;
  color: var(--secondary);
}

.contact {
  position: relative;
  isolation: isolate;
}
.contact-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 82% 93%, #23345161, transparent 60%);
}
.contact-top .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block: 32px;
}
.contact-main p {
  margin-top: 14px;
  color: var(--secondary);
}
.contact-circle {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px solid #a6bad365;
  color: var(--ice);
  border-radius: 50%;
  width: 94px;
  height: 94px;
  flex: none;
  font-size: 14px;
  transition:
    color 0.25s,
    background 0.25s;
}
.contact-circle:hover {
  color: #182031;
  background: var(--ice);
}
.contact-bottom,
.site-footer,
.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.contact-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact-bottom > a {
  font-size: 18px;
}
.copy-email,
.contact-bottom > span {
  font-size: 13px;
  color: var(--muted);
}
.copy-email .icon,
.contact-bottom a .icon {
  width: 14px;
  height: 14px;
}
.contact-bottom > span {
  margin-left: auto;
}
.site-footer {
  padding-block: 35px;
  justify-content: space-between;
}
.footer-brand {
  font-size: 16px;
  font-weight: 550;
}
.footer-brand span {
  margin-left: 9px;
  color: var(--muted);
  font: 11px var(--mono);
}
.site-footer p,
.footer-links {
  color: var(--muted);
  font-size: 13px;
}
.site-footer p {
  margin-top: 5px;
}
.footer-links,
.footer-filings {
  flex-wrap: wrap;
}
.footer-filings {
  display: flex;
  align-items: center;
  gap: 6px 16px;
}
.footer-filings a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  white-space: nowrap;
}
.footer-filings img {
  width: 16px;
  flex: none;
}
.back-top {
  white-space: nowrap;
}
.footer-links a:hover {
  color: var(--ice);
}

dialog {
  padding: 0;
  border-radius: 18px;
  max-width: 960px;
  width: calc(100% - 40px);
  max-height: 92svh;
  overflow: auto;
  background: #10131c;
  color: var(--text);
  border: 1px solid #a0b3d84a;
  box-shadow: 0 30px 100px #0009;
}
dialog[open] {
  animation: dialog-in 0.23s var(--ease);
}
dialog::backdrop {
  background: #020309cc;
  backdrop-filter: blur(9px);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dialog-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
.dialog-header .eyebrow {
  margin-bottom: 5px;
}
.dialog-header .icon-button {
  flex: none;
}
.media-dialog video {
  width: 100%;
  max-height: 68svh;
  display: block;
  background: #020304;
  outline-offset: -4px;
}
.dialog-note {
  padding: 12px 22px;
  font-size: 14px;
  color: var(--muted);
}
.dialog-note a,
.mail-fallback a {
  color: var(--ice);
}
.gallery-dialog {
  max-width: 1250px;
}
.gallery-switch {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
}
#gallery-image {
  width: 100%;
  object-fit: contain;
  max-height: 65svh;
  background: #fff;
}
.gallery-dialog .dialog-note a {
  margin-left: 12px;
}
.qr-dialog {
  max-width: 370px;
  text-align: center;
}
.qr-image-wrap {
  background: white;
  padding: 15px;
  max-width: 240px;
  margin: 22px auto;
  border-radius: 12px;
}
.qr-dialog > p {
  padding-inline: 18px;
  font-size: 14px;
  color: var(--secondary);
}
.qr-dialog .button {
  margin: 20px;
}
.inquiry-dialog {
  max-width: 530px;
}
.inquiry-intro {
  padding: 18px 24px 0;
  color: var(--secondary);
}
.inquiry-dialog form {
  padding: 18px 24px 24px;
}
.inquiry-dialog label {
  display: block;
  margin-bottom: 6px;
}
.inquiry-dialog label span,
.form-note,
.mail-fallback {
  font-size: 13px;
  color: var(--muted);
}
.inquiry-dialog :is(input, select, textarea) {
  color: var(--text);
  width: 100%;
  margin: 0 0 14px;
  background: #090c13;
  border: 1px solid #98a9cc50;
  border-radius: 8px;
  padding: 10px 12px;
}
.inquiry-dialog textarea {
  resize: vertical;
}
.form-note {
  margin-bottom: 14px;
}
.copy-brief {
  margin-left: 14px;
}
.mail-fallback {
  margin-top: 17px;
}
.toast {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: 26px;
  max-width: calc(100% - 28px);
  padding: 10px 18px;
  border-radius: 12px;
  background: #e0e9fc;
  color: #1b2436;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s,
    transform 0.65s var(--ease);
}
.js-motion .reveal.is-visible,
.motion-paused .reveal {
  opacity: 1;
  transform: none;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-paused .hero-art {
  transform: none;
}

@media (max-width: 1000px) {
  :root {
    --gutter: 5vw;
  }
  .project-card {
    padding: 26px;
    gap: 26px;
  }
  .about-coordinate,
  .contact-top > .mono {
    display: none;
  }
  .hero {
    min-height: clamp(550px, 80svh, 720px);
  }
}
@media (max-width: 850px) {
  .hero h1 {
    font-size: clamp(44px, 6.2vw, 55px);
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-actions .button {
    padding-inline: 14px;
  }
  .service-item summary {
    grid-template-columns: 28px 1fr 38px;
  }
  .service-item summary > p {
    display: none;
  }
  .service-content {
    padding-left: 44px;
  }
  .contact-bottom > span,
  .legacy-product small {
    display: none;
  }
  .section-intro {
    font-size: 14px;
  }
  .project-card,
  .data-project {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-flow,
  .data-flow {
    margin-block: 16px;
  }
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .project-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-radius: 18px;
  }
  .data-project .project-copy,
  .data-preview {
    grid-column: auto;
    grid-row: auto;
  }
  .section-intro,
  .about-emblem {
    display: none;
  }
  .about-story {
    grid-template-columns: minmax(0, 1fr);
    margin-block: 25px 36px;
  }
  .legacy-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legacy-heading {
    grid-column: 1/-1;
    padding: 18px 0 0;
  }
  .legacy-product {
    padding-inline: 0 12px;
  }
}
@media (max-width: 650px) {
  :root {
    --gutter: clamp(18px, 6vw, 34px);
  }
  .site-header {
    height: 65px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .header-actions {
    margin-left: 12px;
  }
  .header-cta {
    padding: 6px 12px;
    font-size: 13px;
  }
  .menu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
  }
  .main-nav {
    padding: 8px var(--gutter) 14px;
    display: grid;
    gap: 0;
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 100%;
    background: #0c0f17;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child {
    border: 0;
  }
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .hero::before {
    background: radial-gradient(ellipse at 56% 73%, #2b3b7638, transparent 54%);
  }
  .hero-content {
    padding: clamp(38px, 6vh, 62px) 0 0;
  }
  .hero h1 {
    margin-top: 16px;
    font-size: clamp(43px, 10.5vw, 63px);
  }
  .hero-description {
    margin-top: 16px;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .hero-actions .button {
    padding-inline: 16px;
  }
  .hero-art {
    margin: 10px 0 4px;
    transform: none;
  }
  .brand-object {
    width: clamp(205px, min(70vw, 35svh), 325px);
  }
  .hero-bottom {
    min-height: 45px;
  }
  .hero-bottom a,
  #motion-toggle {
    font-size: 12px;
  }
  .projects,
  .services,
  .about,
  .contact {
    padding-block: 52px;
  }
  .service-content {
    padding-left: 0;
  }
  .contact-circle {
    width: 70px;
    height: 70px;
    font-size: 12px;
  }
  .contact-bottom {
    gap: 9px;
    flex-wrap: wrap;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-block: 25px;
  }
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .process-heading .mono {
    display: none;
  }
  .dialog-header {
    padding: 12px 16px;
  }
  .dialog-note {
    padding: 11px 16px;
  }
}
@media (max-width: 380px) {
  .header-cta .icon,
  .preview-footer > span:last-child {
    display: none;
  }
  .project-card {
    padding: 19px;
  }
  .contact h2 {
    font-size: 28px;
  }
  .legacy-product {
    gap: 7px;
  }
  .process-list {
    gap: 16px;
  }
  .copy-brief {
    display: flex;
    margin: 14px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-art,
  .js-motion .reveal {
    transform: none;
    opacity: 1;
  }
}
