/* GRAZR website - dark studio look matching the DP-301 film */
:root {
  --bg: #000;
  --bg-2: #08080a;
  --panel: #0e0e10;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f2f2f3;
  --body: #c9c9cd;
  --muted: #8e8e94;
  --white: #fff;
  --todo: #ffb341;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --kr: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --en: "Montserrat", "Pretendard", -apple-system, system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.75 var(--kr); letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
:lang(en) body, html[lang="en"] body { letter-spacing: 0; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { justify-content: center; text-align: center; }

/* type */
.eyebrow { font: 500 12px/1.4 var(--en); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.display { font: 400 clamp(30px, 3.9vw, 60px)/1.1 var(--en); letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.display .br-m { display: none; }
.h2 { font: 600 clamp(28px, 4.2vw, 48px)/1.25 var(--kr); letter-spacing: -0.025em; margin: 0 0 20px; }
.h3 { font: 600 clamp(22px, 2.6vw, 32px)/1.3 var(--kr); letter-spacing: -0.02em; margin: 0 0 16px; }
html[lang="en"] .h2, html[lang="en"] .h3 { letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.8; color: var(--body); margin: 0; }
.body { color: var(--body); margin: 0 0 8px; }
.small { font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.muted { color: var(--muted); }
.text-link { border-bottom: 1px solid var(--line-2); }
.todo { color: var(--todo); background: rgba(255, 179, 65, .12); border-radius: 3px; padding: 0 6px; white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: #f2f2f3; color: #000; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.btn-small { height: 38px; padding: 0 18px; font-size: 14px; background: #f2f2f3; color: #000; }
.btn-small.btn-ghost { background: transparent; color: var(--text); }
.btn-block { width: 100%; margin-top: 22px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--body); transition: color .2s; }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.page-legal .header-actions, .page-404 .header-actions { margin-left: auto; }
.lang { font: 500 12px/1 var(--en); letter-spacing: .14em; color: var(--muted); padding: 8px 4px; }
.lang:hover { color: #fff; }

/* hero: sticky canvas driven by scroll */
.hero { position: relative; height: 240vh; background: #000; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas, .hero-noscript { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.82) 100%); pointer-events: none; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(44px, 8vh, 96px); }
.hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.hero.is-ready .hero-copy > * { opacity: 1; transform: none; }
.hero.is-ready .hero-copy > :nth-child(2) { transition-delay: .12s; }
.hero.is-ready .hero-copy > :nth-child(3) { transition-delay: .24s; }
.hero.is-ready .hero-copy > :nth-child(4) { transition-delay: .36s; }
.hero-sub { margin: 18px 0 0; font-size: clamp(16px, 1.7vw, 19px); color: var(--body); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font: 500 10px/1 var(--en); letter-spacing: .3em; transition: opacity .4s; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
.hero.is-scrolled .scroll-hint { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* sections */
section { position: relative; }
.intro, .features, .view3d, .photos, .film, .specs, .buy, .avail, .faq { padding: clamp(84px, 12vw, 160px) 0; }
.intro { text-align: center; padding-top: clamp(96px, 14vw, 180px); }
.intro .lead { max-width: 680px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.features { padding-top: 0; }

/* features */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(84px, 12vw, 150px); }
.feature-media { grid-column: 1 / span 7; position: relative; }
.feature-copy { grid-column: 9 / span 4; }
.feature.flip .feature-media { grid-column: 6 / span 7; order: 2; }
.feature.flip .feature-copy { grid-column: 1 / span 4; order: 1; }
.clip { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.num { font: 400 13px/1 var(--en); letter-spacing: .2em; color: var(--muted); margin: 0 0 22px; }
.num::after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 14px; }
.btn-sound { margin-top: 22px; }
.btn-sound.is-playing { border-color: #fff; }
.replay {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .55); color: var(--body); font-size: 13px; cursor: pointer;
}
.replay svg { width: 15px; height: 15px; fill: currentColor; }
.replay:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* 3D viewer */
.view3d { background: linear-gradient(180deg, #000 0%, var(--bg-2) 30%, var(--bg-2) 70%, #000 100%); }
.viewer { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #1a1a1d 0%, #0a0a0b 55%, #000 100%); }
.viewer-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.viewer-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
.viewer-cta .hint { margin: 0; font-size: 13px; color: var(--muted); }
.viewer model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.viewer.is-live .viewer-poster, .viewer.is-live .viewer-cta { display: none; }
.ar-btn { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.view3d .chips { justify-content: center; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--body); font-size: 14px; transition: all .2s; }
.chip input:checked + span { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.chip-lg span { height: 48px; padding: 0 20px; font-size: 15px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
.swatch-black { background: linear-gradient(135deg, #3a3a3e, #050505 60%); }
.swatch-silver { background: linear-gradient(135deg, #f2f4f7, #9da2a8 60%, #c9cdd2); }

/* photos */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.photo-grid figure { margin: 0; }
.photo { display: block; width: 100%; padding: 0; border: 0; background: #000; aspect-ratio: 4 / 5; cursor: zoom-in; overflow: hidden; border-radius: 4px; }
.photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.035); }
.photo-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; margin: 0 auto; }
.lightbox-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .6); font-size: 26px; line-height: 1; cursor: pointer; }

/* film */
.film-frame { position: relative; border-radius: 6px; overflow: hidden; background: #000; }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* specs */
.spec-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 72px); border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: 14px; }
.spec-list dd { margin: 0; color: var(--text); font-size: 15px; }

/* buy */
.buy { background: linear-gradient(180deg, #000 0%, var(--bg-2) 40%, #000 100%); }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.buy-media { position: sticky; top: calc(var(--header) + 24px); aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #000; }
.buy-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.buy-img.is-on { opacity: 1; }
.price { font: 600 clamp(26px, 3vw, 34px)/1.2 var(--kr); margin: 0 0 30px; letter-spacing: -0.01em; }
.options { border: 0; margin: 0 0 8px; padding: 0; }
.options legend { font-size: 14px; color: var(--muted); margin-bottom: 4px; padding: 0; }
.options .chips { margin-top: 10px; }
.fold { border-top: 1px solid var(--line); }
.buy-panel .fold:first-of-type { margin-top: 34px; }
.fold:last-child { border-bottom: 1px solid var(--line); }
.fold summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative; font-weight: 500; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.fold[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fold p { margin: 0 0 20px; color: var(--body); }
.kv { margin: 0 0 18px; }
.kv > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 7px 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--body); }

/* availability (EN) + faq */
.avail { text-align: center; }
.avail .lead { margin: 0 auto 18px; max-width: 620px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq .fold:last-child { border-bottom: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 64px; color: var(--muted); font-size: 13px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.footer-logo { height: 46px; width: auto; opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--body); }
.footer-links a:hover { color: #fff; }
.biz { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.biz > div { display: flex; gap: 8px; }
.biz dt { color: #6c6c72; }
.biz dd { margin: 0; color: var(--muted); }
.copy { margin: 24px 0 0; color: #5e5e64; }

/* legal + 404 */
.legal { padding-top: calc(var(--header) + 64px); padding-bottom: 96px; }
.legal-intro { color: var(--body); padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.legal section { margin-top: 38px; }
.legal h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.legal p, .legal li { color: var(--body); font-size: 15px; }
.legal ol, .legal ul { padding-left: 1.3em; margin: 0 0 12px; }
.legal li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 10px 0 16px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; color: var(--body); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 500; }
.notfound { padding: calc(var(--header) + 120px) var(--gutter) 140px; text-align: center; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature-media, .feature-copy, .feature.flip .feature-media, .feature.flip .feature-copy { grid-column: 1; order: initial; }
  .feature-copy { max-width: 600px; }
  .spec-list { grid-template-columns: 1fr; }
  .buy-grid { grid-template-columns: 1fr; }
  .buy-media { position: relative; top: 0; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 720px) {
  :root { --header: 58px; }
  body { font-size: 15.5px; }
  .brand img { height: 26px; }
  .hero { height: 200vh; }
  .hero-copy { bottom: max(48px, 9vh); }
  .display { letter-spacing: .1em; font-size: clamp(28px, 8.2vw, 40px); }
  .display .br-m { display: inline; }
  .scroll-hint { display: none; }
  .btn { height: 48px; padding: 0 22px; font-size: 14.5px; }
  .btn-row .btn { flex: 1 1 auto; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .viewer { aspect-ratio: 4 / 5; }
  .spec-list > div { grid-template-columns: 7.5em 1fr; }
  .kv > div { grid-template-columns: 7em 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .biz { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero-copy > * { transition: none; opacity: 1; transform: none; }
  .scroll-hint i { animation: none; }
}
