/* ============ Spinbox — storyline landing (iteration 1) ============ */
:root {
  --bg: #0d0d24;
  --bg-soft: #15152e;
  --navy: #254d7e;
  --navy-deep: #1e1e4c;
  --accent: #db4762;
  --accent-soft: #f7859a;
  --gold: #e7bb4e;
  --text: #eef1f6;
  --text-dim: #95a3bd;
  --line: rgba(238, 241, 246, 0.1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --pad: clamp(20px, 5vw, 80px);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Ambient background glows ---------- */
.bg-glows {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.bg-glows span {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.bg-glows span:nth-child(1) {
  top: -22vmax; left: -14vmax;
  background: radial-gradient(circle, rgba(37, 77, 126, .16), transparent 65%);
  animation: glowDrift1 52s ease-in-out infinite alternate;
}
.bg-glows span:nth-child(2) {
  bottom: -26vmax; right: -16vmax;
  background: radial-gradient(circle, rgba(219, 71, 98, .09), transparent 65%);
  animation: glowDrift2 64s ease-in-out infinite alternate;
}
.bg-glows span:nth-child(3) {
  top: 28%; left: 38%;
  width: 46vmax; height: 46vmax;
  background: radial-gradient(circle, rgba(231, 187, 78, .05), transparent 65%);
  animation: glowDrift3 76s ease-in-out infinite alternate;
}
@keyframes glowDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(14vmax, 10vmax) scale(1.15); }
}
@keyframes glowDrift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-12vmax, -8vmax) scale(0.95); }
}
@keyframes glowDrift3 {
  from { transform: translate(-6vmax, 4vmax) scale(0.9); }
  to { transform: translate(8vmax, -6vmax) scale(1.12); }
}

/* ---------- Journey canvas (persistent 3D backdrop) ---------- */
.journey-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; width: min(320px, 70vw); }
.preloader__logo { width: 140px; margin: 0 auto 32px; color: var(--text); }
.preloader__counter {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700; line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.preloader__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.preloader__hint {
  margin-top: 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  body:not(.has-mouse) .cursor, body:not(.has-mouse) .cursor-dot { opacity: 0 !important; }
  .cursor {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0; z-index: 99;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--accent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .3s cubic-bezier(.3,1.4,.4,1), height .3s cubic-bezier(.3,1.4,.4,1), background-color .25s, opacity .25s, border-color .25s;
    opacity: .8;
  }
  .cursor.is-hover { width: 64px; height: 64px; background: rgba(219, 71, 98, .12); }
  .cursor.is-label {
    width: 84px; height: 84px;
    background: var(--accent); border-color: var(--accent);
    opacity: 1;
  }
  .cursor__label {
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    color: #fff; opacity: 0; transform: scale(.6);
    transition: opacity .25s, transform .3s cubic-bezier(.3,1.4,.4,1);
  }
  .cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 99;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
  .cursor.is-label ~ .cursor-dot { opacity: 0; }
}

/* ---------- Chapter rail ---------- */
.rail {
  position: fixed; left: clamp(12px, 2vw, 32px); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 26px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s;
}
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail__item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-dim);
  transition: color .4s;
  cursor: pointer;
}
.rail__item:hover .rail__num { border-color: var(--accent); color: var(--text); }
.rail__item:hover .rail__name { opacity: 1; transform: translateX(0); }
.rail__num {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  line-height: 1;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .4s, background-color .4s, color .4s, transform .4s;
}
.rail__name {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s, transform .4s;
}
.rail__item.is-active { color: var(--text); }
.rail__item.is-active .rail__num {
  border-color: var(--accent); background: var(--accent); color: #fff;
  transform: scale(1.12);
}
.rail__item.is-active .rail__name { opacity: 1; transform: translateX(0); }
.rail__item.is-passed .rail__num { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .35s, backdrop-filter .35s, transform .5s cubic-bezier(.4,0,.2,1);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled {
  background: rgba(13, 13, 36, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  max-width: 1600px; margin: 0 auto;
}
.nav__logo svg { height: 30px; width: 101px; color: var(--text); transition: color .3s; }
.nav__logo:hover svg { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  color: var(--text-dim); transition: color .3s;
  display: inline-block; position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.6,0,.2,1);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 10px 20px; border-radius: 100px;
  border: 1px solid var(--accent);
  color: var(--text) !important;
  transition: background-color .3s, color .3s;
}
.nav__cta:hover { background: var(--accent); }
.nav__burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 60;
}
.nav__burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 6px auto; transition: transform .3s, opacity .3s;
}
.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: var(--pad);
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path .6s cubic-bezier(.7, 0, .3, 1);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 8px; }
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 56px); font-weight: 700;
  transition: color .3s;
}
.menu__links a:hover { color: var(--accent); }
.menu__footer { display: flex; flex-direction: column; gap: 6px; color: var(--text-dim); }

