/* =========================================================
   Kanagat — portfolio
   Шрифт: Helvetica Now. Положите лицензионные файлы .woff2
   в assets/fonts/ с именами ниже — сайт подхватит их сам.
   Пока файлов нет, используется Helvetica Neue / Helvetica.
   ========================================================= */
@font-face { font-family: "Helvetica Now Display"; src: local("Helvetica Now Display"), url("assets/fonts/HelveticaNowDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: local("Helvetica Now Display Medium"), url("assets/fonts/HelveticaNowDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: local("Helvetica Now Display Bold"), url("assets/fonts/HelveticaNowDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #101013;
  --line: rgba(255, 255, 255, .1);
  --text: #f2f2f2;
  --muted: #8d8d95;
  --red: #ff2a1f;
  --red-deep: #b5120c;
  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Helvetica Now Display", "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px; font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  transition: transform .3s var(--ease), background .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 34px; font-size: 18px; }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { box-shadow: 0 12px 40px -10px rgba(255,42,31,.7); }
.btn--light { background: #fff; color: #000; }
.btn--glass { background: rgba(28,28,32,.78); border: 1px solid rgba(255,255,255,.16); }
.btn--glass:hover { background: rgba(255,255,255,.15); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 96px; z-index: -1; pointer-events: none;
  background: linear-gradient(#000 25%, transparent);
}
.nav__logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.nav__links {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(20,20,24,.88); border: 1px solid var(--line);
}
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: #b4b4bb; transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Phone hero (no video): title + rotating arc of favourite works ---------- */
.hero { display: none; }
@media (max-width: 760px) {
  .scene { display: none; }
  .hero {
    display: flex; position: relative; padding: 104px var(--gutter) 24px;
    flex-direction: column; align-items: center; overflow: hidden; isolation: isolate;
  }
}
.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: 62%; width: 900px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(190,18,12,.5), transparent 70%); filter: blur(20px);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .3;
  background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero__content { text-align: center; position: relative; z-index: 2; }
.hero__title { font-size: clamp(36px, 10vw, 52px); line-height: 1; letter-spacing: -.055em; font-weight: 700; text-wrap: balance; }
.hero__title span { display: block; }
.hero__title-2 { color: #8f8f9a; }
.hero__sub { max-width: 34ch; margin: 18px auto 0; color: #a3a3ab; font-size: 16px; }
.arc { position: relative; width: 100vw; height: 330px; margin-top: 16px; perspective: 1100px; cursor: grab; touch-action: pan-y; }
.arc__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.arc__card {
  position: absolute; left: 50%; top: 50%; width: 170px; aspect-ratio: 4 / 5; margin: 0;
  border-radius: 18px; overflow: hidden; background: var(--panel);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  backface-visibility: hidden; will-change: transform, opacity;
}
.arc__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.arc__card figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 7px 10px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px); font-size: 12px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Scene: video frames + rings of works, driven by scroll ---------- */
.scene { position: relative; height: 820vh; background: #000; }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.scene__rings { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; pointer-events: none; }
/* soft fade into the page edges, plus a darker bottom while the final text is shown */
.scene__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55), transparent 22%, transparent 78%, #000),
    linear-gradient(to right, rgba(0,0,0,.65), transparent 30%, transparent 70%, rgba(0,0,0,.65));
}
.scene__shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.7) 34%, transparent 62%),
    linear-gradient(to right, rgba(0,0,0,.6), transparent 45%);
}
/* text sits on the same grid as the sections below: the left edge of the centred content column */
.scene__text { position: absolute; z-index: 4; --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); left: var(--edge); right: var(--edge); }
.scene__text--intro { top: clamp(104px, 18vh, 180px); max-width: min(560px, 40vw); }
.scene__title { font-size: clamp(36px, 4.6vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 700; text-wrap: balance; }
.scene__title span { display: block; }
.scene__title-2 { color: #9a9aa3; }
.scene__sub { margin-top: 20px; color: #b4b4bb; font-size: clamp(15px, 1.3vw, 18px); max-width: 40ch; }
.scene__text--final { bottom: clamp(32px, 8vh, 72px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; visibility: hidden; opacity: 0; }
.scene__final-title { font-size: clamp(32px, 4.4vw, 68px); line-height: .98; letter-spacing: -.05em; font-weight: 700; max-width: 14ch; text-wrap: balance; }
.scene__text--final .actions { margin-top: 0; }
.scene__hint {
  position: absolute; z-index: 4; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-size: 14px; color: #c9c9cf; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line);
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translate(-50%, 6px); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05);
  font-size: 14px; color: #d0d0d6;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }


/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter) 0; }
.h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -.05em; font-weight: 700; max-width: 16ch; }

/* Problem */
.problem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.pcard { padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.pcard h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.15; font-weight: 700; margin-bottom: 10px; }
.pcard p { color: var(--muted); font-size: 15px; }

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 230px 150px; }
.bento__item { border-radius: 28px; padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.bento__item--white { grid-row: span 2; background: #fff; color: #000; }
.fan { position: relative; flex: 1; min-height: 190px; }
.fan img {
  position: absolute; left: 50%; top: 46%; width: 38%; max-width: 170px; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 14px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.45);
  transition: transform .5s var(--ease);
}
.fan img:nth-child(1) { transform: translate(-115%, -50%) rotate(-10deg); }
.fan img:nth-child(2) { transform: translate(-50%, -56%); z-index: 2; }
.fan img:nth-child(3) { transform: translate(15%, -50%) rotate(10deg); }
.bento__item--white:hover .fan img:nth-child(1) { transform: translate(-128%, -52%) rotate(-14deg); }
.bento__item--white:hover .fan img:nth-child(3) { transform: translate(28%, -52%) rotate(14deg); }
.bento__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.bento__foot p { max-width: 200px; font-size: 15px; color: #444; text-align: right; }
.bento__item--soft { background: #e9e9ec; color: #000; grid-row: span 2; }
.bento__item--accent { background: var(--red); color: #fff; }
.bento__item--dark { background: var(--panel); border: 1px solid var(--line); flex-direction: row; align-items: center; justify-content: space-between; }
.bento__cap { font-size: 15px; opacity: .65; margin-bottom: auto; }
.bento__item--dark .bento__cap { margin: 0; }
.bento__big { font-size: clamp(44px, 5vw, 68px); font-weight: 700; letter-spacing: -.06em; line-height: .95; display: block; margin: 10px 0 8px; }
.bento__foot .bento__big { margin: 0; }
.bento__quote { font-size: 17px; color: #333; margin-top: auto; max-width: 30ch; }
.bento__item--accent p:last-child { font-size: 15px; }

/* Services: dark stage with a red light from below, glass cards around a work */
.svc-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) clamp(32px, 4vw, 56px);
  background: linear-gradient(180deg, #070708 0%, #0d0606 55%, #1a0705 100%);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px);
}
.svc-panel__glow {
  position: absolute; z-index: -1; left: 50%; bottom: -38%; width: 120%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,42,31,.55), rgba(190,18,12,.25) 45%, transparent 75%);
  filter: blur(10px); pointer-events: none;
}
.svc-panel::before {               /* fine film grain, like the reference */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.svc-panel__word {
  position: absolute; z-index: -1; left: 50%; top: 56%; transform: translate(-50%, -50%);
  font-size: clamp(90px, 17vw, 250px); font-weight: 700; letter-spacing: -.04em; white-space: nowrap; line-height: 1;
  color: rgba(255,42,31,.13); pointer-events: none;
}
.svc-panel__head { text-align: center; max-width: 640px; }
.svc-panel__title {
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.12; letter-spacing: -.05em; font-weight: 500;
  padding-bottom: .08em;            /* room for the tails of «у» so the gradient text is not clipped */
  background: linear-gradient(180deg, #fff 20%, #9a9aa3); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-panel__sub { margin-top: 18px; color: #a9a9b1; font-size: clamp(15px, 1.4vw, 17px); text-wrap: balance; }

.svc-stage { width: 100%; display: grid; grid-template-columns: 1fr minmax(220px, 300px) 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; }
.svc-col { display: flex; flex-direction: column; gap: 18px; }
.svc-col:first-child { align-items: flex-end; }          /* cards lean in towards the picture */
.svc-col:first-child .glass-card:nth-child(1) { margin-right: 14%; }
.svc-col:last-child .glass-card:nth-child(2) { margin-left: 14%; }
.svc-visual { position: relative; margin: 0; }
.svc-visual::after {                /* red light washing up from under the picture */
  content: ""; position: absolute; left: -25%; right: -25%; bottom: -18%; height: 55%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,42,31,.65), transparent 70%); filter: blur(18px);
}
.svc-visual img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,.35));
          mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,.35));
}

