/* Components carried over from the previous build: the immersive screens,
   the 3D and AR stages, the 360° tour and the contact form. Layout and
   scroll behaviour live in scenes.css. Syne tops out at Bold (700) here —
   the brand guide sets headlines in Syne Bold and never uses Extrabold
   for anything but one secondary line. */

/* =========================================================
   04 · IMMERSIVE — cinema screens
   ========================================================= */
.cinema {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter);
}
.screen { display: block; text-decoration: none; }
.screen__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.screen__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.screen__meta {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 2px 12px;
  padding-top: 20px;
}
.screen__num {
  grid-row: span 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-4);
  padding-top: 8px;
}
.screen__title {
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.02em;
  transition: color var(--t-fast) var(--ease);
}
.screen__cat { font-size: 14px; color: var(--text-3); }
@media (hover: hover) {
  .screen:hover .screen__media video { transform: scale(1.03); }
  .screen:hover .screen__title { color: var(--green); }
}

/* =========================================================
   05 · 3D MODELLING — single stage
   ========================================================= */
.stage {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  margin: 0 var(--gutter);
  min-height: min(78vh, 780px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
}
.stage__index {
  list-style: none;
  margin: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.stage__item {
  width: 100%;
  display: grid;
  grid-template-columns: 2.6em 1fr;
  gap: 0 6px;
  padding: 14px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.stage__item .n {
  grid-row: span 2;
  padding-top: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-4);
}
.stage__item .t { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--text-2); }
.stage__item .c { font-size: 12px; color: var(--text-3); }
.stage__item:hover { background: var(--surface-2); }
.stage__item.is-active { background: var(--surface-3); }
.stage__item.is-active .t { color: var(--white); }
.stage__item.is-active .n { color: var(--green); }

.stage__view {
  position: relative;
  min-height: 420px;
  background: radial-gradient(circle at 50% 42%, #17171f 0%, #07070a 62%, #000 100%);
}
.stage__viewer { position: absolute; inset: 0; }
.stage__viewer model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0px;
}
.stage__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  pointer-events: none;
}
.stage__progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 200ms linear, opacity var(--t-med) var(--ease);
}
.stage__caption {
  position: absolute;
  left: 28px; right: 28px; bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  pointer-events: none;
}
.stage__name {
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: -0.025em;
}
.stage__hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* =========================================================
   06 · AR
   ========================================================= */
.ar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: 0 var(--gutter);
}
.ar__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.ar__clip { margin: 0; }
.ar__clip video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  background: var(--surface);
}
.ar__clip figcaption { margin-top: 12px; font-size: 13px; color: var(--text-3); }

.ar__panel {
  padding: clamp(26px, 3vw, 46px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.ar__lead {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.ar__lead em { color: var(--green); }
.ar__steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.ar__steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
}
.ar__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
}
.qr img {
  width: 132px;
  height: 132px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
}
.qr figcaption { font-size: 13px; color: var(--text-3); max-width: 16ch; }
@media (pointer: coarse) { .qr { display: none; } }

/* =========================================================
   07 · 360°
   ========================================================= */
.tour { padding: 0 var(--gutter); }
.tour__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.tour__tab {
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: transparent;
  text-align: left;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.tour__tab small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tour__tab:hover { border-color: var(--line-3); }
.tour__tab[aria-selected="true"] { border-color: var(--green); background: var(--surface-2); }

.tour__screen {
  position: relative;
  width: 100%;
  height: clamp(360px, 40vw, 640px);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
}
.tour__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
  transition: transform 1.4s var(--ease), filter var(--t-med) var(--ease);
}
.tour__screen:hover .tour__poster { transform: scale(1.03); filter: brightness(0.72); }
.tour__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px 12px 12px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.tour__play:hover { background: rgba(0, 0, 0, 0.65); border-color: var(--green); }
.tour__play-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  font-size: 14px;
  padding-left: 3px;
}
.tour__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tour__screen.is-live .tour__poster,
.tour__screen.is-live .tour__play { display: none; }
.tour__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.tour__foot a { color: var(--text-2); text-decoration: none; }
.tour__foot a:hover { color: var(--green); }

/* =========================================================
   08 · CONTACT
   ========================================================= */
.form { display: grid; gap: 22px; align-content: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; }
.field > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  transition: border-color var(--t-fast) var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--black); color: var(--white); }
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-4); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--green); }
.field :user-invalid { border-bottom-color: #ff5a5a; }

.form__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.form__mail { font-size: 14px; color: var(--text-3); text-decoration: none; }
.form__mail:hover { color: var(--green); }
.form__status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: #ff7a7a; }

/* ---------- 360°: the tour lives in the page ----------
   It mounts as you approach and plays right here — no new tab, no
   separate site. On touch screens a shield keeps the page scrolling
   until you tap into the tour, and "Full screen" grows it in place. */
.tour__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.tour__screen.is-live .tour__poster { opacity: 0; }
.tour__shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: end center;
  padding: 0 0 22px;
  border: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5));
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
}
@media (pointer: coarse) { .tour__screen.is-live:not(.is-active) .tour__shield { display: grid; } }
.tour__max {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
}
.tour__max:hover { border-color: var(--green); }
/* In-page full screen: works on iPhone too, where the Fullscreen API
   does not exist for anything but video. */
.tour__screen.is-max {
  position: fixed !important;
  inset: 0;
  z-index: 97;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  margin: 0;
}
.tour__screen.is-max .tour__shield { display: none !important; }

/* ---------- one-tap placement (arriving from a QR code) ---------- */
.placer {
  position: fixed;
  z-index: 96;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 10px;
  padding: 22px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(8, 8, 12, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  transform: translateY(130%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.placer[aria-hidden="false"] { transform: none; }
.placer__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.placer__name { margin: 0 0 6px; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.placer__go { justify-content: center; padding: 18px 26px; font-size: 13px; }
.placer__go:disabled { opacity: 0.6; cursor: progress; }
.placer__skip {
  padding: 8px;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  cursor: pointer;
}
@media (min-width: 900px) {
  .placer { left: auto; right: var(--gutter); bottom: 72px; width: 380px; }
}