/* ---------- Buttons (flair fill from cursor entry) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 16px 32px; border-radius: 100px;
  will-change: transform;
  isolation: isolate;
}
.btn__label { position: relative; z-index: 2; transition: color .35s; }
.btn__flair {
  position: absolute; z-index: 1;
  width: 0; height: 0; border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 32px rgba(219, 71, 98, .35);
}
.btn--primary:hover .btn__label { color: var(--bg); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn__flair--ghost { background: var(--accent); }
.btn--ghost:hover .btn__label { color: #fff; }
.btn--lg { padding: 20px 44px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 80px;
}
.hero__content { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; width: 100%; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 28px;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 124px);
  font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 32px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; will-change: transform; }
.hero__line--accent > span { color: var(--accent); }
.hero__sub {
  max-width: 460px; font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim); margin-bottom: 40px;
}
.hero__sub strong { color: var(--text); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 32px; right: var(--pad); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollHint 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollHint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Story intro ---------- */
.intro {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px var(--pad);
}
.intro__text {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
  max-width: 900px; text-align: center;
  margin-top: clamp(140px, 24vh, 340px); /* clear the "jou" cluster floating above */
}
.intro__text em {
  font-style: normal; color: var(--accent);
}
.intro__text .word { display: inline-block; will-change: transform, opacity; }

