:root {
  --page-pad: 50px;
  --layout-gap: 0px;
  --sidebar-w: fit-content(357px);
  --overlay-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --overlay-dur: 520ms;
  --overlay-bg-rgb: 249, 249, 249; /* #F9F9F9 */
  --projectA-pad: 150px;
  --slide-title-size: 40px;
  --slide-title-tracking: -0.8px;
  --slide-lead-size: 24px;
  --slide-lead-tracking: -0.48px;
  /* Figma 351:885 — headings / nav: Outfit; body & leads: Satoshi */
  --font-title: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-subtitle: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-subtitle);
  background: #ffffff;
  color: #050505;
  overflow: hidden;
  overflow-x: hidden;
}

a,
a:visited {
  cursor: pointer;
  color: inherit;
}

.page {
  height: 100vh;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  column-gap: var(--layout-gap);
  align-items: stretch;
  min-height: 0;
}

.main {
  height: 100%;
  min-height: 0;
  width: 100%;
  margin-right: 0;
  display: flex;
  flex-direction: column;
}

.sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 50px;
  padding-left: 35px;
  padding-right: 35px;
  padding-bottom: 50px;
  background: #050505;
  color: #ffffff;
  min-height: 0;
}

.sidebarBlock {
  width: 100%;
}

/* Block 1 */
.headerBlock {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.headerText {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
}

.role {
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1.2;
}

.name {
  font-size: 18px;
  line-height: 1.2;
}

.timeWidget {
  display: flex;
  gap: 4px;
  align-items: center;
}

.timeMain {
  display: flex;
  gap: 8px;
  align-items: center;
}

.timeIcon {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 48px;
  object-fit: contain;
}

.timeValue {
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 400;
}

.timeZone {
  font-size: 12px;
  line-height: 1.2;
  color: #9ca3af;
  font-weight: 500;
}

/* Block 2 */
.navBlock {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
}

.tabSep {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  user-select: none;
}

.navItem {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Outfit: только подписи Projects и About (макет 351:885) */
.tabs > a.navItem:not(.navItem--about),
.navItem--about,
.navItem--about .flip-face {
  font-family: var(--font-title);
}

.navItem.isActive {
  color: #ffffff;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.links .linkItem {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.links .linkItem:hover {
  color: #9ca3af;
}

.links .linkItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #9ca3af;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.links .linkItem:hover::after {
  transform: scaleX(1);
}

/* About hover like contact links */
.navItem--about {
  display: inline-block;
  line-height: 1.2;
  overflow: hidden;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.navItem--about,
.navItem--about:hover,
.navItem--about:visited,
.navItem--about:focus-visible {
  color: #9ca3af;
}

.navItem--about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navItem--about:hover::after,
.navItem--about:focus-visible::after {
  transform: scaleX(1);
}

.flip-container {
  display: inline-block;
  height: 1.2em;
  perspective: 1000px;
  vertical-align: top;
  overflow: hidden;
}

.flip-inner {
  position: relative;
  display: block;
  height: 100%;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform;
}

.flip-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2em;
  padding: 0;
  backface-visibility: hidden;
  color: #9ca3af;
  transition:
    color 0.3s ease,
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

/* Work tile */
.workTile {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.workTile:focus-visible {
  outline: 2px solid rgba(156, 163, 175, 0.9);
  outline-offset: 2px;
}

.workMedia {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.workTile:hover .workMedia {
  transform: scale(1.02);
}

/* WIP hover overlay (only tiles with class workTile--wip) */
.workTile--wip {
  position: relative;
  overflow: hidden;
}

.workTile--wip .workMedia {
  will-change: filter, transform;
}

.workTile--wip:hover .workMedia {
  filter: blur(16px);
}

.wip-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

.workTile--wip:hover .wip-overlay {
  opacity: 1;
}

.wip-overlayContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
  will-change: opacity, transform;
}

.workTile--wip:hover .wip-overlayContent {
  opacity: 1;
  transform: translateY(0);
}

.wip-iconLock {
  width: 48px;
  height: 48px;
  display: block;
  color: #ffffff;
}

.wip-title {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: #ffffff;
  white-space: nowrap;
}

/* Project A overlay (Figma node 227:1746) */
.project-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  overflow: hidden;
  background-color: rgba(var(--overlay-bg-rgb), var(--overlay-alpha, 1));
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--pv-x, 0px), var(--pv-y, 0px)) scale(var(--pv-scale, 0.98));
  transform-origin: center;
  transition:
    opacity var(--overlay-dur) cubic-bezier(0.32, 0, 0.67, 0),
    background-color var(--overlay-dur) cubic-bezier(0.32, 0, 0.67, 0),
    transform var(--overlay-dur) var(--overlay-ease);
}

