/* MaP-WAM project page — local art direction layered over the shared site CSS. */

:root {
  --bg: #f7f6f2;
  --bg-soft: #eeece5;
  --fg: #111821;
  --fg-2: #46505a;
  --fg-3: #717982;
  --line: rgba(17, 24, 33, .12);
  --line-strong: rgba(17, 24, 33, .22);
  --accent: #2857b8;
  --accent-hover: #1d469a;
  --accent-soft: #e8eefb;
  --signal: #111d2b;
  --warm: #e87536;
  --lime: #b8e443;
  --radius: 12px;
  --radius-lg: 20px;
  --w-media: 1180px;
  --w-site: 1280px;
  --shadow-media: 0 2px 4px rgba(17, 24, 33, .08), 0 28px 60px -30px rgba(17, 24, 33, .48);
}

body {
  background:
    linear-gradient(rgba(17, 24, 33, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 33, .025) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--fg-2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 246, 242, .42), rgba(247, 246, 242, .92) 820px);
}

h1, h2 { letter-spacing: -.045em; }

h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 650;
  line-height: .98;
}

.wrap-media { max-width: calc(var(--w-media) + var(--pad) * 2); }
.section { padding: clamp(84px, 10vw, 148px) 0; }
.defer { content-visibility: visible; contain-intrinsic-size: none; }
.eyebrow { color: var(--accent); letter-spacing: .13em; }

/* Header */

.site-header {
  height: 72px;
  background: rgba(247, 246, 242, .82);
  border-bottom-color: rgba(17, 24, 33, .1);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.site-header-inner { gap: 32px; }

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  box-shadow: inset 7px 0 0 var(--warm);
  transform: rotate(-24deg);
}

.site-nav { gap: 30px; }

.site-nav a {
  position: relative;
  font-size: 14px;
  color: #56606a;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-cta {
  height: 38px;
  padding-inline: 16px;
  border-color: var(--fg);
  border-radius: 9px;
  background: var(--fg);
  color: #fff;
}

.site-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  max-width: calc(var(--w-site) + var(--pad) * 2);
  min-height: min(900px, calc(100svh - 72px));
  padding: clamp(64px, 7vw, 100px) var(--pad) 40px;
  text-align: left;
}

.hero-ambient {
  position: absolute;
  z-index: -1;
  top: -190px;
  left: 4%;
  width: min(680px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .7;
  filter: blur(2px);
  background:
    radial-gradient(circle at 50% 50%, rgba(40, 87, 184, .15), rgba(40, 87, 184, 0) 67%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 6vw, 94px);
}

.hero-copy { position: relative; padding-bottom: 12px; }

.hero-copy::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -30px;
  width: 88px;
  height: 10px;
  border-top: 2px solid var(--warm);
  border-bottom: 2px solid var(--warm);
  opacity: .65;
  transform: rotate(-10deg);
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--fg-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 5px rgba(232, 117, 54, .13);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(4.4rem, 8.2vw, 7.6rem);
  font-weight: 680;
  line-height: .78;
  letter-spacing: -.075em;
}

.hero h1 span:last-child { margin-left: clamp(18px, 4.5vw, 68px); }

.title-accent {
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
}

.hero-sub {
  display: block;
  margin: 32px 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--fg);
}

.hero-intro {
  max-width: 520px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
}

.actions { justify-content: flex-start; margin-top: 28px; }

