/* ============================================================
   ALFRED BADRTDINOV — VIDEO EDITOR PORTFOLIO
   Pastel Burgundy-White Gradient + Exact Stussy Script + Auto-Part Hero Hover
   ============================================================ */

@font-face {
  font-family: "Stussy Script";
  src: url("../assets/fonts/StussyScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.stussy-text {
  font-family: "Stussy Script", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

:root {
  --bg: #0b0b0e;
  --bg-alt: rgba(14, 15, 19, 0.42);
  --surface: rgba(18, 19, 24, 0.72);
  --surface-strong: rgba(28, 30, 38, 0.84);
  --surface-dark: #060608;
  --ink: #f6f3ea;
  --ink-muted: #b6b1a3;
  --ink-soft: #7f7b70;

  --yellow: #f2c200;
  --red: #f2c200;
  --blue: #f2c200;
  --mint: #f2c200;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-jp: "Noto Sans JP", "Manrope", system-ui, sans-serif;

  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 16px 38px -12px rgba(0, 0, 0, 0.65);
  --shadow-lift: 0 24px 54px -10px rgba(0, 0, 0, 0.85), 0 0 28px -8px rgba(242, 194, 0, 0.22);
}

[data-theme="night"] {
  --bg: #f4efd8;
  --bg-alt: rgba(235, 226, 188, 0.55);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-dark: #141416;
  --ink: #121214;
  --ink-muted: #4b483d;
  --ink-soft: #797464;
  --red: #d4a100;
  --shadow-card: 0 14px 34px -14px rgba(18, 18, 20, 0.16);
  --shadow-lift: 0 22px 48px -12px rgba(18, 18, 20, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(74px + env(safe-area-inset-top));
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

body {
  position: relative;
  margin: 0;
  background-color: #0b0b0e;
  background-image:
    radial-gradient(circle at 14% 12%, rgba(242, 194, 0, 0.14) 0%, transparent 48%),
    radial-gradient(circle at 86% 32%, rgba(242, 194, 0, 0.10) 0%, transparent 46%),
    linear-gradient(165deg, #0b0b0e 0%, #111217 52%, #09090b 100%);
  color: var(--ink);
  font-family: var(--font-body);
  text-transform: uppercase;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease-smooth), color 0.35s var(--ease-smooth);
}

[data-theme="night"] body {
  background-color: #f4efd8;
  background-image:
    radial-gradient(circle at 16% 12%, rgba(242, 194, 0, 0.22) 0%, transparent 50%),
    linear-gradient(165deg, #fbf9ee 0%, #f1e8c4 100%);
}

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

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

button {
  font: inherit;
  color: inherit;
  text-transform: uppercase;
  border: none;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1240px, 100% - 64px);
  }
}

.top-bar,
main,
.footer {
  position: relative;
  z-index: 2;
}

/* ============================================================
   SLOW AMBIENT MESH LIGHT BLOBS (Option 6)
   ============================================================ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.65;
  will-change: transform;
}

.bg-blob--1 {
  width: clamp(320px, 42vw, 620px);
  height: clamp(320px, 42vw, 620px);
  background: radial-gradient(circle, rgba(242, 194, 0, 0.22) 0%, transparent 70%);
  top: -8%;
  left: -10%;
  animation: blobDriftA 22s ease-in-out infinite alternate;
}

.bg-blob--2 {
  width: clamp(280px, 38vw, 560px);
  height: clamp(280px, 38vw, 560px);
  background: radial-gradient(circle, rgba(242, 194, 0, 0.18) 0%, transparent 70%);
  top: 38%;
  right: -10%;
  animation: blobDriftB 26s ease-in-out infinite alternate;
}

.bg-blob--3 {
  width: clamp(340px, 45vw, 640px);
  height: clamp(340px, 45vw, 640px);
  background: radial-gradient(circle, rgba(212, 161, 0, 0.16) 0%, transparent 72%);
  bottom: -12%;
  left: 14%;
  animation: blobDriftC 24s ease-in-out infinite alternate;
}

[data-theme="night"] .bg-blob--1 {
  background: radial-gradient(circle, rgba(242, 194, 0, 0.24) 0%, transparent 70%);
}
[data-theme="night"] .bg-blob--2 {
  background: radial-gradient(circle, rgba(242, 194, 0, 0.18) 0%, transparent 70%);
}
[data-theme="night"] .bg-blob--3 {
  background: radial-gradient(circle, rgba(212, 161, 0, 0.20) 0%, transparent 72%);
}

@keyframes blobDriftA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
}

@keyframes blobDriftB {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-9vw, -5vh, 0) scale(1.14); }
}

@keyframes blobDriftC {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6vw, -8vh, 0) scale(1.08); }
}

/* ============================================================
   TOP UTILITY BAR (Floats transparently over the hero video)
   ============================================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 11, 14, 0.82);
}

[data-theme="night"] .top-bar {
  background: rgba(244, 239, 216, 0.86);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  flex-shrink: 0;
}

.top-bar__left > span {
  opacity: 0.78;
}

.brand-logo {
  display: inline-block;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(242, 194, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.brand-logo:hover {
  transform: translateY(-1px) scale(1.04);
}

[data-theme="night"] .brand-logo {
  color: #0b0b0e;
  text-shadow: none;
}

.dot-sep { opacity: 0.45; }

.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-bar__nav::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s var(--ease-snappy);
}

.nav-pill:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.nav-pill.is-active {
  background: var(--yellow);
  color: #111111;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s var(--ease-snappy), background-color 0.2s ease;
}

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

.hud-chip--accent {
  background: var(--ink);
  color: var(--bg);
}

.top-bar__handle {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  transition: transform 0.2s var(--ease-snappy);
}

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

@media (max-width: 900px) {
  .hide-md { display: none; }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .top-bar__inner { min-height: 52px; gap: 8px; }
  .brand-logo { font-size: 1.2rem; }
  .dot-sep { display: none; }
  .nav-pill { padding: 6px 9px; font-size: 0.66rem; }
  .hud-chip { padding: 6px 10px; font-size: 0.7rem; }
}

/* ============================================================
   HERO SECTION WITH SEAMLESS BACKGROUND VIDEO (Melts into --bg)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 68px;
  min-height: clamp(450px, 62vh, 620px);
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
}

@media (min-width: 900px) {
  .hero {
    padding: 120px 0 76px;
  }
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
}

.hero__bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 14, 0.54) 0%,
    rgba(11, 11, 14, 0.28) 45%,
    rgba(11, 11, 14, 0.48) 76%,
    transparent 100%
  );
  pointer-events: none;
}

[data-theme="night"] .hero__bg-video {
  opacity: 0.62;
}

[data-theme="night"] .hero__bg-scrim {
  background: linear-gradient(
    180deg,
    rgba(244, 239, 216, 0.68) 0%,
    rgba(244, 239, 216, 0.42) 40%,
    rgba(244, 239, 216, 0.66) 76%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
}

main {
  position: relative;
}

.index-menu,
.section,
.footer {
  position: relative;
  z-index: 2;
}

.hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 24px;
}

.hi-no-maru {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e53935;
  flex-shrink: 0;
}

.hero__spec {
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--yellow);
}

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 8vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
}

.hero__line { display: block; }

/* Smooth Optical Cross-Dissolve Font Swap (Hover & Scroll) */
.s-run {
  display: inline;
}

.s-word {
  display: inline-block;
  white-space: nowrap;
}

.s-char {
  position: relative;
  display: inline-block;
  cursor: inherit;
}

.s-char__glyph {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.s-char::after {
  content: attr(data-stussy);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  font-family: "Stussy Script", sans-serif;
  font-weight: 400;
  font-size: 1.08em;
  line-height: 0.9;
  color: var(--yellow);
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  user-select: none;
}

.hero__title .s-char::after {
  text-shadow: 2px 3px 0 #0b0b0e;
}

/* High-contrast dark glyph when hovering or accented inside yellow-filled buttons/pills */
.solid-btn .s-char::after,
.yt-play-btn .s-char::after,
.filter-btn.is-active .s-char::after,
.nav-pill.is-active .s-char::after,
.brief-pill.is-selected .s-char::after,
.stat-tile--yellow .s-char::after,
.back-to-top:hover .s-char::after,
[data-theme="night"] .s-char::after {
  color: #0b0b0e;
  text-shadow: none;
}

/* Mixed Stussy state (scroll rhythm) + smooth opposite flip on hover */
.s-char.is-stussy-on .s-char__glyph,
.s-char:not(.is-stussy-on):hover .s-char__glyph,
.s-char.is-active .s-char__glyph {
  opacity: 0;
}

.s-char.is-stussy-on::after,
.s-char:not(.is-stussy-on):hover::after,
.s-char.is-active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.s-char.is-stussy-on:hover .s-char__glyph {
  opacity: 1;
}

.s-char.is-stussy-on:hover::after {
  opacity: 0;
}

.section-title--stussy {
  font-family: "Stussy Script", sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem) !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
}

.stat-tile__val--stussy {
  font-size: 1.95rem !important;
  line-height: 1 !important;
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  color: var(--ink-muted);
}

.hero__sub-main,
.hero__sub-exp {
  display: block;
}

.hero__sub-exp {
  margin-top: 4px;
}

.hero__subtitle strong {
  color: var(--ink);
  font-weight: 700;
}

.hero__cta-wrap {
  display: flex;
  justify-content: center;
}

.hero__cta-link {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-snappy);
}

.hero__cta-link:hover {
  color: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* ============================================================
   NUMBERED INDEX MENU (SINGLE HORIZONTAL LINE — BORDERLESS & BIG)
   ============================================================ */
.index-menu {
  padding: 12px 0 32px;
}

.index-menu .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(215px, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .index-menu .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
  }
}

@media (max-width: 480px) {
  .index-menu { padding: 0 0 20px; }
  .index-menu .container {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .index-row {
    min-height: 58px;
    padding: 14px 4px;
  }
}

.index-menu .container::-webkit-scrollbar {
  display: none;
}

.index-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 22px 8px;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-snappy), color 0.25s ease;
}

.index-row::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 1.5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-snappy);
  opacity: 0.85;
}

