:root {
  color-scheme: dark;
  --bg: #101214;
  --bg-soft: #171a1d;
  --panel: #1d2023;
  --ink: #f2f0ea;
  --muted: #a8abad;
  --line: rgba(242, 240, 234, 0.16);
  --line-strong: rgba(242, 240, 234, 0.28);
  --accent: #d56f31;
  --accent-dark: #9d4820;
  --light: #ece9e2;
  --dark-ink: #151719;
  --radius: 18px;
  --header-h: 76px;
  --page: min(1240px, calc(100vw - 64px));
  font-family: "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }

.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: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--light);
  color: var(--dark-ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #ff995f;
  outline-offset: 4px;
}

.section-shell { width: var(--page); margin-inline: auto; }
.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  width: var(--page);
  height: var(--header-h);
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 18, 20, 0.83);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 7px;
  font: 800 24px/1 Arial, sans-serif;
  letter-spacing: -0.08em;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font: 800 16px/1 Arial, sans-serif; letter-spacing: 0.12em; }
.brand-copy small { margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link, .legal-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease;
}
.nav-link:hover, .legal-links button:hover { color: var(--ink); }
.menu-toggle { display: none; }

.button {
  min-height: 46px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { background: #e27b3d; border-color: #e27b3d; transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 8px 15px; }
.button-light { background: var(--dark-ink); border-color: var(--dark-ink); }
.button-light:hover { background: #282b2f; border-color: #282b2f; }
.text-link {
  width: fit-content;
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.hero {
  position: relative;
  min-height: 780px;
  height: 100svh;
  overflow: hidden;
  background: #0d0f11;
}
.hero-image { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; object-position: 58% center; transform-origin: 62% center; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 11, 0.95) 0%, rgba(8, 10, 11, 0.76) 37%, rgba(8, 10, 11, 0.14) 69%, rgba(8, 10, 11, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--page);
  height: 100%;
  margin-inline: auto;
  padding-top: clamp(170px, 22vh, 230px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.eyebrow, .section-kicker {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(64px, 8vw, 118px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.hero-lede { max-width: 540px; margin-bottom: 34px; color: #c8c8c5; font-size: clamp(17px, 1.6vw, 21px); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-note {
  position: absolute;
  z-index: 2;
  right: max(32px, calc((100vw - min(1240px, calc(100vw - 64px))) / 2));
  bottom: 36px;
  display: flex;
  gap: 24px;
  color: #c5c6c4;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.hero-note span + span::before { content: "/"; margin-right: 24px; color: var(--accent); }

.positioning { padding: 150px 0 120px; border-bottom: 1px solid var(--line); }
.positioning h2, .section-heading h2, .brain h2, .about h2, .contact h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.positioning-copy {
  max-width: 680px;
  margin: 74px 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
  color: var(--muted);
  font-size: 17px;
}

.workshop { padding: 140px 0; }
.section-heading {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 80px;
}
.section-heading > p { max-width: 430px; margin: 0 0 8px; color: var(--muted); font-size: 17px; }
.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.project-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(350px, 0.6fr); min-height: 610px; }
.project-visual { position: relative; display: block; min-height: 100%; overflow: hidden; background: #0b0d0e; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero-image, .project-visual img { backface-visibility: hidden; will-change: transform; }
.project-feature .project-visual img { object-position: center; }
.project-body { padding: clamp(30px, 4vw, 58px); display: flex; flex-direction: column; align-items: flex-start; }
.project-meta { width: 100%; margin-bottom: 46px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.project-meta span:first-child { color: var(--accent); font-weight: 750; }
.project h3 { margin-bottom: 24px; font-size: clamp(36px, 4vw, 60px); line-height: 1; letter-spacing: -0.05em; }
.project h3 small { color: var(--muted); font: 500 0.35em/1.4 Arial, sans-serif; letter-spacing: 0.03em; }
.project-body > p { color: #c0c2c1; font-size: 17px; }
.project-scope { margin-top: auto; padding-top: 40px; color: var(--muted) !important; font-size: 12px !important; }
.project-body .text-link { margin-top: 18px; }
.project-pair { margin-top: 24px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
.project-image-card .project-visual { height: 380px; }
.project-process { min-height: 710px; padding: clamp(30px, 4vw, 58px); display: flex; flex-direction: column; }
.project-process h3 { margin-top: 8px; }
.project-process > p { max-width: 500px; color: var(--muted); font-size: 17px; }
.process-list { margin: auto 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.process-list span { color: var(--muted); }
.process-list strong { font-weight: 600; }

.agent-project {
  margin-top: 24px;
  padding: clamp(36px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 90px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
}
.agent-project .project-meta { color: rgba(255,255,255,.72); }
.agent-project .project-meta span:first-child { color: #fff; }
.agent-copy h3 { max-width: 720px; margin-bottom: 28px; font-size: clamp(42px, 6vw, 78px); line-height: 1; letter-spacing: -0.055em; }
.agent-copy > p { max-width: 620px; margin-bottom: 0; color: rgba(255,255,255,.84); font-size: 18px; }
.agent-capabilities { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.35); align-self: end; }
.agent-capabilities li { padding: 19px 0; display: grid; grid-template-columns: 110px 1fr; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.35); }
.agent-capabilities span { font-weight: 800; }

.brain { padding: 140px 0; background: var(--light); color: var(--dark-ink); }
.brain .section-kicker { color: var(--accent-dark); }
.brain-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(70px, 10vw, 150px); align-items: center; }
.brain-copy > p:not(.section-kicker) { max-width: 530px; margin: 34px 0; color: #5a5d5f; font-size: 17px; }
.brain .text-link { color: var(--dark-ink); }
.idea-grid { display: flex; flex-wrap: wrap; align-content: center; gap: 12px; }
.idea-grid span {
  padding: 16px 20px;
  border: 1px solid rgba(21,23,25,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.46);
  font: 700 clamp(15px, 1.6vw, 21px)/1.2 Arial, "Microsoft YaHei UI", sans-serif;
  transition: transform 280ms ease, background 280ms ease;
}
.idea-grid span:nth-child(3n + 1) { transform: translateY(-8px); }
.idea-grid span:nth-child(4n + 2) { background: #d6d3cc; }

.about { padding: 140px 0; }
.about-statement { max-width: 1000px; }
.about-grid { margin-top: 80px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.about-card { min-height: 320px; padding: clamp(32px, 5vw, 62px); display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.about-card > p:not(.about-label) { max-width: 600px; color: #c3c4c2; font-size: clamp(18px, 2vw, 25px); line-height: 1.55; }
.about-label { margin-bottom: 54px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }
.about-card .text-link, .quiet-note { margin-top: auto; }
.quiet-note { color: var(--muted); font-size: 14px; }

.contact { margin-bottom: 24px; padding: clamp(60px, 8vw, 110px); border-radius: var(--radius); background: var(--light); color: var(--dark-ink); }
.contact .section-kicker { color: var(--accent-dark); }
.contact h2 { max-width: 1040px; }
.contact .button { margin-top: 58px; }

.site-footer { padding: 48px 0 60px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { margin: 0; font-size: 13px; }
.footer-brand small { color: #777b7d; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 12px; }
.legal-links a { padding: 10px 0; color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--ink); }
.legal-links button { padding: 10px 0; font-size: 12px; }

.company-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #17191c;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
}
.company-dialog::backdrop { background: rgba(3,4,5,.78); backdrop-filter: blur(8px); }
.dialog-topline { position: sticky; z-index: 1; top: 0; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(23,25,28,.94); color: var(--muted); font-size: 13px; }
.dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); font-size: 26px; cursor: pointer; }
.dialog-content { padding: clamp(30px, 6vw, 72px); }
.dialog-content h2 { margin-bottom: 24px; font-size: clamp(38px, 6vw, 66px); line-height: 1; letter-spacing: -0.05em; }
.dialog-lede { color: var(--ink) !important; font-size: 20px !important; }
.dialog-content > p { color: var(--muted); }
.company-scope { margin: 44px 0; border-top: 1px solid var(--line); }
.company-scope div { padding: 18px 0; display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--line); }
.company-scope dt { color: var(--accent); font-weight: 800; }
.company-scope dd { margin: 0; color: #c2c4c3; }

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.2,1); }

@media (max-width: 900px) {
  :root { --page: min(100% - 36px, 720px); --header-h: 66px; }
  .site-header { top: 10px; padding-inline: 12px; }
  .brand-copy small { display: none; }
  .menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; display: block; background: var(--ink); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; padding: 12px; display: none; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: rgba(16,18,20,.98); box-shadow: 0 25px 60px rgba(0,0,0,.4); }
  .site-nav.is-open { display: flex; }
  .nav-link { text-align: left; }
  .hero { min-height: 740px; }
  .hero-image { object-position: 67% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,10,11,.94) 0%, rgba(8,10,11,.72) 60%, rgba(8,10,11,.28) 100%); }
  .hero-content { padding-top: 170px; }
  .hero-note { right: 18px; bottom: 24px; left: 18px; flex-wrap: wrap; gap: 8px 14px; }
  .hero-note span + span::before { margin-right: 14px; }
  .positioning, .workshop, .brain, .about { padding-block: 100px; }
  .section-heading, .brain-inner { grid-template-columns: 1fr; gap: 48px; }
  .section-heading > p { margin-left: auto; }
  .project-feature, .agent-project { grid-template-columns: 1fr; }
  .project-feature .project-visual { height: 440px; }
  .project-pair { grid-template-columns: 1fr; }
  .project-process { min-height: 650px; }
  .agent-project { gap: 56px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 28px); }
  .hero { min-height: 720px; }
  .hero-image { object-position: 64% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,10,11,.66) 0%, rgba(8,10,11,.82) 48%, rgba(8,10,11,.98) 100%); }
  .hero-content { justify-content: flex-end; padding: 0 0 126px; }
  .hero h1 { font-size: clamp(52px, 17vw, 74px); }
  .hero-lede { max-width: 95%; font-size: 16px; }
  .hero-actions { width: 100%; align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-note { font-size: 10px; letter-spacing: .03em; }
  .positioning { padding-top: 88px; }
  .positioning h2, .section-heading h2, .brain h2, .about h2, .contact h2 { font-size: clamp(38px, 12vw, 56px); }
  .positioning-copy { margin-top: 48px; grid-template-columns: 1fr; gap: 18px; }
  .section-heading { margin-bottom: 48px; }
  .project-feature .project-visual, .project-image-card .project-visual { height: 300px; }
  .project-meta { margin-bottom: 34px; flex-direction: column; gap: 5px; }
  .project h3 { font-size: 40px; }
  .project-process { min-height: auto; }
  .process-list { width: 100%; margin: 52px 0 28px; }
  .process-list li { flex-direction: column; gap: 2px; }
  .agent-project { margin-inline: -2px; padding: 36px 24px; }
  .agent-capabilities li { grid-template-columns: 1fr; gap: 3px; }
  .brain-inner { gap: 54px; }
  .idea-grid span { padding: 13px 15px; }
  .about-grid { margin-top: 52px; }
  .contact { width: calc(100% - 20px); padding: 56px 24px; }
  .contact .button { width: 100%; font-size: 13px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .legal-links { justify-content: flex-start; flex-direction: column; gap: 0; }
  .dialog-content { padding: 34px 24px; }
  .company-scope div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-image, .project-visual img { will-change: auto; }
}
