:root {
  color-scheme: dark;
  --ink: #060310;
  --ink-2: #0b0618;
  --ink-3: #140d26;
  --paper: #ece9f7;
  --paper-soft: rgba(236, 233, 247, 0.72);
  --muted: rgba(236, 233, 247, 0.52);
  --faint: rgba(236, 233, 247, 0.14);
  --line: rgba(236, 233, 247, 0.15);
  --cyan: hsl(var(--hue, 255) 76% 74%);
  --cyan-soft: hsl(var(--hue, 255) 76% 74% / 0.14);
  --ember: hsl(var(--hue, 255) 80% 72%);
  --gold: hsl(var(--hue, 255) 42% 72%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 34%, hsl(var(--hue, 255) 76% 74% / 0.11), transparent 30%),
    radial-gradient(circle at 84% 77%, hsl(var(--hue, 255) 42% 72% / 0.06), transparent 24%),
    linear-gradient(118deg, #0d0820 0%, #060310 46%, #020107 100%);
  color: var(--paper);
  font-family:
    "Avenir Next",
    "Inter",
    "Helvetica Neue",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 233, 247, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 233, 247, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5) 32%, black 62%),
    linear-gradient(to bottom, black 0%, black 86%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  opacity: 0.055;
  content: "";
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 14px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--cyan);
  color: var(--ink);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 12;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 31px 48px;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 3, 16, 0.74), transparent);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}

.brand-logo {
  width: 102px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 16px hsl(var(--hue, 255) 76% 74% / 0.08));
}

.brand strong {
  display: block;
  color: rgba(236, 233, 247, 0.92);
  font-size: 22px;
  font-weight: 560;
  line-height: 1;
}

.brand em {
  display: block;
  margin-top: 5px;
  color: rgba(236, 233, 247, 0.48);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.10em;
  line-height: 1;
}

.site-actions {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 30px;
}

.project-menu {
  position: relative;
}

.project-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(236, 233, 247, 0.20);
  background: transparent;
  color: rgba(236, 233, 247, 0.75);
  padding: 7px 0 8px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 220ms ease,
    border-color 220ms ease;
}

.project-toggle span {
  display: inline-block;
  color: var(--cyan);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 260ms var(--ease-out);
}

.project-menu.is-open .project-toggle,
.project-toggle:hover,
.project-toggle:focus-visible {
  border-color: hsl(var(--hue, 255) 76% 74% / 0.58);
  color: var(--paper);
  outline: none;
}

.project-menu.is-open .project-toggle span {
  transform: translateY(-1px) rotate(180deg);
}

.project-popover {
  position: absolute;
  top: calc(100% + 18px);
  right: -22px;
  display: grid;
  width: 410px;
  max-height: min(680px, calc(100dvh - 116px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(236, 233, 247, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(236, 233, 247, 0.10), rgba(236, 233, 247, 0.035)),
    rgba(6, 3, 16, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(236, 233, 247, 0.10),
    0 24px 80px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.62);
  transform-origin: top right;
  visibility: hidden;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

/* 打开：面板 back.out 弹性展开，菜单项错峰升入（各自曲线） */
.project-menu.is-open .project-popover {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  visibility: visible;
  transition:
    transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 170ms ease;
}

.project-menu.is-open .project-item {
  animation: projectItemIn 420ms var(--ease-out) calc(110ms + var(--i, 0) * 34ms) backwards;
}

/* 关闭：反向编排——菜单项按相反顺序先退场，面板再以平滑曲线更快收回 */
.project-menu.is-closing .project-popover {
  visibility: visible;
  animation: projectPanelOut 230ms cubic-bezier(0.45, 0, 0.75, 0.35) 150ms both;
}

.project-menu.is-closing .project-item {
  animation: projectItemOut 180ms cubic-bezier(0.5, 0, 0.75, 0.4) calc((9 - var(--i, 0)) * 16ms) both;
}

@keyframes projectItemIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes projectItemOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
}

@keyframes projectPanelOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.72);
  }
}

.project-popover::before {
  position: absolute;
  top: -7px;
  right: 31px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(236, 233, 247, 0.13);
  border-left: 1px solid rgba(236, 233, 247, 0.13);
  background: rgba(16, 11, 30, 0.95);
  content: "";
  transform: rotate(45deg);
}

.project-item {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 220ms var(--ease-out);
}

.project-item + .project-item {
  margin-top: 2px;
}