.project-overlay.isOpen {
  display: block;
  pointer-events: auto;
}

.project-overlay.isAnimatingIn,
.project-overlay.isAnimatingOut {
  display: block;
}

.project-overlay.isAnimatingIn {
  opacity: 1;
  transform: translate(0px, 0px) scale(1);
}

.project-overlay.isAnimatingOut {
  opacity: 0;
  transform: translate(0px, 18px);
}

.project-overlay.isClosing {
  pointer-events: none;
}

body.isOverlayOpen {
  overflow: hidden;
}

.projectA {
  height: 100%;
  display: grid;
  grid-template-columns: 357px 1fr;
}

.projectA__side {
  background: #020617;
}

.projectA__sideInner {
  height: 100%;
  background: #050505;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.projectA__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 129px;
}

#project-a-detail .projectA__meta {
  gap: 8px;
}

#project-a-detail .projectA__title {
  white-space: nowrap;
}

#project-a-detail .projectA__topbar {
  gap: 4px;
}

#project-c-detail .projectA__topbar {
  gap: 4px;
}

#project-c-detail .projectA__meta {
  gap: 8px;
}

.projectA__title {
  font-family: var(--font-title);
  font-size: 24px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: -0.48px;
  color: #f8fafc;
}

.projectA__subtitle {
  font-family: var(--font-subtitle);
  font-size: 12px;
  line-height: normal;
  font-weight: 500;
  letter-spacing: -0.24px;
  color: #8c949f;
}

.projectA__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: -0.36px;
  /* Align nav top with H1 top (Figma: 144px from top). */
  margin-top: 34px;
}

.projectA__navItem {
  position: relative;
  display: inline-block;
  color: #8c949f;
  text-decoration: none;
  width: fit-content;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.projectA__navItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #9ca3af;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.projectA__navItem:not(.isActive):hover {
  color: #9ca3af;
}

.projectA__navItem:not(.isActive):hover::after {
  transform: scaleX(1);
}

.projectA__navItem.isActive::after {
  transform: scaleX(0);
}

/* Global `a:visited { color: inherit }` is more specific than `.projectA__navItem` alone;
   visited in-sidebar links would inherit body #050505 and disappear on #050505. */
.projectA__navItem:link,
.projectA__navItem:visited {
  color: #8c949f;
}

.projectA__navItem.isActive,
.projectA__navItem.isActive:link,
.projectA__navItem.isActive:visited {
  color: #f8fafc;
}

.projectA__main {
  height: 100%;
  overflow: hidden;
  background: #f9f9f9;
}

.projectA__topbar {
  height: 144px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 50px var(--projectA-pad) 0 var(--projectA-pad);
  font-family: var(--font-subtitle);
  font-size: 16px;
  line-height: normal;
  font-weight: 500;
  letter-spacing: -0.32px;
}

.projectA__back {
  position: relative;
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 0 0 2px;
  color: #8c949f;
  cursor: pointer;
  font: inherit;
  transition: color 0.3s ease;
}

.projectA__back:hover {
  color: #9ca3af;
}

.projectA__back::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #9ca3af;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.projectA__back:hover::after {
  transform: scaleX(1);
}

.projectA__crumb {
  color: #020617;
}

.projectA__close {
  display: none;
}

.projectA__content {
  height: calc(100% - 144px);
  overflow-y: auto;
  background: #f9f9f9;
  padding: 0 var(--projectA-pad) 120px var(--projectA-pad);
}

