:root {
  color-scheme: light;
  --bg: #b9d8ff;
  --bg-deep: #78aee8;
  --panel: rgba(250, 253, 250, 0.66);
  --panel-strong: rgba(255, 252, 244, 0.84);
  --line: rgba(31, 72, 86, 0.13);
  --line-strong: rgba(58, 143, 122, 0.34);
  --text: #17332d;
  --muted: #526a78;
  --soft: #36596b;
  --cyan: #4f85c8;
  --mint: #3f89b8;
  --amber: #d4a64a;
  --rose: #6fa9c9;
  --accent-hover: #34729d;
  --accent-soft: #dcecf6;
  --project-nortra: #3f89b8;
  --project-norracle: #5f86c7;
  --project-petitpont: #d4a64a;
  --project-norram: #4a72d9;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 80px rgba(44, 79, 96, 0.18);
  --shadow-soft: 0 16px 45px rgba(44, 79, 96, 0.12);
  --space: clamp(1rem, 2vw, 1.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --max-width: 1180px;
  --header-height: 76px;
  --body-bg:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(74, 136, 204, 0.34), transparent 30rem),
    radial-gradient(circle at 78% 78%, rgba(98, 164, 202, 0.16), transparent 32rem),
    linear-gradient(145deg, #e4f2ff, var(--bg) 42%, var(--bg-deep));
  --grid-line: rgba(31, 72, 86, 0.045);
  --grid-mask: linear-gradient(to bottom, rgba(32, 67, 59, 0.46), transparent 82%);
  --header-bg: rgba(232, 243, 255, 0.78);
  --header-bg-scrolled: rgba(232, 243, 255, 0.92);
  --surface-bg: linear-gradient(155deg, rgba(250, 253, 255, 0.96), rgba(226, 239, 248, 0.9));
  --surface-bg-alt: linear-gradient(160deg, rgba(250, 253, 255, 0.96), rgba(229, 241, 249, 0.9));
  --button-soft-bg: rgba(251, 253, 248, 0.62);
  --floating-control-bg: rgba(251, 253, 248, 0.68);
  --menu-bg: rgba(232, 243, 255, 0.95);
  --body-on-accent: rgba(255, 255, 255, 0.92);
  --badge-bg: rgba(255, 255, 250, 0.78);
  --badge-text: #2f5368;
  --pipeline-dot-bg: rgba(216, 238, 231, 0.72);
  --pipeline-dot-text: var(--mint);
  --pipeline-dot-border: rgba(58, 143, 122, 0.22);
  --screenshot-bg:
    linear-gradient(135deg, rgba(216, 238, 231, 0.58), rgba(246, 250, 241, 0.48)),
    rgba(251, 253, 248, 0.62);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #142632;
  --bg-deep: #071018;
  --panel: rgba(18, 32, 42, 0.72);
  --panel-strong: rgba(23, 39, 50, 0.88);
  --line: rgba(167, 206, 226, 0.18);
  --line-strong: rgba(109, 186, 219, 0.42);
  --text: #eff8fb;
  --muted: #c6d6de;
  --soft: #d2e2e8;
  --cyan: #79b9f4;
  --mint: #67c6e6;
  --amber: #f1c96b;
  --rose: #85c7e5;
  --accent-hover: #8bd4ef;
  --accent-soft: rgba(103, 198, 230, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.25);
  --body-bg:
    radial-gradient(circle at 12% 12%, rgba(103, 198, 230, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(95, 134, 199, 0.22), transparent 30rem),
    radial-gradient(circle at 78% 78%, rgba(241, 201, 107, 0.08), transparent 32rem),
    linear-gradient(145deg, #172d3a, var(--bg) 42%, var(--bg-deep));
  --grid-line: rgba(210, 230, 238, 0.06);
  --grid-mask: linear-gradient(to bottom, rgba(210, 230, 238, 0.32), transparent 82%);
  --header-bg: rgba(9, 18, 25, 0.78);
  --header-bg-scrolled: rgba(9, 18, 25, 0.92);
  --surface-bg: linear-gradient(155deg, rgba(24, 42, 53, 0.98), rgba(13, 27, 38, 0.94));
  --surface-bg-alt: linear-gradient(160deg, rgba(26, 46, 58, 0.98), rgba(13, 27, 38, 0.95));
  --button-soft-bg: rgba(18, 34, 45, 0.78);
  --floating-control-bg: rgba(18, 34, 45, 0.86);
  --menu-bg: rgba(9, 18, 25, 0.95);
  --body-on-accent: rgba(239, 248, 251, 0.94);
  --badge-bg: rgba(19, 37, 49, 0.84);
  --badge-text: #d7edf5;
  --pipeline-dot-bg: rgba(47, 119, 145, 0.92);
  --pipeline-dot-text: #f3fbff;
  --pipeline-dot-border: rgba(128, 211, 237, 0.38);
  --screenshot-bg:
    linear-gradient(135deg, rgba(31, 66, 78, 0.62), rgba(18, 34, 45, 0.5)),
    rgba(12, 24, 34, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--body-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: var(--grid-mask);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: #ffffff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--header-bg-scrolled);
  box-shadow: 0 12px 40px rgba(54, 82, 73, 0.12);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 2rem, var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
}

.site-brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 30%;
  object-fit: contain;
}

.site-brand-name {
  font-size: 0.98rem;
}

.nav-panel {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(63, 137, 184, 0.12);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--floating-control-bg);
  color: var(--text);
  cursor: pointer;
}

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.5rem;
}

.theme-toggle {
  min-width: 76px;
  min-height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--floating-control-bg);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: var(--section) 0;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: clamp(3rem, 8vw, 6rem);
}

