/* ============================================================
   aristarx — landing page
   Tokens sourced from Figma Variables (node 30:5170)
   ============================================================ */

:root {
  /* color */
  --bg: #000000;
  --surface: #1a1a1a;
  --surface-inverse: #ffffff;
  --on-primary: #ffffff;
  --on-secondary: #888888;
  --border: #ffffff;
  --border-lowest: rgba(255, 255, 255, 0.2);
  --accent: #73a950;
  --accent-strong: #75b74a;
  --interactive: #ffffff;
  --on-interactive: #000000;

  /* spacing scale */
  --sp-2xs: 4px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 20px;
  --sp-xl: 24px;
  --sp-2xl: 32px;
  --sp-3xl: 40px;
  --sp-4xl: 48px;
  --sp-5xl: 60px;
  --sp-6xl: 64px;
  --sp-7xl: 80px;
  --sp-8xl: 100px;
  --sp-9xl: 120px;

  /* typography */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", var(--font-body);
  --font-editorial: "Fraunces", Georgia, serif;

  /* layout */
  --page-max: 1440px;
  --gutter: var(--sp-7xl);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) so <body> stays a non-scroll container and
     position: sticky keeps working relative to the viewport */
  overflow-x: clip;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* ---------- editorial helper (Fraunces italic w/ soft-wonk axes) ---------- */
.editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
}

/* ---------- shell / sections ---------- */
.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.section {
  padding: var(--sp-9xl) var(--gutter);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9xl);
  padding: var(--sp-3xl) var(--gutter) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav a {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 20;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.6;
}

.nav__contacts {
  display: flex;
  gap: var(--sp-2xs);
  align-items: center;
}

.nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 110px;
  object-fit: cover;
}

.masthead {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  align-items: center;
  width: 100%;
}

.masthead__wordmark {
  width: 786px;
  max-width: 100%;
  height: auto;
}

.divider-solid {
  width: 100%;
  height: 4px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.divider-line {
  width: 100%;
  height: 1px;
  background: var(--border-lowest);
  border: 0;
  margin: 0;
}

.masthead__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: center;
  width: 100%;
  text-align: center;
}

.masthead__role {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 4px;
}

.masthead__tagline {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--on-secondary);
}

/* ---------- hero reveal animation ---------- */
@keyframes heroReveal {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes dividerReveal {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes fadeUpReveal {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead__wordmark {
    animation: heroReveal 1s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  }

  .masthead .divider-solid {
    transform-origin: center;
    animation: dividerReveal 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.9s both;
  }

  .masthead__role {
    animation: fadeUpReveal 0.7s ease-out 1.35s both;
  }

  .masthead__tagline {
    animation: fadeUpReveal 0.7s ease-out 1.55s both;
  }
}

/* ============================================================
   Generic two-column "label + body" row
   ============================================================ */
.split {
  display: flex;
  gap: var(--sp-9xl);
  align-items: flex-start;
  width: 100%;
}

.experience .split,
.cases .split {
  justify-content: space-between;
}

.split__label {
  flex: 0 0 200px;
  width: 200px;
}

.split__body {
  flex: 1 1 0;
  min-width: 0;
}

.section-label {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__copy {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  color: var(--on-secondary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
}

.about__copy b {
  font-weight: 400;
  color: var(--on-primary);
}

/* ============================================================
   SKILL RADAR
   ============================================================ */
.skills {
  padding: var(--sp-9xl) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4xl);
}

/* category tabs (Fraunces italic, active = white pill) */
.cols-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: rgba(26, 26, 26, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 100px;
  max-width: 100%;
}

.cols-tab {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 20;
  font-size: 20px;
  line-height: 1;
  color: var(--on-primary);
  background: transparent;
  border: 0;
  padding: 8px 22px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.cols-tab.is-active {
  background: var(--surface-inverse);
  color: var(--on-interactive, #000);
}

/* horizontal viewport that clips the (possibly wider) row of bars */
.cols {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  overflow: hidden;
}

.cols__track {
  width: max-content;
  will-change: transform;
}

.cols__svg {
  display: block;
  overflow: visible;
}

/* one bar (isometric parallelepiped) */
.col__hit {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}

.col__face {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}

.col__hidden {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

/* label block lives in an SVG foreignObject (HTML → real wrap + ellipsis) */
.col__label-fo {
  overflow: visible;
  pointer-events: none; /* hover/clicks fall through to the bar hit area */
}

.col__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.col__val {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20.8px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
}

.col__name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.38);
  /* max 2 lines, then ellipsis; long single words break instead of overflowing */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* highlighted bar */
.col.is-active .col__face {
  stroke: var(--on-primary);
  stroke-width: 1.5;
}

.col.is-active .col__top {
  fill: rgba(255, 255, 255, 0.07);
}

.col.is-active .col__val,
.col.is-active .col__name {
  color: var(--on-primary);
}

/* skill description — always centred, fixed slot */
.cols-desc {
  text-align: center;
  max-width: 400px;
  min-height: 72px;
  color: var(--on-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* prev / next arrows (mobile) */
.cols-nav {
  display: none;
  gap: 16px;
}

.cols-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-lowest);
  background: transparent;
  color: var(--on-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cols-nav__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--on-primary);
}

/* ============================================================
   STACK
   ============================================================ */
.stack__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  max-width: 600px;
  font-size: 24px;
  font-weight: 400;
}

.stack__grid span {
  color: var(--on-primary);
}

/* ============================================================
   WORKS
   ============================================================ */
.works {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7xl);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4xl);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.card__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__meta {
  display: flex;
  flex-direction: column;
}

.card__title {
  font-weight: 500;
  font-size: 16px;
  color: var(--on-primary);
}

.card__sub {
  font-weight: 400;
  font-size: 14px;
  color: var(--on-secondary);
}

.card__tags {
  display: flex;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  color: var(--on-secondary);
}


/* ============================================================
   APP GRID (client logos slider)
   ============================================================ */
.logo-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4xl);
  padding: var(--sp-3xl) 0 var(--sp-3xl) var(--gutter);
  overflow: hidden;
}

.logo-slider__track {
  display: flex;
  gap: var(--sp-4xl);
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: var(--gutter);
}

.logo-slider__track::-webkit-scrollbar {
  display: none;
}

.logo-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: center;
  flex: 0 0 112px;
  width: 112px;
}

