:root {
  --bg: #05070d;
  --bg-2: #0c1220;
  --panel: rgba(12, 16, 28, 0.72);
  --panel-strong: rgba(14, 19, 32, 0.9);
  --line: rgba(104, 215, 255, 0.22);
  --line-strong: rgba(104, 215, 255, 0.42);
  --text: #f7faff;
  --muted: #9aa7c5;
  --accent: #67d7ff;
  --accent-2: #6c63ff;
  --accent-3: #ffb36a;
  --shadow: 0 36px 110px rgba(0, 0, 0, 0.48);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1.15rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#accueil,
#projets {
  scroll-margin-top: 132px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(108, 99, 255, 0.35), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(103, 215, 255, 0.2), transparent 24%),
    radial-gradient(circle at 50% 32%, rgba(255, 179, 106, 0.07), transparent 20%),
    linear-gradient(180deg, #121937 0%, #0a0f1a 28%, #05070d 100%);
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 24%),
    repeating-linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.008) 0,
      rgba(255, 255, 255, 0.008) 1px,
      transparent 1px,
      transparent 24px
    );
  mix-blend-mode: screen;
  opacity: 0.34;
}

body::after {
  content: "";
  position: fixed;
  right: -10vw;
  top: 16vh;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(103, 215, 255, 0.16), transparent 64%);
  filter: blur(22px);
  opacity: 0.46;
}

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

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

.page-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 18px 20px;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.7rem;
  background: rgba(8, 11, 19, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.topbar__primary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 220ms ease, transform 220ms ease;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #08111d;
  background: linear-gradient(135deg, #76d0ff 0%, #63a8ff 35%, #6b66ff 100%);
  box-shadow: 0 18px 34px rgba(80, 126, 255, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--muted);
}

.brand__text strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
}

.topnav a {
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topnav__cta {
  color: #f7fbff;
  background: linear-gradient(135deg, rgba(98, 99, 255, 0.22), rgba(103, 215, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.menu-toggle:hover {
  border-color: rgba(103, 215, 255, 0.36);
  background: rgba(103, 215, 255, 0.08);
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(103, 215, 255, 0.72);
  outline-offset: 3px;
}

.menu-toggle__line {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle__line:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle__line:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle__line:nth-child(3) {
  transform: translateY(6px);
}

.topbar.is-nav-open .menu-toggle__line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.topbar.is-nav-open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.topbar.is-nav-open .menu-toggle__line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.home-layout {
  display: grid;
  gap: 36px;
}

.panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  background:
    radial-gradient(
      420px circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(103, 215, 255, 0.11),
      transparent 45%
    ),
    linear-gradient(180deg, rgba(18, 24, 40, 0.86), rgba(8, 11, 19, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(103, 215, 255, 0.03),
    var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0.75;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(108, 99, 255, 0.12), transparent 28%);
  opacity: 0.62;
}

.section-kicker,
.project-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.52);
}

.section-kicker::before,
.project-eyebrow::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(103, 215, 255, 0.26);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0 4px;
}

.section-head h2 {
  margin: 0.65rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.section-head > p {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  line-height: 1.75;
}

.hero,
.project-spotlight,
.project-card,
.expertise-lead,
.expertise-card,
.utility-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

:is(.hero, .project-spotlight, .project-card, .expertise-lead, .expertise-card, .utility-card):hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(103, 215, 255, 0.08),
    0 28px 72px rgba(0, 0, 0, 0.42);
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.15fr) minmax(250px, 0.72fr);
  gap: 32px;
  min-height: 700px;
  padding: 36px;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: stretch;
}

.hero__portrait-frame {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 0.35rem);
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.07), transparent 32%),
    linear-gradient(180deg, #30384a 0%, #161c28 100%);
}

.hero__portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.04) contrast(1.02);
}

.hero__status {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.58);
  backdrop-filter: blur(14px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.hero h1 {
  margin: 14px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.7rem, 2.2vw, 2.8rem);
  line-height: 1.08;
  color: #edf4ff;
}

