:root {
  --paper: #f5f0ea;
  --paper-2: #fbf8f4;
  --surface: #fffdfb;
  --ink: #191619;
  --ink-2: #403a40;
  --muted: #756e75;
  --faint: #a39aa1;
  --line: #e3dbd2;
  --line-2: #d4c9be;
  --brand: #8e2f4f;
  --brand-2: #b24b6b;
  --brand-soft: #f4e5ea;
  --gold: #9a7b3f;
  --gold-soft: #f4eddf;
  --good: #2e7d5b;
  --dark: #17151a;
  --dark-2: #211d23;
  --cream: #f6f0e8;
  --shadow-1: 0 1px 2px rgba(28, 22, 18, .05), 0 1px 1px rgba(28, 22, 18, .04);
  --shadow-2: 0 16px 46px -22px rgba(28, 22, 18, .28), 0 3px 9px -4px rgba(28, 22, 18, .08);
  --shadow-3: 0 40px 90px -38px rgba(28, 22, 18, .48), 0 12px 30px -16px rgba(28, 22, 18, .18);
  --radius: 18px;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "SimSun", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(142, 47, 79, .10), transparent 62%),
    radial-gradient(700px 500px at -8% 8%, rgba(154, 123, 63, .07), transparent 58%),
    var(--paper);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--brand); color: #fff; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 14px; }