.logo-item__img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
}

.logo-item__name {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--on-secondary);
  text-align: center;
  overflow-wrap: break-word;
}

.logo-slider__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 1;
}

.logo-slider__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg), rgba(0, 0, 0, 0));
}

.logo-slider__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.logo-slider.is-scrolled .logo-slider__fade--left {
  opacity: 1;
}

/* ============================================================
   TABLES (experience + cases)
   ============================================================ */
.data-table {
  display: flex;
  flex-direction: column;
  width: 750px;
  max-width: 100%;
}

.table-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-lg);
  align-items: baseline;
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  line-height: 1.6;
}

.table-row__role,
.table-row__company {
  flex: 1 1 0;
  min-width: 0;
  color: var(--on-primary);
}

.table-row__years {
  flex: 0 0 120px;
  width: 120px;
  text-align: right;
  color: var(--on-secondary);
}

/* cases table */
.step-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3xl);
  align-items: baseline;
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}

.step-row--link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.step-row--link:hover {
  opacity: 0.6;
}

.step-row__num {
  flex: 0 0 20px;
  width: 20px;
  font-weight: 700;
  font-size: 18px;
  color: var(--on-primary);
}

.step-row__title {
  flex: 0 0 300px;
  width: 300px;
  font-weight: 700;
  font-size: 18px;
  color: var(--on-primary);
}

.step-row__desc {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-secondary);
}

/* ============================================================
   OFFERINGS
   ============================================================ */
.offer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5xl);
}

.offer__title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 64px;
  align-items: start;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 384px;
}

/* fixed 100×69 clip container; each glyph keeps its native size + offset */
.offer-card__icon {
  position: relative;
  width: 100px;
  height: 69px;
  overflow: hidden;
}

.offer-card__icon img {
  position: absolute;
  max-width: none;
}

.offer-card__icon .ic-1 { width: 62.8px; height: 71px; left: 0; top: 0; }
.offer-card__icon .ic-2 { width: 49.8px; height: 42.3px; left: 2.62px; top: 24.7px; }
.offer-card__icon .ic-4 { width: 72.7px; height: 72.7px; left: -4.95px; top: -0.84px; }
.offer-card__icon .ic-5 { width: 97.44px; height: 74.39px; left: -1.62px; top: -1.69px; }

.offer-card__icon--outline .box {
  position: absolute;
  left: 0;
  top: 9.21px;
  width: 37.686px;
  height: 49.843px;
  border: 1px solid var(--on-primary);
  border-radius: 18px;
}

.offer-card__name {
  font-weight: 500;
  font-size: 18px;
  color: var(--on-primary);
}

.offer-card__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-secondary);
}

.offer__ai {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.offer__ai-title {
  font-weight: 600;
  font-size: 24px;
  color: var(--on-primary);
}

/* ============================================================
   CONTACT FOOTER
   ============================================================ */
.contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7xl);
  align-items: center;
  padding: var(--sp-9xl) var(--gutter);
  text-align: center;
}

.contact__avatar {
  width: 100px;
  height: 100px;
  border-radius: 250px;
  object-fit: cover;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: center;
}

.contact__label {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--on-secondary);
}

.contact__handle {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -3px;
  color: var(--on-primary);
}

.scroll-top {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.scroll-top:hover {
  opacity: 1;
}

.scroll-top img {
  width: 20px;
  height: 20px;
}

/* ============================================================
   FINAL FOOTER
   ============================================================ */
.final-footer {
  padding: 0 var(--gutter) var(--sp-9xl);
}

.final-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-8xl);
  font-size: 12px;
  color: var(--on-secondary);
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --gutter: var(--sp-3xl);
  }

  .hero {
    gap: var(--sp-7xl);
  }

  .split {
    gap: var(--sp-4xl);
  }

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

  .offer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .about__copy {
    font-size: 32px;
  }
}

/* ============================================================
   RESPONSIVE — mobile (matches adaptive frame 112:9724)
   ============================================================ */
