:root {
  color-scheme: dark;
  --bg: #030407;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.68);
  --soft: rgba(246, 247, 251, 0.46);
  --cyan: #3de8ff;
  --fuchsia: #f45bd8;
  --orange: #ff9d45;
  --green: #49f1a7;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(61, 232, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 2%, rgba(244, 91, 216, 0.19), transparent 30rem),
    radial-gradient(circle at 66% 58%, rgba(255, 157, 69, 0.13), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(3, 4, 7, 0.68);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  padding-right: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--fuchsia) 55%, var(--orange));
  color: #050507;
  font-size: 0.8rem;
}

.nav {
  gap: 4px;
}

.nav a {
  min-height: 42px;
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.section-pad {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
  padding: 112px 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  align-items: center;
  gap: 48px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  padding-top: 154px;
}

.hero-bg {
  position: absolute;
  inset: 5% -18% 0 38%;
  z-index: -1;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, rgba(61, 232, 255, 0.18), rgba(244, 91, 216, 0.2), rgba(255, 157, 69, 0.18), rgba(61, 232, 255, 0.18));
  filter: blur(38px);
  animation: drift 12s ease-in-out infinite alternate;
}

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

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

h1 {
  max-width: 930px;
  margin-bottom: 28px;
  font-size: 7.4rem;
  line-height: 0.91;
  letter-spacing: 0;
}

h1,
.section-heading h2,
.meta-panel h2,
.footer h2 {
  background: linear-gradient(110deg, #fff 12%, #d8f7ff 42%, #ffc7f3 66%, #ffcf99 92%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  max-width: 740px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.28rem;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: #fff;
  color: #050507;
}

.button.ghost {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.signal-panel,
.glass-card,
.project-card,
.meta-panel,
.timeline,
.footer {
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.035));
  box-shadow: 0 26px 96px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.signal-panel {
  position: relative;
  padding: 32px;
  border-radius: 28px;
}

.signal-panel::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(61, 232, 255, 0.42), transparent 34%, rgba(244, 91, 216, 0.34) 72%, rgba(255, 157, 69, 0.38));
  opacity: 0.65;
}

.panel-kicker {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-panel h2 {
  margin-bottom: 26px;
  font-size: 3rem;
  line-height: 1.02;
}

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

.metrics div {
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.28);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.15rem;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.wide {
  max-width: 960px;
}

.section-heading h2,
.meta-panel h2 {
  margin-bottom: 0;
  font-size: 4.35rem;
  line-height: 0.98;
}

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

.glass-card {
  min-height: 294px;
  padding: 24px;
  border-radius: 24px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 232, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.icon-chip {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61, 232, 255, 0.24), rgba(244, 91, 216, 0.22));
  color: #eaffff;
  font-weight: 900;
}

.glass-card h3,
.project-content h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.glass-card p,
.meta-panel p,
.footer p {
  color: var(--muted);
}

.project-stack {
  display: grid;
  gap: 22px;
}

.project-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 424px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  border-radius: 28px;
}

.project-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  transition: opacity 240ms ease;
}

.project-card:hover::before {
  opacity: 0.46;
}

.project-media {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.22), transparent 13rem);
}

.project-media span {
  font-size: 8rem;
  font-weight: 950;
  letter-spacing: 0;
  opacity: 0.92;
}

.image-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.02);
  transition: transform 500ms ease, filter 500ms ease;
}

.image-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 46%, rgba(3, 4, 7, 0.68)), linear-gradient(0deg, rgba(3, 4, 7, 0.5), transparent 48%);
}

.project-card:hover .image-media img {
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.07);
}

.project-content {
  position: relative;
  padding: 46px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-meta span,
.highlight-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.project-content h3 {
  font-size: 3.25rem;
}

.impact {
  margin-bottom: 24px;
  color: #bdf7ff;
  font-size: 1.05rem;
  font-weight: 800;
}

ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 900;
}

