/* Hero cube: a native CSS 3D sculpture. Keep filters/opacity off the preserve-3d chain.
   The cube itself is a brand object (it carries the wordmark), so like the logo it is NOT themed:
   its palette lives in the --cube-* tokens below and stays the same in every site theme.
   Everything around it (halo, status, buttons) uses the site tokens. */
.velvet-cube-scene {
  --pitch: 61px;
  --piece: 57px;
  --cube-body: #101115;
  --cube-edge: #41434a;
  --cube-seam: #090a0c;
  --cube-inner-edge: #1b1d23;
  --cube-ink: #e7e9ed;
  --cube-shadow: rgb(0 0 0 / 55%);
  --cube-gloss: rgb(255 255 255 / 16%);
  --cube-gloss-side: rgb(255 255 255 / 6%);
  --cube-gloss-low: rgb(0 0 0 / 27%);
  position: relative;
  width: 100%;
  max-width: 390px;
  /* Fixed height: viewport + toolbar are reserved before JS runs, so nothing shifts. */
  height: 380px;
  margin: 0 auto;
  isolation: isolate;
  contain: layout;
}
.velvet-cube-halo {
  position: absolute;
  inset: -24px -40px 40px;
  pointer-events: none;
  /* closest-side fades to transparent inside the box: no visible rectangle edge. */
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  opacity: .55;
  transition: opacity 1.4s ease;
}
.velvet-cube-scene[data-solved="true"] .velvet-cube-halo { opacity: 1; }
.velvet-cube-shadow {
  position: absolute;
  bottom: 70px;
  left: 50%;
  width: 184px;
  height: 28px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--cube-shadow);
  filter: blur(16px);
  pointer-events: none;
}
.cube-viewport {
  position: absolute;
  inset: 0 0 64px;
  display: grid;
  place-items: center;
  perspective: 950px;
  touch-action: pan-y;
}
.cube-camera, .velvet-cube-object, .cube-slice, .cube-piece { transform-style: preserve-3d; }
.cube-camera {
  width: calc(var(--pitch) * 3);
  height: calc(var(--pitch) * 3);
  transform: rotateX(-25deg) rotateY(-34deg);
  transition: transform .7s cubic-bezier(.2,.75,.2,1);
}
.velvet-cube-object { position: relative; width: 100%; height: 100%; }
.velvet-cube-scene[data-enhanced="true"] .velvet-cube-object {
  animation: cube-breathe 8s ease-in-out infinite;
  animation-play-state: paused;
}
.velvet-cube-scene[data-running="true"] .velvet-cube-object { animation-play-state: running; }
.cube-piece {
  position: absolute;
  left: calc(50% - var(--piece) / 2);
  top: calc(50% - var(--piece) / 2);
  width: var(--piece);
  height: var(--piece);
  transform: translate3d(calc(var(--x) * var(--pitch)), calc(var(--y) * var(--pitch)), calc(var(--z) * var(--pitch)));
}
.cube-slice { position: absolute; inset: 0; will-change: transform; }
.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  border-radius: 5px;
  background: var(--cube-body);
  border: 1px solid var(--cube-edge);
  box-shadow: inset 0 0 0 1px var(--cube-seam);
}
.cube-face::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 3px;
  background: linear-gradient(142deg, var(--tile-high) 0%, var(--tile-mid) 36%, var(--tile-low) 100%);
  box-shadow: inset 0 1px 0 var(--cube-gloss), inset 1px 0 0 var(--cube-gloss-side), inset 0 -2px 3px var(--cube-gloss-low);
}
.cube-face-front { transform: translateZ(calc(var(--piece) / 2)); }
.cube-face-back { transform: rotateY(180deg) translateZ(calc(var(--piece) / 2)); }
.cube-face-right { transform: rotateY(90deg) translateZ(calc(var(--piece) / 2)); }
.cube-face-left { transform: rotateY(-90deg) translateZ(calc(var(--piece) / 2)); }
.cube-face-top { transform: rotateX(90deg) translateZ(calc(var(--piece) / 2)); }
.cube-face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--piece) / 2)); }
/* Altı yüz, aynı sahnenin altı üretim aşaması (Ali, 16 Ekim). Her parça yüz görselinin dokuzda biri:
   görsel 3×3 büyütülür, parçanın sütun/satırı (--c, --r) konumu seçer. Marka nesnesi: temalanmaz. */