.index-row:hover::after {
  transform: scaleX(1);
}

.index-row__num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  transition: color 0.2s ease;
}

.index-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.38rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.index-row__count {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.index-row__arrow {
  font-size: 1.5rem;
  transition: transform 0.25s var(--ease-snappy), color 0.2s ease;
}

.index-row:hover {
  transform: translateY(-3px);
  color: var(--yellow);
}

.index-row:hover .index-row__num,
.index-row:hover .index-row__arrow { color: var(--yellow); }

.index-row:hover .index-row__arrow { transform: translateX(6px); }

/* ============================================================
   SECTIONS & CONTROLS
   ============================================================ */
.section {
  position: relative;
  overflow-x: clip;
  padding: 56px 0;
}

.section--alt {
  background: transparent;
}

.section--youtube {
  background: transparent;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
}

.outline-btn,
.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--ease-snappy), box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.outline-btn { background: var(--surface); }
.outline-btn:hover { transform: translateY(-2px); background: var(--surface-strong); }

.solid-btn {
  background: var(--yellow);
  color: #0b0b0e;
  box-shadow: 0 10px 24px -8px rgba(242, 194, 0, 0.38);
}

.solid-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ============================================================
   CHAOTIC NUMBERED PORTFOLIO WORKS (6 initially, hover video)
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-snappy);
}

