@property --mx {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

@property --my {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

:root,
:root[data-theme="dark"] {
  --bg: #090b10;
  --bg-elevated: #0e131e;
  --surface: rgba(18, 24, 38, 0.80);
  --surface-solid: #121826;
  --raised: #1a2234;
  --text: #f3f5f8;
  --muted: #a6b2c7;
  --accent: #f5c266;
  --accent-hot: #ff9f1c;
  --on-accent: #1d1407;
  --cyan: #38bdf8;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --price: #f5c266;
  --glass: rgba(14, 20, 32, 0.78);
  --shadow-card: 0 22px 54px -22px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --shadow-pop: 0 28px 70px -18px rgba(0, 0, 0, 0.78);
  --hero-spotlight: radial-gradient(72% 60% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 68%), radial-gradient(50% 45% at 88% 12%, rgba(245, 194, 102, 0.09), transparent 70%);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f6f3;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --raised: #eceee8;
  --text: #151821;
  --muted: #505c6f;
  --accent: #9b4912;
  --accent-hot: #c2590f;
  --on-accent: #fffaf4;
  --cyan: #0284c7;
  --border: rgba(21, 24, 33, 0.11);
  --border-strong: rgba(21, 24, 33, 0.22);
  --price: #8c3e0d;
  --glass: rgba(255, 255, 255, 0.86);
  --shadow-card: 0 16px 38px -14px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-pop: 0 24px 60px -16px rgba(15, 23, 42, 0.18);
  --hero-spotlight: radial-gradient(68% 48% at 50% 0%, rgba(2, 132, 199, 0.07), transparent 72%), radial-gradient(45% 40% at 85% 8%, rgba(217, 119, 6, 0.07), transparent 68%);
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body.v3-page {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.56;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

body.v3-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: var(--hero-spotlight);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-size: max(16px, 1rem);
}

button,
.button,
.site-button,
summary {
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2.5px solid var(--cyan);
  outline-offset: 2px;
}

button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

p {
  margin: 0;
  max-width: 66ch;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  line-height: 1.12;
  color: var(--text);
}

h1,
h2 {
  letter-spacing: -0.022em;
  word-spacing: 0.06em;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.52rem, 3.8vw, 3.05rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.32rem, 2.5vw, 2.15rem);
}

h3 {
  font-size: clamp(1.08rem, 1.35vw, 1.26rem);
  letter-spacing: -0.012em;
  word-spacing: 0.03em;
  font-weight: 700;
}

.v3-bar,
.v3-foot,
.v3-main {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

@media (max-width: 440px) {
  .v3-bar,
  .v3-foot,
  .v3-main {
    width: min(100% - 1.25rem, 1180px);
  }
}

/* Skip Link */
.v3-skip {
  position: absolute;
  left: -9999px;
}

.v3-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 90;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

/* Header */
.v3-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.v3-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 66px;
}

.v3-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  min-height: 44px;
  padding-right: 0.25rem;
  flex-shrink: 0;
}

.v3-logo img {
  width: 26px;
  height: 28px;
  object-fit: contain;
  display: block;
}

[data-theme="dark"] .mark-light,
[data-theme="light"] .mark-dark {
  display: none;
}

.v3-nav-inline {
  display: none;
}

@media (min-width: 980px) {
  .v3-nav-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .v3-nav-inline a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .v3-nav-inline a:hover {
    color: var(--text);
    background: var(--raised);
  }

  .v3-nav-inline a[aria-current="page"] {
    color: var(--on-accent);
    background: var(--accent);
    font-weight: 700;
  }
}

.v3-controls,
.v3-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.v3-controls {
  gap: 0.45rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.v3-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.v3-controls button:hover {
  border-color: var(--border-strong);
  background: var(--raised);
}

#v3-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--accent);
  color: var(--on-accent);
}

#v3-count.is-pop {
  animation: cartPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.32); }
  100% { transform: scale(1); }
}

/* Main Layout */
.v3-main {
  flex: 1 0 auto;
  padding-block: clamp(1rem, 2.4vw, 2.2rem) clamp(3.2rem, 6vw, 5.2rem);
}

.v3-main > section + section,
.v3-main > section + aside,
.v3-main > div + section {
  margin-top: clamp(2.6rem, 5.2vw, 4.4rem);
}

/* Buttons */
.button,
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.68rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent-hot) 52%, transparent);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:not(.secondary):not(:disabled):hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--accent-hot) 68%, transparent);
}

