/* =========================================================================
   Version B — single-page identity-first speaker site
   Extends tokens.css. No m-dashes anywhere in copy.
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-2);
  color: var(--fg-1);
  font-family: var(--font-body);
  min-height: 100vh;
  /* Subtle paper-warmth pattern: dot grid at very low opacity */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(25,25,25,0.05) 1px, transparent 0);
  background-size: 32px 32px;
}
img { max-width: 100%; display: block; }
a { color: var(--fg-link); }

/* ===== HEADER ===========================================================
   Logo + wordmark only. No top menu. Sticks at top.
   ====================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}
.site-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg-1);
}
.site-header__mark {
  height: 36px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
}
.site-header__wm {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ostoic-black);
}
.site-header__contact {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--fg-2);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-standard);
}
.site-header__contact:hover { color: var(--ostoic-red); }

/* ===== STAGE — the main canvas =========================================
   Two states governed by [data-state] on body:
     - "landing"  : photo centered with four words around it
     - "expanded" : photo shrinks to top-left, words become a wide menu strip,
                    chosen section content visible below
   ====================================================================== */
.stage {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- LANDING STATE -------------------------------------------------- */
body[data-state="landing"] .stage__landing { display: grid; }
body[data-state="landing"] .stage__menu { display: none; }
body[data-state="landing"] .stage__panels { display: none; }

.stage__landing {
  min-height: calc(100vh - 90px);
  align-content: center;
  justify-items: center;
  padding: 48px 0 96px;
  gap: 28px;
  text-align: center;
}

/* The four-word ring: 2 words above the photo, 2 below.
   Words are large, link-styled, click to expand. */
.identity-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(28px, 6vw, 80px);
}
.identity-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 56px);
  letter-spacing: var(--tracking-tight);
  color: var(--ostoic-black);
  text-decoration: none;
  position: relative;
  padding: 4px 8px;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.identity-word::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -2px;
  height: 2px;
  background: var(--ostoic-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-standard);
}
.identity-word:hover {
  color: var(--ostoic-red);
}
.identity-word:hover::after { transform: scaleX(1); }
.identity-word:focus-visible {
  outline: 2px solid var(--ostoic-red);
  outline-offset: 4px;
}

.identity-word--accent {
  color: var(--ostoic-red);
}

/* The hero portrait: round-rect framed photo, soft shadow, large.
   Acts as the visual anchor for both landing AND as the click-to-go-home
   target in expanded state. */
.hero-photo {
  position: relative;
  width: clamp(320px, 44vw, 620px);
  aspect-ratio: 3 / 2;
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  transition: width var(--dur-slow) var(--ease-standard),
              aspect-ratio var(--dur-slow) var(--ease-standard);
  background: var(--ostoic-black);
  cursor: default;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-photo__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: #fff;
  font-family: var(--font-sub);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-photo__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
  margin-bottom: 4px;
}

.tagline-strip {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--fg-2);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.01em;
}

/* ----- EXPANDED STATE ------------------------------------------------- */
body[data-state="expanded"] .stage__landing { display: none; }
body[data-state="expanded"] .stage__menu { display: flex; }
body[data-state="expanded"] .stage__panels { display: block; }

/* Wide menu strip: shrunken photo on the left + four words inline.
   Designer: "twice wider than the regular menu". */
.stage__menu {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 16px 0;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.menu-photo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: var(--r-2);
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-fast) var(--ease-standard);
}
.menu-photo:hover { transform: scale(1.05); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-words {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  align-items: baseline;
}
.menu-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-2);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding: 2px 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.menu-word:hover { color: var(--ostoic-black); }
.menu-word[aria-current="true"] {
  color: var(--ostoic-red);
}
.menu-word[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--ostoic-red);
}

/* Section panels — only the active one is visible */
.panel {
  display: none;
  padding: 56px 0 96px;
}
.panel.is-active { display: block; }

.panel__head {
  max-width: 880px;
  margin: 0 auto 40px;
}
.panel__eyebrow {
  font-family: var(--font-sub);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ostoic-red);
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.panel__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ostoic-red);
}
.panel__h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tighter);
  margin: 0 0 20px;
}
.panel__lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0;
}

