:root {
  --ink: #102222;
  --ink-soft: #4f6260;
  --forest: #0b302f;
  --forest-deep: #071e1e;
  --mint: #bff3d5;
  --mint-bright: #5ee6a8;
  --cream: #f4f0e8;
  --paper: #fbfaf6;
  --line: rgba(16, 34, 34, 0.16);
  --white: #fff;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --body: Inter, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--forest);
  transform: translateY(-160%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0 4vw;
  border-bottom: 1px solid transparent;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(7, 30, 30, 0.06);
}

.brand,
.primary-nav,
.site-footer > div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.8rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  color: var(--mint);
  background: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.primary-nav {
  gap: clamp(1.5rem, 3vw, 3rem);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.primary-nav a {
  position: relative;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  min-height: calc(100vh - 5rem);
  max-width: 1600px;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 7rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: #1a7358;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-panel h2 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 7.7rem);
}

.hero-intro {
  max-width: 690px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

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

.button svg {
  width: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

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

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

.button-secondary:hover {
  border-color: var(--ink);
}

.hero-meta {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 7vh, 6rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: grid;
  gap: 0.1rem;
}

.meta-label,
.about-facts span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 680px;
  overflow: hidden;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: var(--forest-deep);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: linear-gradient(rgba(191, 243, 213, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 243, 213, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.visual-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(64%, 420px);
  aspect-ratio: 0.78;
  padding: 1.5rem;
  border: 1px solid rgba(191, 243, 213, 0.4);
  place-items: center;
  background: rgba(191, 243, 213, 0.06);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
}

.visual-card::before,
.visual-card::after {
  position: absolute;
  width: 1rem;
  height: 1rem;
  content: "";
}

.visual-card::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--mint-bright);
  border-left: 3px solid var(--mint-bright);
}

.visual-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--mint-bright);
  border-bottom: 3px solid var(--mint-bright);
}

.visual-index {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  color: var(--mint);
  font: 700 0.75rem/1 var(--body);
  letter-spacing: 0.15em;
}

.monogram {
  color: var(--mint);
  font-family: var(--display);
  font-size: clamp(5.5rem, 10vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1;
  transform: translateX(-0.05em);
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.03);
}

.visual-card:has(.profile-photo:not([hidden])) .visual-index,
.visual-card:has(.profile-photo:not([hidden])) .visual-caption {
  z-index: 2;
  padding-right: 0.4rem;
  padding-left: 0.4rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.visual-card:has(.profile-photo:not([hidden]))::after {
  z-index: 3;
}

.visual-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.2rem;
  left: 1.25rem;
  display: flex;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(191, 243, 213, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(94, 230, 168, 0.25);
  border-radius: 50%;
}

.orbit::before {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--mint-bright);
  box-shadow: 0 0 18px var(--mint-bright);
}

.orbit-one {
  width: min(84%, 620px);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(108%, 800px);
  aspect-ratio: 1;
  border-style: dashed;
  transform: rotate(18deg);
}

.coordinate {
  position: absolute;
  color: rgba(191, 243, 213, 0.55);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coordinate-top {
  top: 2rem;
  right: 2rem;
}

.coordinate-bottom {
  bottom: 2rem;
  left: 2rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1600px;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--cream);
}

.principle {
  min-height: 250px;
  padding: clamp(2rem, 4vw, 4rem);
}

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

.principle > span {
  color: #2c795f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.principle h2 {
  margin: 2.8rem 0 0.7rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.035em;
}

.principle p {
  max-width: 31rem;
  margin: 0;
  color: var(--ink-soft);
}

.section-shell {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 9rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 11rem) clamp(1.5rem, 5vw, 5rem);
}

.section-heading h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
}

.section-heading > p:last-child {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
}

.about-copy {
  padding-top: 2.3rem;
}