.button:active,
.v3-controls button:active {
  transform: scale(0.97);
}

.button.secondary,
.site-button {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.button.secondary:hover,
.site-button:hover {
  color: var(--text);
  background: var(--raised);
  border-color: color-mix(in srgb, var(--cyan) 42%, var(--border-strong));
  transform: translateY(-1px);
}

.site-button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: var(--on-accent);
  border-color: transparent;
}

/* Kicker & Badges */
.v3-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-hot);
  box-shadow: 0 0 10px var(--accent-hot);
  flex-shrink: 0;
}

/* ================================
   HERO — TWO-COLUMN 3D ARCHITECTURE
   ================================ */
.editorial-hero {
  display: grid;
  gap: clamp(1.35rem, 3.2vw, 3rem);
  align-items: center;
  padding-block: 0.35rem 0.5rem;
}

@media (min-width: 900px) {
  .editorial-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    padding-block: 0.9rem 1.2rem;
  }
}

.editorial-intro {
  display: grid;
  gap: 0.95rem;
}

.editorial-intro h1 {
  font-size: clamp(2.02rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  word-spacing: 0.055em;
}

.editorial-intro h1 em,
.hero-accent-line {
  display: block;
  font-style: normal;
  background: linear-gradient(125deg, var(--accent) 0%, var(--accent-hot) 55%, var(--cyan) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root[data-theme="light"] .editorial-intro h1 em,
:root[data-theme="light"] .hero-accent-line {
  background: linear-gradient(125deg, #8b3d0b 0%, #c2590f 62%, #0369a1 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.editorial-description {
  display: grid;
  gap: 0.95rem;
}

.editorial-description > p {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  color: var(--muted);
  max-width: 48ch;
}

.editorial-description strong {
  color: var(--text);
  font-weight: 700;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.15rem;
  margin-top: 0.1rem;
}

.hero-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.hero-contacts a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Right Hero 3D Obsidian Chamber (always sleek dark studio stage so 3D renders look razor crisp in both themes) */
.hero-stage-3d {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(270px, 34vw, 430px);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(62% 58% at 50% 44%, rgba(56, 189, 248, 0.16), transparent 68%),
    radial-gradient(50% 42% at 62% 76%, rgba(245, 194, 102, 0.17), transparent 65%),
    linear-gradient(160deg, #101726 0%, #090c14 58%, #0d121f 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  perspective: 1100px;
  color: #f3f5f8;
}

.hero-stage-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
}

.hero-orbit {
  position: absolute;
  width: clamp(220px, 28vw, 350px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 0 42px rgba(56, 189, 248, 0.08);
  pointer-events: none;
  transform: rotateX(58deg) rotateZ(-14deg);
}

.hero-orbit.is-outer {
  width: clamp(290px, 35vw, 440px);
  border-color: rgba(245, 194, 102, 0.18);
  border-style: solid;
}

.hero-core-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-core-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 295px;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.68));
  animation: heroFloat 6.2s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.44rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f3f5f8;
  background: rgba(16, 23, 38, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-chip.top-left {
  top: 14px;
  left: 14px;
}

.hero-chip.top-right {
  top: 14px;
  right: 14px;
  border-color: rgba(56, 189, 248, 0.34);
}

.hero-chip.bottom-right {
  bottom: 14px;
  right: 14px;
  border-color: rgba(245, 194, 102, 0.38);
  color: #f5c266;
}

@media (max-width: 520px) {
  .hero-stage-3d {
    min-height: 250px;
    padding: 3.1rem 1rem 3.2rem;
  }

  .hero-chip {
    font-size: 0.72rem;
    padding: 0.34rem 0.65rem;
  }

  .hero-chip.top-right {
    display: none;
  }
}

/* Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

@media (max-width: 920px) {
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .trust-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trust-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.05rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.trust-pill strong {
  font-size: 0.95rem;
  color: var(--text);
}

.trust-pill span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ================================
   3D CARD ENGINE & LIGHT SWEEP
   ================================ */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.32s ease;
}

.card-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.11), transparent 62%);
  transition: opacity 0.28s ease;
}

:root[data-theme="light"] .card-3d::before {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(2, 132, 199, 0.08), transparent 62%);
}

@media (hover: hover) and (pointer: fine) {
  .card-3d:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-pop);
    transform: perspective(1050px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  }

  .card-3d:hover::before {
    opacity: 1;
  }

  .card-3d:hover .card-3d-media img {
    transform: translate3d(var(--px, 0px), var(--py, 0px), 18px) scale(1.055);
  }
}

