:root {
  --ink: #111315;
  --paper: #f7f7f2;
  --paper-deep: #ece8dc;
  --mist: #d8ded7;
  --cyan: #36c7bc;
  --red: #f05d3f;
  --acid: #c8e957;
  --blue: #2f5bea;
  --line: rgba(17, 19, 21, 0.16);
  --line-strong: rgba(17, 19, 21, 0.28);
  --shadow: 0 28px 70px rgba(17, 19, 21, 0.2);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 19, 21, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 84px 84px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection {
  color: var(--paper);
  background: var(--ink);
}

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

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

button {
  font: inherit;
}

img,
canvas {
  display: block;
}

#field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 10px 12px;
  color: var(--paper);
  background: rgba(17, 19, 21, 0.88);
  border: 1px solid rgba(247, 247, 242, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(17, 19, 21, 0.2);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 8px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: rgba(247, 247, 242, 0.78);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.header-download:hover {
  color: var(--paper);
  background: rgba(247, 247, 242, 0.11);
  transform: translateY(-1px);
}

.header-download {
  gap: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

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

.section-grid,
.fit-section,
.work-section,
.skills-section,
.contact-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  min-height: 86svh;
  padding: 80px 0 58px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.panel-kicker,
.company {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

.hero-copy,
.resume-stage,
.fit-panel > *,
.skills-layout > *,
.contact-section > * {
  min-width: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: 5.7rem;
  line-height: 0.92;
  font-weight: 950;
  overflow-wrap: break-word;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(17, 19, 21, 0.78);
  font-size: 1.3rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  --mx: 0px;
  --my: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  font-weight: 850;
  transition:
    border-color 190ms ease,
    color 190ms ease,
    background 190ms ease,
    transform 190ms ease;
}

.button::before {
  position: absolute;
  inset: -70%;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.33), transparent 28%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.button:hover::before {
  opacity: 1;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 18px 34px rgba(17, 19, 21, 0.18);
}

.button-quiet {
  color: var(--ink);
  background: rgba(247, 247, 242, 0.72);
}

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

.button span,
.header-download span {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: 7px;
  font-size: 0.76rem;
  background: var(--acid);
  color: var(--ink);
  font-weight: 950;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 38px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.signal-strip div {
  min-height: 124px;
  padding: 18px;
  background: rgba(247, 247, 242, 0.82);
}

.signal-strip dt {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 950;
}

.signal-strip dd {
  margin: 10px 0 0;
  color: rgba(17, 19, 21, 0.68);
  font-size: 0.95rem;
}

.resume-stage {
  --rx: 0deg;
  --ry: 0deg;
  align-self: stretch;
  min-height: 570px;
  padding: 14px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(54, 199, 188, 0.3), transparent 35%),
    linear-gradient(315deg, rgba(240, 93, 63, 0.28), transparent 34%),
    var(--ink);
  border: 1px solid rgba(17, 19, 21, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 240ms ease;
}

.resume-topline,
.resume-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 850;
}

.resume-topline a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 8px;
}

.resume-preview {
  display: block;
  margin: 14px 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  transform: translateZ(34px);
}

.resume-preview img {
  width: 100%;
  height: auto;
}

.resume-footer {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.resume-footer span {
  padding: 8px 10px;
  color: var(--paper);
  border: 1px solid rgba(247, 247, 242, 0.2);
  border-radius: 8px;
}

.ticker-band {
  width: 100%;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-block: 1px solid rgba(247, 247, 242, 0.12);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 34px;
  border-right: 1px solid rgba(247, 247, 242, 0.16);
  font-weight: 850;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.fit-section,
.work-section,
.skills-section,
.contact-section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: 3.1rem;
  line-height: 1;
  font-weight: 950;
}

.role-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.role-button,
.skill-board button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(247, 247, 242, 0.72);
  cursor: pointer;
  font-weight: 850;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.role-button:hover,
.skill-board button:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.role-button.is-active,
.skill-board button.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.fit-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.fit-copy h3,
.skill-detail h3 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.1;
}

.fit-copy p,
.skill-detail p,
.timeline-body p,
.contact-copy p {
  color: rgba(17, 19, 21, 0.72);
}

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

.evidence-grid article {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 247, 242, 0.85);
}

.evidence-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 48px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 950;
}

.evidence-grid p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.work-section {
  width: 100%;
  max-width: none;
  color: var(--paper);
  background: var(--ink);
}

.work-section > .section-heading,
.timeline {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.work-section .eyebrow {
  color: var(--acid);
}

.work-section .section-heading h2 {
  color: var(--paper);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(247, 247, 242, 0.14);
  border-radius: 8px;
  background: rgba(247, 247, 242, 0.04);
}

.timeline-item.featured {
  background:
    linear-gradient(90deg, rgba(54, 199, 188, 0.18), transparent 60%),
    rgba(247, 247, 242, 0.06);
  border-color: rgba(54, 199, 188, 0.42);
}

.timeline-date {
  color: rgba(247, 247, 242, 0.62);
  font-weight: 850;
}

.timeline-body h3 {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 1.6rem;
}

.timeline-body p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(247, 247, 242, 0.7);
}

.timeline-body ul {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(247, 247, 242, 0.78);
}

.company {
  color: var(--cyan);
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(247, 247, 242, 0.28);
  border-radius: 8px;
  color: var(--paper);
  font-weight: 850;
  font-size: 0.95rem;
  transition:
    border-color 190ms ease,
    background 190ms ease,
    transform 190ms ease;
}

.timeline-link span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.timeline-link:hover {
  transform: translateY(-2px);
  border-color: var(--acid);
  background: rgba(247, 247, 242, 0.06);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 24px;
}

.skill-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.skill-board button {
  min-height: 104px;
  text-align: left;
}

.skill-detail {
  min-height: 252px;
  padding: 24px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(47, 91, 234, 0.3), transparent 42%),
    linear-gradient(315deg, rgba(200, 233, 87, 0.2), transparent 38%),
    var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skill-detail .panel-kicker,
.skill-detail p {
  color: rgba(247, 247, 242, 0.72);
}

.skill-detail h3 {
  color: var(--paper);
  font-size: 2.5rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.7fr);
  gap: 42px;
  align-items: end;
  padding-top: 30px;
}

