:root {
  color-scheme: light;
  --font-sans: "Satoshi", "Geist", "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --portico-blue: #123d5f;
  --portico-blue-ink: #15527f;
  --portico-blue-deep: #071b2d;
  --portico-blue-soft: #e0edf6;
  --page-bg: #f3f3f3;
  --ink: #111311;
  --card: #e9e9e9;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 2px solid var(--portico-blue-ink);
  outline-offset: 4px;
}

.page {
  width: min(100%, 1260px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 22px clamp(18px, 3.5vw, 42px) 64px;
}

.site-header a {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.82fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
  margin-top: clamp(54px, 8vw, 92px);
}

.intro {
  max-width: 700px;
}

.intro h1 {
  margin: 0 0 18px;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 760;
}

.intro h1 span {
  color: var(--portico-blue-ink);
}

.intro p {
  max-width: 670px;
  margin: 0 0 20px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.intro a:not(.socials a) {
  text-decoration: underline;
  text-decoration-color: var(--portico-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.portrait {
  justify-self: center;
  margin: 0;
  width: min(38vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--portico-blue);
  box-shadow: inset 0 0 0 1px rgba(4, 16, 24, 0.08);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.projects {
  margin-top: clamp(56px, 8vw, 86px);
}

.projects h2,
.experience h2,
.contact h2 {
  margin: 0 0 26px;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 384px));
  gap: 32px;
}

.project-card {
  display: grid;
  min-height: 196px;
  padding: 22px 16px 18px;
  background: var(--card);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.project-card:hover {
  transform: translateY(-2px);
  background: var(--portico-blue-soft);
}

.project-card strong {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.project-card span {
  font-size: 17px;
  line-height: 1.38;
}

.project-card .project-link {
  align-self: end;
  margin-top: 28px;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--portico-blue-ink);
}

.experience {
  margin-top: clamp(58px, 8vw, 92px);
}

.timeline-range {
  display: flex;
  justify-content: space-between;
  width: min(100%, 920px);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(17, 19, 17, 0.48);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 1120px);
  margin: 0;
  padding: 34px 0 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--portico-blue), rgba(17, 19, 17, 0.14));
}

.timeline-item {
  min-width: 0;
}

.timeline-card {
  position: relative;
  min-height: 294px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(17, 19, 17, 0.16);
  outline: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.timeline-card:hover,
.timeline-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--portico-blue-ink);
}

.timeline-item.is-current .timeline-card {
  border-color: rgba(21, 82, 127, 0.56);
}

.timeline-dot {
  position: absolute;
  top: -29px;
  left: 0;
  width: 17px;
  height: 17px;
  border: 3px solid var(--page-bg);
  border-radius: 50%;
  background: var(--portico-blue-ink);
  box-shadow: 0 0 0 1px var(--portico-blue-ink);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.timeline-card:hover .timeline-dot,
.timeline-card:focus-visible .timeline-dot {
  transform: scale(1.35);
  background: var(--portico-blue);
}

.timeline-item.is-current .timeline-dot {
  top: -34px;
  left: -3px;
  width: 24px;
  height: 24px;
  background: var(--portico-blue);
  box-shadow: 0 0 0 1px var(--portico-blue), 0 0 0 7px rgba(21, 82, 127, 0.11);
}

.timeline-card time {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: var(--portico-blue-ink);
}

.timeline-card time strong {
  font-weight: 800;
}

.timeline-card h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.timeline-card .role {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.timeline-item.is-current time {
  color: var(--portico-blue-ink);
}

.timeline-item.is-current h3 {
  color: var(--portico-blue-deep);
}

.timeline-card p:last-child {
  margin: 0;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(17, 19, 17, 0.72);
}

.contact {
  margin-top: clamp(52px, 7vw, 84px);
  padding-top: clamp(30px, 5vw, 44px);
  border-top: 1px solid rgba(17, 19, 17, 0.16);
}

.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-details {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.contact-item svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: #151715;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.email-link {
  text-decoration: underline;
  text-decoration-color: rgba(17, 19, 17, 0.56);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-location {
  color: rgba(17, 19, 17, 0.9);
}

.socials {
  display: flex;
  gap: 12px;
  padding-top: 1px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #151715;
  color: var(--page-bg);
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

.socials a:hover {
  transform: translateY(-2px);
  background: var(--portico-blue);
  color: #ffffff;
}

.socials a:active,
.project-card:active {
  transform: translateY(1px);
}

.socials svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

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

@media (max-width: 820px) {
  .page {
    padding: 18px 18px 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .portrait {
    justify-self: start;
    width: min(68vw, 300px);
  }

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

  .timeline-range {
    display: none;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    padding: 0 0 0 28px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--portico-blue), rgba(17, 19, 17, 0.14));
  }

  .timeline-card {
    min-height: 0;
    padding-top: 0;
    border-top: 0;
  }

  .timeline-dot {
    top: 2px;
    left: -28px;
  }

  .timeline-item.is-current .timeline-dot {
    top: 0;
    left: -32px;
  }

  .timeline-card p:last-child {
    max-width: 60ch;
  }

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