:root{--bg:#f4f6f8;--paper:#fff;--ink:#172033;--muted:#667085;--line:#dfe4eb;--blue:#285fbd;--blue-soft:#edf3ff;--accent:#7654a6;--tint:#f8fafc;--shadow:0 18px 50px rgba(29,43,68,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font-family:Inter,"Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;line-height:1.75}a{color:inherit}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-inner{max-width:1180px;margin:auto;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px}.site-name{text-decoration:none;font-size:14px;font-weight:800}nav{display:flex;gap:20px}nav a{text-decoration:none;color:var(--muted);font-size:12px;font-weight:700}nav a:hover{color:var(--blue)}
.hero{padding:72px 24px 60px;background:radial-gradient(circle at 88% 18%,rgba(118,84,166,.12),transparent 30%),radial-gradient(circle at 6% 18%,rgba(40,95,189,.11),transparent 28%),linear-gradient(180deg,#fff,#f5f7fb);border-bottom:1px solid var(--line)}.hero-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.55fr);gap:46px}.eyebrow{margin:0 0 9px;color:var(--blue);font-size:10px;letter-spacing:.18em;font-weight:900}h1{margin:0;font-size:clamp(34px,5vw,62px);line-height:1.18;letter-spacing:-.035em}.lead{max-width:780px;margin:26px 0 0;font-size:16px;color:#4e5c73}.hero-note{margin-top:28px;padding:15px 17px;max-width:760px;display:grid;grid-template-columns:150px 1fr;gap:12px;border:1px solid #dfe6f0;border-radius:13px;background:rgba(255,255,255,.72)}.hero-note strong,.hero-note span{font-size:11px}.hero-note span{color:var(--muted)}
.hero-summary{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:8px 18px}.summary-item{padding:16px 2px;border-bottom:1px solid var(--line)}.summary-item:last-child{border-bottom:0}.summary-item>span{display:block;color:var(--blue);font-size:9px;font-weight:900;letter-spacing:.15em}.summary-item strong{display:block;margin:2px 0 4px;font-size:15px}.summary-item p{margin:0;color:var(--muted);font-size:10px}
.section{max-width:1180px;margin:0 auto;padding:76px 24px}.tint{max-width:none;padding-left:max(24px,calc((100vw - 1132px)/2));padding-right:max(24px,calc((100vw - 1132px)/2));background:var(--tint);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.section-heading{max-width:800px}.section-heading h2{margin:0 0 13px;font-size:clamp(27px,3vw,40px);letter-spacing:-.025em}.section-heading>p:not(.eyebrow){margin:0 0 12px;color:#526076;font-size:14px}
.concept-grid{margin-top:34px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.concept-grid article{min-height:220px;padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff}.concept-grid article>span{color:#8ba0c5;font-size:11px;font-weight:900}.concept-grid h3{margin:30px 0 8px;font-size:18px}.concept-grid p{margin:0;color:var(--muted);font-size:11px}.research-position{margin-top:16px;padding:19px 22px;border-left:4px solid var(--accent);border-radius:6px 13px 13px 6px;background:#f8f5fc}.research-position strong{font-size:13px}.research-position p{margin:5px 0 0;color:#5f6070;font-size:11px}
.flow{margin:36px 0 28px;display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr;gap:10px;align-items:stretch}.flow>div{padding:18px 14px;border:1px solid var(--line);border-radius:13px;background:#fff}.flow b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--blue-soft);color:var(--blue);font-size:10px}.flow h3{margin:12px 0 5px;font-size:14px}.flow p{margin:0;color:var(--muted);font-size:9.5px;line-height:1.5}.flow i{display:grid;place-items:center;color:#98a3b3;font-style:normal;font-weight:900}
.figure-slot{margin:28px 0 0}.placeholder{min-height:260px;display:grid;place-items:center;align-content:center;gap:6px;text-align:center;border:1.5px dashed #b8c4d4;border-radius:14px;background:linear-gradient(135deg,#fff,#f4f7fb)}.placeholder span{color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.18em}.placeholder strong{font-size:14px}.placeholder code{padding:4px 8px;background:#eef2f7;border-radius:6px;color:#5b6371;font-size:10px}.placeholder.score{min-height:330px}figcaption{margin-top:8px;color:#7a8494;font-size:9px}
.representation-grid{margin-top:32px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.code-card,.description-card{border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden}.code-head{padding:11px 14px;display:flex;justify-content:space-between;background:#17233a;color:#fff;font-size:9px;letter-spacing:.1em}.code-card pre{margin:0;padding:22px;min-height:230px;overflow:auto;background:#101827;color:#dfe8f6;font-size:13px;line-height:1.7}.description-card{padding:24px}.description-card>span,.case-note>span{color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.13em}.description-card h3{margin:7px 0 10px;font-size:20px}.description-card p,.case-note p{color:var(--muted);font-size:11px}
.table-wrap{margin-top:34px;overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.theory-table{width:100%;border-collapse:collapse;min-width:820px}.theory-table th{padding:11px 14px;text-align:left;color:#667085;background:#f3f6fa;border-bottom:1px solid var(--line);font-size:10px}.theory-table td{padding:14px;border-bottom:1px solid #edf0f4;font-size:11px;vertical-align:top}.theory-table tr:last-child td{border-bottom:0}.note{margin:9px 2px 0;color:#8992a1;font-size:9px}
.gravitonal-grid{margin-top:32px;display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.pitch-card,.case-note{border:1px solid var(--line);border-radius:15px;background:#fff;padding:20px}.pitch-card table{width:100%;border-collapse:collapse}.pitch-card th,.pitch-card td{padding:9px 8px;text-align:left;border-bottom:1px solid #edf0f4;font-size:10px}.pitch-card th{color:#667085;font-size:9px}.case-note{background:#f9f7fd}.case-note .notes{font-weight:800;color:var(--blue);letter-spacing:.04em}
.webapp-section{padding-top:40px;padding-bottom:40px}.webapp-card{padding:34px;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;color:#fff;background:linear-gradient(135deg,#17233a,#233a67);border-radius:20px;box-shadow:var(--shadow)}.webapp-card .eyebrow{color:#a9c3ff}.webapp-card h2{margin:0 0 10px;font-size:30px}.webapp-card p{margin:0 0 10px;color:#d8e0ef;font-size:12px}.webapp-note{opacity:.78}.app-link{min-width:210px;padding:13px 15px;display:flex;justify-content:space-between;gap:20px;align-items:center;text-decoration:none;background:#fff;color:#1b2b48;border-radius:10px;font-size:11px;font-weight:800}
.final-section{padding-bottom:90px}footer{padding:24px max(24px,calc((100vw - 1132px)/2));display:flex;justify-content:space-between;gap:20px;color:#8a93a2;background:#172033;font-size:9px}footer div{display:flex;gap:10px}footer strong{color:#dfe6f3}footer p{margin:0}
@media(max-width:920px){.hero-grid,.representation-grid,.gravitonal-grid,.webapp-card{grid-template-columns:1fr}.concept-grid{grid-template-columns:1fr 1fr}.flow{grid-template-columns:1fr}.flow i{transform:rotate(90deg);height:18px}.app-link{width:max-content}nav{display:none}}@media(max-width:600px){.hero{padding-top:50px}.section{padding-top:56px;padding-bottom:56px}.concept-grid{grid-template-columns:1fr}.hero-note{grid-template-columns:1fr}.header-inner{padding:12px 16px}.hero,.section,.tint{padding-left:16px;padding-right:16px}.webapp-card{padding:24px}.app-link{width:100%}}


/* Gravitonal Theory downloadable data + listening examples */
.gravitonal-resources{
  margin-top:16px;
  display:grid;
  gap:16px;
}
.resource-card{
  padding:20px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}
.resource-kicker{
  display:block;
  margin-bottom:4px;
  color:var(--blue);
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}
.resource-card h3,
.listening-head h3{
  margin:0 0 6px;
  font-size:18px;
}
.resource-card p,
.listening-head p{
  margin:0;
  color:var(--muted);
  font-size:10.5px;
}
.resource-button{
  min-width:175px;
  padding:11px 13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  text-decoration:none;
  border:1px solid #cdd9eb;
  border-radius:9px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:10px;
  font-weight:800;
}
.resource-button:hover{
  background:#e5eeff;
}
.listening-block{
  padding:20px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}
.listening-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);
  gap:30px;
  align-items:end;
  margin-bottom:15px;
}
.audio-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.audio-example{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  padding:14px;
  border:1px solid #e1e6ee;
  border-radius:12px;
  background:#f9fbfd;
}
.track-no{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:10px;
  background:#17233a;
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
}
.audio-meta h4{
  margin:0 0 2px;
  font-size:13px;
}
.audio-meta p{
  margin:0 0 8px;
  color:var(--muted);
  font-size:9px;
}
.audio-meta audio{
  display:block;
  width:100%;
  height:34px;
}
@media(max-width:760px){
  .resource-card,
  .listening-head,
  .audio-grid{
    grid-template-columns:1fr;
  }
  .resource-button{
    width:max-content;
  }
}


/* Research metadata */
.research-meta{
  margin-top:14px;
  max-width:880px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.9);
  overflow:hidden;
}
.research-meta-main{
  display:grid;
  grid-template-columns:1.15fr .85fr .85fr;
}
.meta-item{
  padding:14px 15px;
  border-right:1px solid var(--line);
}
.meta-item:last-child{border-right:0}
.meta-item>span{
  display:block;
  color:var(--blue);
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}
.meta-item strong{
  display:block;
  margin:2px 0 1px;
  font-size:11px;
}
.meta-item small{
  display:block;
  color:var(--muted);
  font-size:8.5px;
  line-height:1.45;
}
.meta-links{
  padding:9px 13px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  border-top:1px solid var(--line);
  background:#f8fafc;
}
.meta-links a{
  padding:5px 8px;
  text-decoration:none;
  border:1px solid #dce4ef;
  border-radius:7px;
  background:#fff;
  color:#4e5d75;
  font-size:8.5px;
  font-weight:700;
}
.meta-links a:hover{color:var(--blue);border-color:#bfcde3}

/* Related work */
.related-grid{
  margin-top:32px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.related-card{
  min-height:205px;
  padding:20px;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.related-card:hover{
  transform:translateY(-2px);
  border-color:#bac9df;
  box-shadow:0 12px 28px rgba(29,43,68,.07);
}
.related-year{
  color:var(--accent);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.related-card h3{
  margin:8px 0 7px;
  font-size:17px;
}
.related-card p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:10.5px;
}
.related-card strong{
  margin-top:auto;
  color:var(--blue);
  font-size:9.5px;
}

/* Citation */
.citation-section{
  max-width:none;
  padding-left:max(24px,calc((100vw - 1132px)/2));
  padding-right:max(24px,calc((100vw - 1132px)/2));
  background:#eef2f7;
  border-top:1px solid var(--line);
}
.citation-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:14px;
}
.citation-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #d8e0ea;
  border-radius:14px;
  background:#fff;
}
.citation-card-head{
  min-height:42px;
  padding:9px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--line);
  background:#f8fafc;
}
.citation-card-head>span{
  color:#5f6d82;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.copy-button{
  padding:5px 8px;
  border:1px solid #ccd6e4;
  border-radius:7px;
  background:#fff;
  color:#54647d;
  font:inherit;
  font-size:8.5px;
  font-weight:700;
  cursor:pointer;
}
.copy-button:hover{color:var(--blue);border-color:#aebfda}
.citation-text{
  margin:0;
  padding:18px;
  color:#334056;
  font-size:11px;
  line-height:1.8;
}
.bibtex-card pre{
  margin:0;
  padding:17px 18px;
  overflow:auto;
  background:#101827;
  color:#dfe8f6;
  font-size:10px;
  line-height:1.65;
}
.citation-links{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.citation-links a{
  color:#66758d;
  font-size:9px;
  font-weight:700;
  text-decoration:none;
}
.citation-links a:hover{color:var(--blue)}

@media(max-width:920px){
  .research-meta-main,
  .citation-grid{grid-template-columns:1fr}
  .meta-item{border-right:0;border-bottom:1px solid var(--line)}
  .meta-item:last-child{border-bottom:0}
  .related-grid{grid-template-columns:1fr}
}


/* v4: revised research scope, chord examples, offline app, footer */
.hero-grid{grid-template-columns:minmax(0,1fr)!important;max-width:1180px}.hero-grid>div{max-width:950px}
.inline-emphasis{color:#173e86;background:linear-gradient(transparent 62%,#dce8ff 62%)}
.scope-note{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.scope-note>div{padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:#fff}.scope-note span{display:block;color:var(--blue);font-size:8px;font-weight:900;letter-spacing:.12em}.scope-note strong{display:block;margin:2px 0 4px;font-size:12px}.scope-note p{margin:0;color:var(--muted);font-size:9.5px}
.chord-summary{background:#f9f7fd}.mini-chords{margin-top:10px;display:grid;gap:8px}.mini-chord{padding:10px 11px;border:1px solid #e4dff0;border-radius:9px;background:rgba(255,255,255,.78)}.mini-chord-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.mini-chord-head strong{font-size:11px}.mini-chord-head em{color:#7c6a96;font-size:8px;font-style:normal;font-weight:800}.mini-chord .notes{margin:2px 0 3px;font-size:10px}.mini-chord p:last-child{margin:0;font-size:9px;line-height:1.45}
.app-link.is-disabled{opacity:.55;cursor:not-allowed;user-select:none;pointer-events:none;background:#e9edf3;color:#788397}.preprint-link{padding:6px 9px;border:1px solid #b9c9e1;border-radius:7px;background:#fff;color:var(--blue)!important}
.site-footer{align-items:flex-end}.footer-brand,.footer-meta{display:flex;flex-direction:column;gap:2px}.footer-meta{text-align:right}.footer-meta p{margin:0}
@media(max-width:760px){.scope-note{grid-template-columns:1fr}.site-footer{align-items:flex-start;flex-direction:column}.footer-meta{text-align:left}}


/* v5: use the full hero width after removing the former summary column */
.hero{
  padding-top:58px;
  padding-bottom:48px;
}
.hero-grid{
  display:block!important;
  max-width:1180px!important;
}
.hero-grid>div{
  width:100%;
  max-width:none!important;
}
.hero .lead{
  max-width:940px;
}
.hero .hero-note{
  width:100%;
  max-width:none;
  grid-template-columns:170px minmax(0,1fr);
}
.hero .research-meta{
  width:100%;
  max-width:none;
}
.hero .research-meta-main{
  grid-template-columns:1.2fr .9fr .9fr;
}
@media(max-width:760px){
  .hero{
    padding-top:46px;
    padding-bottom:42px;
  }
  .hero .hero-note{
    grid-template-columns:1fr;
  }
}


/* v6: wider text measure and publication title */
.section-heading{
  max-width:none!important;
  width:100%;
}
.section-heading>p:not(.eyebrow){
  max-width:none!important;
  width:100%;
}
.hero .lead{
  max-width:none!important;
  width:100%;
}
.research-position{
  width:100%;
}
.webapp-copy{
  max-width:none!important;
}
.publication-meta .publication-title{
  margin-top:4px;
  margin-bottom:2px;
  color:#35435a;
  font-size:9px;
  font-weight:700;
  line-height:1.45;
}
@media(min-width:921px){
  .section-heading>p:not(.eyebrow){
    font-size:14px;
    line-height:1.9;
  }
}

.research-figure {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.figure-slot {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* YouTube links integrated into existing cards */
.related-card-with-actions{
  cursor:default;
}
.related-card-with-actions:hover{
  transform:none;
}
.related-actions{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.related-action{
  padding:7px 9px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  text-decoration:none;
  border:1px solid #d7e0ec;
  border-radius:8px;
  background:#f8fafc;
  color:#52627a;
  font-size:9px;
  font-weight:800;
  line-height:1.2;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.related-action:hover{
  background:#eef4fd;
  border-color:#bccbe0;
  color:var(--blue);
}
.related-action.youtube{
  background:#fff7f7;
  border-color:#edd7d7;
  color:#8b4b4b;
}
.related-action.youtube:hover{
  background:#fff0f0;
  border-color:#dfbcbc;
  color:#773737;
}
.youtube-icon{
  display:inline-grid;
  place-items:center;
  width:15px;
  height:15px;
  flex:0 0 15px;
  border-radius:4px;
  background:currentColor;
  color:#fff;
  font-size:7px;
  line-height:1;
}

/* Web app section: keep both status and demo-video action inside the dark card */
.webapp-actions{
  min-width:210px;
  display:grid;
  gap:8px;
}
.webapp-youtube-link{
  min-width:210px;
  padding:11px 13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.24);
  border-radius:10px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:10px;
  font-weight:800;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.webapp-youtube-link:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.38);
}
.webapp-youtube-link .youtube-icon{
  background:#fff;
  color:#233a67;
  margin-right:3px;
}
@media(max-width:920px){
  .webapp-actions{
    width:max-content;
  }
}
@media(max-width:600px){
  .webapp-actions,
  .webapp-youtube-link{
    width:100%;
  }
}


/* Gravitonal Theory audition controls */
.pitch-card th:last-child,
.pitch-card td:last-child{
  width:56px;
  text-align:center;
}
.audition-button{
  width:32px;
  height:32px;
  display:inline-grid;
  place-items:center;
  border:1px solid #cbd7e8;
  border-radius:8px;
  background:var(--blue-soft);
  color:var(--blue);
  font:inherit;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .1s ease;
}
.audition-button:hover{
  background:#dfeaff;
  border-color:#adbfdb;
}
.audition-button:active,
.chord-audition-button:active{
  transform:translateY(1px);
}
.audition-note{
  margin:10px 0 0;
  color:#7b8798;
  font-size:8.5px;
}
.chord-audition-button{
  margin-top:8px;
  padding:6px 9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d9cfea;
  border-radius:7px;
  background:#fff;
  color:#66517f;
  font:inherit;
  font-size:8.5px;
  font-weight:800;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .1s ease;
}
.chord-audition-button:hover{
  background:#f2edf8;
  border-color:#c8b9dd;
  color:#523b70;
}