.about-copy > p {
  max-width: 750px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.about-facts {
  display: grid;
  gap: 1.2rem;
  margin-top: 3rem;
}

.about-facts div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.about-facts strong {
  font-size: 1rem;
}

.experience {
  max-width: none;
  color: var(--white);
  background: var(--forest-deep);
}

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

.projects[hidden] {
  display: none;
}

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

.project-card {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.project-image {
  display: grid;
  min-height: 260px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  place-items: center;
  color: var(--mint);
  background: var(--forest-deep);
  font: 650 clamp(3rem, 7vw, 6rem)/1 var(--display);
}

.project-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-category {
  margin: 0 0 0.4rem;
  color: #28775e;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-card > p:last-child {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.experience .section-heading {
  padding-left: max(0px, calc((100vw - 1400px) / 2));
}

.experience .eyebrow {
  color: var(--mint-bright);
}

.experience .section-heading > p:last-child,
.role-meta,
.role-content > p:last-child {
  color: rgba(255, 255, 255, 0.61);
}

.timeline {
  max-width: 800px;
  padding-right: max(0px, calc((100vw - 1400px) / 2));
}

.role {
  display: grid;
  grid-template-columns: 6rem 1.5rem minmax(0, 1fr);
  gap: 1.4rem;
}

.role-date {
  display: grid;
  align-content: start;
  padding-top: 0.35rem;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.role-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.role-marker::after {
  position: absolute;
  top: 1.15rem;
  bottom: 0;
  width: 1px;
  content: "";
  background: rgba(191, 243, 213, 0.25);
}

.role:last-child .role-marker::after {
  display: none;
}

.role-marker span {
  position: relative;
  z-index: 1;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.42rem;
  border: 2px solid var(--forest-deep);
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 4px rgba(94, 230, 168, 0.18);
}

.role-content {
  padding-bottom: 3.8rem;
}

.role-company {
  margin: 0 0 0.35rem;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.role-meta {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
}

.role-content > p:last-child {
  max-width: 570px;
  margin: 1rem 0 0;
}

.contact {
  display: block;
  max-width: 1500px;
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  gap: 3rem;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 7rem);
  color: var(--white);
  background: var(--forest);
}

.contact-panel::after {
  position: absolute;
  right: -10%;
  bottom: -70%;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(191, 243, 213, 0.25);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 5rem rgba(191, 243, 213, 0.025),
    0 0 0 10rem rgba(191, 243, 213, 0.025);
}

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

.contact-panel .eyebrow {
  color: var(--mint-bright);
}

.contact-panel h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.7rem);
}

.contact-panel p:not(.eyebrow) {
  max-width: 660px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.contact-actions {
  align-content: center;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.contact-actions .button {
  min-height: 3.7rem;
  justify-content: space-between;
}

.button-light {
  color: var(--forest);
  background: var(--mint);
}

.button-light:hover {
  background: var(--white);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.button-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 4vw;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-footer > div {
  gap: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer > a {
  justify-self: end;
  color: var(--ink);
  font-weight: 700;
}

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

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 260ms;
}

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

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

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 620px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .about-copy {
    padding-top: 0;
  }

  .experience .section-heading,
  .timeline {
    padding-right: 0;
    padding-left: 0;
  }

  .contact-actions {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 4.5rem;
    padding: 0 1.25rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.82rem 0.65rem;
    border: 0;
    border-radius: 50%;
    place-content: center;
    gap: 6px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

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

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

  .primary-nav {
    position: fixed;
    top: 4.5rem;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 30px rgba(7, 30, 30, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
  }

  .hero-copy {
    padding: 5rem 1.5rem 4rem;
  }

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

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hero-visual {
    min-height: 530px;
  }

  .visual-card {
    width: min(72%, 340px);
  }

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

  .principle {
    min-height: 0;
    padding: 2.5rem 1.5rem;
  }

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

  .principle h2 {
    margin-top: 1.5rem;
  }

  .section-shell {
    padding: 6rem 1.5rem;
  }

  .section-heading h2,
  .contact-panel h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .about-facts div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .experience {
    gap: 4rem;
  }

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

  .project-image {
    min-height: 220px;
  }

  .role {
    grid-template-columns: 4.3rem 1rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .role-date {
    font-size: 0.62rem;
  }

  .contact {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .contact-panel {
    padding: 3rem 1.5rem;
  }

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

  .site-footer > p {
    display: none;
  }
}

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

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

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