.cube-final, .cube-ledwall, .cube-kare, .cube-senaryo, .cube-storyboard, .cube-derinlik { --tile-high:#2a2c33; --tile-mid:#16171c; --tile-low:#0b0c0f; }
.cube-final::before, .cube-ledwall::before, .cube-kare::before, .cube-senaryo::before, .cube-storyboard::before, .cube-derinlik::before {
  background: var(--yuz) calc(var(--c) * 50%) calc(var(--r) * 50%) / 300% 300% no-repeat, var(--tile-mid);
}
.cube-final { --yuz: url("/velvet-static/product/kup/final.webp"); }
.cube-ledwall { --yuz: url("/velvet-static/product/kup/ledwall.webp"); }
.cube-kare { --yuz: url("/velvet-static/product/kup/kare.webp"); }
.cube-senaryo { --yuz: url("/velvet-static/product/kup/senaryo.webp"); }
.cube-storyboard { --yuz: url("/velvet-static/product/kup/storyboard.webp"); }
.cube-derinlik { --yuz: url("/velvet-static/product/kup/derinlik.webp"); }
.cube-interior { background: var(--cube-body); border-color: var(--cube-inner-edge); box-shadow: none; }
.cube-interior::before { display: none; }
.cube-wordmark {
  position: relative;
  z-index: 1;
  font: 700 11px/1 'DM Sans', sans-serif;
  letter-spacing: -.06em;
  color: var(--cube-ink);
}
.cube-wordmark sup { font-size: .4em; margin-left: 1px; }
@keyframes cube-breathe {
  0%,100% { transform: translateY(0) rotateZ(-1deg); }
  50% { transform: translateY(-7px) rotateZ(1deg); }
}

/* Toolbar: only exists once JS can drive it; its space is already reserved above. */
.cube-toolbar { position: absolute; z-index: 2; bottom: 0; inset-inline: 0; visibility: hidden; }
.velvet-cube-scene[data-enhanced="true"] .cube-toolbar { visibility: visible; }
.cube-controls { display: flex; justify-content: center; align-items: center; gap: 6px; }
.cube-status { margin: 0 0 10px; min-height: 16px; text-align: center; color: var(--fg-mute); font: 400 12px/1.4 var(--font-ui, system-ui); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cube-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-1); color: var(--fg-dim); font: 500 12px/1 var(--font-ui, system-ui); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.cube-action svg, .cube-control svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cube-action svg { width: 14px; height: 14px; }
.cube-action:hover:not(:disabled) { border-color: var(--fg-mute); background: var(--bg-2); color: var(--fg); }
.cube-action:disabled { opacity: .5; cursor: default; }
.cube-action[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.cube-control { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--fg-mute); border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.cube-control:hover:not(:disabled) { color: var(--fg); background: var(--bg-1); border-color: var(--line); }
.cube-control:disabled { opacity: .35; cursor: default; }
.cube-control svg { width: 16px; height: 16px; }
.cube-control .cube-play-icon { display: none; }
.velvet-cube-scene[data-paused="true"] .cube-pause-icon { display: none; }
.velvet-cube-scene[data-paused="true"] .cube-play-icon { display: block; }
.cube-action:focus-visible, .cube-control:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cube-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero copy and the sculpture share the first row. */
.refined-home .hero-intro {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(300px,.85fr);
  align-items: center;
  gap: clamp(28px,5vw,76px);
  width: 100%;
  max-width: 1160px;
  padding: 10px 0 72px;
}
.marketing.refined-home .hero-intro .hero-copy { align-items: flex-start; text-align: left; padding: 0; min-width: 0; max-width: 100%; }
.marketing.refined-home .hero-intro .hero-copy h1 { font-size: clamp(46px,6vw,80px); }
.marketing.refined-home .hero-intro .hero-lead { font-size: clamp(17px,1.65vw,21px); line-height: 1.6; }
.marketing.refined-home .hero-intro .hero-lead br { display: none; }
.marketing.refined-home .hero-intro .hero-actions { justify-content: flex-start; gap: 16px; }
@media (max-width:800px) {
  .refined-home .hero-intro { grid-template-columns: minmax(0,1fr); gap: 30px; padding: 0 0 36px; }
  .marketing.refined-home .hero-intro .hero-copy { align-items: center; text-align: center; }
  .marketing.refined-home .hero-intro .hero-copy h1 { font-size: clamp(40px,9vw,64px); }
  .marketing.refined-home .hero-intro .hero-actions { justify-content: center; }
  .velvet-cube-scene { --pitch: 49px; --piece: 46px; max-width: 310px; height: 300px; }
  .velvet-cube-shadow { width: 145px; }
  .cube-wordmark { font-size: 9px; }
  .cube-action { min-height: 44px; padding-inline: 12px; }
  .cube-control { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion:reduce) {
  .velvet-cube-scene[data-enhanced="true"] .velvet-cube-object { animation: none; }
  .cube-camera, .velvet-cube-halo { transition: none; }
}
