/* ===========================
   HAJJI RESEARCH INSTITUTE
   Theme: Deep navy + warm amber
   Typography: Playfair Display + DM Sans
   =========================== */

:root {
  --navy:      #0f1c2e;
  --navy-mid: #1a2744;
  --navy-light:#243352;
  --amber:     #c8962a;
  --amber-dim: #a67a1c;
  --cream:     #f5f2ec;
  --cream-dark:#eee8df;
  --text-dark: #1a1a1a;
  --text-mid: #3d3d3d;
  --text-light:#7a7a7a;
  --white:     #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- TOPBAR ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 52px;
  background: rgba(15,28,46,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,150,42,0.2);
}
.topbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--amber);
  letter-spacing: 0.05em;
}
.brand-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
.topbar-tag {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 52px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-layer {
  position: absolute;
  inset: 0;
}
.layer-1 {
  background: var(--navy);
  background: linear-gradient(135deg, #0a1628 0%, #0f1c2e 40%, #16263c 100%);
}
.layer-2 {
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(200,150,42,0.03) 80px,
      rgba(200,150,42,0.03) 81px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(200,150,42,0.03) 80px,
      rgba(200,150,42,0.03) 81px
    );
}
.layer-3 {
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200,150,42,0.08) 0%, transparent 70%);
}
.layer-4 {
  background: radial-gradient(ellipse 50% 80% at 20% 80%, rgba(200,150,42,0.05) 0%, transparent 60%);
}
.hero-diagonal {
  position: absolute;
  bottom: -20%;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(165deg, transparent 40%, rgba(245,242,236,0.08) 70%, transparent 100%);
  transform: skewY(-3deg);
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(200,150,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  color: var(--amber);
  font-style: italic;
}
.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 2rem;
}
.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 3rem;
  font-weight: 300;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}
.meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- SECTION COMMON ---- */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}
.section-header {
  padding: 4rem 0 2rem;
}
.section-header--right { text-align: right; }
.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  max-width: 540px;
}
.section-header--right .section-title { margin-left: auto; }
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin-top: 1.25rem;
}
.section-rule--right { margin-left: auto; }

/* ---- EVIDENCE SECTION ---- */
.evidence { background: var(--cream); }
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 2rem 0 5rem;
  align-items: start;
}
.evidence-image-panel {}
.panel-visual {
  background: var(--navy);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 280px;
}
.grid-cell { position: relative; }
.cell-a {
  background: linear-gradient(135deg, #1a2a40 0%, #243352 100%);
}
.cell-b {
  background: linear-gradient(135deg, #243352 0%, #1a2744 100%);
}
.cell-c {
  background: linear-gradient(135deg, #0f1c2e 0%, #1e3050 50%, #243352 100%);
}
.cell-d {
  background: linear-gradient(135deg, #1a2744 0%, #16263c 100%);
}
.cell-a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(200,150,42,0.3) 0%, transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(200,150,42,0.04) 20px, rgba(200,150,42,0.04) 21px);
}
.cell-b::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(200,150,42,0.2) 0%, transparent 50%),
    repeating-linear-gradient(-45deg, transparent, transparent 15px, rgba(200,150,42,0.04) 15px, rgba(200,150,42,0.04) 16px);
}
.cell-c::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(200,150,42,0.15) 0%, transparent 55%),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(200,150,42,0.03) 30px, rgba(200,150,42,0.03) 31px);
}
.cell-d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(200,150,42,0.25) 0%, transparent 60%);
}
.panel-caption {
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(200,150,42,0.15);
}
.evidence-body {}
.evidence-body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.evidence-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.stat-card {
  background: var(--navy);
  padding: 1.75rem 1.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--amber);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}
.stat-note {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- METHODOLOGY SECTION ---- */
.methodology {
  background: var(--cream-dark);
  padding-bottom: 1rem;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  padding: 2rem 0 5rem;
  align-items: start;
}
.method-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(15,28,46,0.1);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(15,28,46,0.15);
  line-height: 1;
  padding-top: 0.25rem;
}
.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.step-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.notebook-panel {
  background: var(--navy);
  border-radius: 4px;
  padding: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}
.notebook-header {
  font-weight: bold;
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(200,150,42,0.2);
}
.notebook-lines { margin-bottom: 1.5rem; }
.notebook-line {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 0.9rem;
}
.notebook-line--indent { margin-left: 1rem; width: 80%; }
.notebook-marks { border-top: 1px solid rgba(200,150,42,0.15); padding-top: 1rem; }
.mark-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.mark-val { color: var(--amber); opacity: 0.7; }
.notebook-sketches {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200,150,42,0.15);
}
.sketch {
  flex: 1;
  height: 48px;
  border-radius: 3px;
}
.sketch-river {
  background: 
    linear-gradient(135deg, rgba(200,150,42,0.3) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(200,150,42,0.1) 0px, rgba(200,150,42,0.1) 2px, transparent 2px, transparent 8px);
  border: 1px solid rgba(200,150,42,0.2);
}
.sketch-waves {
  background: 
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(200,150,42,0.15) 0px, rgba(200,150,42,0.15) 3px, transparent 3px, transparent 10px);
  border: 1px solid rgba(200,150,42,0.2);
}

/* ---- IMPACT SECTION ---- */
.impact {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.impact-bg-text {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(12rem, 20vw, 22rem);
  font-weight: 700;
  color: rgba(15,28,46,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}
.buyer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 5rem;
}
.buyer-card {
  background: var(--navy);
  padding: 2rem;
  border-radius: 4px;
  position: relative;
  transition: transform 0.2s ease;
}
.buyer-card:hover { transform: translateY(-2px); }
.buyer-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,150,42,0.1);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(200,150,42,0.2);
}
.buyer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.buyer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ---- CLOSING SECTION ---- */
.closing {
  position: relative;
  padding: 8rem 3rem;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}
.closing-bg { position: absolute; inset: 0; z-index: 0; }
.closing-layer { position: absolute; inset: 0; }
.layer-a {
  background: 
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(200,150,42,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 30% 100%, rgba(200,150,42,0.06) 0%, transparent 60%);
}
.layer-b {
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(200,150,42,0.02) 100px, rgba(200,150,42,0.02) 101px),
    repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(200,150,42,0.02) 100px, rgba(200,150,42,0.02) 101px);
}
.closing-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.closing-overline {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  opacity: 0.8;
}
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 2.5rem;
}
.closing-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #080f18;
  padding: 2rem 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .brand-mark {
  font-size: 1.4rem;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}
.footer-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
}
.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-content { padding: 4rem 1.5rem 3rem; }
  .section-container { padding: 0 1.5rem; }
  .evidence-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .buyer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1rem; }
  .topbar { padding: 0 1.5rem; }
  .closing { padding: 5rem 1.5rem; }
  .site-footer { padding: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-tagline { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .step { grid-template-columns: 40px 1fr; gap: 1rem; }
  .step-number { font-size: 1.5rem; }
}