.btn {
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.btn:hover { transform: translateY(-2px); background: #fff; }
.btn-primary { background: var(--accent); box-shadow: 0 8px 24px -12px rgba(40, 87, 184, .8); }
.btn-primary:hover { background: var(--accent-hover); }

.hero-demo {
  position: relative;
  padding: 15px;
  border: 1px solid rgba(17, 24, 33, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 32px 80px -42px rgba(17, 24, 33, .55);
  transform: rotate(1.2deg);
}

.hero-demo::before,
.hero-demo::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(17, 24, 33, .18);
  border-radius: 13px;
  background: rgba(233, 238, 248, .82);
}

.hero-demo::before { top: -29px; right: 44px; transform: translateX(22%) rotate(4deg); }
.hero-demo::after { right: -18px; bottom: -26px; background: rgba(248, 230, 215, .88); transform: rotate(-4deg); }

.demo-topline,
.demo-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 3px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.demo-topline { margin-bottom: 13px; }
.demo-footline { margin-top: 13px; }
.demo-index { color: var(--accent); }

.demo-footline span:first-child { display: flex; align-items: center; gap: 7px; }
.demo-footline i { width: 7px; height: 7px; border-radius: 50%; background: #70ad31; }

.hero-demo .media-frame {
  border-radius: 13px;
  box-shadow: none;
  background: var(--signal);
}

.hero-meta {
  margin-top: clamp(58px, 7vw, 92px);
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.hero .authors {
  justify-content: flex-start;
  gap: 5px 16px;
  margin-top: 0;
  font-size: 15px;
}

.hero .authors a { border: 0; }
.hero .authors a:hover { color: var(--accent); }

.affiliation-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 13px;
}

.hero .affiliations { margin: 0; line-height: 1.7; }
.hero .affiliations span { margin: 0 18px 0 0; }
.hero .corr-note { display: flex; flex: none; align-items: center; gap: 5px; margin: 1px 0 0; }

/* Contribution signal band */

.signal-strip {
  position: relative;
  overflow: hidden;
  padding: 44px var(--pad);
  color: #fff;
  background: var(--signal);
}

.signal-strip::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -270px;
  right: 8%;
  border: 1px solid rgba(184, 228, 67, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(184, 228, 67, .035), 0 0 0 104px rgba(184, 228, 67, .025);
}

.signal-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 70px;
  max-width: var(--w-site);
  margin-inline: auto;
}

.idea-flow { display: flex; align-items: center; gap: 16px; }

.idea-flow span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 17px;
  font-weight: 600;
}

.idea-flow b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--lime);
}

.idea-flow i { flex: 1; min-width: 20px; height: 1px; background: rgba(255, 255, 255, .28); }

.signal-strip .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0 0 0 52px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.signal-strip .stats dt { font-size: clamp(2rem, 3.2vw, 3.4rem); color: #fff; }
.signal-strip .stats dt small { font-size: .5em; color: var(--lime); }
.signal-strip .stats dd { color: rgba(255, 255, 255, .6); }

/* Main sections */

.concept-section { background: #f0eee7; }

.section-head-wide {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: end;
  gap: 70px;
  margin-bottom: 54px;
}

.section-head-wide > p {
  margin-bottom: 2px;
  padding-left: 20px;
  border-left: 2px solid var(--warm);
  font-size: 17px;
  line-height: 1.55;
}

.figure > picture,
.figure > picture img { display: block; }

.concept-section .figure > picture {
  padding: clamp(10px, 1.5vw, 18px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px -38px rgba(17, 24, 33, .5);
}

.concept-section .figure img { border-radius: 10px; }

.caption-grid { gap: 14px; margin-top: 18px !important; }

.caption-grid p {
  padding: 18px 18px 20px;
  border-top: 3px solid var(--line-strong);
  background: rgba(255, 255, 255, .52);
  font-size: 13px;
  line-height: 1.55;
}

.caption-grid p:last-child { border-top-color: var(--accent); background: var(--accent-soft); }

#abstract {
  background: var(--signal);
  color: rgba(255, 255, 255, .7);
}

#abstract .wrap { max-width: calc(var(--w-media) + var(--pad) * 2); }

#abstract .prose {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr);
  grid-template-rows: auto 1fr;
  gap: 12px clamp(50px, 9vw, 140px);
}

#abstract .eyebrow { grid-column: 1; grid-row: 1; color: var(--lime); }
#abstract h2 { grid-column: 1; grid-row: 2; color: #fff; }

#abstract .prose .lede {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.72;
  color: rgba(255, 255, 255, .72);
}

#abstract .prose .lede::first-letter {
  float: left;
  margin: .08em .13em 0 0;
  font-size: 4.1em;
  font-weight: 650;
  line-height: .72;
  color: var(--warm);
}

#abstract .prose .lede strong { color: #fff; }

#framework { background: #faf9f6; }
#framework .section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 44px; }

#framework .section-head::after {
  content: "Planning  /  Alignment  /  Execution";
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--fg-3);
}

#framework .figure > picture {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-media);
}

#framework .figure img { border-radius: 9px; }

#framework .figure figcaption {
  max-width: 920px;
  margin: 26px auto 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

#comparison { background: #e9eef4; }

#comparison .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

