:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-strong: #1d1d1f;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.11);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.1);
  --glass-shadow: 0 12px 34px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --header-height: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-strong: #f5f5f7;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #2997ff;
  --blue-hover: #50a9ff;
  --glass: rgba(36, 36, 38, 0.6);
  --glass-strong: rgba(44, 44, 46, 0.78);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --glass-shadow: 0 12px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface-strong);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 28px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.site-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transform: translateX(-50%);
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover {
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

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

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  background: var(--glass);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  transform: scale(1.04);
  background: var(--glass-strong);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(84svh - var(--header-height));
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 72px 28px 64px;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 245, 247, 0.42);
  pointer-events: none;
}

[data-theme="dark"] .hero::after {
  background: rgba(0, 0, 0, 0.5);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

[data-theme="dark"] .hero-media {
  opacity: 0.58;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(940px, 100%);
  margin-left: max(0px, calc((100vw - 1200px) / 2));
}

.hero h1,
.section-head h2,
.contact-section h2,
.dialog-copy h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: #3a3a3c;
  font-size: 21px;
  line-height: 1.48;
  text-wrap: pretty;
}

[data-theme="dark"] .hero-copy {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-table::after {
  background: rgba(245, 245, 247, 0.22);
}

[data-theme="dark"] .hero-table::after {
  background: rgba(0, 0, 0, 0.36);
}

.hero-table .hero-content {
  width: min(580px, 45vw);
}

.hero-table .hero-copy {
  max-width: 560px;
}

.hero-table h1 {
  max-width: 570px;
  font-size: 62px;
}

.desk-collage {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: 58%;
  overflow: hidden;
  pointer-events: none;
}

.desk-sheet {
  position: absolute;
  margin: 0;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(32, 35, 40, 0.2), 0 3px 8px rgba(32, 35, 40, 0.12);
  transform-origin: center;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desk-sheet img {
  width: 100%;
  height: auto;
}

.desk-sheet-taekwondo {
  top: 5%;
  left: 18%;
  z-index: 3;
  width: 21%;
  transform: rotate(-7deg) perspective(900px) rotateX(2deg);
}

.desk-sheet-folk {
  top: 48%;
  left: 12%;
  z-index: 6;
  width: 18%;
  transform: rotate(8deg) perspective(900px) rotateX(1deg);
}

.desk-sheet-event {
  top: 14%;
  left: 36%;
  z-index: 4;
  width: 31%;
  transform: rotate(3deg) perspective(900px) rotateX(1deg);
}

.desk-sheet-roof {
  top: 61%;
  left: 28%;
  z-index: 7;
  width: 46%;
  transform: rotate(-3deg) perspective(900px) rotateX(2deg);
}

.desk-sheet-tarantino {
  top: 2%;
  right: 5%;
  z-index: 2;
  width: 19%;
  transform: rotate(7deg) perspective(900px) rotateX(1deg);
}

.desk-sheet-product {
  top: 45%;
  right: 3%;
  z-index: 5;
  width: 18%;
  transform: rotate(-6deg) perspective(900px) rotateX(2deg);
}

.hero-coverflow {
  min-height: calc(88svh - var(--header-height));
  align-items: center;
  background: #111115;
  color: #f5f5f7;
}

.hero-coverflow::after {
  z-index: 1;
  background: rgba(8, 8, 12, 0.5);
}

.hero-coverflow .hero-content {
  z-index: 5;
  width: min(520px, 39vw);
}

.hero-coverflow h1 {
  font-size: 56px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.28);
}

.hero-coverflow .hero-copy {
  color: #dedee3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.hero-coverflow .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.coverflow-ambient {
  position: absolute;
  inset: -12%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.coverflow-ambient-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(70px) saturate(1.8) brightness(0.62);
  transform: scale(1.12);
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.coverflow-ambient-layer.is-active {
  opacity: 0.72;
  transform: scale(1.2);
}

.coverflow-shell {
  position: absolute;
  inset: 0 0 0 31%;
  z-index: 3;
  overflow: hidden;
}

.coverflow-object-glow {
  position: absolute;
  top: 47%;
  left: 56%;
  z-index: 0;
  width: clamp(230px, 25vw, 400px);
  height: clamp(300px, 36vw, 540px);
  object-fit: contain;
  opacity: 0.54;
  filter: blur(30px) saturate(2) brightness(1.2);
  transform: translate(-50%, -50%) scale(1.08);
  pointer-events: none;
  transition: opacity 260ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.coverflow-shell.is-switching .coverflow-object-glow {
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(0.94);
}

.coverflow-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 1500px;
  perspective-origin: 52% 48%;
  touch-action: pan-y;
  user-select: none;
}

.coverflow-card {
  --offset: 0;
  --abs-offset: 0;
  position: absolute;
  top: 47%;
  left: 56%;
  width: clamp(170px, 18vw, 290px);
  height: clamp(250px, 27vw, 420px);
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 78%))
    translateZ(calc(var(--abs-offset) * -145px))
    rotateY(calc(var(--offset) * -48deg))
    scale(calc(1 - var(--abs-offset) * 0.075));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease, filter 320ms ease;
}

