/* ===========================================================
   Aviv Braun — personal site (matched to live avivbraun.com)
   =========================================================== */
/* Refined v1 system. Dark ground, cream ink, ONE accent.
   Initiative pages swap --accent only (see [data-initiative] below). */
:root {
  --bg: #15171f;
  --card: #1e212b;           /* one tone step up from the ground; replaces borders */
  --card-2: #262a36;
  --card-border: rgba(255,255,255,0.10);
  --cream: #f3efd9;          /* headings and the name */
  --text: #d7d9e0;           /* body, 12.7:1 on --bg */
  --text-dim: #a3a8ba;       /* secondary, 7.5:1 on --bg */
  --accent: #e16f7c;         /* the one accent: actions, key numbers, focus */
  --accent-hi: #ef8a95;
  --salmon: var(--accent);   /* legacy names, kept so older blocks follow the accent */
  --pink: var(--accent);
  --periwinkle: var(--accent);
  --radius: 4px;
  --max: 1180px;
  --edge: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-size: 16px;
}
[data-initiative="pmm101"] { --accent: #ec6aa1; --accent-hi: #f38db7; }
[data-initiative="collective"] { --accent: #e8a13c; --accent-hi: #f0b860; }
[data-initiative="ai4pmms"] { --accent: #5ee7c4; --accent-hi: #8ff0d7; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: #3a3e4c var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: calc(var(--max) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }
@media (max-width: 600px) { :root { --edge: 20px; } }

/* ---------- Buttons (one shape, one radius, everywhere) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary, .btn-salmon { background: var(--accent); color: var(--bg); }
.btn-outline { background: var(--card-2); color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-salmon:hover { background: var(--accent-hi); }
  .btn-outline:hover { background: #313646; }
}
.open-to { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.9375rem; }
.open-to::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.15); }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: background-color 220ms ease; }
header.site.is-scrolled { background: #1a1c25; }
.nav { display: flex; align-items: center; height: 68px; gap: 28px; }
.wordmark { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; color: var(--cream); margin-right: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 0.9375rem; color: var(--text); font-weight: 600; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--cream); } }
.nav-toggle { display: none; }

/* ---------- Hero: the name as the monument ---------- */
/* Arial sets "Aviv Braun" about 23% wider than Schibsted Grotesk 800; scaled to
   match, so the name still fits the width while the web font is loading. */
@font-face { font-family: "Name Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 800; size-adjust: 81.5%; }
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; text-align: left; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.hero-lead {
  margin: 0; max-width: 32ch;
  font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2.125rem); line-height: 1.2; font-weight: 600;
  letter-spacing: -0.02em; color: var(--cream); text-wrap: balance;
}
.hero-proof { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: grid; gap: 10px; font-size: 1.0625rem; color: var(--text); }
.hero-proof b { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 0.3em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(28px, 3.5vw, 40px); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 360px); min-height: 320px; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.hero-name {
  position: relative; z-index: 2; margin: clamp(28px, 3.5vw, 48px) 0 0; padding: 0.06em calc(var(--edge) - 0.04em) 0;
  font-size: clamp(3.75rem, 17.4vw, 16.25rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.055em;
  color: var(--cream); white-space: nowrap; font-family: "Schibsted Grotesk", "Name Fallback", Arial, sans-serif;
}
.hero-name span { display: inline-block; transform-origin: 0 100%; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-name span { animation: name-settle linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
@keyframes name-settle { to { transform: scale(0.94); opacity: 0.55; } }
@media (min-width: 1400px) { .hero-name { padding-left: calc((100vw - var(--max)) / 2 - 0.04em); } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .hero { display: flex; flex-direction: column; padding-top: 20px; }
  .hero-name { order: -1; font-size: 17.4vw; margin: 0 0 24px; }
}

/* ---------- Shared section header: heading left, controls right ---------- */
.section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-h { margin: 0; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; color: var(--cream); text-wrap: balance; max-width: 22ch; }
.carousel-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.carousel-count { font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: 0.9375rem; margin-right: 6px; min-width: 3.2em; text-align: right; }
.arrow-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--card-2); color: var(--cream); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}
.arrow-btn:active:not(:disabled) { transform: scale(0.94); }
.arrow-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .arrow-btn:hover:not(:disabled) { background: var(--accent); color: var(--bg); } }

/* ---------- Testimonials ---------- */
.testimonials { padding-top: clamp(72px, 9vw, 128px); }
.testi-viewport { position: relative; margin: 0 calc(-1 * var(--edge)); }
.testi-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 0 var(--edge) 4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: start; flex: 0 0 calc((100% - 2 * var(--edge) - 20px) / 2); min-width: 300px;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px);
}
.testi-card .quote-mark { display: block; font-weight: 800; font-size: 4rem; line-height: 0.6; height: 0.45em; color: var(--accent); margin-bottom: 20px; }
.testi-card h3 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--cream); margin: 0 0 14px; font-weight: 700; text-wrap: balance; }
.testi-card p { color: var(--text); font-size: 1rem; line-height: 1.6; margin: 0 0 28px; }
.testi-who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testi-who .name { color: var(--cream); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.testi-who .role { color: var(--text-dim); font-weight: 400; font-size: 0.875rem; margin: 2px 0 8px; }
.testi-logo { display: block; height: 20px; width: auto; max-width: 110px; object-fit: contain; object-position: left center; }
.testi-logo.is-square { width: 20px; border-radius: 4px; }
@media (max-width: 820px) {
  .section-bar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .testi-card { flex-basis: calc(100% - 2 * var(--edge) - 28px); min-width: 0; }
}

/* ---------- Proof: case studies ---------- */
.proof { padding-top: clamp(96px, 11vw, 160px); }
.section-lede { margin: 0; max-width: 36ch; color: var(--text-dim); font-size: 1rem; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case { background: var(--card); border-radius: var(--radius); transition: background-color 200ms ease; }
.case[open] { background: var(--card-2); }
.case summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto;
  gap: 8px 32px; align-items: center; padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px);
}
.case summary::-webkit-details-marker { display: none; }
.case-metric { font-size: clamp(2.75rem, 1.9rem + 2.8vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-title { display: grid; gap: 6px; }
.case-org { display: flex; align-items: center; gap: 14px; }
.case-org img { height: 18px; width: auto; opacity: 0.9; }
.case-org .label { font-size: 0.875rem; color: var(--text-dim); letter-spacing: 0; text-transform: none; font-family: inherit; }
.case-title .h3 { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--cream); transition: color 160ms ease; }
.case-title .muted { color: var(--text); font-size: 1rem; }
.case-toggle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); position: relative; flex-shrink: 0;
  transition: transform 260ms var(--ease-out), background-color 160ms ease;
}
.case[open] .case-toggle { background: var(--accent); transform: rotate(45deg); }
.case-toggle::before, .case-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 1px; background: var(--cream); transform: translate(-50%, -50%); }
.case-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.case[open] .case-toggle::before, .case[open] .case-toggle::after { background: var(--bg); }
.case-toggle .open, .case-toggle .close { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (hover: hover) and (pointer: fine) { .case summary:hover .h3 { color: var(--accent-hi); } .case summary:hover .case-toggle { background: #313646; } .case[open] summary:hover .case-toggle { background: var(--accent-hi); } }
.case-body {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  padding: 0 clamp(22px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px) calc(13rem + 32px + clamp(22px, 2.6vw, 36px));
}
.case-body .label { margin: 0 0 6px; font-size: 0.875rem; font-weight: 700; color: var(--accent); text-transform: none; letter-spacing: 0; font-family: inherit; }
.case-body p:not(.label) { margin: 0; font-size: 1rem; color: var(--text); }
.case[open] .case-body { animation: case-in 320ms var(--ease-out); }
@keyframes case-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .case[open] .case-body { animation: none; } .case-toggle { transition: none; } }
@media (max-width: 860px) {
  .case summary { grid-template-columns: minmax(0, 1fr) auto; }
  .case-metric { grid-column: 1 / -1; }
  .case-body { grid-template-columns: 1fr; gap: 16px; padding-left: clamp(22px, 2.6vw, 36px); }
}

/* ---------- Section shell ---------- */
section { padding: 70px 0; }
.section-title {
  text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--cream); font-weight: 600; margin: 0 0 44px;
}

/* ---------- Programs: each card previews its initiative's colour ---------- */
.programs { padding-top: clamp(96px, 11vw, 160px); }
.programs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.program {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent) 9%, var(--card));
  transition: background-color 240ms ease;
}
.program p { margin: 0; color: var(--text); }
.program .mark { font-weight: 800; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem); line-height: 1; letter-spacing: -0.045em; color: var(--cream); margin-bottom: 6px; }
.mark em { font-style: normal; color: var(--accent); }
.program .stat { color: var(--accent); font-weight: 700; font-size: 0.9375rem; }
.program .go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--cream); }
.program .go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole card is the link */
.program .go svg { transition: transform 220ms var(--ease-out); }
.program:has(.go:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.program .go:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .program:hover { background: color-mix(in oklab, var(--accent) 15%, var(--card)); }
  .program:hover .go svg { transform: translateX(4px); }
}
.program:active { transform: scale(0.99); transition: transform 120ms var(--ease-out); }
@media (max-width: 900px) { .programs-grid { grid-template-columns: 1fr; } }