#comparison .section-head::after {
  content: "State of the art  ·  +6.2 pts";
  margin-bottom: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.table-intro { max-width: 850px; color: #5d6873; }

.table-scroll {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 55px -42px rgba(17, 24, 33, .55);
}

.results-table th,
.results-table td { padding-top: 14px; padding-bottom: 14px; }
.results-table thead th { background: #f5f6f7; }
.results-table th:first-child,
.results-table td:first-child { background: #fff; }
.results-table thead th:first-child { background: #f5f6f7; }
.results-table .ours { background: #edf2ff; }
.results-table .total-row td { background: #f2f3f4; }
.results-table .total-row td:first-child { background: #f2f3f4; }
.results-table .total-row td.ours { background: #dce6ff; color: var(--accent); }

#citation { background: var(--bg); }
#citation .wrap { max-width: calc(900px + var(--pad) * 2); }
#citation .section-head { text-align: center; margin-bottom: 38px; }

.bib {
  border-color: rgba(17, 24, 33, .2);
  box-shadow: 0 22px 50px -38px rgba(17, 24, 33, .45);
}

.bib-bar { background: var(--signal); border-bottom: 0; }
.bib-label { color: rgba(255, 255, 255, .6); }
.bib-code { padding: 27px 30px; background: #fff; }
.copy-btn { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.copy-btn:hover, .copy-btn.is-done { border-color: var(--lime); color: var(--lime); }

.site-footer { padding: 38px 0; background: var(--signal); border: 0; }
.site-footer-inner, .site-footer-inner a { color: rgba(255, 255, 255, .52); }
.site-footer-inner a:hover { color: #fff; }

/* Responsive */

@media (max-width: 1040px) {
  .hero-layout { grid-template-columns: minmax(0, .8fr) minmax(400px, 1.2fr); gap: 45px; }
  .hero h1 { font-size: clamp(4rem, 8.7vw, 6.3rem); }
  .hero-copy::after { display: none; }
  .signal-inner { gap: 40px; }
  .signal-strip .stats { padding-left: 35px; }
}

@media (max-width: 820px) {
  .site-header { height: 64px; }
  .site-header-inner { gap: 20px; }
  .site-nav { gap: 18px; }

  .hero { min-height: auto; padding-top: 60px; }
  .hero-layout { grid-template-columns: 1fr; gap: 62px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(4.8rem, 16vw, 7.2rem); }
  .hero-intro { font-size: 17px; }
  .hero-demo { width: calc(100% - 20px); margin-left: 10px; transform: rotate(.7deg); }

  .affiliation-row { display: block; }
  .hero .corr-note { margin-top: 10px; }

  .signal-inner { grid-template-columns: 1fr; gap: 30px; }
  .signal-strip .stats { padding: 30px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }

  .section-head-wide { grid-template-columns: 1fr; gap: 30px; }
  .section-head-wide > p { max-width: 580px; }

  #abstract .prose { grid-template-columns: 1fr; grid-template-rows: auto; gap: 12px; }
  #abstract .eyebrow, #abstract h2, #abstract .prose .lede { grid-column: 1; grid-row: auto; }
  #abstract .prose .lede { margin-top: 25px; }
}

@media (max-width: 640px) {
  body { background-size: 32px 32px; }
  .site-header-inner { padding-inline: 16px; }
  .site-nav { margin-left: auto; }
  .site-nav a:nth-child(-n+2) { display: none; }

  .hero { padding: 46px var(--pad) 30px; }
  .hero h1 { font-size: clamp(4rem, 22vw, 6.2rem); }
  .hero h1 span:last-child { margin-left: 12px; }
  .hero-sub { margin-top: 27px; }
  .hero-sub br { display: none; }
  .actions { gap: 8px; }
  .btn { height: 43px; padding-inline: 13px; font-size: 14px; }
  .btn svg { width: 17px; height: 17px; }
  .hero-demo { width: 100%; margin: 0; padding: 10px; border-radius: 17px; }
  .hero-demo::before, .hero-demo::after { display: none; }
  .demo-topline, .demo-footline { font-size: 9px; }
  .hero-meta { margin-top: 55px; }

  .signal-strip { padding-block: 38px; }
  .idea-flow { gap: 10px; }
  .idea-flow span { font-size: 14px; }
  .signal-strip .stats { gap: 13px; }
  .signal-strip .stats dt { font-size: 1.8rem; }
  .signal-strip .stats dd { font-size: 11px; line-height: 1.35; }

  .section-head-wide { margin-bottom: 34px; }
  .caption-grid p { font-size: 13px; }
  #framework .section-head, #comparison .section-head { display: block; }
  #framework .section-head::after, #comparison .section-head::after { display: inline-block; margin-top: 18px; }
  #framework .figure > picture { padding: 7px; border-radius: 14px; }
  #framework .figure figcaption { font-size: 13px; }
  .bib-code { padding: 18px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-demo { transform: none; }
  .btn:hover { transform: none; }
}
