/* ============================================
   DFM Project Page — Modern Academic Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background-color: #ffffff;
}

a {
  color: #d69e2e;
	text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #b7791f;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
  color: #ffffff;
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(237, 137, 54, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(183, 121, 31, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.venue-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d69e2e, #b7791f);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.paper-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.title-accent {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Authors */
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 16px;
  font-size: 16px;
}

.author a {
  color: #e2e8f0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.author a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.author sup {
  font-size: 0.7em;
  color: #94a3b8;
  margin-left: 1px;
}

.affiliations {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #94a3b8;
}

.affiliation sup {
  font-size: 0.7em;
  margin-right: 2px;
}

/* Logos */
.affiliation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
}

.logo-rice {
  height: 50px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.logo-rice:hover {
  opacity: 1;
}

.logo-snap {
  height: 70px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.logo-snap:hover {
  opacity: 1;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d69e2e, #b7791f);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b7791f, #975a16);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(214, 158, 46, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* --- TL;DR Box --- */
.tldr-box {
  margin: 48px auto;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fffaf0 0%, #fef5e7 100%);
  border-left: 5px solid #d69e2e;
  border-radius: 0 12px 12px 0;
  position: relative;
}

.tldr-label {
  position: absolute;
  top: -14px;
  left: 24px;
  background: #d69e2e;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 6px;
}

.tldr-box p {
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
  margin-top: 4px;
}

/* --- Section Blocks --- */
.section-block {
  padding: 56px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 28px;
}

.section-description {
  font-size: 17px;
  color: #475569;
  max-width: 850px;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* --- Architecture Viewer --- */
.architecture-viewer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.arch-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.arch-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.arch-tab:hover {
  color: #334155;
  background: #f1f5f9;
}

.arch-tab.active {
  color: #d69e2e;
  border-bottom-color: #d69e2e;
  background: #fffaf0;
}

.arch-content {
  padding: 32px;
}

.arch-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.arch-description {
  order: -1;
}

.arch-description h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #0f172a;
}

.arch-description p {
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
}

.arch-image {
  text-align: center;
}

.arch-image img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* --- Results --- */
.result-block {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.result-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.result-block p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.75;
}

.result-image {
  text-align: center;
  margin: 20px 0;
}

.result-image img,
.result-image video {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 100%;
}

/* Specific sizing for architecture figures */
.arch-image .result-image img {
  max-height: 350px;
  width: auto;
}

/* --- Teaser --- */
.teaser-section {
  margin: 48px 0 32px;
  text-align: center;
}

.teaser-video,
.teaser-image {
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.caption {
  font-size: 15px;
  color: #64748b;
  max-width: 900px;
  margin: 16px auto 0;
  line-height: 1.7;
  text-align: justify;
}

/* --- BibTeX --- */
.bibtex-container {
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  padding: 24px 28px;
  overflow: hidden;
}

.bibtex-container pre {
  color: #94a3b8;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: #94a3b8;
  font-size: 13px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}

.footer a {
  color: #64748b;
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 56px 20px 48px;
  }

  .paper-title {
    font-size: 26px;
  }

  .authors {
    gap: 2px 14px;
    font-size: 14px;
  }

  .affiliations {
    flex-direction: column;
    gap: 4px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .arch-panel {
    flex-direction: column !important;
  }

  .arch-tabs {
    flex-direction: column;
  }

  .section-block {
    padding: 36px 16px;
  }

  .tldr-box {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .paper-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 24px;
  }
}