/* ============================================================
   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;
  overflow-x: hidden;
}

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%;
}

.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-6xl);
}

/* segmented tab control (Fraunces italic, active = white pill) */
.radar-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border-radius: 100px;
  max-width: 100%;
}

.radar-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;
}

.radar-tab:hover {
  opacity: 0.75;
}

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

.radar {
  position: relative;
  width: 1120px;
  max-width: 100%;
  aspect-ratio: 1120 / 869;
}

.radar svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

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

/* faint full-length axis track */
.radar__spoke {
  stroke: #262626;
  stroke-width: 0.5;
}

/* highlighted segment from centre to the value dot */
.radar__value-line {
  stroke: #dadada;
  stroke-width: 1;
}

.radar__dot {
  stroke: var(--bg);
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.15s ease;
}

.radar__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  fill: #999999;
}

.radar__label--dim {
  fill: var(--on-secondary);
}

.radar__value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  fill: var(--on-secondary);
}

/* rating colour scale (green → amber → red) */
.rate-hi { fill: #4dd98c; }
.rate-mid { fill: #ffcc40; }
.rate-lo { fill: #ff6666; }

.radar__tooltip {
  position: absolute;
  width: 280px;
  padding: 12px 14px;
  background: #212121;
  border-radius: 10px;
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.1), 0 31px 31px rgba(0, 0, 0, 0.09),
    0 69px 42px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

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

.radar__tooltip-title {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--on-primary);
}

.radar__tooltip-body {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: #8c8c8c;
}

/* ============================================================
   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 auto;
}

.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);
  white-space: nowrap;
}

.logo-slider__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to left, var(--bg), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* ============================================================
   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__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-4xl);
  }

  .radar-tabs {
    gap: 2px;
    padding: 4px;
  }

  .radar-tab {
    font-size: 15px;
    padding: 8px 12px;
  }

  .radar__label,
  .radar__value {
    font-size: 9px;
  }

  .radar__tooltip {
    width: 220px;
  }

  .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__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-editorial);
  font-style: italic;
  color: var(--on-secondary);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
}

.proj-problems__body > p {
  font-size: 24px;
  line-height: 1.3;
}

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

/* ---------- 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);
}

/* ============================================================
   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;
  }

  .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;
  }
}

