:root {
  color-scheme: dark;
  --bg: #070908;
  --surface: #101410;
  --surface-soft: #171d17;
  --text: #f4f7ef;
  --muted: #a7b2a3;
  --line: rgba(244, 247, 239, 0.12);
  --accent: #b7ff5a;
  --accent-strong: #d7ff8b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 6%, rgba(183, 255, 90, 0.16), transparent 34rem),
    radial-gradient(circle at 12% 72%, rgba(87, 117, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, #070908 0%, #0c100c 46%, #050706 100%);
  overflow-x: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

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

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

.nav-shell {
  position: sticky;
  top: 18px;
  z-index: 10;
  width: min(1120px, calc(100% - 32px));
  height: 66px;
  margin: 18px auto 0;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 9, 8, 0.78);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
}

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

.brand {
  gap: 12px;
  padding-right: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #0b0f0b;
  background: var(--accent);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.56), 0 10px 32px rgba(183, 255, 90, 0.18);
}

.nav-shell nav {
  gap: 4px;
}

.nav-shell nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: color 500ms var(--ease), background 500ms var(--ease), transform 500ms var(--ease);
}

.nav-shell nav a img,
.icon-link img,
.repo-row img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.nav-shell nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100dvh - 92px);
  padding: 86px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: 44px;
  align-items: center;
}

.kicker,
.project-topline span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(183, 255, 90, 0.2);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(183, 255, 90, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 8.2vw, 7.7rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.55;
}

.actions,
.link-row,
.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 520ms var(--ease), background 520ms var(--ease), color 520ms var(--ease), border-color 520ms var(--ease);
}

.button:active,
.link-row a:active,
.node:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  color: #071006;
  background: var(--accent);
  box-shadow: 0 20px 56px rgba(183, 255, 90, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

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

.button-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: inherit;
  background: rgba(7, 9, 8, 0.12);
  transition: transform 520ms var(--ease), background 520ms var(--ease);
}

.button:hover .button-icon {
  transform: translate(2px, -1px) scale(1.04);
  background: rgba(7, 9, 8, 0.18);
}

.constellation-shell {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.constellation-card {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 33px;
  background:
    radial-gradient(circle at 50% 48%, rgba(183, 255, 90, 0.18), transparent 10rem),
    radial-gradient(circle at 16% 14%, rgba(166, 108, 255, 0.14), transparent 12rem),
    radial-gradient(circle at 88% 82%, rgba(80, 107, 255, 0.11), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018)),
    #0b100c;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
}

.constellation-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  pointer-events: none;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    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: 84px 84px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(244, 247, 239, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 75%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 48%;
  aspect-ratio: 1;
  border-color: rgba(183, 255, 90, 0.22);
}

.signal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(183, 255, 90, 0.26);
  border-radius: 999px;
  color: rgba(244, 247, 239, 0.86);
  background:
    radial-gradient(circle at 50% 35%, rgba(183, 255, 90, 0.18), transparent 58%),
    rgba(7, 9, 8, 0.48);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.13), 0 22px 70px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.signal-core span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal-core strong {
  margin: -8px 0;
  color: var(--accent);
  font-size: 4.6rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 206px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 9, 8, 0.78);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.11);
  transition: transform 680ms var(--ease), border-color 680ms var(--ease), background 680ms var(--ease), box-shadow 680ms var(--ease);
}

.node:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.015);
  border-color: rgba(183, 255, 90, 0.48);
  background:
    linear-gradient(145deg, rgba(183, 255, 90, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(12, 17, 12, 0.95);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46), inset 0 1px 1px rgba(255, 255, 255, 0.13);
}

.node img {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 17px;
}

