@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/roboto-condensed-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-italic-400-latin.woff2") format("woff2");
}

:root {
  --paper: #efede6;
  --paper-2: #e4e0d5;
  --ink: #171816;
  --muted: #66685f;
  --blue: #4fc1e6;
  --blue-deep: #007d9f;
  --acid: #8de3f7;
  --line: rgba(23, 24, 22, 0.18);
  --white: #f9f8f3;
  --max: 1460px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease, padding 260ms ease, color 260ms ease;
}

.site-header.is-scrolled {
  padding-block: 1.05rem;
  color: var(--ink);
  border-color: var(--line);
  background: rgba(249, 248, 243, 0.94);
  box-shadow: 0 8px 30px rgba(23, 24, 22, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-name {
  color: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.brand-name strong {
  color: var(--blue);
  font-weight: inherit;
}

.site-header.is-scrolled .brand-name strong {
  color: var(--blue-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.25rem);
  font-size: 1rem;
  font-weight: 650;
}

.nav a:not(.nav-cta) {
  position: relative;
}

.nav a:not(.nav-cta)::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.8rem 1.2rem;
  color: var(--ink);
  background: var(--blue);
  border-radius: 100px;
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border: 0;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 0.33rem 0;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-height: 100svh;
  color: var(--white);
  background-image: url("assets/legacy-home-bg.jpg");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(12, 15, 16, 0.94) 0%, rgba(12, 15, 16, 0.84) 52%, rgba(12, 15, 16, 0.7) 100%);
}

.hero-inner {
  display: grid;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(7.5rem, 12vw, 10.5rem) var(--pad) clamp(3rem, 7vw, 5.5rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(21rem, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
}

.eyebrow,
.section-label {
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue-deep);
}

.hero .eyebrow {
  color: var(--blue);
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1,
.statement h2,
.experience h2,
.stack h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 760;
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.hero h1 {
  max-width: 850px;
  margin-top: 1.4rem;
  font-size: clamp(3.4rem, 7.6vw, 7.6rem);
  line-height: 1.02;
}

h1 em,
h2 em {
  color: var(--blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 600px;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 1.65vw, 1.4rem);
}

.hero .hero-intro {
  color: rgba(249, 248, 243, 0.74);
}

.hero .text-link {
  color: var(--white);
}

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

.hero .button-primary:hover {
  background: #8de3f7;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 1.25rem 0.9rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 740;
  border-radius: 100px;
  transition: transform 180ms ease, background-color 180ms ease;
}

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

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

.button-primary:hover {
  background: #006985;
}

.button span {
  font-size: 1.25rem;
}

.text-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 710;
}

.hero-visual {
  position: relative;
  padding: 0;
}

.hero-visual::before {
  position: absolute;
  z-index: 0;
  top: -1rem;
  right: -1rem;
  width: 58%;
  height: 48%;
  content: "";
  background: var(--blue);
  border-radius: 1.4rem;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--paper-2);
  border-radius: 1.4rem 1.4rem 0 0;
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-visual:hover img {
  transform: scale(1.025);
}

.status-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  color: var(--white);
  background: var(--ink);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 1.4rem 1.4rem;
}

.status-card div {
  display: grid;
}

.status-card strong {
  font-size: 0.95rem;
}

.status-card span:last-child,
.status-label {
  font-size: 0.72rem;
}

.status-card span:last-child {
  color: rgba(249, 248, 243, 0.65);
}

.status-label {
  margin-bottom: 0.22rem;
  color: var(--blue);
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(79, 193, 230, 0.15);
}

.hero-index {
  position: absolute;
  top: 43%;
  right: -1.4rem;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  transform: rotate(90deg);
}

.section-pad {
  padding: clamp(5rem, 10vw, 10rem) var(--pad);
}

.section-pad > * {
  width: 100%;
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.section-label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.statement-grid {
  display: grid;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.65fr);
  gap: clamp(3rem, 9vw, 10rem);
}

.statement h2,
.experience h2,
.stack h2,
.contact h2 {
  font-size: clamp(3rem, 6.5vw, 6.7rem);
}

.statement-copy {
  align-self: end;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.45vw, 1.32rem);
}

.statement-copy p:first-child {
  margin-top: 0;
}

