/* ============================================
   RENEXT by VLADÂ® â€” Immersive sphere homepage
   (phantom.land-style work gallery, v2)
   black bg / dense grid / vivid poster tiles
   ============================================ */

body.home-experience {
  background: #000;
  color: var(--white);
  overflow: hidden;
  height: 100svh;
}
body.home-experience::after { opacity: 0.06; }

/* ---------- top bar ---------- */
.xp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: start;
  gap: 2rem;
  padding: 1.3rem var(--gutter);
  pointer-events: none;
}
.xp-header > * { pointer-events: auto; }
.xp-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
}
.xp-brand .brand__by { opacity: 0.7; }
.xp-info {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  max-width: 34ch;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 0 24px rgba(0,0,0,0.9);
}
.xp-clocks {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.75);
  line-height: 1.8;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95);
}
.xp-clocks .dot { color: #5ee29a; margin-right: 0.5em; }
.xp-talk {
  background: #fff;
  color: #0a0a0a;
  border-radius: 99px;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  justify-self: end;
  transition: transform 0.4s var(--ease-expo);
}
.xp-talk:hover { transform: scale(1.06); }
@media (max-width: 960px) {
  .xp-header { grid-template-columns: auto 1fr auto; }
  .xp-info { display: none; }
}
@media (max-width: 640px) {
  .xp-clocks { display: none; }
}

/* ---------- sphere stage ---------- */
.stage {
  position: fixed;
  inset: 0;
  cursor: grab;
  user-select: none;
  touch-action: pinch-zoom; /* keep browser zoom for low-vision users */
  background: #000;
}
/* the ink cursor dot from style.css disappears on pure black */
.home-experience .cursor { background: var(--white); }
.stage.is-dragging { cursor: grabbing; }
#glCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- hover panel (left): project under the cursor ---------- */
.hover-panel {
  position: fixed;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%) translateX(-16px);
  z-index: 1190;
  max-width: min(36vw, 30rem);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-expo);
}
.hover-panel.is-visible { opacity: 1; transform: translateY(-50%); }
.hover-panel__client {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.7);
  margin-bottom: 0.7rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
}
.hover-panel__title {
  font-size: clamp(2rem, 1rem + 2.8vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}
.hover-panel__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.hover-panel__tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hover-panel__tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(247,245,239,0.4);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
  background: rgba(0,0,0,0.45);
}
.hover-panel__cta {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #5ee29a;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.hover-panel__cta.is-soon { color: rgba(247,245,239,0.55); }
@media (hover: none), (max-width: 860px) { .hover-panel { display: none; } }

/* ---------- bottom UI ---------- */
.xp-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 1.4rem;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.xp-bottom > * { pointer-events: auto; }

.view-toggle {
  display: flex;
  align-items: center;
  background: rgba(50,50,50,0.7);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 0.3rem;
  gap: 0.2rem;
}
.view-toggle button {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(247,245,239,0.8);
  transition: background 0.35s var(--ease-expo), color 0.35s;
}
.view-toggle button.is-active { background: #fff; color: #0a0a0a; }
.view-toggle svg { width: 17px; height: 17px; display: block; }

.xp-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: rgba(50,50,50,0.7);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 0.3rem;
}
.xp-nav button, .xp-nav a {
  border-radius: 99px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(247,245,239,0.85);
  transition: background 0.35s var(--ease-expo), color 0.35s;
}
.xp-nav .is-active { background: #fff; color: #0a0a0a; }

.xp-filter {
  background: rgba(50,50,50,0.7);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 1rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(247,245,239,0.9);
}
@media (max-width: 760px) {
  .xp-filter { display: none; }
  .xp-nav { position: static; transform: none; margin-left: auto; }
}

/* ---------- list view overlay ---------- */
.list-overlay, .about-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #000;
  overflow-y: auto;
  padding: 7rem var(--gutter) 9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.55s var(--ease-expo), transform 0.55s var(--ease-expo), visibility 0.55s;
}
.list-overlay.is-open, .about-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.list-head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.5);
  border-bottom: 1px solid rgba(247,245,239,0.25);
  padding-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
}
.list-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1.4fr auto 4.5rem;
  align-items: center;
  gap: 1.4rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid rgba(247,245,239,0.14);
  color: var(--white);
  position: relative;
  transition: padding 0.45s var(--ease-expo), opacity 0.3s;
}
a.list-row:hover { padding-left: 1rem; }
.list-row--soon { opacity: 0.42; }
.list-row__index, .list-row__year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(247,245,239,0.55);
}
.list-row__year { text-align: right; }
.list-row__client {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.75);
}
.list-row__title {
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.list-row__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.list-row__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.list-row__tags span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(247,245,239,0.3);
  border-radius: 99px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .list-row { grid-template-columns: 2.4rem 1fr 4rem; }
  .list-row__client, .list-row__tags { display: none; }
  .list-row__year { grid-column: 3; }
}

