:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #5c6470;
  --line: #dfe3e8;
  --paper: #f7f8f7;
  --white: #ffffff;
  --green: #0f8f6f;
  --blue: #2f6fec;
  --coral: #f07055;
  --yellow: #f3c24f;
  --shadow: 0 24px 80px rgba(17, 19, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(47, 111, 236, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 6%, rgba(240, 112, 85, 0.16), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: rgba(247, 248, 247, 0);
  border-bottom: 1px solid rgba(223, 227, 232, 0);
  backdrop-filter: blur(0);
  box-shadow: 0 0 0 rgba(17, 19, 24, 0);
  animation: headerIn 1100ms ease both;
  transition:
    background-color 520ms ease,
    border-color 520ms ease,
    box-shadow 520ms ease,
    backdrop-filter 520ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 248, 247, 0.84);
  border-bottom-color: rgba(223, 227, 232, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(17, 19, 24, 0.05);
}

.brand {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem) 3rem;
}

.hero-copy {
  max-width: 56rem;
}

.hero-copy .eyebrow {
  animation: heroIn 1200ms ease 140ms both;
}

.hero-copy h1 {
  animation: heroIn 1320ms ease 300ms both;
}

.hero-copy .lead {
  animation: heroIn 1240ms ease 520ms both;
}

.hero-actions {
  animation: heroIn 1180ms ease 720ms both;
}

.eyebrow,
.project-kicker {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.15rem, 8.2vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.word-rotator {
  display: block;
  position: relative;
  height: 0.96em;
  overflow: hidden;
  color: var(--green);
}

.word-rotator span {
  position: absolute;
  inset: 0 auto auto 0;
  animation: rotateWord 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  opacity: 0;
  transform: translateY(0.2em);
}

.word-rotator span:nth-child(1) {
  animation-delay: -0.6s;
}

.word-rotator span:nth-child(2) {
  animation-delay: 2.4s;
}

.word-rotator span:nth-child(3) {
  animation-delay: 5.4s;
}

.word-rotator span:nth-child(4) {
  animation-delay: 8.4s;
}

@keyframes rotateWord {
  0% {
    opacity: 0;
    transform: translateY(0.16em);
  }
  5%,
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  30%,
  100% {
    opacity: 0;
    transform: translateY(-0.16em);
  }
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  line-height: 1.12;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 320ms ease,
    box-shadow 320ms ease,
    background-color 320ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.12);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.5);
}

.hero-stats {
  display: grid;
  gap: 1rem;
}