.section-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow,
.section-kicker,
.project-category {
  margin: 0 0 0.8rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.hero-subtitle,
.section-heading p,
.project-body p,
.timeline p,
.contact-copy > p,
.method-card p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--text);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

html[data-theme="dark"] .hero-subtitle {
  color: var(--body-on-accent);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  padding: 0.82rem 1.1rem;
  border: 1px solid var(--line);
  font-weight: 750;
}

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

.button-primary {
  border-color: rgba(63, 137, 184, 0.36);
  background: linear-gradient(135deg, #3f89b8, #74add4);
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(63, 137, 184, 0.22);
}

.button-secondary {
  background: var(--button-soft-bg);
  color: var(--text);
}

.system-card,
.project-card,
.method-card,
.skill-card,
.timeline,
.journey-flow article,
.value-grid p,
.contact-card,
.modal {
  border: 1px solid rgba(63, 137, 184, 0.18);
  background: var(--surface-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.project-card {
  border-color: rgba(31, 72, 86, 0.18);
  background: var(--surface-bg-alt);
}

.system-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border-radius: var(--radius-lg);
}

.system-card::before,
.project-visual::before,
.contact-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(219, 238, 249, 0.76), transparent 44%, rgba(95, 134, 199, 0.14)),
    radial-gradient(circle at 82% 20%, rgba(116, 173, 212, 0.14), transparent 18rem);
}

.system-card-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.system-card-top p {
  margin: 0;
  color: var(--soft);
  font-weight: 850;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(58, 143, 122, 0.11), 0 0 30px rgba(58, 143, 122, 0.42);
}

.system-list {
  position: relative;
  margin: 0;
}

.system-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

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

.system-list dt {
  color: var(--muted);
}

.system-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.status-chip {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(58, 143, 122, 0.28);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--mint);
}

.data-pipeline {
  position: relative;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
  --pipeline-dot-size: 42px;
  --pipeline-card-padding: 0.85rem;
}

.data-pipeline::before {
  position: absolute;
  top: calc(var(--pipeline-card-padding) + (var(--pipeline-dot-size) / 2));
  bottom: calc(var(--pipeline-card-padding) + (var(--pipeline-dot-size) / 2));
  left: calc(var(--pipeline-card-padding) + (var(--pipeline-dot-size) / 2));
  width: 1px;
  content: "";
  background: linear-gradient(to bottom, rgba(58, 143, 122, 0.18), rgba(95, 134, 199, 0.28));
}

.data-pipeline div {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 0.8rem;
  align-items: center;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--button-soft-bg);
}