/* Section Headers */
.v3-section {
  position: relative;
}

.v3-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem 1.5rem;
  margin-bottom: 1.35rem;
}

.v3-section-head p {
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.services-heading {
  align-items: flex-end;
}

.v3-section-head > a:not(.button),
a.catalog-link,
.work-service-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.v3-section-head > a:not(.button):hover,
a.catalog-link:hover,
.work-service-link a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ================================
   6-DIRECTION BENTO 3D SHOWCASE
   ================================ */
.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .bento-card {
    grid-column: span 6;
  }
}

@media (min-width: 1060px) {
  .bento-card.is-wide {
    grid-column: span 6;
  }

  .bento-card:not(.is-wide) {
    grid-column: span 3;
  }
}

.bento-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
}

.bento-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #090b10;
  border-bottom: 1px solid var(--border);
}

.bento-card.is-wide .bento-media {
  aspect-ratio: 16 / 10;
}

.bento-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-price {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f5c266;
  background: rgba(9, 11, 16, 0.78);
  border: 1px solid rgba(245, 194, 102, 0.32);
  backdrop-filter: blur(8px);
}

.bento-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1 1 auto;
}

.bento-body h3 {
  font-size: 1.12rem;
  color: var(--text);
}

.bento-body p {
  font-size: 0.9rem;
  line-height: 1.48;
  color: var(--muted);
}

.bento-link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

/* ================================
   SERVICES & CASE GRIDS
   ================================ */
.v3-service-grid,
.v3-case-grid,
.work-platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .v3-service-grid,
  .v3-case-grid,
  .work-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .v3-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v3-case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .work-platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.v3-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.v3-service:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.v3-service h3 {
  font-size: 1.08rem;
  color: var(--text);
}

.v3-service p {
  font-size: 0.94rem;
  line-height: 1.48;
  color: var(--muted);
}

.v3-service strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--price);
  font-variant-numeric: tabular-nums;
}

.v3-service .quantity-control {
  margin-top: auto;
  padding-top: 0.35rem;
}

.v3-case-grid a {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease;
}

.v3-case-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.v3-case-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0b101b;
}

.v3-case-grid strong {
  padding: 0.95rem 1.05rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.v3-note,
.v3-page-head p,
.calendar-hint {
  margin-top: 0.85rem;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Quantity Stepper (Fluid pill) */
.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}

.quantity-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.quantity-control:not(.has-quantity) button[data-qty="-1"],
.quantity-control:not(.has-quantity) .quantity-count {
  display: none;
}

.quantity-control:not(.has-quantity) button[data-qty="1"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: var(--on-accent);
  border-color: transparent;
}

.quantity-control.has-quantity {
  padding: 3px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
}

.quantity-control.has-quantity button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 0.65rem;
}

.quantity-control.has-quantity button[data-qty="1"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}

.quantity-count {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
}

/* ================================
   MASTER FIGURINE HOLOGRAPHIC BADGE
   ================================ */
.master-badge-card {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

@media (min-width: 820px) {
  .master-badge-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.master-badge-copy {
  display: grid;
  gap: 0.9rem;
}

.master-badge-copy p {
  color: var(--muted);
}

.master-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.master-specs span {
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border);
}

.master-holo-frame {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 330px;
  width: 100%;
  margin-inline: auto;
  padding: 0.75rem;
  border-radius: 26px;
  overflow: hidden;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 56px -18px rgba(0, 0, 0, 0.65);
}

.master-holo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.master-holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 35%), rgba(56, 189, 248, 0.45), rgba(245, 194, 102, 0.25) 38%, transparent 72%);
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}

.master-holo-frame:hover .master-holo-glare {
  opacity: 0.42;
}

.master-holo-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #f3f5f8;
  font-size: 0.78rem;
  font-weight: 700;
}

.master-holo-tag em {
  font-style: normal;
  color: #f5c266;
}

/* ================================
   CTA BAND & INFO PANEL
   ================================ */
.v3-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 26px;
  background:
    radial-gradient(60% 80% at 90% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.v3-contact p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.v3-contact a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.45rem;
  font-weight: 700;
}

.master-panel {
  display: grid;
  gap: 1.35rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

@media (min-width: 720px) {
  .master-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.master-panel img {
  border-radius: 20px;
  background: #090b10;
  border: 1px solid var(--border);
  object-fit: cover;
}

.master-panel ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--muted);
}