.coverflow-card.is-active {
  cursor: default;
}

.coverflow-card:not(.is-active) {
  filter: brightness(0.68) saturate(0.8);
}

.coverflow-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.coverflow-art > img:not(.coverflow-reflection) {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.44), 0 2px 8px rgba(0, 0, 0, 0.34);
}

.coverflow-art-square {
  inset: 10% -7%;
}

.coverflow-art-wide {
  inset: 16% -34%;
}

.coverflow-floor-reflection {
  position: absolute;
  top: calc(47% + clamp(132px, 14vw, 218px));
  left: 56%;
  z-index: 0;
  width: clamp(170px, 18vw, 290px);
  height: clamp(100px, 15vw, 210px);
  object-fit: contain;
  object-position: top center;
  opacity: 0.13;
  transform: translateX(-50%) scaleY(-1);
  transform-origin: top;
  filter: blur(0.8px);
  pointer-events: none;
  transition: opacity 240ms ease;
}

.coverflow-arrow {
  position: absolute;
  top: 49%;
  z-index: 20;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.coverflow-next {
  right: 28px;
}

.coverflow-status {
  position: absolute;
  right: 32px;
  bottom: 24px;
  z-index: 20;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.button-primary:hover {
  background: var(--blue-hover);
}

.button-secondary {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.button.invert {
  background: #f5f5f7;
  color: #1d1d1f;
  box-shadow: none;
}

.icon-button.invert {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

.section {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 108px 0;
}

.work-section {
  padding-top: 78px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head.compact {
  margin-bottom: 26px;
}

.section-head h2,
.contact-section h2 {
  max-width: 930px;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.segmented-control {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 26px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 5px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.segment {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.segment:hover {
  color: var(--ink);
}

.segment.is-active {
  background: var(--surface-strong);
  color: var(--bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.project-card.is-hidden {
  display: none;
}

.project-trigger {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0;
  background: var(--glass);
  color: inherit;
  text-align: left;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  cursor: pointer;
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.project-trigger:hover {
  transform: translateY(-5px);
  background: var(--glass-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), inset 0 1px 0 var(--glass-border);
}

.project-image-wrap {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface), var(--ink) 8%);
  --cover-bg: none;
}

.project-image-wrap::before,
.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-image-wrap::before {
  z-index: 0;
  inset: -12%;
  background-image: var(--cover-bg);
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(155%);
  transform: scale(1.16);
  opacity: 0.88;
}

.project-image-wrap::after {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.44), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 46%, rgba(7, 12, 20, 0.2));
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.project-image-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card--portrait .project-image-wrap {
  aspect-ratio: 4 / 5;
}

.project-cover-collage {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: transparent;
}

.project-cover-collage img {
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.project-cover-collage .project-cover-main {
  grid-row: 1 / -1;
}

.project-cover-collage--two {
  position: relative;
  display: block;
}

.project-cover-collage--two img {
  position: absolute;
  top: 10%;
  width: 64%;
  height: 80%;
  border: 0;
  box-shadow: none;
}

.project-cover-collage--two img:first-child {
  left: 3%;
  z-index: 3;
  transform: rotate(-3deg);
}

.project-cover-collage--two img:last-child {
  right: 3%;
  z-index: 2;
  transform: rotate(3deg);
}

.project-cover-collage--two-landscape img {
  left: 7%;
  width: 86%;
  height: 43%;
}

.project-cover-collage--two-landscape img:nth-child(1) {
  top: 3%;
  left: 7%;
  right: auto;
  z-index: 2;
  transform: rotate(-1.5deg);
}

.project-cover-collage--two-landscape img:nth-child(2) {
  top: 54%;
  left: 7%;
  right: auto;
  z-index: 2;
  transform: rotate(1.5deg);
}

.project-trigger:hover .project-cover-collage--two-landscape img:nth-child(1) {
  transform: rotate(-1.5deg) scale(1.012);
}

.project-trigger:hover .project-cover-collage--two-landscape img:nth-child(2) {
  transform: rotate(1.5deg) scale(1.012);
}

.project-trigger:hover .project-cover-collage--two img:first-child {
  transform: rotate(-3deg) scale(1.015);
}

.project-trigger:hover .project-cover-collage--two img:last-child {
  transform: rotate(3deg) scale(1.015);
}

.project-cover-collage--two-portrait img {
  top: 2%;
  width: 46%;
  height: 96%;
}

.project-cover-collage--two-portrait img:first-child {
  left: 10%;
}

.project-cover-collage--two-portrait img:last-child {
  right: 10%;
}

.project-cover-collage--scatter {
  position: relative;
  display: block;
  padding: 0;
}

.project-cover-collage--scatter img {
  position: absolute;
  top: 9%;
  width: 31%;
  height: 82%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-cover-collage--scatter img:nth-child(1) {
  left: 6%;
  rotate: -7deg;
}

.project-cover-collage--scatter img:nth-child(2) {
  left: 34.5%;
  top: 5%;
  rotate: 4deg;
}

.project-cover-collage--scatter img:nth-child(3) {
  right: 6%;
  top: 11%;
  rotate: -2deg;
}

.project-cover-collage--event-three img {
  top: 5%;
  width: 29%;
  height: 90%;
}

.project-cover-collage--event-three img:nth-child(1) {
  left: 4%;
  rotate: -5deg;
}

.project-cover-collage--event-three img:nth-child(2) {
  top: 5%;
  right: 4%;
  left: auto;
  rotate: 5deg;
}

.project-cover-collage--event-three img:nth-child(3) {
  top: 13%;
  right: auto;
  left: 31%;
  width: 38%;
  height: 74%;
  rotate: 0deg;
  z-index: 4;
}

.project-cover-collage--fan-five {
  position: relative;
  display: block;
  padding: 0;
}

.project-cover-collage--avito {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 0.72fr repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}

.project-cover-collage--avito img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}

.project-cover-collage--avito img:first-child {
  grid-column: 1 / -1;
}

.project-trigger:hover .project-cover-collage--avito img {
  transform: none;
}

.project-cover-collage--swift {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}

.project-cover-collage--swift img {
  position: relative;
  inset: auto;
  grid-column: span 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}

.project-cover-collage--swift img:nth-child(7) {
  grid-column: 2 / span 2;
}

.project-cover-collage--swift img:nth-child(8) {
  grid-column: 4 / span 2;
}

.project-trigger:hover .project-cover-collage--swift img {
  transform: none;
}

.project-cover-collage--marketplace {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}

.project-cover-collage--marketplace img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}

.project-trigger:hover .project-cover-collage--marketplace img {
  transform: none;
}

.project-cover-collage--six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}

.project-cover-collage--six img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}

.project-trigger:hover .project-cover-collage--six img {
  transform: none;
}

.project-cover-collage--mflowers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 1.25fr 1fr;
  gap: 4px;
  padding: 5px;
}

.project-cover-collage--mflowers img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}

.project-cover-collage--mflowers img:first-child {
  grid-column: 1 / -1;
}

.project-trigger:hover .project-cover-collage--mflowers img {
  transform: none;
}

.project-cover-collage--swift-yandex {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 1.25fr 1fr;
  gap: 4px;
  padding: 5px;
}

.project-cover-collage--swift-yandex img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  object-fit: contain;
  transform: none;
  box-shadow: none;
}

.project-cover-collage--swift-yandex img:first-child {
  grid-column: 1 / -1;
}

.project-trigger:hover .project-cover-collage--swift-yandex img {
  transform: none;
}

.project-cover-collage--fan-five img {
  position: absolute;
  top: 10%;
  width: 26%;
  height: 80%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-cover-collage--fan-five img:nth-child(1) { left: 2%; rotate: -8deg; }
.project-cover-collage--fan-five img:nth-child(2) { left: 20%; top: 7%; rotate: -4deg; }
.project-cover-collage--fan-five img:nth-child(3) { left: 37%; top: 5%; rotate: 0deg; z-index: 4; }
.project-cover-collage--fan-five img:nth-child(4) { left: 54%; top: 7%; rotate: 4deg; }
.project-cover-collage--fan-five img:nth-child(5) { right: 2%; rotate: 8deg; }

.project-trigger:hover .project-cover-collage--scatter img,
.project-trigger:hover .project-cover-collage--fan-five img {
  transform: translateY(-2px) scale(1.018);
}

.project-trigger:hover img {
  transform: scale(1.025);
}

.project-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
}

.project-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}

.project-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
}

.project-summary {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.approach-section {
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.process-number {
  display: inline-flex;
  margin-bottom: 64px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.process-list h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
}

.services-section {
  padding-top: 0;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-list span {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--glass);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  font-weight: 600;
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 94px 28px;
}

.contact-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.contact-section .eyebrow {
  color: #2997ff;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-link {
  min-width: 132px;
  justify-content: center;
}

.contact-link--telegram:hover {
  background: #229ed9;
  border-color: #229ed9;
  color: #fff;
}

.contact-link--max:hover {
  background: #7357ff;
  border-color: #7357ff;
  color: #fff;
}

.site-footer {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.project-dialog {
  width: min(1180px, calc(100% - 28px));
  max-height: min(880px, calc(100dvh - 28px));
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  height: min(780px, calc(100dvh - 28px));
}

.dialog-media {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(18, 26, 38, 0.86), rgba(4, 8, 14, 0.78));
}

.dialog-image-stage {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(18, 24, 34, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 22px 80px rgba(0, 0, 0, 0.26);
}

.dialog-slide-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  --dialog-slide-bg: none;
}

.dialog-slide-canvas.is-changing {
  animation: dialog-image-in 460ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.dialog-slide-canvas::before,
.dialog-slide-canvas::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.dialog-slide-canvas::before {
  inset: -42px;
  background-image: var(--dialog-slide-bg);
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(145%) contrast(108%);
  opacity: 0.72;
  transform: scale(1.12);
}

.dialog-slide-canvas::after {
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(166, 208, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 44%, rgba(3, 7, 14, 0.16));
  backdrop-filter: blur(2px) saturate(140%);
  -webkit-backdrop-filter: blur(2px) saturate(140%);
}

.dialog-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 26px 52px rgba(0, 0, 0, 0.42));
  transition: opacity 220ms ease, transform 500ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.dialog-image[data-fit="contain"] {
  object-fit: contain;
}

.dialog-image[data-fit="detail"] {
  object-fit: cover;
  transform: scale(1.55);
}

@keyframes dialog-image-in {
  from {
    opacity: 0.25;
    filter: blur(8px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

.slide-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.slide-visual img {
  display: block;
  position: absolute;
  object-fit: contain;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.slide-visual::before,
.slide-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.slide-visual--duo-panels {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(155deg, #42464a 0 52%, #22272b 52%);
  perspective: 1200px;
}

.slide-visual--duo-panels::before {
  inset: 8% 8% 23%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(255, 255, 255, 0.035) 73px 74px),
    #353a3e;
}

.slide-visual--duo-panels::after {
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(170deg, #6b4e38, #30261f);
}

.slide-visual--duo-panels img {
  top: 20%;
  z-index: 2;
  width: 42%;
  height: 46%;
  border: 7px solid #151719;
  object-fit: cover;
}

.slide-visual--duo-panels img:first-child {
  left: 7%;
  transform: rotateY(8deg);
}

.slide-visual--duo-panels img:last-child {
  right: 7%;
  transform: rotateY(-8deg);
}

.slide-visual--folk-window {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 211, 135, 0.32), transparent 34%),
    repeating-linear-gradient(45deg, rgba(164, 20, 23, 0.14) 0 2px, transparent 2px 14px),
    #401013;
}

.slide-visual--folk-window::before {
  inset: 4%;
  border: 10px solid #2b0c0d;
  box-shadow: inset 0 0 0 2px #b98b4d;
}

.slide-visual--folk-window::after {
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 8%;
  border-radius: 50%;
  background: rgba(15, 4, 5, 0.56);
  filter: blur(18px);
}

.slide-visual--folk-window img {
  top: 5%;
  left: 50%;
  z-index: 2;
  width: auto;
  height: 90%;
  border: 8px solid #d3aa6f;
  object-fit: contain;
  transform: translateX(-50%);
}

.slide-visual--care-desk {
  background:
    radial-gradient(circle at 18% 20%, rgba(183, 217, 216, 0.4), transparent 25%),
    linear-gradient(180deg, #e9efee 0 73%, #8a6d58 73%);
}

.slide-visual--care-desk::before {
  inset: 8% 9% 20%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 50px rgba(37, 78, 73, 0.08);
}

.slide-visual--care-desk::after {
  left: 6%;
  right: 6%;
  bottom: 10%;
  height: 10%;
  border-radius: 50%;
  background: rgba(43, 27, 18, 0.32);
  filter: blur(20px);
}

.slide-visual--care-desk img {
  top: 7%;
  z-index: 2;
  width: 33%;
  height: 78%;
  border: 5px solid #fff;
  object-fit: contain;
  background: #fff;
}

.slide-visual--care-desk img:first-child {
  left: 15%;
  transform: rotate(-2deg);
}

.slide-visual--care-desk img:last-child {
  right: 15%;
  transform: rotate(2deg);
}

.slide-visual--sports-lightbox {
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 117, 255, 0.52), transparent 30%),
    radial-gradient(circle at 80% 50%, rgba(255, 32, 42, 0.5), transparent 32%),
    linear-gradient(180deg, #07090e, #14161b);
}

.slide-visual--sports-lightbox::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.12) 50%, transparent 50.5%),
    repeating-linear-gradient(0deg, transparent 0 54px, rgba(255, 255, 255, 0.025) 55px 56px);
}

.slide-visual--sports-lightbox img {
  top: 4%;
  left: 50%;
  width: auto;
  height: 92%;
  border: 6px solid rgba(255, 255, 255, 0.78);
  object-fit: contain;
  transform: translateX(-50%);
  box-shadow:
    0 0 34px rgba(255, 255, 255, 0.24),
    -24px 0 60px rgba(0, 109, 255, 0.2),
    24px 0 60px rgba(255, 27, 38, 0.18);
}

.slide-visual--social-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 210, 255, 0.7), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 0, 139, 0.72), transparent 38%),
    #141028;
}