.glass-card {
  position: relative; padding: 22px; border-radius: 24px; max-width: 330px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.8);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.glass-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin-top: 18px; }
.glass-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: #a3a3ab; }
.glass-card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;  /* never squeezed into an oval */
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 6px rgba(255,255,255,.03), 0 0 22px rgba(255,42,31,.35);
}
.glass-card__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glass-card--wide { max-width: 560px; width: 100%; display: flex; gap: 18px; align-items: center; }
.glass-card--wide h3 { margin-top: 0; }
.glass-card--wide p { margin-top: 6px; }

.svc-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.svc-pills li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; font-size: 14px; color: #e6e6ea;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.svc-pills li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.6); }

/* Cases */
.case { margin-top: 48px; padding: clamp(22px, 3vw, 40px); border-radius: 36px; border: 1px solid var(--line); overflow: hidden; }
.case + .case { margin-top: 20px; }
.case { position: relative; isolation: isolate; }
/* soft red light that follows the cursor behind the case content */
.case__glow {
  position: absolute; z-index: -1; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); will-change: transform;
  background: radial-gradient(closest-side, rgba(255,42,31,.6), rgba(255,42,31,.18) 55%, transparent);
  filter: blur(34px);
}
.case.is-lit .case__glow { opacity: 1; }
/* case content rises in smoothly as it scrolls into view (only when JS is on) */
.rv { opacity: 0; transform: translateY(42px) scale(.985); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.case--azat { background: linear-gradient(160deg, #1d1d22, #070708 70%); }
.case--hb { background: linear-gradient(160deg, #0d3a3a, #08141a 65%); }
.case--shin { background: linear-gradient(160deg, #4a0f25, #12060b 65%); }
.case__top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.case__idx { font-size: 15px; color: var(--muted); }
.case__title { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -.05em; line-height: 1; font-weight: 700; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; max-width: 520px; }
.tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 14px; color: #ddd; }
.case__body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; margin-top: 36px; align-items: center; }
.case__text p { color: #c2c2c9; font-size: 16px; margin-bottom: 14px; max-width: 60ch; }
.case__text b { color: #fff; font-weight: 700; }
.case__hero { width: 100%; border-radius: 22px; aspect-ratio: 16/9; object-fit: cover; }
.case__lead { color: #c2c2c9; margin-top: 16px; max-width: 60ch; }
.strip {
  display: flex; gap: 14px; margin: 28px calc(-1 * clamp(22px, 3vw, 40px)) 0; padding: 0 clamp(22px, 3vw, 40px) 6px;
  overflow-x: auto; scroll-snap-type: x proximity; cursor: grab; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip img {
  flex: 0 0 auto; height: clamp(160px, 20vw, 250px); width: auto; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 16px; scroll-snap-align: start; user-select: none; -webkit-user-drag: none;
}
.shin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.shin-grid img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; }
.shin-grid__wide { grid-column: span 2; grid-row: span 2; }
.shin-grid img:nth-child(4), .shin-grid img:nth-child(6) { grid-column: span 2; aspect-ratio: 8/5; }
.zoomable { cursor: zoom-in; }

/* Works by category */
.works { position: relative; margin-top: clamp(80px, 11vw, 140px); padding: 60px 0 80px; overflow: hidden; isolation: isolate; }
.works::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 60%; width: 1100px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(190,18,12,.5), transparent);
}
.works__bg {
  position: absolute; z-index: -1; left: 50%; top: 62%; transform: translate(-50%, -50%);
  font-weight: 700; font-size: clamp(90px, 18vw, 280px); letter-spacing: -.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,140,130,.28);
}
.works__head { max-width: var(--max); margin: 0 auto 40px; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(22,22,26,.8); border: 1px solid var(--line); }
.tab { border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: 999px; font-size: 15px; color: #b4b4bb; transition: background .25s, color .25s; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: var(--red); color: #fff; }
.works__scroller {
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
  padding-inline: var(--gutter); -webkit-overflow-scrolling: touch;
}
.works__scroller::-webkit-scrollbar { display: none; }
.works__scroller.dragging { cursor: grabbing; }
.works__row { display: flex; gap: 18px; width: max-content; transition: opacity .35s; }
.works__row.switching { opacity: 0; }
.works__row--static { margin-inline: auto; }
.works__row img { height: clamp(260px, 26vw, 360px); user-select: none; -webkit-user-drag: none; width: auto; border-radius: 20px; object-fit: cover; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.step { padding: 26px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.step span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 36px; background: var(--red); color: #fff; font-weight: 700; font-size: 17px; }
.step h3 { font-size: 20px; letter-spacing: -.03em; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { aspect-ratio: 4/5; border-radius: 36px; overflow: hidden; background: linear-gradient(160deg, #222028, #0d0d10); border: 1px solid var(--line); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__placeholder { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 15px; }
.about__lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; letter-spacing: -.015em; margin-top: 24px; max-width: 34ch; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { color: var(--muted); }

/* CTA */
.cta {
  position: relative; margin: clamp(80px, 11vw, 140px) var(--gutter) 0; padding: clamp(64px, 10vw, 120px) var(--gutter);
  border-radius: 40px; text-align: center; overflow: hidden; isolation: isolate; background: var(--panel); border: 1px solid var(--line);
}
.cta__glow {
  position: absolute; z-index: -1; inset: -40%;
  background: conic-gradient(from 0deg, rgba(190,18,12,.55), rgba(255,90,60,.25), rgba(60,0,0,.3), rgba(190,18,12,.55));
  filter: blur(80px); animation: spin 18s linear infinite;
}
.cta__title { font-size: clamp(44px, 8vw, 116px); letter-spacing: -.06em; line-height: .95; font-weight: 700; }
.cta__sub { color: #cfcfd6; max-width: 46ch; margin: 22px auto 0; }

.footer { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vw; background: rgba(0,0,0,.9); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 16px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 18px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (min-width: 1081px) { .case__top .tags { justify-content: flex-end; } }
@media (max-width: 1080px) {
  .problem { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc-stage { grid-template-columns: 1fr 1fr; }
  .svc-visual { grid-column: 1 / -1; grid-row: 1; max-width: 300px; justify-self: center; }
  .svc-col .glass-card { margin: 0 !important; max-width: none; }
  .svc-col:first-child { align-items: stretch; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .scene { height: 680vh; }
  /* on a narrow screen the person fills the middle: text goes to the bottom, over the floor */
  .scene__text--intro { top: auto; bottom: 88px; max-width: none; }
  .scene__sticky::after { background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 20%, transparent 45%, rgba(0,0,0,.85) 80%, #000); }
  .scene__final-title { max-width: none; font-size: clamp(30px, 8.4vw, 44px); }
  /* the works circle sits in the middle: title above it, buttons below it */
  .scene__text--final { top: 92px; bottom: 28px; flex-direction: column; align-items: stretch; justify-content: space-between; flex-wrap: nowrap; }
  .scene__shade { background: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 30%, transparent 70%, rgba(0,0,0,.9)); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento__item--white, .bento__item--soft { grid-column: 1 / -1; grid-row: auto; }
  .bento__item--white { min-height: 380px; }
  .case__body { grid-template-columns: 1fr; }
  .case__body .case__hero { order: -1; }
  .shin-grid { grid-template-columns: 1fr 1fr; }
  .shin-grid__wide { grid-row: auto; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .problem, .steps { grid-template-columns: 1fr; gap: 12px; }
  .svc-stage { grid-template-columns: 1fr; }
  .svc-panel { border-radius: 28px; }
  .glass-card--wide { flex-direction: column; align-items: flex-start; }
  .glass-card--wide h3 { margin-top: 4px; }
  .pcard { min-height: 0; }
  .step span { margin-bottom: 20px; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--dark { flex-direction: column; align-items: flex-start; }
  .bento__foot { flex-direction: column; align-items: flex-start; }
  .bento__foot p { text-align: left; }
  .actions .btn { width: 100%; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .cta { border-radius: 28px; margin-inline: 12px; }
  .works__head { margin-bottom: 28px; }
  .tabs { flex-wrap: nowrap; width: 100%; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 1 0 auto; padding: 9px min(10px, 1.8vw); font-size: min(14px, 3.3vw); white-space: nowrap; }
  .works__row { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene { height: 100vh; height: 100svh; }
  .scene__hint { display: none; }
}
.case__sub { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.03em; color: #9a9aa2; margin-top: 6px; }