/* Full-bleed media inside padded article (Figma: image edge-to-edge main column) */
.projectA__bleed-x {
  width: calc(100% + 2 * var(--projectA-pad));
  max-width: none;
  margin-left: calc(-1 * var(--projectA-pad));
  margin-right: calc(-1 * var(--projectA-pad));
  box-sizing: border-box;
  flex-shrink: 0;
}

.projectA__section {
  width: min(1563px, 100%);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.projectA__section.slide04 {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.projectA__section + .projectA__section {
  margin-top: 150px;
}

/* Full-width hero media inside Slide04 */
.projectA__section.slide04 .slide04__hero {
  width: 100% !important;
  max-width: none !important;
  overflow: visible;
}

.projectA__section.slide04 .slide04__hero img {
  position: relative;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Case slides — 342:1237 About/Challenge; 342:1264 Solution; 342:1371 Cards; 342:1451 Order & Status; 342:1458 Result */
.slide__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--slide-title-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: var(--slide-title-tracking);
  color: #020617;
}

.slide__nobreak {
  white-space: nowrap;
}

.slide__lead {
  margin: 0;
  font-family: var(--font-subtitle);
  font-size: var(--slide-lead-size);
  font-weight: 400;
  line-height: normal;
  letter-spacing: var(--slide-lead-tracking);
  color: rgba(71, 85, 105, 1);
  text-align: center;
}

/* Slide01/02: Figma pl-[50px] on text block; Slide03 head has w-[895px] only (no pl-50) */
.slide01__about,
.slide02__challenge {
  width: 100%;
  padding-left: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.slide01__about .slide__title {
  width: 100%;
  max-width: 1061px;
}

.slide01__about .slide__lead {
  width: 100%;
  max-width: 1149px;
}

.slide02__challenge .slide__title {
  white-space: nowrap;
}

.slide02__list {
  margin: 0;
  width: 100%;
  max-width: 927px;
  padding-left: 0;
  list-style-position: inside;
  font-family: var(--font-subtitle);
  color: rgba(71, 85, 105, 1);
  font-size: var(--slide-lead-size);
  font-weight: 400;
  line-height: normal;
  letter-spacing: var(--slide-lead-tracking);
  text-align: center;
}

.slide02__list li + li {
  margin-top: 16px;
}

.slide__phones {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding-left: 213px;
  padding-right: 213px;
  box-sizing: border-box;
}

.slide__phone {
  margin: 0;
  flex: 0 0 auto;
  background: transparent;
}

.slide__phone--428x883 {
  width: 428px;
  aspect-ratio: 428 / 883;
}

.slide__phone--427x883 {
  width: 427px;
  aspect-ratio: 427 / 883;
}

.slide__phone--427x879 {
  width: 427px;
  aspect-ratio: 427 / 879;
}

.slide__phone img {
  width: 100%;
  height: auto;
  display: block;
}

.slide03__head {
  width: 100%;
  max-width: 895px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* Slide03 hero — Figma 342:1264 Image 1563×700, full width column */
.slide03__hero {
  position: relative;
  aspect-ratio: 1563 / 700;
}

.slide03__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Slide04 — Figma 342:1371 Cards */
.slide04__head {
  width: 100%;
  max-width: 573px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.slide04__banner {
  position: relative;
  aspect-ratio: 1563 / 924;
  /* width from .projectA__bleed-x — do not set width:100% here (it overrides bleed) */
  overflow: hidden;
}

.slide04__bannerBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.slide04__bannerTint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.slide04__float {
  position: absolute;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.slide04__banner--revealed .slide04__float {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.slide04__banner--revealed .slide04__float--1 {
  transition-delay: 0.1s;
}

.slide04__banner--revealed .slide04__float--2 {
  transition-delay: 0.22s;
}

.slide04__banner--revealed .slide04__float--3 {
  transition-delay: 0.34s;
}

.slide04__banner--revealed .slide04__float--4 {
  transition-delay: 0.46s;
}

.slide04__banner--revealed .slide04__float--5 {
  transition-delay: 0.58s;
}

@media (prefers-reduced-motion: reduce) {
  .slide04__float {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Positions from Figma 342:1375 (frame 1563×924) */
.slide04__float--1 {
  left: calc(483 / 1563 * 100%);
  top: calc(304 / 924 * 100%);
  width: calc(362 / 1563 * 100%);
  height: calc(150 / 924 * 100%);
}

.slide04__float--2 {
  left: calc(483 / 1563 * 100%);
  top: calc(500 / 924 * 100%);
  width: calc(362 / 1563 * 100%);
  height: calc(79 / 924 * 100%);
}

.slide04__float--3 {
  left: calc(874 / 1563 * 100%);
  top: calc(292 / 924 * 100%);
  width: calc(174 / 1563 * 100%);
  height: calc(340 / 924 * 100%);
}

.slide04__float--4 {
  left: calc(1098 / 1563 * 100%);
  top: calc(334 / 924 * 100%);
  width: calc(207 / 1563 * 100%);
  height: calc(255 / 924 * 100%);
}

.slide04__float--5 {
  left: calc(259 / 1563 * 100%);
  top: calc(386 / 924 * 100%);
  width: calc(174 / 1563 * 100%);
  height: calc(136 / 924 * 100%);
}

/* Slide05 — Figma 342:1451 Order & Status */
.slide05__head {
  width: 100%;
  padding-left: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.slide05__leads {
  width: 100%;
  max-width: 933px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Slide06 — Figma 342:1458 Result (text column 863px, pl-50, centered) */
.slide06__result {
  width: 100%;
  padding-left: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.slide06__leads {
  width: 100%;
  max-width: 863px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.slide06__leads .slide__lead {
  margin: 0;
  max-width: min(100%, 52rem);
  text-wrap: pretty;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  overflow-wrap: break-word;
}

@supports not (text-wrap: pretty) {
  .slide06__leads .slide__lead {
    max-width: min(100%, 48rem);
  }
}

.projectA__sentinel {
  height: 2px;
  width: 100%;
}

/* ----------------------------
   Project C (Nami Sushi) overlay
   Scoped to avoid impacting Project A.
----------------------------- */

#project-c-detail .projectA__main,
#project-c-detail .projectA__content {
  background: #ffffff;
}

/* Layout: remove inner padding so full-bleed can reach column edges */
#project-c-detail .projectA__content {
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 150px;
}

#project-c-detail .projectA__section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: var(--projectA-pad);
  padding-right: var(--projectA-pad);
  box-sizing: border-box;
}

#project-c-detail .projectA__section + .projectA__section {
  margin-top: 0 !important;
}

/* Full-bleed helper inside Project C should NOT overshoot */
#project-c-detail .projectA__bleed-x {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Slide01 (Hero) — match Figma 557:2720 */
#project-c-detail .slide01__about {
  width: 889px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#project-c-detail .slide__phones {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding-left: 213px;
  padding-right: 213px;
  box-sizing: border-box;
}

#project-c-detail .slide__phone {
  margin: 0;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

#project-c-detail .slide__phone img {
  position: absolute;
  left: -166.07%;
  top: -19.35%;
  width: 430.25%;
  height: 139.1%;
  max-width: none;
  display: block;
  pointer-events: none;
}

/* Slide02 (Challenge) — match Figma 557:2727 */
#project-c-detail .slide02__challenge {
  width: 889px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  justify-content: center;
}

#project-c-detail .slide02__head {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#project-c-detail .slide02__subtitle {
  margin: 0;
  font-family: var(--font-subtitle);
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  color: #000000;
}

#project-c-detail .slide02__pairs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

#project-c-detail .slide02__pair {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

#project-c-detail .slide02__pairText {
  margin: 0;
  width: 400px;
  max-width: 100%;
  font-family: var(--font-subtitle);
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: var(--slide-lead-tracking);
  color: rgba(71, 85, 105, 1);
  text-align: center;
}

/* Slide03 (Solution text) — match Figma 557:2742 */
#project-c-detail .slide03__head {
  width: 791px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#project-c-detail .slide03__list {
  margin: 0;
  width: 100%;
  padding-left: 0;
  list-style-position: inside;
  font-family: var(--font-subtitle);
  font-size: var(--slide-lead-size);
  font-weight: 400;
  line-height: normal;
  letter-spacing: var(--slide-lead-tracking);
  color: rgba(71, 85, 105, 1);
}

#project-c-detail .slide03__list li {
  padding-left: 36px;
}

#project-c-detail .slide03__list li + li {
  margin-top: 48px;
}

/* Slide04 (Search header) — match Figma 557:2749 */
#project-c-detail .slide04__head {
  width: 889px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* Slide04/05/06 sections: media touches edges, text stays padded */
#project-c-detail .projectA__section.slide04,
#project-c-detail .projectA__section.slide05,
#project-c-detail .projectA__section.slide06 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  gap: 32px;
}