.slide-visual--social-wall img {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  object-fit: cover;
}

.slide-visual--social-wall img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.slide-visual--neon-sign {
  background:
    radial-gradient(circle at 45% 45%, rgba(0, 255, 139, 0.38), transparent 30%),
    radial-gradient(circle at 60% 62%, rgba(255, 0, 188, 0.28), transparent 34%),
    linear-gradient(145deg, #050914, #101928);
}

.slide-visual--neon-sign::before {
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 50px, rgba(255, 255, 255, 0.02) 51px 52px);
}

.slide-visual--neon-sign img {
  top: 4%;
  left: 50%;
  width: auto;
  height: 92%;
  border: 4px solid rgba(149, 255, 215, 0.88);
  object-fit: contain;
  transform: translateX(-50%);
  box-shadow:
    0 0 28px rgba(0, 255, 160, 0.5),
    0 0 60px rgba(255, 0, 195, 0.28);
}

.slide-visual--menu-table {
  background:
    repeating-linear-gradient(90deg, rgba(60, 22, 15, 0.18) 0 2px, transparent 2px 74px),
    linear-gradient(145deg, #7c2f22, #3e1713);
}

.slide-visual--menu-table::before {
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 189, 89, 0.24), transparent 42%);
}

.slide-visual--menu-table img {
  top: 7%;
  z-index: 2;
  width: auto;
  height: 86%;
  border: 3px solid rgba(255, 232, 190, 0.72);
  object-fit: contain;
}