@media (max-width: 680px) {
  :root {
    --gutter: var(--sp-xl);
  }

  .section {
    padding: var(--sp-7xl) var(--gutter);
  }

  .hero {
    padding-top: var(--sp-lg);
    gap: var(--sp-6xl);
  }

  .nav a {
    font-size: 16px;
  }

  .masthead__meta {
    text-align: left;
    align-items: flex-start;
  }

  .masthead__tagline {
    white-space: normal;
  }

  /* stack label above body everywhere */
  .split {
    flex-direction: column;
    gap: var(--sp-lg);
  }

  .split__label {
    flex-basis: auto;
    width: auto;
  }

  .about__copy {
    font-size: 24px;
  }

  .skills {
    padding: var(--sp-6xl) var(--gutter);
    gap: var(--sp-2xl);
  }

  /* mobile: smaller tabs, free native horizontal scroll, arrows */
  .cols-tabs {
    gap: 0;
    padding: 4px;
  }

  .cols-tab {
    font-size: 13px;
    padding: 8px 10px;
  }

  .cols {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cols::-webkit-scrollbar {
    display: none;
  }

  .cols-nav {
    display: flex;
  }

  .stack__grid {
    font-size: 18px;
    gap: 8px 20px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }

  .logo-slider {
    padding-left: var(--gutter);
  }

  /* tables collapse */
  .table-row {
    flex-wrap: wrap;
    font-size: 16px;
    gap: 2px var(--sp-lg);
    padding: var(--sp-md) 0;
  }

  .table-row__role {
    flex: 1 1 100%;
    font-weight: 600;
  }

  .table-row__company {
    flex: 1 1 auto;
  }

  .table-row__years {
    flex: 0 0 auto;
    width: auto;
    text-align: left;
  }

  .step-row {
    flex-direction: column;
    gap: var(--sp-sm);
  }

  .step-row__title {
    flex-basis: auto;
    width: auto;
  }

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

  .offer-card,
  .offer-card__text,
  .offer-card__name {
    max-width: 100%;
  }

  .offer__title {
    font-size: 28px;
  }

  .contact__handle {
    font-size: 44px;
    letter-spacing: -2px;
  }

  .final-footer__inner {
    flex-direction: column;
    gap: var(--sp-md);
    align-items: flex-start;
    padding-top: var(--sp-6xl);
  }
}

/* ============================================================
   PROJECT PAGE — REMI (Figma node 133:4983 / mobile 489:4137)
   ============================================================ */
.proj {
  display: flex;
  flex-direction: column;
}

.proj-topline {
  margin-top: 0;
}

.proj-hero {
  gap: var(--sp-3xl);
}

.proj-masthead {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: center;
  width: 100%;
}

/* ---------- title / back ---------- */
.proj-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3xl);
  padding: var(--sp-lg) var(--gutter);
}

.proj-title__lead {
  display: flex;
  gap: var(--sp-3xl);
  align-items: flex-start;
}

.back-btn {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.back-btn:hover {
  opacity: 1;
}

.back-btn img {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.proj-title__meta {
  display: flex;
  flex-direction: column;
}

.proj-title__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 140px;
  line-height: 0.85;
  letter-spacing: -8px;
  color: var(--on-primary);
}

.proj-title__sub {
  font-size: 14px;
  color: var(--on-secondary);
  margin-top: var(--sp-2xs);
}

.proj-title__meta .card__tags {
  margin-top: var(--sp-2xs);
}

/* Remi app icon (used in the Remi project hero) */
.remi-icon {
  position: relative;
  width: 232px;
  height: 232px;
  border-radius: 69.7px;
  background: #fb1732;
  overflow: hidden;
}

.remi-icon__gloss {
  position: absolute;
  left: -62px;
  top: -69px;
  width: 259px;
  height: 237px;
}

.remi-icon__blade {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 53px;
  filter: blur(1px);
}

.remi-icon__blade--a {
  width: 60px;
  height: 124px;
  left: 55px;
  top: 66px;
  transform: rotate(-45deg);
  filter: blur(6px);
}

.remi-icon__blade--b {
  width: 60px;
  height: 159px;
  left: 108px;
  top: 40px;
  transform: rotate(45deg);
}

/* Remi icon large variant reuses .remi-icon; base is 232px, here 120px */
.remi-icon--lg {
  width: 120px;
  height: 120px;
  border-radius: 36px;
}

.remi-icon--lg .remi-icon__gloss {
  left: -32px;
  top: -36px;
  width: 134px;
  height: auto;
}

.remi-icon--lg .remi-icon__blade--a {
  width: 31px;
  height: 64px;
  left: 28px;
  top: 34px;
}

.remi-icon--lg .remi-icon__blade--b {
  width: 31px;
  height: 82px;
  left: 56px;
  top: 20px;
}

/* ---------- phone mockup (full-device screenshot, frame baked in) ---------- */
.phone {
  position: relative;
  width: 358px;
  max-width: 86vw;
  aspect-ratio: 1137 / 2323;
  flex: 0 0 auto;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.45));
}

.phone__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- app preview ---------- */
.proj-preview {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--sp-9xl) var(--gutter);
  overflow: hidden;
}

.proj-preview__bg {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 1257px;
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.proj-preview .phone {
  position: relative;
  z-index: 1;
}

/* ---------- stack + project ---------- */
.proj-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5xl);
}

.proj-stack .stack__grid {
  font-size: 18px;
  line-height: 1.6;
}

.proj-copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4xl);
}

.proj-copy p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  color: var(--on-secondary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

.proj-copy__note {
  font-size: 20px !important;
}

.proj-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4xl);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs, 8px);
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -3px;
  color: var(--on-primary);
  white-space: nowrap;
}

.stat__label {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--on-secondary);
  max-width: 280px;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

/* ---------- centered editorial blocks ---------- */
.proj-center,
.proj-ds {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9xl);
  align-items: center;
}

.proj-center--gap-3xl {
  gap: var(--sp-3xl);
}

.proj-center__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  align-items: center;
  width: 100%;
}

.proj-display {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--on-primary);
  text-align: center;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 56;
}

.proj-display--center {
  width: 100%;
}

.proj-center__copy {
  max-width: 593px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-secondary);
  text-align: center;
}

/* ---------- real device testing ---------- */
.proj-device {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7xl);
  align-items: center;
}

.proj-device__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
  align-items: center;
  text-align: center;
  width: 100%;
}

.proj-display-sub {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--on-primary);
  max-width: 732px;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

.proj-problems {
  width: 100%;
}

.proj-problems__q {
  flex: 0 0 370px;
  width: 370px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--on-primary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

.proj-problems__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4xl);
  font-family: var(--font-body);
  font-style: normal;
  color: var(--on-secondary);
  font-variation-settings: normal;
}

.proj-problems__body > p {
  font-size: 18px;
  line-height: 1.5;
}

.proj-problems__body ul {
  margin: 0;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  font-size: 18px;
  line-height: 1.5;
}