.stat-primary,
.stat-grid div {
  border: 1px solid rgba(223, 227, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.stat-primary {
  position: relative;
  overflow: hidden;
  min-height: clamp(16rem, 30vw, 22rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(15, 143, 111, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.82);
  animation: statIn 1350ms ease 420ms both;
}

.stat-primary::after {
  position: absolute;
  right: -2rem;
  bottom: -3.2rem;
  color: rgba(15, 143, 111, 0.08);
  content: "60M+";
  font-size: clamp(7rem, 15vw, 12rem);
  font-weight: 950;
  line-height: 1;
}

.stat-primary p {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-primary span {
  display: block;
  margin: clamp(2.2rem, 6vw, 4.6rem) 0 0.45rem;
  font-size: clamp(4.2rem, 10vw, 7.2rem);
  font-weight: 950;
  line-height: 0.88;
}

.stat-primary strong {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.stat-grid div {
  padding: clamp(1.1rem, 2.5vw, 1.45rem);
  animation: statIn 1220ms ease 640ms both;
}

.stat-grid div:nth-child(2) {
  animation-delay: 820ms;
}

.stat-grid span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(2.7rem, 6vw, 4.25rem);
  font-weight: 950;
  line-height: 0.9;
}

.stat-grid strong {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(1.55rem);
  transition:
    opacity 900ms ease var(--reveal-delay, 0ms),
    transform 980ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.reveal {
  transform: translateY(1.8rem) scale(0.985);
  transition:
    opacity 1200ms ease var(--reveal-delay, 0ms),
    transform 1320ms cubic-bezier(0.2, 0.85, 0.18, 1) var(--reveal-delay, 0ms);
}

.project-card.esound.reveal {
  transform: translateX(-2.2rem) translateY(1rem) scale(0.985);
}

.project-card.focusflight.reveal {
  transform: translateX(2.2rem) translateY(1rem) scale(0.985);
}

.project-card.reveal.is-visible {
  transform: translateX(0) translateY(0) scale(1);
}

.project-card.reveal .project-top img {
  opacity: 0;
  transform: scale(0.82) rotate(-5deg);
  transition:
    opacity 980ms ease calc(var(--reveal-delay, 0ms) + 260ms),
    transform 1180ms cubic-bezier(0.2, 0.85, 0.18, 1) calc(var(--reveal-delay, 0ms) + 260ms);
}

.project-card.reveal.is-visible .project-top img {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.contribution-card.reveal {
  transform: translateY(1rem) scale(0.94);
  transition:
    opacity 900ms ease var(--reveal-delay, 0ms),
    transform 1050ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0ms);
}

.contribution-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.contribution-card.reveal .icon-shell {
  transform: translateY(0.35rem) scale(0.86);
  transition: transform 980ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--reveal-delay, 0ms) + 160ms);
}

.contribution-card.reveal.is-visible .icon-shell {
  transform: translateY(0) scale(1);
}

.project-card,
.profile-grid article,
.contribution-card,
.stat-grid div,
.stat-primary {
  transition:
    transform 380ms ease,
    box-shadow 380ms ease,
    border-color 380ms ease;
}

.profile-grid article:hover,
.contribution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 62px rgba(17, 19, 24, 0.12);
}

.capabilities span {
  transition:
    transform 340ms ease,
    background-color 340ms ease,
    border-color 340ms ease;
}

.capabilities span:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statIn {
  from {
    opacity: 0;
    transform: translateY(1.4rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.profile-section,
.capability-band {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

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

.profile-grid article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-grid article {
  padding: 1.35rem;
}

.profile-grid p,
.project-card p,
.contact-section p {
  color: var(--muted);
}

.icon-dot {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  margin-bottom: 1.8rem;
  border-radius: 50%;
  background: var(--coral);
}

.profile-grid article:nth-child(2) .icon-dot {
  background: var(--blue);
}

.profile-grid article:nth-child(3) .icon-dot {
  background: var(--yellow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

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

.project-card {
  display: flex;
  min-height: 31rem;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.project-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.15rem, 2.5vw, 2rem);
}

.project-top img {
  width: clamp(4.25rem, 10vw, 6.25rem);
  height: clamp(4.25rem, 10vw, 6.25rem);
  flex: 0 0 auto;
  border-radius: 22%;
  box-shadow: 0 16px 40px rgba(17, 19, 24, 0.16);
}

.project-top h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.project-kicker {
  margin-bottom: 0.3rem;
}

.project-meta {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.75rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(15, 143, 111, 0.28);
  border-radius: 8px;
  background: rgba(15, 143, 111, 0.08);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: auto 0 0;
}

.contribution-card {
  display: grid;
  min-height: 9.25rem;
  align-content: space-between;
  gap: 1.4rem;
  padding: 1.15rem;
  border: 1px solid rgba(223, 227, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 38px rgba(17, 19, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.icon-shell {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(15, 143, 111, 0.2);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(229, 249, 240, 0.86));
  box-shadow: 0 10px 24px rgba(15, 143, 111, 0.12);
}

.icon-shell svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.focusflight .icon-shell {
  border-color: rgba(47, 111, 236, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 238, 255, 0.9));
  box-shadow: 0 10px 24px rgba(47, 111, 236, 0.12);
}

.focusflight .icon-shell svg {
  stroke: var(--blue);
}

.esound {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(224, 255, 235, 0.7));
}

.focusflight {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(235, 242, 255, 0.82));
}

.capability-band {
  background: var(--ink);
  color: var(--white);
}

.capability-band .eyebrow {
  color: #77e0bd;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.capabilities span {
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.contact-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
  background: var(--white);
  text-align: center;
}

.contact-section h2,
.contact-section p {
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
}

.contact-section p {
  margin-top: 1rem;
  margin-bottom: 1.7rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer a {
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 900px) {
  .hero,
  .profile-section,
  .capability-band,
  .project-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1,
  h2 {
    max-width: 100%;
  }

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

  .project-card {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 4.75rem;
    padding: 0.82rem 1rem;
  }

  .brand {
    width: 2.55rem;
    height: 2.55rem;
  }

  nav {
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    gap: clamp(0.7rem, 4vw, 1rem);
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
  }

  nav a {
    display: inline-flex;
    min-height: 2.55rem;
    align-items: center;
  }

  .hero {
    padding-top: 2.4rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15.5vw, 4.45rem);
  }

  .button {
    width: 100%;
  }

  .section-heading,
  .profile-section,
  .capability-band {
    gap: 1.25rem;
  }

  .section-heading {
    display: grid;
    align-items: start;
    justify-content: stretch;
    text-align: left;
  }

  .section-heading h2,
  .profile-section h2,
  .capability-band h2,
  .contact-section h2 {
    max-width: 100%;
    text-align: left;
  }

  .contact-section {
    text-align: left;
  }

  .contact-section h2,
  .contact-section p {
    margin-right: 0;
    margin-left: 0;
  }

  .project-top {
    align-items: flex-start;
  }

  .reveal,
  .project-card.reveal,
  .contribution-card.reveal {
    transition-duration: 640ms, 720ms;
  }

  .project-card.reveal .project-top img,
  .contribution-card.reveal .icon-shell {
    transition-duration: 720ms;
  }
}

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

  .word-rotator span {
    animation: none;
  }

  .word-rotator span:first-child {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