.site-header {
  position: sticky; top: 0; z-index: 50; height: 72px; padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(245, 240, 234, .86); border-bottom: 1px solid rgba(212, 201, 190, .66);
  backdrop-filter: blur(16px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--brand); color: #fff;
  font: 700 17px/1 var(--serif); letter-spacing: -.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 16px -8px rgba(142,47,79,.8);
}
.brand-text { font: 700 14px/1 var(--sans); letter-spacing: .16em; }
.brand-text small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; letter-spacing: .2em; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,253,251,.7); color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink-2); box-shadow: var(--shadow-1); }
.btn-primary { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 12px 24px -14px rgba(142,47,79,.75); }
.btn-primary:hover { background: #7c2845; border-color: #7c2845; }
.btn-small { min-height: 38px; padding: 0 15px; font-size: 12.5px; }
.btn-ghost svg { width: 15px; height: 15px; fill: currentColor; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.play-dot { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; }
.hero {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 84px 30px 96px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr);
  align-items: center; gap: 58px;
}
.hero-glow {
  position: absolute; width: 520px; height: 520px; right: 0; top: 70px;
  background: radial-gradient(circle, rgba(142,47,79,.14), transparent 68%);
  filter: blur(16px); pointer-events: none;
}
.eyebrow, .section-kicker {
  display: flex; align-items: center; gap: 9px;
  color: var(--brand); font: 650 11px/1 var(--mono); letter-spacing: .16em;
}
.eyebrow span { width: 27px; height: 1px; background: var(--brand); }
.hero h1 {
  margin: 24px 0 0; max-width: 700px; font-size: clamp(40px, 4.3vw, 54px); line-height: 1.16;
  letter-spacing: -.045em; font-weight: 740;
}
.hero h1 span { color: var(--brand); }
.hero-lede { max-width: 570px; margin: 26px 0 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { max-width: 570px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.hero-note strong { color: var(--ink-2); }
.hero-visual { position: relative; display: flex; flex-direction: column; }
.window-frame { overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,.55); background: var(--surface); box-shadow: var(--shadow-3); }
.window-main { transform: none; }
.window-bar { height: 34px; padding: 0 13px; display: flex; align-items: center; gap: 6px; background: #ebe4dd; border-bottom: 1px solid var(--line); }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9b9ab; }
.window-bar i:nth-child(1) { background: #cf7a72; }
.window-bar i:nth-child(2) { background: #d6ad61; }
.window-bar i:nth-child(3) { background: #7eaa8e; }
.window-bar span { margin-left: 7px; color: #8d8178; font: 10px/1 var(--mono); }
.window-main img { width: 100%; aspect-ratio: 1680/1080; object-fit: cover; }
.hero-caption { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; letter-spacing: .03em; }
.hero-caption span { display: inline-flex; align-items: baseline; gap: 5px; }
.hero-caption b { color: var(--ink); font: 700 16px/1 var(--mono); letter-spacing: -.03em; }
.section { max-width: var(--max); margin: 0 auto; padding: 118px 30px; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; margin-bottom: 42px; }
.section-head h2 { margin: 13px 0 0; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -.045em; font-weight: 730; }
.section-head > p { margin: 0 0 7px; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 430px; justify-self: end; }
.video-section { padding-top: 96px; }
.video-shell {
  position: relative; overflow: hidden; border-radius: 22px; background: #0e0d0f;
  box-shadow: 0 42px 100px -50px rgba(23,21,26,.8), 0 0 0 1px rgba(23,21,26,.08);
}
.video-shell::before { content: ""; display: block; padding-top: 56.25%; }
.video-shell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0e0d0f; }
.video-foot { display: flex; justify-content: space-between; gap: 20px; padding: 14px 4px 0; color: var(--faint); font: 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.walkthrough { padding-top: 60px; }
.case-card {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 58px; align-items: center; padding: 52px 0; border-top: 1px solid var(--line);
}
.case-card.reverse { grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); }
.case-card.reverse .case-media { order: 2; }
.case-card.reverse .case-copy { order: 1; }
.case-media { position: relative; }
.browser-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-2); transform: translateZ(0); }
.browser-top { height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #eee7e0; border-bottom: 1px solid var(--line); }
.browser-top i { width: 7px; height: 7px; border-radius: 50%; background: #c8b8aa; }
.browser-top i:nth-child(1) { background: #cf7a72; }
.browser-top i:nth-child(2) { background: #d6ad61; }
.browser-top i:nth-child(3) { background: #7eaa8e; }
.browser-top span { margin-left: 6px; color: var(--faint); font: 9px/1 var(--mono); }
.browser-shell img { width: 100%; aspect-ratio: 1560/1080; object-fit: cover; object-position: top; }
.case-index { color: var(--brand); font: 650 10px/1 var(--mono); letter-spacing: .15em; }
.case-copy h3 { margin: 14px 0 16px; font-size: clamp(26px, 3.1vw, 40px); line-height: 1.18; letter-spacing: -.035em; }
.case-copy > p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 13px; line-height: 1.65; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 800; }
.mini-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.mini-metric-row strong { display: block; font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.mini-metric-row span { display: block; margin-top: 6px; color: var(--muted); font-size: 10.5px; }
.dark {
  max-width: none; margin: 40px 0; padding: 118px max(30px, calc((100vw - var(--max)) / 2 + 30px));
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(142,47,79,.22), transparent 65%),
    radial-gradient(500px 340px at 8% 90%, rgba(154,123,63,.12), transparent 65%),
    var(--dark);
  color: var(--cream);
}
.dark .section-kicker { color: #d795aa; }
.dark .section-head > p { color: #a89fa5; }
.arch-board { margin-top: 36px; padding: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.025); }
.arch-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.arch-row-bottom { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.arch-arrow { display: grid; place-items: center; color: #8c7c84; font-size: 20px; }
.arch-down { display: grid; place-items: center; height: 36px; color: #8c7c84; font-size: 20px; }
.arch-node { padding: 20px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); }
.arch-node small { display: block; color: #9a8d94; font: 650 9px/1 var(--mono); letter-spacing: .16em; margin-bottom: 10px; }
.arch-node b { display: block; font-size: 15px; letter-spacing: -.01em; }
.arch-node span { display: block; margin-top: 5px; color: #9a8d94; font-size: 11px; }
.node-entry { border-color: rgba(215,149,170,.25); background: rgba(142,47,79,.15); }
.node-ai { border-color: rgba(216,183,125,.24); background: rgba(154,123,63,.11); }
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.flow-card { padding: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: rgba(255,255,255,.025); }
.flow-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.flow-head span { color: #d795aa; font: 650 9px/1 var(--mono); letter-spacing: .16em; }
.flow-head h3 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.flow-steps { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.flow-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.flow-steps i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); color: #b7aeb4; font: 600 9px/1 var(--mono); font-style: normal; }
.flow-steps b { display: block; font-size: 13.5px; }
.flow-steps span { display: block; margin-top: 2px; color: #9a8d94; font-size: 11.5px; line-height: 1.65; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-strip > div { padding: 26px 25px; border-right: 1px solid var(--line); }
.metric-strip > div:last-child { border-right: 0; }
.metric-strip strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -.055em; }
.metric-strip strong small { font-size: 16px; margin-left: 2px; }
.metric-strip span { display: block; margin-top: 9px; font-size: 12px; font-weight: 650; }
.metric-strip em { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; font-style: normal; }
.chart-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 22px; }
.chart-card { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.chart-card.wide { grid-column: 1 / -1; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.chart-head span { color: var(--brand); font: 650 9px/1 var(--mono); letter-spacing: .14em; }
.chart-head b { font-size: 13px; font-weight: 650; }
.chart-card img { width: 100%; height: auto; border-radius: 8px; }
.quote-panel { display: grid; grid-template-columns: 64px 1fr; gap: 6px 22px; margin-top: 46px; padding: 38px; border-radius: 20px; background: var(--brand-soft); border: 1px solid #ead2da; }
.quote-mark { grid-row: 1 / 3; color: var(--brand); font: italic 74px/.7 var(--serif); opacity: .65; }
.quote-panel blockquote { margin: 0; color: var(--ink); font: italic 600 clamp(24px, 3vw, 38px)/1.35 var(--serif); letter-spacing: -.025em; }
.quote-panel p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 800px; }
.gallery-strip { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 14px; margin-top: 24px; }
.gallery-strip figure { margin: 0; overflow: hidden; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); }
.gallery-strip img { width: 100%; height: 310px; object-fit: cover; object-position: top; transition: transform .5s ease; }
.gallery-strip figure:hover img { transform: scale(1.015); }
.gallery-strip figcaption { padding: 11px 14px; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .05em; border-top: 1px solid var(--line); }
.engineering { padding-top: 90px; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.decision { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,251,.65); }
.decision-no { color: var(--brand); font: 650 10px/1 var(--mono); letter-spacing: .14em; }
.decision h3 { margin: 19px 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.decision p { margin: 0; color: var(--muted); font-size: 13.2px; line-height: 1.8; }
code { padding: 2px 6px; border-radius: 5px; background: var(--gold-soft); color: #6b5328; font: 11.5px/1.4 var(--mono); }
.closing {
  margin-top: 50px; padding: 118px 30px;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(142,47,79,.34), transparent 64%),
    radial-gradient(700px 420px at 4% 92%, rgba(154,123,63,.13), transparent 65%),
    var(--dark);
  color: var(--cream);
}
.closing-inner { max-width: 1000px; margin: 0 auto; }
.closing .section-kicker { color: #d795aa; }
.closing h2 { max-width: 850px; margin: 18px 0 0; font-size: clamp(40px, 6vw, 74px); line-height: 1.06; letter-spacing: -.05em; }
.closing p { max-width: 720px; margin: 24px 0 0; color: #aaa0a6; font-size: 15px; line-height: 1.85; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.closing .btn-ghost { color: var(--cream); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.closing .btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.closing-meta { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 58px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #82777e; font: 10px/1.4 var(--mono); letter-spacing: .07em; }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 32px 30px 48px; display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 10.5px; }
.site-footer p { margin: 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 40px; background: rgba(15,13,16,.9); backdrop-filter: blur(10px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(94vw, 1500px); max-height: 88vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 26px; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.16); }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 68px; }
  .hero-visual { max-width: 820px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head > p { justify-self: start; }
  .case-card, .case-card.reverse { grid-template-columns: 1fr; gap: 30px; }
  .case-card.reverse .case-media, .case-card.reverse .case-copy { order: initial; }
  .arch-row { grid-template-columns: 1fr; }
  .arch-arrow, .arch-down { display: none; }
  .arch-row-bottom { grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip > div:nth-child(2) { border-right: 0; }
  .metric-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: auto; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip figure:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-header { height: 62px; padding: 0 18px; }
  .brand-text small { display: none; }
  .hero, .section, .dark, .closing { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 50px; padding-bottom: 78px; }
  .hero h1 { font-size: clamp(31px, 8.7vw, 40px); line-height: 1.2; }
  .hero-lede { font-size: 15px; }
  .hero-visual { margin-top: 0; }
  .hero-caption { gap: 8px 16px; }
  .video-foot { flex-direction: column; gap: 4px; }
  .section { padding-top: 82px; padding-bottom: 82px; }
  .case-card { padding: 38px 0; }
  .arch-board { padding: 15px; }
  .arch-row-bottom, .decision-grid, .gallery-strip { grid-template-columns: 1fr; }
  .gallery-strip figure:first-child { grid-column: auto; }
  .gallery-strip img { height: 250px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-strip > div:last-child { border-bottom: 0; }
  .quote-panel { grid-template-columns: 1fr; padding: 26px; }
  .quote-mark { grid-row: auto; font-size: 50px; }
  .site-footer { flex-direction: column; padding-left: 20px; padding-right: 20px; }
  .closing { padding-top: 82px; padding-bottom: 82px; }
}
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .62s ease, transform .62s cubic-bezier(.22,.8,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after { transform: scaleX(1); }
.btn.is-disabled { opacity: .48; cursor: not-allowed; }
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