/* ---------- about overlay ---------- */
.about-overlay__statement {
  font-size: clamp(2.2rem, 1rem + 4.6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
  margin-top: 1.5rem;
}
.about-overlay__statement em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.about-overlay .stats { border-top-color: rgba(247,245,239,0.2); }
.about-overlay__services {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.about-overlay__services span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(247,245,239,0.3);
  border-radius: 99px;
  padding: 0.55rem 1.2rem;
}
.about-overlay__cta {
  display: inline-block;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  color: var(--white);
}
.about-overlay__cta:hover { color: var(--accent); }

/* ---------- lead form overlay ---------- */
.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-expo), visibility 0.45s;
}
.form-overlay.is-open { opacity: 1; visibility: visible; }
.form-card {
  position: relative;
  width: min(580px, 94vw);
  max-height: 92svh;
  overflow-y: auto;
  background: #0d0d0d;
  border: 1px solid rgba(247,245,239,0.16);
  border-radius: 10px;
  padding: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  color-scheme: dark;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.5s var(--ease-expo);
}
.form-overlay.is-open .form-card { transform: none; }
.form-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(247,245,239,0.25);
  color: rgba(247,245,239,0.8);
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}
.form-close:hover { background: #fff; color: #0a0a0a; }
.form-kicker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: #5ee29a;
}
.form-head h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.form-head h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.form-head p {
  margin-top: 0.7rem;
  color: rgba(247,245,239,0.6);
  font-size: 0.92rem;
}
#leadForm {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.2rem;
}
#leadForm label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.55);
}
#leadForm .form-span { grid-column: 1 / -1; }
#leadForm input,
#leadForm select,
#leadForm textarea {
  font: 500 1rem var(--font-display);
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247,245,239,0.3);
  padding: 0.55rem 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
#leadForm input:focus,
#leadForm select:focus,
#leadForm textarea:focus { border-bottom-color: #5ee29a; }
#leadForm input:user-invalid { border-bottom-color: #ff7a6b; }
#leadForm select { cursor: pointer; }
#leadForm select option { background: #0d0d0d; }
.form-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.4rem;
  background: #fff;
  color: #0a0a0a;
  border-radius: 99px;
  padding: 0.9rem 2.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.4s var(--ease-expo);
}
.form-submit:hover { transform: scale(1.05); }
.form-success { margin-top: 1.8rem; }
.form-success h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.form-success p { margin-top: 0.7rem; color: rgba(247,245,239,0.65); }
.form-success a { color: #5ee29a; }
@media (max-width: 560px) {
  #leadForm { grid-template-columns: 1fr; }
}

/* ---------- drag hint ---------- */
.drag-hint {
  position: fixed;
  bottom: 6.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1150;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.5);
  pointer-events: none;
  transition: opacity 0.8s;
}
.drag-hint.is-hidden { opacity: 0; }
