/* Indeeds Research — Premium Academic */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-light: #38bdf8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1140px;
  --article: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.72; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--primary); color: #fff; padding: .5rem 1rem; z-index: 999; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { background: rgba(248,250,252,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--primary); font-weight: 600; font-size: .95rem; }
.logo__icon { color: var(--accent); flex-shrink: 0; }
.logo__text { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.nav { display: flex; gap: 1.75rem; }
.nav a { color: var(--muted); font-size: .84rem; font-weight: 500; letter-spacing: .01em; }
.nav a.active, .nav a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: .3s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: .75rem 1.4rem; font-size: .82rem; font-weight: 600; border-radius: var(--radius); transition: all .2s; letter-spacing: .02em; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--dark { background: var(--primary); color: #fff; }
.btn--dark:hover { background: var(--primary-light); color: #fff; }

/* Hero — minimal academic */
.hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.35) 0%, rgba(15,23,42,.82) 100%); }
.hero__content { position: relative; z-index: 2; padding: 4rem 1.5rem 5rem; color: #fff; max-width: 640px; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--accent-light); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.12; margin-bottom: 1rem; letter-spacing: -.02em; }
.hero__lead { font-size: 1.05rem; opacity: .9; margin-bottom: 1.75rem; line-height: 1.75; font-weight: 400; }
.hero__actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* Metrics */
.metrics { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; text-align: center; }
.metric__num { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--primary); line-height: 1; }
.metric__label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .3rem; }

/* Section */
.section { padding: 4.5rem 0; }
.section-head { max-width: 560px; margin-bottom: 2.5rem; }
.section-head h2 { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--primary); margin-bottom: .6rem; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; border: 1px solid var(--border); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.card__image-link { display: block; overflow: hidden; aspect-ratio: 16/10; }
.card--featured .card__image-link { aspect-ratio: auto; min-height: 300px; }
.card__image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card__image-link img { transform: scale(1.03); }
.card__body { padding: 1.5rem; }
.card__cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); font-weight: 700; }
.card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: .45rem 0 .65rem; line-height: 1.3; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent-dark); }
.card p { font-size: .9rem; color: var(--muted); margin-bottom: .85rem; }
.card__meta { font-size: .76rem; color: var(--muted); }

/* Topics */
.topics { padding: 3.5rem 0 4.5rem; background: var(--primary); color: #fff; }
.topics h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 1.25rem; text-align: center; }
.topics__grid { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.topic-pill { padding: .55rem 1.1rem; background: rgba(14,165,233,.12); border: 1px solid rgba(14,165,233,.3); border-radius: 100px; color: #e0f2fe; font-size: .82rem; font-weight: 500; transition: background .2s; }
.topic-pill:hover { background: rgba(14,165,233,.25); color: #fff; }

/* Article page */
.article-page { padding-bottom: 4rem; }
.article-hero { position: relative; height: 42vh; min-height: 300px; max-height: 480px; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.article-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(15,23,42,.25) 100%); }
.article-wrap { margin-top: -3.5rem; position: relative; z-index: 2; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .35rem; }
.article-header { max-width: var(--article); margin-bottom: 2rem; }
.article-header__cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-dark); font-weight: 700; }
.article-header h1 { font-family: var(--serif); font-size: clamp(1.85rem, 4.5vw, 2.75rem); font-weight: 600; color: var(--primary); line-height: 1.15; margin: .45rem 0 .85rem; letter-spacing: -.02em; }
.article-header__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: 1fr 250px; gap: 2.5rem; align-items: start; }
.article__body { max-width: var(--article); }
.article__body .lead { font-size: 1.12rem; color: #334155; line-height: 1.82; margin-bottom: 1.75rem; font-family: var(--serif); }
.article__body h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--primary); margin: 2.25rem 0 .85rem; padding-top: .35rem; }
.article__body p { margin-bottom: 1.1rem; color: #334155; }
.article__body ul { margin: 0 0 1.15rem 1.4rem; color: #334155; }
.article__body li { margin-bottom: .45rem; }
.article-figure { margin: 1.75rem 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.article-figure img { width: 100%; }
.article-figure figcaption { padding: .75rem 1.15rem; background: var(--surface); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); font-style: italic; }

.callout { background: linear-gradient(135deg, rgba(14,165,233,.06), rgba(15,23,42,.04)); border-left: 3px solid var(--accent); padding: 1.35rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0; }
.callout strong { display: block; color: var(--primary); margin-bottom: .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.callout p { margin: 0; font-size: .93rem; color: #334155; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin: 1.75rem 0; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; text-align: center; }
.stat-box__num { display: block; font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--accent-dark); }
.stat-box__label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }

.related { position: sticky; top: 5.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; }
.related h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .85rem; font-weight: 600; }
.related__item { display: block; padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .86rem; font-weight: 500; color: var(--text); line-height: 1.4; }
.related__item:last-child { border: none; }
.related__item:hover { color: var(--accent-dark); }

/* Static pages */
.page { padding: 3.5rem 0 4.5rem; }
.page h1 { font-family: var(--serif); font-size: 2.35rem; font-weight: 600; color: var(--primary); margin-bottom: .85rem; letter-spacing: -.02em; }
.page h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--primary); margin: 1.75rem 0 .65rem; }
.page-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.75rem; max-width: 620px; }
.page p { margin-bottom: 1rem; color: #334155; max-width: 660px; }
.page ul { margin: 0 0 1rem 1.4rem; color: #334155; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-email { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.75rem; }
.contact-form { max-width: 500px; display: grid; gap: 1.1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .86rem; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea { padding: .8rem .95rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--surface); transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.form-ok { color: var(--accent-dark); font-weight: 500; margin-top: .35rem; }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.75rem; margin-top: 1.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; display: block; margin-bottom: .4rem; }
.footer-brand p { font-size: .86rem; opacity: .8; margin-top: .3rem; }
.footer-note { font-size: .76rem !important; opacity: .5 !important; margin-top: .85rem !important; }
.footer-col h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-light); margin-bottom: .85rem; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: .86rem; margin-bottom: .45rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.25rem; font-size: .76rem; opacity: .45; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
  .card--featured { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .related { position: static; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top, .page-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: 0; right: -100%; width: 85%; max-width: 280px; height: 100vh; background: var(--surface); flex-direction: column; padding: 4.5rem 1.5rem 2rem; box-shadow: var(--shadow-lg); transition: right .3s; }
  .nav.open { right: 0; }
  .hero { min-height: 65vh; }
  .article-hero { height: 32vh; }
}
