/* Home page: hero (title, tagline, pillars, portrait + CTAs) and the stats strip. */

.hero { padding: var(--space-8) 0 var(--space-7); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-8); align-items: center; }
.eyebrow { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); margin-bottom: var(--space-4); }
.hero h1 { font-size: clamp(3.25rem, 9vw, 7.5rem); letter-spacing: -0.045em; line-height: 0.92; }
.hero .tagline { font-family: var(--font-display); font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; max-width: 34ch; margin: var(--space-6) 0 var(--space-4); }
.hero .tagline em { font-style: normal; color: var(--color-accent-text); }
.hero__intro { color: var(--color-ink-2); max-width: 58ch; }

.pillars { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-4) 0 0; max-width: none; }
.pillars li { margin: 0; font-size: var(--text-xs); color: var(--color-ink); padding: 0.4em 0.9em; border: 1px solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-surface); }
.pillars li::before { content: "+"; margin-right: 0.5em; color: var(--color-ink-2); }

/* Portrait: square photo with thin white corner frames, CTAs centred at the bottom */
.hero-portrait { position: relative; width: 100%; max-width: 640px; justify-self: end; margin: 0; }
.hero-portrait .tcard__window { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-surface-2); }
.hero-portrait .tcard__window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 900ms var(--ease); }
.hero-portrait:hover .tcard__window img { transform: scale(1.03); }
.hero-portrait .tcard__window::after {
  content: ""; position: absolute; inset: 16px; z-index: 1; pointer-events: none;
  --c: rgba(255, 255, 255, 0.9); --l: 22px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}
.hero__cta {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: var(--space-3); white-space: nowrap;
}

@media (max-width: 860px) {
  .hero { padding-top: var(--space-6); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 440px; justify-self: start; }
}
@media (max-width: 480px) {
  .hero__cta { bottom: 32px; gap: var(--space-2); }
}

/* ---------- Stats strip: full width, hairline separators, no boxes ---------- */
.statbar { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-2); padding: var(--space-6) var(--space-5); border-left: 1px solid var(--color-line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
.stats dt { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 22ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-line); }
  .stats > div:nth-child(-n+2) { border-top: 0; }
  .stats > div:nth-child(even) { padding-left: var(--space-5); border-left: 1px solid var(--color-line); }
}

/* "GDC ’24" stat links down to the Talks section */
.stats dt a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-line); text-underline-offset: 0.2em; transition: color 200ms var(--ease); }
.stats dt a:hover { color: var(--color-accent-text); text-decoration-color: currentColor; }

/* Talks & writing (dark band): the GDC video large, the other talks as a list beside it */
.talks { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.talks__video { margin: 0; }
.talks__video .yt { border-radius: var(--radius-tile); }
.talks__video .yt__play { width: 88px; height: 88px; }
.talks__video figcaption { margin-top: var(--space-4); font-size: var(--text-sm); color: rgba(255, 255, 255, 0.78); }
.talks__video figcaption strong { color: #fff; font-weight: 500; }
/* title over the video still (removed with the button when the video loads) */
.talks__video .yt button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.65) 28%, rgba(0, 0, 0, 0) 58%); pointer-events: none; }
.talks__title { position: absolute; left: var(--space-5); right: var(--space-5); bottom: var(--space-5); z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.talks__title .chip { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.talks__title strong { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: #fff; }
/* timeline: year column, a thin line with a dot per stop, then the entry */
.talks__list { list-style: none; margin: 0; padding: 0; }
.talks__list li { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); margin: 0; }
.talks__year { padding-top: 0.05em; font-family: var(--font-display); font-size: var(--text-md); color: #fff; }
.talks__item { position: relative; padding: 0 0 var(--space-6) var(--space-5); border-left: 1px solid rgba(255, 255, 255, 0.22); }
.talks__list li:last-child .talks__item { padding-bottom: 0; border-left-color: transparent; }
.talks__list li:last-child .talks__item::after { content: ""; position: absolute; left: -1px; top: 0; height: 0.75em; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.talks__item::before { content: ""; position: absolute; left: -6px; top: 0.3em; width: 11px; height: 11px; border-radius: 50%; background: var(--color-black); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.talks__list li.is-featured .talks__item::before { background: var(--color-accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25); }
.talks__meta { display: block; margin-bottom: var(--space-1); font-size: var(--text-xs); color: var(--color-ink-3); }
.talks__list h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; letter-spacing: 0; color: #fff; }
.talks__list p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.78); }
.talks__list a { display: inline-block; margin-top: var(--space-2); font-size: var(--text-sm); }
@media (max-width: 1000px) { .talks { grid-template-columns: 1fr; gap: var(--space-6); } }
@media (max-width: 640px) {
  .talks__title { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
  .talks__title .chip { display: none; }   /* small video: the title alone, clear of the play button */
  .talks__title strong { font-size: var(--text-lg); }
  .talks__video .yt__play { width: 60px; height: 60px; }
}
