:root {
  --accent: #174fa0;
  --black: #0a0a0a;
  --ink: #101010;
  --white: #ffffff;
  --gray: #a0a0a0;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 16px;
}

section,
footer {
  scroll-margin-top: 84px;
}

/* Navigation */

.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.site-nav.is-solid {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body.nav-open .site-nav {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--line);
}

.brand {
  position: relative;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--accent);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--accent);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

.hero.is-video-ready .hero-media video {
  opacity: 1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.04) 42%,
    rgba(0, 0, 0, 0.44) 100%
  );
}

.hero-meta {
  position: absolute;
  top: 96px;
  left: clamp(20px, 4vw, 48px);
  z-index: 3;
  display: flex;
  gap: 18px;
}

.meta-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero-greetings {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(128px, 15vh, 190px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.38;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 130px clamp(20px, 4vw, 48px) clamp(96px, 10vw, 158px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-kicker {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-description {
  max-width: 640px;
  margin: 36px 0 0;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, gap 0.3s ease;
}

.hero-link:hover {
  gap: 18px;
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  animation: scroll-drift 2.4s ease-in-out infinite;
}

.hero-scroll::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

@keyframes scroll-drift {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

/* Shared sections */

.section {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: clamp(96px, 12vw, 160px) clamp(20px, 4vw, 48px);
}

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

.work {
  padding-bottom: clamp(64px, 8vw, 110px);
}

.career {
  padding-top: clamp(64px, 8vw, 110px);
}

.section-inner {
  width: min(100%, 1400px);
  margin-inline: auto;
}

.section-head {
  max-width: 1200px;
}

.section-label {
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.section-title {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 110px);
}

.about-copy p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.about-copy p + p {
  margin-top: 24px;
}

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

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.stat-value {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  max-width: 170px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
  color: var(--gray);
}

/* Capabilities */

.capabilities {
  margin-top: clamp(80px, 10vw, 132px);
}

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

.capability-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s ease, background-color 0.35s ease;
}

.capability-row:hover {
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(23, 79, 160, 0.08), transparent 62%);
}

.capability-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.capability-name {
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.capability-desc {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
}

/* Work */

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.work-note {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.project-visual {
  position: relative;
  height: clamp(360px, 60vh, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.visual-inner {
  position: absolute;
  inset: -10% 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(23, 79, 160, 0.16), transparent 34%),
    linear-gradient(135deg, #151515 0%, #0a0a0a 72%);
  will-change: transform;
}

.visual-inner--support {
  background:
    radial-gradient(circle at 78% 22%, rgba(23, 79, 160, 0.16), transparent 36%),
    linear-gradient(135deg, #161616 0%, #090909 72%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black 0%, transparent 92%);
}

.visual-flow {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(-50%);
}

.visual-flow span {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
}

.flow-arrow {
  color: var(--accent);
  font-weight: 400;
}

.visual-chat {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.chat-bubble {
  max-width: 78%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.35;
}

.chat-bubble--question {
  justify-self: start;
  color: var(--gray);
}

.chat-bubble--answer {
  justify-self: end;
  border-color: rgba(23, 79, 160, 0.55);
  background: rgba(23, 79, 160, 0.1);
  color: var(--white);
}

.visual-tag {
  position: absolute;
  left: 24px;
  top: 12%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.visual-code {
  position: absolute;
  right: 24px;
  bottom: 12%;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.06);
}

.project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-index {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.project-name {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.project-description {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.project-link:hover {
  gap: 16px;
  border-color: var(--accent);
  color: var(--accent);
}

/* Career */

.career-list {
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.career-row {
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}

.career-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: start;
}

.career-company {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.8vw, 3.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.career-role {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.career-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.career-meta span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.career-bullets {
  display: grid;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.career-bullets li {
  position: relative;
  max-width: 960px;
  padding-left: 22px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.career-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.education {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.education-school {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.education-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Footer */

.site-footer {
  background: var(--accent);
  color: var(--white);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 48px) 28px;
}

.site-footer .section-label {
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  width: min(100%, 1400px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.footer-email {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 3.2vw, 2.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  transition: opacity 0.3s ease;
}

.footer-email:hover {
  opacity: 0.78;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.footer-links a,
.footer-links span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.3s ease;
}

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

.footer-bottom {
  width: min(100%, 1400px);
  margin: clamp(64px, 8vw, 96px) auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

/* Reveal defaults */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-stagger] > * {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Responsive */

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

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

  .project-visual {
    height: clamp(340px, 58vh, 620px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-width: 820px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-nav {
    padding-block: 14px;
  }

  .nav-toggle {
    position: relative;
    z-index: 110;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle-line {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    transition: transform 0.35s ease, opacity 0.3s ease;
  }

  body.nav-open .nav-toggle-line:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  body.nav-open .nav-toggle-line:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 24px 28px;
    background: var(--black);
    transform: translateY(-102%);
    visibility: hidden;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.5s;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    visibility: visible;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .nav-link {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
  }

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

  .hero-meta {
    top: 88px;
  }

  .hero-inner {
    padding-bottom: 120px;
  }

  .hero-greetings {
    display: none;
  }

  .work-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .capability-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .capability-desc {
    grid-column: 2;
  }

  .career-head {
    grid-template-columns: 1fr;
  }

  .career-meta {
    align-items: flex-start;
    text-align: left;
  }

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

  .education-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
    line-height: 0.84;
  }

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

  .hero-scroll {
    display: none;
  }

  .stat {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .stat-label {
    text-align: left;
  }

  .capability-row {
    padding-block: 28px;
  }

  .project-visual {
    height: 340px;
  }

  .visual-flow {
    flex-wrap: wrap;
  }

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

/* Reduced motion */

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

.reduce-motion [data-reveal],
.reduce-motion [data-stagger] > * {
  opacity: 1 !important;
  transform: none !important;
}