.master-panel li strong {
  color: var(--text);
}

.profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.55rem 1.05rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-weight: 700;
}

.profile-button:hover {
  border-color: var(--accent);
  background: var(--raised);
}

.profile-button span {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

/* ================================
   CATALOG PAGE
   ================================ */
.v3-page-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.v3-page-head .v3-actions {
  margin-top: 0.35rem;
}

.catalog-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.catalog-heading h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
}

.catalog-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#search {
  width: min(100%, 560px);
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text);
  font-size: max(16px, 1rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent);
}

.v3-order-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.4rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.94rem;
}

.v3-order-terms strong {
  color: var(--text);
}

.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.catalog-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.98rem;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.catalog-categories a:hover {
  background: var(--raised);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.catalog-group {
  margin-bottom: 1.4rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 84px;
}

.catalog-group h3 {
  font-size: 1.22rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.catalog-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v3-main .catalog-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem 1.25rem;
  width: 100%;
  padding: 0.78rem 0.65rem;
  border-bottom: 1px solid var(--border);
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.v3-main .catalog-group li:last-child {
  border-bottom: none;
}

.v3-main .catalog-group li:hover {
  background: color-mix(in srgb, var(--raised) 55%, transparent);
}

.v3-main .catalog-group li:has(.quantity-control.has-quantity) {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.v3-main .catalog-group li > span {
  font-size: 0.98rem;
  color: var(--text);
}

.v3-main .catalog-group li > :is(strong, a) {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--price);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .v3-main .catalog-group li {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.85rem 0.25rem;
  }

  .v3-main .catalog-group li > span {
    grid-column: 1 / -1;
  }
}

/* ================================
   BOOKING & CALENDAR
   ================================ */
.v3-booking {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

@media (min-width: 900px) {
  .v3-booking {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }

  .v3-booking aside {
    position: sticky;
    top: 86px;
  }
}

.calendar,
.v3-summary,
.v3-form,
.work-platform-card,
#reviews-list article {
  padding: clamp(1.1rem, 2.4vw, 1.55rem);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.calendar-header h2 {
  font-size: 1.32rem;
  text-transform: capitalize;
}

.appointment-day h2 {
  font-size: 1.08rem;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.calendar-header button {
  min-width: 44px;
  min-height: 44px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.42rem;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 0.35rem;
}

.calendar-grid button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.calendar-grid button:not(:disabled):not([aria-pressed="true"]):hover,
.appointment-times button:not(:disabled):not([aria-pressed="true"]):hover {
  border-color: var(--accent);
  background: var(--raised);
}

.calendar-grid button[aria-pressed="true"],
.calendar-grid button[aria-pressed="true"]:hover,
.appointment-times button[aria-pressed="true"],
.appointment-times button[aria-pressed="true"]:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-hot);
}

.calendar-grid button:disabled {
  opacity: 0.32;
  background: transparent;
}

.appointment-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.appointment-times button {
  min-width: 78px;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
}

.slot-busy {
  opacity: 0.42;
  text-decoration: line-through;
}

#appointment-status:empty {
  display: none;
}

.v3-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.25rem;
}

.v3-form label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.v3-form label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--muted);
}

.v3-form input:not([type="checkbox"]),
.v3-form select,
.v3-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
}

.v3-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent-hot);
  flex-shrink: 0;
}

.v3-summary ul {
  margin: 0.75rem 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

/* ================================
   WORK PLATFORMS (PORTFOLIO)
   ================================ */
.work-platforms-heading {
  margin-bottom: 1.2rem;
}

.work-platforms-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.work-platform-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.22s ease;
}

.work-platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.work-platform-copy {
  display: grid;
  gap: 0.2rem;
}

.work-platform-copy span {
  font-size: 0.88rem;
  color: var(--muted);
}

.work-platform-arrow,
.work-platform-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--raised);
  border: 1px solid var(--border);
  font-weight: 800;
  flex-shrink: 0;
}

.page-quick-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.page-quick-book p {
  margin-right: auto;
  color: var(--muted);
}

.page-quick-book strong {
  color: var(--text);
}

/* ================================
   DRAWERS, TOAST, LIGHTBOX & FLOAT CART
   ================================ */
.v3-drawer {
  margin: 0 0 0 auto;
  width: min(100vw, 410px);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 1.25rem;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-pop);
}