#project-c-detail .slide04__head,
#project-c-detail .slide05__head,
#project-c-detail .slide06__head {
  padding-left: var(--projectA-pad);
  padding-right: var(--projectA-pad);
  box-sizing: border-box;
}

#project-c-detail .slide04__head .slide__lead {
  align-self: stretch;
  display: block;
  width: 100% !important;
  max-width: 889px !important;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Slide06 (Order header) — match Figma 557:2766 */
#project-c-detail .slide06__head {
  width: 739px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* Subtitles should fill header width (responsive) */
#project-c-detail .slide05__head .slide__lead,
#project-c-detail .slide06__head .slide__lead {
  align-self: stretch;
  width: 100%;
  max-width: none;
  text-wrap: pretty;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Slide05 subtitle wraps to 2 lines like Figma (w=823px) */
#project-c-detail .slide05__head .slide__lead {
  max-width: 823px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* Slide06 subtitle width like Figma (w=739px) */
#project-c-detail .slide06__head .slide__lead {
  max-width: 739px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* Slide07 (Tracking&Settings header) — match Figma 557:2771 */
#project-c-detail .slide07__head {
  width: 889px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#project-c-detail .slide07__list {
  margin: 0;
  width: 100%;
  padding-left: 0;
  list-style-position: inside;
  font-family: var(--font-subtitle);
  font-size: var(--slide-lead-size);
  font-weight: 400;
  line-height: normal;
  letter-spacing: var(--slide-lead-tracking);
  color: rgba(71, 85, 105, 1);
}