.node span {
  align-self: end;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.node small {
  align-self: start;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.node-flow {
  left: 8%;
  top: 9%;
  width: 232px;
  min-height: 126px;
  border-color: rgba(183, 255, 90, 0.4);
  transform: rotate(-3deg);
}

.node-transcribe {
  right: 6%;
  top: 12%;
  transform: rotate(2deg);
}

.node-ficelle {
  right: 9%;
  top: 43%;
  transform: rotate(-2deg);
}

.node-hermes {
  left: 9%;
  bottom: 11%;
  width: 232px;
  transform: rotate(2deg);
}

.node-metrillm {
  right: 8%;
  bottom: 8%;
  transform: rotate(-2deg);
}

.manifesto {
  padding: 36px 0 88px;
}

.manifesto p {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3.6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.048em;
}

.projects {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 0 96px;
}

.project-card {
  grid-column: span 3;
  min-height: 420px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.3);
}

.project-card > * {
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 0;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.project-card > .project-topline,
.project-card > h2,
.project-card > p,
.project-card > .link-row {
  position: relative;
  z-index: 1;
}

.project-card {
  padding: 32px;
}

.project-large {
  grid-column: span 4;
  min-height: 470px;
}

.project-dark {
  grid-column: span 2;
  background:
    radial-gradient(circle at 74% 18%, rgba(183, 255, 90, 0.16), transparent 14rem),
    rgba(255, 255, 255, 0.055);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 48px;
}

.project-topline > img,
.project-icon-stack img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
}

.project-icon-stack {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(7, 9, 8, 0.34);
}

.project-icon-stack img {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.project-card h2,
.notes h2 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 4.45vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.project-large h2 {
  max-width: 790px;
  font-size: clamp(2.35rem, 4.35vw, 5rem);
}

.project-card p {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
}

.link-row a,
.link-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(7, 9, 8, 0.38);
  font-size: 13px;
  font-weight: 800;
  transition: transform 520ms var(--ease), border-color 520ms var(--ease), background 520ms var(--ease);
}

.link-row a:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 255, 90, 0.4);
  background: rgba(183, 255, 90, 0.08);
}

.muted-row span {
  color: var(--muted);
}

.repos {
  padding: 6px 0 94px;
}

.repos h2 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

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

.repo-row a,
.repo-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: transform 520ms var(--ease), border-color 520ms var(--ease), background 520ms var(--ease);
}

.repo-row a:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 255, 90, 0.38);
  background: rgba(183, 255, 90, 0.08);
}

.repo-soon {
  color: var(--muted);
}

.notes {
  padding: 28px 0 118px;
}

.notes h2 {
  max-width: 720px;
}

.note-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 28px;
}

.note-grid p {
  min-height: 150px;
  margin: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.note-grid p:nth-child(2),
.note-grid p:nth-child(3) {
  background: rgba(183, 255, 90, 0.08);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a:hover {
  color: var(--accent);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise-in 840ms var(--ease) both;
  }

  .projects .reveal:nth-child(2) {
    animation-delay: 90ms;
  }

  .projects .reveal:nth-child(3) {
    animation-delay: 160ms;
  }

  .projects .reveal:nth-child(4) {
    animation-delay: 230ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    width: min(100% - 24px, 720px);
  }

  .brand span:last-child {
    display: none;
  }

  .nav-shell nav a {
    padding: 12px 11px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 54px;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .constellation-card {
    min-height: 640px;
  }

  .projects,
  .note-grid,
  .repo-row {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-large,
  .project-dark {
    grid-column: span 1;
    min-height: auto;
  }

  .project-topline {
    margin-bottom: 34px;
  }

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

@media (max-width: 560px) {
  .section,
  .footer {
    width: calc(100% - 24px);
  }

  .nav-shell {
    top: 10px;
    height: 58px;
    margin-top: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .nav-shell nav a {
    font-size: 12px;
    padding: 10px 8px;
  }

  .hero {
    padding-top: 46px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: space-between;
  }

  .constellation-shell {
    border-radius: 28px;
  }

  .constellation-card {
    min-height: auto;
    padding: 22px;
    border-radius: 22px;
    display: grid;
    gap: 12px;
  }

  .map-grid,
  .orbit,
  .signal-core {
    display: none;
  }

  .node {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-height: 96px;
    grid-template-columns: 54px minmax(0, 1fr);
    transform: none;
  }

  .node:hover {
    transform: translateY(-4px);
  }

  .node img {
    width: 54px;
    height: 54px;
  }

  .node span {
    font-size: 13px;
  }

  .node-flow,
  .node-hermes {
    width: 100%;
  }

  .manifesto {
    padding-bottom: 62px;
  }

  .projects,
  .notes {
    padding-bottom: 72px;
  }

  .project-card {
    padding: 24px;
    border-radius: 28px;
  }

  .project-card::after {
    border-radius: 22px;
  }
}
