:root {
  --ink: #0b0d10;
  --ink-soft: #252a31;
  --paper: #f7f4ef;
  --paper-strong: #fffdf8;
  --muted: #67635d;
  --line: rgba(11, 13, 16, 0.13);
  --navy: #0c2340;
  --gold: #d9a928;
  --green: #1d7b61;
  --shadow: 0 30px 80px rgba(11, 13, 16, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 13, 16, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@keyframes field-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-72px, -72px, 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes title-mask {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes portrait-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.4deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(0.4deg);
  }
}

@keyframes ring-scan {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes line-pass {
  from {
    transform: translateX(-102%);
  }

  to {
    transform: translateX(102%);
  }
}

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

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

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

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  height: 3px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.motion-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.motion-field::before,
.motion-field::after {
  position: absolute;
  inset: -96px;
  content: "";
}

.motion-field::before {
  background:
    linear-gradient(90deg, rgba(12, 35, 64, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 35, 64, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: field-drift 18s linear infinite;
}

.motion-field::after {
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(217, 169, 40, 0.12) 49%, transparent 54%),
    linear-gradient(155deg, transparent 0 52%, rgba(29, 123, 97, 0.08) 56%, transparent 60%);
  opacity: var(--field-opacity, 0.7);
  transform: translateY(calc(var(--scroll-y, 0px) * -0.04));
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(11, 13, 16, 0.08);
  background: rgba(247, 244, 239, 0.76);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.hero {
  min-height: 96svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(32px, 5vw, 84px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(108px, 14vw, 162px) 0 clamp(36px, 5vw, 64px);
}

.hero-copy {
  padding-bottom: clamp(18px, 4vw, 56px);
}

.hero-copy .eyebrow,
.hero-lede,
.hero-actions {
  opacity: 0;
  animation: hero-rise 720ms ease forwards;
}

.hero-copy .eyebrow {
  animation-delay: 120ms;
}

.hero-lede {
  animation-delay: 460ms;
}

.hero-actions {
  animation-delay: 650ms;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8.5ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 12vw, 10.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.82;
  clip-path: inset(0 100% 0 0);
  animation: title-mask 980ms cubic-bezier(0.76, 0, 0.24, 1) 220ms forwards;
}

.hero-lede {
  max-width: 680px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.75vw, 1.42rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
  overflow: hidden;
  position: relative;
}

.button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.24) 46%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}

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

.button:hover::after,
.button:focus-visible::after {
  animation: line-pass 680ms ease;
}

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

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--ink);
  color: var(--paper-strong);
}

.portrait-wrap {
  position: relative;
  margin: 0;
  isolation: isolate;
  transform: translateY(calc(var(--scroll-y, 0px) * -0.018));
}

.portrait-wrap::before {
  position: absolute;
  inset: 9% -8% -6% 16%;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, var(--navy), #123e39);
  border-radius: 42% 42% 4% 4%;
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  width: min(450px, 100%);
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 46% 46% 5% 5%;
  filter: saturate(0.96) contrast(1.02);
  animation: portrait-drift 7s ease-in-out infinite;
}

.portrait-ring {
  position: absolute;
  top: 52%;
  left: 55%;
  z-index: -1;
  width: min(430px, 94%);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 169, 40, 0.45);
  border-radius: 44% 44% 6% 6%;
  transform: translate(-50%, -50%);
  animation: ring-scan 22s linear infinite;
}

.portrait-ring::before,
.portrait-ring::after {
  position: absolute;
  content: "";
  background: var(--gold);
}

.portrait-ring::before {
  top: 14%;
  right: -4px;
  width: 8px;
  height: 8px;
}

.portrait-ring::after {
  bottom: 22%;
  left: -3px;
  width: 6px;
  height: 6px;
  background: var(--green);
}

.portrait-wrap figcaption {
  position: absolute;
  inset: auto auto 24px -20px;
  display: grid;
  gap: 4px;
  min-width: 205px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 13, 16, 0.82);
  color: var(--paper-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    background 220ms ease;
}

.portrait-wrap:hover figcaption {
  transform: translate3d(8px, -8px, 0);
  background: rgba(11, 13, 16, 0.9);
}

.portrait-wrap figcaption span:first-child {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait-wrap figcaption span:last-child {
  font-size: 0.92rem;
  font-weight: 700;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  min-height: 142px;
  padding: 26px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.proof-item::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(217, 169, 40, 0.16), transparent);
  transform: translateX(-105%);
}

.proof-item:hover::before {
  animation: line-pass 900ms ease;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item span {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  max-width: 260px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 132px) 0;
}

