/* Shared stylesheet for soroushsabbaghan.com. Page-specific rules stay in each page. */
:root {
  --ink: #D3D9D4;
  --ink-soft: #9EAEB0;
  --teal: #124E66;
  --slate: #748D92;
  --link: #9EC3CC;
  --cream: #D3D9D4;
  --paper: #070909;
  --white: #F8FBF9;
  --deep: #0D1114;
  --surface: #12191D;
  --line: rgba(211, 217, 212, 0.18);
  --line-soft: rgba(211, 217, 212, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius-xl: 18px;
  --radius-lg: 12px;
  --max-width: 1160px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 82% 6%, rgba(116, 141, 146, 0.16), transparent 28rem),
    radial-gradient(circle at 16% 20%, rgba(18, 78, 102, 0.30), transparent 30rem),
    linear-gradient(135deg, #070909, #0D1114 48%, #10202A),
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: -999px; top: 1rem;
  background: var(--deep); color: var(--white);
  padding: 0.8rem 1rem; border-radius: 999px; z-index: 1000;
}
.skip-link:focus { left: 1rem; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 9, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--white);
}
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 2px solid var(--cream); color: var(--cream); font-weight: 700;
}
.nav-links {
  display: flex; align-items: center; gap: 1.25rem;
  color: var(--ink-soft); font-size: 0.95rem;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-links a { position: relative; padding: 0.25rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -0.2rem;
  width: 0; height: 2px; background: var(--cream); transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links .nav-cta { margin-left: 0.5rem; }
.nav-links .nav-cta::after { display: none; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; border-radius: 999px; padding: 0.7rem 1.15rem;
  background: rgba(211, 217, 212, 0.94); color: var(--deep);
  font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  border: 1px solid rgba(211, 217, 212, 0.70);
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover, .button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--white); }
.button.secondary { background: rgba(211, 217, 212, 0.06); color: var(--cream); border-color: rgba(211, 217, 212, 0.30); }
.button.secondary:hover, .button.secondary:focus-visible { background: rgba(211, 217, 212, 0.14); }

main { overflow: hidden; }
.section { max-width: var(--max-width); margin: 0 auto; padding: 5.5rem 1.2rem; }
.section.tight { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--slate); font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.92rem; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--slate); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.08; color: var(--white); }
h1 { font-size: clamp(3.4rem, 7.5vw, 6.8rem); line-height: 0.9; margin-bottom: 1rem; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); margin-bottom: 1rem; text-wrap: balance; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.hero-role { font-size: 1.1rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 640px; margin-bottom: 1.8rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.4rem; }
.text-link { color: var(--link); display: inline-flex; font-weight: 600; margin-top: 0.9rem; }
.text-link:hover, .text-link:focus-visible { color: var(--white); }
.pub-meta, .meta {
  color: var(--slate); font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.1em; margin-bottom: 0.45rem; text-transform: uppercase;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem; align-items: center; padding-top: 4rem; padding-bottom: 3rem;
}
.hero > div { min-width: 0; }
.hero-portrait { display: flex; justify-content: center; align-items: center; }
.hero-portrait img {
  width: 100%; max-width: 560px; height: auto; object-fit: contain;
  border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.hero.compact { grid-template-columns: minmax(0, 1fr); padding-bottom: 1rem; }

/* Proof strip */
.proof-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.proof-strip p { font-size: 0.95rem; line-height: 1.45; color: var(--ink); }

/* Sections and cards */
.section-header {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2rem; align-items: end; margin-bottom: 2rem;
}
.section-header p { color: var(--ink-soft); font-size: 1.05rem; text-wrap: pretty; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: rgba(211, 217, 212, 0.05); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 1.45rem;
}
.card p, .card li { color: var(--ink-soft); }
.card ul { padding-left: 1.1rem; }
.card.flat-col { display: flex; flex-direction: column; }
.card.flat-col p { flex: 1; }
.topic-card h3 { font-size: 1.25rem; }
.podcast-card { display: flex; flex-direction: column; }
.podcast-card p { flex: 1; }

/* List rows (talks, publications, media) */
.list { display: grid; }
.list-row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1.2rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 1px solid var(--line); }
.list-row .meta { margin-bottom: 0; padding-top: 0.15rem; }
.list-row h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.list-row p { color: var(--ink-soft); font-size: 0.95rem; }
.list-row .text-link { margin-top: 0.4rem; }
.list-row .cited { color: var(--slate); font-size: 0.85rem; margin-top: 0.3rem; }
.list-row.single { grid-template-columns: 1fr; padding: 0.9rem 0; }
.list-row.single h3 { font-size: 1.25rem; }
.list-row.single p em { font-style: normal; color: var(--ink); }