.filter-btn:hover { transform: translateY(-1px); background: var(--surface-strong); }

.filter-btn.is-active {
  background: var(--yellow);
  color: #0b0b0e;
}

.filter-count {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--yellow) 26%, transparent);
}

.filter-btn.is-active .filter-count {
  background: #0b0b0e;
  color: var(--yellow);
}

.works-chaos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
  align-items: start;
}

@media (min-width: 760px) {
  .works-chaos {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141518;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-snappy),
    box-shadow 0.4s ease,
    opacity 0.35s ease;
}

.works-chaos.has-focus .work-card:not(.is-focused) {
  opacity: 0.46;
}

@media (min-width: 760px) {
  .work-card--tall { grid-column: span 3; aspect-ratio: 9 / 15; }
  .work-card--portrait { grid-column: span 4; aspect-ratio: 4 / 5; }
  .work-card--square { grid-column: span 3; aspect-ratio: 1 / 1; }
  .work-card--wide { grid-column: span 5; aspect-ratio: 16 / 11; }

  .works-chaos .work-card--tilt-a.is-visible { transform: rotate(-1.6deg) translateY(6px); }
  .works-chaos .work-card--tilt-b.is-visible { transform: rotate(1.4deg) translateY(-10px); }
  .works-chaos .work-card--tilt-c.is-visible { transform: rotate(-0.9deg) translateY(14px); }
  .works-chaos .work-card--tilt-d.is-visible { transform: rotate(1.8deg) translateY(0px); }
}

