/* =========================================================
   Research Project — Shared Stylesheet
   Editorial / academic aesthetic
   ========================================================= */

:root {
  --bg: #ffffff;            /* warm paper */
  --bg-alt: #e1e1e1;        /* deeper paper */
  --ink: #1a1a1a;           /* near-black */
  --ink-soft: #4a4a44;      /* muted body */
  --rule: #1a1a1a;          /* hairline rule */
  --accent: #b8341d;        /* signal red */
  --accent-soft: #eaeaea;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter Tight", "Source Sans 3", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-width: 1200px;
  --content-width: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* =========================================================
   Floating Top Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(222, 222, 222, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 100px;
  padding: 0.55rem 0.75rem 0.55rem 1.5rem;
  box-shadow: 0 8px 32px;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: calc(100vw - 2rem);
}

.site-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.site-brand .dot { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--ink);
  background: rgba(26, 26, 26, 0.06);
}
.site-nav a.active {
  background: var(--ink);
  color: var(--bg);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0.75rem 0.5rem 1.25rem;
    gap: 0.75rem;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 200px;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { display: block; width: 100%; }
  .nav-toggle { display: block; }
}

/* =========================================================
   Layout
   ========================================================= */
main {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 1.25rem; }
  main { padding-top: 6rem; }
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }

p { color: var(--ink-soft); }
p + p { margin-top: 1rem; }

.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* Eyebrow / kicker labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink); }

/* =========================================================
   Hero (index)
   ========================================================= */
.hero {
  padding: 3rem 0 5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(26,26,26,0.15);
}

.hero-subhead {
  margin-top: 2rem;
  max-width: 680px;
}

/* Image strip */
.image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 1rem;
  margin-top: 4rem;
  height: 380px;
}
.image-grid .img {
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.image-grid .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-grid-inst {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  height: 150px;
}
.image-grid-inst .img {
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.image-grid-inst .img img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  display: block;
}

.image-grid .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: repeating-linear-gradient(
    45deg,
    var(--bg-alt),
    var(--bg-alt) 10px,
    rgba(26,26,26,0.04) 10px,
    rgba(26,26,26,0.04) 20px
  );
}
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .image-grid .img { height: 200px; }
  .image-grid .img:first-child { grid-column: 1 / -1; height: 280px; }
}

/* =========================================================
   Content Sections
   ========================================================= */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(26,26,26,0.15);
}
.section:last-child { border-bottom: none; }

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { max-width: 16ch; }
.section-header p { font-size: 1.05rem; }

@media (max-width: 768px) {
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Numbered list of questions / findings */
.research-list {
  list-style: none;
  counter-reset: item;
}
ol ul {
  padding-left:25px
}
.research-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(26,26,26,0.15);
  transition: background 0.3s ease;
}
.research-list li:last-child { border-bottom: 1px solid rgba(26,26,26,0.15); }
.research-list li:hover { background: rgba(184, 52, 29, 0.03); }
.research-list li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.4rem;
}
.research-list h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.research-list p { font-size: 0.95rem; }

.research-list-nested {
  list-style: none;
  counter-reset: item;
}
.research-list-nested li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(26,26,26,0.15);
  transition: background 0.3s ease;
}
.research-list-nested li:last-child { border-bottom: 1px solid rgba(26,26,26,0.15); }
.research-list-nested li:hover { background: rgba(29, 29, 29, 0.03); }
.research-list-nested li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.4rem;
}
.research-list-nested h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.research-list-nested p { font-size: 0.95rem; }


@media (max-width: 600px) {
  .research-list li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Recommendation cards */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.rec-card {
  background: var(--bg-alt);
  border: 1px solid rgba(26,26,26,0.1);
  padding: 2rem;
  border-radius: 4px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rec-card:hover {
  transform: translateY(-4px);
}
.rec-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.rec-card h3 { margin-bottom: 0.75rem; }
.rec-card p { font-size: 0.92rem; }
.rec-card ul { padding-left: 25px; 

}

/* =========================================================
   Article pages (report, press release, blog, contact)
   ========================================================= */
.page-header {
  padding: 2rem 0 4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4rem;
}
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 18ch;
}
.page-header .lead { margin-top: 1.5rem; max-width: 60ch; }
.page-meta {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.prose p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-size: 1.75rem; margin: 3rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

/* Call-to-action button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* =========================================================
   Author cards (contact page)
   ========================================================= */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.author-card {
  padding: 2rem 0;
  border-top: 2px solid var(--ink);
}
.author-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.author-card .role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.author-card .bio { font-size: 0.92rem; margin-bottom: 1rem; }
.author-card .contact {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26,26,26,0.15);
}
.author-card .contact span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-right: 0.5rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
  padding: 3rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   Animations — entrance reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.45s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