.years-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 48px;
  padding: 28px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.years-strip__item {
  text-align: left;
}
.years-strip__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--ostoic-black);
}
.years-strip__label {
  font-family: var(--font-sub);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 8px;
}

/* Picture grid — Speaker uses this; brief metadata only */
.picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.picture-card {
  display: block;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--ostoic-black);
  position: relative;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: #fff;
  border: 0;
}
.picture-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.picture-card:hover img { transform: scale(1.04); }
.picture-card__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  font-family: var(--font-sub);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.picture-card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
  color: #fff;
}

/* Body prose for non-Speaker panels */
.panel__body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-1);
}
.panel__body p { margin: 0 0 1.2em; }
.panel__body em.accent {
  font-style: normal;
  color: var(--ostoic-red);
  font-weight: 600;
}

.panel__cta {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 24px 28px;
  background: var(--ostoic-black);
  color: #fff;
  border-radius: var(--r-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel__cta-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.panel__cta a {
  color: var(--ostoic-yellow);
  font-family: var(--font-sub);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--ostoic-yellow);
  padding-bottom: 2px;
}
.panel__cta a:hover { color: #fff; border-color: #fff; }

/* ===== FOOTER =========================================================
   Quiet engage line + minimal contact. Visible in all states.
   ====================================================================== */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 32px;
  text-align: center;
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--fg-2);
  background: var(--neutral-paper);
}
.site-footer a {
  color: var(--ostoic-red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover { border-bottom-color: var(--ostoic-red); }
.site-footer__line {
  margin: 0 0 6px;
}

/* ===== RESPONSIVE ===================================================== */
@media (max-width: 720px) {
  .site-header__contact { display: none; }
  .stage__landing { padding: 24px 0 64px; gap: 20px; }
  .hero-photo { width: 78vw; }
  .menu-photo { width: 44px; height: 44px; }
  .menu-words { gap: 16px; }
  .panel { padding: 40px 0 64px; }
  .panel__cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   v6-staging iteration — bigger hero, polaroid scatter,
   keynote cards, more yellow/red color pop.
   ============================================================ */

/* --- Hero portrait: wider but vertically constrained so all 4 words stay above the fold --- */
.hero-photo {
  width: clamp(360px, 56vw, 780px) !important;
  aspect-ratio: 16 / 9;
  max-height: 42vh;
}

/* --- More color pop: years-strip numbers in red, with subtle yellow underline --- */
.years-strip__num {
  color: var(--ostoic-red);
}
.years-strip__item {
  border-left: 3px solid var(--ostoic-yellow);
  padding-left: 16px;
}

/* --- Accent: panel eyebrow more vivid --- */
.panel__eyebrow {
  color: var(--ostoic-red);
  font-weight: 800;
  letter-spacing: 0.18em;
}

/* --- Panel CTA: yellow ribbon look --- */
.panel__cta {
  background: var(--ostoic-yellow);
  padding: 24px 28px;
  border-radius: 10px;
  border-left: 6px solid var(--ostoic-red);
}
.panel__cta-text { font-weight: 600; }
.panel__cta a {
  background: var(--ostoic-black);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background .15s;
}
.panel__cta a:hover { background: var(--ostoic-red); }

/* --- Polaroid scatter (replaces picture-grid) --- */
.scatter {
  padding: 56px 0 56px;
}
.scatter__grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  height: 820px;            /* extra space for captions which now sit below each polaroid */
}
.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px;            /* uniform thin border — no extra bottom space */
  box-shadow: 0 10px 28px rgba(25,25,25,0.14), 0 1px 3px rgba(25,25,25,0.06);
  transition: transform .25s cubic-bezier(.4,.2,.2,1), box-shadow .25s, z-index .01s;
  border-radius: 2px;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.05) !important;
  z-index: 10;
  box-shadow: 0 24px 48px rgba(25,25,25,0.22);
}
.polaroid > img {
  width: 100%;
  height: 100%;             /* image fills the entire white frame */
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04);
  display: block;
}