@media (max-width: 759px) {
  .work-card { aspect-ratio: 9 / 13; }
  .work-card--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .works-chaos .work-card--tilt-a.is-visible { transform: rotate(-1.1deg); }
  .works-chaos .work-card--tilt-b.is-visible { transform: rotate(1.1deg) translateY(8px); }
  .works-chaos .work-card--tilt-c.is-visible { transform: rotate(-0.8deg); }
  .works-chaos .work-card--tilt-d.is-visible { transform: rotate(1deg) translateY(6px); }
}

.work-card.is-leaving {
  z-index: 3;
}

.works-chaos .work-card:hover,
.works-chaos .work-card.is-focused {
  transform: rotate(0deg) translateY(-8px) scale(1.025);
  box-shadow: var(--shadow-lift);
  opacity: 1;
  z-index: 4;
}

.work-card__media {
  position: relative;
  width: 100%;
  height: 100%;
}

.work-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}

.work-card.is-playing .work-card__video {
  opacity: 1;
}

.work-card__cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(242, 194, 0, 0.25), transparent 55%),
    radial-gradient(circle at 80% 82%, rgba(214, 51, 31, 0.28), transparent 52%),
    linear-gradient(155deg, #1a1c22 0%, #0f1014 100%);
}

.work-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.08) 0%, rgba(12, 13, 16, 0.55) 100%);
  pointer-events: none;
  z-index: 3;
}

.work-card__num {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.work-card__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.45s var(--ease-smooth);
  pointer-events: none;
}

.work-card.is-playing .work-card__progress {
  opacity: 1;
}

.work-card__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform-origin: left center;
  transform: scaleX(0);
}

.works-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    grid-template-rows 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.44s ease,
    transform 0.54s cubic-bezier(0.22, 1, 0.36, 1);
}

.works-collapse.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.works-collapse__inner {
  overflow: hidden;
  min-height: 0;
}

.works-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  transition: margin-top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.works-more-wrap.is-open {
  margin-top: 38px;
}

.works-more-btn {
  padding: 22px 50px;
  min-width: min(460px, 100%);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  letter-spacing: 0.04em;
  box-shadow: 0 18px 42px rgba(242, 194, 0, 0.34);
}

/* ============================================================
   DIRECTIONS & BIO
   ============================================================ */
.about-lead-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .about-lead-card {
    grid-template-columns: 1.35fr 0.75fr;
    padding: 34px;
  }
}

.lead-p {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.lead-p:last-child { margin-bottom: 0; }
.lead-p--muted { color: var(--ink-muted); }

.about-lead-card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .about-lead-card__stats { grid-template-columns: 1fr; }
}

.stat-tile {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.stat-tile--yellow {
  background: var(--yellow);
  color: #111111;
}

.stat-tile__val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.05;
}

.stat-tile__lbl {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  opacity: 0.78;
}

.directions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .directions-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .directions-grid--wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dir-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.22s var(--ease-snappy);
}

.dir-card:hover { transform: translateY(-3px); }

.dir-card__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}

.dir-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.dir-card__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ============================================================
   YOUTUBE CHANNEL BLOCK (@HGZLKZ)
   ============================================================ */
.yt-channel-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.yt-channel-banner__info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.yt-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
}

.yt-channel-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.yt-handle {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--red);
  margin-left: 6px;
}

.yt-channel-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 640px;
}

.yt-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 960px) {
  .yt-showcase { grid-template-columns: 1.1fr 1fr; }
}

.yt-stage {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.yt-stage__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-stage__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.yt-stage__sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.yt-embed-slot {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d0e11;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.yt-embed-slot.is-open {
  max-height: 460px;
  opacity: 1;
  transform: translateY(0);
}

.yt-embed-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-stage__actions {
  display: flex;
  justify-content: flex-start;
}

.yt-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--yellow);
  color: #0b0b0e;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(242, 194, 0, 0.34);
  transition: transform 0.2s var(--ease-snappy), filter 0.2s ease;
}

