:root {
  color-scheme: dark;
  --bg: #111820;
  --bg-2: #1d2732;
  --ink: #f7f8f7;
  --muted: #aeb8c3;
  --paper: #f6f7f4;
  --paper-ink: #25282d;
  --line: rgba(247, 248, 247, 0.16);
  --coral: #f0484c;
  --teal: #20d3c2;
  --gold: #f7d24c;
  --max: 1180px;
  --header: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(118deg, rgba(240, 72, 76, 0.2), transparent 30rem),
    linear-gradient(135deg, rgba(32, 211, 194, 0.1), transparent 35rem);
  pointer-events: none;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.signal-canvas,
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.signal-canvas {
  z-index: -2;
  opacity: 0.72;
}

.grain {
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.03) 2px 3px);
  mix-blend-mode: screen;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--teal), var(--gold));
  transform-origin: left center;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 80;
  display: flex;
  width: min(calc(100% - 28px), var(--max));
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(17, 24, 32, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 0.76rem;
  font-weight: 950;
}

.brand-mark span + span {
  color: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav__link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 0.88rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.section {
  position: relative;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.hero {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 7.5rem;
  padding-bottom: 5.5rem;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section__label p,
.role-card__kicker {
  margin: 0;
  color: var(--coral);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9ch;
  margin: 0.35rem 0 1.35rem;
  font-size: clamp(4.4rem, 7.6vw, 8rem);
  font-weight: 950;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero__outline-word {
  width: min(100%, 3.86em);
  height: 0.9em;
  margin-top: 0.01em;
}

.hero__outline-word svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--ink);
}

.hero__outline-word text {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2.8px;
  stroke-linecap: butt;
  stroke-linejoin: round;
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  font-size: 126px;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  filter: drop-shadow(0 0 18px rgba(240, 72, 76, 0.22));
}

.hero__lede {
  max-width: 52ch;
  margin: 0;
  color: #dce2e8;
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 18px 48px rgba(240, 72, 76, 0.28);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.hero__visual {
  position: relative;
  min-height: min(72svh, 720px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--bg-2);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.36);
  isolation: isolate;
}

.hero__visual::before,
.hero__visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero__visual::before {
  background:
    linear-gradient(180deg, transparent 44%, rgba(17, 24, 32, 0.82) 100%),
    linear-gradient(90deg, rgba(32, 211, 194, 0.24), transparent 45%);
  mix-blend-mode: multiply;
}

.hero__visual::after {
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: translate(14px, 14px);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: min(72svh, 720px);
  object-fit: cover;
}

.hero__visual figcaption {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-weight: 900;
}

.hero__visual figcaption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.marquee {
  position: absolute;
  right: 0;
  bottom: 1.4rem;
  left: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(17, 24, 32, 0.68);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.72rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  white-space: nowrap;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section__label span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
}

.section__heading,
.about__content,
.skills__intro,
.contact__content {
  max-width: 790px;
}

.section h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5.8rem);
  font-weight: 950;
  line-height: 0.94;
}

.section__heading p,
.about__content p,
.skills__intro p,
.intent p,
.contact__content p {
  color: #d8dfe6;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.about__content {
  align-self: start;
}

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