.slide-visual--menu-table img:first-child {
  left: 18%;
  transform: rotate(-5deg);
}

.slide-visual--menu-table img:last-child {
  right: 18%;
  transform: rotate(5deg);
}

.slide-visual--jewelry-showcase {
  background:
    radial-gradient(circle at 50% 25%, rgba(236, 199, 106, 0.28), transparent 36%),
    linear-gradient(155deg, #063f37, #011c1b);
}

.slide-visual--jewelry-showcase::before {
  inset: 5%;
  border: 1px solid rgba(222, 188, 104, 0.56);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.28);
}

.slide-visual--jewelry-showcase img {
  top: 8%;
  z-index: 2;
  width: auto;
  height: 84%;
  border: 4px solid #b38a3e;
  object-fit: contain;
}

.slide-visual--jewelry-showcase img:first-child {
  left: 19%;
  transform: rotate(-3deg);
}

.slide-visual--jewelry-showcase img:last-child {
  right: 19%;
  transform: rotate(3deg);
}

.slide-visual--theater-lightbox {
  background:
    radial-gradient(circle at 50% 45%, rgba(211, 244, 255, 0.72), transparent 38%),
    linear-gradient(135deg, #163753, #071726);
}

.slide-visual--theater-lightbox::before {
  inset: 7% 13%;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(190, 228, 255, 0.03));
  box-shadow: 0 0 50px rgba(149, 217, 255, 0.3);
}

