:root {
  --ink: #27313c;
  --muted: #5f6b76;
  --paper: #ffffff;
  --soft: #f6f8fa;
  --line: #dce3e9;
  --blue: #2d72b8;
  --blue-dark: #1d5c9a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
video, img { display: block; max-width: 100%; }
::selection { color: white; background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: fixed; z-index: 100; top: -5rem; left: 1rem;
  padding: .65rem 1rem; color: white; background: var(--blue);
}
.skip-link:focus { top: 1rem; }

.topbar {
  position: fixed; z-index: 30; top: 0; right: 0; left: 0;
  display: flex; align-items: center; gap: 2rem; height: 68px;
  padding: 0 32px; border-bottom: 1px solid rgba(39, 49, 60, .1);
  color: var(--ink); background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { width: auto; height: 43px; }
.topbar nav { display: flex; gap: 1.7rem; margin-left: auto; }
.topbar nav a { color: var(--muted); font-size: 1rem; font-weight: 600; }
.topbar nav a:hover { color: var(--blue); }
.mini-button { padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; font-weight: 600; }
.mini-button:hover { color: var(--blue); border-color: var(--blue); }
.coming-soon { pointer-events: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: white; background: #26313a; }
.hero-grid { position: absolute; inset: 68px 0 0; overflow: hidden; background: #d7dce0 url("../images/hero-poster.jpg") center / cover no-repeat; }
.hero-grid video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: saturate(.95) contrast(1.03); }
.hero-wash { position: absolute; inset: 68px 0 0; background: linear-gradient(180deg, rgba(9, 19, 28, .2), rgba(9, 19, 28, .32) 55%, rgba(9, 19, 28, .55)); }
.hero-copy {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  flex-direction: column; min-height: 100svh; padding: 120px 24px 100px; text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.eyebrow, .overline { font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: #fff; }
.hero h1 { margin: .55rem 0 0; font-size: clamp(4.4rem, 7.8vw, 5.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.hero-title { max-width: min(1500px, 94vw); margin: .8rem 0 0; font-size: clamp(2.25rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; text-shadow: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 43px; padding: .65rem 1.1rem; border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px; color: white; font-size: 1.1rem; font-weight: 700;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { color: var(--ink); background: white; }
.button.primary { color: var(--ink); background: white; border-color: white; }
.button.primary:hover { color: white; background: var(--blue); border-color: var(--blue); }
.hero-copy .button { min-height: 52px; padding: .8rem 1.35rem; font-size: 1rem; }
.hero-copy .button > span { font-size: 1.3rem; font-weight: 800; line-height: 1; }

.author-info { padding: 52px 24px 60px; text-align: center; background: white; }
.author-list, .affiliation-list { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 1.2rem; row-gap: .2rem; max-width: 1280px; margin: 0 auto; }
.author-list { color: var(--blue); font-size: 1.55rem; font-weight: 600; line-height: 1.8; }
.author-info sup { position: relative; top: -.1em; margin-left: .08em; font-size: .68em; line-height: 0; }
.affiliation-list { max-width: 1200px; margin-top: .85rem; color: var(--ink); font-size: 1.4rem; line-height: 1.8; }
.author-note { margin: .75rem 0 0; color: var(--muted); font-size: 1.2rem; font-style: italic; }
.author-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.author-actions .button { min-height: 52px; padding: .75rem 1.35rem; border-color: #30353a; background: #30353a; color: white; font-size: 1.2rem; }
.author-actions .button:hover { border-color: var(--blue); background: var(--blue); color: white; }
.author-actions .button.primary { border-color: var(--blue); background: var(--blue); color: white; }
.author-actions .button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.author-actions .button > span { font-size: 1.35rem; line-height: 1; }

.section { padding: 96px max(24px, calc((100vw - 1120px) / 2)); }
.section.light { background: var(--paper); }
.section.lab { background: var(--soft); }
.section.dark { color: var(--ink); background: var(--paper); }
.section-title, .live-title, .section-head h2 {
  margin: 0; font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700;
  line-height: 1.25; letter-spacing: -.035em; text-align: center;
}
.section-intro, .live-intro { max-width: 720px; margin: .8rem auto 2.3rem; color: var(--muted); font-size: 1.2rem; line-height: 1.7; text-align: center; }

.overview-section { padding-top: 106px; }
.overview-stack { display: grid; gap: 2rem; margin-top: 2.5rem; }
.overview-viewer { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 10px 35px rgba(31, 52, 72, .07); }
.system-panel { display: grid; place-items: center; min-height: 360px; overflow: hidden; background: white; }
.system-panel img { width: 100%; max-height: 78vh; object-fit: contain; }
.video-panel .feature-video { max-height: 78vh; }

.abstract-block { max-width: 980px; margin: 88px auto 0; }
.abstract-block p { margin: 1.4rem auto 0; color: var(--ink); font-size: 1.2rem; line-height: 1.8; text-align: left; }
.film { position: relative; overflow: hidden; background: #18222c; }
.feature-video { width: 100%; max-height: 75vh; object-fit: contain; background: #18222c; }
.film-label, .sound-toggle { position: absolute; top: 16px; padding: .45rem .65rem; border-radius: 5px; color: white; background: rgba(15, 25, 35, .75); font-size: 1rem; }
.film-label { left: 16px; }
.sound-toggle { right: 16px; border: 1px solid rgba(255, 255, 255, .5); cursor: pointer; }

.live-title { margin-bottom: 3rem; color: #111; }
.live-lab { padding-right: max(20px, calc((100vw - 1280px) / 2)); padding-left: max(20px, calc((100vw - 1280px) / 2)); }
.live-task-head { margin-bottom: 1.3rem; }
.live-task-head h3 { margin: 0; color: #111; font-size: clamp(1.6rem, 2.35vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; }
.keyboard-demo { margin-top: 5rem; }
.live-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 14px 40px rgba(31, 52, 72, .08); }
.live-embed { position: relative; min-height: clamp(680px, 80vh, 880px); overflow: hidden; background: #17212b; }
.live-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.live-embed.loaded iframe { opacity: 1; pointer-events: auto; }
.live-full-page { position: absolute; z-index: 3; top: 16px; left: 16px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: #111; background: white; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.live-full-page:hover { border-color: #111; }
.live-placeholder { position: absolute; z-index: 1; top: 50%; left: 50%; width: min(570px, calc(100% - 40px)); padding: 2.3rem; transform: translate(-50%, -50%); border-radius: 10px; background: white; text-align: center; box-shadow: 0 12px 36px rgba(0, 0, 0, .17); transition: opacity .25s ease; }
.live-embed.loaded .live-placeholder { opacity: 0; pointer-events: none; }
.live-placeholder h3 { margin: 0 0 1.35rem; color: #111; font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.25; }
.live-placeholder button { display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; padding: .7rem 1.2rem; border: 0; border-radius: 999px; color: white; background: var(--blue); cursor: pointer; font-size: 1.1rem; font-weight: 700; }
.live-placeholder button:hover { background: var(--blue-dark); }

.showcase-section { border-bottom: 1px solid var(--line); }
.showcase-video-frame { max-width: 1120px; margin: 2.4rem auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #11191e; box-shadow: 0 14px 40px rgba(31, 52, 72, .08); }
.showcase-video-frame video { width: 100%; max-height: 75vh; object-fit: contain; }

.section-head { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-index { display: block; margin-bottom: .8rem; color: var(--blue); font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.section-head h2 em { font-style: normal; font-weight: inherit; }
.section-head p { margin: .9rem auto 0; color: var(--muted); font-size: 1.2rem; line-height: 1.7; }
.results .section-head { margin-bottom: 48px; }
.results .section-head h2 { color: #111; font-weight: 700; }
.result-scenario + .result-scenario { margin-top: 54px; }
.result-condition { margin-bottom: 18px; }
.result-condition h3 { margin: 0; color: #111; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.result-card-head { padding: 1.4rem 1.35rem 1.3rem; }
.result-card h4 { margin: 0 0 .55rem; color: #111; font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.result-rate { display: block; color: #111; font-size: clamp(3rem, 4.3vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.055em; }
.result-rate sup { font-size: .45em; vertical-align: top; }
.result-card video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #11191e; }

.closing { position: relative; display: grid; place-items: center; min-height: 430px; overflow: hidden; color: var(--ink); background: #eef4f9; text-align: center; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(245, 249, 252, .9); }
.closing > img { position: absolute; inset: -25% 0; width: 100%; opacity: .24; filter: grayscale(1) blur(3px); }
.closing > div { position: relative; z-index: 2; padding: 5rem 1.5rem; }
.closing h2 { margin: 0; font-size: clamp(2.8rem, 4.5vw, 4rem); line-height: 1.1; letter-spacing: -.05em; }
.closing .button { color: var(--blue); border-color: var(--blue); font-size: 1.2rem; }
.closing .button:hover { color: white; background: var(--blue); }
.closing .button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.closing .button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 32px; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 1rem; }
footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  html { scroll-padding-top: 58px; }
  .topbar { height: 58px; padding: 0 18px; }
  .topbar .brand-logo { height: 37px; }
  .topbar nav { display: none; }
  .mini-button { margin-left: auto; }
  .hero-grid, .hero-wash { top: 58px; }
  .hero-copy { padding: 100px 20px 90px; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 4.8rem); }
  .hero-title { font-size: clamp(1.95rem, 6.5vw, 2.55rem); }
  .hero-title br { display: none; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .button { width: min(100%, 280px); }
  .author-info { padding: 38px 20px 48px; }
  .author-list { column-gap: .8rem; font-size: 1.32rem; }
  .affiliation-list { column-gap: .8rem; font-size: 1.2rem; }
  .author-note { font-size: 1.08rem; }
  .author-actions .button { font-size: 1.08rem; }
  .closing .button { font-size: 1.08rem; }
  .author-actions { flex-direction: column; align-items: center; }
  .author-actions .button { width: min(100%, 280px); }
  .section { padding: 72px 20px; }
  .overview-section { padding-top: 84px; }
  .section-title, .live-title, .section-head h2 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
  .overview-stack { gap: 1.5rem; margin-top: 2rem; }
  .overview-viewer { padding: 7px; }
  .system-panel { min-height: 220px; }
  .abstract-block { margin-top: 64px; }
  .live-embed { min-height: 560px; }
  .live-placeholder { padding: 1.5rem; }
  .result-grid { grid-template-columns: 1fr; }
  .result-scenario + .result-scenario { margin-top: 42px; }
  .closing { min-height: 370px; }
  footer { flex-direction: column; align-items: flex-start; gap: .5rem; padding: 2rem 20px; }
}

@media (max-width: 480px) {
  .hero .eyebrow { max-width: 300px; }
}

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