.v3-drawer[open] {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: drawerIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes drawerIn {
  from { opacity: 0; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.v3-drawer::backdrop {
  background: rgba(5, 8, 14, 0.68);
  backdrop-filter: blur(6px);
}

body:has(.v3-drawer[open]),
body:has(.v3-lightbox[open]) {
  overflow: hidden;
}

.drawer-top,
.v3-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.drawer-top button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 1.35rem;
  background: var(--surface-solid);
}

.v3-drawer nav {
  display: grid;
  gap: 0.35rem;
}

.v3-drawer nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.v3-drawer nav a:hover {
  background: var(--raised);
}

.v3-drawer nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

#v3-cart-items {
  display: grid;
  gap: 0.7rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.v3-cart-row {
  padding: 0.72rem 0.85rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.v3-cart-row small {
  display: block;
  color: var(--muted);
}

.v3-cart-row .v3-actions {
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.45rem;
}

.v3-cart-row .v3-actions button {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
}

#v3-clear {
  min-height: 44px;
  color: var(--muted);
}

#v3-feedback {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-pop);
  font-weight: 600;
  max-width: min(360px, calc(100vw - 2rem));
}

.v3-floating-cart {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.52rem 0.65rem 0.52rem 1.15rem;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border-strong));
  box-shadow: var(--shadow-pop);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  max-width: calc(100vw - 1.25rem);
}

.v3-floating-summary {
  white-space: nowrap;
}

.v3-floating-cart .button {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
  flex-shrink: 0;
}

/* Lightbox dialog for portfolio photos */
.v3-lightbox {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: #090b10;
  color: #f3f5f8;
  max-width: min(94vw, 980px);
  max-height: 90dvh;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}

.v3-lightbox::backdrop {
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(8px);
}

.v3-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(90dvh - 58px);
  object-fit: contain;
  margin-inline: auto;
}

.v3-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(16, 22, 34, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.v3-lightbox-bar button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  color: #f3f5f8;
  border-color: rgba(255, 255, 255, 0.22);
}

/* ================================
   FOOTER & V1NE MADE MINI-ORB
   ================================ */
.v3-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-block: 1.75rem 2.2rem;
}

.v3-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.v3-foot-brand {
  display: grid;
  gap: 0.35rem;
}

.v3-foot strong {
  font-size: 1.08rem;
}

.v3-foot p {
  font-size: 0.9rem;
  color: var(--muted);
}

.v3-foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
}

.v3-foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
  text-decoration: none;
}

.v3-foot nav a:hover {
  color: var(--accent);
}

.v1ne-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 0.3rem;
  padding: 0.32rem 0.78rem 0.32rem 0.45rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.v1ne-badge:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.v1ne-orb {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 30%, #7dd3fc, #0284c7 55%, #0f172a 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.42);
  flex-shrink: 0;
}

.v1ne-orb::after {
  content: "";
  position: absolute;
  inset: -3px -5px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 194, 102, 0.72);
  transform: rotate(-22deg) scaleY(0.45);
}

/* ================================
   LEGACY & TELEGRAM BOOKING BRIDGE
   ================================ */
.v3-main :is(.page-intro, .site-section, #faq, #prices) {
  max-width: 100%;
}

.v3-main .grid {
  display: grid;
  gap: 1rem;
}

.v3-main .flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.v3-main :is(.bg-white, .bg-dark, .bg-slate-900, .bg-teal-50, .card, .event-card) {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.1rem;
}

.v3-main details {
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.v3-main details + details {
  margin-top: 0.65rem;
}

.v3-main summary {
  font-weight: 700;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.v3-main .text-sm {
  font-size: 0.92rem;
}

.v3-main :is(.text-slate-500, .text-slate-600, .text-slate-700, .text-slate-300) {
  color: var(--muted);
}

.booking-design .v3-main {
  --card: var(--surface-solid);
  --btn: var(--accent);
  --btn-text: var(--on-accent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
}

.booking-design .v3-main .hidden {
  display: none !important;
}

.booking-design .v3-main :is(.btn, .btn-outline, .day-cell, .slot-pill, .chip) {
  min-height: 44px;
}

/* ================================
   VIEW TRANSITION THEME REVEAL
   ================================ */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 9999;
  animation: themeReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes themeReveal {
  from {
    clip-path: circle(0px at var(--theme-x, 85%) var(--theme-y, 32px));
  }
  to {
    clip-path: circle(150vmax at var(--theme-x, 85%) var(--theme-y, 32px));
  }
}

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

  .hero-core-img {
    animation: none !important;
  }

  .card-3d:hover {
    transform: none !important;
  }
}