/* ---------- ai workflow ---------- */
.proj-workflow {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9xl);
  align-items: center;
}

.wf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2xl) var(--sp-3xl);
  width: 100%;
}

.wf-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.wf-col__title {
  font-weight: 500;
  font-size: 18px;
  color: var(--on-primary);
}

.wf-msg {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
}

.wf-ava {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.wf-msg p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-secondary);
}

/* ---------- bidirectional process ---------- */
.proj-bidi {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
  align-items: center;
  padding-top: 200px;
  padding-bottom: 200px;
}

.proj-eyebrow {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--on-secondary);
}

.proj-bidi__lines {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: center;
  text-align: center;
}

.proj-bidi__lines p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--on-primary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 56;
}

/* ---------- design-system setup ---------- */
.ds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5xl) var(--sp-2xl);
  justify-content: center;
  width: 100%;
}

.ds-col {
  flex: 1 1 0;
  min-width: 350px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4xl);
  align-items: center;
}

.ds-col__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 400px;
  text-align: center;
}

.ds-col__title {
  font-weight: 500;
  font-size: 18px;
  color: var(--on-primary);
}

.ds-col__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-secondary);
}

/* ---------- more works (3-up) ---------- */
.works__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Travel Agent app icon (title logo) ---------- */
/* image fill is a full phone screen, cropped to the icon exactly as in Figma */
.ta-appicon {
  position: relative;
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 26.624px;
  overflow: hidden;
}

.ta-appicon img {
  position: absolute;
  left: -25.02%;
  top: -121.68%;
  width: 152.13%;
  height: 347.17%;
  max-width: none;
}

/* ---------- Travel Agent phone showcase (full-bleed, black) ---------- */
.ta-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: var(--sp-xl) var(--gutter);
  overflow: hidden;
}

.ta-showcase__img {
  width: 1279px;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   PROJECT PAGE — tablet
   ============================================================ */
@media (max-width: 1024px) {
  .proj-title__name {
    font-size: 104px;
    letter-spacing: -5px;
  }

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

  .works__grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-bidi {
    padding-top: var(--sp-9xl);
    padding-bottom: var(--sp-9xl);
  }
}

/* ============================================================
   PROJECT PAGE — mobile
   ============================================================ */
@media (max-width: 680px) {
  .proj-title {
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-5xl) var(--gutter);
  }

  .proj-title__lead {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-md);
    width: 100%;
  }

  .back-btn {
    align-self: flex-start;
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 16px;
  }

  .back-btn img {
    width: 14px;
    height: 14px;
  }

  .proj-title__meta {
    align-items: center;
    text-align: center;
  }

  .proj-title__meta .card__tags {
    justify-content: center;
  }

  .proj-title__name {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .remi-icon--lg {
    width: 80px;
    height: 80px;
    border-radius: 24px;
  }

  .remi-icon--lg .remi-icon__gloss {
    left: -21px;
    top: -24px;
    width: 89px;
  }

  .remi-icon--lg .remi-icon__blade--a {
    width: 21px;
    height: 43px;
    left: 19px;
    top: 23px;
  }

  .remi-icon--lg .remi-icon__blade--b {
    width: 21px;
    height: 55px;
    left: 37px;
    top: 14px;
  }

  .ta-appicon {
    width: 80px;
    height: 80px;
    border-radius: 17.75px;
  }

  .ta-showcase {
    padding: var(--sp-2xl) var(--gutter);
  }

  .proj-preview {
    padding: var(--sp-6xl) var(--gutter);
  }

  .proj-preview__bg {
    display: none;
  }

  .proj-stack {
    gap: var(--sp-4xl);
  }

  .proj-copy {
    gap: var(--sp-xl);
  }

  .proj-copy p {
    font-size: 16px;
  }

  .proj-copy__note {
    font-size: 14px !important;
  }

  .proj-stats {
    flex-direction: column;
    gap: var(--sp-xl);
  }

  .stat__num {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .stat__label {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 14px;
    font-variation-settings: normal;
  }

  .proj-center,
  .proj-ds,
  .proj-device,
  .proj-workflow {
    gap: var(--sp-3xl);
    align-items: stretch;
  }

  .proj-center__head {
    align-items: flex-start;
  }

  .proj-display {
    font-size: 24px;
    text-align: left;
  }

  .proj-display--center {
    text-align: left;
  }

  .proj-center__copy {
    text-align: left;
    font-size: 16px;
  }

  .proj-device__head {
    align-items: flex-start;
    text-align: left;
    gap: var(--sp-md);
  }

  .proj-display-sub {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 14px;
    font-variation-settings: normal;
  }

  .proj-problems__q {
    flex-basis: auto;
    width: auto;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 18px;
    font-weight: 500;
    font-variation-settings: normal;
  }

  .proj-problems__body {
    font-family: var(--font-body);
    font-style: normal;
    gap: var(--sp-lg);
    font-variation-settings: normal;
  }

  .proj-problems__body > p,
  .proj-problems__body ul {
    font-size: 12px;
  }

  .proj-problems__body ul {
    padding-left: 18px;
    gap: var(--sp-sm);
  }

  .wf-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }

  .proj-bidi {
    align-items: flex-start;
    padding-top: var(--sp-7xl);
    padding-bottom: var(--sp-7xl);
  }

  .proj-bidi__lines {
    align-items: flex-start;
    text-align: left;
  }

  .proj-bidi__lines p {
    font-size: 20px;
    text-align: left;
  }

  .ds-col {
    min-width: 100%;
    gap: var(--sp-2xl);
  }

  .ds-col__title,
  .ds-col__text {
    font-size: 14px;
  }

  .works__grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECT PAGE — WALLET (NDA)
   Figma desktop 215:10830 / mobile 488:5149
   ============================================================ */

/* ---------- full-bleed 3D showcase hero ---------- */
.wl-showcase {
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: #f5f0f1;
}

.wl-showcase__img {
  width: 100%;
  max-width: var(--page-max);
  height: auto;
  display: block;
}

/* ---------- white-label theming ---------- */
.wl-theming {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5xl);
}

