:root {
  color-scheme: dark;
  --page: #080808;
  --panel: #111111;
  --panel-soft: #151515;
  --line: #292929;
  --line-soft: #1c1c1c;
  --paper: #f2f1ed;
  --muted: #92918c;
  --quiet: #64635f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
button, a { -webkit-tap-highlight-color: transparent; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 45%, #141414 0, transparent 28%),
    radial-gradient(circle at 78% 22%, #101010 0, transparent 24%),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body.intro-open { overflow: hidden; }

svg { display: block; }

/* Opening screen */
.welcome {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background: #080808;
  transition: opacity .72s cubic-bezier(.22, 1, .36, 1), visibility .72s;
}

.welcome.hide { visibility: hidden; opacity: 0; pointer-events: none; }

.welcome-grid {
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 64%);
  mask-image: radial-gradient(circle at center, black, transparent 64%);
}

.welcome-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #151515 0 9%, transparent 62%);
}

.welcome-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
  animation: welcome-in .9s cubic-bezier(.22, 1, .36, 1) both;
}

.welcome-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid #303030;
  border-radius: 18px;
  background: #101010;
  box-shadow: 0 18px 55px #000;
  transform: rotate(-4deg);
}

.welcome-mark svg { width: 26px; fill: var(--paper); }

.welcome-label,
.welcome-foot {
  color: #777670;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.welcome-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 20px; }
.welcome-label span { width: 22px; height: 1px; background: #5e5d59; }

.welcome h1 {
  margin: 0;
  font-size: clamp(43px, 6.2vw, 86px);
  font-weight: 680;
  line-height: .98;
  letter-spacing: -.065em;
}

.welcome h1 em { color: #8d8c87; font-style: normal; font-weight: inherit; }
.welcome-copy { margin: 25px 0 30px; color: #8e8d88; font-size: 13px; }

.welcome button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 9px 0 22px;
  border: 0;
  border-radius: 15px;
  color: #0b0b0b;
  background: var(--paper);
  box-shadow: 0 20px 55px #000a;
  font: 720 12px/1 inherit;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.welcome button:hover { transform: translateY(-3px); background: #fff; }
.welcome button svg { width: 38px; height: 38px; padding: 10px; border-radius: 10px; color: white; background: #111; fill: none; stroke: currentColor; stroke-width: 1.7; }

.welcome-foot { position: absolute; bottom: 28px; left: 50%; margin: 0; transform: translateX(-50%); }
.welcome-paw { position: absolute; z-index: 1; opacity: .05; }
.welcome-paw svg { width: 100%; fill: white; }
.welcome-paw--one { top: 13%; left: 8%; width: 150px; transform: rotate(-24deg); }
.welcome-paw--two { right: 8%; bottom: 9%; width: 210px; transform: rotate(18deg); }

/* Header */
.site-header,
.site-footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding-inline: clamp(22px, 4.2vw, 64px);
}

.site-header { min-height: 72px; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-decoration: none; }
.brand-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #2d2d2d; border-radius: 9px; background: #111; }
.brand-icon svg { width: 14px; fill: var(--paper); }
.header-meta { display: flex; align-items: center; gap: 24px; color: var(--quiet); font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.header-meta span + span { color: #aaa9a4; }

/* Main composition */
.layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(510px, 1.13fr) minmax(390px, .87fr);
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
  width: min(1500px, 100%);
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: clamp(32px, 5vh, 64px) clamp(22px, 4.2vw, 64px);
}

.viewer-panel {
  position: relative;
  min-height: min(77vh, 780px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #151515, #0e0e0e 70%);
  box-shadow: 0 30px 80px #000b, inset 0 1px #ffffff0a;
}

.panel-heading {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(#131313f2, #111111d9);
  backdrop-filter: blur(12px);
}

.panel-heading > div:first-child { display: grid; gap: 5px; }
.panel-heading small { color: #63625f; font-size: 7px; font-weight: 750; letter-spacing: .18em; }
.panel-heading strong { color: #dbdad6; font-size: 11px; font-weight: 650; letter-spacing: .01em; }
.viewer-ready { display: flex; align-items: center; gap: 8px; color: #9b9a96; font-size: 8px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.viewer-ready i { width: 6px; height: 6px; border-radius: 50%; background: #d8d7d2; box-shadow: 0 0 0 4px #ffffff0b; }

.turntable {
  position: absolute;
  inset: 75px 0 82px;
  overflow: hidden;
  outline: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  --model-scale: 1.1;
}

.turntable.dragging { cursor: grabbing; }
.turntable:focus-visible { box-shadow: inset 0 0 0 2px #8b8a86; }
.stage-glow { position: absolute; inset: 3% 9% 8%; background: radial-gradient(ellipse at center 42%, #313131 0, #222 28%, transparent 68%); filter: blur(14px); opacity: .62; }

.turntable::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4b4b49, transparent);
}

.turntable img {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(84%, 680px);
  height: 96%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 25px #000b) contrast(1.04) saturate(1.02);
  transform: translate(-50%, -50%) scale(var(--model-scale, 1));
  transform-origin: 50% 58%;
  transition: opacity .16s ease, transform .18s ease;
  will-change: transform;
  pointer-events: none;
}

.turntable.face-focus img {
  top: 122%;
  --model-scale: 2.15;
  filter: drop-shadow(0 24px 25px #000b) contrast(1.055) saturate(1.025);
}

.turntable.face-focus .drag-hint { opacity: 0; }

.stage-shadow { position: absolute; z-index: 2; left: 30%; right: 30%; bottom: 5.5%; height: 4%; border-radius: 50%; background: #000c; filter: blur(10px); }

.drag-hint {
  position: absolute;
  z-index: 6;
  left: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d6c68;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: opacity .3s ease;
}

.drag-hint svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.turntable.dragging .drag-hint { opacity: .15; }
.frame-count { position: absolute; z-index: 6; right: 24px; bottom: 20px; display: flex; align-items: center; gap: 9px; color: #666560; font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.frame-count span:first-child { color: #d5d4cf; }
.frame-count i { width: 20px; height: 1px; background: #3d3d3b; }

.viewer-toolbar {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 82px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  background: #101010ee;
  backdrop-filter: blur(14px);
}

.viewer-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #303030;
  color: #c9c8c4;
  background: #171717;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.viewer-toolbar button:hover { color: white; border-color: #525252; background: #1d1d1d; transform: translateY(-2px); }
.viewer-toolbar button:focus-visible { outline: 2px solid #ddd; outline-offset: 2px; }
.viewer-toolbar svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 42px; padding: 0; border-radius: 12px; }
.main-control { gap: 9px; padding: 0 16px; border-radius: 12px; font: 680 10px/1 inherit; }
.main-control[aria-pressed="true"] { color: #111; border-color: var(--paper); background: var(--paper); }
.toolbar-separator { width: 1px; height: 25px; margin: 0 3px; background: #292929; }

/* Editorial copy */
.content { max-width: 520px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #73726e; font-size: 8px; font-weight: 750; letter-spacing: .19em; }
.eyebrow span { width: 28px; height: 1px; background: #4e4d4a; }
.content h2 { margin: 0; font-size: clamp(48px, 5vw, 72px); font-weight: 680; line-height: .93; letter-spacing: -.065em; }
.content h2 em { color: #868580; font-style: normal; font-weight: inherit; }
.description { max-width: 465px; margin: 28px 0 31px; color: #9a9995; font-size: 13px; line-height: 1.72; }

.quality-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quality-item { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 13px 15px; border: 1px solid #242424; border-radius: 14px; background: #101010; }
.quality-item svg { width: 20px; color: #aaa9a5; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.quality-item div { display: grid; gap: 5px; }
.quality-item small { color: #5f5e5a; font-size: 7px; font-weight: 750; letter-spacing: .16em; }
.quality-item strong { color: #d6d5d0; font-size: 10px; font-weight: 680; letter-spacing: .04em; }

blockquote { display: flex; align-items: center; gap: 15px; margin: 28px 0 0; padding: 19px 0 0; border-top: 1px solid #222; }
blockquote > span { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border: 1px solid #313131; border-radius: 13px; background: #141414; }
blockquote svg { width: 17px; color: #e3e2dd; fill: none; stroke: currentColor; stroke-width: 1.35; }
blockquote p { margin: 0; color: #aaa9a5; font-size: 12px; line-height: 1.6; }
blockquote em { color: #e1e0db; font-style: normal; }
.micro-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.micro-tags span { padding: 7px 10px; border: 1px solid #252525; border-radius: 999px; color: #6f6e6a; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { min-height: 58px; border-top: 1px solid var(--line-soft); color: #5d5c58; font-size: 7px; font-weight: 750; letter-spacing: .18em; }
.floating-paws { position: fixed; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.floating-paws svg { position: absolute; top: -60px; width: 24px; fill: white; opacity: 0; animation: pawfall 19s linear infinite; }
.floating-paws svg:nth-child(1) { left: 8%; animation-delay: -3s; }
.floating-paws svg:nth-child(2) { left: 61%; animation-delay: -11s; animation-duration: 23s; }
.floating-paws svg:nth-child(3) { left: 92%; animation-delay: -16s; animation-duration: 21s; }

.viewer-panel:fullscreen { width: 100vw; height: 100vh; min-height: 100vh; border: 0; border-radius: 0; background: #0d0d0d; }
.viewer-panel:fullscreen .turntable img { width: min(74vw, 900px); }

@keyframes welcome-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes pawfall { 0% { transform: translateY(-60px) rotate(-15deg); opacity: 0; } 15% { opacity: .035; } 82% { opacity: .03; } 100% { transform: translate(55px, 110vh) rotate(225deg); opacity: 0; } }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 44px; }
  .content { max-width: 680px; order: -1; }
  .viewer-panel { min-height: 720px; }
}

@media (max-width: 600px) {
  .site-header, .site-footer { padding-inline: 18px; }
  .header-meta span:first-child { display: none; }
  .layout { padding: 34px 18px 48px; }
  .viewer-panel { min-height: 620px; border-radius: 17px; }
  .panel-heading { min-height: 68px; padding-inline: 17px; }
  .turntable { top: 68px; }
  .main-control span { display: none; }
  .main-control { width: 42px; padding: 0; }
  .viewer-toolbar { min-height: 76px; gap: 6px; }
  .toolbar-separator { display: none; }
  .turntable img { width: 100%; height: 91%; }
  .drag-hint span { display: none; }
  .content h2 { font-size: 49px; }
  .quality-row { grid-template-columns: 1fr; }
  .welcome { padding: 22px; }
  .welcome h1 { font-size: 43px; }
  .welcome-copy { line-height: 1.5; }
  .welcome-paw--one { width: 90px; }
  .welcome-paw--two { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
