:root {
  --paper: #f4f8fb;
  --paper-deep: #e7eef4;
  --ink: #08233a;
  --muted: #526b7d;
  --rule: #bfd0dc;
  --blue: #1769e0;
  --blue-dark: #0b4ca8;
  --aqua: #20b8b0;
  --white: #ffffff;
  --content: 1180px;
  --reading: 720px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(8, 35, 58, 0.035) 50%, transparent 50.1%) 0 0 / 80px 80px,
    linear-gradient(rgba(8, 35, 58, 0.035) 0 1px, transparent 1px) 0 0 / 80px 80px,
    var(--paper);
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--header);
  border-bottom: 1px solid rgba(8, 35, 58, 0.15);
  background: rgba(244, 248, 251, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--blue);
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-4deg);
}

.header-actions {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.language-switcher {
  display: flex;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.language-switcher a {
  padding: 8px 2px;
  text-decoration: none;
  text-underline-offset: 5px;
}

.language-switcher a:hover {
  color: var(--ink);
}

.language-switcher a[aria-current="true"] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header));
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: clamp(72px, 11vh, 132px) 0 80px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "Arial Narrow", "Segoe UI Variable", sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  font-stretch: condensed;
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-copy > p {
  max-width: 64ch;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.hero-meta {
  display: flex;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.career-coordinate {
  position: relative;
  min-height: 460px;
  border-left: 2px solid var(--blue);
}

.career-coordinate::before,
.career-coordinate::after {
  position: absolute;
  left: -8px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.career-coordinate::before {
  top: 0;
}

.career-coordinate::after {
  bottom: 0;
  background: var(--blue);
}

.coordinate-start,
.coordinate-now {
  position: absolute;
  left: 28px;
}

.coordinate-start {
  top: -16px;
}

.coordinate-now {
  bottom: -14px;
}

.coordinate-year {
  display: block;
  color: var(--blue);
  font-family: "Arial Narrow", "Segoe UI Variable", sans-serif;
  font-size: clamp(3.3rem, 6vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.coordinate-note {
  display: block;
  max-width: 20ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: clamp(88px, 12vw, 160px) 0;
  border-top: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(48px, 8vw, 88px);
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 48px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Arial Narrow", "Segoe UI Variable", sans-serif;
  font-size: clamp(2.7rem, 5.5vw, 5.4rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.section-heading p {
  max-width: var(--reading);
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.metrics-grid {
  display: grid;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  min-width: 0;
  padding: 34px 24px 30px;
  border-right: 1px solid var(--rule);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.metric-value {
  display: block;
  color: var(--blue);
  font-family: "Arial Narrow", "Segoe UI Variable", sans-serif;
  font-size: clamp(2.9rem, 5.3vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  transform-origin: 50% 60%;
  will-change: transform;
}

.metric-label {
  display: block;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 750;
}

.metric p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.timeline {
  position: relative;
  margin-left: clamp(0px, 8vw, 110px);
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 14px;
  left: 112px;
  width: 1px;
  background: var(--rule);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  min-height: 160px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.timeline-item::before {
  position: absolute;
  top: 12px;
  left: 106px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.timeline-marker {
  padding-right: 30px;
  color: var(--blue);
  font-weight: 800;
}

.timeline-body {
  max-width: 700px;
  padding: 0 0 56px 54px;
}

.timeline-body h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.timeline-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
}

.work-list {
  border-top: 2px solid var(--ink);
}

.work-item {
  display: grid;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 48px;
  transition: padding 180ms ease, background-color 180ms ease;
}

.work-item:hover {
  padding-right: 20px;
  padding-left: 20px;
  background: rgba(255, 255, 255, 0.55);
}

.work-item h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.work-item-content > :first-child {
  margin-top: 0;
}

.work-item-content > :last-child {
  margin-bottom: 0;
}

.work-item-content strong {
  color: var(--blue-dark);
  font-size: 0.9rem;
}

.work-item-content p {
  color: var(--muted);
}

.contact-section {
  width: 100%;
  padding: clamp(90px, 13vw, 170px) max(20px, calc((100vw - var(--content)) / 2));
  color: var(--white);
  background: var(--ink);
}

.contact-copy {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 130px);
}

.contact-copy p {
  max-width: 620px;
  margin-top: 0;
  color: #b9cbd8;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  padding: 10px 16px;
  border: 1px solid #547087;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-links a:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 26px max(20px, calc((100vw - var(--content)) / 2));
  color: #b9cbd8;
  background: #061a2b;
  font-size: 13px;
}

.hero-copy > *,
.career-coordinate {
  animation: hero-in 700ms both;
}

.hero-copy > :nth-child(2) { animation-delay: 90ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.career-coordinate { animation-delay: 220ms; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .career-coordinate {
    min-height: 180px;
    border-top: 2px solid var(--blue);
    border-left: 0;
  }

  .career-coordinate::before,
  .career-coordinate::after {
    top: -8px;
    left: auto;
  }

  .career-coordinate::before { left: 0; }
  .career-coordinate::after { right: 0; }

  .coordinate-start,
  .coordinate-now {
    top: 28px;
    bottom: auto;
    left: 0;
  }

  .coordinate-now {
    right: 0;
    left: auto;
    text-align: right;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .metric:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
    padding: 8px 0 8px 8px;
    font-size: 14px;
  }

  .header-actions {
    gap: 14px;
  }

  .language-switcher {
    padding-left: 0;
    border-left: 0;
  }

  .site-nav {
    position: absolute;
    top: var(--header);
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .hero,
  .section {
    width: min(calc(100% - 32px), var(--content));
  }

  .hero {
    padding-top: 64px;
  }

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

  .hero-meta,
  .section-heading,
  .work-item,
  .contact-copy {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    display: grid;
    gap: 5px;
  }

  .section-heading,
  .work-item,
  .contact-copy {
    gap: 24px;
  }

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

  .metric,
  .metric:first-child,
  .metric:nth-child(3) {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline::before {
    left: 70px;
  }

  .timeline-item {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .timeline-item::before {
    left: 65px;
  }

  .timeline-marker {
    font-size: 13px;
  }

  .timeline-body {
    padding-left: 30px;
  }

  .site-footer {
    gap: 12px;
    flex-direction: column;
  }
}

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

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