.slide-visual--theater-lightbox img {
  top: 4%;
  left: 50%;
  z-index: 2;
  width: auto;
  height: 92%;
  border: 7px solid #dceaf1;
  object-fit: contain;
  transform: translateX(-50%);
}

.slide-visual--brochure-table {
  background:
    radial-gradient(circle at 50% 12%, rgba(61, 106, 166, 0.36), transparent 42%),
    linear-gradient(145deg, #0f2540, #071422);
  perspective: 1000px;
}

.slide-visual--brochure-table::after {
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 14%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(24px);
}

.slide-visual--brochure-table img {
  z-index: 2;
  object-fit: contain;
  border: 2px solid rgba(235, 212, 150, 0.6);
}

.slide-visual--brochure-table img:first-child {
  top: 8%;
  left: 8%;
  width: 58%;
  height: 60%;
  transform: rotateX(9deg) rotateZ(-4deg);
}

.slide-visual--brochure-table img:last-child {
  right: 7%;
  bottom: 9%;
  width: 54%;
  height: 56%;
  transform: rotateX(8deg) rotateZ(5deg);
}

.slide-visual--museum-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8% 4% 12%;
  background:
    linear-gradient(180deg, #d9d4ca 0 82%, #8f8273 82%),
    #d9d4ca;
}

.slide-visual--museum-wall::before {
  inset: 0 0 18%;
  background:
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(61, 52, 44, 0.035) 91px 92px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

.slide-visual--museum-wall::after {
  left: 4%;
  right: 4%;
  bottom: 8%;
  height: 8%;
  border-radius: 50%;
  background: rgba(44, 34, 26, 0.25);
  filter: blur(18px);
}

.slide-visual--museum-wall img {
  position: relative;
  z-index: 2;
  width: 12.5%;
  height: 78%;
  border: 4px solid #f0ece3;
  object-fit: cover;
}

.slide-visual--museum-wall img:nth-child(even) {
  transform: translateY(3%);
}

.slide-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(10px, 1.8vw, 18px);
  padding: clamp(16px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #111722, #05080d);
}

.slide-visual[data-items="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slide-visual[data-items="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slide-visual[data-items="4"],
.slide-visual[data-items="5"],
.slide-visual[data-items="6"],
.slide-visual[data-items="7"],
.slide-visual[data-items="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.slide-visual[data-items="1"] .slide-frame {
  width: min(100%, 460px);
}

.slide-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  padding: clamp(8px, 1.4vw, 14px);
  background: rgba(248, 250, 255, 0.9);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.slide-frame img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
  transform: none !important;
}

.slide-visual--duo-panels,
.slide-visual--care-desk,
.slide-visual--menu-table,
.slide-visual--jewelry-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slide-visual--social-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.slide-visual--social-wall .slide-frame:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.slide-visual--museum-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.slide-visual--museum-wall .slide-frame {
  background: rgba(255, 250, 239, 0.96);
}

.slide-visual--brochure-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slide-visual--brochure-table .slide-frame {
  transform: rotate(-1.6deg);
}

.slide-visual--brochure-table .slide-frame:nth-child(2) {
  transform: rotate(1.6deg);
}

.slide-visual--folk-window .slide-frame,
.slide-visual--sports-lightbox .slide-frame,
.slide-visual--neon-sign .slide-frame,
.slide-visual--theater-lightbox .slide-frame {
  width: min(100%, 440px);
}

.dialog-slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.78);
  color: #10141c;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dialog-slide-arrow-left {
  left: 12px;
}