/* ---------- Chapters ---------- */
.chapter {
  position: relative;
  min-height: 130vh;
  display: flex; align-items: center;
  padding: 14vh var(--pad);
  max-width: 1600px; margin: 0 auto;
}
@media (min-width: 901px) {
  .chapter { padding-left: clamp(140px, 10vw, 180px); }
}
.chapter--right { justify-content: flex-start; }
.chapter--left { justify-content: flex-end; }
.chapter__content {
  position: relative; z-index: 2;
  width: min(560px, 100%);
}
.chapter__bignum {
  position: absolute; top: 50%; z-index: 1;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(180px, 28vw, 420px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 241, 246, .07);
  pointer-events: none; user-select: none;
}
.chapter--right .chapter__bignum { right: 0; }
.chapter--left .chapter__bignum { left: 0; }
.chapter__label {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 600;
}
.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.015em;
  margin-bottom: 24px;
}
.chapter__text { color: var(--text-dim); font-size: clamp(15px, 1.3vw, 17.5px); margin-bottom: 30px; }
.chapter__points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.chapter__points li {
  position: relative; padding-left: 30px;
  font-size: 15px; color: var(--text);
}
.chapter__points li::before {
  content: ''; position: absolute; left: 0;
  top: calc(0.8em - 1px); /* centered on the first line (line-height 1.6) */
  width: 16px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.chapter__stats { display: flex; gap: clamp(24px, 3vw, 48px); margin-top: 44px; flex-wrap: wrap; }
.ministat span, .ministat i {
  font-family: var(--font-display); font-style: normal;
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ministat i {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ministat p { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

/* ---------- Split text helpers ---------- */
.split-chars .char { display: inline-block; will-change: transform, opacity, filter; }
.split-chars .char-w { display: inline-block; white-space: nowrap; }
.split-words .word { display: inline-block; will-change: transform, opacity; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) var(--pad); max-width: 1600px; margin: 0 auto; }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 880px; }
.section__label {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 600;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.015em;
}

/* ---------- Work (horizontal) ---------- */
.work { position: relative; overflow: hidden; }
.work__pin {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh;
  padding: clamp(90px, 10vw, 130px) 0 60px;
}
.work__head { padding: 0 var(--pad); max-width: none; margin-bottom: clamp(36px, 4vw, 60px); }
.work__track {
  display: flex; gap: clamp(20px, 2.5vw, 36px);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.work-card {
  /* min(38vw, 58vh) keeps the full card (image + text) inside the pinned
     viewport on short laptop screens */
  width: clamp(300px, min(38vw, 58vh), 540px);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  flex-shrink: 0;
  transition: border-color .4s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.work-card:hover { border-color: rgba(219, 71, 98, .4); transform: translateY(-6px); }
.work-card__media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 20% 10%, var(--c1), transparent 60%),
    radial-gradient(120% 120% at 90% 90%, var(--c2), transparent 55%),
    var(--navy-deep);
  display: flex; align-items: flex-end; padding: 24px;
  position: relative; overflow: hidden;
}
.work-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .94;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.work-card:hover .work-card__media img { transform: scale(1.04); opacity: 1; }
.work-card__media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(195deg, transparent 45%, rgba(13, 13, 36, .78));
}
.work-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.4,0,.2,1);
}
.work-card:hover .work-card__media::after { transform: translateX(120%); }
.work-card__media span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1;
  position: relative; z-index: 2;
  text-shadow: 0 2px 24px rgba(13, 13, 36, .8);
}
.work-card__body { padding: clamp(22px, 2.4vw, 34px); }
.work-card__body h3 {
  font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 8px;
}
.work-card__body p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }
.work-card__tag {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
}
.work-card--cta {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(219, 71, 98, .14), rgba(231, 187, 78, .08));
  border-color: rgba(219, 71, 98, .3);
  min-height: 360px;
}
.work-card__all {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600;
  transition: color .3s;
}
.work-card__all svg { width: 44px; height: 44px; transition: transform .3s; }
.work-card__all:hover { color: var(--accent); }
.work-card__all:hover svg { transform: translateX(8px); }

/* ---------- Team (chapter-style: content left, phone dots right) ---------- */
.team__person {
  display: flex; align-items: center; gap: 16px;
  margin: 30px 0 22px;
}
.team__avatar {
  position: relative;
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%; padding: 2px;
  background: conic-gradient(from 210deg, var(--accent), var(--navy), var(--gold), var(--accent));
}
.team__avatar img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover;
}
.team__status {
  position: absolute; right: 0; bottom: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: #4ade80;
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 10px rgba(74, 222, 128, .7);
}
.team__who { display: flex; flex-direction: column; line-height: 1.35; }
.team__who strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.team__who span { color: var(--text-dim); font-size: 13.5px; }
.team__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.team__actions .btn__label { display: inline-flex; align-items: center; gap: 9px; }
.team__actions .btn__label svg { width: 17px; height: 17px; }
.team__hint { color: var(--text-dim); font-size: 13.5px; margin-top: 22px; max-width: 520px; }