.wl-theming__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  align-items: center;
  text-align: center;
}

.wl-theming__title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--on-primary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 56;
}

.wl-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.wl-bullets li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--on-secondary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

.wl-bullets li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
}

.wl-theming__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-9xl);
  margin-top: var(--sp-lg);
}

.wl-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.wl-stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--on-primary);
}

.wl-stat__label {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--on-secondary);
  max-width: 260px;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}


/* ============================================================
   MATERIAL PLAYGROUND — interactive white-label theme demo
   Colours driven by the three Figma token sets (Wize / Klarna
   / Revolut). Switching a tab swaps [data-theme] on .mc-board.
   ============================================================ */
.wl-play {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6xl);
  align-items: center;
  background: var(--md-background);
}

/* theme switcher (light pill on the black page) */
.wl-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f2f2ef;
  border-radius: 100px;
}

.wl-tab {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 20;
  font-size: 20px;
  line-height: 1;
  color: #1a1a1a;
  background: transparent;
  border: 0;
  padding: 10px 26px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.wl-tab.is-active {
  background: #000;
  color: #fff;
}

/* stage clips + scales the fixed-size board to fit any width */
.mc-stage {
  position: relative;
  width: 100%;
  max-width: 1050px;
}

.mc-board {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1050px;
  height: 885px;
  transform-origin: top center;
  transform: translateX(-50%);
  font-family: "Roboto", var(--font-body);
  color: var(--md-on-surface);
}

.mc-board * {
  box-sizing: border-box;
}

/* ---- theme variable sets (scoped to the whole playground section) ---- */
.wl-play[data-theme="wize"] {
  --md-surface: #fafaf6; --md-on-surface: #303327; --md-on-surface-variant: #5d6250;
  --md-primary: #75b74a; --md-outline: #c7c2b5; --md-outline-variant: #cbc6b9;
  --md-secondary: #b8800d; --md-secondary-container: #eaeae3; --md-on-secondary-container: #383302;
  --md-tertiary: #000000; --md-tertiary-container: #d6dfd6; --md-on-tertiary-container: #0a0d0a;
  --md-primary-container: #c4e9ab; --md-on-primary-container: #163300;
  --md-success: #73a950;
  --md-inverse-surface: #2f312e; --md-inverse-on-surface: #f1f1ed; --md-inverse-primary: #91d963;
  --md-surface-modal: #ffffff; --md-surface-modal-high: #ffffff; --md-background: #edeee8;
  --md-income-container: #c4e9ab; --md-income-on: #273327;
  --md-expense-container: #e6e5b5; --md-expense-on: #000000;
  --md-btn-primary: #75b74a; --md-btn-on-primary: #fafaf6;
  --md-btn-tonal: #d6dfd6; --md-btn-on-tonal: #0a0d0a;
  --md-btn-outline: #73a950; --md-btn-on-outline: #73a950; --md-btn-text: #73a950;
  --md-input-focus: #75b74a;
}
.wl-play[data-theme="klarna"] {
  --md-surface: #ffffff; --md-on-surface: #1a1a1a; --md-on-surface-variant: #6b7280;
  --md-primary: #000000; --md-outline: #e5e5e5; --md-outline-variant: #ebebeb;
  --md-secondary: #ffb3c7; --md-secondary-container: #fff0f5; --md-on-secondary-container: #1a1a1a;
  --md-tertiary: #17803d; --md-tertiary-container: #d1fae5; --md-on-tertiary-container: #065f46;
  --md-primary-container: #ffb3c7; --md-on-primary-container: #1a1a1a;
  --md-success: #17803d;
  --md-inverse-surface: #1a1a1a; --md-inverse-on-surface: #ffffff; --md-inverse-primary: #ffb3c7;
  --md-surface-modal: #f7f7f7; --md-surface-modal-high: #f0f0f0; --md-background: #f5f0f1;
  --md-income-container: #d1fae5; --md-income-on: #065f46;
  --md-expense-container: #ffe4ec; --md-expense-on: #9d174d;
  --md-btn-primary: #000000; --md-btn-on-primary: #ffffff;
  --md-btn-tonal: #ffb3c7; --md-btn-on-tonal: #1a1a1a;
  --md-btn-outline: #e5e5e5; --md-btn-on-outline: #1a1a1a; --md-btn-text: #000000;
  --md-input-focus: #000000;
}
.wl-play[data-theme="revolut"] {
  --md-surface: #ffffff; --md-on-surface: #111827; --md-on-surface-variant: #6b7280;
  --md-primary: #5b5fc7; --md-outline: #d1d5db; --md-outline-variant: #e5e7eb;
  --md-secondary: #6b7280; --md-secondary-container: #f3f4f6; --md-on-secondary-container: #374151;
  --md-tertiary: #0d9488; --md-tertiary-container: #ccfbf1; --md-on-tertiary-container: #115e59;
  --md-primary-container: #e8e9fa; --md-on-primary-container: #2d3185;
  --md-success: #10b981;
  --md-inverse-surface: #1f2937; --md-inverse-on-surface: #f9fafb; --md-inverse-primary: #a5b4fc;
  --md-surface-modal: #f9fafb; --md-surface-modal-high: #f3f4f6; --md-background: #f0f1f5;
  --md-income-container: #d1fae5; --md-income-on: #065f46;
  --md-expense-container: #fee2e2; --md-expense-on: #991b1b;
  --md-btn-primary: #5b5fc7; --md-btn-on-primary: #ffffff;
  --md-btn-tonal: #e8e9fa; --md-btn-on-tonal: #2d3185;
  --md-btn-outline: #d1d5db; --md-btn-on-outline: #111827; --md-btn-text: #5b5fc7;
  --md-input-focus: #5b5fc7;
}

/* generic placeholder glyph (boxed-x) used where Figma shows one */
.mc-ic { width: 24px; height: 24px; flex: 0 0 auto; color: currentColor; }
.mc-ic--sm { width: 16px; height: 16px; }

/* board child positioning */
.mc-node { position: absolute; }
.mc-surface  { left: 0;    top: 0;   width: 1048px; height: 439px; }
.mc-snackbar { left: 352px; top: 371px; width: 344px; }
.mc-dialog   { left: 0;    top: 463px; width: 312px; }
.mc-row      { left: 332px; top: 463px; width: 322px; }
.mc-primary  { left: 331px; top: 634px; width: 323px; height: 250px; }
.mc-modal    { left: 674px; top: 83px;  width: 375px; height: 802px; }

/* ---- surface card ---- */
.mc-surface {
  background: var(--md-surface);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.10);
  padding: 24px;
}