/* ---------- Speaking & media ---------- */
.speaking { padding-top: clamp(96px, 11vw, 160px); }
.speaking-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.speak-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: background-color 220ms ease; }
.speak-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--card-2); transition: transform 500ms var(--ease-out); }
.speak-meta { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.speak-event { color: var(--cream); font-weight: 700; font-size: 1rem; line-height: 1.35; letter-spacing: -0.01em; }
.speak-date { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-dim); font-size: 0.875rem; }
.speak-linkedin { color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .speak-card:hover { background: var(--card-2); }
  .speak-card:hover img { transform: scale(1.03); }
}
.speak-card:active { transform: scale(0.99); transition: transform 120ms var(--ease-out); }
.speak-card > img { overflow: hidden; }
@media (max-width: 1000px) { .speaking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .speaking-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--edge)); padding: 0 var(--edge); scroll-padding-inline: var(--edge);
  }
  .speaking-grid::-webkit-scrollbar { display: none; }
  .speak-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- AI tools: real screenshots, one lead, two mid, four small ---------- */
.tools-sec { padding-top: clamp(96px, 11vw, 160px); }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: background-color 220ms ease; }
.tool-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tool-mid { grid-column: span 2; }
.tool-shot { display: block; overflow: hidden; background: var(--card-2); }
.tool-shot img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform 500ms var(--ease-out); }
.tool-text { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.2vw, 28px); flex: 1; }
.tool-lead .tool-text { justify-content: center; padding: clamp(24px, 3.4vw, 48px); }
.tool-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.025em; color: var(--cream); }
.tool-lead .tool-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tool-desc { color: var(--text); font-size: 0.9375rem; line-height: 1.55; }
.tool-lead .tool-desc { font-size: 1.0625rem; }
.tool-sm .tool-desc { font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tool-go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 0.9375rem; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .tool:hover { background: var(--card-2); }
  .tool:hover .tool-shot img { transform: scale(1.03); }
  .tool:hover .tool-go { color: var(--accent-hi); }
}
.tool:active { transform: scale(0.99); transition: transform 120ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .tool-shot img { transition: none; } }
.tools-more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) {
  .tools-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-lead { grid-template-columns: 1fr; }
  .tool-mid { grid-column: span 1; }
}
@media (max-width: 620px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-mid, .tool-lead { grid-column: auto; }
  /* the four smaller tools become one swipeable row instead of four more screens */
  .tools-more {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--edge)); padding: 0 var(--edge); scroll-padding-inline: var(--edge);
  }
  .tools-more::-webkit-scrollbar { display: none; }
  .tools-more .tool { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- Timeline ---------- */
.timeline { padding-top: clamp(96px, 11vw, 160px); }
.timeline-label { text-align: left; color: var(--cream); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 24px; }
.timeline-label-volunteer { margin-top: 56px; }
.timeline-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 32px 22px; }
.timeline-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 124px; text-align: center; cursor: default;
}
/* connector segment between adjacent items (desktop only, where the row does not wrap) */
.timeline-item::after {
  content: ""; position: absolute; top: 61px;
  left: calc(50% + 36px); width: 74px; height: 2px;
  background: var(--card-2); z-index: 0;
}
.timeline-item:last-child::after { display: none; }

