:root {
  --bg: #FFFFFF;
  --bg-panel: #F6F5F5;
  --bg-panel-2: #FCE9E8;
  --border: #E5E3E3;
  --line-strong: #CFCACB;
  --accent: #8C1530;
  --accent-dark: #3E0716;
  --coral: #FF6B5E;
  --text: #1A1718;
  --text-muted: #6B6566;
  --success: #1F8A5B;
  --warn: #B8740F;
  --error: #C8283A;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.74);
  --on-dark-faint: rgba(255, 255, 255, 0.42);
  --on-dark-line: rgba(255, 255, 255, 0.28);
  --on-dark-wash: rgba(255, 255, 255, 0.08);
  --veil: rgba(26, 23, 24, 0.48);
  --clear: transparent;

  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --text-xs: 12px;
  --text-code-small: 12.5px;
  --text-sm: 13px;
  --text-caption: 14px;
  --text-nav: 15px;
  --text-body: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --size-h1: clamp(34px, 3.2vw, 48px);
  --size-hero: clamp(30px, 3.2vw, 46px);
  --size-h2: clamp(26px, 2.6vw, 36px);
  --size-h3: 22px;
  --size-mobile-h1: 28px;
  --leading-body: 1.6;
  --leading-title: 1.15;
  --tracking-title: -0.02em;
  --r-xs: 1px;
  --r-sm: 8px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --r-circle: 50%;
  --shadow-contact: 0 1px 2px rgba(62, 7, 22, 0.06), 0 22px 40px -30px rgba(62, 7, 22, 0.42);
  --shadow-pill: 0 1px 2px rgba(26, 23, 24, 0.06);
  --wrap: 1248px;
  --reading: 800px;
  --header-span: 1280px;
  --gutter: 24px;
  --col-device: 624px;
  --col-gap: 64px;
  --header-height: 72px;
  --duration-fast: 160ms;
  --duration-reveal: 600ms;
  --duration-device: 700ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus-ring: 3px solid var(--accent);
  --focus-ring-dark: 3px solid var(--on-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, summary { -webkit-tap-highlight-color: var(--clear); }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }
.stage :focus-visible, .topbar :focus-visible { outline: var(--focus-ring-dark); }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg, .icon, .tag__dot { flex-shrink: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-title);
  text-wrap: balance;
  overflow-wrap: normal;
}
h1 { font-size: var(--size-h1); letter-spacing: var(--tracking-title); }
h2 { font-size: var(--size-h2); letter-spacing: var(--tracking-title); }
h3 { font-size: var(--size-h3); }
p, ul, ol { margin-top: 0; }
code, kbd, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: 0.9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  line-height: 1.7;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; font-size: var(--text-sm); }
figure { margin-inline: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
::selection { background: var(--bg-panel-2); color: var(--accent-dark); }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.grid { display: grid; gap: 24px; }
.grid > *, .hero__grid > *, .seam__grid > *, .footer__grid > * { min-width: 0; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band { padding-top: 88px; padding-bottom: 112px; }
.band__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: var(--text-caption); color: var(--text-muted); }
.band__title { margin: 0; font-size: var(--size-h2); letter-spacing: var(--tracking-title); }
.band__title > span { display: block; }
.em { color: var(--accent); }
.keep { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  background: var(--bg);
  color: var(--accent);
  border-radius: var(--r-pill);
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 12px 20px;
}
.panel {
  padding: 32px;
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--r-xl);
}
.card {
  min-width: 0;
  padding: 28px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.card h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  max-width: 100%;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-align: center;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.btn:hover, .btn.is-hover { background: var(--accent-dark); color: var(--on-dark); text-decoration: none; }
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--outline { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--bg-panel-2); color: var(--accent); }
.btn--solid { background: var(--on-dark); color: var(--accent); }
.btn--solid:hover { background: var(--bg-panel-2); color: var(--accent); }
.btn--line { background: var(--clear); border-color: var(--on-dark); color: var(--on-dark); }
.btn--line:hover { background: var(--on-dark-wash); color: var(--on-dark); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel);
  border-color: var(--border);
  color: var(--text-muted);
}
.btn.is-focus { outline: var(--focus-ring); outline-offset: 4px; }
.btn:active { background: var(--accent-dark); color: var(--on-dark); }

.topbar, #site-header {
  position: relative;
  z-index: 50;
  background: var(--accent-dark);
  color: var(--on-dark);
}
.topbar__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
  width: 100%;
  max-width: min(100%, calc(var(--header-span) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  color: var(--on-dark);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.desktop-nav { min-width: 0; margin-left: auto; }
.dotnav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  font-size: var(--text-nav);
  white-space: nowrap;
}
.dotnav li { display: flex; align-items: center; }
.dotnav li + li::before { content: "·"; padding-inline: 14px; color: var(--on-dark-faint); }
.dotnav a { display: block; padding-block: 6px; color: var(--on-dark-muted); }
.dotnav a:hover { color: var(--on-dark); text-decoration: none; }
.dotnav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -1px 0 var(--on-dark); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 16px;
  font-size: var(--text-caption);
  color: var(--on-dark);
  background: var(--clear);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-pill);
  white-space: nowrap;
  cursor: pointer;
}
.lang:hover { background: var(--on-dark-wash); color: var(--on-dark); }
.lang-short { display: none; }
.language__list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 5;
  width: 192px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-contact);
}
.language__list a { display: block; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); color: var(--text); }
.language__list a:hover, .language__list a[aria-current] { background: var(--bg-panel-2); color: var(--accent); text-decoration: none; }
.language__list :focus-visible { outline: var(--focus-ring); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--on-dark);
}
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 16px var(--gutter) 24px;
  background: var(--accent-dark);
  color: var(--on-dark);
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--on-dark-line);
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 8px;
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-line);
}
.mobile-drawer a[aria-current] { background: var(--on-dark-wash); color: var(--on-dark); }
.mobile-drawer__label { margin: 24px 8px 8px; color: var(--on-dark-muted); font-size: var(--text-caption); }
.nav-veil {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 40;
  border: 0;
  padding: 0;
  background: var(--veil);
  color: var(--on-dark);
}
.preview-menu { display: none; }
.preview-menu > summary { list-style: none; }
.preview-menu > summary::-webkit-details-marker { display: none; }