.mc-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-appbar__right { display: flex; gap: 20px; color: var(--md-on-surface); }

.mc-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 20px;
}

.mc-heading__title { font-family: "Inter"; font-weight: 700; font-size: 34px; color: var(--md-on-surface); }
.mc-heading__sub   { font-family: "Inter"; font-weight: 400; font-size: 24px; color: var(--md-on-surface-variant); }

.mc-surface__divider { height: 1px; background: var(--md-outline-variant); margin: 0 0 20px; }

.mc-surface__cols { display: flex; gap: 24px; }

/* navigation rail */
.mc-rail { flex: 0 0 182px; display: flex; flex-direction: column; gap: 4px; }
.mc-rail__item {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 12px; border-radius: 12px;
  font-size: 14px; color: var(--md-on-surface-variant);
}
.mc-rail__item.is-active {
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  font-weight: 500;
}
.mc-rail__divider { height: 1px; background: var(--md-outline-variant); margin: 8px 8px; }

/* transaction lists */
.mc-txn { flex: 0 0 408px; max-width: 408px; display: flex; flex-direction: column; gap: 8px; }
.mc-txn__label { font-size: 14px; font-weight: 500; color: var(--md-on-surface); margin-bottom: 4px; }
.mc-list { display: flex; align-items: center; gap: 12px; }
.mc-list__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mc-list--income .mc-list__avatar { background: var(--md-income-container); color: var(--md-income-on); }
.mc-list--expense .mc-list__avatar { background: var(--md-expense-container); color: var(--md-expense-on); }
.mc-list__body { flex: 1 1 0; min-width: 0; }
.mc-list__line1 { font-size: 16px; color: var(--md-on-surface); }
.mc-list__line2 { font-size: 12px; color: var(--md-on-surface-variant); }
.mc-list__trail { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.mc-list__caption { font-size: 12px; color: var(--md-on-surface-variant); }
.mc-list--income .mc-list__status { color: var(--md-success); }
.mc-list--expense .mc-list__status { color: var(--md-on-surface); }

/* snackbar */
.mc-snackbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--md-inverse-surface);
  color: var(--md-inverse-on-surface);
  border-radius: 8px; padding: 14px 16px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.mc-snackbar__action { color: var(--md-inverse-primary); font-weight: 600; }

/* dialog */
.mc-dialog {
  background: var(--md-surface);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  min-height: 421px;
  display: flex;
  flex-direction: column;
}
.mc-dialog__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; }
.mc-dialog__title { font-family: "Inter"; font-weight: 400; font-size: 24px; color: var(--md-on-surface); }
.mc-dialog__text { font-size: 14px; line-height: 1.6; color: var(--md-on-surface-variant); }
.mc-dialog__actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 16px 24px 24px;
}

