:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #08090a;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --soft: #a1a1a6;
  --line: rgba(29, 29, 31, 0.12);
  --line-soft: rgba(29, 29, 31, 0.075);
  --accent: #0a4856;
  --dark: #090a0c;
  --dark-text: #f5f5f7;
  --dark-muted: #a8a8ad;
  --max: 1280px;
  --reading: 720px;
  --header-height: 54px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent), white 18%);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 9px 12px;
  margin: 0;
  clip: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  transition: background 240ms var(--ease), border-color 240ms var(--ease), min-height 240ms var(--ease);
}

.site-header.is-scrolled {
  min-height: 50px;
  border-color: var(--line-soft);
  background: rgba(245, 245, 247, 0.86);
}

.nav,
.section-panel,
.site-footer {
  width: min(calc(100% - 80px), var(--max));
  margin: 0 auto;
}

.nav {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.nav-link {
  position: relative;
  color: rgba(29, 29, 31, 0.72);
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 200ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3px) rotate(45deg);
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(4.8rem, 11.6vw, 10.8rem);
  font-weight: 600;
  line-height: 0.91;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  font-weight: 600;
  line-height: 0.98;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 1.45vw, 1.38rem);
  font-weight: 600;
  line-height: 1.24;
}

.eyebrow,
.section-kicker,
.project-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.54fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  padding: calc(var(--header-height) + 64px) 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1080px;
}

.hero .eyebrow {
  margin-bottom: clamp(34px, 7vw, 70px);
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.16rem, 1.75vw, 1.42rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 34px;
}

.button,
.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  font-weight: 500;
  transition: transform 240ms var(--ease), color 240ms var(--ease), background 240ms var(--ease);
}

.button-primary {
  min-width: 150px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

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

.text-link:hover {
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 28px;
  width: min(100%, 430px);
}

.orb {
  position: relative;
  width: clamp(230px, 30vw, 390px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.58) 24%, rgba(195, 214, 218, 0.42) 46%, rgba(10, 72, 86, 0.18) 70%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(232, 236, 237, 0.52));
  box-shadow:
    inset -38px -44px 84px rgba(10, 72, 86, 0.12),
    inset 28px 30px 64px rgba(255, 255, 255, 0.7),
    0 34px 90px rgba(29, 29, 31, 0.12);
}

.orb::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: inherit;
}

.orb::after {
  content: "";
  position: absolute;
  width: 52%;
  height: 16%;
  bottom: -17%;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.13);
  filter: blur(22px);
}

.orb-core {
  position: relative;
  color: rgba(29, 29, 31, 0.54);
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-visual p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.profile,
.projects,
.contact {
  min-height: 86svh;
  padding: clamp(118px, 14vw, 190px) 0;
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 118px);
  align-items: start;
  margin-bottom: clamp(54px, 8vw, 96px);
}

.section-kicker {
  margin-bottom: 22px;
}

.profile-body {
  max-width: none;
}

.lead,
.experience-intro p,
.contact-body p {
  max-width: var(--reading);
  color: var(--muted);
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  line-height: 1.62;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 78px);
  margin-top: clamp(68px, 9vw, 110px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.principles p,
.experience-list p,
.project-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.experience {
  width: 100%;
  max-width: none;
  min-height: 96svh;
  padding: clamp(118px, 13vw, 180px) max(40px, calc((100vw - var(--max)) / 2)) clamp(112px, 12vw, 166px);
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  column-gap: clamp(52px, 8vw, 122px);
  align-items: center;
  border-top: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(98, 130, 138, 0.22), transparent 32%),
    var(--dark);
  color: var(--dark-text);
}

.experience .section-heading {
  display: block;
  margin-bottom: 34px;
}

.experience h2,
.experience h3 {
  color: var(--dark-text);
}

.experience .section-kicker,
.experience-intro p,
.experience-list p {
  color: var(--dark-muted);
}

.experience-intro {
  grid-column: 1;
}

.experience-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(34px, 5vw, 72px);
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(245, 245, 247, 0.18);
}