#project-c-detail .slide07__list li {
  padding-left: 36px;
}

#project-c-detail .slide07__list li + li {
  margin-top: 48px;
}

/* Slide08 (Result header) — match Figma 557:2777 */
#project-c-detail .slide08__head {
  width: 889px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#project-c-detail .slide08__text {
  width: 889px;
  max-width: 100%;
  font-family: var(--font-subtitle);
  font-size: var(--slide-lead-size);
  font-weight: 400;
  line-height: normal;
  letter-spacing: var(--slide-lead-tracking);
  color: rgba(71, 85, 105, 1);
  text-wrap: pretty;
}

#project-c-detail .slide08__text p {
  margin: 0;
}

#project-c-detail .slide08__text p + p {
  margin-top: 48px;
}

#project-c-detail .slide02__divider {
  height: 116px;
  width: 0;
  flex: 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  border-left: 1px solid #8c949f;
}

#project-c-detail .slide02__divider--tall {
  height: 144px;
}

#project-c-detail .slide02__dividerLine {
  display: none;
}

/* Full-width slides inside overlay (match Nami page behavior) */
#project-c-detail .projectA__section.slide04,
#project-c-detail .projectA__section.slide05,
#project-c-detail .projectA__section.slide06 {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: 32px;
}

#project-c-detail .slide04__head,
#project-c-detail .slide05__head,
#project-c-detail .slide06__head {
  padding-left: var(--projectA-pad);
  padding-right: var(--projectA-pad);
  box-sizing: border-box;
}

#project-c-detail .slide04__hero {
  /* Width comes from .projectA__bleed-x */
  overflow: hidden;
}

#project-c-detail .slide04__hero img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* UI elements banner (Slide05) */
#project-c-detail .slide05__banner {
  /* Width comes from .projectA__bleed-x */
  position: relative;
  aspect-ratio: 1563 / 924;
  overflow: hidden;
}

#project-c-detail .slide05__bannerBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110.56%;
  object-fit: cover;
  display: block;
  top: -0.04%;
  pointer-events: none;
  transform: none;
}

#project-c-detail .slide05__bannerTint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

#project-c-detail .slide05__float {
  position: absolute;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

#project-c-detail .slide05__banner--revealed .slide05__float {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