.contact-copy p {
  max-width: 650px;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.contact-actions {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.contact-actions .button {
  width: 220px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: rgba(17, 19, 21, 0.58);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

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

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .header-download {
    justify-self: end;
  }

  .hero-section,
  .fit-panel,
  .skills-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 34px;
    padding-top: 62px;
  }

  h1 {
    font-size: 4.3rem;
  }

  .resume-stage {
    min-height: auto;
  }

  .evidence-grid,
  .skill-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-grid,
  .fit-section,
  .skills-section,
  .contact-section,
  .work-section > .section-heading,
  .timeline,
  .site-footer {
    width: min(100% - 22px, var(--max));
  }

  .site-header {
    min-height: 58px;
    margin-top: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-download {
    min-height: 38px;
    padding: 0 10px;
  }

  .hero-section {
    min-height: auto;
    padding: 52px 0 42px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.85rem;
    line-height: 0.98;
  }

  .hero-lede {
    font-size: 1.08rem;
    max-width: 34ch;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

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

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2.24rem;
    line-height: 1.05;
  }

  .fit-section,
  .work-section,
  .skills-section,
  .contact-section {
    padding: 68px 0;
  }

  .evidence-grid,
  .skill-board {
    grid-template-columns: 1fr;
  }

  .evidence-grid article,
  .skill-board button {
    min-height: 120px;
  }

  .evidence-grid span {
    margin-bottom: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 10px;
  }

  .header-download {
    width: 46px;
    padding: 0;
    font-size: 0;
  }

  .header-download span {
    font-size: 0.72rem;
  }

  h1 {
    font-size: 2.58rem;
  }

  .hero-lede {
    font-size: 1rem;
    max-width: 29ch;
  }
}

.beyond-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.beyond-lede {
  max-width: 690px;
  margin: -16px 0 34px;
  color: rgba(17, 19, 21, 0.72);
  font-size: 1.2rem;
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.beyond-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(17, 19, 21, 0.16);
}

.beyond-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transform: scale(1.02);
  transition:
    filter 480ms ease,
    transform 640ms ease;
}

.beyond-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(17, 19, 21, 0) 36%,
    rgba(17, 19, 21, 0.86) 100%
  );
}

.beyond-card:hover img,
.beyond-card:focus-within img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.07);
}

.beyond-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px;
  color: var(--paper);
}

.beyond-place {
  justify-self: start;
  margin: 0 0 6px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beyond-overlay h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1.55rem;
  font-weight: 950;
  text-transform: uppercase;
}

.beyond-note {
  max-height: 0;
  margin: 0;
  color: rgba(247, 247, 242, 0.82);
  font-size: 0.95rem;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition:
    max-height 280ms ease,
    opacity 280ms ease,
    transform 280ms ease;
}

.beyond-card:hover .beyond-note,
.beyond-card:focus-within .beyond-note {
  max-height: 80px;
  margin-top: 6px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .beyond-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .beyond-section {
    width: min(100% - 22px, var(--max));
    padding: 68px 0;
  }

  .beyond-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .beyond-card {
    aspect-ratio: 4 / 3;
  }

  .beyond-note {
    max-height: 80px;
    margin-top: 6px;
    opacity: 1;
    transform: translateY(0);
  }

  .contact-actions {
    align-items: stretch;
  }

  .contact-actions .button {
    width: 100%;
  }
}

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