* {
  box-sizing: border-box;
}

:root {
  --accent: #000000;
  --line-color: #d8d8d8;
  --card-background: #fafafa;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  color: #252525;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.hero .site-heading h1,
h1,
.projects-showcase h2,
.highlights-heading h2 {
  font-family: "SF Pro Display", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.022em;
}

html {
  scroll-padding-top: 6rem;
}

.hero,
main {
  width: min(100% - 3rem, 58rem);
  margin: 0 auto;
}

main {
  display: flow-root;
  transition: padding-top 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.compact-page main {
  padding-top: 0;
  transition: none;
}

.compact-page .hero.is-condensed + main {
  padding-top: 0;
}

.hero.is-condensed + main {
  padding-top: 6rem;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 100%;
  height: 66.666vh;
  min-height: 0;
  padding: 4rem max(1.5rem, calc((100vw - 58rem) / 2));
  overflow: visible;
  background: var(--accent);
  color: #ffffff !important;
  transition: height 850ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 850ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height, padding;
}

.site-menu {
  --menu-inset: 1.5cm;
  position: absolute;
  top: 1.5rem;
  left: var(--menu-inset);
  z-index: 30;
  color: #ffffff;
  transition: top 850ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-menu summary {
  position: relative;
  z-index: 2;
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-menu summary:hover,
.site-menu summary:focus-visible {
  opacity: 0.7;
  transform: translateY(-1px);
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu summary::after {
  display: inline-block;
  margin-left: 0.45rem;
  content: "＋";
  font-size: 0.9rem;
  font-weight: 400;
}

.site-menu[open] summary::after {
  content: "−";
}

.menu-panel {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  align-content: center;
  justify-content: center;
  grid-template-columns: repeat(3, minmax(0, 11rem));
  gap: 1.25rem;
  padding: 5rem 1.5rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(3px);
  animation: menu-overlay-in 220ms ease both;
}

.menu-panel a {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: lowercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  animation: menu-tile-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: #ffffff;
  color: #111111;
  transform: translateY(-0.35rem);
}

.menu-panel a:nth-child(2) {
  animation-delay: 60ms;
}

.menu-panel a:nth-child(3) {
  animation-delay: 120ms;
}

@keyframes menu-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menu-tile-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero.is-condensed {
  height: 4.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: var(--accent);
}

.hero.is-condensed .site-menu,
.hero.is-condensed .social-links {
  top: 50%;
  transform: translateY(-50%);
}

.hero.is-condensed .site-menu[open] {
  top: 1.5rem;
  transform: none;
  transition: none;
}

.hero.is-condensed .site-menu[open] .menu-panel {
  top: 0;
  left: 0;
}

.site-heading {
  margin: 0;
  width: min(100%, 58rem);
  text-align: left;
}

.site-heading::after {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 2rem auto 0;
  background: rgba(255, 255, 255, 0.7);
  content: "";
}

.site-heading h1 {
  margin: 0;
}

.hero .site-heading h1 {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.08em;
  font-family: inherit;
  font-size: clamp(2.75rem, 15vw, 10rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.022em;
  text-transform: lowercase;
}

.first-name {
  margin: 0;
}

.last-name {
  margin: 0;
}

.hero.is-condensed .site-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.8rem;
}

.hero.is-condensed .site-heading h1 {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.022em;
}

.hero.is-condensed .first-name,
.hero.is-condensed .last-name {
  display: inline;
  margin: 0;
}

.hero.is-condensed .site-heading::after {
  display: none;
}

.hero.is-condensed .major-line {
  margin: 0;
  font-size: 0.78rem;
}

.major-line {
  margin: 0.5rem 0 0;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.hero .major-line {
  font-family: inherit;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 2rem;
  text-transform: lowercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr);
  gap: 4rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.022em;
}

.intro-text {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.5;
}

.section {
  max-width: none;
  padding: 2.75rem 0;
  scroll-margin-top: 7.5rem;
  border-top: 1px solid var(--line-color);
}

.intro-section {
  margin: 4rem 0 3.5rem;
  padding: 0;
  text-align: center;
}

.intro-section h2 {
  display: none;
}

.intro-section p {
  width: min(100%, 58rem);
  max-width: none;
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  text-align: center;
}

.section p:not(.section-label) {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.resume-page {
  background: #ffffff;
}

.resume-page .hero {
  background: #000000;
  color: #ffffff !important;
}

.resume-page .site-menu {
  color: #ffffff;
}

.resume-page .social-icon {
  color: #ffffff;
}

.resume-page .hero h1,
.resume-page .hero .major-line,
.resume-page .hero .social-icon {
  color: #ffffff !important;
}

.resume-page .menu-panel {
  background: rgba(0, 0, 0, 0.88);
}

.resume-page .menu-panel a {
  color: #ffffff;
}

.resume-section {
  min-height: 24rem;
  background: #ffffff;
  color: #111111;
}

.resume-heading {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.resume-heading a {
  color: inherit;
  text-decoration: none;
}

.resume-link-icon {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.7em;
  font-weight: 400;
  vertical-align: 0.15em;
}

.resume-page .contact-section {
  margin-top: 0;
  border-top-color: #333333;
  background: #000000;
  color: #ffffff;
}

.resume-page .contact-section label {
  color: #ffffff;
}

.resume-page .contact-section input,
.resume-page .contact-section textarea {
  border-color: #333333;
  background: #000000;
  color: #ffffff;
}

.profile-section {
  max-width: none;
  padding: 0;
  border-top: 0;
}

.hero-copy {
  padding-top: 0;
}

.profile-facts {
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}

.profile-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
  line-height: 1.35;
}

.profile-label {
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group {
  padding: 1rem;
  border: 1px solid var(--line-color);
  border-radius: 0;
  background: var(--card-background);
}

.skill-group h2 {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.skill-group p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.timeline-section {
  padding: 3rem 0 calc(3rem + 1.5cm);
  scroll-margin-top: 7.5rem;
  border-top: 1px solid var(--line-color);
}

.timeline-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.03em;
}

.timeline {
  margin-left: 1rem;
  border-left: 1px solid var(--line-color);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 1.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 1.25rem;
  left: -0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.timeline-card {
  padding: 1.15rem;
  border: 1px solid var(--line-color);
  border-radius: 0;
  background: var(--card-background);
}

.timeline-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-card h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline-card-header span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-subtitle {
  margin: 1.15rem 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-card p:not(.timeline-subtitle):last-child {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.contact-section {
  margin-top: 1rem;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  padding: 2.5rem max(1.5rem, calc((100vw - 58rem) / 2)) 3rem;
  border-top: 1px solid #333333;
  background: #000000;
  color: #ffffff;
}

.projects-showcase + .contact-section {
  border-top: 0;
  margin-top: 0;
}

.contact-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.contact-section form {
  display: grid;
  gap: 0.5rem;
}

.contact-section label {
  margin-top: 0.7rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  border: 1px solid #333333;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.7rem 0.8rem;
}

.contact-section textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
  color: #999999;
}

.contact-section button {
  justify-self: start;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid #ffffff;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-section button:hover,
.contact-section button:focus-visible {
  background: #d8d8d8;
}

a {
  color: var(--accent);
}

a:hover {
  color: #555555;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5cm;
  z-index: 10;
  transition: top 850ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.social-icon.button-disabled {
  opacity: 1;
}

.social-icon {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.social-icon svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.social-icon .mail-icon {
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .mail-body {
  fill: #ffffff;
  stroke: none;
}

.social-icon .mail-flap {
  fill: none;
  stroke: #111111;
}

.social-icon:hover {
  color: #ffffff;
}

.social-icon[href^="mailto:"] {
  opacity: 1;
}

.social-icon[href^="mailto:"]:hover {
  opacity: 1;
}

.hero h1,
.hero .major-line,
.hero .social-icon {
  color: #ffffff !important;
}

.project-placeholder {
  padding: 1.15rem;
  border: 1px solid var(--line-color);
  border-radius: 0;
  background: var(--card-background);
}

.project-placeholder h2 {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 1rem;
}

.project-placeholder p {
  margin: 0;
}

.projects-showcase {
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  padding: 4rem 0 3rem;
  overflow: hidden;
  background: #151517;
  color: #ffffff;
}

.projects-showcase h2 {
  width: min(100% - 3rem, 58rem);
  margin: 0 auto 2.5rem;
  font-size: clamp(2.3rem, 6vw, 4rem);
  letter-spacing: -0.022em;
}

.project-gallery {
  overflow: hidden;
}

.project-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 max(4rem, calc((100vw - 78rem) / 2));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-panel {
  flex: 0 0 min(78rem, calc(100vw - 8rem));
  min-height: min(62vh, 34rem);
  border: 0;
  border-radius: 1.5rem;
  background: #000000;
  transition: border-color 300ms ease;
}

.project-track.no-transition {
  transition: none;
}

.project-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.project-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #29292b;
}

.project-progress.is-paused .project-dot.is-active::after {
  animation-play-state: paused;
}

.project-dot {
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #777777;
  cursor: pointer;
  transition: flex-basis 700ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease;
}

.project-dot.is-active {
  position: relative;
  flex-basis: 3rem;
  width: 3rem;
  overflow: hidden;
  background: #777777;
}

.project-dot.is-active.is-counting::after {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: #ffffff;
  content: "";
  pointer-events: none;
  animation: project-progress-fill 3.5s linear forwards;
}

@keyframes project-progress-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.project-play {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #29292b;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  transition: background 180ms ease;
}

.project-play:hover,
.project-play:focus-visible {
  background: #ffffff;
}

.project-dot:hover,
.project-dot:focus-visible {
  background: #ffffff;
}

.project-dot.is-active:hover,
.project-dot.is-active:focus-visible {
  background: #777777;
}

.project-play:hover,
.project-play:focus-visible {
  color: #111111;
}

.highlights-section {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line-color);
}

.highlights-heading h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.022em;
}

.highlights-heading > p:last-child {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.55;
}

.highlight-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-color);
}

.highlight-tab {
  flex: 0 0 auto;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: #555555;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.highlight-tab:hover,
.highlight-tab:focus-visible {
  color: #111111;
}

.highlight-tab.is-active {
  border-color: var(--line-color);
  background: #111111;
  color: #ffffff;
}

.highlight-panel {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 2rem;
  min-height: 15rem;
  padding: 2.25rem;
  background: #111111;
  color: #ffffff;
  animation: highlight-in 300ms ease both;
}

.highlight-panel[hidden] {
  display: none;
}

.highlight-number {
  color: #999999;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.highlight-kicker {
  margin: 0 0 0.7rem;
  color: #aaaaaa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.highlight-panel h3 {
  max-width: 30rem;
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.highlight-panel > div:last-child > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: #d0d0d0;
  font-size: 0.95rem;
  line-height: 1.65;
}

@keyframes highlight-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .site-menu {
    --menu-inset: 1rem;
    left: var(--menu-inset);
  }

  .social-links {
    right: 1rem;
    gap: 0.45rem;
  }

  .social-icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .social-icon svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .hero.is-condensed .site-heading {
    gap: 0.45rem;
  }

  .hero.is-condensed .site-heading h1 {
    font-size: 1.2rem;
  }

  .hero.is-condensed .major-line {
    font-size: 0.7rem;
  }

  .highlight-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    min-height: 17rem;
    padding: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .first-name {
    margin: 0;
  }

  .last-name {
    margin: 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .timeline-card-header {
    display: block;
  }

  .timeline-card-header span {
    display: block;
    margin-top: 0.5rem;
  }
}