.timeline-year {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0;
  color: var(--accent); margin-bottom: 10px; line-height: 1.1; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timeline-row-volunteer .timeline-year { color: var(--salmon); }

.timeline-logo, .timeline-badge {
  position: relative; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--card); border: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
/* LinkedIn company marks are square tiles with their own background, so fill the
   circle rather than floating a small square inside it */
.timeline-logo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-logo-text {
  background: #ec6aa1;
}
.timeline-logo-text span {
  color: var(--bg); font-weight: 800; font-size: 0.8125rem; letter-spacing: -0.02em;
}
.timeline-logo-text b { font-weight: 800; }

/* current / ongoing roles get an accent ring */
.timeline-item.is-current .timeline-logo { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

.timeline-title {
  margin-top: 14px; font-size: 0.875rem; font-weight: 700; color: var(--cream);
  line-height: 1.35;
}
.timeline-title span {
  display: block; margin-top: 3px; font-size: 0.8125rem; font-weight: 400;
  color: var(--text-dim);
}
@media (max-width: 1040px) {
  .timeline-item::after { display: none; }
}
@media (max-width: 700px) {
  .timeline-row { justify-content: center; gap: 28px 12px; }
  .timeline-item { width: 104px; }
  .timeline-logo, .timeline-badge { width: 60px; height: 60px; }
  .timeline-year { font-size: 0.8125rem; }
}

/* Hover testimonial tooltip on timeline items that have a matching quote */
.timeline-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  width: 260px;
  background: var(--card-2);
  border: 0;
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
  z-index: 20;
}
.timeline-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--card-2);
}
.timeline-tooltip p {
  margin: 0 0 8px;
  color: var(--cream);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.timeline-tooltip .tt-who {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-dim);
}