/* ---------- Project detail overlay ---------- */
.project {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  visibility: hidden; opacity: 0;
}
.project.is-open { visibility: visible; }
.project__scroll {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.project__inner {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(90px, 12vh, 140px) var(--pad) clamp(60px, 8vh, 100px);
}
.project__close {
  position: fixed; top: 26px; right: clamp(20px, 3vw, 48px); z-index: 75;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(238, 241, 246, .06);
  border: 1px solid var(--line); cursor: pointer;
  transition: background-color .3s, border-color .3s, transform .3s;
}
.project__close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.project__close span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--text);
}
.project__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.project__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.project__label {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.project__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 92px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.project__title .char { display: inline-block; }
.project__title .char-w { display: inline-block; white-space: nowrap; }
.project__hero {
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 16 / 8.5;
  border: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vh, 56px);
  background: var(--bg-soft);
}
.project__hero { position: relative; }
.project__slides { position: absolute; inset: 0; }
.project__slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  will-change: transform, opacity;
}
.project__slider-nav {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  background: rgba(13, 13, 36, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 5px;
}
.project__slider-nav button {
  width: 38px; height: 38px; border-radius: 50%;
  background: none; border: 0; cursor: pointer;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .3s, color .3s;
}
.project__slider-nav button:hover { background: var(--accent); }
.project__slider-nav button svg { width: 17px; height: 17px; }
.project__slider-nav span {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); padding: 0 8px;
  font-variant-numeric: tabular-nums;
}
.project__inner { position: relative; }
.project__bignum {
  position: absolute; top: clamp(20px, 4vh, 60px); right: 0;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(120px, 16vw, 280px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 241, 246, .08);
  pointer-events: none; user-select: none;
}
.project__lead {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 500; line-height: 1.35; letter-spacing: -.01em;
  max-width: 920px;
  margin-bottom: clamp(48px, 7vh, 90px);
}
.project__cols {
  display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr;
  gap: clamp(32px, 4vw, 90px);
  align-items: start;
  margin-bottom: clamp(48px, 7vh, 90px);
}
.project__meta {
  position: sticky; top: clamp(90px, 12vh, 140px);
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 2.5vw, 36px);
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(21, 21, 46, .5);
}
.project__meta > div > span {
  display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 5px;
}
.project__meta p { color: var(--text); font-size: 15.5px; }
.project__visit .btn__label { color: #fff; }
.project__visit { margin-top: 8px; justify-content: center; }
.project__body { display: flex; flex-direction: column; gap: clamp(36px, 5vh, 60px); }
.project__section h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px); font-weight: 600;
  margin-bottom: 14px;
}
.project__section p { color: var(--text-dim); font-size: clamp(15.5px, 1.15vw, 18.5px); }
.project__next {
  position: relative;
  width: 100%; overflow: hidden;
  display: block;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px;
  padding: 0; cursor: pointer; color: var(--text);
  font-family: var(--font-display); text-align: left;
  transition: border-color .4s;
}
.project__next:hover { border-color: rgba(219, 71, 98, .5); }
.project__next-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: .22;
  transition: opacity .5s, transform .8s cubic-bezier(.2,.8,.2,1);
}
.project__next:hover .project__next-bg { opacity: .38; transform: scale(1.04); }
.project__next-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 22px;
  padding: clamp(30px, 4vh, 48px) clamp(24px, 3vw, 48px);
  background: linear-gradient(90deg, rgba(13, 13, 36, .82), rgba(13, 13, 36, .3));
}
.project__next-label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); flex-shrink: 0;
}
.project__next-title { font-size: clamp(24px, 3vw, 44px); font-weight: 700; }
.project__next svg { width: 32px; height: 32px; margin-left: auto; flex-shrink: 0; transition: transform .3s; }
.project__next:hover svg { transform: translateX(10px); }
.project__ghost {
  position: fixed; z-index: 72;
  border-radius: 20px; overflow: hidden;
  pointer-events: none; visibility: hidden;
}
.project__ghost img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 900px) {
  .project__cols { grid-template-columns: 1fr; gap: 28px; }
  .project__meta { position: static; }
  .project__hero { aspect-ratio: 16 / 10; }
  .project__close { top: 16px; right: 16px; width: 46px; height: 46px; }
  .project__next-inner { flex-wrap: wrap; gap: 10px; }
}