.project-item:hover,
.project-item:focus-visible {
  background: hsl(var(--hue, 255) 76% 74% / 0.075);
  outline: none;
  transform: translate3d(2px, 0, 0);
}

.project-item strong {
  display: block;
  color: rgba(236, 233, 247, 0.96);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.12;
}

.project-item span {
  color: rgba(236, 233, 247, 0.55);
  font-size: 11px;
  line-height: 1.38;
}

.project-contact {
  display: none;
}

.project-group {
  display: block;
  margin: 10px 0 2px;
  border-top: 1px solid rgba(236, 233, 247, 0.10);
  color: rgba(236, 233, 247, 0.42);
  padding: 12px 14px 2px;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.project-minor strong {
  color: rgba(236, 233, 247, 0.78);
  font-weight: 560;
}

.project-all {
  margin-top: 8px !important;
  border-top: 1px solid rgba(236, 233, 247, 0.12);
  border-radius: 0;
  padding-top: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border: 1px solid hsl(var(--hue, 255) 76% 74% / 0.55);
  border-radius: 999px;
  background: hsl(var(--hue, 255) 76% 74% / 0.05);
  color: var(--cyan);
  padding: 0 11px;
  font-size: 15px;
  line-height: 1;
  transform: translate3d(var(--contact-x, 0px), var(--contact-y, 0px), 0);
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background-color 240ms ease,
    transform 260ms var(--ease-out);
  will-change: transform;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: hsl(var(--hue, 255) 76% 74% / 0.9);
  background: hsl(var(--hue, 255) 76% 74% / 0.12);
  color: #eafff9;
  outline: none;
}

.contact-text-full {
  max-width: 0;
  margin-right: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition:
    max-width 360ms var(--ease-out),
    margin-right 360ms var(--ease-out),
    opacity 220ms ease;
}

.contact-link:hover .contact-text-full,
.contact-link:focus-visible .contact-text-full {
  max-width: 96px;
  margin-right: 9px;
  opacity: 1;
}

.contact-arrow {
  display: inline-block;
  font-size: 19px;
  line-height: 1;
  transition: transform 360ms var(--ease-out);
}

.contact-link:hover .contact-arrow,
.contact-link:focus-visible .contact-arrow {
  transform: translate3d(1px, -1px, 0);
}

.contact-link.is-sent .contact-arrow {
  animation: arrowFly 640ms var(--ease-out);
}

@keyframes arrowFly {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  38% {
    opacity: 0;
    transform: translate3d(22px, -22px, 0);
  }

  42% {
    opacity: 0;
    transform: translate3d(-14px, 14px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.contact-text-short {
  display: none;
}

.site-stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  overflow: hidden;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: hsl(var(--hue, 255) 76% 74% / 0.88);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0.08em;
}

.section-label::before {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* 极简文字层：品牌语压到最小，让流场成为页面本体 */
.hero-min {
  position: absolute;
  bottom: clamp(36px, 7vh, 72px);
  left: clamp(28px, 4vw, 52px);
  z-index: 5;
  pointer-events: none;
}

.hero-min h1 {
  margin: 0;
  color: rgba(236, 233, 247, 0.92);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-shadow:
    0 0 16px rgba(6, 3, 16, 0.95),
    0 0 34px rgba(6, 3, 16, 0.8);
}

.hero-min .dot {
  color: var(--cyan);
}

.hero-sub {
  margin: 12px 0 0;
  color: hsl(var(--hue, 255) 76% 74% / 0.6);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.method {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 640px;
  margin-top: 30px;
  border-top: 1px solid rgba(236, 233, 247, 0.18);
}

.method div {
  padding: 16px 22px 0 0;
}

.method span {
  display: block;
  color: hsl(var(--hue, 255) 76% 74% / 0.78);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.method strong {
  display: block;
  margin-top: 9px;
  color: rgba(236, 233, 247, 0.9);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.24;
}

.visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dock {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin-top: 30px;
  padding: 10px 14px;
  border: 1px solid rgba(236, 233, 247, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(236, 233, 247, 0.08), rgba(236, 233, 247, 0.02)),
    rgba(6, 3, 16, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(236, 233, 247, 0.10),
    0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.js .dock {
  animation: riseIn 700ms var(--ease-out) 860ms both;
}

.dock-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(236, 233, 247, 0.16);
  border-radius: 13px;
  background:
    linear-gradient(150deg, rgba(236, 233, 247, 0.10), rgba(236, 233, 247, 0.03)),
    rgba(11, 7, 24, 0.72);
  transform-origin: bottom center;
  transform: translateY(calc((1 - var(--s, 1)) * 16px)) scale(var(--s, 1));
  transition:
    transform 140ms var(--ease-out),
    border-color 200ms ease;
  will-change: transform;
}

.dock-item:hover,
.dock-item:focus-visible {
  border-color: hsl(var(--hue, 255) 76% 74% / 0.5);
  outline: none;
}

.dock-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: rgba(236, 233, 247, 0.85);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 200ms ease;
}

.dock-icon .acc {
  stroke: var(--cyan);
}

.dock-icon .dot {
  fill: rgba(236, 233, 247, 0.85);
  stroke: none;
}

.dock-icon .dot.acc {
  fill: var(--cyan);
}

.dock-item:hover .dock-icon,
.dock-item:focus-visible .dock-icon {
  stroke: rgba(236, 233, 247, 1);
}

.dock-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  padding: 5px 10px;
  border: 1px solid rgba(236, 233, 247, 0.14);
  border-radius: 7px;
  background: rgba(6, 3, 16, 0.92);
  color: rgba(236, 233, 247, 0.88);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) scale(calc(1 / var(--s, 1)));
  transform-origin: bottom center;
  transition:
    opacity 160ms ease,
    transform 160ms var(--ease-out);
}

.dock-item:hover .dock-tip,
.dock-item:focus-visible .dock-tip {
  opacity: 1;
  transform: translate(-50%, 0) scale(calc(1 / var(--s, 1)));
}

.dock-sep {
  align-self: center;
  width: 1px;
  height: 30px;
  margin: 0 3px;
  background: rgba(236, 233, 247, 0.14);
}

@media (max-width: 640px) {
  .dock {
    bottom: 16px;
    gap: 7px;
    padding: 8px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dock::-webkit-scrollbar {
    display: none;
  }

  .dock-item {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
  }

  .dock-icon {
    width: 20px;
    height: 20px;
  }
}

.intent-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.js .hero-min {
  animation: riseIn 900ms var(--ease-out) 700ms both;
}

.js .unfold-toggle {
  animation: fadeUp 700ms var(--ease-out) 1100ms both;
}

.js .visual {
  animation: fadeUp 1400ms ease 100ms both;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 680ms ease var(--reveal-delay, 0ms),
    transform 680ms var(--ease-out) var(--reveal-delay, 0ms);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

.story-row::details-content {
  block-size: 0;
  overflow-y: clip;
  transition:
    content-visibility 460ms allow-discrete,
    block-size 460ms var(--ease-out);
}

.story-row[open]::details-content {
  block-size: auto;
}

.visual {
  transition: opacity 450ms ease;
}

.visual.is-dimmed {
  opacity: 0.42;
}

.intent-canvas {
  cursor: crosshair;
}

/* ---------- 展开符号与介绍层 ---------- */

.unfold-toggle {
  position: absolute;
  bottom: clamp(30px, 6vh, 60px);
  left: 50%;
  z-index: 7;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border: 1px solid hsl(var(--hue, 255) 76% 74% / 0.45);
  border-radius: 50%;
  background: rgba(6, 3, 16, 0.35);
  cursor: pointer;
  transition:
    border-color 260ms ease,
    background-color 260ms ease,
    transform 340ms var(--ease-out);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.unfold-toggle::before {
  position: absolute;
  inset: -7px;
  border: 1px solid hsl(var(--hue, 255) 76% 74% / 0.16);
  border-radius: 50%;
  content: "";
  animation: toggleBreathe 3.2s var(--ease-out) infinite;
}

@keyframes toggleBreathe {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.unfold-toggle span,
.unfold-toggle span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.6px;
  background: rgba(236, 233, 247, 0.92);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 380ms var(--ease-out), background-color 260ms ease;
}

.unfold-toggle span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.unfold-toggle:hover,
.unfold-toggle:focus-visible {
  border-color: var(--cyan);
  background: hsl(var(--hue, 255) 76% 74% / 0.12);
  transform: scale(1.06);
  outline: none;
}

.unfold-toggle[aria-expanded="true"] {
  border-color: rgba(236, 233, 247, 0.4);
}

.unfold-toggle[aria-expanded="true"] span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.unfold-toggle[aria-expanded="true"] span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.unfold-toggle[aria-expanded="true"]::before {
  animation: none;
  opacity: 0.2;
}

.unfold {
  position: absolute;
  bottom: clamp(100px, 16vh, 150px);
  left: 50%;
  z-index: 6;
  width: min(720px, calc(100vw - 40px));
  padding: 30px 34px 32px;
  border: 1px solid rgba(236, 233, 247, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(236, 233, 247, 0.07), rgba(236, 233, 247, 0.02)),
    rgba(6, 3, 16, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(236, 233, 247, 0.10),
    0 30px 90px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate3d(-50%, 18px, 0) scale(0.9);
  transform-origin: bottom center;
  visibility: hidden;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.unfold.is-open {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
  visibility: visible;
  transition:
    transform 560ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 200ms ease;
}

.unfold.is-open > * {
  animation: riseIn 460ms var(--ease-out) calc(120ms + var(--i, 0) * 90ms) backwards;
}

.unfold.is-closing {
  visibility: visible;
  animation: unfoldOut 260ms cubic-bezier(0.45, 0, 0.75, 0.35) both;
}

@keyframes unfoldOut {
  from {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(-50%, 14px, 0) scale(0.92);
  }
}

.unfold-lede {
  max-width: 34rem;
  margin: 0;
  color: var(--paper-soft);
  font-size: 15.5px;
  line-height: 1.85;
}

.method div {
  cursor: default;
  transition: transform 300ms var(--ease-out);
}

.method div:hover {
  transform: translateY(-2px);
}

.method div:hover span {
  color: var(--cyan);
}

.method div:hover strong {
  color: hsl(var(--hue, 255) 76% 74% / 0.92);
}

.method span,
.method strong {
  transition: color 260ms ease;
}

.content-dock {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: 54px;
  width: min(1240px, calc(100vw - 96px));
  margin: -18px auto 90px;
  padding: 38px 0 0;
  border-top: 1px solid rgba(236, 233, 247, 0.16);
}

.dock-intro {
  position: sticky;
  top: 118px;
  align-self: start;
  max-width: 480px;
}

.dock-intro h2,
.product-reserve h2 {
  margin: 20px 0 18px;
  color: rgba(236, 233, 247, 0.95);
  font-family:
    "Songti SC",
    "STSong",
    "Noto Serif SC",
    "Source Han Serif SC",
    serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 640;
  line-height: 1.2;
}

.dock-intro p,
.product-reserve > p + h2 + .reserve-grid p {
  color: rgba(236, 233, 247, 0.64);
}

.dock-intro > p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.story-stack {
  display: grid;
  gap: 12px;
}

.story-row {
  border: 1px solid rgba(236, 233, 247, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(236, 233, 247, 0.075), rgba(236, 233, 247, 0.024)),
    rgba(6, 3, 16, 0.54);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(236, 233, 247, 0.08);
}

.story-row[open] {
  border-color: hsl(var(--hue, 255) 76% 74% / 0.28);
  background:
    linear-gradient(145deg, hsl(var(--hue, 255) 76% 74% / 0.08), rgba(236, 233, 247, 0.032)),
    rgba(6, 3, 16, 0.66);
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.story-row {
  position: relative;
}

.story-row::after {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(
    from var(--sweep),
    transparent 0deg 250deg,
    hsl(var(--hue, 255) 76% 74% / 0.65) 302deg,
    transparent 344deg 360deg
  );
  opacity: 0;
  pointer-events: none;
  content: "";
  transition: opacity 320ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.story-row:hover::after,
.story-row:focus-within::after {
  opacity: 1;
  animation: borderSweep 1.8s linear infinite;
}

@keyframes borderSweep {
  to {
    --sweep: 360deg;
  }
}

.story-row summary {
  display: grid;
  grid-template-columns: 42px 1fr 26px;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 0 22px;
  list-style: none;
  cursor: pointer;
}

.story-row summary::-webkit-details-marker {
  display: none;
}

.story-row summary span,
.reserve-grid article span {
  color: hsl(var(--hue, 255) 76% 74% / 0.82);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.story-row summary strong {
  color: rgba(236, 233, 247, 0.94);
  font-size: 19px;
  font-weight: 560;
  line-height: 1.45;
}

.story-row summary i {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(236, 233, 247, 0.18);
  border-radius: 50%;
  transition:
    border-color 220ms ease,
    transform 260ms var(--ease-out);
}

.story-row summary i::before,
.story-row summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: rgba(236, 233, 247, 0.82);
  content: "";
  transform: translate(-50%, -50%);
}

.story-row summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 220ms var(--ease-out);
}

.story-row[open] summary i {
  border-color: hsl(var(--hue, 255) 76% 74% / 0.54);
  transform: rotate(45deg);
}

.story-body {
  max-width: 740px;
  padding: 0 24px 26px 82px;
  color: rgba(236, 233, 247, 0.65);
  font-size: 15px;
  line-height: 1.88;
}

.story-body p {
  margin: 0;
}

.story-body p + p,
.story-body p + ul {
  margin-top: 14px;
}

.story-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-body li {
  position: relative;
  padding-left: 18px;
}

.story-body li::before {
  position: absolute;
  top: 0.84em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.product-reserve {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 38px;
  border-top: 1px solid rgba(236, 233, 247, 0.13);
}

.project-portal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 80px;
  align-items: end;
  margin-top: 28px;
  padding: 48px 0 16px;
  border-top: 1px solid rgba(236, 233, 247, 0.13);
}

.project-portal h2 {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(236, 233, 247, 0.95);
  font-family:
    "Songti SC",
    "STSong",
    "Noto Serif SC",
    "Source Han Serif SC",
    serif;
  font-size: 44px;
  font-weight: 640;
  line-height: 1.2;
}

.project-portal-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(236, 233, 247, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.project-portal-copy a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  border-bottom: 1px solid hsl(var(--hue, 255) 76% 74% / 0.52);
  color: var(--cyan);
  padding: 0 0 8px;
  font-size: 15px;
  transition: color 180ms ease, border-color 180ms ease;
}

.project-portal-copy a span {
  font-size: 20px;
  transition: transform 320ms var(--ease-out);
}

.project-portal-copy a:hover,
.project-portal-copy a:focus-visible {
  border-color: rgba(236, 233, 247, 0.72);
  color: var(--paper);
  outline: none;
}

.project-portal-copy a:hover span,
.project-portal-copy a:focus-visible span {
  transform: translateX(5px);
}

.product-reserve h2 {
  max-width: 720px;
  margin-bottom: 24px;
}

.reserve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reserve-grid article {
  min-height: 190px;
  border: 1px solid rgba(236, 233, 247, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(236, 233, 247, 0.075), rgba(236, 233, 247, 0.022)),
    rgba(6, 3, 16, 0.54);
  padding: 22px;
  transition:
    border-color 220ms ease,
    transform 260ms var(--ease-out),
    background-color 220ms ease;
}

.reserve-grid article:target,
.reserve-grid article:hover {
  border-color: hsl(var(--hue, 255) 76% 74% / 0.32);
  transform: translateY(-3px);
}

.reserve-grid h3 {
  margin: 28px 0 12px;
  color: rgba(236, 233, 247, 0.94);
  font-size: 22px;
  font-weight: 620;
  line-height: 1.12;
}

.reserve-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .site-header {
    padding: 24px 22px;
  }

  .content-dock {
    grid-template-columns: 1fr;
    width: min(100vw - 44px, 760px);
    margin-top: 8px;
    gap: 28px;
  }

  .dock-intro {
    position: static;
    max-width: 680px;
  }

  .reserve-grid {
    grid-template-columns: 1fr;
  }

  .project-portal {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
  }

  .brand-logo {
    width: 82px;
    height: 38px;
  }

  .brand span {
    display: none;
  }

  .site-actions {
    gap: 18px;
  }

  .project-toggle,
  .contact-link {
    font-size: 13px;
  }

  .project-popover {
    right: -88px;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100dvh - 102px);
  }

  .project-contact {
    display: grid;
  }

  .contact-link {
    height: 38px;
  }

  .hero-min h1 {
    font-size: 13px;
    letter-spacing: 0.3em;
  }

  .unfold {
    padding: 24px 22px 26px;
  }

  .method {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .method div {
    padding: 15px 0 0;
  }

  .content-dock {
    width: calc(100vw - 36px);
    margin-bottom: 54px;
    padding-top: 30px;
  }

  .project-portal h2 {
    font-size: 34px;
  }

  .story-row summary {
    grid-template-columns: 34px 1fr 24px;
    gap: 12px;
    min-height: 82px;
    padding: 0 16px;
  }

  .story-row summary strong {
    font-size: 16px;
  }

  .story-body {
    padding: 0 16px 22px 62px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
