/* Ghost Films studio — black, white and grey only. */
:root {
  --ink: #f4f4f2;
  --dim: #b4b7bc;
  --mute: #8c9096;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(10, 10, 11, .74);
  --font: Jost, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: #050506; color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }

/* ---- header (host page) ---- */
.gfs-top { position: fixed; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) 28px; pointer-events: none;
  background: linear-gradient(rgba(5, 5, 6, .85), rgba(5, 5, 6, 0)); }
.gfs-top > * { pointer-events: auto; }
.gfs-top-logo { height: 30px; width: auto; }
.gfs-lang { font: 500 11px var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  background: transparent; border: 1px solid rgba(255, 255, 255, .28); border-radius: 0; padding: 10px 16px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease); }
.gfs-lang:hover { background: var(--ink); color: #000; }

/* ---- stage ---- */
.gfs { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #050506; }
.gfs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.gfs-canvas:active { cursor: grabbing; }
.gfs-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--mute);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }

/* ---- intro ---- */
.gfs-intro { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 12px; padding-bottom: clamp(90px, 16vh, 150px); pointer-events: none; opacity: 0; transition: opacity .7s var(--ease);
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 45%); }
.gfs.is-intro .gfs-intro { opacity: 1; animation: gfs-in 1.2s var(--ease) both; }
@keyframes gfs-in { from { opacity: 0; transform: translateY(8px); } }
.gfs-welcome { margin: 0; font-weight: 300; font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .42em; text-transform: uppercase; color: var(--dim); }
.gfs-brand { margin: 0 -.38em 0 0; font-weight: 300; font-size: clamp(30px, 4.4vw, 58px); letter-spacing: .38em;
  text-transform: uppercase; line-height: 1; }
.gfs-skip { position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); margin: 0; font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--mute); }

/* chrome stays hidden until the camera has arrived */
.gfs-bar, .gfs-panel, .gfs-hint { transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
.gfs.is-intro .gfs-bar, .gfs.is-intro .gfs-panel, .gfs.is-intro .gfs-hint {
  opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden; }

/* ---- bottom bar: prev · dots · next ---- */
.gfs-bar { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: clamp(22px, 4vh, 36px);
  display: flex; align-items: center; gap: 14px; }
.gfs.is-intro .gfs-bar { transform: translate(-50%, 10px); }
.gfs-nav { width: 48px; height: 48px; display: grid; place-items: center; flex: none; color: var(--ink);
  background: rgba(10, 10, 11, .4); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .3s var(--ease), color .3s var(--ease), opacity .3s; }
.gfs-nav:hover:not(:disabled) { background: var(--ink); color: #000; }
.gfs-nav:disabled { opacity: .25; cursor: default; }
@media (min-width: 1100px) {
  .gfs-bar, .gfs-hint { left: 62.5%; }
}

/* ---- info panel ---- */
.gfs-panel { position: absolute; z-index: 3; left: clamp(18px, 4vw, 48px); bottom: clamp(64px, 9vh, 96px); width: min(380px, calc(100% - 36px));
  padding: 28px 30px 30px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.1); }
.gfs-eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.gfs-name { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
.gfs-type { margin: 6px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.gfs-tag { margin: 16px 0 0; font-weight: 300; font-size: 16px; color: var(--ink); }
.gfs-facts { margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.gfs-facts div { display: flex; justify-content: space-between; gap: 16px; }
.gfs-facts dt { color: var(--dim); font-size: 13px; letter-spacing: .04em; }
.gfs-facts dd { margin: 0; font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.gfs-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; padding: 14px 24px; min-height: 44px;
  background: var(--ink); color: #050506; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: background .3s var(--ease); }
.gfs-cta:hover { background: #fff; }
.gfs a:focus-visible, .gfs button:focus-visible, .gfs-lang:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* colour bay */
.gfs-color { margin-top: 18px; }
.gfs-now { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; }
.gfs-now-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); flex: none; }
.gfs-now-label { color: var(--dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.gfs-now-name { font-weight: 500; }
.gfs-now-code { margin-left: auto; color: var(--dim); font-size: 12px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.gfs-swatches { display: grid; grid-template-columns: repeat(auto-fill, 28px); justify-content: space-between; gap: 7px;
  max-height: calc(28px * 3 + 7px * 2 + 8px); overflow-y: auto; padding: 4px; margin: -4px; }
.gfs-sw { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); padding: 0; cursor: pointer; }
.gfs-sw[aria-pressed=true] { box-shadow: 0 0 0 2px #050506, 0 0 0 3px #fff; }

/* ---- dots + hint + credit ---- */
.gfs-dots { display: flex; gap: 2px; }
.gfs-dot { width: 40px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.gfs-dot::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: rgba(255,255,255,.28);
  transition: background .4s var(--ease); }
.gfs-dot:hover::after { background: rgba(255,255,255,.6); }
.gfs-dot[aria-current=true]::after { background: #fff; }
.gfs-hint { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: clamp(84px, 11vh, 100px); margin: 0; white-space: nowrap;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); text-shadow: 0 1px 8px #000; }
.gfs.is-intro .gfs-hint { transform: translate(-50%, 10px); }
.gfs-credit { margin: 18px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--mute); }
.gfs-credit a { color: var(--dim); }

/* ---- phones: compact bottom sheet, scene in the top half ---- */
@media (max-width: 720px) {
  .gfs-top-logo { height: 22px; }
  .gfs-lang { padding: 8px 12px; }
  .gfs-panel { left: 12px; right: 12px; width: auto; bottom: 100px; padding: 14px 16px; }
  .gfs-eyebrow { margin-bottom: 6px; font-size: 10px; }
  .gfs-name { font-size: 22px; }
  .gfs-type { font-size: 10.5px; }
  .gfs-tag { display: none; }
  .gfs-facts { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; }
  .gfs-facts div { flex: 1; flex-direction: column; justify-content: flex-start; gap: 0; }
  .gfs-facts dt { font-size: 11px; }
  .gfs-color { margin-top: 12px; }
  .gfs-now { margin-bottom: 8px; font-size: 13px; }
  .gfs-swatches { display: flex; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .gfs-sw { flex: none; }
  .gfs-cta { margin-top: 12px; width: 100%; padding: 10px; min-height: 44px; }
  .gfs-credit { margin-top: 8px; font-size: 9px; line-height: 1.4; }
  .gfs-hint { bottom: 72px; font-size: 10px; letter-spacing: .14em; }
  .gfs-bar { bottom: 16px; gap: 8px; }
  .gfs-nav { width: 44px; height: 44px; }
  .gfs-dot { width: 30px; }
}

/* ---- static fallback ---- */
.gfs--static { height: auto; min-height: 100vh; overflow: visible; padding: 110px clamp(18px, 4vw, 48px) 48px; }
.gfs-static { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gfs-static-title { grid-column: 1 / -1; margin: 0 0 8px; font-weight: 400; font-size: 28px; }
.gfs-card { padding: 26px; border: 1px solid var(--line); background: #0c0c0d; }
.gfs-card .gfs-name { font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
  .gfs *, .gfs-lang { transition: none !important; animation: none !important; }
}