#project-c-detail .slide05__banner--revealed .slide05__float--1 {
  transition-delay: 0.1s;
}

#project-c-detail .slide05__banner--revealed .slide05__float--2 {
  transition-delay: 0.22s;
}

#project-c-detail .slide05__banner--revealed .slide05__float--3 {
  transition-delay: 0.34s;
}

#project-c-detail .slide05__banner--revealed .slide05__float--4 {
  transition-delay: 0.46s;
}

#project-c-detail .slide05__banner--revealed .slide05__float--5 {
  transition-delay: 0.58s;
}

#project-c-detail .slide05__banner--revealed .slide05__float--6 {
  transition-delay: 0.7s;
}

/* Positions from Figma (1563×924) */
#project-c-detail .slide05__float--1 {
  left: calc(181 / 1563 * 100%);
  top: calc(643 / 924 * 100%);
  width: calc(353 / 1563 * 100%);
  height: calc(145 / 924 * 100%);
}
#project-c-detail .slide05__float--2 {
  left: calc(1127 / 1563 * 100%);
  top: calc(188 / 924 * 100%);
  width: calc(380 / 1563 * 100%);
  height: calc(174 / 924 * 100%);
}
#project-c-detail .slide05__float--3 {
  left: calc(745 / 1563 * 100%);
  top: calc(801 / 924 * 100%);
  width: calc(353 / 1563 * 100%);
  height: calc(64 / 924 * 100%);
}
#project-c-detail .slide05__float--4 {
  left: calc(1169 / 1563 * 100%);
  top: calc(462 / 924 * 100%);
  width: calc(196 / 1563 * 100%);
  height: calc(254 / 924 * 100%);
}
#project-c-detail .slide05__float--5 {
  left: calc(190 / 1563 * 100%);
  top: calc(188 / 924 * 100%);
  width: calc(183 / 1563 * 100%);
  height: calc(254 / 924 * 100%);
}
#project-c-detail .slide05__float--6 {
  left: calc(570 / 1563 * 100%);
  top: calc(74 / 924 * 100%);
  width: calc(175 / 1563 * 100%);
  height: calc(94 / 924 * 100%);
}

/* Order hero (Slide06) */
#project-c-detail .slide06__hero {
  /* Width comes from .projectA__bleed-x */
  position: relative;
  aspect-ratio: 1563 / 872;
  overflow: hidden;
}

#project-c-detail .slide06__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-overlay {
    transition: opacity 160ms linear;
    transform: none;
  }
}
.flip-front {
  position: relative;
  transform: translateZ(0.6em);
  opacity: 1;
}

.flip-back {
  position: absolute;
  inset: 0;
  transform-origin: center top;
  transform: rotateX(-90deg) translateY(-0.6em) translateZ(0.6em);
  opacity: 0.7;
}

.navItem--about:hover .flip-inner,
.navItem--about:focus-visible .flip-inner {
  transform: rotateX(90deg);
}

.navItem--about:hover .flip-front,
.navItem--about:focus-visible .flip-front {
  color: #9ca3af;
}

.navItem--about:hover .flip-back,
.navItem--about:focus-visible .flip-back {
  color: #9ca3af;
}

/* Block 3 */
.messageButton {
  display: flex;
  width: 287px;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  color: #050505;
  text-decoration: none;
  padding: 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  border-radius: 0px;
  box-shadow: 0 0 0 2px transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.messageButton:visited {
  color: #050505;
}

.messageButton:hover {
  border-radius: 24px;
  background: #f3f4f6;
  box-shadow: 0 0 0 2px #9ca3af, 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* Work grid */
.workGrid {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  transition:
    grid-template-columns 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.workGrid:has(.cellA:hover) {
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 3fr 1fr;
}

.workGrid:has(.cellB:hover) {
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 3fr 1fr;
}

.workGrid:has(.cellC:hover) {
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr 3fr;
}

.workGrid:has(.cellD:hover) {
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 1fr 3fr;
}

.workCell {
  min-width: 0;
  min-height: 0;
}

.cellA {
  background: #d9d9d9;
}

.cellB {
  background: #afafaf;
}

.cellC {
  background: #303030;
}

.cellD {
  background: #636363;
}