/* container chips */
.mc-chip { border-radius: 20px; padding: 16px; display: flex; flex-direction: column; }
.mc-chip__icon { color: inherit; }
.mc-chip__name { margin-top: auto; font-size: 16px; font-weight: 500; }
.mc-chip--secondary .mc-chip__name,
.mc-chip--tertiary .mc-chip__name { font-size: 14px; line-height: 1.2; }
.mc-chip--secondary { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.mc-chip--tertiary  { background: var(--md-tertiary-container);  color: var(--md-on-tertiary-container); }
.mc-chip--primary   { background: var(--md-primary-container);   color: var(--md-on-primary-container); height: 100%; }

.mc-row__grid { display: grid; grid-template-columns: 165px 147px; gap: 10px; }
.mc-row__col { display: flex; flex-direction: column; gap: 12px; }
.mc-chip--secondary, .mc-chip--tertiary { height: 105px; }

/* text buttons with icon */
.mc-textbtn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.mc-textbtn--secondary { color: var(--md-secondary); }
.mc-textbtn--tertiary  { color: var(--md-tertiary); }
.mc-textbtn__ic {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.mc-textbtn--secondary .mc-textbtn__ic { background: var(--md-secondary-container); }
.mc-textbtn--tertiary  .mc-textbtn__ic { background: var(--md-tertiary-container); }

/* buttons (dialog / modal) */
.mc-btn {
  font-family: "Roboto"; font-weight: 500; font-size: 14px;
  border: 0; border-radius: 100px; padding: 10px 24px; cursor: pointer;
}
.mc-btn--text   { background: transparent; color: var(--md-btn-text); }
.mc-btn--filled { background: var(--md-btn-primary); color: var(--md-btn-on-primary); }
.mc-btn--block  { display: block; width: 100%; padding: 16px; text-align: center; }

/* phone modal */
.mc-modal {
  background: var(--md-surface-modal);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mc-modal__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 8px;
}
.mc-modal__title { font-family: "Inter"; font-weight: 400; font-size: 22px; color: var(--md-on-surface); }
.mc-modal__close { color: var(--md-on-surface-variant); }
.mc-modal__scroll { flex: 1 1 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* text field */
.mc-field { display: flex; flex-direction: column; gap: 4px; }
.mc-field__box {
  border-radius: 8px; padding: 10px 14px;
  border: 1px solid var(--md-outline);
  background: var(--md-surface-modal-high);
  display: flex; flex-direction: column; gap: 2px;
}
.mc-field--filled .mc-field__box { background: var(--md-surface-modal); }
.mc-field--focus  .mc-field__box { border-color: var(--md-input-focus); background: var(--md-surface-modal); }
.mc-field--success .mc-field__box { border-color: var(--md-success); background: var(--md-surface-modal); }
.mc-field__label { font-size: 12px; color: var(--md-on-surface-variant); }
.mc-field--focus .mc-field__label { color: var(--md-input-focus); }
.mc-field--success .mc-field__label { color: var(--md-success); }
.mc-field__value { font-size: 16px; color: var(--md-on-surface); }
.mc-field__placeholder { font-size: 16px; color: var(--md-on-surface-variant); }
.mc-field__caption { font-size: 12px; color: var(--md-on-surface-variant); padding-left: 2px; }

.mc-modal__fixed { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.mc-modal__handle { width: 120px; height: 4px; border-radius: 4px; background: var(--md-on-surface); margin: 8px auto 0; }
.mc-modal .mc-snackbar { position: static; width: auto; margin-bottom: 4px; }

/* ============================================================
   WALLET — tablet / mobile
   ============================================================ */
@media (max-width: 680px) {
  .wl-theming { gap: var(--sp-3xl); }
  .wl-theming__head { align-items: flex-start; text-align: left; }
  .wl-theming__title { font-size: 28px; }
  .wl-bullets li {
    font-family: var(--font-body); font-style: normal; font-size: 14px;
    font-variation-settings: normal; padding-left: 18px;
  }
  .wl-theming__stats { flex-direction: column; gap: var(--sp-2xl); }
  .wl-stat__num { font-size: 40px; }
  .wl-stat__label {
    font-family: var(--font-body); font-style: normal; font-size: 14px;
    font-variation-settings: normal;
  }
  .wl-play { gap: var(--sp-3xl); }
  .wl-tab { font-size: 15px; padding: 8px 16px; }
}

/* ============================================================
   PROJECT PAGE — БАЗАР
   Figma desktop 215:8922 / mobile 488:4054
   ============================================================ */

/* ---------- title logo mark ---------- */
.bz-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 120px;
  width: 120px;
}

.bz-logo img {
  width: 89px;
  height: auto;
  aspect-ratio: 89.2145 / 83.5544;
}

/* highlight inside the project copy (white «БАЗАР») */
.proj-copy__hl {
  color: var(--on-primary);
}

/* ---------- big left-aligned section headlines ---------- */
.bz-band {
  padding: var(--sp-lg) var(--gutter);
}

.bz-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -3px;
  color: var(--on-primary);
}

/* ---------- 2-layer design system ---------- */
.bz-ds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-9xl);
  padding: 200px var(--gutter);
}

.bz-ds__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3xl);
  max-width: 760px;
  text-align: center;
}

.bz-ds__img {
  width: 100%;
  max-width: 1307px;
  height: auto;
}

.bz-ds__headline {
  text-align: center;
}

/* ---------- CTA — По базарим? ---------- */
.bz-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3xl);
  padding: 200px var(--gutter);
}

.bz-blob {
  position: relative;
  width: 366px;
  max-width: 86vw;
  aspect-ratio: 366 / 422;
  background: #adff00;
  border-radius: 200px;
  overflow: hidden;
}

.bz-blob img {
  position: absolute;
  top: 24.77%;
  left: 14.72%;
  width: 70.56%;
  height: 50.46%;
}

.bz-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 27px;
}

.bz-avatar {
  flex: 0 0 auto;
  width: 93.86px;
  height: 93.86px;
}

.bz-avatar img {
  width: 100%;
  height: 100%;
}

.bz-avatar--dark {
  position: relative;
  background: #000;
  border-radius: 50%;
  overflow: hidden;
}

.bz-avatar--dark img {
  position: absolute;
  top: 3.21%;
  left: 3.3%;
  width: 112.17%;
  height: 92.47%;
  max-width: none;
}

/* ---------- Ai Discovery Workflow (6-up flow) ---------- */
.bz-flow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2xl) var(--sp-3xl);
  width: 100%;
}

.bz-flow__col {
  flex: 1 1 384px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.bz-flow__title {
  font-weight: 500;
  font-size: 18px;
  color: var(--on-primary);
}

.wf-ava-col {
  flex: 0 0 24px;
  display: flex;
  flex-direction: column;
}

.wf-ava-col .wf-ava:first-child {
  margin-bottom: -6px;
}

/* ---------- vibe-coded prototypes ---------- */
.bz-protolink {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}

.bz-protolink__link {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--on-primary);
  text-decoration: underline;
  text-underline-position: from-font;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 18;
}

.bz-circle {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bz-circle img {
  width: 16px;
  height: 16px;
}

.bz-protolink__note {
  flex: 1 1 320px;
  max-width: 576px;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--on-secondary);
}

.bz-proto-section {
  padding: var(--sp-2xl) var(--gutter);
  overflow: hidden;
}

