:root {
  --ink: #0b1c2c;
  --ink-2: #132b40;
  --paper: #f4f1e9;
  --paper-2: #e8e1d3;
  --white: #fffdf8;
  --blue: #7db7d1;
  --blue-2: #b8dce7;
  --red: #d63b32;
  --gold: #e5ad54;
  --line: rgba(11, 28, 44, 0.15);
  --max: 1240px;
  --radius: 26px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.75; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: white; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; inset: 18px 22px auto; z-index: 50; max-width: 1380px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 11px 12px 11px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px;
  color: white; background: rgba(11, 28, 44, .8); backdrop-filter: blur(18px); box-shadow: 0 15px 50px rgba(0,0,0,.15);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .03em; }
.brand-mark, .footer-mark { display: grid; place-items: center; width: 30px; aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: serif; font-weight: 900; }
nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
nav > a { opacity: .78; }
nav > a:hover { opacity: 1; }
.nav-cta { opacity: 1; padding: 10px 15px; border-radius: 12px; background: var(--red); font-weight: 700; }

.hero {
  min-height: 920px; padding: 150px max(6vw, 28px) 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); gap: clamp(50px, 7vw, 100px); align-items: center;
  color: white; background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  overflow: hidden;
}
.hero-copy { max-width: 680px; }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.eyebrow span { width: 34px; height: 2px; background: var(--red); }
.eyebrow.dark { color: #536474; }
.hero h1 { margin: 0; font-size: clamp(100px, 13vw, 192px); line-height: .82; letter-spacing: -.08em; font-family: "Songti SC", STSong, serif; }
.hero-kicker { margin: 28px 0 8px; color: var(--gold); font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: .04em; }
.hero-intro { max-width: 650px; color: rgba(255,255,255,.72); font-size: clamp(16px, 1.55vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 15px; font-weight: 800; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red); color: white; box-shadow: 0 10px 26px rgba(214,59,50,.28); }
.button.secondary { border: 1px solid rgba(255,255,255,.28); color: white; }
.button.ink { background: var(--ink); color: white; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-meta div { min-width: 0; }
.hero-meta dt { margin-bottom: 8px; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.hero-meta dd { margin: 0; font-size: 13px; line-height: 1.5; }
.hero-visual { position: relative; max-width: 590px; justify-self: end; }
.image-frame { overflow: hidden; border-radius: 240px 240px 30px 30px; background: var(--paper-2); box-shadow: 0 40px 90px rgba(0,0,0,.32); }
.hero-frame img { aspect-ratio: .76; object-fit: cover; object-position: center 50%; }
.floating-note { position: absolute; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); color: var(--ink); background: var(--paper); box-shadow: 0 15px 30px rgba(0,0,0,.2); font-size: 10px; letter-spacing: .12em; line-height: 1.5; }
.floating-note strong { font-size: 13px; letter-spacing: 0; }
.note-top { top: 16%; left: -36px; transform: rotate(-4deg); }
.note-bottom { right: -28px; bottom: 12%; transform: rotate(3deg); background: var(--blue-2); }

.quick-facts { max-width: var(--max); margin: -36px auto 0; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 22px; box-shadow: 0 20px 70px rgba(11,28,44,.12); overflow: hidden; }
.quick-facts article { padding: 30px; border-right: 1px solid var(--line); }
.quick-facts article:last-child { border-right: 0; }
.quick-facts strong { display: block; color: var(--red); font-size: 26px; }
.quick-facts span { display: block; margin-top: 7px; color: #526171; font-size: 13px; }

.section { position: relative; padding: 130px max(6vw, 28px); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-label { max-width: none; position: absolute; right: max(3vw, 16px); top: 72px; color: rgba(11,28,44,.34); font-size: 10px; letter-spacing: .2em; writing-mode: vertical-rl; }
.section-label.light { color: rgba(255,255,255,.38); }
.section-heading { margin-bottom: 64px; }
.section-heading h2, .hardware-copy h2, .outcome-layout h2, .next-projects h2 { margin: 0; max-width: 850px; font-size: clamp(42px, 5.2vw, 78px); line-height: 1.08; letter-spacing: -.055em; }
.light-heading h2 { color: white; }

.overview-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: start; }
.lead { margin: 0 0 42px; font-size: clamp(19px, 2vw, 27px); line-height: 1.75; }
.problem-list { border-top: 1px solid var(--line); }
.problem-list div { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.problem-list span { color: var(--red); font-size: 12px; font-weight: 900; }
.problem-list p { margin: 0; color: #506070; }
.problem-list b { display: block; margin-bottom: 4px; color: var(--ink); }
.poster-card { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--ink); transform: rotate(1.5deg); box-shadow: 0 28px 70px rgba(11,28,44,.18); }
.poster-card img { border-radius: 16px; aspect-ratio: .5625; object-fit: cover; }
.poster-card figcaption, .prototype-photo figcaption, .exploded-card figcaption { padding: 13px 4px 3px; color: rgba(255,255,255,.62); font-size: 11px; }

.story, .role { color: white; background: var(--ink-2); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.prototype-photo { margin: 0; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); }
.prototype-photo img { aspect-ratio: .72; object-fit: cover; border-radius: 18px; }
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: phase; }
.timeline li { position: relative; padding: 0 0 34px 46px; border-left: 1px solid rgba(255,255,255,.2); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.timeline li:last-child { border-left-color: transparent; }
.timeline span { color: var(--blue); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.timeline h3 { margin: 10px 0 4px; font-size: 23px; }
.timeline p { margin: 0; color: rgba(255,255,255,.62); }

.system-flow { display: grid; grid-template-columns: repeat(7, auto); gap: 14px; align-items: center; padding: 30px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.flow-node { min-width: 160px; padding: 22px; border-radius: 18px; background: #e7ecea; }
.flow-node.accent { color: white; background: var(--ink); }
.flow-node small, .flow-node b, .flow-node span { display: block; }
.flow-node small { margin-bottom: 16px; color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.flow-node b { margin-bottom: 7px; font-size: 17px; }
.flow-node span { color: #65717c; font-size: 11px; line-height: 1.5; }
.flow-node.accent span { color: rgba(255,255,255,.6); }
.system-flow i { color: var(--red); font-style: normal; }
.system-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.system-columns article { padding: 30px; border-radius: 20px; background: var(--paper-2); }
.number { display: inline-grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: white; font: 800 12px/1 monospace; }
.system-columns h3 { margin: 28px 0 8px; font-size: 22px; }
.system-columns p { margin: 0; color: #5a6874; }

.hardware { color: white; background: #173145; }
.hardware-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: center; }
.hardware-copy p:not(.eyebrow) { color: rgba(255,255,255,.65); }
.specs { display: grid; gap: 1px; margin-top: 35px; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.12); }
.specs div { padding: 20px; background: rgba(0,0,0,.12); }
.specs b, .specs span { display: block; }
.specs b { margin-bottom: 5px; color: var(--gold); font-size: 19px; }
.specs span { color: rgba(255,255,255,.48); font-size: 11px; }
.exploded-card { margin: 0; padding: 12px; border-radius: var(--radius); background: var(--paper); }
.exploded-card img { border-radius: 17px; }
.exploded-card figcaption { color: #62707c; }

.experience-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 16px; align-items: stretch; }
.screen-card { position: relative; min-width: 0; overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 18px 50px rgba(11,28,44,.09); }
.screen-card img { height: 330px; object-fit: cover; }
.screen-card.tall img { height: 420px; }
.screen-card div { padding: 20px; }
.screen-card span { color: var(--red); font: 800 11px/1 monospace; }
.screen-card h3 { margin: 11px 0 5px; font-size: 22px; }
.screen-card p { margin: 0; color: #65727e; font-size: 13px; }
.center-action { margin-top: 34px; text-align: center; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius); background: rgba(255,255,255,.15); }
.role-scope { max-width: 860px; margin: -28px auto 38px; padding: 18px 20px; border-left: 3px solid var(--gold); color: rgba(255,255,255,.68); background: rgba(255,255,255,.06); }
.role-grid article { min-height: 260px; padding: 36px; background: rgba(4,19,31,.72); }
.role-grid span { color: var(--gold); font: 800 12px/1 monospace; }
.role-grid h3 { margin: 50px 0 9px; font-size: 25px; }
.role-grid p { max-width: 480px; margin: 0; color: rgba(255,255,255,.6); }

.outcome-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.outcome-list { border-top: 1px solid var(--line); }
.outcome-list article { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.outcome-list b { font-size: 15px; }
.outcome-list p { margin: 0; color: #60707c; font-size: 13px; }
.boundary-note { margin-top: 80px; padding: 30px 34px; display: grid; grid-template-columns: 180px 1fr; gap: 30px; border-radius: 20px; color: white; background: var(--ink); }
.boundary-note strong { color: var(--gold); }
.boundary-note p { margin: 0; color: rgba(255,255,255,.64); }

.next-projects { padding: 120px max(6vw, 28px); background: var(--blue-2); }
.next-projects > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.project-placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.project-placeholder-grid article { padding: 28px; border-radius: 20px; background: rgba(255,255,255,.54); border: 1px solid rgba(11,28,44,.08); }
.project-placeholder-grid span { color: var(--red); font: 800 9px/1 monospace; letter-spacing: .14em; }
.project-placeholder-grid h3 { margin: 40px 0 8px; font-size: 21px; }
.project-placeholder-grid p { margin: 0; color: #60717d; font-size: 13px; }

footer { display: flex; justify-content: space-between; align-items: center; padding: 40px max(6vw, 28px); color: white; background: var(--ink); }
footer > div { display: flex; align-items: center; gap: 12px; }
footer p { margin: 0; font-size: 13px; }
footer a { color: rgba(255,255,255,.62); font-size: 12px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 160px; }
  .hero-visual { max-width: 620px; justify-self: center; }
  .quick-facts { margin-left: 24px; margin-right: 24px; }
  .overview-grid, .story-grid, .hardware-layout, .outcome-layout { grid-template-columns: 1fr; }
  .poster-card { max-width: 420px; }
  .system-flow { grid-template-columns: 1fr; }
  .system-flow i { transform: rotate(90deg); justify-self: center; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-card.tall img { height: 330px; }
}

@media (max-width: 720px) {
  .site-header { inset: 10px 10px auto 10px; }
  nav > a:not(.nav-cta) { display: none; }
  .brand { font-size: 12px; }
  .hero { min-height: auto; padding: 130px 22px 72px; }
  .hero h1 { font-size: 112px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-visual { width: calc(100% - 22px); }
  .floating-note { display: none; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); margin-top: -22px; }
  .quick-facts article:nth-child(2) { border-right: 0; }
  .quick-facts article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 95px 22px; }
  .section-label { display: none; }
  .section-heading h2, .hardware-copy h2, .outcome-layout h2, .next-projects h2 { font-size: 42px; }
  .overview-grid, .story-grid, .hardware-layout, .outcome-layout { gap: 45px; }
  .system-columns, .project-placeholder-grid, .role-grid, .experience-grid { grid-template-columns: 1fr; }
  .role-grid article { min-height: auto; }
  .boundary-note { grid-template-columns: 1fr; }
  .outcome-list article { grid-template-columns: 92px 1fr; }
  .next-projects { padding: 90px 22px; }
  footer { align-items: flex-start; gap: 28px; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