.intro-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro-copy h2,
.section-heading h2,
.education-main h2,
.contact-copy h2 {
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 5.15rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.intro-copy p,
.education-main p,
.contact-copy p {
  max-width: 760px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.68;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(34px, 7vw, 76px);
}

.role-list {
  border-top: 1px solid var(--ink);
}

.role-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(28px, 5vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding-left 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  position: relative;
  overflow: hidden;
}

.role-row:hover {
  padding-left: 18px;
  border-color: rgba(11, 13, 16, 0.35);
  background: rgba(255, 253, 248, 0.42);
}

.role-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(var(--gold), var(--green));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 220ms ease;
}

.role-row:hover::before {
  transform: scaleY(1);
}

.role-index {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.role-main h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.role-org {
  margin-top: 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-detail {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.role-detail a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.role-detail a:hover,
.role-detail a:focus-visible {
  color: var(--green);
  transform: translateX(5px);
}

.role-detail a::after {
  content: " ->";
}

.projects-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper-strong);
}

.projects-section .eyebrow {
  color: var(--gold);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.project-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 169, 40, 0.22), transparent 34%),
    linear-gradient(160deg, #11161c, #0b0d10);
  transition:
    transform 220ms ease,
    background 220ms ease;
  position: relative;
  overflow: hidden;
}

.project-panel:hover {
  transform: translateY(-8px);
  background:
    radial-gradient(circle at 20% 10%, rgba(29, 123, 97, 0.28), transparent 36%),
    linear-gradient(160deg, #151f28, #0b0d10);
}

.project-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.project-panel:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.project-panel > * {
  position: relative;
  z-index: 1;
}

.project-tag {
  align-self: flex-start;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-panel h3 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  line-height: 1;
}

.project-panel p {
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.98rem;
  line-height: 1.68;
}

.education-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  gap: clamp(34px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.credential-list {
  display: grid;
  align-content: start;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.credential-list div {
  padding: 24px;
  background: rgba(255, 253, 248, 0.55);
}

.credential-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.credential-list strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}

.credential-list p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.skill-group {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.skill-group h3 {
  min-height: 54px;
  font-size: 1.1rem;
  line-height: 1.16;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.skill-group li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.skill-group li:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 13, 16, 0.28);
  background: var(--paper-strong);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto clamp(24px, 4vw, 44px);
  padding: clamp(46px, 8vw, 88px);
  background:
    linear-gradient(120deg, rgba(217, 169, 40, 0.16), transparent 44%),
    var(--navy);
  color: var(--paper-strong);
}

.contact-copy .eyebrow {
  color: var(--gold);
}

.contact-copy p {
  color: rgba(255, 253, 248, 0.76);
}

.contact-section .button {
  border-color: var(--paper-strong);
}

.contact-section .button-primary {
  background: var(--paper-strong);
  color: var(--navy);
}

.contact-section .button-secondary {
  color: var(--paper-strong);
}

.contact-section .button-secondary:hover,
.contact-section .button-secondary:focus-visible {
  background: var(--paper-strong);
  color: var(--navy);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.portrait-wrap.reveal.is-visible {
  transform: translateY(calc(var(--scroll-y, 0px) * -0.018));
}

.project-panel.reveal.is-visible:hover {
  transform: translateY(-8px);
}

.proof-strip .reveal:nth-child(2),
.project-grid .reveal:nth-child(2),
.skills-layout .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.proof-strip .reveal:nth-child(3),
.project-grid .reveal:nth-child(3),
.skills-layout .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.project-grid .reveal:nth-child(4),
.skills-layout .reveal:nth-child(4) {
  transition-delay: 270ms;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: auto;
  }

  .portrait-wrap {
    width: min(470px, 86vw);
    margin: 0 0 0 auto;
  }

  .project-grid,
  .skills-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: fixed;
  }

  .nav {
    display: none;
  }

  .hero {
    width: min(100% - 28px, var(--max));
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .portrait-wrap {
    width: min(420px, 94vw);
  }

  .portrait-wrap figcaption {
    inset: auto 14px 14px 14px;
  }

  .proof-strip,
  .intro-section,
  .education-section,
  .skills-layout,
  .project-grid,
  .role-row {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    width: min(100% - 28px, var(--max));
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section,
  .contact-section {
    width: min(100% - 28px, var(--max));
  }

  .role-row:hover {
    padding-left: 0;
  }

  .project-panel {
    min-height: 310px;
  }

  .skill-group h3 {
    min-height: 0;
  }

  .contact-section {
    padding: 30px 24px;
  }

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

@media (max-width: 480px) {
  .brand {
    font-size: 0.72rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

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

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

  .motion-field::before,
  .portrait-wrap img,
  .portrait-ring,
  h1,
  .hero-copy .eyebrow,
  .hero-lede,
  .hero-actions {
    animation: none !important;
  }

  h1,
  .hero-copy .eyebrow,
  .hero-lede,
  .hero-actions {
    opacity: 1;
    clip-path: none;
  }
}