.bz-proto {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bz-proto__a {
  width: 34%;
  height: auto;
  margin-right: -3%;
  position: relative;
  z-index: 2;
}

.bz-proto__b {
  width: 66%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* ---------- Live WiKi on Claude Ai ---------- */
.bz-wiki {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
  padding: var(--sp-8xl) var(--gutter);
}

.bz-wiki__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.bz-wiki__sub {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  color: var(--on-secondary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

.bz-wiki__label {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  color: var(--on-primary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

.bz-wiki__text p,
.bz-wiki__list li {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-secondary);
  font-variation-settings: normal;
}

.bz-wiki__list {
  list-style: disc;
  padding-left: 1.2em;
}

.bz-wiki__list li {
  margin-bottom: var(--sp-xs, 8px);
}

/* nested Ожидание / Этап list inside Развитие */
.bz-dev__sub {
  list-style: disc;
  padding-left: 1.2em;
  margin-top: var(--sp-xs, 8px);
}

.bz-dev__sub li {
  color: var(--on-secondary);
  margin-bottom: 4px;
}

.bz-dev__sub b {
  color: var(--on-primary);
  font-weight: 600;
}

.bz-dev__more {
  list-style: none;
  margin-left: -1.2em;
  margin-top: var(--sp-md);
  color: var(--on-secondary);
}

/* Импакт stat labels — same body copy style as the Ai Ready Components caption */
.bz-wiki .stat__label {
  font-family: var(--font-body);
  font-style: normal;
  font-variation-settings: normal;
  font-size: 18px;
  line-height: 1.5;
}

/* ---------- БАЗАР — tablet ---------- */
@media (max-width: 1024px) {
  .bz-headline {
    font-size: 56px;
    letter-spacing: -2px;
  }

  .bz-ds,
  .bz-cta {
    padding-top: var(--sp-9xl);
    padding-bottom: var(--sp-9xl);
  }
}

/* ---------- БАЗАР — mobile ---------- */
@media (max-width: 680px) {
  .bz-logo {
    flex-basis: 80px;
    width: 80px;
  }

  .bz-logo img {
    width: 64px;
  }

  .bz-headline {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .bz-band {
    padding: var(--sp-lg) var(--gutter);
  }

  .bz-ds {
    gap: var(--sp-4xl);
    padding: var(--sp-9xl) var(--gutter);
  }

  .bz-ds__block {
    align-items: flex-start;
    text-align: left;
    gap: var(--sp-md);
  }

  .bz-cta {
    padding: var(--sp-8xl) var(--gutter);
    gap: var(--sp-2xl);
  }

  .bz-avatars {
    gap: var(--sp-md);
    max-width: 320px;
  }

  .bz-avatar {
    width: 93px;
    height: 93px;
  }

  .bz-flow__col {
    flex-basis: 100%;
    max-width: none;
  }

  .bz-flow__title {
    font-size: 14px;
  }

  .bz-ds__headline {
    align-self: stretch;
    text-align: left;
  }

  .bz-wiki {
    padding: var(--sp-7xl) var(--gutter);
  }

  .bz-wiki__sub,
  .bz-wiki__label,
  .bz-wiki__text p,
  .bz-wiki__list li {
    font-size: 16px;
  }

  .bz-wiki .stat__label {
    font-size: 16px;
  }

  .bz-protolink__link {
    font-size: 16px;
  }
}


/* ============================================================
   VKUSVILL — демо-кейс (Ai Product workflow)
   Блок «Демо кейсы» на index + страница vkusvill.html
   ============================================================ */

/* ---------- index: блок «Демо кейсы» ---------- */
.demo-cases {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4xl);
}

.demo-case {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  padding: var(--sp-2xl) 0;
  border-top: 1px solid var(--border-lowest);
  border-bottom: 1px solid var(--border-lowest);
  transition: opacity 0.2s ease;
}

.demo-case:hover {
  opacity: 0.75;
}

.demo-case__logo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}

.demo-case__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-case__name {
  font-weight: 600;
  font-size: 24px;
  color: var(--on-primary);
}

.demo-case__sub {
  font-size: 16px;
  color: var(--on-secondary);
}

.demo-case__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1;
  color: var(--on-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.demo-case:hover .demo-case__arrow {
  color: var(--on-primary);
  transform: translateX(4px);
}

/* ---------- vkusvill.html: title / logo ---------- */
.proj-title__name--vv {
  font-size: 104px;
  letter-spacing: -5px;
}

.vv-logo {
  flex: 0 0 auto;
}

.vv-logo img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: block;
}

/* ---------- hero-скрин кейса (широкий) ---------- */
.proj-shot {
  display: flex;
  justify-content: center;
  padding: var(--sp-5xl) var(--gutter) 0;
}

.proj-shot__link {
  display: block;
  width: 100%;
  max-width: 1200px;
}

.proj-shot__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border-lowest);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proj-shot__link:hover .proj-shot__img {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.6);
}

/* ---------- цель + гипотезы ---------- */
.vv-goal,
.vv-numbers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5xl);
}

.vv-hypos {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.vv-hypo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vv-hypo__title {
  font-weight: 600;
  font-size: 18px;
  color: var(--on-primary);
}

.vv-hypo__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-secondary);
  max-width: 640px;
}

/* ---------- ссылки-пилюли ---------- */
.vv-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-sm);
  margin-top: var(--sp-2xl);
}

.vv-links--wide {
  margin-top: var(--sp-4xl);
}

.vv-link {
  font-size: 16px;
  color: var(--on-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.vv-link:hover {
  opacity: 0.6;
}

/* ---------- этапы решения: 2 колонки по 400px по центру ---------- */
.wf-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .proj-title__name--vv {
    font-size: 64px;
    letter-spacing: -3px;
  }
  .vv-logo img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .proj-shot {
    padding: var(--sp-3xl) var(--gutter) 0;
  }
  .wf-grid--2 {
    grid-template-columns: 1fr;
  }
  .demo-case__name {
    font-size: 20px;
  }
  .demo-case__sub {
    font-size: 14px;
  }
}