.yt-play-btn:hover {
  transform: scale(1.04) translateY(-2px);
  filter: brightness(1.08);
}

.yt-playlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.yt-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s var(--ease-snappy), background-color 0.2s ease;
}

.yt-item:hover {
  transform: translateX(4px);
  background: var(--surface-strong);
}

.yt-item.is-active {
  background: color-mix(in srgb, var(--yellow) 30%, var(--surface));
}

.yt-item__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.yt-item__meta {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ============================================================
   CONTACT & BRIEF BUILDER
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.brief-box,
.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.brief-box__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.brief-box__sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.brief-group { margin-bottom: 18px; }

.brief-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.brief-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brief-pill {
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-snappy), background-color 0.2s ease;
}

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

.brief-pill.is-selected {
  background: var(--yellow);
  color: #111111;
}

.brief-preview {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-dark);
  color: #f6efe9;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.contact-card__quote {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-strong);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-strong);
  transition: transform 0.22s var(--ease-snappy), background-color 0.2s ease;
}

.contact-link-row:hover {
  transform: translateX(4px);
  background: color-mix(in srgb, var(--yellow) 24%, var(--surface-strong));
}

.contact-link-row__k {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.contact-link-row__v {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.9vw, 0.9rem);
  font-weight: 700;
  word-break: normal;
  overflow-wrap: break-word;
}

.contact-link-row__arr { font-size: 1.25rem; }

/* ============================================================
   FOOTER & BACK TO TOP BUTTON
   ============================================================ */
.footer {
  padding: 36px 0 calc(48px + env(safe-area-inset-bottom));
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.back-to-top {
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease-snappy), background-color 0.2s ease, color 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--yellow);
  color: #111111;
}

/* ============================================================
   CINEMA VIDEO MODAL (Smooth Open & Close)
   ============================================================ */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open {
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.84);
  backdrop-filter: blur(12px);
}

.modal__dialog {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #14151a;
  color: #f5f2eb;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 16px;
  --modal-max-h: 68dvh;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.modal__close {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal__player {
  position: relative;
  width: min(100%, calc(var(--modal-max-h, 68dvh) * var(--modal-ratio, 1.7778)));
  aspect-ratio: var(--modal-aspect, 16 / 9);
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  margin-inline: auto;
  flex-shrink: 0;
}

.modal__player iframe,
.modal__video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000000;
  outline: none;
}

.modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.modal__nav { display: flex; gap: 8px; }

.modal__dialog .outline-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f2eb;
}

.modal__dialog .solid-btn {
  background: var(--yellow);
  color: #111111;
}

/* ============================================================
   SMOOTH SCROLL REVEAL (Sections + Staggered Cards)
   ============================================================ */
.hero__content {
  animation: heroFadeUp 0.9s var(--ease-snappy) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll,
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease-snappy),
    transform 0.85s var(--ease-snappy);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MINIMALIST JAPANESE ARCHITECTURE + POST-HERO COLLAGE BACKGROUND
   ============================================================ */
.jp-cross {
  display: inline-block;
  color: var(--yellow);
  margin-right: 6px;
  font-weight: 700;
  opacity: 0.85;
}

.section-head {
  position: relative;
  padding-bottom: 10px;
}

/* POST-HERO STAGE & 14-PHOTO COLLAGE SITE BACKGROUND (SEAMLESS AFTER HERO VIDEO) */
.post-hero-stage {
  position: relative;
  overflow: hidden;
  margin-top: -36px;
  padding-top: 36px;
}

.post-hero-stage > section {
  position: relative;
  z-index: 2;
}

.bg-photo-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 180px, #000 380px, #000 calc(100% - 240px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 180px, #000 380px, #000 calc(100% - 240px), transparent 100%);
}

.bg-photo-collage__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 90px 18px 80px;
  width: 100%;
  min-height: 100%;
  align-content: space-between;
  opacity: 0.15;
}

@media (min-width: 900px) {
  .bg-photo-collage__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    padding: 110px 28px 90px;
  }
}

.bg-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transform: rotate(var(--bg-tilt, 0deg));
}