.hero__summary {
  margin: 1.2rem 0 0;
  max-width: 40ch;
  color: #d6deef;
  font-size: 1.03rem;
  line-height: 1.78;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 26px;
}

.hero__chips a,
.hero__chips span {
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #eef5ff;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.hero__chips a:hover,
.hero__chips a:focus-visible {
  border-color: rgba(121, 193, 255, 0.34);
  background: linear-gradient(180deg, rgba(31, 40, 72, 0.96), rgba(18, 25, 48, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(7, 13, 28, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero__chips a:focus-visible {
  outline: 2px solid rgba(111, 206, 255, 0.48);
  outline-offset: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button:focus-visible,
.topnav a:focus-visible {
  outline: 2px solid rgba(103, 215, 255, 0.72);
  outline-offset: 3px;
}

.button--primary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  background: linear-gradient(90deg, var(--accent-2), #5d9dff 52%, #72d6ff);
  box-shadow: 0 14px 28px rgba(82, 115, 255, 0.28);
}

.button--primary:hover {
  box-shadow: 0 18px 34px rgba(82, 115, 255, 0.34);
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #edf4ff;
}

.button--secondary:hover,
.button--ghost:hover {
  border-color: rgba(103, 215, 255, 0.42);
  background: rgba(103, 215, 255, 0.08);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
}

.hero__rail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.rail-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  padding: 24px;
  border-radius: calc(var(--radius-xl) - 0.55rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(103, 215, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.02);
}

.rail-card__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.rail-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.rail-card span {
  color: var(--muted);
  line-height: 1.7;
}

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

.rail-card--stats div {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.rail-card--stats strong {
  font-size: 2.5rem;
  background: linear-gradient(180deg, #ffffff, #8ce1ff);
  -webkit-background-clip: text;
  color: transparent;
}

.project-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.project-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  grid-template-areas:
    "copy media"
    "related related";
  column-gap: 40px;
  row-gap: 28px;
  padding: 30px 30px 28px;
  align-items: center;
}

.project-spotlight__copy,
.project-card__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.project-spotlight__copy {
  grid-area: copy;
  min-width: 0;
  z-index: 3;
  align-self: center;
  gap: 1.05rem;
  max-width: 620px;
  padding-right: 0;
}

.project-spotlight__media {
  grid-area: media;
  min-width: 0;
  align-self: start;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.project-spotlight__header {
  display: grid;
  gap: 0.65rem;
}

.project-spotlight__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.project-spotlight__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.52rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 188, 255, 0.2);
  background: linear-gradient(180deg, rgba(44, 58, 96, 0.6), rgba(26, 36, 63, 0.62));
  color: #dff8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-spotlight__copy h3,
.project-card__copy h3,
.expertise-lead h3,
.expertise-card h3,
.utility-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.project-spotlight__copy h3 {
  font-size: clamp(2.45rem, 3.9vw, 4.1rem);
  max-width: 8.9ch;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.project-spotlight__copy > p:last-of-type,
.project-card__copy p:last-of-type,
.expertise-lead > p:last-of-type,
.expertise-card > p:last-of-type,
.utility-card > p:last-of-type {
  margin: 0;
  color: #d2dcef;
  line-height: 1.8;
}

.project-spotlight__lead {
  margin: 0;
  max-width: 34ch;
  color: #e9f2ff;
  font-size: 1rem;
  line-height: 1.76;
}

.project-spotlight__footer {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.15rem;
}

.project-pill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.8rem;
  width: min(100%, 500px);
  max-width: 100%;
}

.project-pill-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 158, 223, 0.16);
  background: linear-gradient(180deg, rgba(25, 31, 55, 0.92), rgba(17, 22, 41, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #edf4ff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.project-pill-list a:hover,
.project-pill-list a:focus-visible {
  border-color: rgba(121, 193, 255, 0.34);
  background: linear-gradient(180deg, rgba(31, 40, 72, 0.96), rgba(18, 25, 48, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(7, 13, 28, 0.18);
  transform: translateY(-1px);
}

.project-pill-list a:focus-visible {
  outline: 2px solid rgba(111, 206, 255, 0.48);
  outline-offset: 2px;
}

.project-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0;
}

.project-spotlight__primary-cta {
  min-height: 62px;
  padding: 0 1.45rem;
  font-size: 0.98rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(31, 39, 67, 0.96), rgba(21, 27, 46, 0.96)),
    linear-gradient(90deg, rgba(103, 215, 255, 0.3), rgba(108, 99, 255, 0.28));
  border: 1px solid rgba(96, 209, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(89, 177, 255, 0.08),
    0 0 18px rgba(61, 170, 255, 0.22);
  white-space: nowrap;
}

.project-spotlight__primary-cta::after {
  content: "›";
  margin-left: 0.7rem;
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
}

.project-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.project-list li + li {
  margin-top: 0.2rem;
}

.project-list li::marker {
  color: rgba(103, 215, 255, 0.76);
}

.project-spotlight__media {
  position: relative;
}

.project-spotlight__visual-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(380px, auto) auto;
  gap: 14px;
  align-items: stretch;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  padding: 22px 22px 18px;
  border-radius: 2rem;
  border: 1px solid rgba(126, 171, 255, 0.2);
  background:
    radial-gradient(circle at 62% 36%, rgba(106, 178, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 86%, rgba(74, 209, 255, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(20, 29, 56, 0.98), rgba(13, 18, 37, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(91, 166, 255, 0.06),
    0 18px 52px rgba(0, 0, 0, 0.24);
  contain: layout paint;
  text-decoration: none;
  color: inherit;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  cursor: pointer;
}

.project-spotlight__icon-row {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.project-spotlight__icon-chip {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  border: 1px solid rgba(150, 197, 255, 0.18);
  background: linear-gradient(180deg, rgba(38, 55, 96, 0.92), rgba(24, 34, 63, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.project-spotlight__icon-chip svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #f5fbff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-spotlight__icon-chip svg * {
  fill: none;
  stroke: currentColor;
}

.project-spotlight__scene {
  position: relative;
  min-height: 395px;
  overflow: hidden;
  border-radius: 1.7rem;
  border: 1px solid rgba(137, 195, 255, 0.28);
  background:
    radial-gradient(circle at 46% 26%, rgba(110, 184, 255, 0.32), transparent 19%),
    radial-gradient(circle at 50% 88%, rgba(74, 209, 255, 0.34), transparent 14%),
    radial-gradient(circle at 80% 74%, rgba(97, 104, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(11, 18, 35, 0.96), rgba(10, 15, 29, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 50px rgba(94, 170, 255, 0.08);
}

.project-spotlight__scene::before,
.project-spotlight__scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.project-spotlight__scene::before {
  inset: auto 34px 18px 34px;
  height: 18px;
  background: radial-gradient(circle, rgba(93, 208, 255, 0.6), rgba(93, 208, 255, 0.06) 70%, transparent 80%);
  filter: blur(8px);
}

.project-spotlight__scene::after {
  right: 24px;
  top: 20px;
  width: 132px;
  height: 132px;
  background: radial-gradient(circle, rgba(103, 215, 255, 0.12), transparent 70%);
}

.project-spotlight__device {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(165, 214, 255, 0.16);
  box-shadow: 0 18px 34px rgba(2, 7, 18, 0.32);
}

.project-spotlight__device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-spotlight__device--screen {
  position: absolute;
  left: 42px;
  top: 74px;
  width: 68%;
  aspect-ratio: 1.32;
  padding: 10px;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #233458, #151c34);
}

.project-spotlight__device--screen img {
  border-radius: 1.1rem;
}

.project-spotlight__device--poster {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 33%;
  aspect-ratio: 0.76;
  padding: 8px;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #24365d, #151d35);
  transform: rotate(6deg);
}

.project-spotlight__device--poster img {
  border-radius: 1rem;
}

.project-spotlight__device--sheet {
  position: absolute;
  right: 26px;
  top: 124px;
  width: 24%;
  min-width: 138px;
  height: 196px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.42rem;
  overflow: hidden;
  padding: 15px 14px;
  border-radius: 1.3rem;
  border: 1px solid rgba(126, 192, 255, 0.22);
  background:
    radial-gradient(circle at 84% 14%, rgba(111, 207, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(24, 37, 67, 0.9), rgba(16, 24, 46, 0.94));
  color: #eaf3ff;
  backdrop-filter: blur(14px);
  transform: rotate(2.5deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(7, 13, 28, 0.3);
  isolation: isolate;
}

.project-spotlight__device--sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 24, 0.12) 0%, rgba(8, 11, 24, 0.36) 42%, rgba(7, 10, 20, 0.9) 100%),
    linear-gradient(135deg, rgba(60, 153, 255, 0.08), transparent 58%);
}

.project-spotlight__device--sheet img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) brightness(0.82);
}

.project-spotlight__sheet-head {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  position: relative;
  z-index: 1;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 205, 255, 0.18);
  background: rgba(12, 21, 44, 0.6);
  color: #d9ebff;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-spotlight__sheet-title {
  display: block;
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 22px rgba(5, 10, 24, 0.45);
}

.project-spotlight__sheet-note {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0.71rem;
  line-height: 1.38;
  color: rgba(226, 238, 255, 0.82);
  max-width: 11ch;
}

.project-spotlight__visual-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.project-spotlight__visual-meta {
  position: relative;
  max-width: none;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.8rem 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(136, 182, 255, 0.18);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(18, 26, 48, 0.96), rgba(12, 18, 35, 0.98));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-spotlight__visual-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.project-spotlight__visual-copy strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.project-spotlight__visual-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.project-spotlight__visual-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-top: 0;
  color: #eef7ff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.project-spotlight__visual-cta span {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.project-spotlight__visual-link:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 215, 255, 0.34);
  background:
    radial-gradient(circle at top left, rgba(103, 215, 255, 0.18), transparent 26%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.project-spotlight__visual-link:hover .project-spotlight__visual-meta {
  border-color: rgba(103, 215, 255, 0.28);
  background: rgba(10, 15, 26, 0.92);
}

.project-spotlight__visual-link:hover .project-spotlight__visual-cta,
.project-spotlight__visual-link:focus-visible .project-spotlight__visual-cta {
  color: #ffffff;
}

.project-spotlight__visual-link:focus-visible {
  outline: 2px solid rgba(103, 215, 255, 0.72);
  outline-offset: 3px;
}

.project-related {
  grid-area: related;
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border-radius: calc(var(--radius-lg) - 0.1rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(103, 215, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.project-related__intro {
  display: grid;
  gap: 0.8rem;
  align-content: center;
}

.project-related__intro h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.project-related__intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-related__card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
  min-height: 100%;
  padding: 14px;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 19, 0.5);
  color: inherit;
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.project-related__card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 215, 255, 0.3);
  background: rgba(9, 14, 24, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.project-related__media {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.project-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.project-related__card:hover .project-related__media img {
  transform: scale(1.03);
  filter: saturate(1.03) contrast(1.02);
}

.project-related__body {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.project-related__tag {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-related__body strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-related__body p {
  margin: 0;
  color: #d2dcef;
  line-height: 1.75;
}

.project-related__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f0f6ff;
  font-weight: 700;
}

.project-related__link-arrow {
  color: var(--accent);
}

.project-stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.project-card {
  display: grid;
  gap: 18px;
  min-height: 258px;
  padding: 22px;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 0.2rem);
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 1.28;
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 8, 15, 0.52) 100%);
  opacity: 0.54;
  transition: opacity 320ms ease;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.project-card:hover .project-card__media img,
.project-spotlight:hover .project-spotlight__visual-frame img {
  transform: scale(1.025);
  filter: saturate(1.03) contrast(1.02);
}

.project-card:hover .project-card__media::after {
  opacity: 0.7;
}

.project-spotlight:hover .project-spotlight__visual-frame {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.project-card--text {
  align-content: start;
  min-height: 100%;
}

.project-card--text .project-card__copy h3 {
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.project-card__symbol {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(122, 217, 255, 0.18), rgba(108, 99, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.project-card__symbol--contact {
  background: linear-gradient(135deg, rgba(103, 215, 255, 0.18), rgba(36, 58, 112, 0.36));
  color: #eff8ff;
}

.project-card__contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.project-card__contact-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eef5ff;
  font-size: 0.88rem;
  font-weight: 600;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #eef5ff;
}

.card-footer span:first-child {
  color: var(--muted);
  font-weight: 600;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  margin-top: 6px;
}

.cta-banner__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.cta-banner__copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 3.3vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 13ch;
}

.cta-banner__copy p:last-child {
  margin: 0;
  max-width: 46ch;
  color: #d4def0;
  line-height: 1.8;
}

.cta-banner__aside {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
  padding: 22px;
  border-radius: calc(var(--radius-xl) - 0.55rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(103, 215, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.02);
}

.cta-banner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cta-banner__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eef5ff;
  font-size: 0.88rem;
  font-weight: 600;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.arrow-chip {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8faff;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.arrow-chip svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.project-spotlight, .project-card, .expertise-lead, .utility-card):hover .arrow-chip {
  transform: translateX(2px);
  border-color: rgba(103, 215, 255, 0.4);
  background: rgba(103, 215, 255, 0.08);
}

.expertise-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 0.76fr));
  gap: 20px;
}

.expertise-lead {
  width: 100%;
  appearance: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 1rem;
  padding: 28px;
}

.expertise-lead:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.expertise-lead[aria-expanded="true"] .arrow-chip {
  transform: rotate(90deg);
}

.expertise-lead__cluster {
  display: inline-flex;
  gap: 0.7rem;
}

.expertise-lead__cluster span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.expertise-card {
  display: grid;
  gap: 0.95rem;
  min-height: 270px;
  padding: 26px;
}

.competence-panel {
  scroll-margin-top: 120px;
  max-height: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(24px);
  pointer-events: none;
  transition:
    max-height 760ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 340ms ease,
    transform 340ms ease,
    padding 340ms ease,
    border-color 340ms ease;
}

.competence-panel.is-open {
  max-height: 1400px;
  padding: 34px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-color: rgba(104, 215, 255, 0.32);
}

.competence-panel__header {
  max-width: 680px;
  margin-bottom: 28px;
}

.competence-panel__header h2 {
  margin: 0.7rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.competence-panel__header p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

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

.competence-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
  padding: 24px;
  border-radius: calc(var(--radius-xl) - 0.55rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(103, 215, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.competence-card--accent {
  background:
    radial-gradient(circle at top right, rgba(108, 99, 255, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.competence-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 72px;
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f6ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.competence-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.competence-card p {
  margin: 0;
  color: #ccd7ec;
  line-height: 1.75;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.skill-tags span {
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #eff6ff;
  font-size: 0.84rem;
  font-weight: 600;
}

.utility-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.18fr) minmax(260px, 0.9fr);
  gap: 20px;
}

.utility-card {
  display: grid;
  gap: 1rem;
  min-height: 308px;
  padding: 30px;
}

.utility-card--resume {
  align-content: start;
}

.utility-card--contact {
  background:
    radial-gradient(circle at top right, rgba(103, 215, 255, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(19, 25, 43, 0.92), rgba(8, 11, 19, 0.96));
}

.utility-card__contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.utility-card__contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #eff5ff;
  font-weight: 600;
}

.utility-card__contact-list span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  flex: none;
}

.utility-card--metrics {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-block {
  display: grid;
  align-content: end;
  gap: 0.45rem;
  padding: 18px;
  border-radius: calc(var(--radius-xl) - 0.7rem);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at top right, rgba(103, 215, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.02);
}

.metric-block__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 0.9;
  background: linear-gradient(180deg, #ffffff, #8ce1ff);
  -webkit-background-clip: text;
  color: transparent;
}

.metric-block__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.metric-block p {
  margin: 0;
  color: #d1dbef;
  line-height: 1.7;
}

.footer {
  margin-top: 36px;
  padding: 24px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__brand {
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
}

.footer__brand strong {
  color: var(--text);
}

.footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links a {
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1380px) {
  .page-shell {
    width: min(100% - 28px, 1260px);
  }

  .hero {
    grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.1fr);
  }

  .hero__rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .cta-banner {
    grid-template-columns: 1fr;
  }

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

  .expertise-lead {
    min-height: 320px;
  }

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

  .utility-card--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    min-height: 520px;
  }

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

  .project-spotlight {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media"
      "related";
    gap: 24px;
    align-items: start;
    padding: 28px;
  }

  .project-spotlight__copy,
  .project-spotlight__media {
    max-width: none;
    justify-self: stretch;
    padding-right: 0;
  }

  .project-spotlight__visual-shell {
    min-height: auto;
  }

  .project-spotlight__footer {
    align-items: flex-start;
  }

  .project-spotlight__scene {
    min-height: 360px;
  }

  .project-spotlight__device--screen {
    left: 32px;
    top: 64px;
    width: 70%;
  }

  .project-spotlight__device--sheet {
    right: 18px;
    top: 108px;
    width: 25%;
    min-width: 124px;
    height: 178px;
  }

  .project-spotlight__device--poster {
    right: 18px;
    bottom: 22px;
    width: 30%;
  }

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

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

@media (max-width: 820px) {
  .page-shell {
    width: calc(100% - 20px);
    padding-top: 110px;
  }

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

  .topbar {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 120;
    padding: 14px;
    margin-bottom: 0;
    gap: 0;
    align-items: stretch;
    border-radius: 1.45rem;
    background: rgba(8, 11, 19, 0.84);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  }

  .topbar__primary {
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 161;
  }

  .brand {
    min-width: 0;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__text strong,
  .brand__text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    z-index: 165;
  }

  .topnav {
    position: fixed;
    inset: 0;
    z-index: 150;
    width: 100vw;
    min-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0;
    padding: 112px 20px 28px;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-14px);
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at top left, rgba(108, 99, 255, 0.22), transparent 24%),
      radial-gradient(circle at top right, rgba(103, 215, 255, 0.16), transparent 22%),
      rgba(5, 7, 13, 0.94);
    backdrop-filter: blur(22px);
    transition:
      opacity 220ms ease,
      visibility 220ms ease,
      transform 220ms ease,
      padding 220ms ease;
  }

  .topbar.is-nav-open .topnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar.is-nav-open {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .topbar.is-nav-open .brand {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .topbar.is-nav-open .topbar__primary {
    justify-content: flex-end;
  }

  .topnav a {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .home-layout {
    gap: 24px;
  }

  .hero,
  .project-spotlight,
  .project-card,
  .expertise-lead,
  .expertise-card,
  .utility-card,
  .competence-panel.is-open {
    padding: 22px;
  }

  .hero__visual {
    min-height: 420px;
  }

  .project-stack,
  .expertise-stage,
  .utility-stage,
  .competence-grid {
    grid-template-columns: 1fr;
  }

  .project-card__contact-list {
    gap: 0.6rem;
  }

  .cta-banner {
    padding: 24px 22px;
    gap: 20px;
  }

  .cta-banner__aside {
    padding: 18px;
  }

  .project-spotlight__header {
    gap: 0.7rem;
  }

  .project-spotlight__copy {
    max-width: none;
  }

  .project-spotlight__footer {
    flex-direction: column;
  }

  .project-pill-list {
    width: 100%;
  }

  .project-spotlight__copy h3 {
    font-size: clamp(2.6rem, 8vw, 4rem);
    max-width: 8.5ch;
  }

  .project-spotlight__lead {
    max-width: 30ch;
    font-size: 1rem;
  }

  .project-spotlight__visual-shell {
    padding: 18px 18px 16px;
    border-radius: 1.8rem;
  }

  .project-spotlight__icon-row {
    gap: 10px;
    justify-content: flex-start;
  }

  .project-spotlight__icon-chip {
    width: 44px;
    height: 44px;
  }

  .project-spotlight__scene {
    min-height: 320px;
    border-radius: 1.45rem;
  }

  .project-spotlight__device--screen {
    left: 22px;
    top: 60px;
    width: 68%;
    padding: 8px;
  }

  .project-spotlight__device--sheet {
    right: 14px;
    top: 84px;
    width: 30%;
    min-width: 102px;
    height: 152px;
    padding: 12px 11px;
  }

  .project-spotlight__sheet-title {
    font-size: 0.82rem;
  }

  .project-spotlight__sheet-note {
    font-size: 0.64rem;
  }

  .project-spotlight__device--poster {
    right: 14px;
    bottom: 16px;
    width: 32%;
    padding: 6px;
  }

  .project-related {
    padding: 18px;
  }

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

  .project-related__media {
    min-height: 0;
    aspect-ratio: 1.24;
  }

  .utility-card__contact-list {
    grid-template-columns: 1fr;
  }

  .utility-card--contact {
    grid-column: auto;
  }

  .project-card__media {
    aspect-ratio: 1.15;
  }

  .project-spotlight__visual-frame {
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 3.35rem;
  }

  .hero__title {
    max-width: none;
    font-size: 1.55rem;
  }

  .hero__summary,
  .section-head > p {
    max-width: none;
    font-size: 0.98rem;
  }

  .hero__chips a,
  .hero__chips span,
  .button,
  .topnav a,
  .hero__actions {
    width: 100%;
  }

  .topnav {
    justify-content: stretch;
  }

  .hero__actions {
    flex-direction: column;
  }

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

  .project-spotlight__visual-shell {
    min-height: auto;
    gap: 14px;
    padding: 18px 16px 16px;
  }

  .project-pill-list {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 100%;
    flex-basis: auto;
  }

  .project-pill-list a {
    width: 100%;
    justify-content: center;
    min-height: 58px;
  }

  .project-spotlight__actions {
    width: 100%;
    flex-direction: column;
  }

  .project-spotlight__primary-cta {
    min-height: 64px;
    width: 100%;
  }

  .project-card__contact-list,
  .cta-banner__tags,
  .cta-banner__actions {
    width: 100%;
  }

  .cta-banner__actions {
    flex-direction: column;
  }

  .project-related__intro h4 {
    font-size: 1.7rem;
  }

  .project-spotlight__icon-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .project-spotlight__icon-chip {
    width: 40px;
    height: 40px;
  }

  .project-spotlight__scene {
    min-height: 250px;
  }

  .project-spotlight__device--screen {
    left: 16px;
    top: 48px;
    width: 74%;
    padding: 6px;
  }

  .project-spotlight__device--sheet {
    display: none;
  }

  .project-spotlight__device--poster {
    right: 12px;
    bottom: 14px;
    width: 36%;
    border-radius: 1.1rem;
  }

  .project-spotlight__visual-frame {
    min-height: 0;
    aspect-ratio: auto;
  }

  .project-spotlight__visual-meta {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1rem 1rem;
  }

  .project-spotlight__visual-copy span {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .project-spotlight__visual-cta {
    justify-self: start;
  }

  .competence-panel__header h2,
  .section-head h2 {
    font-size: 2.55rem;
  }

  .footer__links {
    gap: 0.8rem;
  }
}
