:root {
  --bg: #f7f4ee;
  --bg-elevated: #fffdf8;
  --bg-panel: rgba(255, 255, 255, 0.82);
  --ink: #0b1d31;
  --muted: #5f6e7f;
  --line: rgba(11, 29, 49, 0.13);
  --accent: #15b8c8;
  --accent-strong: #38a8ff;
  --accent-soft: rgba(21, 184, 200, 0.18);
  --navy: #102b4b;
  --navy-soft: rgba(16, 43, 75, 0.12);
  --ok: #2f8c58;
  --danger: #b74b3d;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --page-pad: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 680px at 88% -8%, rgba(56, 168, 255, 0.14), transparent 58%),
    radial-gradient(900px 620px at -10% 18%, rgba(16, 43, 75, 0.1), transparent 54%),
    linear-gradient(155deg, #fffdf8 0%, #f7f4ee 48%, #eef3f8 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  display: none;
  width: min(66vw, 52rem);
  aspect-ratio: 1;
  right: -14vw;
  top: 4vh;
  background: url("../img/djasen-studio-lite.4ee82395ef00.webp") center / contain no-repeat;
  opacity: 0.045;
  filter: blur(1px) saturate(1.08);
  transform: rotate(12deg);
}

body::after {
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(21, 184, 200, 0.11), transparent 34%),
    radial-gradient(circle at 16% 72%, rgba(16, 43, 75, 0.08), transparent 38%);
  opacity: 0.85;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--page-pad) 3rem;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0 1rem;
  position: sticky;
  top: 0.65rem;
  z-index: 20;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: max-content;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse-mark 3.2s ease-in-out infinite;
}

.brand-name { font-size: 1.05rem; }

.site-nav {
  justify-self: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1rem;
  background: rgba(16, 43, 75, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 50px rgba(16, 43, 75, 0.24);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.55rem 0.9rem;
  border-radius: 0.72rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.site-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: max-content;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.9rem;
  background: rgba(16, 43, 75, 0.7);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 42px rgba(16, 43, 75, 0.22);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.nav-cta.is-active {
  color: #fff;
  background: rgba(21, 184, 200, 0.7);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.9rem;
  background: rgba(16, 43, 75, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 42px rgba(16, 43, 75, 0.18);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-switch span { color: rgba(255, 255, 255, 0.54); }

.lang-switch a {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.15rem 0.2rem;
}

.lang-switch a.is-active,
.lang-switch a:hover {
  color: var(--accent);
}

.hero-curtain-stage {
  position: relative;
  margin: 0 calc(var(--page-pad) * -1);
  background: var(--bg);
}

.hero {
  --hero-clip: 0%;
  --hero-copy-lift: 0px;
  --hero-copy-opacity: 1;
  --hero-bg-shift: 0%;
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 4rem) var(--page-pad) 4rem;
  overflow: hidden;
  clip-path: inset(0 0 var(--hero-clip) 0);
  background:
    radial-gradient(circle at 24% 42%, rgba(255,255,255,0.72), transparent 34%),
    linear-gradient(110deg, rgba(255,255,255,0.48), rgba(255,255,255,0.12));
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.92) 0%, rgba(255, 253, 248, 0.55) 42%, rgba(255, 253, 248, 0.08) 72%, rgba(255, 253, 248, 0.02) 100%),
    radial-gradient(circle at 24% 52%, rgba(255, 255, 255, 0.46), transparent 30%);
  pointer-events: none;
}

.hero-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translateY(var(--hero-bg-shift)) scale(1.04);
  background:
    radial-gradient(circle at 58% 58%, rgba(116, 225, 206, 0.56), transparent 32%),
    radial-gradient(circle at 76% 42%, rgba(187, 120, 255, 0.42), transparent 34%),
    radial-gradient(circle at 68% 72%, rgba(255, 155, 194, 0.38), transparent 30%),
    linear-gradient(110deg, #fffdf8 0%, #dff7ff 45%, #b8f3dd 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  opacity: var(--hero-copy-opacity);
  transform: translateY(var(--hero-copy-lift));
  will-change: opacity, transform;
  max-width: 38rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: var(--hero-copy-opacity);
  transform: translateY(calc(var(--hero-copy-lift) * 0.55));
  will-change: opacity, transform;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%),
    radial-gradient(
      ellipse 78% 74% at 50% 48%,
      #000 34%,
      rgba(0, 0, 0, 0.85) 52%,
      rgba(0, 0, 0, 0.35) 72%,
      transparent 92%
    );
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%),
    radial-gradient(
      ellipse 78% 74% at 50% 48%,
      #000 34%,
      rgba(0, 0, 0, 0.85) 52%,
      rgba(0, 0, 0, 0.35) 72%,
      transparent 92%
    );
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect;
}

.hero-glass {
  display: block;
  width: min(112%, 46rem);
  max-width: none;
  height: auto;
  max-height: min(78vh, 38rem);
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.08);
  filter: drop-shadow(0 22px 40px rgba(16, 43, 75, 0.1));
  animation: hero-glass-float 9s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 66% 62% at 50% 48%,
      transparent 40%,
      rgba(255, 253, 248, 0.22) 64%,
      rgba(255, 253, 248, 0.72) 82%,
      rgba(255, 253, 248, 0.96) 100%
    );
}

@keyframes hero-glass-float {
  0% {
    transform: scale(1.08) translate3d(0, 0.35rem, 0);
  }
  100% {
    transform: scale(1.11) translate3d(0, -0.7rem, 0);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 1.1rem;
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7.8vw, 7.4rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.035em;
  max-width: 9ch;
  margin: 0 0 1.25rem;
  animation: rise 0.9s ease both;
}

.hero-lead {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.35vw, 1.9rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 22rem;
  margin: 0 0 0.85rem;
  animation: rise 1s ease 0.1s both;
}

.hero-sub,
.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.5;
  max-width: 40rem;
  margin: 0 0 2rem;
  animation: rise 1s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: rise 1.05s ease 0.18s both;
}

.services-grid--pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid--pillars .service-card.has-cover {
  min-height: 12.5rem;
}

.services-grid--pillars .service-card.has-cover strong,
.services-grid--pillars .service-card.has-cover > span:last-of-type {
  max-width: min(100%, 22rem);
}

.hub-directions-section {
  padding-top: 2.5rem;
}