.metric {
  min-height: 160px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.metric__value {
  display: block;
  color: var(--teal);
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  font-weight: 950;
  line-height: 1;
}

.metric__label {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.timeline::before {
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: clamp(7rem, 16vw, 12rem);
  width: 2px;
  content: "";
  background: linear-gradient(var(--coral), var(--teal), var(--gold));
}

.role-card {
  display: grid;
  grid-template-columns: clamp(7rem, 16vw, 12rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: stretch;
  transform-style: preserve-3d;
}

.role-card__date {
  color: var(--muted);
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  font-weight: 950;
  text-align: right;
}

.role-card__body {
  position: relative;
  min-height: 180px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(17, 24, 32, 0.74);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transition: transform 200ms ease, border-color 200ms ease;
}

.role-card__body::before {
  position: absolute;
  top: 1.75rem;
  left: calc(clamp(1.2rem, 3vw, 2rem) * -1 - clamp(1.2rem, 3vw, 3rem));
  width: 18px;
  height: 18px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, var(--paper) 0 3px, transparent 3.5px),
    linear-gradient(135deg, var(--coral), var(--teal));
  box-shadow:
    0 0 0 2px rgba(240, 72, 76, 0.9),
    0 0 28px rgba(240, 72, 76, 0.62);
}

.role-card:hover .role-card__body {
  border-color: rgba(32, 211, 194, 0.45);
  transform: translateY(-4px);
}

.role-card h3 {
  margin: 0.15rem 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1;
}

.role-card p {
  max-width: 72ch;
  margin: 0.55rem 0 0;
  color: #d9e1e8;
}

.skills {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.skills .section__label {
  grid-column: 1 / -1;
}

.skill-board {
  display: grid;
  gap: 1rem;
}

.skill-meter {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 72px;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.skill-meter > span {
  color: var(--ink);
  font-weight: 950;
}

.meter {
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  box-shadow: 0 0 30px rgba(240, 72, 76, 0.52);
  transition: width 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

.skill-board.is-visible .meter span {
  width: var(--level);
}

.signal-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 0.7rem;
}

.signal-flow span {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 950;
  text-align: center;
}

.signal-flow span::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--coral), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms ease;
}

.signal-flow.is-visible span::after {
  transform: scaleX(1);
}

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

.education-card,
.intent {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.education-card {
  min-height: 240px;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.education-card__date {
  color: var(--teal);
  font-weight: 950;
}

.education-card h2 {
  margin-top: 1.3rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.education-card p {
  margin-bottom: 0;
  color: #d9e1e8;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.intent {
  margin-top: 1rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.intent h2 {
  max-width: 900px;
  margin-top: 0.7rem;
}

.intent p {
  max-width: 78ch;
}

.contact {
  display: grid;
  min-height: 78svh;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.contact-grid {
  display: grid;
  gap: 0.85rem;
  font-style: normal;
}

.contact-grid a {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-grid a:hover {
  border-color: rgba(32, 211, 194, 0.5);
  background: rgba(255, 255, 255, 0.11);
  transform: translateX(5px);
}

.contact-grid span {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-grid strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms ease, transform 800ms ease;
}

[data-reveal].is-visible,
.skill-board.is-visible,
.signal-flow.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    border-radius: 24px;
  }

  .hero,
  .about,
  .skills,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.2rem;
    padding-top: 7.4rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 8rem);
  }

  .hero__visual,
  .hero__visual img {
    min-height: 58svh;
  }

  .metric-grid {
    grid-column: auto;
  }

  .timeline::before {
    left: 0.5rem;
  }

  .role-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-left: 2.1rem;
  }

  .role-card__date {
    text-align: left;
  }

  .role-card__body::before {
    top: -2.05rem;
    left: -2.1rem;
  }

  .signal-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header: 88px;
  }

  body {
    background-size: 56px 56px;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
    min-height: 62px;
    gap: 0.6rem;
  }

  .brand-mark {
    display: none;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.12rem;
  }

  .nav__link {
    flex: 1 1 0;
    min-height: 40px;
    padding: 0 0.2rem;
    font-size: clamp(0.62rem, 2.6vw, 0.73rem);
  }

  .section {
    width: min(calc(100% - 24px), var(--max));
    padding: 4.5rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 7.2rem;
  }

  .hero__lede {
    font-size: 1.04rem;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__visual,
  .hero__visual img {
    min-height: 440px;
  }

  .hero__visual figcaption {
    display: grid;
  }

  .marquee {
    position: relative;
    bottom: auto;
    grid-column: 1;
  }

  .metric-grid,
  .education__grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 128px;
  }

  .skill-meter {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    min-height: 82px;
    padding: 1rem;
  }

  .signal-flow {
    grid-template-columns: 1fr 1fr;
  }

  .signal-flow span {
    min-height: 76px;
  }

  .site-footer {
    display: grid;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .meter span {
    width: var(--level);
  }
}
