:root {
  color-scheme: dark;
  --bg: #07090c;
  --bg-soft: #0b0f14;
  --surface: #0d1218;
  --surface-strong: #121922;
  --ink: #f3f0e8;
  --ink-soft: #d5d8dd;
  --muted: #939ca8;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --blue: #75a7ff;
  --gold: #d7aa70;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius: 1.35rem;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -8%, rgba(117, 167, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 12% 42%, rgba(215, 170, 112, 0.06), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,0.022) 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%);
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
::selection { color: #06101f; background: var(--blue); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-170%);
}

.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 12, 0.76);
  backdrop-filter: blur(20px);
}

.site-header.is-scrolled { border-color: var(--line); }

.nav {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.15rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
}

.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 2.1rem); }

.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 680;
  transition: color 180ms ease;
}

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

.language {
  padding: 0.35rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.hero {
  position: relative;
  min-height: calc(100svh - 4.8rem);
  padding: clamp(4.8rem, 10vw, 9rem) 0 3.5rem;
  display: grid;
  align-content: center;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 0;
  width: min(34vw, 26rem);
  height: 72%;
  border: 1px solid var(--line);
  border-bottom-color: transparent;
  content: "";
  opacity: 0.7;
  box-shadow: inset 0 0 80px rgba(117, 167, 255, 0.035);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: min(17vw, 13rem);
  width: 1px;
  height: 72%;
  background: var(--line);
  content: "";
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.35rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
.display {
  max-width: 1000px;
  margin-bottom: 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8.2vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.064em;
  line-height: 0.94;
}

.hero-intro {
  max-width: 770px;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.actions-spaced { margin-top: 2rem; }

.project-lorchestrateur { --project-accent: #75a7ff; }
.project-robotransfer { --project-accent: #78d6c6; }
.project-your-cfo { --project-accent: #d7aa70; }
.project-trading-intelligence { --project-accent: #c78cff; }
.project-evsolutions { --project-accent: #68c792; }

.button {
  min-height: 3.15rem;
  padding: 0.78rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.42); }
.button-primary { color: #06101f; border-color: var(--blue); background: var(--blue); }
.button-secondary { background: rgba(255, 255, 255, 0.025); }

.experience-strip {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 1.2rem;
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.experience-strip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-strip strong { max-width: 760px; color: var(--ink-soft); font-size: clamp(0.98rem, 2vw, 1.2rem); }

.section { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--line); }

.section-head {
  margin-bottom: clamp(2.3rem, 6vw, 4.7rem);
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 2rem;
  align-items: end;
}

.section-head h2,
.contact h2,
.project-detail h1,
.about-grid h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.9rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.01;
}

.section-head p { max-width: 630px; margin-bottom: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.project-card {
  position: relative;
  min-height: 31rem;
  padding: clamp(1.35rem, 3vw, 2.15rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.project-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--project-accent);
  content: "";
  opacity: 0.78;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--project-accent), transparent 56%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--project-accent), transparent 93%), rgba(255,255,255,0.024));
  box-shadow: var(--shadow);
}

.project-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }

.status,
.project-type,
.tag {
  width: fit-content;
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 760;
}

.project-code {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.project-monogram {
  width: 4rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-accent), transparent 42%);
  color: var(--project-accent);
  background: color-mix(in srgb, var(--project-accent), transparent 94%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.project-card-body { margin-top: auto; padding-top: 6rem; }
.project-type { margin-bottom: 1rem; color: var(--project-accent); }

.project-card h3 {
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.047em;
  line-height: 1;
}

.project-card p { max-width: 530px; margin-bottom: 1.3rem; color: var(--muted); }
.card-link { font-size: 0.82rem; font-weight: 800; }
.card-link::after { content: " ↗"; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }

.capability {
  min-height: 19rem;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
}

.capability .number { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.capability div { margin-top: auto; }
.capability h3 { margin-bottom: 0.6rem; font-size: 1.08rem; }
.capability p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.delivered-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 0.55fr 1fr auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.delivered-card h3 { margin-bottom: 0.35rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 3.1rem); font-weight: 500; }
.delivered-card p { margin-bottom: 0; color: var(--muted); }
.delivered-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.7rem; }

.about-grid { display: grid; grid-template-columns: 0.62fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.about-copy { color: var(--ink-soft); font-size: clamp(1.06rem, 2vw, 1.27rem); }
.about-note { margin-top: 2rem; padding-top: 1.2rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.88rem; }

.contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
  display: grid;
  grid-template-columns: 1fr 0.68fr;
  gap: 3rem;
  align-items: end;
  border-top: 1px solid var(--line);
}

.contact-copy p { color: var(--muted); }
.page-hero { padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem); }
.page-hero h1 { max-width: 1080px; }
.page-hero .hero-intro { max-width: 760px; }
.project-list { padding-bottom: clamp(5rem, 10vw, 9rem); }
.project-list + .project-list { padding-top: 0; }
.list-title { margin-bottom: 1.5rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

.project-detail { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.project-detail-head { display: grid; grid-template-columns: 1fr 0.3fr; gap: 3rem; align-items: start; }
.project-detail h1 { max-width: 850px; font-size: clamp(3.3rem, 8vw, 7rem); }
.project-detail .summary { max-width: 780px; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.detail-mark { width: min(100%, 12rem); margin-left: auto; aspect-ratio: 1; font-size: 2.2rem; }

.detail-grid {
  margin-top: clamp(4rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-block { min-height: 17rem; padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--bg-soft); }
.detail-wide { grid-column: 1 / -1; min-height: auto; }
.detail-block h2 { margin-bottom: 1.2rem; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; }
.detail-block p, .detail-block li { color: var(--ink-soft); font-size: 0.98rem; }
.detail-block ul { margin: 0; padding-left: 1.15rem; }
.detail-block li + li { margin-top: 0.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.project-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.project-footer-nav { padding: 2rem 0 7rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.project-footer-nav a { font-weight: 780; }

.site-footer { padding: 1.6rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.footer-row { display: flex; justify-content: space-between; gap: 2rem; }
.social-links { display: flex; gap: 1.2rem; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 600ms ease, transform 600ms ease; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue), transparent 36%); outline-offset: 4px; }

@media (max-width: 880px) {
  .nav-links a:not(.language) { display: none; }
  .hero::after, .hero::before { opacity: 0.35; }
  .experience-strip, .section-head, .about-grid, .contact, .project-detail-head, .delivered-card { grid-template-columns: 1fr; }
  .project-grid, .detail-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { min-height: 14rem; }
  .detail-mark { display: none; }
  .delivered-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 1.5rem), var(--max)); }
  .brand-label { display: none; }
  .hero { min-height: auto; }
  h1, .display { font-size: clamp(2.8rem, 15vw, 5rem); }
  .project-card { min-height: 27rem; }
  .footer-row, .project-footer-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