.hub-actions {
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(16, 43, 75, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
  box-shadow: 0 18px 42px rgba(16, 43, 75, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #10131a;
}

.btn-ghost {
  border-color: rgba(16, 43, 75, 0.16);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.services-curtain {
  --curtain-left: -106%;
  --curtain-right: 106%;
  --curtain-opacity: 1;
  --curtain-y: 0px;
  position: relative;
  min-height: min(78vh, 760px);
  padding: clamp(4rem, 8vw, 7rem) var(--page-pad);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 5%, rgba(33, 191, 115, 0.22), transparent 34%),
    radial-gradient(circle at 72% 22%, rgba(15, 139, 242, 0.18), transparent 32%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.9), rgba(239, 248, 244, 0.78)),
    var(--bg);
  isolation: isolate;
}

.services-curtain::before {
  content: "";
  position: absolute;
  inset: -18% -8% auto auto;
  width: min(62vw, 48rem);
  aspect-ratio: 1;
  background: url("../img/djasen-studio-lite.4ee82395ef00.webp") center / contain no-repeat;
  opacity: 0.045;
  transform: rotate(10deg);
  pointer-events: none;
  z-index: 0;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32)),
    radial-gradient(circle at 45% 32%, rgba(33, 191, 115, 0.42), transparent 34%),
    radial-gradient(circle at 74% 16%, rgba(16, 43, 75, 0.25), transparent 32%),
    repeating-radial-gradient(ellipse at center, rgba(16, 43, 75, 0.11) 0 1px, transparent 1px 8px);
  filter: saturate(1.15);
  transition: transform 0.18s linear;
  will-change: transform;
}

.curtain-panel-left {
  left: 0;
  transform: translateX(var(--curtain-left));
  border-right: 1px solid rgba(16, 43, 75, 0.08);
}

.curtain-panel-right {
  right: 0;
  transform: translateX(var(--curtain-right));
  border-left: 1px solid rgba(16, 43, 75, 0.08);
}

.services-curtain-content {
  position: relative;
  z-index: 1;
  opacity: var(--curtain-opacity);
  transform: translateY(var(--curtain-y));
  transition: opacity 0.2s linear, transform 0.2s linear;
}

.services-curtain-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.services-curtain-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.services-curtain-head p:last-child {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.24rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem) clamp(1rem, 3vw, 3rem);
}

.services-grid.services-grid--hub {
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
}

.services-grid.services-grid--hub-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 36rem;
}

.services-grid.services-grid--hub-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.services-grid.services-grid--hub .service-card.has-cover {
  min-height: 13rem;
  padding-right: 2.2rem;
}

.services-grid.services-grid--hub .service-card.has-cover strong,
.services-grid.services-grid--hub .service-card.has-cover > span:last-of-type {
  max-width: 100%;
}

.services-grid.services-grid--hub .service-card.has-cover::before {
  left: 22%;
}

.services-grid.services-grid--hub .service-card strong {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
}

.services-grid.services-grid--hub .service-card span:last-child {
  font-size: 0.88rem;
}

.hub-related-head {
  margin-top: 2.75rem;
}

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem 0.75rem;
  align-items: start;
  min-height: 8.5rem;
  padding: 1.2rem 3rem 1.2rem 0;
  border-top: 1px solid rgba(16, 43, 75, 0.12);
  color: var(--ink);
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-card::after {
  content: "↗";
  position: absolute;
  top: 1rem;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(16, 43, 75, 0.08);
  font-size: 0.85rem;
}

.service-card.has-cover {
  min-height: 11rem;
  padding-right: 3.4rem;
}

.service-card.has-cover,
.project-row.has-cover,
.page-split.has-cover,
.project-detail.has-cover {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.service-card.has-cover::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 46%;
  z-index: 0;
  background-image: var(--cover-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transform-origin: center right;
  filter: saturate(1.06) contrast(1.03);
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 16%,
    rgba(0, 0, 0, 0.82) 40%,
    #000 62%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 16%,
    rgba(0, 0, 0, 0.82) 40%,
    #000 62%
  );
  animation: none;
  pointer-events: none;
}

.service-card.has-cover.is-cover-ready::before {
  opacity: 1;
  animation: project-cover-drift 22s ease-in-out infinite alternate;
}

.service-card.has-cover .service-dot,
.service-card.has-cover strong,
.service-card.has-cover span {
  position: relative;
  z-index: 1;
}

.service-card.has-cover strong,
.service-card.has-cover > span:last-of-type {
  max-width: min(100%, 18rem);
}

.service-card.has-cover:hover::before {
  filter: saturate(1.12) contrast(1.05);
  animation-duration: 14s;
}

.service-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
}

.service-dot {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--service-accent, var(--accent));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--service-accent, var(--accent)) 16%, transparent);
}

.service-card strong {
  display: block;
  grid-column: 2 / 3;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.1;
  font-weight: 600;
}

.service-card span:last-child {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section {
  padding: 4rem 0 1rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2,
.page-intro h1,
.project-detail h1,
.steps h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6rem;
}

.section-head p,
.page-intro p {
  color: var(--muted);
  margin: 0;
  max-width: 40rem;
}

.section-head--sub {
  margin-top: 3rem;
}

.section-head--sub h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.case-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.case-study {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.35rem;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 252, 0.82)),
    var(--bg-panel);
  box-shadow: 0 18px 54px rgba(16, 43, 75, 0.1);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  min-height: 14rem;
}

.case-study.has-cover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 52%;
  z-index: 0;
  background-image: var(--cover-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transform-origin: center right;
  filter: saturate(1.05) contrast(1.02);
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.28) 12%,
    rgba(0, 0, 0, 0.82) 38%,
    #000 60%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.28) 12%,
    rgba(0, 0, 0, 0.82) 38%,
    #000 60%
  );
  pointer-events: none;
}

.case-study.has-cover.is-cover-ready::after {
  opacity: 1;
}

.case-study-index,
.case-study-body {
  position: relative;
  z-index: 1;
}

.case-study-index {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  line-height: 1;
  padding-top: 0.35rem;
}

.case-study-body {
  max-width: min(100%, 40rem);
}

.case-study-body .project-topline {
  margin-bottom: 0.35rem;
}

.case-facts {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.15rem;
}

.case-fact {
  display: grid;
  gap: 0.2rem;
}

.case-fact dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
}

.case-fact dd {
  margin: 0;
  color: rgba(16, 43, 75, 0.82);
  font-size: 0.98rem;
  line-height: 1.5;
}

.project-detail .case-facts {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.project-rail--cta {
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}

.project-row.is-case .case-facts {
  margin-top: 0.75rem;
}

.project-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  min-height: 100%;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 252, 0.7)),
    var(--bg-panel);
  box-shadow: 0 18px 54px rgba(16, 43, 75, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.project-row::before {
  content: "";
  display: block;
  width: 3rem;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.project-row.has-cover {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 252, 0.88)),
    var(--bg-panel);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  min-height: 18rem;
}