/* Legacy timeline (kept for existing markup) */
.timeline { position: relative; display: grid; gap: 1rem; }
.timeline-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 1.2rem;
  border-radius: var(--radius-lg); background: rgba(211, 217, 212, 0.05); border: 1px solid var(--line);
}
.timeline-date { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.timeline-item .venue { color: var(--ink-soft); font-size: 0.95rem; }
.timeline-item .place { color: var(--slate); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.35rem; }

/* Tools */
.tool { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.tool-mark {
  width: 52px; height: 52px; border-radius: 15px; background: rgba(211, 217, 212, 0.10); color: var(--white);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em;
}
.tool h3 { margin-bottom: 0.15rem; }
.tool-sub { color: var(--slate); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.55rem; }
.tool .note { font-size: 0.9rem; color: var(--slate); margin-top: 0.9rem; }

/* Book and publications showcase */
.publication-showcase { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); gap: 1rem; align-items: stretch; }
.book-card { background: linear-gradient(135deg, rgba(13, 17, 20, 0.94), rgba(28, 37, 45, 0.88)); color: var(--white); position: relative; overflow: hidden; }
.book-card p, .book-card li { color: rgba(255, 255, 255, 0.78); }
.book-cover { width: min(220px, 72%); border-radius: 8px; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35); margin: 0 auto 1.45rem; }
.book-card .pub-meta { margin-bottom: 0.6rem; }
.book-card h3 { margin-bottom: 0.8rem; }
.book-card .text-link { margin-top: 1.15rem; }
.publication-list { display: grid; gap: 0.85rem; }
.publication-item { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(211, 217, 212, 0.05); }
.publication-item p { color: var(--ink-soft); margin-bottom: 0.65rem; }
.publication-item .text-link { margin-top: 0; }
.book-feature { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: center; }
.book-feature img { width: 220px; border-radius: 8px; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35); }
.book-feature .subtitle { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-bottom: 0.8rem; }
.book-feature p { color: var(--ink-soft); max-width: 620px; text-wrap: pretty; }
.book-feature .links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; max-width: 620px; }
.stat { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--white); }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }
.year-group { margin-top: 2.5rem; }
.year-group h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--slate); }

/* Media cards */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.media-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.media-thumb { position: relative; aspect-ratio: 16 / 9; background: #0B0F11; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .length { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(7, 9, 9, 0.85); color: var(--white); font-size: 0.78rem; padding: 0.15rem 0.45rem; border-radius: 4px; }
.media-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.media-body h3 { font-size: 1.25rem; }
.media-body p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.media-body .text-link { margin-top: 0.5rem; }
.also-on { font-size: 0.85rem; color: var(--slate); }
.also-on a { color: var(--link); }

/* About, quote, tags */
.about-panel {
  background: var(--teal); color: var(--white); border-radius: 28px;
  padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden;
}
.about-panel p { color: rgba(248, 251, 249, 0.86); font-size: 1.1rem; max-width: 850px; margin-bottom: 1rem; text-wrap: pretty; }
.about-panel p:last-child { margin-bottom: 0; }
.about-panel h2 { color: var(--white); }
.about-panel .eyebrow { color: rgba(248, 251, 249, 0.7); }
.about-panel .eyebrow::before { background: rgba(248, 251, 249, 0.7); }
.about-panel blockquote { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.05; margin: 1.8rem 0 0; max-width: 900px; text-wrap: balance; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.7rem; position: relative; z-index: 1; }
.tag { border: 1px solid rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 0.5rem 0.85rem; font-size: 0.9rem; font-weight: 500; }
.tag-list.dark .tag { border-color: rgba(211, 217, 212, 0.28); color: var(--ink); }
.quote-band { padding: clamp(2rem, 5vw, 4rem); background: var(--teal); border-radius: 28px; color: var(--white); border: 1px solid rgba(211, 217, 212, 0.22); }
.quote-band blockquote { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.08; max-width: 1000px; text-wrap: balance; }

/* Funding */
.funding-card { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; background: rgba(211, 217, 212, 0.92); color: var(--deep); border-color: rgba(211, 217, 212, 0.56); }
.funding-card img { max-width: 240px; max-height: 74px; object-fit: contain; }
.funding-card h3 { color: var(--deep); }
.funding-card p { max-width: 260px; color: #2E3944; }
.funders { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.funders img { height: 54px; width: auto; background: rgba(211, 217, 212, 0.92); padding: 9px 14px; border-radius: 8px; }
.funders img.wide { height: auto; width: 380px; }
.funder-name { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; color: var(--ink); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }

/* Contact / CTA cards */
.cta-card, .contact-card, .profile-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: center;
  background: rgba(211, 217, 212, 0.05); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem);
}
.cta-links, .contact-links, .profile-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.profile-list { display: flex; flex-direction: column; gap: 0.6rem; }
.profile-list a { color: var(--link); font-weight: 600; }
.profile-list a:hover { color: var(--white); }

/* Breadcrumb */
.breadcrumb { font-size: 0.9rem; color: var(--slate); margin-bottom: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--link); }

/* Speaker kit */
.kit-bio { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.kit-bio h3 { font-size: 1.2rem; color: var(--slate); }
.kit-bio p { color: var(--ink); max-width: 760px; text-wrap: pretty; }
.notice { border: 1px dashed rgba(211, 217, 212, 0.45); border-radius: var(--radius-lg); padding: 1rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1.2rem 3rem; color: var(--ink-soft); font-size: 0.92rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.footer-links a { color: var(--ink-soft); font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); }
.footer-copy { grid-column: 1 / -1; color: var(--slate); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0B0F11; border-bottom: 1px solid var(--line); padding: 0.5rem 1.2rem 1.2rem; box-shadow: 0 24px 40px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin: 1rem 0 0; border-bottom: 0; justify-content: center; }
}
@media (max-width: 900px) {
  .hero, .section-header, .publication-showcase, .grid.two, .grid.three, .cta-card, .contact-card, .profile-card, .book-feature, .media-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .hero-portrait { justify-content: center; }
  .hero-portrait img { width: 100%; max-width: 100%; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .section { padding: 3.5rem 1rem; }
  .brand span:last-child { font-size: 0.85rem; }
  .list-row, .timeline-item, .proof-strip { grid-template-columns: 1fr; }
  .list-row { gap: 0.35rem; }
  .stat-grid { gap: 0.6rem; }
  .stat strong { font-size: 1.9rem; }
  .hero-actions .button { width: 100%; }
}