.strengths {
  display: grid;
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.strength-card {
  min-height: 19rem;
  padding: 2rem;
}

.strength-card + .strength-card {
  border-left: 1px solid var(--line);
}

.card-number {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.strength-card h3 {
  max-width: 11ch;
  margin: 4.5rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.strength-card p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.experience,
.contact {
  color: var(--white);
  background: var(--ink);
}

.section-label-light {
  border-color: rgba(249, 248, 243, 0.23);
}

.experience-head {
  display: grid;
  margin-top: clamp(3.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.5fr);
  align-items: end;
  gap: 3rem;
}

.experience-head h2 {
  max-width: 11ch;
}

.experience-head p {
  max-width: 26ch;
  margin: 0 0 0.5rem;
  color: rgba(249, 248, 243, 0.62);
}

.timeline {
  padding: 0;
  margin-top: clamp(4rem, 8vw, 8rem);
  list-style: none;
  border-top: 1px solid rgba(249, 248, 243, 0.22);
}

.timeline-item {
  display: grid;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(249, 248, 243, 0.22);
  grid-template-columns: 0.68fr 1fr 1.12fr;
  gap: 2rem;
}

.timeline-period {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.timeline-role h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.timeline-role span,
.timeline-role a {
  color: rgba(249, 248, 243, 0.58);
  font-size: 1rem;
}

.timeline-role a:hover {
  color: var(--acid);
}

.timeline-item p {
  max-width: 52ch;
  margin: 0;
  color: rgba(249, 248, 243, 0.72);
  font-size: 1.12rem;
}

.stack {
  overflow: hidden;
}

.stack-layout {
  display: grid;
  margin-top: clamp(3.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  gap: clamp(4rem, 9vw, 10rem);
}

.stack h2 {
  max-width: 11ch;
}

.stack-intro {
  max-width: 56ch;
  margin-top: 2.5rem;
  color: var(--muted);
}

.skill-groups {
  border-top: 1px solid var(--line);
}

.skill-group {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.skill-group span {
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-group p {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.contact {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
}

.contact .section-label,
.contact-inner {
  position: relative;
  z-index: 2;
}

.contact-inner {
  padding-top: clamp(4rem, 8vw, 8rem);
}

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

.contact h2 {
  max-width: 13ch;
  margin-top: 1.5rem;
}

.button-light {
  color: var(--ink);
  background: var(--acid);
}

.button-light:hover {
  background: white;
}

.text-link-light {
  color: var(--white);
}

.contact-orbit {
  position: absolute;
  right: -11vw;
  bottom: -28vw;
  width: 62vw;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 255, 88, 0.4);
  border-radius: 50%;
}

.contact-orbit::before,
.contact-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(216, 255, 88, 0.22);
  border-radius: 50%;
  inset: 12%;
}

.contact-orbit::after {
  inset: 26%;
}

.footer {
  display: grid;
  padding: 1.5rem var(--pad);
  color: rgba(249, 248, 243, 0.55);
  background: var(--ink);
  border-top: 1px solid rgba(249, 248, 243, 0.18);
  font-size: 0.72rem;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
}

.footer p {
  margin: 0;
}

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

.footer-name {
  color: var(--white);
  font-weight: 760;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.footer-name strong {
  color: var(--blue);
  font-weight: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

@media (max-width: 940px) {
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 2.5rem;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero-visual {
    max-width: 36rem;
    margin-left: auto;
  }

  .statement-grid,
  .experience-head,
  .stack-layout {
    grid-template-columns: 1fr;
  }

  .statement-copy {
    max-width: 44rem;
  }

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

  .strength-card {
    display: grid;
    min-height: auto;
    padding: 1.8rem 0;
    grid-template-columns: 3rem minmax(10rem, 0.7fr) 1fr;
    align-items: start;
    gap: 1rem;
  }

  .strength-card + .strength-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .strength-card h3,
  .strength-card p {
    margin: 0;
  }

  .timeline-item {
    grid-template-columns: 0.65fr 1fr;
  }

  .timeline-item p {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-block: 0.9rem;
  }

  .site-header:has(.nav.is-open) {
    color: var(--ink);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .menu-button {
    z-index: 2;
    display: block;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    width: 100vw;
    min-height: 100svh;
    height: 100dvh;
    visibility: hidden;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(6.5rem, 18vh, 8.5rem) var(--pad) 2rem;
    opacity: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2.45rem, 12vw, 4.5rem);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -0.055em;
    transform: translateY(-0.75rem);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.72rem 0 0.82rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a:first-child {
    border-top: 1px solid var(--line);
  }

  .nav a::before {
    color: var(--blue-deep);
    font-family: var(--body);
    font-size: 0.65rem;
    font-weight: 780;
    letter-spacing: 0.14em;
  }

  .nav a:nth-child(1)::before { content: "01"; }
  .nav a:nth-child(2)::before { content: "02"; }
  .nav a:nth-child(3)::before { content: "03"; }
  .nav a:nth-child(4)::before { content: "04"; }

  .nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-header:has(.nav.is-open) .brand-name,
  .site-header:has(.nav.is-open) .menu-button {
    color: var(--ink);
  }

  .site-header:has(.nav.is-open) .brand-name strong {
    color: var(--blue-deep);
  }

  .nav-cta {
    padding: 0;
    color: var(--blue-deep);
    background: transparent;
    border-radius: 0;
  }

  .hero-inner {
    padding-top: 7.5rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 15vw, 5.4rem);
  }

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

  .hero-visual {
    width: calc(100% + 0.5rem);
    margin-top: 1rem;
  }

  .hero-visual::before {
    right: -0.5rem;
  }

  .statement h2,
  .experience h2,
  .stack h2,
  .contact h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .strength-card {
    grid-template-columns: 2.5rem 1fr;
  }

  .strength-card p {
    grid-column: 2;
  }

  .timeline-item {
    padding: 1.6rem 0;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .timeline-item p {
    grid-column: auto;
  }

  .contact {
    min-height: 90vh;
  }

  .contact-orbit {
    right: -20vw;
    bottom: 2rem;
    width: 100vw;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer p:nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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