@media (min-width: 900px) {
  .bg-shot--7 { grid-column: span 7; aspect-ratio: 16 / 9; }
  .bg-shot--5 { grid-column: span 5; aspect-ratio: 4 / 3; }
  .bg-shot--4 { grid-column: span 4; aspect-ratio: 4 / 3; }
  .bg-shot--3 { grid-column: span 3; aspect-ratio: 4 / 4; }

  .bg-shot--tilt-a { --bg-tilt: -1.1deg; }
  .bg-shot--tilt-b { --bg-tilt: 0.9deg; }
  .bg-shot--tilt-c { --bg-tilt: -0.6deg; transform: rotate(var(--bg-tilt)) translateY(10px); }
}

@media (max-width: 899px) {
  .bg-shot--7 { grid-column: span 2; aspect-ratio: 16 / 9; }
}

.bg-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-photo-collage__veil {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 14, 0.44);
}

[data-theme="night"] .bg-photo-collage__grid {
  opacity: 0.09;
}

[data-theme="night"] .bg-photo-collage__veil {
  background: rgba(244, 239, 216, 0.45);
}

/* ============================================================
   DIRECTIONS CARD INTERACTION
   ============================================================ */
.dir-card {
  position: relative;
  overflow: hidden;
}

.dir-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease-snappy);
}

.dir-card:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   YOUTUBE FLOATING HOVER PREVIEW & ACTIVE PULSE
   ============================================================ */
.yt-item {
  position: relative;
}

.yt-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--yellow);
}

.yt-hover-preview[hidden] {
  display: none;
}

.yt-hover-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: 210px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0e11;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72), 0 0 22px rgba(242, 194, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.92);
  transition: opacity 0.18s ease, transform 0.22s var(--ease-snappy);
}

.yt-hover-preview.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.yt-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-hover-preview__badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(11, 11, 14, 0.86);
  color: var(--yellow);
  font-size: 0.66rem;
  font-weight: 700;
}

@media (hover: none) {
  .yt-hover-preview { display: none !important; }
}

@media (max-width: 640px) {
  .hero {
    padding: 78px 0 34px;
    min-height: auto;
  }

  .hero__meta-row {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .hero__spec {
    font-size: 0.85rem;
  }

  .hero__title {
    margin-bottom: 18px;
  }

  .hero__subtitle {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }

  .hero__cta-wrap {
    justify-content: flex-start;
  }

  .hero__cta-link {
    font-size: clamp(0.68rem, 3.1vw, 0.88rem);
    letter-spacing: 0.015em;
    white-space: nowrap;
    max-width: 100%;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }

  #services .section-title,
  #contact .section-title {
    font-size: clamp(0.76rem, 3.65vw, 1.35rem);
    white-space: nowrap;
    letter-spacing: -0.035em;
  }

  .filter-bar {
    gap: 8px;
    margin-bottom: 22px;
  }

  .filter-btn {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 0.76rem;
  }

  .works-chaos {
    gap: 12px;
  }

  .work-card__scrim,
  .work-card__cover-bg {
    display: none;
  }

  .work-card__num {
    font-size: 1.75rem;
    left: 12px;
    bottom: 10px;
  }

  .works-more-btn {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
    font-size: 0.94rem;
  }

  .about-lead-card,
  .yt-channel-banner,
  .yt-stage,
  .brief-box,
  .contact-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .yt-channel-banner__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .yt-avatar {
    width: 56px;
    height: 56px;
  }

  .yt-play-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .yt-playlist {
    max-height: 360px;
  }

  .brief-pill {
    min-height: 42px;
    padding: 8px 13px;
    font-size: 0.75rem;
  }

  .brief-actions {
    flex-direction: column;
  }

  .brief-actions .solid-btn,
  .brief-actions .outline-btn {
    width: 100%;
    min-height: 46px;
  }

  .modal {
    padding: 6px;
  }

  .modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 11, 14, 0.92);
  }

  .modal__dialog {
    width: 100%;
    max-height: 95dvh;
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
    --modal-max-h: 62dvh;
  }

  .modal__title {
    font-size: 1.05rem;
  }

  .modal__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .modal__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .modal__dialog .outline-btn,
  .modal__dialog .solid-btn {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (hover: none) {
  .works-chaos .work-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
  .dir-card:hover {
    transform: none;
  }
}

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