.experience-list li {
  min-height: clamp(210px, 20vw, 280px);
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(245, 245, 247, 0.18);
}

.experience-number {
  display: block;
  margin-bottom: clamp(28px, 5vw, 62px);
  color: rgba(245, 245, 247, 0.22);
  font-size: clamp(3.6rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 0.82;
}

.project-number {
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.projects {
  background: var(--surface-soft);
}

.projects-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  gap: clamp(18px, 4vw, 58px);
  align-items: center;
  padding: clamp(34px, 4.5vw, 58px) 0;
  border-bottom: 1px solid var(--line);
  transition: transform 260ms var(--ease), color 260ms var(--ease);
}

.project-item:hover {
  transform: translateX(8px);
}

.project-tag {
  margin-bottom: 10px;
  color: var(--soft);
}

.project-item h3 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
}

.project-arrow {
  color: var(--soft);
  font-size: clamp(1.35rem, 2vw, 2rem);
  transition: transform 260ms var(--ease), color 260ms var(--ease);
}

.project-item:hover .project-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

.manifesto {
  width: 100%;
  max-width: none;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(118px, 13vw, 190px) max(40px, calc((100vw - var(--max)) / 2));
  border-top: 0;
  background: var(--surface);
}

.manifesto .section-kicker {
  width: min(calc(100% - 80px), var(--max));
  margin: 0 auto clamp(34px, 6vw, 72px);
}

.manifesto h2 {
  width: min(calc(100% - 80px), 1160px);
  max-width: 1160px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(3.6rem, 8.2vw, 8.6rem);
  font-weight: 600;
  line-height: 0.98;
  text-align: center;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 118px);
  align-items: center;
  min-height: 84svh;
  padding-bottom: clamp(130px, 15vw, 210px);
}

.contact .section-heading {
  display: block;
  margin: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px 30px;
  margin-top: 42px;
}

.contact-links a,
.footer-links a {
  color: var(--accent);
  font-weight: 500;
}

.contact-email {
  flex-basis: 100%;
  color: var(--ink) !important;
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 600 !important;
  letter-spacing: 0;
  line-height: 1.02;
  transition: color 240ms var(--ease), transform 240ms var(--ease);
}

.contact-email:hover {
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.site-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer strong {
  display: inline;
  color: var(--text);
  font-weight: 500;
}

.site-footer span {
  margin-left: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + 78px);
  }

  .hero-visual {
    width: 100%;
    padding-top: 20px;
  }

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

  .experience {
    align-items: start;
  }

  .experience-list {
    grid-column: 1;
    grid-row: auto;
    margin-top: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 52px;
  }

  body {
    font-size: 16px;
  }

  .nav,
  .section-panel,
  .site-footer,
  .manifesto .section-kicker,
  .manifesto h2 {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(245, 245, 247, 0.94);
    backdrop-filter: saturate(180%) blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }

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

  .nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.96rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.7);
  }

  h1 {
    font-size: clamp(3.45rem, 16vw, 5.9rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2.7rem, 12.5vw, 4.6rem);
  }

  .hero {
    padding: calc(var(--header-height) + 58px) 0 76px;
  }

  .hero .eyebrow {
    margin-bottom: 38px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .orb {
    width: min(78vw, 300px);
  }

  .profile,
  .projects,
  .contact {
    min-height: auto;
    padding: clamp(86px, 19vw, 116px) 0;
  }

  .experience,
  .manifesto {
    min-height: auto;
    padding: clamp(92px, 20vw, 126px) 16px;
  }

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

  .principles {
    gap: 28px;
    margin-top: 56px;
  }

  .experience-list li {
    min-height: 0;
  }

  .experience-number {
    margin-bottom: 26px;
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  .project-item {
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    gap: 18px;
    align-items: start;
  }

  .project-item:hover {
    transform: none;
  }

  .manifesto h2 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
    text-align: left;
  }

  .contact {
    padding-bottom: 112px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer span {
    display: block;
    margin-left: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .contact-links,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .button-primary {
    min-width: 0;
  }
}

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

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