@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-tight.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --bg:         #0A0A0A;
  --bg-soft:    #111111;
  --fg:         #F5F5F5;
  --fg-mute:    rgba(245,245,245,0.55);
  --fg-faint:   rgba(245,245,245,0.5);
  --line:       rgba(245,245,245,0.10);
  --line-soft:  rgba(245,245,245,0.06);
  --accent:     #5BE6A2;
  --accent-dim: rgba(91,230,162,0.18);

  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --body:    "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ── Background canvas ──────────────────────────────────────── */

.bg-drift {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ── Shell ──────────────────────────────────────────────────── */

.shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 28px 36px;
}

.shell > * {
  position: relative;
  z-index: 1;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0 40px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--line);
}

.name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 9.5vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
}

.name .first,
.name .last {
  display: inline-block;
}

.tagline {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 14px;
  line-height: 1.8;
}

.tagline span:not(.tag-sep) {
  white-space: nowrap;
}

.tag-sep {
  color: var(--fg-faint);
  opacity: 0.7;
}

.bio {
  margin: 36px auto 0;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-mute);
  text-wrap: pretty;
}

.bio strong {
  color: var(--fg);
  font-weight: 500;
}

/* ── CTA buttons ────────────────────────────────────────────── */

.cta-row {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--accent-dim) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}

.cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta:hover::before {
  transform: translateX(100%);
}

.cta:active {
  transform: translateY(1px);
}

.cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.cta:hover svg {
  transform: translateX(2px) rotate(-2deg);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 720px) {
  .shell { padding: 20px; }
  .bio { font-size: 14.5px; padding: 0 8px; }
  .cta-row { gap: 8px; }
  .cta { padding: 11px 16px; font-size: 11.5px; }
}

/* ── Presentations page ─────────────────────────────────────── */

.pres-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 1;
  padding: 48px 36px 72px;
}

.pres-page {
  max-width: 960px;
  margin: 0 auto;
}

.pres-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  transition: color .2s ease;
  margin-bottom: 3rem;
}

.pres-back:hover { color: var(--fg); }

.pres-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 2.5rem;
}

.pres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
}

.pres-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, background .25s ease;
}

.pres-card:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
}

.pres-card-event {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.75rem;
}

.pres-card-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.pres-card-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  transition: color .2s ease;
}

.pres-card:hover .pres-card-cta { color: var(--accent); }

@media (max-width: 720px) {
  .pres-shell { padding: 32px 20px 48px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-drift { display: none; }
}