.project-row.has-cover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 48%;
  z-index: 0;
  background-image: var(--cover-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transform-origin: center right;
  filter: saturate(1.06) contrast(1.03);
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 14%,
    rgba(0, 0, 0, 0.85) 36%,
    #000 58%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 14%,
    rgba(0, 0, 0, 0.85) 36%,
    #000 58%
  );
  animation: none;
  pointer-events: none;
}

.project-row.has-cover.is-cover-ready::after {
  opacity: 1;
  animation: project-cover-drift 22s ease-in-out infinite alternate;
}

.project-row.has-cover .project-index,
.project-row.has-cover .project-body,
.project-row.has-cover::before {
  position: relative;
  z-index: 1;
}

.project-row.has-cover .project-body {
  max-width: min(100%, 28rem);
}

.project-row.has-cover .project-body p,
.project-row.has-cover .project-stack {
  color: rgba(16, 43, 75, 0.78);
}

.project-row.has-cover .project-subtitle {
  color: rgba(16, 43, 75, 0.92);
}

.project-row.has-cover .status-pill {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
}

.project-row:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 184, 200, 0.34);
  background:
    linear-gradient(135deg, rgba(21, 184, 200, 0.1), rgba(255, 255, 255, 0.9)),
    var(--bg-panel);
  box-shadow: 0 24px 68px rgba(16, 43, 75, 0.14);
}

.project-row.has-cover:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 252, 0.9)),
    var(--bg-panel);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.project-row.has-cover:hover::after {
  filter: saturate(1.12) contrast(1.05);
  animation-duration: 14s;
}

@keyframes project-cover-drift {
  0% {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.12) translate3d(-1.2%, 1%, 0);
  }
  100% {
    transform: scale(1.08) translate3d(1%, -0.8%, 0);
  }
}

.project-index {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.95;
}

.project-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.project-topline h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}

.project-subtitle {
  color: var(--ink);
  opacity: 0.9;
  margin: 0 0 0.4rem;
}

.project-body p { margin: 0 0 0.55rem; color: var(--muted); }

.project-stack {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--accent) !important;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.text-link:hover { border-bottom-color: currentColor; }
.text-link.accent { color: var(--accent); }

.status-pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.status-live { color: var(--ok); border-color: rgba(124,185,138,0.35); }
.status-demo { color: var(--accent); border-color: rgba(21,184,200,0.35); }

.your-platform-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-content: start;
  min-height: 100%;
  margin: 0;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid rgba(21, 184, 200, 0.28);
  border-radius: 1.15rem;
  background:
    linear-gradient(110deg, rgba(21, 184, 200, 0.16), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(56, 168, 255, 0.2), transparent 28%),
    radial-gradient(circle at 18% 100%, rgba(16, 43, 75, 0.12), transparent 36%),
    var(--bg-elevated);
  box-shadow: 0 18px 54px rgba(16, 43, 75, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.your-platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 184, 200, 0.45);
  box-shadow: 0 28px 72px rgba(16, 43, 75, 0.16);
}

.your-platform-card::before {
  content: "";
  position: absolute;
  width: min(44vw, 18rem);
  aspect-ratio: 1;
  right: -12%;
  bottom: -38%;
  background: url("../img/djasen-studio-lite.4ee82395ef00.webp") center / contain no-repeat;
  opacity: 0.08;
  filter: blur(1px);
  pointer-events: none;
  animation: logo-float-a 18s ease-in-out infinite;
}

.your-platform-card .project-index {
  position: relative;
  z-index: 1;
  color: #15b8c8;
}

.your-platform-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  max-width: none;
}

.your-platform-copy .eyebrow {
  margin: 0;
}

.your-platform-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.your-platform-copy > p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.platform-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: none;
}

.platform-capabilities span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid rgba(21, 184, 200, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.your-platform-card .btn {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 0.35rem;
  white-space: nowrap;
}

.strip {
  margin-top: 2rem;
}

.strip-inner {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(21, 184, 200, 0.2);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(21,184,200,0.15), transparent 34%),
    linear-gradient(120deg, rgba(16,43,75,0.08), transparent 52%),
    var(--bg-elevated);
  box-shadow: 0 24px 70px rgba(16, 43, 75, 0.1);
}

.strip-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
}

.strip-inner p {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.2rem;
}

.project-detail .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin: 1rem 0 1.4rem;
}

.project-detail.has-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
  position: relative;
}

.project-detail-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.project-detail-visual {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  min-height: min(62vh, 28rem);
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%),
    radial-gradient(
      ellipse 82% 78% at 55% 48%,
      #000 36%,
      rgba(0, 0, 0, 0.8) 58%,
      rgba(0, 0, 0, 0.28) 78%,
      transparent 96%
    );
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%),
    radial-gradient(
      ellipse 82% 78% at 55% 48%,
      #000 36%,
      rgba(0, 0, 0, 0.8) 58%,
      rgba(0, 0, 0, 0.28) 78%,
      transparent 96%
    );
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect;
}

.project-detail-cover {
  width: 100%;
  height: 100%;
  min-height: min(62vh, 28rem);
  background-image: var(--cover-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transform-origin: center right;
  filter: saturate(1.05) contrast(1.02);
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: none;
  box-shadow: 0 24px 60px rgba(16, 43, 75, 0.12);
}

.project-detail.has-cover.is-cover-ready .project-detail-cover {
  opacity: 1;
  animation: project-cover-drift 22s ease-in-out infinite alternate;
}

.project-detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.72) 0%,
      rgba(255, 253, 248, 0.18) 28%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 70% 68% at 58% 48%,
      transparent 42%,
      rgba(255, 253, 248, 0.2) 72%,
      rgba(255, 253, 248, 0.82) 100%
    );
}

.prose, .prose-wide, .description {
  color: var(--muted);
  max-width: 46rem;
}

.project-detail.has-cover .prose,
.project-detail.has-cover .description {
  max-width: none;
}

/* About / Contact: cover on the right half (same as project-detail). */
.page-split.has-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: start;
  position: relative;
}

.page-split-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-split-copy > .section {
  margin: 0;
  padding-block: 0;
}

.page-split-visual {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  min-height: min(58vh, 26rem);
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%),
    radial-gradient(
      ellipse 82% 78% at 55% 48%,
      #000 36%,
      rgba(0, 0, 0, 0.8) 58%,
      rgba(0, 0, 0, 0.28) 78%,
      transparent 96%
    );
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%),
    radial-gradient(
      ellipse 82% 78% at 55% 48%,
      #000 36%,
      rgba(0, 0, 0, 0.8) 58%,
      rgba(0, 0, 0, 0.28) 78%,
      transparent 96%
    );
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect;
}