/* ---------- Phone hover zone (team) ---------- */
.team__phone-hot { display: none; }
@media (min-width: 901px) {
  .team__phone-hot {
    display: block;
    position: absolute; right: 0; top: 10%;
    width: 42%; height: 80%;
    cursor: pointer;
  }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; text-align: center; overflow: hidden;
  border-radius: 32px;
  margin: 0 var(--pad) clamp(90px, 10vw, 140px);
  max-width: calc(1600px - 2 * var(--pad));
  background: linear-gradient(150deg, var(--navy-deep), #2b2050 55%, #3a1c3a);
  border: 1px solid rgba(219, 71, 98, .25);
}
@media (min-width: 1760px) { .cta { margin-left: auto; margin-right: auto; } }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cta__content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta__label {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; font-weight: 600;
}
.cta__title { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 52px); font-weight: 700; line-height: 1.14; margin-bottom: 22px; }
.cta__sub { color: var(--text-dim); margin-bottom: 38px; font-size: clamp(15px, 1.4vw, 18px); }
.cta__contact {
  margin-top: 36px; display: flex; gap: 18px; justify-content: center; align-items: center;
  color: var(--text-dim); font-size: 15px; flex-wrap: wrap;
}
.cta__contact a { transition: color .3s; display: inline-block; }
.cta__contact a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) var(--pad) 36px; }
.footer__inner { max-width: 1600px; margin: 0 auto; }
.footer__logo { height: 34px; width: 114px; color: var(--text); margin-bottom: 44px; }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 32px;
  margin-bottom: 48px;
}
.footer__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.footer__cols p { color: var(--text-dim); font-size: 14.5px; }
.footer__cols a:hover { color: var(--text); }
.footer__copy { color: var(--text-dim); font-size: 13px; border-top: 1px solid var(--line); padding-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .chapter__content {
    background: linear-gradient(180deg, rgba(13, 13, 36, .55), rgba(13, 13, 36, .78));
    border: 1px solid rgba(238, 241, 246, .06);
    border-radius: 18px;
    padding: 26px 22px;
  }
  .intro__text { text-shadow: 0 2px 18px rgba(13, 13, 36, .9); }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .rail { display: none; }
  .hero__scroll { display: none; }
  .hero { align-items: flex-end; padding-bottom: clamp(48px, 9vh, 90px); }
  .chapter { min-height: 0; padding: 16vh var(--pad); }
  .chapter--left, .chapter--right { justify-content: flex-start; }
  .chapter__bignum {
    font-size: clamp(140px, 40vw, 220px);
    top: 6vh; transform: none;
  }
  .chapter--left .chapter__bignum { left: auto; right: 0; }
  .team__card { flex-direction: column; text-align: center; align-items: center; }
  .team__role { margin-bottom: 14px; }
  .footer__cols { grid-template-columns: 1fr; }
  .work__pin { min-height: 0; }
  .work__track { width: auto; flex-direction: column; padding: 0 var(--pad); }
  .work-card { width: 100%; }
  .work-card--cta { min-height: 220px; }
}