/* Per-polaroid crop adjustments — focus on Oseas when default crop misses him */
.polaroid--p1 > img { object-position: 80% center; }  /* MIT panel: Oseas on right, shift crop right */
.polaroid__cap {
  position: absolute;
  top: calc(100% + 14px);   /* sits BELOW the polaroid frame, rotates with it */
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ostoic-black);
  text-align: center;
}
.polaroid__cap strong {
  font-weight: 800;
  color: var(--ostoic-red);
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

/* Positions for the 6 polaroids — scattered, slightly rotated
   Row 2 (p5, p6) top values bumped so captions on row 1 don't collide. */
.polaroid--p1 { width: 240px; height: 220px; left: 2%;  top: 0;    transform: rotate(-6deg); }
.polaroid--p2 { width: 270px; height: 200px; left: 26%; top: 30px; transform: rotate(3deg); }
.polaroid--p3 { width: 230px; height: 240px; left: 52%; top: 0;    transform: rotate(-4deg); }
.polaroid--p4 { width: 240px; height: 270px; left: 76%; top: 40px; transform: rotate(5deg); }
.polaroid--p5 { width: 280px; height: 210px; left: 8%;  top: 460px; transform: rotate(4deg); }
.polaroid--p6 { width: 240px; height: 230px; left: 38%; top: 500px; transform: rotate(-5deg); }
.polaroid--p7 { width: 260px; height: 200px; left: 64%; top: 480px; transform: rotate(2deg); }
.polaroid--p1 img { filter: contrast(1.08); }

/* --- Section divider between polaroids and keynote cards --- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 72px auto 56px;
  max-width: 600px;
}
.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ostoic-yellow) 30%, var(--ostoic-yellow) 70%, transparent);
}
.section-divider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ostoic-red);
}

/* --- Keynote cards block --- */
.keynote-block { padding: 32px 0 64px; }
.keynote-block__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.keynote-block__h {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin: 12px 0 14px;
}
.keynote-block__lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
}
.keynote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.kn-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid #ececec;
}
.kn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(25,25,25,0.10);
}
.kn-card--white { background: #fff; }
.kn-card--yellow { background: var(--ostoic-yellow); border-color: var(--ostoic-yellow); }
.kn-card--dark { background: var(--ostoic-black); color: #fff; border-color: var(--ostoic-black); }
.kn-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ostoic-red);
}
.kn-card--dark .kn-card__eyebrow { color: var(--ostoic-yellow); }
.kn-card--yellow .kn-card__eyebrow { color: var(--ostoic-black); }
.kn-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}
.kn-card__sub {
  font-style: italic;
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
}
.kn-card--dark .kn-card__sub { color: #c0c0c0; }
.kn-card__body {
  font-size: 14px;
  line-height: 1.55;
  margin: 6px 0 0;
}
.kn-card__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #000;
  margin: 6px 0;
}
.kn-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}
.kn-card--dark .kn-card__meta { border-top-color: rgba(255,255,255,0.12); color: #aaa; }
.kn-card--yellow .kn-card__meta { border-top-color: rgba(25,25,25,0.18); color: var(--ostoic-black); }
.kn-card__pill {
  background: var(--ostoic-red);
  color: #fff;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.kn-card--yellow .kn-card__pill { background: var(--ostoic-black); }
.kn-card--dark .kn-card__pill { background: var(--ostoic-yellow); color: var(--ostoic-black); }

/* --- Yellow + red accents added to existing components --- */
.accent { color: var(--ostoic-red); }
em.accent { font-style: normal; font-weight: 700; }
.panel__h .accent { color: var(--ostoic-red); }

/* --- Mobile responsiveness for new sections --- */
@media (max-width: 980px) {
  .keynote-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .scatter__grid {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .polaroid {
    position: relative !important;
    transform: rotate(0deg) !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: 320px !important;
  }
  .keynote-grid { grid-template-columns: 1fr; }
  .panel__cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-photo { width: 90vw !important; aspect-ratio: 4 / 3; }
}

/* --- Father section: two highlighted project cards --- */
.father-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0 32px;
}
.father-project {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 28px 24px;
  background: var(--ostoic-yellow);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ostoic-black);
  transition: transform .15s, box-shadow .15s;
  border-left: 6px solid var(--ostoic-red);
}
.father-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(25,25,25,0.14);
}
.father-project__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ostoic-red);
}
.father-project__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  margin: 4px 0 0;
  color: var(--ostoic-black);
}
.father-project__body {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.father-project__cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ostoic-red);
  margin-top: 6px;
}
@media (max-width: 720px) {
  .father-projects { grid-template-columns: 1fr; }
}
