:root {
  --text: #222;
  --muted: #666;
  --line: #dedede;
  --light: #f6f7f8;
  --accent: #315f8c;
  --accent-light: #edf4fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.container {
  width: min(100% - 40px, 1000px);
  margin: 0 auto;
}

.has-text-centered { text-align: center; }

.hero {
  padding: 88px 20px 46px;
}

.project-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Google Sans", "Noto Sans", sans-serif;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.subtitle {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.author {
  margin: 18px 0 0;
  font-size: 18px;
}

.project-links { margin-top: 25px; }

.button {
  display: inline-block;
  padding: 9px 22px;
  color: #fff;
  background: #333;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { background: var(--accent); }

.teaser-section { padding-bottom: 35px; }

.section {
  padding-top: 58px;
  padding-bottom: 18px;
}

h2 {
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  line-height: 1.3;
}

h3 { line-height: 1.35; }

.abstract {
  margin: 0;
  text-align: justify;
}

.image-placeholder {
  min-height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px dashed #aab1b8;
  color: #737b83;
  background: var(--light);
  font-size: 14px;
}

.image-placeholder small { font-size: 12px; }

.large-placeholder {
  min-height: 300px;
  border-style: solid;
  font-size: 18px;
}

.method-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  margin-top: 30px;
}

.method-block {
  min-height: 180px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  background: var(--light);
}

.method-block.highlight {
  border-color: #9fbad2;
  background: var(--accent-light);
}

.method-block span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.method-block h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.method-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.arrow {
  padding: 0 8px;
  display: flex;
  align-items: center;
  color: #999;
}

.method-details {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.method-details article {
  padding-top: 16px;
  border-top: 3px solid var(--accent);
}

.method-details h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.method-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.equation {
  margin-top: 25px;
  padding: 23px 20px;
  overflow-x: auto;
  background: var(--light);
  font-family: "Castoro", serif;
  font-size: 18px;
  text-align: center;
  white-space: nowrap;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 35px;
  color: var(--muted);
}

.result-group { margin-top: 36px; }

.result-group > h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.result-grid figure { margin: 0; }

.result-grid figure > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.result-grid .image-placeholder { aspect-ratio: 16 / 9; }
.result-grid .output { border-color: #82a9cb; background: var(--accent-light); }

figcaption {
  padding-top: 7px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.implementation { padding-bottom: 80px; }
.implementation p { max-width: 880px; }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .hero { padding-top: 60px; }
  .subtitle { font-size: 17px; }
  .large-placeholder { min-height: 220px; }

  .method-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .method-block { min-height: 0; }
  .method-block h3 { margin-top: 12px; }
  .arrow { justify-content: center; transform: rotate(90deg); }

  .method-details,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .abstract { text-align: left; }
  .equation { text-align: left; }
}
