:root {
  color-scheme: light;
  --bg: #fff;
  --bg-tint: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --link: #0066cc;
  --link-hover: #0077ed;
  --fill: #e8e8ed;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(251, 251, 253, 0.72);
  --header-bg-scrolled: rgba(251, 251, 253, 0.88);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 980px;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --bg-tint: #151516;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.12);
  --link: #2997ff;
  --link-hover: #6cb3ff;
  --fill: #2c2c2e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(22, 22, 23, 0.72);
  --header-bg-scrolled: rgba(22, 22, 23, 0.88);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

address {
  font-style: normal;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  z-index: 20;
  border-radius: 980px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--header-bg-scrolled);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}

.mark {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark:hover {
  text-decoration: none;
  opacity: 0.7;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--fill);
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.nav-links {
  display: flex;
  flex-shrink: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  opacity: 1;
  text-decoration: none;
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.25rem, 5vw, 4rem) 0;
}

.hero > div {
  min-width: 0;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.07;
  text-wrap: balance;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.hero-role {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.35;
}

.lede {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  overflow-wrap: break-word;
}

.error {
  min-height: calc(100svh - 48px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.error-inner {
  max-width: 34rem;
}

.error .kicker {
  margin-bottom: 1rem;
}

.error h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.error .lede {
  margin: 0 0 1.75rem;
  font-size: 19px;
  line-height: 1.45;
}

.error .btn {
  width: fit-content;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 980px;
  border: none;
  text-decoration: none;
  font-size: 17px;
}

.btn-primary {
  background: var(--link);
  color: #fff;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--link-hover);
  color: #fff;
  text-decoration: none;
}

.portrait {
  width: min(36vw, 320px);
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait:hover img {
  transform: scale(1.03);
}

.portrait figcaption {
  margin-top: 0.85rem;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: break-word;
}

.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 640px;
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.idx {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.47;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.talks {
  display: grid;
  gap: 0;
}

.talk {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.talk:last-child {
  border-bottom: 1px solid var(--line);
}

.talk:hover {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
}

.talk h3 {
  transition: color 0.3s ease;
}

.talk:hover h3 {
  color: var(--link);
}

.talk time,
.meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.talk h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.talk p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.47;
}

.arrow {
  color: var(--link);
  font-size: 1.15rem;
  line-height: 1;
  align-self: center;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.when {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.2rem;
}

.timeline h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.47;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border-radius: 980px;
  padding: 0.5rem 0.9rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--fill);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
}

.contact-panel h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.big-link {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--link);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.big-link:hover {
  transform: translateY(-1px);
  text-decoration: underline;
}

.contact-alt {
  margin: 0.85rem 0 0;
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 2.5rem;
  color: var(--faint);
  font-size: 12px;
  background: var(--bg);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .contact-panel,
  .timeline li,
  .talk {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
    gap: 1.25rem;
  }

  .portrait {
    width: 100%;
  }

  .talk time {
    padding-top: 0;
  }

  .arrow {
    display: none;
  }

  .nav-links {
    gap: 1.1rem;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .portrait {
    width: min(100%, 200px);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
}

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .portrait {
    animation: hero-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero .kicker {
    animation: rise 0.8s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero h1 {
    animation: rise 0.95s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-role {
    animation: rise 0.9s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.96);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .hero .portrait,
  .hero .kicker,
  .hero h1,
  .hero-role {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }

  .portrait:hover img,
  .talk:hover,
  .big-link:hover {
    transform: none;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--header-bg-scrolled);
  }
}