.stage { position: relative; z-index: 2; background: var(--accent-dark); color: var(--on-dark); }
.hero { padding-top: 64px; padding-bottom: 44px; }
.hero__grid { display: grid; grid-template-columns: var(--col-device) minmax(0, 1fr); column-gap: var(--col-gap); align-items: start; }
.hero__device { position: relative; z-index: 3; margin-top: 88px; margin-bottom: -240px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 4px 14px 4px 12px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--on-dark);
}
.tag__dot { width: 8px; height: 8px; border-radius: var(--r-circle); background: var(--coral); color: var(--accent-dark); }
.hero-title { margin: 0 0 20px; font-size: var(--size-hero); line-height: 1.08; letter-spacing: var(--tracking-title); }
.hero-title > span { display: block; }
.hero-title__a { color: var(--on-dark); }
.hero-title__b { color: var(--coral); }
.hero-lede { margin: 0 0 28px; max-width: 30em; font-size: var(--text-body); line-height: 1.7; color: var(--on-dark-muted); }
.hero-lede strong { color: var(--on-dark); font-weight: var(--weight-medium); }
.plats { display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--on-dark-line); font-size: var(--text-caption); }
.plats li { display: flex; align-items: center; }
.plats li + li::before { content: "·"; padding-inline: 12px; color: var(--on-dark-faint); }
.plats a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.plats svg { width: 18px; height: 18px; display: block; }
.seam { position: relative; z-index: 1; }
.seam__grid { display: grid; grid-template-columns: var(--col-device) minmax(0, 1fr); column-gap: var(--col-gap); min-height: 176px; }
.seam__note { grid-column: 2; align-self: end; max-width: 30em; margin: 0; padding-bottom: 46px; font-size: var(--text-caption); line-height: 1.75; color: var(--text-muted); }
.seam__key { display: inline-block; margin-right: 10px; padding: 1px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }
.decorated { position: relative; overflow-x: clip; }
.prose { min-width: 0; line-height: 1.85; }
.prose h2 { margin-top: 2em; scroll-margin-top: 28px; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose li + li { margin-top: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { display: block; max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.reveal { opacity: 1; transform: none; }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out); }

.site-footer { padding-top: 64px; padding-bottom: 32px; border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1.5fr 0.8fr; gap: 40px; }
.site-footer .brand { color: var(--text); white-space: normal; }
.footer__intro { margin: 18px 0 0; max-width: 28em; color: var(--text-muted); font-size: var(--text-caption); }
.footer__heading { margin: 0 0 16px; font-size: var(--text-body); font-weight: var(--weight-medium); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li + li { margin-top: 8px; }
.footer__links a { display: inline-block; padding-block: 4px; color: var(--text-muted); font-size: var(--text-caption); }
.footer__links a:hover { color: var(--accent); }
.footer__copyright { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-muted); }

@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) { display: block; }
  .preview-menu { display: block; }
  .preview-menu .mobile-drawer { display: block; top: var(--header-height); }
}
@media (max-width: 1180px) {
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hero__grid, .seam__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { order: -1; }
  .hero__device { margin-top: 48px; margin-bottom: -130px; max-width: 640px; width: calc(100% - 8px); }
  .seam__grid { min-height: 0; padding-top: 128px; }
  .seam__note { grid-column: 1; padding-bottom: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero-title { font-size: var(--size-mobile-h1); line-height: 1.15; }
  .grid--three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .wrap { padding-inline: var(--gutter); }
  .topbar__row { gap: 10px; padding-inline: var(--gutter); }
  .brand { font-size: var(--text-caption); gap: 8px; }
  .brand__mark { width: 28px; height: 28px; }
  .header-tools { margin-left: auto; gap: 8px; }
  .lang { padding-inline: 12px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .hero-lede { font-size: var(--text-nav); }
  .btn { min-height: 48px; padding: 12px 22px; font-size: var(--text-nav); }
  .band { padding-top: 64px; padding-bottom: 80px; }
  .band__head { margin-bottom: 32px; }
  .grid--two, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 24px; }
  .tilt, [data-tilt] { transform: none !important; }
  .site-footer { padding-top: 48px; }
}
@media (max-width: 360px) {
  .brand span { font-size: var(--text-xs); }
  .header-tools { gap: 6px; }
  .hero-title { font-size: 26px; }
  .plats li + li::before { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}