:root {
  color-scheme: light;
  --ink: #15191f;
  --muted: #627084;
  --line: #d9e0e8;
  --surface: #f6f8fb;
  --panel: #ffffff;
  --accent: #0d766e;
  --accent-strong: #075f5a;
  --gold: #b58a2a;
  --blue: #315c99;
  --shadow: 0 18px 50px rgba(21, 25, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--surface);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 7vw;
  border-bottom: 1px solid rgba(217, 224, 232, 0.82);
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover,
.project-body a:hover,
.contact-links a:hover {
  color: var(--accent);
}

main {
  overflow: hidden;
}

.hero,
.section {
  width: min(1120px, 86vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

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

.button.secondary {
  background: var(--panel);
}

.profile-panel,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-panel {
  overflow: hidden;
}

.profile-visual {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 118, 110, 0.92), rgba(49, 92, 153, 0.85)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 34px);
}

.profile-visual strong {
  font-size: clamp(4.5rem, 12vw, 8.5rem);
  line-height: 1;
}

.profile-visual span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-facts {
  margin: 0;
  padding: 22px;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.quick-facts div:first-child {
  border-top: 0;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quick-facts dd {
  margin: 0;
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.project-card {
  overflow: hidden;
}

.project-thumb {
  min-height: 150px;
  border-bottom: 1px solid var(--line);
}

.project-thumb.ml-trading {
  background:
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(255, 255, 255, 0.18) 20px 21px),
    linear-gradient(135deg, rgba(21, 25, 31, 0.18) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.28) 12%, transparent 12% 24%, rgba(255, 255, 255, 0.18) 24% 36%, transparent 36%),
    linear-gradient(135deg, #0d766e, #315c99 58%, #b58a2a);
  background-size: auto, 22px 22px, auto, auto;
}

.project-thumb.portfolio-optimisation {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 12%, transparent 12% 22%, rgba(255, 255, 255, 0.22) 22% 32%, transparent 32%),
    linear-gradient(135deg, #243241, #315c99 54%, #0d766e);
}

.project-thumb.game-of-life {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, #15191f, #315c99);
}

.project-thumb.hazard-detector {
  background:
    radial-gradient(circle at 26% 32%, rgba(255, 255, 255, 0.55) 0 8%, transparent 9%),
    radial-gradient(circle at 68% 62%, rgba(255, 255, 255, 0.32) 0 12%, transparent 13%),
    linear-gradient(135deg, #b58a2a, #0d766e 62%, #243241);
}

.project-thumb.adaptive-vr,
.project-thumb.daptive-vr {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.38) 0 18%, transparent 19%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.28) 0 14%, transparent 14% 34%, rgba(255, 255, 255, 0.18) 34% 48%, transparent 48%),
    linear-gradient(135deg, #315c99, #0d766e 58%, #243241);
}

.project-thumb.robot-arm {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.62) 0 9%, transparent 10%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.28) 0 16%, transparent 16% 34%, rgba(255, 255, 255, 0.18) 34% 46%, transparent 46%),
    linear-gradient(135deg, #243241, #0d766e 58%, #b58a2a);
}

.project-thumb.ai-travel {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.48) 0 10%, transparent 11%),
    linear-gradient(135deg, #315c99, #0d766e 68%, #b58a2a);
}

.project-thumb.blackswan {
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.3) 0 7%, transparent 8%),
    radial-gradient(circle at 30% 64%, rgba(181, 138, 42, 0.46) 0 13%, transparent 14%),
    linear-gradient(135deg, #15191f, #243241 58%, #0d766e);
}

.project-thumb.ionq {
  background:
    radial-gradient(circle at 36% 42%, rgba(255, 255, 255, 0.46) 0 8%, transparent 9%),
    radial-gradient(circle at 68% 32%, rgba(255, 255, 255, 0.3) 0 6%, transparent 7%),
    linear-gradient(135deg, #315c99, #243241 58%, #0d766e);
}

.project-body {
  padding: 22px;
}

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

.project-body a,
.muted-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.project-body a {
  color: var(--accent-strong);
}

.muted-link {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  background: var(--surface);
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 56px;
  align-items: start;
}

.body-copy {
  font-size: 1.04rem;
}

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

.skill-columns div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.time {
  color: var(--gold);
  font-weight: 900;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 110px;
}

.contact-links {
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  min-width: 92px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  background: var(--panel);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

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

  .contact-section {
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero,
  .section {
    width: min(100% - 32px, 1120px);
  }

  h1 {
    font-size: 2.55rem;
  }

  .skill-columns,
  .timeline li,
  .quick-facts div {
    grid-template-columns: 1fr;
  }

  .timeline li {
    gap: 8px;
  }
}
