:root {
  --ink: #102a43;
  --ink-deep: #071a2b;
  --blue: #0f5f9a;
  --blue-light: #dfeff8;
  --gold: #d5a743;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --muted: #526678;
  --line: rgba(16, 42, 67, 0.15);
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(16, 42, 67, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 92% 5%, rgba(213, 167, 67, 0.16), transparent 24rem),
    radial-gradient(circle at 4% 30%, rgba(15, 95, 154, 0.09), transparent 29rem),
    var(--paper);
}

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

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

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 6.8vw, 6.3rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.4vw, 4.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink-deep);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-block {
  padding-top: 130px;
  padding-bottom: 130px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  padding: 0 24px;
  margin: 14px auto 0;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid transparent;
  border-radius: 18px;
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 253, 248, 0.94);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(16, 42, 67, 0.08);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 150ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--blue);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: transparent;
  border: 0;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding-top: 30px;
  padding-bottom: 96px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 720px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 10px 25px rgba(16, 42, 67, 0.18);
}

.button-primary:hover {
  background: var(--blue);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.54);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--white);
  box-shadow: 0 10px 25px rgba(16, 42, 67, 0.08);
}

.hero-panel {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.signal-orbit {
  position: absolute;
  top: 45%;
  left: 50%;
  display: grid;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.orbit::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 25px var(--gold);
}

.orbit-one {
  width: 280px;
  height: 280px;
  animation: rotate 18s linear infinite;
}

.orbit-two {
  width: 205px;
  height: 205px;
  animation: rotate 13s linear infinite reverse;
}

.orbit-center {
  display: grid;
  width: 126px;
  height: 126px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 50%;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.profile-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}

.profile-note span,
.profile-note strong {
  display: block;
}

.profile-note span {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.profile-note strong {
  line-height: 1.4;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: var(--shell);
  padding: 30px 0;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  padding: 0 26px;
  border-right: 1px solid var(--line);
}

.proof-strip div:first-child {
  padding-left: 0;
}

.proof-strip div:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 1.85rem;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 58px;
}

.section-heading > p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading-row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.capability-card {
  min-height: 275px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.capability-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.card-index {
  display: block;
  margin-bottom: 70px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.capability-card h3 {
  margin-bottom: 14px;
}

.capability-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.work-section {
  background: var(--cream);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  padding: 8px 14px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.filter:hover,
.filter.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

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

.project-card {
  display: flex;
  min-height: 485px;
  padding: 30px;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: var(--radius-md);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.1);
  transform: translateY(-4px);
}

.project-card[hidden] {
  display: none;
}

.project-card.featured {
  grid-column: 1 / -1;
  min-height: 430px;
  color: var(--white);
  background: var(--ink);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured .project-topline {
  color: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.17);
}

.project-body {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) 1fr;
  gap: 42px;
  padding: 36px 0 28px;
}

.project-number {
  margin-bottom: 12px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
}

.featured .project-number {
  color: var(--gold);
}

.project-body h3 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.45rem);
}

.project-body > p {
  margin-bottom: 0;
  color: var(--muted);
}

.featured .project-body > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.project-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 22px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.project-results.compact {
  grid-template-columns: repeat(2, 1fr);
  border-color: var(--line);
}

.project-results span {
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.8rem;
}

.project-results.compact span {
  color: var(--muted);
}

.project-results strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
}

.project-results.compact strong {
  color: var(--ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
}

.tag-list span {
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(16, 42, 67, 0.05);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.featured .tag-list span {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.09);
}

.story-section {
  overflow: hidden;
}

.story-intro {
  max-width: 900px;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.story-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.education-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 40px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.education-card::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.education-mark {
  display: grid;
  width: 60px;
  height: 60px;
  color: var(--blue);
  background: var(--cream);
  border-radius: 50%;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.education-school {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.education-card h3 {
  margin-bottom: 12px;
}

.education-card p {
  margin-bottom: 10px;
}

.education-detail {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.skills-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.skills-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.skills-label {
  margin-bottom: 7px !important;
  color: var(--ink) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-deep);
}

.contact-section::after {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 500px;
  height: 500px;
  content: "";
  background: radial-gradient(circle, rgba(213, 167, 67, 0.25), transparent 67%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 930px;
  margin-inline: auto;
}

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

.contact-inner p:not(.eyebrow) {
  max-width: 670px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.15rem;
}

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

.text-link {
  padding: 12px 4px;
  font-weight: 700;
}

.light-link {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 85px;
  }

  .hero-panel {
    min-height: 390px;
  }

  .signal-orbit {
    top: 44%;
    width: 240px;
    height: 240px;
  }

  .orbit-one {
    width: 230px;
    height: 230px;
  }

  .orbit-two {
    width: 165px;
    height: 165px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip div {
    padding: 20px;
  }

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:first-child,
  .proof-strip div:last-child {
    padding: 20px;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 30px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12vw, 3.25rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
  }

  .section-block {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .site-header {
    width: calc(100% - 20px);
    min-height: 66px;
    padding: 0 16px;
    margin-top: 10px;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 8px;
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 85px;
    padding-bottom: 65px;
  }

  .hero-panel {
    min-height: 360px;
  }

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

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

  .proof-strip div,
  .proof-strip div:first-child,
  .proof-strip div:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .capability-grid,
  .project-grid,
  .skills-row {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 235px;
  }

  .card-index {
    margin-bottom: 50px;
  }

  .project-card,
  .project-card.featured {
    min-height: auto;
    padding: 24px;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .education-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .skills-row {
    gap: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@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;
  }
}