.timeline-item:hover .timeline-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .timeline-tooltip { display: none; }
  .timeline-item:has(.timeline-tooltip) { cursor: pointer; }
}
.timeline-quote { display: none; }
@media (max-width: 900px) {
  .timeline-quote:not(:empty) { display: block; margin-top: 20px; padding: 18px 20px; background: var(--card-2); border-radius: var(--radius); animation: case-in 260ms var(--ease-out); }
  .timeline-quote p { margin: 0 0 8px; color: var(--cream); font-size: 1rem; line-height: 1.5; }
  .timeline-quote .tt-who { color: var(--text-dim); font-size: 0.875rem; }
  .timeline-item.is-open .timeline-logo { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
}

/* ---------- Timeline recommendations ----------
   Roles that carry a recommendation get a small quote badge on their logo, so the
   pattern reads at a glance; hovering (or focusing) the role opens the quote.
   Everything keys off :has(.timeline-tooltip), so giving a role a tooltip is all it
   takes for it to pick up the badge. */
.timeline-logo { overflow: visible; }          /* let the badge sit on the rim... */
.timeline-logo img { border-radius: 50%; }     /* ...and clip the logo itself instead */

.timeline-item:has(.timeline-tooltip) .timeline-logo::after,
.timeline-hint-badge {
  content: "";
  width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
  background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e16f7c'%3E%3Cpath d='M9.6 5.5C6.4 6.8 4.3 9.7 4.3 13.4v5.1h5.6v-5.6H7.1c0-2 1.2-3.6 3.1-4.4L9.6 5.5zm10 0c-3.2 1.3-5.3 4.2-5.3 7.9v5.1h5.6v-5.6h-2.8c0-2 1.2-3.6 3.1-4.4l-.6-3z'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 0;
}
.timeline-item:has(.timeline-tooltip) .timeline-logo::after {
  position: absolute; right: -5px; bottom: -3px; z-index: 2;
  transition: transform 0.18s ease;
}
.timeline-row-volunteer .timeline-item:has(.timeline-tooltip) .timeline-logo::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e16f7c'%3E%3Cpath d='M9.6 5.5C6.4 6.8 4.3 9.7 4.3 13.4v5.1h5.6v-5.6H7.1c0-2 1.2-3.6 3.1-4.4L9.6 5.5zm10 0c-3.2 1.3-5.3 4.2-5.3 7.9v5.1h5.6v-5.6h-2.8c0-2 1.2-3.6 3.1-4.4l-.6-3z'/%3E%3C/svg%3E");
}