.data-pipeline span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--pipeline-dot-size);
  height: var(--pipeline-dot-size);
  border: 1px solid var(--pipeline-dot-border);
  border-radius: 50%;
  background: var(--pipeline-dot-bg);
  color: var(--pipeline-dot-text);
  font-size: 0.72rem;
  font-weight: 850;
  grid-row: span 2;
}

.data-pipeline strong {
  color: var(--text);
  line-height: 1.2;
}

.data-pipeline small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p:last-child {
  font-size: 1.08rem;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-nortra:hover,
.project-nortra:focus-visible {
  border-color: rgba(58, 143, 122, 0.42);
}

.project-norracle:hover,
.project-norracle:focus-visible {
  border-color: rgba(95, 134, 199, 0.42);
}

.project-petitpont:hover,
.project-petitpont:focus-visible {
  border-color: rgba(215, 170, 66, 0.46);
}

.project-norram:hover,
.project-norram:focus-visible {
  border-color: rgba(74, 114, 217, 0.42);
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 66% 38%, rgba(63, 137, 184, 0.28), transparent 12rem),
    linear-gradient(120deg, rgba(196, 224, 239, 0.96), rgba(237, 247, 252, 0.76));
}

.project-norracle .project-visual {
  background:
    radial-gradient(circle at 66% 38%, rgba(95, 134, 199, 0.28), transparent 12rem),
    linear-gradient(120deg, rgba(207, 225, 243, 0.96), rgba(238, 246, 252, 0.76));
}

.project-petitpont .project-visual {
  background:
    radial-gradient(circle at 66% 38%, rgba(95, 154, 194, 0.26), transparent 12rem),
    linear-gradient(120deg, rgba(220, 234, 243, 0.96), rgba(249, 240, 206, 0.72));
}

.project-norram .project-visual {
  background:
    radial-gradient(circle at 66% 38%, rgba(74, 114, 217, 0.28), transparent 12rem),
    linear-gradient(120deg, rgba(213, 222, 245, 0.96), rgba(240, 244, 252, 0.76));
}

.project-visual > * {
  position: relative;
  z-index: 1;
}

.project-icon {
  width: clamp(94px, 38%, 142px);
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  border-radius: 30%;
  filter: drop-shadow(0 18px 28px rgba(20, 38, 50, 0.22));
  transition: transform 180ms ease, filter 180ms ease;
}

.project-card:hover .project-icon,
.project-card:focus-visible .project-icon {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 22px 34px rgba(20, 38, 50, 0.28));
}

.project-icon-nortra {
  width: clamp(112px, 43%, 164px);
}