.page-split-cover {
  width: 100%;
  height: 100%;
  min-height: min(58vh, 26rem);
  background-image: var(--cover-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transform-origin: center right;
  filter: saturate(0.78) contrast(0.82) brightness(1.08);
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: none;
  box-shadow: 0 24px 60px rgba(16, 43, 75, 0.08);
}

.page-split.has-cover.is-cover-ready .page-split-cover {
  opacity: 0.72;
  animation: project-cover-drift 22s ease-in-out infinite alternate;
}

.page-split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.82) 0%,
      rgba(255, 253, 248, 0.35) 32%,
      rgba(255, 253, 248, 0.12) 58%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 72% 70% at 58% 48%,
      transparent 36%,
      rgba(255, 253, 248, 0.28) 68%,
      rgba(255, 253, 248, 0.88) 100%
    );
}

.page-split .contact-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.mini-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.mini-list.mini-list--tasks {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.mini-list.mini-list--tasks .mini-item {
  padding: 0.9rem 0.85rem;
}

.mini-list.mini-list--tasks .mini-item strong {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.25;
}

.mini-list.mini-list--tasks .mini-item span {
  font-size: 0.82rem;
  line-height: 1.4;
}

.mini-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 0 0.75rem 0.75rem 0;
}

.mini-item span { color: var(--muted); font-size: 0.92rem; }

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.step-list li {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.step-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
}

.contact-aside p {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.2rem;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.contact-channels > .protected-contact,
.contact-channels > .contact-channel {
  margin: 0;
  min-width: 0;
}

.contact-channels .contact-revealed,
.contact-channels .contact-channel > a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-aside .contact-label,
.contact-aside .contact-label-text,
.protected-contact > .contact-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
}