.timeline-item:has(.timeline-tooltip) { outline: none; }
.timeline-item:has(.timeline-tooltip) .timeline-logo { transition: transform 0.18s ease; }
.timeline-item:has(.timeline-tooltip):hover .timeline-logo,
.timeline-item:has(.timeline-tooltip):focus-within .timeline-logo { transform: translateY(-3px); }
.timeline-item:has(.timeline-tooltip):hover .timeline-logo::after,
.timeline-item:has(.timeline-tooltip):focus-within .timeline-logo::after { transform: scale(1.15); }
/* keyboard users get the same quote as mouse users */
.timeline-item:focus-within .timeline-tooltip {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.timeline-item:focus-visible .timeline-title { text-decoration: underline; text-underline-offset: 3px; }

/* one quiet line under the title explaining the badge */
.timeline-hint {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0; color: var(--text-dim); font-size: 0.9375rem; text-align: left; justify-content: flex-start; max-width: 36ch;
}
.timeline-hint-badge { display: inline-block; flex-shrink: 0; }
.timeline-hint .hint-touch { display: none; }
@media (max-width: 900px) {
  .timeline-hint .hint-hover { display: none; }
  .timeline-hint .hint-touch { display: inline; }
}

[hidden] { display: none !important; }


/* ---------- Portfolio ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  border: none; background: none; padding: 8px 4px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; cursor: pointer; color: var(--text-dim);
}
.filter-btn { transition: color 0.15s ease; }
.filter-btn.active, .filter-btn:hover { color: var(--periwinkle); }

.portfolio-grid {
  column-count: 4; column-gap: 20px;
}
.p-card {
  break-inside: avoid; margin-bottom: 20px;
  border-radius: 10px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  display: block;
  transition: transform 0.15s ease;
}
.p-card:hover { transform: translateY(-3px); }
.p-card img { width: 100%; display: block; }
.p-card .p-title { padding: 14px 16px; font-weight: 700; color: #1b1e29; background: #f2f0e6; font-size: 0.95rem; }
@media (max-width: 980px) { .portfolio-grid { column-count: 2; } }
@media (max-width: 560px) { .portfolio-grid { column-count: 1; } }

/* ---------- Posts (LinkedIn) ---------- */
.posts { padding-top: clamp(96px, 11vw, 160px); }
.posts-carousel { max-width: none; }
.posts-stage { position: relative; }
.posts-viewport { overflow: hidden; }
.posts-track { display: flex; gap: 12px; transition: transform 450ms var(--ease-in-out); }
@media (prefers-reduced-motion: reduce) { .posts-track { transition: none; } }
.post-slide { flex: 0 0 calc((100% - 24px) / 3); min-width: 0; }
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--card); transition: background-color 220ms ease; }
.post-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; background: var(--card-2); display: block; }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-caption { color: var(--text); font-size: 0.9375rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-caption[dir="rtl"] { text-align: right; }
.post-card-text .post-body { padding: 24px 22px; }
.post-card-text .post-caption { -webkit-line-clamp: 10; font-size: 1rem; }
.post-link { color: var(--accent); font-weight: 700; font-size: 0.9375rem; margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .post-card:hover { background: var(--card-2); } }
.post-card:active { transform: scale(0.99); transition: transform 120ms var(--ease-out); }
.posts-dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.posts-dot { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.posts-dot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #3a3e4c; transition: background-color 200ms ease, transform 200ms var(--ease-out); }
.posts-dot.active::before { background: var(--accent); transform: scale(1.2); }
@media (max-width: 900px) { .post-slide { flex: 0 0 calc((100% - 12px) / 2); } }
@media (max-width: 620px) { .post-slide { flex: 0 0 100%; } }

/* ---------- Connect ---------- */
.connect { padding: clamp(96px, 11vw, 160px) 0; }
.connect-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.connect-left { display: flex; flex-direction: column; gap: 20px; }
.connect-lead { margin: 0; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); line-height: 1.3; color: var(--cream); font-weight: 600; letter-spacing: -0.015em; max-width: 24ch; }
.connect-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.connect-embed { border-radius: var(--radius); overflow: hidden; background: #fff; min-height: 480px; }
.connect-embed iframe { width: 100%; height: 640px; border: none; display: block; }
@media (max-width: 860px) { .connect-grid { grid-template-columns: 1fr; } .connect-actions .btn { flex: 1 1 100%; } }

/* ---------- Footer: the name returns, inverted ---------- */
.site-foot { background: var(--cream); color: var(--bg); padding: 48px 0 0; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 0.9375rem; line-height: 1.5; }
.foot-cols p { margin: 0; }
.foot-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .foot-link:hover { text-decoration-thickness: 2px; } }
.foot-name { margin: clamp(40px, 8vw, 120px) 0 0; padding: 0 calc(var(--edge) - 0.04em); font-family: "Schibsted Grotesk", "Name Fallback", Arial, sans-serif; font-size: clamp(3.75rem, 17.4vw, 16.25rem); font-weight: 800; line-height: 0.74; letter-spacing: -0.055em; white-space: nowrap; color: var(--bg); }
@media (min-width: 1400px) { .foot-name { padding-left: calc((100vw - var(--max)) / 2 - 0.04em); } .foot-cols { } }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Initiative pages: same ground, same header, only the accent changes ---------- */
.ihero { padding: clamp(32px, 5vw, 72px) 0 0; }
.ihero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.ihero-grid.has-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.crumb { margin: 0 0 clamp(20px, 3vw, 36px); font-size: 0.9375rem; color: var(--text-dim); display: flex; gap: 8px; }
.crumb a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .crumb a:hover { color: var(--accent); } }
.mark-xl { margin: 0; font-weight: 800; font-size: clamp(3rem, 1.6rem + 6.4vw, 7.5rem); line-height: 0.85; letter-spacing: -0.055em; color: var(--cream); }
.ihero-h { margin: clamp(20px, 2.5vw, 32px) 0 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--cream); max-width: 26ch; text-wrap: balance; }
.ihero-lede { margin: 16px 0 0; max-width: 56ch; color: var(--text); font-size: 1.0625rem; }
.ihero-cta { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }
.ihero-photo { margin: 0; }
.ihero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.facts { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts div { background: color-mix(in oklab, var(--accent) 9%, var(--card)); border-radius: var(--radius); padding: 20px 22px; }
.facts dt { font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.facts dd { margin: 6px 0 0; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 700; color: var(--cream); letter-spacing: -0.015em; line-height: 1.3; }

.isec { padding-top: clamp(88px, 10vw, 144px); }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topics li { background: var(--card); border-radius: var(--radius); padding: 22px 24px; font-size: 1.125rem; font-weight: 700; color: var(--cream); letter-spacing: -0.015em; }
.cohorts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cohort img { aspect-ratio: 5 / 4; object-fit: cover; object-position: top; background: #f3f1ea; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--card); border-radius: var(--radius); padding: 12px; }
.event img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.event > div { padding: 8px 12px 8px 0; }
.event-date { margin: 0 0 6px; font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.event h3 { margin: 0 0 8px; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--cream); }
.event p:last-child { margin: 0; color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split img { width: 100%; border-radius: var(--radius); }
.prose p { margin: 0; color: var(--text); font-size: 1.0625rem; max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.prose-wide p { font-size: 1.125rem; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; background: var(--card); border-radius: var(--radius); padding: 16px 22px; font-size: 1.0625rem; color: var(--cream); }
.agenda time { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.people li { display: grid; gap: 4px; background: var(--card); border-radius: var(--radius); padding: 20px 22px; }
.people b { color: var(--cream); font-size: 1.0625rem; }
.people span { color: var(--text-dim); font-size: 0.9375rem; }
.ihero-faces { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ihero-faces img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--card-2); }
.ihero-faces figcaption { grid-column: 1 / -1; margin-top: 6px; color: var(--text-dim); font-size: 0.875rem; }
.people-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.people-photos li { padding: 0 0 18px; overflow: hidden; gap: 4px; }
.people-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 12px; }
.people-photos b, .people-photos span, .people-photos em { padding: 0 18px; }
.people-photos em { font-style: normal; color: var(--accent); font-size: 0.875rem; font-weight: 700; line-height: 1.35; margin-top: 6px; }
@media (max-width: 1000px) { .people-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ihero-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-programs { padding-bottom: clamp(88px, 10vw, 144px); }
.programs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .ihero-grid.has-photo { grid-template-columns: 1fr; }
  .facts, .topics, .cohorts-grid, .people:not(.people-photos), .programs-grid-2 { grid-template-columns: 1fr; }
  .event, .split { grid-template-columns: 1fr; }
  .event > div { padding: 4px 8px 8px; }
}

/* ---------- Moving between pages ----------
   Every page shares the ground, the header and the type, so a page change only
   swaps the accent. Where the browser supports cross-document view transitions,
   the old and new pages crossfade and each initiative's mark glides from the card
   that was clicked into the new page's hero (and back). */
@view-transition { navigation: auto; }
header.site { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
}
@media (max-width: 820px) {
  .nav { gap: 12px; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; background: #1a1c25;
    flex-direction: column; padding: 8px var(--edge) 20px; gap: 0; align-items: stretch;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 1.0625rem; color: var(--cream); }
  .nav-links a + a { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: var(--card); border: 0; border-radius: var(--radius); cursor: pointer;
    transition: transform 160ms var(--ease-out);
  }
  .nav-toggle:active { transform: scale(0.95); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--cream); position: relative;
    transition: transform 200ms var(--ease-out), background-color 200ms ease;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 380px) { .wordmark { font-size: 1rem; } .nav-cta { padding: 0 12px; } }
