:root {
  color-scheme: dark;
  --background: #15191c;
  --text: #edf0f1;
  --muted: #9ba5aa;
  --line: #343a3e;
  --link: #79b7a5;
  --soft: #1e2427;
  --raised: #1a1f22;
  --on-accent: #10201c;
  --wrap: min(1040px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--link); }
img { display: block; max-width: 100%; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 8px 12px; color: var(--on-accent); background: var(--link); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
::selection { color: var(--on-accent); background: var(--link); }

.site-header { width: var(--wrap); min-height: 68px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.site-header a { text-decoration: none; }
.name { font-weight: 700; letter-spacing: .01em; }
.site-header nav { display: flex; gap: 24px; }
.email-link { justify-self: end; color: var(--link); font-size: 13px; }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 84px); align-items: center; padding-block: 70px 78px; }
.intro-person { display: flex; align-items: center; gap: 17px; margin-bottom: 22px; }
.intro-person img { width: 68px; height: 68px; flex: 0 0 auto; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 62px); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.intro-details { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.intro-details li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding-left: 14px; font-size: 14px; line-height: 1.45; }
.intro-details li::before { content: ""; position: absolute; top: .58em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--link); }
.intro-details strong { font-weight: 650; }
.intro-details span { color: var(--muted); }
.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; font-size: 14px; }
.button { padding: 9px 14px; color: var(--on-accent); background: var(--link); border-radius: 3px; font-weight: 650; text-decoration: none; }
.button:hover { color: var(--on-accent); background: #8bc7b6; }
.intro-media { display: grid; grid-template-columns: 1.75fr 1fr; gap: 12px; align-items: stretch; }
.intro-photo { display: grid; grid-template-rows: 1fr auto; margin: 0; min-width: 0; }
.intro-photo img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; filter: saturate(.86) contrast(1.03); }
.intro-photo-secondary img { object-position: center 46%; }
figcaption, .split-photo > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-facts article { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 24px 26px; border-right: 1px solid var(--line); }
.quick-facts article:first-child { padding-left: 0; }
.quick-facts article:last-child { padding-right: 0; border-right: 0; }
.quick-facts strong { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; letter-spacing: -.03em; }
.quick-facts span { color: var(--muted); font-size: 13px; line-height: 1.35; }

.section { position: relative; padding-block: 78px; border-top: 0; }
.section::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--line); }
.section-title { margin-bottom: 32px; }
.section-title h2 { display: flex; align-items: center; gap: 11px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 32px); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.section-title h2::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--link); }

.experience-block { padding-block: 34px; border-top: 1px solid var(--line); }
.experience-heading { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.experience-heading h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.015em; }
.experience-heading a, .experience-heading span { color: var(--link); font-size: 14px; }
.experience-heading > p { margin: 3px 0 0; color: var(--muted); font-size: 13px; text-align: right; }
.experience-copy { max-width: 760px; margin: 18px 0 30px; }
.compact-points { display: grid; gap: 7px; margin: 0; padding: 0; color: var(--muted); font-size: 14px; line-height: 1.5; list-style: none; }
.compact-points li { position: relative; padding-left: 14px; }
.compact-points li::before { content: ""; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--link); }

.games-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 14px; }
.games-heading h4 { margin: 0; font-size: 16px; }
.games-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--raised); }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.video-frame iframe { position: absolute; top: -18%; left: -10%; display: block; width: 120%; height: 136%; border: 0; pointer-events: none; }
.video-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #111 var(--poster) center / cover no-repeat; opacity: 1; pointer-events: none; transition: opacity .25s ease; }
.video-frame.is-playing::after { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.video-card h5 { margin: 0; padding: 11px 13px; color: var(--text); font-size: 14px; font-weight: 600; }

.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 52px); align-items: center; }
.school-video { aspect-ratio: 4 / 3; border-radius: 3px; }
.experience-heading.compact { grid-template-columns: 1fr; gap: 12px; }
.experience-heading.compact > p { text-align: left; }
.split-copy > .compact-points { margin-top: 18px; }
.roblox-block { padding-bottom: 0; }
.roblox-block .experience-copy { margin-bottom: 0; }

.project-list { border-top: 1px solid var(--line); }
.project-card { display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; gap: clamp(28px, 4vw, 44px); align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.project-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--soft); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media:hover img { filter: brightness(1.06); }
.project-carousel { position: relative; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.carousel-slide.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(20,24,29,.55); font: inherit; font-size: 21px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.carousel-arrow:hover, .carousel-arrow:focus-visible { background: rgba(20,24,29,.82); }
.carousel-previous { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; z-index: 2; display: flex; gap: 6px; padding: 6px 8px; border-radius: 12px; background: rgba(20,24,29,.58); transform: translateX(-50%); }
.carousel-dots button { width: 6px; height: 6px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.48); cursor: pointer; }
.carousel-dots button.is-active { background: #fff; }
.project-list h3 { margin: 7px 0 10px; font-size: 20px; letter-spacing: -.01em; }
.project-list h3 a { text-decoration-thickness: 1px; }
.project-meta { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.project-meta span:first-child { color: var(--text); font-weight: 600; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 42px; border-top: 1px solid var(--line); }
.about-grid > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.about-grid h3 { position: relative; margin: 0 0 7px; padding-left: 14px; font-size: 15px; }
.about-grid h3::before { content: ""; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--link); }
.about-grid p { margin: 0; padding-left: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.site-footer { display: flex; justify-content: space-between; padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer div { display: flex; gap: 20px; }

@media (max-width: 760px) {
  :root { --wrap: min(100% - 32px, 640px); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .intro { grid-template-columns: 1fr; padding-block: 48px 70px; }
  .intro-media { order: -1; }
  .intro-photo img { min-height: 210px; }
  .intro-details li { grid-template-columns: 132px 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts article, .quick-facts article:first-child, .quick-facts article:last-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-facts article:last-child { border-bottom: 0; }
  .section { padding-block: 58px; }
  .section-title { margin-bottom: 28px; }
  .experience-heading { grid-template-columns: 1fr; gap: 10px; }
  .experience-heading > p { text-align: left; }
  .video-grid { grid-template-columns: 1fr; }
  .split-block { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; gap: 22px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .intro-person img { width: 58px; height: 58px; }
  .intro-details li { grid-template-columns: 1fr; gap: 0; }
  .games-heading { display: block; }
  .games-heading p { margin-top: 3px; }
  .site-footer { display: block; }
  .site-footer div { margin-top: 10px; }
}

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