/* === Shango Font === */
@font-face {
  font-family: 'Shango';
  src: url('MyWebfontsKit/webFonts/ShangoRegular/font.woff2') format('woff2'),
       url('MyWebfontsKit/webFonts/ShangoRegular/font.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shango';
  src: url('MyWebfontsKit/webFonts/ShangoMedium/font.woff2') format('woff2'),
       url('MyWebfontsKit/webFonts/ShangoMedium/font.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shango';
  src: url('MyWebfontsKit/webFonts/ShangoMedium/font.woff2') format('woff2'),
       url('MyWebfontsKit/webFonts/ShangoMedium/font.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shango';
  src: url('MyWebfontsKit/webFonts/ShangoBold/font.woff2') format('woff2'),
       url('MyWebfontsKit/webFonts/ShangoBold/font.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --navy: #0a0e2a;
  --navy-card: #05142a;
  --navy-chip-outer: #07075b;
  --navy-chip-mid: #0c2c5a;
  --gold: #c8a432;
  --gold-dark: #8b7225;
  --gold-border: #b9a77a;
  --gold-dark-border: #564d35;
  --bg-default: #fafafa;
  --white: #ffffff;
  --text-high: #262626;
  --text-mid: rgba(10, 10, 10, 0.6);
  --border-item: #c7c2b8;
  --border-number: #d6cdbc;
  --stroke-blue: #455297;
  --stroke-red: #e66a4e;
  --red-brown: #8b3a2a;
  --blue-accent: #1a1ab8;
  --tan: #d4a85c;
  --tan-light: #f0e0c8;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-high);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: var(--white);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  width: 100%;
  padding: 12px 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: 24px;
}

.navbar-logo img {
  height: 24px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 64px;
}

.navbar-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: var(--text-mid);
  transition: opacity 0.2s;
}

.navbar-links a:hover {
  opacity: 0.6;
}

.mobile-menu-btn {
  display: none;
}

/* === Hero === */
.hero {
  position: relative;
  background: var(--white);
  min-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 88px;
}

.hero-chip-container {
  position: relative;
  z-index: 1;
  width: 800px;
  height: 800px;
}

.hero-chip-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-wordmark {
  font-family: 'Shango', 'Cinzel', serif;
  font-size: min(320px, 21vw);
  font-weight: 700;
  color: #404040;
  mix-blend-mode: difference;
  letter-spacing: -12.8px;
  line-height: 1;
  user-select: none;
  margin-top: -80px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

/* === Article III Section === */
.article-section {
  position: relative;
  background: #021939;
  height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-bg img {
  width: 90%;
  height: 85%;
  object-fit: contain;
}

/* Flanking border elements */
.article-flanks {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.article-flank {
  position: absolute;
  border: 1.5px solid var(--gold-dark-border);
}

.article-flank-left {
  width: 120px;
  height: 380px;
  left: calc(50% - 290px);
  top: 50%;
  transform: translateY(-50%);
}

.article-flank-right {
  width: 120px;
  height: 378px;
  right: calc(50% - 290px);
  top: 50%;
  transform: translateY(-50%);
}

.article-card {
  position: relative;
  z-index: 2;
  background: var(--navy-card);
  border: 1.5px solid var(--gold-border);
  padding: 24px 24px 32px 24px;
  max-width: 427px;
  width: 90%;
}

.article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.article-card-header h2 {
  font-family: 'Shango', 'Cinzel', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: -0.56px;
  color: rgba(255, 255, 255, 0.9);
}

.article-card-header .v-icon {
  height: 20px;
  width: auto;
}

.article-card p {
  font-family: 'Shango', 'Cinzel', serif;
  font-size: 28px;
  line-height: 38px;
  font-weight: 400;
  letter-spacing: -0.56px;
  color: rgba(255, 255, 255, 0.6);
}

.article-card p strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* === Research Section === */
.research-section {
  background: var(--white);
  padding: 120px 40px;
}

.research-container {
  max-width: 1432px;
  margin: 0 auto;
}

.research-heading {
  font-family: 'Shango', 'Cinzel', serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 72px;
  letter-spacing: -2.56px;
  color: var(--text-mid);
  padding: 24px 12px;
  margin: 0 0 8px 0;
}

.research-list {
  display: flex;
  flex-direction: column;
}

.research-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 60px 12px;
  border-top: 1px solid var(--border-item);
}

.research-item:last-child {
  border-bottom: none;
}

.research-number {
  width: 78px;
  height: 78px;
  background: url('assets/research-item-border.svg') no-repeat center / contain;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.research-number-inner {
  width: 62px;
  height: 62px;
  border: 1px solid var(--border-number);
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-number span {
  font-family: 'Shango', 'Cinzel', serif;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.72px;
  color: var(--text-mid);
  font-weight: 400;
}

.research-content {
  display: flex;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.research-title {
  font-family: 'Shango', 'Cinzel', serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: -0.88px;
  color: var(--text-high);
  width: 401px;
  flex-shrink: 0;
}

.research-body {
  flex: 1;
  min-width: 0;
}

.research-abstract {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.research-abstract p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: var(--text-mid);
}

.read-more {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: var(--text-mid);
  display: inline-block;
  transition: opacity 0.2s;
}

.read-more:hover {
  opacity: 0.6;
}

/* === Footer === */
.footer {
  background: var(--bg-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 0;
}

.footer-graphic {
  width: 100%;
  max-width: 1513px;
}

.footer-graphic-img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-links {
  width: 100%;
  background: #021939;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1432px;
  margin: 0 auto;
  position: relative;
  padding: 36px 40px;
}

.footer-bar a {
  font-family: 'Shango', 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.8);
  transition: opacity 0.2s;
}

.footer-bar a .x-logo {
  vertical-align: -2px;
  margin-right: 2px;
}

.footer-bar a:hover {
  opacity: 0.6;
}

.footer-bar .copyright {
  font-family: 'Shango', 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* === Responsive === */
@media (max-width: 1200px) {
  .hero-wordmark {
    font-size: 200px;
    letter-spacing: -8px;
    margin-top: -140px;
  }

  .research-content {
    flex-direction: column;
    gap: 16px;
  }

  .research-title {
    width: auto;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 700px;
  }

  .hero-chip-container {
    width: 600px;
    height: 600px;
  }

  .hero-wordmark {
    font-size: 150px;
    letter-spacing: -6px;
    margin-top: -100px;
  }

  .article-section {
    height: auto;
    min-height: 700px;
    padding: 80px 20px;
  }

  .research-heading {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -2px;
  }

  .research-item {
    gap: 24px;
    padding: 40px 12px;
  }

  .research-title {
    font-size: 36px;
    line-height: 44px;
  }
}

/* Tablet (786px) */
@media (max-width: 768px) {
  .navbar-inner {
    padding: 12px 20px;
  }

  .navbar-links {
    gap: 32px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 40px;
  }

  .hero-chip-container {
    width: 85vw;
    height: 85vw;
    max-width: 650px;
    max-height: 650px;
  }

  .hero-wordmark {
    font-size: 18vw;
    letter-spacing: -0.04em;
    margin-top: -4vw;
  }

  /* Article III */
  .article-section {
    height: auto;
    min-height: auto;
    padding: 60px 24px;
  }

  .article-card {
    max-width: 100%;
  }

  .article-flank-left,
  .article-flank-right {
    display: none;
  }

  /* Research */
  .research-section {
    padding: 60px 24px;
  }

  .research-heading {
    font-size: 44px;
    line-height: 52px;
    letter-spacing: -0.88px;
  }

  .research-item {
    gap: 24px;
    padding: 40px 12px;
  }

  .research-title {
    font-size: 32px;
    line-height: 40px;
    width: auto;
  }

  .research-abstract p {
    font-size: 16px;
    line-height: 22px;
  }

  /* Footer */
  .footer-links {
    width: 100%;
  }

  .footer-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 0;
  }

  .footer-bar a {
    width: 50%;
    text-align: center;
  }

  .footer-bar .copyright {
    position: static;
    transform: none;
    order: 1;
    width: 100%;
    text-align: center;
  }
}

/* Mobile (< 500px) */
@media (max-width: 500px) {
  /* Show only V mark */
  .navbar-logo img {
    content: url('assets/logo-mark.svg');
    height: 28px;
  }

  /* Hero */
  .hero {
    padding-bottom: 40px;
  }

  .hero-wordmark {
    font-size: 22vw;
    margin-top: calc(-5vw - 10px);
  }

  /* Article III */
  .article-section {
    padding: 40px 16px;
  }

  /* Research - stacked layout */
  .research-section {
    padding: 40px 24px;
  }

  .research-item {
    flex-direction: column;
    gap: 24px;
    padding: 32px 12px;
  }

  .research-number {
    width: 60px;
    height: 60px;
  }

  .research-number-inner {
    width: 48px;
    height: 48px;
  }

  .research-number span {
    font-size: 28px;
    line-height: 38px;
    letter-spacing: -0.56px;
  }

  .research-content {
    flex-direction: column;
    gap: 24px;
  }

  .research-title {
    font-size: 28px;
    line-height: 38px;
    letter-spacing: -0.56px;
  }
}