/* ---------- Large screens (≥1920px → 4K): scale type & UI with the canvas ---------- */
@media (min-width: 1920px) {
  :root { --pad: clamp(80px, 5vw, 170px); }
  body { font-size: clamp(18px, 0.95vw, 24px); }

  .nav__inner, .hero__content, .section, .footer__inner, .chapter { max-width: 2300px; }
  .nav__logo svg { height: clamp(34px, 1.9vw, 46px); width: auto; }
  .nav__links { gap: clamp(40px, 2.4vw, 56px); }
  .nav__links a { font-size: clamp(16px, 0.85vw, 20px); }
  .nav__cta { padding: 12px 26px; }

  .btn { font-size: clamp(17px, 0.9vw, 21px); padding: clamp(18px, 1vw, 24px) clamp(36px, 2vw, 48px); }
  .btn--lg { font-size: clamp(20px, 1.05vw, 25px); padding: clamp(24px, 1.3vw, 32px) clamp(52px, 2.8vw, 66px); }

  .hero__title { font-size: clamp(104px, 5.6vw, 156px); }
  .hero__sub { font-size: clamp(18px, 1vw, 24px); max-width: clamp(460px, 26vw, 620px); }
  .hero__scroll { font-size: 13px; }

  .intro__text { font-size: clamp(52px, 3.2vw, 86px); max-width: clamp(900px, 56vw, 1400px); }

  .rail { left: clamp(32px, 2.2vw, 60px); gap: 32px; }
  .rail__num { width: 38px; height: 38px; font-size: 14px; }
  .rail__name { font-size: 13px; }

  .chapter { padding-left: clamp(180px, 9vw, 280px); }
  .chapter__content { width: min(clamp(560px, 36vw, 860px), 100%); }
  .chapter__label, .section__label { font-size: clamp(14px, 0.75vw, 18px); }
  .chapter__title { font-size: clamp(64px, 4vw, 104px); }
  .chapter__text { font-size: clamp(17.5px, 1vw, 25px); }
  .chapter__points li { font-size: clamp(16px, 0.85vw, 21px); padding-left: 36px; }
  .chapter__bignum { font-size: clamp(420px, 24vw, 640px); }
  .ministat span, .ministat i { font-size: clamp(52px, 2.9vw, 78px); }
  .ministat p { font-size: clamp(14px, 0.75vw, 18px); }

  .section__title { font-size: clamp(58px, 3.6vw, 94px); }
  .work-card { width: clamp(460px, min(30vw, 58vh), 760px); }
  .work-card__body h3 { font-size: clamp(22px, 1.2vw, 30px); }
  .work-card__body p { font-size: clamp(15px, 0.8vw, 20px); }
  .work-card__tag { font-size: clamp(12px, 0.65vw, 16px); }
  .work-card__media span { font-size: clamp(30px, 1.9vw, 46px); }

  .team__avatar { width: clamp(72px, 4.2vw, 104px); height: clamp(72px, 4.2vw, 104px); }
  .team__who strong { font-size: clamp(18px, 1vw, 24px); }
  .team__who span { font-size: clamp(14px, 0.75vw, 18px); }
  .team__hint { font-size: clamp(14px, 0.75vw, 18px); max-width: clamp(520px, 32vw, 760px); }
  .team__actions .btn__label svg { width: clamp(17px, 0.9vw, 22px); height: clamp(17px, 0.9vw, 22px); }

  .cta {
    /* keep side gutters at every width; only cap at the 2300px container */
    width: min(calc(100% - 2 * var(--pad)), calc(2300px - 2 * var(--pad)));
    max-width: none;
    margin-left: auto; margin-right: auto;
    border-radius: 44px;
  }
  .cta__content { max-width: clamp(760px, 46vw, 1180px); }
  .cta__title { font-size: clamp(52px, 3.2vw, 84px); }
  .cta__sub { font-size: clamp(18px, 0.95vw, 24px); }
  .cta__contact { font-size: clamp(15px, 0.8vw, 20px); }
  .cta__label { font-size: clamp(14px, 0.75vw, 18px); }

  .footer__logo { height: clamp(38px, 2vw, 50px); width: auto; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 320px)); }
  .footer__cols p { font-size: clamp(15px, 0.8vw, 19px); }
  .footer__label { font-size: clamp(13px, 0.68vw, 16px); }
  .footer__copy { font-size: clamp(14px, 0.72vw, 17px); }

  .cursor { width: 44px; height: 44px; }
  .cursor.is-hover { width: 78px; height: 78px; }
  .cursor.is-label { width: 104px; height: 104px; }
  .cursor__label { font-size: 15px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .journey-canvas, .cta__canvas { display: none; }
}