.dialog-slide-arrow-right {
  right: 12px;
}

.dialog-slide-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.58);
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dialog-slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  color: #fff;
}

.dialog-slide-meta strong {
  font-size: 14px;
}

.dialog-slide-meta span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  text-align: right;
}

.dialog-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.dialog-thumb {
  width: 88px;
  min-width: 88px;
  flex: 0 0 88px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  aspect-ratio: 16 / 9;
  background: #111722;
  cursor: pointer;
  opacity: 0.52;
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.dialog-thumb:hover {
  opacity: 0.82;
}

.dialog-thumb.is-active {
  border-color: rgba(255, 255, 255, 0.82);
  opacity: 1;
  transform: translateY(-2px);
}

.dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-copy {
  padding: 48px 42px;
  overflow: auto;
}

.dialog-copy h2 {
  font-size: clamp(34px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  overflow-wrap: normal;
  text-wrap: balance;
}

.dialog-copy p[data-modal-description] {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.detail-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.detail-list div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.detail-list dt {
  margin-bottom: 5px;
  color: var(--blue);
  font-weight: 650;
}

.detail-list dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .hero h1 {
    max-width: 780px;
    font-size: 58px;
  }

  .hero-table .hero-content {
    width: min(530px, 50vw);
  }

  .hero-table h1 {
    font-size: 50px;
  }

  .hero-coverflow .hero-content {
    width: min(440px, 42vw);
  }

  .hero-coverflow h1 {
    font-size: 46px;
  }

  .coverflow-shell {
    left: 34%;
  }

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

  .process-list li {
    min-height: 250px;
  }

  .process-number {
    margin-bottom: 42px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 28px);
    overflow: auto;
  }

  .dialog-image-stage {
    min-height: min(64svh, 620px);
    aspect-ratio: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 11px 16px;
  }

  .menu-button {
    display: inline-grid;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 8px) 12px auto;
    display: none;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    justify-content: center;
  }

  .hero {
    min-height: calc(78svh - var(--header-height));
    align-items: flex-end;
    padding: 54px 18px 44px;
  }

  .hero::after {
    background: rgba(245, 245, 247, 0.62);
  }

  [data-theme="dark"] .hero::after {
    background: rgba(0, 0, 0, 0.62);
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.04;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-table {
    min-height: calc(88svh - var(--header-height));
    align-items: flex-start;
    padding-top: 46px;
  }

  .hero-table::after {
    background: rgba(245, 245, 247, 0.54);
  }

  [data-theme="dark"] .hero-table::after {
    background: rgba(0, 0, 0, 0.6);
  }

  .hero-table .hero-content {
    width: 100%;
  }

  .hero-table h1 {
    max-width: 600px;
    font-size: 40px;
  }

  .hero-table .hero-copy {
    max-width: 560px;
    font-size: 16px;
  }

  .desk-collage {
    top: 48%;
    width: 100%;
    height: 52%;
    opacity: 0.82;
  }

  .desk-sheet-taekwondo {
    left: 4%;
    width: 25%;
  }

  .desk-sheet-folk {
    left: 0;
    width: 21%;
  }

  .desk-sheet-event {
    left: 28%;
    width: 38%;
  }

  .desk-sheet-roof {
    left: 22%;
    width: 55%;
  }

  .desk-sheet-tarantino {
    right: 1%;
    width: 24%;
  }

  .desk-sheet-product {
    right: 0;
    width: 22%;
  }

  .hero-coverflow {
    min-height: calc(92svh - var(--header-height));
    align-items: flex-start;
    padding-top: 38px;
  }

  .hero-coverflow::after {
    background: rgba(8, 8, 12, 0.6);
  }

  .hero-coverflow .hero-content {
    width: 100%;
    margin-left: 0;
  }

  .hero-coverflow h1 {
    max-width: 600px;
    font-size: 38px;
  }

  .hero-coverflow .hero-copy {
    max-width: 600px;
    font-size: 16px;
  }

  .hero-coverflow .hero-actions {
    margin-top: 20px;
  }

  .coverflow-shell {
    inset: 42% 0 0;
  }

  .coverflow-card {
    top: 46%;
    left: 50%;
    width: clamp(132px, 38vw, 180px);
    height: clamp(205px, 56vw, 280px);
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 68%))
      translateZ(calc(var(--abs-offset) * -110px))
      rotateY(calc(var(--offset) * -47deg))
      scale(calc(1 - var(--abs-offset) * 0.08));
  }

  .coverflow-object-glow {
    top: 46%;
    left: 50%;
    width: clamp(180px, 54vw, 240px);
    height: clamp(250px, 72vw, 340px);
    filter: blur(24px) saturate(1.9) brightness(1.12);
  }

  .coverflow-ambient-layer {
    filter: blur(52px) saturate(1.7) brightness(0.62);
  }

  .coverflow-floor-reflection {
    top: calc(46% + clamp(108px, 29vw, 146px));
    left: 50%;
    width: clamp(132px, 38vw, 180px);
    height: clamp(72px, 23vw, 108px);
  }

  .coverflow-arrow {
    top: 49%;
    width: 38px;
    height: 38px;
  }

  .coverflow-next {
    right: 12px;
  }

  .coverflow-status {
    right: 16px;
    bottom: 10px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 76px 0;
  }

  .work-section {
    padding-top: 62px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head h2,
  .contact-section h2 {
    font-size: 38px;
    line-height: 1.08;
  }

  .segmented-control {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .segment {
    width: 100%;
    border-radius: 6px;
  }

  .work-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .project-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .dialog-image-stage {
    min-height: 58svh;
  }

  .process-list li {
    min-height: 0;
  }

  .process-number {
    margin-bottom: 34px;
  }

  .contact-section {
    padding: 72px 16px;
  }

  .contact-actions,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-copy {
    padding: 32px 20px 26px;
  }

  .dialog-copy h2 {
    padding-right: 36px;
    font-size: 36px;
  }

  .dialog-media {
    padding: 8px;
    gap: 8px;
  }

  .dialog-slide-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .dialog-slide-meta span {
    text-align: left;
  }

  .dialog-thumbs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dialog-thumb {
    width: 82px;
    flex: 0 0 82px;
  }

  .dialog-slide-arrow {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-table h1,
  .hero-coverflow h1 {
    font-size: 34px;
  }

  .hero-coverflow {
    min-height: calc(94svh - var(--header-height));
  }

  .coverflow-shell {
    top: 44%;
  }

  .section-head h2,
  .contact-section h2,
  .dialog-copy h2 {
    font-size: 32px;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .site-footer {
    width: calc(100% - 32px);
  }
}

/* Reference-inspired animated hero */
.site-header {
  min-height: 64px;
  padding: 10px 24px;
  border-bottom-color: rgba(255, 255, 255, 0.48);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: 0 8px 30px rgba(24, 18, 12, 0.06);
}

.site-nav {
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px;
  background: rgba(27, 27, 30, 0.78);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

.site-nav a {
  min-height: 34px;
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-nav a:hover {
  background: #f7f7f5;
  color: #171719;
  box-shadow: none;
}

.header-actions .icon-button {
  width: 38px;
  height: 38px;
}

.hero-coverflow {
  --hero-accent-a: #ff5b18;
  --hero-accent-b: #ffb51e;
  min-height: calc(100svh - 64px);
  padding: clamp(28px, 4vw, 58px);
  background:
    radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--hero-accent-b), white 14%), transparent 35%),
    linear-gradient(145deg, var(--hero-accent-a), var(--hero-accent-b));
  color: #f8f8f6;
  transition: background 900ms ease;
}

.hero-coverflow::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 2.8vw, 42px);
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(30px, 4vw, 58px);
  background: rgba(24, 24, 28, 0.68);
  box-shadow: 0 42px 90px rgba(87, 36, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.hero-coverflow::after {
  inset: clamp(18px, 2.8vw, 42px);
  z-index: 1;
  border-radius: clamp(30px, 4vw, 58px);
  background:
    radial-gradient(circle at 74% 46%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(105deg, rgba(5, 5, 8, 0.22), rgba(5, 5, 8, 0.03) 55%, rgba(255, 255, 255, 0.04));
}

.hero-coverflow .coverflow-ambient {
  inset: -18%;
  opacity: 0.3;
  mix-blend-mode: soft-light;
}

.hero-coverflow .coverflow-ambient-layer {
  filter: blur(84px) saturate(2.2) brightness(1.1);
}

.hero-coverflow .coverflow-ambient-layer.is-active {
  opacity: 0.42;
}

.hero-coverflow .hero-content {
  z-index: 5;
  width: min(470px, 34vw);
  margin-left: clamp(22px, 4.2vw, 76px);
}

.hero-mini-label {
  width: fit-content;
  margin: 0 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-coverflow h1 {
  max-width: 470px;
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
}

.hero-coverflow .hero-copy {
  max-width: 440px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.5;
}

.hero-coverflow .hero-actions {
  margin-top: 28px;
}

.hero-coverflow .button-primary {
  background: #f7f7f5;
  color: #171719;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.hero-coverflow .button-primary:hover {
  background: #ffffff;
}

.hero-coverflow .button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.coverflow-shell {
  inset: clamp(18px, 2.8vw, 42px) clamp(18px, 2.8vw, 42px) clamp(18px, 2.8vw, 42px) 39%;
  border-radius: 0 clamp(30px, 4vw, 58px) clamp(30px, 4vw, 58px) 0;
}

.coverflow-stage,
.coverflow-object-glow {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 6%, #000 18%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 6%, #000 18%);
}

.coverflow-stage {
  perspective: none;
  perspective-origin: center;
}

.coverflow-card {
  top: 50%;
  left: 55%;
  width: clamp(270px, 34vw, 540px);
  height: min(68vh, 590px);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 112%))
    scale(calc(1 - var(--abs-offset) * 0.12));
  filter: blur(calc(var(--abs-offset) * 9px)) brightness(calc(1 - var(--abs-offset) * 0.18));
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 500ms ease,
    filter 650ms ease;
  will-change: transform, opacity, filter;
}

.coverflow-card:not(.is-active) {
  filter: blur(calc(var(--abs-offset) * 9px)) brightness(0.78) saturate(0.8);
}

.coverflow-art,
.coverflow-art-square,
.coverflow-art-wide {
  inset: 0;
}

.coverflow-art > img:not(.coverflow-reflection) {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42), 0 4px 16px rgba(0, 0, 0, 0.28);
}

.coverflow-shell.is-switching .coverflow-card.is-active {
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0.7 !important;
  filter: blur(5px) brightness(0.88);
}

.coverflow-object-glow {
  top: 50%;
  left: 55%;
  width: clamp(300px, 38vw, 610px);
  height: min(72vh, 630px);
  opacity: 0.34;
  filter: blur(52px) saturate(2.1) brightness(1.2);
}

.coverflow-floor-reflection {
  display: none;
}

.coverflow-arrow {
  top: 50%;
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #171719;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.coverflow-prev {
  left: 22px;
}

.coverflow-next {
  right: 22px;
}

.coverflow-status {
  right: 24px;
  bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  .hero-coverflow .hero-content {
    width: min(390px, 42vw);
    margin-left: 24px;
  }

  .hero-coverflow h1 {
    font-size: clamp(38px, 5.4vw, 52px);
  }

  .coverflow-shell {
    inset: 24px 24px 24px 43%;
  }

  .coverflow-card {
    left: 54%;
    width: clamp(240px, 40vw, 380px);
    height: min(65vh, 500px);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 60px;
    padding: 9px 16px;
  }

  .hero-coverflow {
    min-height: calc(100svh - 60px);
    align-items: flex-start;
    padding: 12px;
  }

  .hero-coverflow::before,
  .hero-coverflow::after {
    inset: 12px;
    border-radius: 28px;
  }

  .hero-coverflow .hero-content {
    width: 100%;
    margin: 0;
    padding: 38px 22px 0;
  }

  .hero-mini-label {
    margin-bottom: 14px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .hero-coverflow h1 {
    max-width: 520px;
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-coverflow .hero-copy {
    max-width: 500px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.42;
  }

  .hero-coverflow .hero-actions {
    margin-top: 18px;
  }

  .hero-coverflow .button {
    min-height: 42px;
    width: auto;
    padding: 10px 15px;
    font-size: 13px;
  }

  .coverflow-shell {
    inset: 48% 12px 12px;
    border-radius: 0 0 28px 28px;
  }

  .coverflow-stage,
  .coverflow-object-glow {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 7%, #000 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 7%, #000 20%);
  }

  .coverflow-card {
    top: 47%;
    left: 50%;
    width: min(66vw, 286px);
    height: calc(100% - 28px);
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 104%))
      scale(calc(1 - var(--abs-offset) * 0.1));
  }

  .coverflow-object-glow {
    top: 47%;
    left: 50%;
    width: min(70vw, 310px);
    height: calc(100% - 18px);
  }

  .coverflow-arrow {
    top: 49%;
    width: 36px;
    height: 36px;
  }

  .coverflow-prev {
    left: 10px;
  }

  .coverflow-next {
    right: 10px;
  }

  .coverflow-status {
    right: 12px;
    bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