.text-link::after {
  margin-left: 8px;
  content: "->";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.runescape::before { background: linear-gradient(110deg, rgba(255, 157, 69, 0.42), rgba(244, 91, 216, 0.18)); }
.chronicle::before { background: linear-gradient(110deg, rgba(157, 91, 255, 0.42), rgba(244, 91, 216, 0.18)); }
.korix::before { background: linear-gradient(110deg, rgba(61, 232, 255, 0.34), rgba(82, 108, 255, 0.22)); }
.conflict::before { background: linear-gradient(110deg, rgba(255, 190, 69, 0.38), rgba(255, 95, 69, 0.18)); }
.bodycount::before { background: linear-gradient(110deg, rgba(255, 73, 73, 0.36), rgba(255, 157, 69, 0.2)); }
.france::before { background: linear-gradient(110deg, rgba(73, 241, 167, 0.28), rgba(61, 232, 255, 0.2)); }
.fundamental::before { background: linear-gradient(110deg, rgba(61, 232, 255, 0.34), rgba(55, 126, 255, 0.22)); }
.unity::before { background: linear-gradient(110deg, rgba(214, 221, 232, 0.22), rgba(112, 121, 138, 0.2)); }
.natgeo::before { background: linear-gradient(110deg, rgba(255, 221, 68, 0.34), rgba(73, 241, 167, 0.18)); }

.meta-panel {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  padding: 64px;
  border-radius: 32px;
}

.meta-panel p {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.12rem;
}

.more-work {
  padding-top: 0;
}

.more-work-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(61, 232, 255, 0.12), rgba(244, 91, 216, 0.1), rgba(255, 157, 69, 0.1));
  box-shadow: 0 26px 96px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
}

.more-work-panel h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 2.25rem;
  line-height: 1.06;
}

.more-work-panel p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
}

.highlight-list {
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 12px 28px;
  border-radius: 28px;
}

.timeline div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.timeline span {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--fuchsia));
  box-shadow: 0 0 30px rgba(61, 232, 255, 0.4);
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 1.24rem;
}

.footer {
  display: flex;
  width: min(calc(100% - 36px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 36px auto;
  padding: 34px;
  border-radius: 28px;
}

.footer h2 {
  margin-bottom: 6px;
  font-size: 3.7rem;
  line-height: 1;
}

.footer-email {
  display: inline-flex;
  margin-top: 10px;
  color: #bdf7ff;
  font-weight: 800;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: #fff;
}

.software-hero {
  min-height: 86vh;
}

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

.software-card {
  min-height: 480px;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.035));
  box-shadow: 0 26px 96px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

.software-card-accent {
  background: linear-gradient(145deg, rgba(61, 232, 255, 0.15), rgba(244, 91, 216, 0.09), rgba(255, 255, 255, 0.05));
}

.software-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.software-card-head span,
.software-card-head strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
}

.software-card h3 {
  margin-bottom: 14px;
  font-size: 2.1rem;
  line-height: 1.08;
}

.software-card p {
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(-5%, 4%, 0) rotate(16deg) scale(1.05);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 24px;
  }

  .nav {
    display: none;
  }

  .hero,
  .meta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 5.4rem;
  }

  .section-heading h2,
  .meta-panel h2 {
    font-size: 3.45rem;
  }

  .signal-panel h2 {
    font-size: 2.6rem;
  }

  .project-content h3 {
    font-size: 2.75rem;
  }

  .signal-panel {
    max-width: 640px;
  }

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

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

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

  .more-work-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .project-media {
    min-height: 280px;
  }

  .image-media::after {
    background: linear-gradient(0deg, rgba(3, 4, 7, 0.74), transparent 64%);
  }
}

@media (max-width: 640px) {
  .section-pad {
    width: min(calc(100% - 28px), var(--max));
    padding: 78px 0;
  }

  .hero {
    padding-top: 128px;
  }

  h1 {
    font-size: 3.65rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .section-heading h2,
  .meta-panel h2,
  .footer h2 {
    font-size: 2.45rem;
  }

  .signal-panel h2,
  .project-content h3 {
    font-size: 2.1rem;
  }

  .project-media span {
    font-size: 4.5rem;
  }

  .timeline p {
    font-size: 1.05rem;
  }

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

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

  .glass-card {
    min-height: auto;
  }

  .project-card {
    min-height: auto;
    border-radius: 22px;
  }

  .project-media {
    min-height: 220px;
  }

  .project-content {
    padding: 24px;
  }

  .more-work-panel,
  .software-card {
    border-radius: 22px;
    padding: 24px;
  }

  .more-work-panel h2,
  .software-card h3 {
    font-size: 1.85rem;
  }

  .software-card {
    min-height: auto;
  }

  .software-card-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .meta-panel,
  .footer,
  .signal-panel {
    border-radius: 22px;
  }

  .footer {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .meta-panel {
    padding: 28px;
  }
}
