:root {
  --background: #ffffff;
  --shape-color: #f1f1f1;
  --text-color: #292929;
  --secondary-text: #6e6e6e;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-color);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.menu-open {
  overflow: hidden;
}

/*
  The canvas remains behind every section.
  JavaScript redraws its shapes based on the current scroll position.
*/
.background-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: transparent;
}

.site-header.menu-open {
  border-bottom-color: transparent;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-shell {
  width: min(100% - (clamp(24px, 6vw, 96px) * 2), var(--content-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand,
.menu-link,
.mobile-menu-link {
  color: var(--text-color);
  text-decoration: none;
}

.site-brand {
  color: #000000;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.desktop-menu {
  --menu-underline-x: 0px;
  --menu-underline-width: 0px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 32px);
  position: relative;
}

.desktop-menu::after {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: var(--menu-underline-width);
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(var(--menu-underline-x));
  transition:
    width 260ms cubic-bezier(0.2, 0, 0, 1),
    transform 260ms cubic-bezier(0.2, 0, 0, 1);
}

.menu-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--secondary-text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 160ms ease;
}

.menu-link:hover,
.menu-link:focus-visible,
.menu-link.is-active {
  color: var(--text-color);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  position: relative;
  z-index: 22;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(24, 24, 24, 0.86);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(24, 24, 24, 0.14);
  transition: transform 160ms ease, background 160ms ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    translate 180ms ease;
}

.menu-toggle span:first-child {
  translate: 0 -4px;
}

.menu-toggle span:last-child {
  translate: 0 4px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  translate: 0 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  translate: 0 0;
  transform: rotate(-45deg);
}

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

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px clamp(24px, 6vw, 56px) 40px;
  background: #ffffff;
  overflow-y: auto;
}

.mobile-menu-list {
  display: grid;
  gap: clamp(14px, 3vw, 24px);
}

.mobile-menu-link {
  display: block;
  border-bottom: 1px solid transparent;
  color: var(--secondary-text);
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.mobile-menu-link.is-active {
  color: var(--text-color);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.mobile-menu-link h3 {
  margin: 0;
  padding: 4px 0 18px;
  font-size: clamp(3rem, 12vw, 6.75rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.site-brand:focus-visible,
.menu-link:focus-visible,
.menu-toggle:focus-visible,
.mobile-menu-link:focus-visible {
  outline: 3px solid rgba(29, 44, 243, 0.24);
  outline-offset: 4px;
}

.section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 6vw, 96px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 16px;
  padding: 8px 24px;
  border-radius: 999px;
  background: #FFED4F;
  color: #3A3A3C;
  font: 10px/15.2px "SF Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: min(100%, 1120px);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: auto;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
}

h2 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.description {
  max-width: 980px;
  margin: 32px 0 0;
  color: var(--secondary-text);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.experience-section {
  overflow: hidden;
}

.experience-section .section-content {
  width: 100%;
}

.experience-carousel {
  position: relative;
  margin-top: 32px;
}

.experience-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 1.5);
  gap: 24px;
  height: calc(60vh + 72px);
  height: calc(60svh + 72px);
  margin-block: -24px -48px;
  padding-block: 24px 48px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.experience-track.is-at-end {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
  mask-image: linear-gradient(to right, transparent, #000 40px);
}

.experience-track::-webkit-scrollbar {
  display: none;
}

.experience-card {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 60% 40%;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(24, 24, 24, 0.075);
  scroll-snap-align: start;
}

.experience-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(29, 44, 243, 0.08), transparent 42%),
    #f1f1f1;
}

.experience-card-body {
  display: grid;
  align-content: start;
  gap: clamp(7px, 0.85vw, 11px);
  min-height: 0;
  padding: clamp(16px, 2.2vw, 26px);
}

.experience-company {
  color: var(--text-color);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.experience-title {
  margin-bottom: 0;
  color: var(--text-color);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.experience-tenure {
  margin-top: -2px;
  color: var(--secondary-text);
  font: 10px/15.2px "SF Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.experience-impact {
  width: min(100%, clamp(18rem, 52%, 34rem));
  max-width: none;
  color: var(--secondary-text);
  font-size: clamp(0.88rem, 1.1vw, 1.02rem);
  line-height: 1.32;
}

.experience-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(24, 24, 24, 0.86);
  font: 24px/1 "SF Mono", ui-monospace, Menlo, monospace;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(24, 24, 24, 0.14);
  transform: translateY(-50%);
  transition: transform 160ms ease, background 160ms ease;
}

.experience-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.experience-button:focus-visible {
  outline: 3px solid rgba(29, 44, 243, 0.24);
  outline-offset: 4px;
}

.experience-button--prev {
  left: -24px;
}

.experience-button--next {
  right: -24px;
}

@media (min-width: 761px) {
  .experience-impact {
    width: min(100%, clamp(20rem, 60%, 40rem));
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .experience-track {
    height: clamp(680px, calc(66svh + 96px), 840px);
  }

  .experience-card-body {
    gap: clamp(5px, 0.6vw, 8px);
    padding: clamp(16px, 1.8vw, 24px);
  }

  .experience-company {
    font-size: clamp(1.6rem, 3.2vw, 2.55rem);
    line-height: 0.92;
  }

  .experience-title {
    font-size: clamp(0.94rem, 1.3vw, 1.1rem);
    line-height: 1.06;
  }

  .experience-tenure {
    line-height: 13px;
  }

  .experience-impact {
    width: 100%;
    font-size: clamp(0.82rem, 0.9vw, 0.92rem);
    line-height: 1.22;
  }
}

@media (min-width: 1041px) and (max-width: 1400px) and (max-height: 1100px) {
  .experience-track {
    height: clamp(760px, calc(70svh + 96px), 900px);
  }

  .experience-card-body {
    gap: clamp(5px, 0.55vw, 8px);
    padding: clamp(16px, 1.5vw, 22px);
  }

  .experience-company {
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    line-height: 0.92;
  }

  .experience-title {
    font-size: clamp(0.94rem, 1.2vw, 1.08rem);
    line-height: 1.06;
  }

  .experience-tenure {
    line-height: 13px;
  }

  .experience-impact {
    width: 100%;
    font-size: clamp(0.82rem, 0.85vw, 0.92rem);
    line-height: 1.22;
  }
}

@media (min-width: 1041px) and (max-height: 950px) {
  .experience-track {
    height: clamp(760px, calc(72svh + 80px), 900px);
  }

  .experience-card-body {
    gap: clamp(5px, 0.55vw, 8px);
    padding: clamp(16px, 1.6vw, 22px);
  }

  .experience-company {
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    line-height: 0.92;
  }

  .experience-title {
    font-size: clamp(0.96rem, 1.25vw, 1.18rem);
    line-height: 1.06;
  }

  .experience-tenure {
    line-height: 14px;
  }

  .experience-impact {
    width: 100%;
    font-size: clamp(0.82rem, 0.9vw, 0.94rem);
    line-height: 1.22;
  }
}

@media (max-width: 760px) {
  .experience-track {
    grid-auto-columns: 100%;
    gap: 16px;
    height: clamp(620px, calc(66vh + 96px), 740px);
    height: clamp(620px, calc(66svh + 96px), 740px);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .experience-card {
    border-radius: 18px;
  }

  .experience-card-body {
    gap: 4px;
    padding: 12px 16px 24px;
  }

  .experience-company {
    font-size: clamp(1.42rem, 6.6vw, 2rem);
    line-height: 0.92;
  }

  .experience-title {
    font-size: 0.86rem;
    line-height: 1.05;
  }

  .experience-tenure {
    font-size: 9px;
    line-height: 12px;
  }

  .experience-impact {
    width: 100%;
    font-size: 0.78rem;
    line-height: 1.22;
  }

  .experience-button {
    width: 44px;
    height: 44px;
  }

  .experience-button--prev {
    left: 8px;
  }

  .experience-button--next {
    right: 8px;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-credit {
  margin: 40px 0 0;
  color: var(--secondary-text);
  font: 10px/15.2px "SF Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(24, 24, 24, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-color);
  font: 600 0.95rem/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(24, 24, 24, 0.14);
  transition: transform 160ms ease, background 160ms ease;
}

.contact-action:hover {
  transform: translateY(-1px);
}

.contact-action--primary {
  border-color: #FFED4F;
  background: #FFED4F;
  color: #3A3A3C;
}

[data-od-id="contact-direct-button"] {
  border: 0;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 24, 24, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.contact-modal-dialog {
  width: min(100%, 560px);
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 100px rgba(24, 24, 24, 0.26);
}

.contact-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.contact-modal-title {
  color: var(--text-color);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.contact-modal-dialog.is-submitted {
  min-height: 320px;
  align-content: start;
}

.contact-modal-dialog.is-submitted .contact-modal-head {
  justify-content: end;
}

.contact-modal-dialog.is-submitted .contact-modal-title,
.contact-modal-dialog.is-submitted .contact-form {
  display: none;
}

.contact-success[hidden] {
  display: none;
}

.contact-success {
  display: grid;
  align-items: center;
  min-height: 220px;
}

.contact-success h3 {
  margin: 0;
  color: #000000;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.contact-modal-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(24, 24, 24, 0.86);
  font: 24px/1 "SF Mono", ui-monospace, Menlo, monospace;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(24, 24, 24, 0.14);
  transition: transform 160ms ease, background 160ms ease;
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 8px;
  color: var(--secondary-text);
  font: 10px/15.2px "SF Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(24, 24, 24, 0.14);
  border-radius: 16px;
  background: #f7f7f7;
  color: var(--text-color);
  font: 1rem/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.contact-field input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-field textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
}

.contact-form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--secondary-text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.contact-form-status.is-success {
  color: #1D2CF3;
}

.contact-form-status.is-error {
  color: #b42318;
}

.contact-send {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #FFED4F;
  color: #3A3A3C;
  font: 600 1rem/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(24, 24, 24, 0.14);
  transition: transform 160ms ease, background 160ms ease;
}

.contact-send:hover {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .contact-modal {
    align-items: stretch;
    padding: 0;
  }

  .contact-modal-dialog {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    align-content: start;
    border-radius: 0;
  }
}

@media (max-width: 1040px) {
  .nav-shell {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-text);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-indicator::after {
  width: 1px;
  height: 28px;
  background: currentColor;
  content: "";
  animation: scroll-pulse 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.4);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

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

  .scroll-indicator::after {
    animation: none;
  }
}