.contact-channel--email .contact-icon { color: var(--accent); }
.contact-channel--whatsapp .contact-icon { color: #25d366; }
.contact-channel--telegram .contact-icon { color: #229ed9; }
.contact-channel--linkedin .contact-icon { color: #0a66c2; }

.protected-contact {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.reveal-contact {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.reveal-contact:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.contact-revealed {
  color: var(--ink);
  font-weight: 600;
  width: fit-content;
}

.footer-protected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-protected .protected-contact {
  margin: 0;
  display: inline-flex;
}

.footer-protected .protected-contact > span {
  display: none;
}

.footer-protected .reveal-contact {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form-shell {
  position: relative;
  min-width: 0;
}

.solution-lead {
  margin: 0 0 1.75rem;
  max-width: none;
  width: 100%;
}

.solution-lead h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.lead-channel {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.lead-channel__legend {
  padding: 0;
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.lead-channel__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.lead-channel__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #0b1d31);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lead-channel__option:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent, #15b8c8) 55%, var(--line));
  background: color-mix(in srgb, var(--accent, #15b8c8) 12%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #15b8c8) 25%, transparent);
}

.lead-channel__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-channel__hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.lead-channel__error {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #b42318;
}

.lead-channel__error[hidden],
.lead-channel-done[hidden] {
  display: none !important;
}

.lead-channel-done {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid color-mix(in srgb, #12b76a 40%, var(--line));
  background: color-mix(in srgb, #12b76a 12%, white);
  color: #027a48;
  font-size: 0.92rem;
  line-height: 1.4;
}

.solution-lead textarea[name="message"] {
  min-height: calc((3lh + 1.6rem) * 2);
}

.solution-lead__invite {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent, #15b8c8) 35%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--accent, #15b8c8) 10%, transparent);
}

.solution-lead__invite.is-active {
  animation: solution-invite-pulse 2.4s ease-in-out infinite;
}

.solution-lead__invite.is-done,
.solution-lead__invite[hidden] {
  display: none !important;
  animation: none;
}

.solution-lead__invite p {
  margin: 0 0 0.65rem;
  color: var(--text, #0b1d31);
  font-size: 0.92rem;
  line-height: 1.4;
}

.solution-lead__invite-btn {
  width: 100%;
  justify-content: center;
}

.solution-lead__invite.is-done .solution-lead__invite-btn {
  display: none;
}

.solution-lead__clear-btn {
  display: none;
  width: 100%;
  justify-content: center;
  margin: 0;
}

.solution-lead__clear-btn:not([hidden]) {
  display: inline-flex;
}

.solution-lead__message-shell {
  display: grid;
  gap: 0.35rem;
}

.solution-lead__message-shell-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.solution-lead__message-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--accent, #15b8c8) 28%, var(--line));
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent, #15b8c8) 10%, transparent);
}

.solution-lead .field--task-desc {
  gap: 0.4rem;
}

.solution-lead .field--task-desc span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink, #0b1d31);
}

.solution-lead .field--task-desc textarea {
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  min-height: calc((3lh + 1.6rem) * 2);
  background: color-mix(in srgb, var(--accent, #15b8c8) 4%, white);
}

.interest-md-block {
  margin: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #15b8c8) 16%, var(--line));
}

.interest-md-block[hidden] {
  display: none !important;
}

.interest-md-block__panel {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.interest-md-block__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--ink, #0b1d31);
}

.interest-md-block__rows {
  display: grid;
  gap: 0.55rem;
}

.interest-md-row {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--accent, #15b8c8) 14%, var(--line));
}

.interest-md-block__rows .interest-md-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.interest-md-row__label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.interest-md-row__value {
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink, #0b1d31);
}

.interest-md-row--l1 .interest-md-row__label {
  font-size: 0.78rem;
}

.interest-md-row--l1 .interest-md-row__value {
  font-size: 1.12rem;
}

.interest-md-row--l2 .interest-md-row__label {
  font-size: 0.72rem;
}

.interest-md-row--l2 .interest-md-row__value {
  font-size: 0.98rem;
}

.interest-md-row--l3 .interest-md-row__label {
  font-size: 0.68rem;
}

.interest-md-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.interest-md-card__list li {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #15b8c8) 14%, white);
  color: var(--ink, #0b1d31);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.interest-md-row--l3 .interest-md-card__list li {
  font-size: 0.8rem;
}

.interest-md-block .solution-lead__clear-btn {
  margin-top: 0.15rem;
}

@keyframes solution-invite-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #15b8c8) 0%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent, #15b8c8) 18%, transparent); }
}

.ai-interest.is-invite-target {
  outline: 2px solid color-mix(in srgb, var(--accent, #15b8c8) 55%, transparent);
  outline-offset: 4px;
  border-radius: 1rem;
  transition: outline-color 0.3s ease;
}

.contact-moderation-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(11, 29, 49, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.contact-moderation-modal[hidden] {
  display: none !important;
}

.contact-moderation-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-moderation-modal__panel {
  width: min(100%, 26rem);
  padding: 0;
  border-radius: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(183, 75, 61, 0.35);
  box-shadow: 0 18px 40px rgba(11, 29, 49, 0.22);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.contact-moderation-modal.is-visible .contact-moderation-modal__panel {
  transform: translateY(0) scale(1);
}

.contact-moderation-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.35rem;
}

.contact-moderation-modal__header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--danger);
}

.contact-moderation-modal__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.contact-moderation-modal__body {
  padding: 0.35rem 1rem 0.75rem;
}

.contact-moderation-modal__body p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-moderation-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem 1rem;
}

body.contact-modal-open {
  overflow: hidden;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.field span { font-size: 0.9rem; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-error { color: var(--danger); font-size: 0.85rem; font-style: normal; }

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-brand p {
  margin: 0.2rem 0 0;
}

.footer-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.footer-meta > a {
  white-space: nowrap;
  font-size: 0.88rem;
}

.footer-meta > .protected-contact {
  display: inline-flex;
  align-items: center;
  margin: 0;
  gap: 0.35rem;
}

.footer-meta > .protected-contact > .contact-label {
  display: inline-flex;
}

.footer-meta > .protected-contact .contact-label-text {
  display: none;
}

.footer-meta > .protected-contact .reveal-contact,
.footer-meta > .protected-contact .contact-revealed {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  margin: 0;
}

.footer-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-size: 0.88rem;
}

.footer-channel .contact-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.flash-stack { margin: 0.5rem 0 0; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  background: rgba(124,185,138,0.15);
  border: 1px solid rgba(124,185,138,0.35);
}
.flash-warning,
.flash-error {
  background: rgba(196, 120, 72, 0.14);
  border-color: rgba(196, 120, 72, 0.4);
  color: #5c3a1e;
}
.flash-error {
  background: rgba(180, 72, 72, 0.12);
  border-color: rgba(180, 72, 72, 0.4);
  color: #5c2020;
}

.empty-note { color: var(--muted); }

.reveal {
  animation: rise 0.7s ease var(--delay, 0s) forwards;
}

body.reveal-ready .reveal-target {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease,
    filter 0.72s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform, filter;
}

body.reveal-ready .reveal-target.is-inview {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

body.reveal-ready .reveal-child {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.58s ease, transform 0.58s ease;
  transition-delay: calc(var(--delay, 0s) + var(--child-delay, 0s) + 0.08s);
}

body.reveal-ready .is-inview .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

body.reveal-ready .project-row::before {
  width: 0;
  transition: width 0.7s ease var(--delay, 0s);
}

body.reveal-ready .project-row.is-inview::before {
  width: 3rem;
}

.project-row.is-inview:hover {
  transform: translateY(-3px);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes logo-float-a {
  0%, 100% { transform: translate(0, 0) rotate(14deg) scale(1); }
  50% { transform: translate(-18px, 16px) rotate(20deg) scale(1.08); }
}

@keyframes logo-float-b {
  0%, 100% { transform: translate(0, 0) rotate(-18deg) scale(0.86); }
  50% { transform: translate(22px, -14px) rotate(-25deg) scale(0.94); }
}

@keyframes pulse-mark {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px rgba(21, 184, 200, 0.08); }
}

@keyframes page-logo-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(12deg) scale(1); }
  50% { transform: translate3d(-2.5rem, 2rem, 0) rotate(18deg) scale(1.06); }
}

@keyframes page-aurora {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  to { transform: translate3d(1.5rem, -1rem, 0) scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce), (max-width: 900px) {
  .service-card.has-cover.is-cover-ready::before,
  .project-row.has-cover.is-cover-ready::after,
  .page-split.has-cover.is-cover-ready .page-split-cover,
  .project-detail.has-cover.is-cover-ready .project-detail-cover {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  body.reveal-ready .reveal-target,
  body.reveal-ready .reveal-child,
  body.reveal-ready .project-row::before,
  .project-row.has-cover::after,
  .service-card.has-cover::before,
  .project-detail-cover,
  .page-split-cover,
  .hero-glass {
    animation: none;
  }

  body.reveal-ready .reveal-target,
  body.reveal-ready .reveal-child,
  body.reveal-ready .project-row::before {
    transition: none;
  }

  .project-row.has-cover::after,
  .service-card.has-cover::before {
    transform: scale(1.06);
  }

  .hero-glass {
    transform: scale(1.08);
  }
}

@media (max-width: 1020px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid--pillars {
    grid-template-columns: 1fr;
  }

  .services-grid.services-grid--hub-1 {
    max-width: none;
  }

  .services-grid.services-grid--hub-3,
  .services-grid.services-grid--hub-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-list.mini-list--tasks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— GDPR cookie consent —— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  z-index: 1000;
  margin: 0;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  width: 100%;
  margin: 0;
  padding: 1.1rem clamp(1rem, 3vw, 2rem);
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(18, 24, 20, 0.97);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.cookie-banner__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 72ch;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.cookie-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1408;
}

.cookie-btn--primary:hover { filter: brightness(1.05); color: #1a1408; }

.cookie-btn--secondary {
  background: rgba(243, 239, 230, 0.08);
}

.cookie-btn--secondary:hover,
.cookie-btn--ghost:hover {
  border-color: rgba(243, 239, 230, 0.28);
  background: rgba(243, 239, 230, 0.1);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(6, 10, 8, 0.62);
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* class { display } overrides UA [hidden]{display:none} — without this the
   invisible modal still covers the page and swallows all clicks */
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal:not(.is-visible) {
  pointer-events: none;
}

.cookie-modal.is-visible { opacity: 1; }

.cookie-modal__panel {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 1rem 1rem 0.75rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(16px);
  transition: transform 0.22s ease;
}

.cookie-modal.is-visible .cookie-modal__panel { transform: translateY(0); }

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.5rem;
}

.cookie-modal__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.cookie-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.cookie-modal__body { padding: 0.5rem 1.25rem 1rem; }
.cookie-modal__intro { color: var(--muted); font-size: 0.92rem; }

.cookie-cat {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.cookie-cat__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.cookie-cat p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.cookie-cat__badge {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.72rem;
  color: var(--ok);
  vertical-align: middle;
}

.cookie-switch {
  position: relative;
  width: 2.6rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.15);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-switch span::after {
  content: "";
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  top: 0.12rem;
  left: 0.14rem;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: rgba(21, 184, 200, 0.45);
  border-color: var(--accent);
}

.cookie-switch input:checked + span::after {
  transform: translateX(1.1rem);
}

.cookie-switch--locked span {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(124, 185, 138, 0.25);
  border-color: rgba(124, 185, 138, 0.45);
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.85rem 1.25rem 1.2rem;
  border-top: 1px solid var(--line);
}

body.cookie-modal-open { overflow: hidden; }

.legal-page { max-width: 42rem; }
.legal-stack { display: grid; gap: 1.5rem; margin-top: 2rem; }
.legal-stack article h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.legal-stack ul { margin: 0.4rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.legal-stack p { color: var(--muted); margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
    gap: 1.25rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    order: -1;
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }

  .hero-glass {
    max-height: 16rem;
    animation: none;
  }

  .project-detail.has-cover {
    grid-template-columns: 1fr;
  }

  .project-detail-visual {
    position: relative;
    top: auto;
    order: -1;
    min-height: 14rem;
    max-width: 28rem;
    width: 100%;
    margin-inline: auto;
  }

  .project-detail-cover {
    min-height: 14rem;
    animation: none;
  }

  .page-split.has-cover {
    grid-template-columns: 1fr;
  }

  .page-split-visual {
    position: relative;
    top: auto;
    order: -1;
    min-height: 14rem;
    max-width: 28rem;
    width: 100%;
    margin-inline: auto;
  }

  .page-split-cover {
    min-height: 14rem;
    animation: none;
  }

  .services-curtain {
    min-height: auto;
    padding-block: 3rem;
  }

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

  .services-grid.services-grid--hub-1,
  .services-grid.services-grid--hub-3,
  .services-grid.services-grid--hub-4 {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .mini-list,
  .mini-list.mini-list--tasks {
    grid-template-columns: 1fr;
  }

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

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

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

  .case-study {
    grid-template-columns: 1fr;
  }

  .case-study.has-cover::after {
    left: 38%;
  }

  .case-study-body {
    max-width: min(100%, 24rem);
  }

  .project-row.has-cover .project-body {
    max-width: min(100%, 22rem);
  }

  .project-row.has-cover::after {
    left: 42%;
  }

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

  .your-platform-card .btn {
    width: fit-content;
  }

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

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

  .site-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    top: 0;
  }

  .site-nav,
  .site-actions {
    justify-self: stretch;
    width: 100%;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-actions {
    justify-content: space-between;
  }

  .site-footer {
    align-items: flex-start;
  }

  .footer-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transform: translateY(12px);
  }

  .cookie-banner.is-visible { transform: translateY(0); }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 1.15rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .cookie-banner__actions .cookie-btn { width: 100%; }
}

/* —— Chat & AI Assistant widget —— */
.studio-chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  font-family: var(--sans);
}
.studio-chat-widget.is-open {
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.studio-chat-toggle {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, var(--navy), #1d4f86);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(16, 43, 75, 0.28);
  cursor: pointer;
  flex: 0 0 auto;
}
.studio-chat-panel {
  width: min(380px, calc(100vw - 2rem));
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(11, 29, 49, 0.22);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.studio-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.65rem;
  background: linear-gradient(135deg, rgba(16, 43, 75, 0.96), rgba(29, 79, 134, 0.92));
  color: #fff;
}
.studio-chat-header strong { font-size: 1rem; }
.studio-chat-sub { margin: 0.2rem 0 0; font-size: 0.78rem; opacity: 0.85; }
.studio-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.studio-chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.studio-chat-tabs[hidden] {
  display: none !important;
}
.studio-chat-tabs button {
  border: 0;
  background: transparent;
  padding: 0.65rem;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.studio-chat-tabs button.is-active {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.studio-chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* class display:flex overrides UA [hidden] — force hide inactive panels */
.studio-chat-widget[hidden],
.studio-chat-panel[hidden],
.studio-chat-body[hidden],
.studio-chat-hint[hidden],
.studio-chat-invite[hidden] {
  display: none !important;
}
.studio-chat-invite {
  position: fixed;
  left: 75%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 85;
  width: min(600px, calc(50vw - 2.5rem));
  max-width: calc(100vw - 2rem);
  padding: 2rem 2.2rem 2.1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 28px 60px rgba(11, 29, 49, 0.24);
  backdrop-filter: blur(10px);
  animation: studio-chat-invite-in 0.35s ease-out;
  cursor: pointer;
}
.studio-chat-invite-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.studio-chat-invite-title {
  margin: 0 2rem 0.7rem 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--navy);
  line-height: 1.2;
}
.studio-chat-invite-text {
  margin: 0 0 1.5rem;
  font-size: 1.76rem;
  color: var(--muted);
  line-height: 1.4;
}
.studio-chat-invite-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, var(--navy), #1d4f86);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1.76rem;
  cursor: pointer;
}
@keyframes studio-chat-invite-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.studio-chat-widget.is-open .studio-chat-invite {
  display: none !important;
}
.studio-chat-body:not(.is-active) {
  display: none !important;
}
.studio-chat-body.is-active {
  display: flex;
}
.studio-chat-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem 0;
}
.studio-chat-meta input,
.studio-chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.studio-chat-messages {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(238, 243, 248, 0.55), transparent);
}
.studio-chat-bubble {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.studio-chat-bubble.is-visitor,
.studio-chat-bubble.is-user {
  align-self: flex-end;
  background: rgba(21, 184, 200, 0.12);
  border-color: rgba(21, 184, 200, 0.28);
}
.studio-chat-bubble.is-staff,
.studio-chat-bubble.is-assistant {
  align-self: flex-start;
}
.studio-chat-bubble-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.studio-chat-bubble p,
.studio-chat-bubble .studio-chat-md {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.studio-chat-bubble .studio-chat-md {
  white-space: normal;
}
.studio-chat-bubble .studio-chat-md br {
  display: block;
  content: "";
  margin-top: 0.15em;
}
.studio-chat-bubble .studio-chat-md ul {
  margin: 0.35em 0 0.15em;
  padding-left: 1.15em;
}
.studio-chat-bubble .studio-chat-md li {
  margin: 0.15em 0;
}
.studio-chat-bubble .studio-chat-md strong {
  font-weight: 700;
}
.studio-chat-bubble .studio-chat-md em {
  font-style: italic;
}
.studio-chat-bubble .studio-chat-md code,
.studio-chat-bubble .studio-chat-md .md-pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(10, 22, 40, 0.06);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}
.studio-chat-bubble .studio-chat-md .md-pre {
  display: block;
  padding: 0.5em 0.65em;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0.35em 0;
}
.studio-chat-bubble .studio-chat-md a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.studio-chat-bubble small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.studio-chat-md--qa {
  display: grid;
  gap: 0.65rem;
}
.studio-chat-md-block {
  min-width: 0;
}
.studio-chat-q {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.studio-chat-q__text {
  min-width: 0;
}
.studio-chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0;
}
.studio-chat-choices--inline {
  margin: 0;
}
.studio-chat-choice {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent, #15b8c8) 45%, var(--line));
  background: color-mix(in srgb, var(--accent, #15b8c8) 10%, #fff);
  color: var(--ink, #0b1d31);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.studio-chat-choice:hover {
  background: color-mix(in srgb, var(--accent, #15b8c8) 18%, #fff);
  border-color: color-mix(in srgb, var(--accent, #15b8c8) 70%, var(--line));
}
.studio-chat-choice.is-picked {
  background: color-mix(in srgb, var(--accent, #15b8c8) 28%, #fff);
  border-color: color-mix(in srgb, var(--accent, #15b8c8) 80%, var(--line));
}
.studio-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.studio-chat-form button {
  border: 0;
  border-radius: 10px;
  padding: 0 0.95rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.studio-chat-hint {
  margin: 0;
  padding: 0 0.75rem 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .studio-chat-invite {
    left: 50%;
    width: min(560px, calc(100vw - 2rem));
    padding: 1.5rem 1.6rem 1.55rem;
  }
  .studio-chat-invite-title { font-size: 1.85rem; }
  .studio-chat-invite-text { font-size: 1.25rem; }
  .studio-chat-invite-cta {
    padding: 0.85rem 1.4rem;
    font-size: 1.25rem;
  }
}
@media (max-width: 640px) {
  .studio-chat-widget { right: 0.75rem; bottom: 0.75rem; }
  .studio-chat-widget.is-open { top: 0.5rem; }
  .studio-chat-panel {
    width: calc(100vw - 1.5rem);
    border-radius: 14px;
  }
  .studio-chat-meta { grid-template-columns: 1fr; }
  .studio-chat-invite {
    left: 50%;
    top: auto;
    bottom: 5.5rem;
    transform: translateX(-50%);
    width: calc(100vw - 1.5rem);
    padding: 1.25rem 1.3rem;
  }
  .studio-chat-invite-title { font-size: 1.55rem; margin-right: 1.5rem; }
  .studio-chat-invite-text { font-size: 1.05rem; margin-bottom: 1rem; }
  .studio-chat-invite-cta {
    width: 100%;
    padding: 0.75rem 1.1rem;
    font-size: 1.05rem;
  }
  @keyframes studio-chat-invite-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%); }
  }
}

/* —— Unlisted CV page —— */
.cv-page {
  display: grid;
  gap: 2rem;
}

.cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.cv-hero.has-photo {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.cv-photo-wrap {
  flex-shrink: 0;
}

.cv-photo {
  display: block;
  width: clamp(7.5rem, 14vw, 10.5rem);
  height: clamp(7.5rem, 14vw, 10.5rem);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: 0 10px 28px rgba(11, 29, 49, 0.1);
}

.cv-hero h1 {
  margin: 0.2rem 0 0.35rem;
}

.cv-headline {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.cv-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.95rem;
  max-width: 48rem;
}

.cv-availability .status-pill {
  flex-shrink: 0;
  font-weight: 700;
  background: rgba(47, 140, 88, 0.1);
}

.cv-availability-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.cv-open-to-work {
  border: 1px solid rgba(47, 140, 88, 0.28);
  background: rgba(47, 140, 88, 0.06);
}

.cv-open-to-work p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.cv-open-to-work .btn {
  margin-top: 0.15rem;
}

.cv-hero .lead {
  margin: 0;
  max-width: 54rem;
}

.cv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 2rem;
  align-items: start;
}

.cv-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 5.5rem; /* clears the sticky site header */
}

.cv-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg-panel);
}

.cv-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-contacts {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.cv-meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.cv-meta-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
}

.cv-meta-list span {
  color: var(--muted);
}

.cv-meta-list a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.cv-education-school {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.cv-education-degree {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cv-period {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cv-main {
  display: grid;
  gap: 2.25rem;
}

.cv-block .section-head {
  margin-bottom: 1rem;
}

.cv-block .section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
}

.cv-plain-list,
.cv-check-list,
.cv-cert-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.cv-plain-list li,
.cv-check-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.cv-plain-list li::before,
.cv-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.cv-check-list {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.6rem 1.5rem;
}

.cv-stack {
  margin: 0;
  display: grid;
  gap: 0;
}

.cv-stack-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

.cv-stack-row:last-child {
  border-bottom: 1px solid var(--line);
}

.cv-stack dt {
  font-weight: 600;
  font-size: 0.9rem;
}

.cv-stack dd {
  margin: 0;
  color: var(--muted);
}

.cv-timeline {
  margin: 0;
  padding: 0 0 0 1.4rem;
  list-style: none;
  display: grid;
  gap: 1.6rem;
  border-left: 1px solid var(--line);
}

.cv-job {
  position: relative;
}

.cv-job::before {
  content: "";
  position: absolute;
  left: -1.78rem;
  top: 0.45rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--line);
}

.cv-job.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cv-job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.cv-job-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cv-company {
  margin: 0.15rem 0 0.7rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.cv-cert-list {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.7rem 1.25rem;
}

.cv-cert-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 0 0.75rem 0.75rem 0;
}

.cv-cert-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.cv-references {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 1020px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .cv-aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: start;
  }
}

@media (max-width: 860px) {
  .cv-hero.has-photo {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cv-hero.has-photo .cv-hero-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cv-hero,
  .cv-hero.has-photo {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cv-photo {
    width: 7.25rem;
    height: 7.25rem;
  }

  .cv-hero-actions .btn {
    flex: 1 1 12rem;
    justify-content: center;
  }

  .cv-stack-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media print {
  .cv-body::before,
  .cv-body::after,
  .cv-body .site-header,
  .cv-body .site-footer,
  .cv-body .cv-hero-actions,
  .cv-body .cookie-banner,
  .cv-body .cookie-modal,
  .cv-body .studio-chat-widget,
  .cv-body .studio-chat-invite,
  .cv-body .flash-stack,
  .cv-body .reveal-contact {
    display: none !important;
  }

  .cv-body {
    background: #fff;
  }

  .cv-body .page-shell {
    padding: 0;
  }

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

  .cv-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-job,
  .cv-card,
  .cv-block {
    break-inside: avoid;
  }
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  padding-top: 3rem;
}

.trust-block .section-head {
  margin-bottom: 1.35rem;
}

.trust-block .section-head h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.trust-block .section-head p {
  max-width: none;
  font-size: 0.95rem;
}

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.partner-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 0.15rem 0;
  color: inherit;
  transition: color 0.2s ease;
}

.partner-item:hover,
.partner-item:focus-visible {
  color: var(--ink);
}

.partner-item img {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.partner-item:hover img,
.partner-item:focus-visible img {
  opacity: 1;
}

.partner-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.partner-copy strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.partner-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.partner-copy > span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.trust-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 4.5rem;
  padding: 0.85rem 1.15rem;
  color: var(--ink);
  opacity: 0.78;
  filter: grayscale(0.35);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.trust-logo:hover,
.trust-logo:focus-visible {
  opacity: 1;
  filter: none;
  color: var(--ink);
  transform: translateY(-1px);
}

.trust-logo img {
  display: block;
  width: auto;
  max-width: min(11rem, 42vw);
  max-height: 3.1rem;
  object-fit: contain;
}

.trust-logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trust-logo-compact span {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.trust-logo-compact img {
  max-width: 2.4rem;
  max-height: 2.4rem;
}

.standards-section {
  padding-top: 2.5rem;
}

.standards-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.standard-item {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 0.85rem;
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
}

.standard-item:hover,
.standard-item:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
}

.standard-logo {
  display: block;
  width: 6.75rem;
  height: 6.75rem;
  object-fit: contain;
}

.standard-item .partner-copy strong {
  font-size: 1.05rem;
}

.standard-item .partner-copy > span {
  font-size: 0.88rem;
}

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

@media (max-width: 900px) {
  .trust-section {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 720px) {
  .partner-item {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .partner-item img {
    width: 3.5rem;
    height: 3.5rem;
  }

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

  .standard-item {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    align-items: start;
  }

  .standard-logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .trust-logos {
    gap: 0.75rem 1rem;
  }

  .trust-logo {
    min-height: 3.75rem;
    padding: 0.65rem 0.75rem;
  }

  .trust-logo img {
    max-height: 2.6rem;
  }
}

.page-split.has-ai-tree,
.page-split.has-interest-tree {
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  grid-template-areas:
    "intro tree"
    "copy tree";
  align-items: start;
}

.page-split.has-ai-tree .page-intro,
.page-split.has-interest-tree .page-intro {
  grid-area: intro;
}

.page-split.has-ai-tree .page-split-copy,
.page-split.has-interest-tree .page-split-copy {
  grid-area: copy;
}

.ai-interest {
  --tree-accent: #15b8c8;
  --tree-blue: #38a8ff;
  grid-area: tree;
  position: sticky;
  top: 6.5rem;
  z-index: 2;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.9));
  box-shadow: 0 18px 50px rgba(16, 43, 75, 0.06);
}

.ai-interest__head h2 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ai-interest__total,
.ai-node__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tree-accent) 16%, white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.ai-interest__head p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.ai-interest__path-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.95rem;
}

.ai-interest__path {
  flex: 1 1 12rem;
  margin: 0 !important;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--tree-accent) 10%, white);
  color: var(--navy) !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  line-height: 1.35;
}

.ai-interest__clear {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--tree-accent) 35%, var(--line));
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.ai-interest__clear:hover {
  border-color: var(--tree-accent);
  background: #fff;
}

.ai-interest__clear[hidden] {
  display: none !important;
}

.ai-interest__tree,
.ai-node__children {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ai-node {
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.ai-node[open],
.ai-node.is-open {
  border-color: color-mix(in srgb, var(--tree-accent) 45%, var(--line));
  background: #fff;
  box-shadow: inset 3px 0 0 var(--tree-accent);
}

.ai-node summary {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.72rem 0.75rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.35;
}

.ai-node summary::-webkit-details-marker {
  display: none;
}

.ai-node summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.35rem;
  margin-left: auto;
  border-right: 2px solid var(--tree-blue);
  border-bottom: 2px solid var(--tree-blue);
  transform: rotate(45deg);
  opacity: 0.8;
}

.ai-node[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.5rem;
}

.ai-node__title {
  flex: 1;
  min-width: 0;
}

.ai-node__panel {
  padding: 0 0.75rem 0.75rem;
}

.ai-node__panel > p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-node__children {
  margin-left: 0.15rem;
  padding-left: 0.65rem;
  border-left: 2px solid color-mix(in srgb, var(--tree-accent) 40%, var(--line));
}

.ai-node__consult {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.ai-node__error {
  color: var(--danger);
}

.ai-node__children--choices {
  display: grid;
  gap: 0.45rem;
}

.ai-choice {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.ai-choice__mark {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  border: 1.5px solid color-mix(in srgb, var(--tree-blue) 70%, var(--line));
  border-radius: 0.3rem;
  background: #fff;
}

.ai-choice__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ai-choice__body strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.ai-choice__body span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ai-choice.is-selected {
  border-color: color-mix(in srgb, var(--tree-accent) 55%, var(--line));
  background: color-mix(in srgb, var(--tree-accent) 8%, white);
  box-shadow: inset 3px 0 0 var(--tree-accent);
}

.ai-choice.is-selected .ai-choice__mark {
  background: var(--tree-accent);
  border-color: var(--tree-accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.ai-choice:focus-visible {
  outline: 2px solid var(--tree-blue);
  outline-offset: 2px;
}

.ai-node[data-depth="1"] > summary {
  font-size: 0.98rem;
}

.ai-node[data-depth="3"] > summary,
.ai-node[data-depth="4"] > summary,
.ai-node[data-depth="5"] > summary {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .page-split.has-ai-tree,
  .page-split.has-interest-tree {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "tree"
      "copy";
  }

  .ai-interest {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

body:has(.has-ai-tree) .studio-chat-invite,
body:has(.has-interest-tree) .studio-chat-invite {
  left: auto;
  right: 1.25rem;
  top: auto;
  bottom: 5.5rem;
  transform: none;
  width: min(18rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem 1rem;
}

body:has(.has-ai-tree) .studio-chat-invite-title,
body:has(.has-interest-tree) .studio-chat-invite-title {
  font-size: 1.35rem;
  margin-right: 1.4rem;
}

body:has(.has-ai-tree) .studio-chat-invite-text,
body:has(.has-interest-tree) .studio-chat-invite-text {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .ai-node summary::after {
    transition: none;
  }
}