.project-icon-norracle {
  width: clamp(112px, 43%, 164px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 30%;
}

.project-icon-petitpont {
  width: clamp(104px, 40%, 152px);
  padding: 0.34rem;
  background: rgba(8, 16, 22, 0.9);
}

.project-icon-norram {
  width: clamp(112px, 43%, 164px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 30%;
}

.visual-orbit,
.visual-score,
.visual-court {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.visual-orbit {
  width: 116px;
  height: 116px;
  border: 1px solid rgba(58, 143, 122, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 0 35px rgba(58, 143, 122, 0.1), 0 0 40px rgba(58, 143, 122, 0.15);
}

.visual-orbit::before,
.visual-orbit::after {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 20px rgba(58, 143, 122, 0.42);
}

.visual-orbit::before {
  top: 12px;
  right: 8px;
}

.visual-orbit::after {
  bottom: 16px;
  left: 5px;
}

.visual-score {
  color: var(--cyan);
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(95, 134, 199, 0.22);
}

.visual-court {
  width: 138px;
  height: 88px;
  border: 2px solid rgba(215, 170, 66, 0.42);
  border-radius: 16px;
}

.visual-court::before {
  position: absolute;
  inset: 12px 50%;
  width: 2px;
  content: "";
  background: rgba(215, 170, 66, 0.34);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.project-category {
  color: var(--muted);
  font-weight: 850;
}

.project-body h3 {
  color: var(--text);
  font-size: 1.65rem;
}

.project-body p:not(.project-category) {
  color: var(--muted);
}

.project-card .compact-list {
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 1rem 0;
}

.badge-row span {
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(31, 72, 86, 0.16);
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 650;
}

.project-nortra .badge-row span {
  border-color: rgba(63, 137, 184, 0.28);
  background: rgba(218, 237, 248, 0.92);
}

.project-norracle .badge-row span {
  border-color: rgba(95, 134, 199, 0.3);
  background: rgba(221, 232, 249, 0.94);
}

.project-petitpont .badge-row span {
  border-color: rgba(96, 150, 188, 0.28);
  background: rgba(226, 239, 247, 0.92);
}

.project-norram .badge-row span {
  border-color: rgba(74, 114, 217, 0.3);
  background: rgba(222, 229, 249, 0.94);
}

html[data-theme="dark"] .project-category {
  color: #c8d7df;
}

html[data-theme="dark"] .project-nortra .badge-row span {
  border-color: rgba(103, 198, 230, 0.32);
  background: rgba(46, 93, 116, 0.72);
  color: #eff8fb;
}

html[data-theme="dark"] .project-norracle .badge-row span {
  border-color: rgba(134, 166, 228, 0.36);
  background: rgba(58, 79, 130, 0.72);
  color: #eff8fb;
}

html[data-theme="dark"] .project-petitpont .badge-row span {
  border-color: rgba(126, 190, 220, 0.34);
  background: rgba(50, 93, 116, 0.72);
  color: #eff8fb;
}

html[data-theme="dark"] .project-norram .badge-row span {
  border-color: rgba(129, 155, 232, 0.36);
  background: rgba(52, 68, 122, 0.72);
  color: #eff8fb;
}

.compact-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.2rem;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.compact-list li {
  position: relative;
  padding-left: 1rem;
}

.compact-list li::before,
.timeline li::before,
.value-grid p::before {
  position: absolute;
  left: 0;
  content: "";
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px rgba(58, 143, 122, 0.32);
}

.compact-list li::before {
  top: 0.64em;
  width: 5px;
  height: 5px;
}

.text-button {
  width: 100%;
  margin-top: auto;
  border: 1px solid rgba(63, 137, 184, 0.42);
  background: #3f7fa9;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(63, 137, 184, 0.2);
}

.project-norracle .text-button {
  border-color: rgba(95, 134, 199, 0.38);
  background: #5473ad;
}

.project-petitpont .text-button {
  border-color: rgba(74, 132, 174, 0.38);
  background: #527fa0;
}

.project-norram .text-button {
  border-color: rgba(74, 114, 217, 0.4);
  background: #4a63c9;
}

.method-grid,
.skills-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.method-card,
.skill-card,
.value-grid p {
  border-radius: var(--radius-md);
}

.method-card,
.skill-card {
  padding: 1.25rem;
}

.method-card,
.skill-card,
.timeline,
.journey-flow article,
.value-grid p {
  background: var(--surface-bg);
}

.method-card h3,
.skill-card h3,
.journey-flow h3,
.timeline h3 {
  color: var(--text);
}

.method-card p,
.skill-card p,
.journey-flow p,
.timeline p {
  color: var(--muted);
}

.method-card span {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: #3f89b8;
  font-weight: 900;
  font-size: 0.95rem;
}

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

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

.journey-flow {
  display: grid;
  gap: 0.8rem;
}

.journey-flow article {
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.journey-flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.flow-arrow {
  color: var(--mint);
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
}

.timeline {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.timeline ul {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.timeline li,
.value-grid p {
  position: relative;
  padding-left: 1.15rem;
}

.timeline li::before,
.value-grid p::before {
  top: 0.65em;
  width: 6px;
  height: 6px;
}

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

.value-grid p {
  min-height: 136px;
  margin: 0;
  padding: 1.1rem 1rem 1rem 1.35rem;
  color: var(--muted);
}

.value-grid p::before {
  left: 0.72rem;
  top: calc(1.1rem + 0.6em);
}

.contact-section {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.72fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
}

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

.contact-copy h2 {
  max-width: 620px;
}

.contact-copy > p {
  max-width: 580px;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-left: clamp(1.5rem, 4vw, 2.75rem);
  border-left: 1px solid var(--line);
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--button-soft-bg);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input {
  min-height: 48px;
  padding: 0 0.95rem;
}

.form-field textarea {
  min-height: 132px;
  padding: 0.85rem 0.95rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(63, 137, 184, 0.13);
  outline: 0;
}

.contact-submit {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 142px;
  margin-top: 0.25rem;
}

.contact-meta {
  display: grid;
  gap: 0.55rem;
  max-width: 520px;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-meta p {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  border: 0;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(120, 174, 232, 0.52);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 420ms ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-backdrop.is-closing {
  opacity: 0;
}

.modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 780px);
  overflow: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  transform: scale(0.9);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal {
  transform: scale(1);
}

.modal-backdrop.is-closing .modal {
  transform: scale(0.92);
}

.modal-close {
  position: sticky;
  top: 0;
  left: 100%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--floating-control-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transform: translate(0.35rem, -0.8rem);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.modal-block {
  margin-top: 1.25rem;
}

.modal-block p,
.modal aside p {
  color: var(--muted);
}

.screenshot-slot {
  display: block;
  width: 100%;
  min-height: 210px;
  margin-bottom: 1.2rem;
  padding: 0;
  border: 1px dashed rgba(58, 143, 122, 0.28);
  border-radius: var(--radius-md);
  background: var(--screenshot-bg);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.screenshot-slot:hover,
.screenshot-slot:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(20, 38, 50, 0.16);
}

.screenshot-slot img {
  display: block;
  width: 100%;
  min-height: 210px;
  object-fit: cover;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2.5vw, 2rem);
  background: rgba(4, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  opacity: 0;
  overflow: auto;
  transition: opacity 420ms ease;
}

.screenshot-lightbox img {
  display: block;
  width: min(1480px, calc(100vw - 3rem));
  max-width: none;
  max-height: calc(100vh - 4rem);
  border: 1px solid rgba(167, 206, 226, 0.22);
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-lightbox.is-open {
  opacity: 1;
}

.screenshot-lightbox.is-open img {
  transform: scale(1);
}

.screenshot-lightbox.is-closing {
  opacity: 0;
}

.screenshot-lightbox.is-closing img {
  transform: scale(0.92);
}

.screenshot-lightbox-close {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(167, 206, 226, 0.28);
  border-radius: 50%;
  background: rgba(8, 18, 27, 0.92);
  color: #eff8fb;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 1100px) {
  .project-grid,
  .method-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav-shell {
    grid-template-columns: auto auto 1fr auto;
    column-gap: 0.6rem;
  }

  .site-brand-name {
    display: none;
  }

  .site-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .header-actions {
    display: contents;
  }

  .menu-toggle {
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .theme-toggle {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .nav-panel {
    grid-column: 3;
    grid-row: 1;
  }

  .nav-panel {
    position: fixed;
    top: var(--header-height);
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--menu-bg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    border-radius: var(--radius-sm);
  }

  .hero-grid,
  .journey-layout,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }

  .contact-copy h2,
  .contact-copy > p {
    max-width: none;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
  }

  .contact-meta {
    max-width: none;
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 600px) {
  :root {
    --header-height: 68px;
  }

  .section-inner,
  .nav-shell,
  .site-footer {
    width: min(100% - 1rem, var(--max-width));
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    align-items: center;
    text-align: center;
  }

  .back-to-top {
    align-self: center;
  }

  .button {
    width: 100%;
  }

  .contact-submit {
    justify-self: stretch;
  }

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

  .system-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .system-list dd {
    text-align: left;
  }

  .data-pipeline {
    --pipeline-dot-size: 36px;
    --pipeline-card-padding: 0.72rem;
  }

  .data-pipeline div {
    grid-template-columns: 36px 1fr;
    padding: 0.72rem;
  }

  .data-pipeline span {
    width: 36px;
    height: 36px;
  }

  .project-visual {
    min-height: 155px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0.5rem;
  }

  .modal {
    max-height: 92vh;
    border-radius: 22px 22px 14px 14px;
  }

}

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

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