@import url('./assets/fonts/fonts.css');

:root {
  --orange: #ff7900;
  --orange-soft: #ff9c32;
  --ink: #050505;
  --paper: #f4f1eb;
  --line: rgba(255, 135, 20, .35);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--ink); }
body { color: var(--paper); font-family: Inter, Arial, sans-serif; cursor: none; }
button, a { color: inherit; font: inherit; }
button { cursor: none; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.vignette, .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.vignette {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.52) 28%, transparent 58%),
    linear-gradient(0deg, rgba(0,0,0,.5), transparent 38%),
    radial-gradient(circle at 64% 44%, transparent 18%, rgba(0,0,0,.08) 68%, rgba(0,0,0,.38) 112%);
}
.noise {
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.topbar {
  height: 86px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.7vw;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,0,.12));
}

.brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}
#logo3d { width: 42px; height: 42px; display: block; }

nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 54px); height: 100%; }
nav .nav-cluster { display: inline-flex; align-items: center; gap: 16px; height: 100%; }
nav .nav-cluster > a { height: 100%; }
nav a {
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  color: rgba(255,255,255,.64);
  font: 500 10px/1 Inter, sans-serif;
  letter-spacing: .16em;
  text-decoration: none;
  transition: color .25s;
}
nav a:hover, nav a.active { color: var(--orange); }
nav a.active::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}
nav a.mode-switch {
  height: 34px;
  padding: 0 13px;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(255,121,0,.72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,121,0,.18), rgba(0,0,0,.42));
  color: #fff;
  box-shadow: 0 0 22px rgba(255,121,0,.16);
}
nav a.mode-switch::after { display: none; }
nav a.mode-switch strong {
  color: var(--orange);
  font: 700 10px/1 Inter, sans-serif;
  letter-spacing: .14em;
}
nav a.mode-switch:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,121,0,.32), rgba(0,0,0,.48));
}

nav .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100%;
  color: rgba(255,255,255,.2);
  user-select: none;
  cursor: pointer;
}
nav a.nav-badge::after { display: none; }
nav .nav-badge em,
nav .nav-badge span {
  font: 600 10px/1 Inter, sans-serif;
  font-style: normal;
  letter-spacing: .1em;
  color: var(--orange);
  text-decoration: none;
  height: auto;
  display: inline;
  place-items: unset;
}
nav .nav-badge i {
  font: 500 10px/1 Inter, sans-serif;
  font-style: normal;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
}
nav .nav-badge b {
  font: 500 10px/1 Inter, sans-serif;
  color: rgba(255,255,255,.22);
}
nav .nav-badge[data-lang-active="sr"] i,
nav .nav-badge[data-lang-active="en"] em {
  color: var(--orange);
  font-weight: 600;
}
nav .nav-badge[data-lang-active="sr"] em,
nav .nav-badge[data-lang-active="en"] i {
  color: rgba(255,255,255,.3);
  font-weight: 500;
}
nav .nav-badge:hover i { color: rgba(255,255,255,.56); }

.outline-btn {
  justify-self: end;
  height: 42px;
  padding: 0 19px;
  border: 1px solid rgba(255,121,0,.75);
  border-radius: 3px;
  background: rgba(0,0,0,.25);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
}
.outline-btn span { color: var(--orange); font-size: 18px; margin-left: 21px; }
.menu-toggle { display: none; }

.hero-copy {
  position: fixed;
  z-index: 4;
  left: 3.8vw;
  top: clamp(120px, 17vh, 180px);
  width: min(430px, 42vw);
}
.eyebrow {
  margin: 0 0 19px;
  color: var(--orange);
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .24em;
}
h1 {
  margin: 0;
  font: 400 clamp(52px, 5vw, 78px)/.91 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: -.02em;
  text-shadow: 0 5px 25px #000;
}
h1 span { font-weight: 300; }
.intro {
  max-width: 350px;
  margin: 23px 0 0;
  color: rgba(255,255,255,.57);
  font-size: 12px;
  line-height: 1.8;
}
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 27px; }
.primary-btn {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid #ff8511;
  border-radius: 2px;
  background: linear-gradient(135deg, #ff7800, #ef5d00);
  box-shadow: 0 10px 40px rgba(255,105,0,.12);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: transform .25s, box-shadow .25s;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255,105,0,.35); }
.primary-btn span { font-size: 18px; margin-left: 22px; }
.text-btn {
  border: 0;
  background: transparent;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}
.text-btn span { font-size: 18px; margin-left: 12px; color: var(--orange); }

.scene-note {
  position: fixed;
  z-index: 3;
  top: 12vh;
  left: 52%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(255,121,0,.18);
  background: rgba(5,5,5,.62);
  backdrop-filter: blur(9px);
  transform: skewY(1deg);
}
.scene-note span { width: 16px; height: 2px; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.scene-note p { margin: 0; font: 500 10px/1.2 "Barlow Condensed"; letter-spacing: .06em; }
.scene-note small { display: block; margin-top: 4px; color: rgba(255,255,255,.42); font: 8px Inter; letter-spacing: 0; }

.project-index {
  position: fixed;
  right: 3.8vw;
  top: 22vh;
  z-index: 4;
  width: 188px;
  display: grid;
  gap: 4px;
}
.index-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-height: 56px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-left-color: rgba(255,255,255,.12);
  text-align: left;
  background: linear-gradient(90deg, rgba(0,0,0,.72), transparent);
  opacity: .48;
  transition: opacity .25s, border-color .25s, transform .25s;
}
.index-item:hover, .index-item.active { opacity: 1; border-color: rgba(255,121,0,.35); transform: translateX(-5px); }
.index-item b { color: var(--orange); font: 400 12px "Barlow Condensed"; }
.index-item span { font: 500 10px "Barlow Condensed"; letter-spacing: .04em; }
.index-item small { display: block; margin-top: 5px; color: rgba(255,255,255,.4); font: 7px Inter; letter-spacing: .06em; }

.scroll-cue {
  position: fixed;
  z-index: 4;
  bottom: 4vh;
  left: 3.8vw;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,.42);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .13em;
}
.scroll-cue i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 15px var(--orange);
  animation: pulse 1.6s infinite;
}

.scene-controls {
  position: fixed;
  z-index: 5;
  right: 3.8vw;
  bottom: 4vh;
  display: flex;
  gap: 10px;
}
.scene-controls button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(0,0,0,.54);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.62);
  font-size: 0;
  transition: border-color .2s, color .2s;
}
.scene-controls button:hover, .scene-controls button.active { border-color: var(--orange); color: var(--orange); }
#sound-toggle::before,
#sound-toggle::after,
#auto-toggle::before,
#auto-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#sound-toggle::before {
  width: 13px;
  height: 13px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-58%, -50%) rotate(45deg);
}
#sound-toggle::after {
  width: 13px;
  height: 2px;
  background: currentColor;
  transform: translate(-20%, -50%) rotate(28deg);
  opacity: .85;
}
#sound-toggle.active::after {
  width: 18px;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 1;
}
#auto-toggle::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 13px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
#auto-toggle.active::before {
  width: 4px;
  height: 16px;
  margin-left: -5px;
  border: 0;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor;
}


.exit-hint {
  position: fixed;
  z-index: 58;
  left: 50%;
  bottom: 4.4vh;
  transform: translate(-50%, 12px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(255,121,0,.28);
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.72);
  font: 700 9px/1 Inter, sans-serif;
  letter-spacing: .12em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s, border-color .2s;
}
.exit-hint b {
  color: var(--orange);
  font: 800 9px/1 Inter, sans-serif;
  letter-spacing: .14em;
}
.exit-hint:hover { border-color: rgba(255,121,0,.58); color: #fff; }
body.about-mode .exit-hint,
body.services-mode .exit-hint,
body.car-showroom-mode .exit-hint,
body.city-showroom-mode .exit-hint,
body.cinema-mode .exit-hint,
body.projects-mode .exit-hint {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.asset-warning {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 92px;
  width: min(520px, calc(100vw - 40px));
  transform: translate(-50%, -14px);
  padding: 12px 16px;
  border: 1px solid rgba(255,121,0,.34);
  background: rgba(8,5,3,.88);
  color: rgba(255,255,255,.82);
  font: 700 10px/1.45 Inter, sans-serif;
  letter-spacing: .08em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.asset-warning.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.panel-feedback {
  position: fixed;
  z-index: 70;
  left: 0;
  top: 0;
  min-width: 118px;
  padding: 9px 12px;
  border: 1px solid rgba(255,121,0,.38);
  background: rgba(5,5,5,.78);
  color: #fff;
  font: 800 9px/1 Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  pointer-events: none;
}
.panel-feedback.flash {
  animation: panelFeedback .62s ease both;
}
@keyframes panelFeedback {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.86); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 18px)) scale(.98); }
}

.project-card {
  position: fixed;
  z-index: 8;
  right: 4vw;
  bottom: 12vh;
  width: 300px;
  padding: 26px;
  border: 1px solid rgba(255,121,0,.35);
  background: rgba(5,5,5,.84);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.project-card.open { opacity: 1; transform: none; pointer-events: auto; }
.project-card p { color: var(--orange); font-size: 8px; letter-spacing: .18em; }
.project-card h2 { margin: 8px 0 5px; font: 400 31px "Barlow Condensed"; }
.project-card > span { color: rgba(255,255,255,.47); font-size: 9px; }
.project-card .primary-btn { display: block; margin-top: 22px; }
.close-card { position: absolute; right: 10px; top: 7px; border: 0; background: none; font-size: 22px; color: #888; }

.car-showroom {
  position: fixed;
  z-index: 35;
  left: 3.8vw;
  bottom: 6.5vh;
  width: min(360px, 86vw);
  padding: 26px 28px 24px;
  border: 1px solid rgba(255,121,0,.45);
  background: linear-gradient(135deg, rgba(5,5,5,.92), rgba(24,10,2,.76));
  box-shadow: 0 24px 90px rgba(0,0,0,.48), inset 0 0 42px rgba(255,121,0,.06);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .35s, transform .35s;
}
body.car-showroom-mode .car-showroom {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.car-showroom p {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 8px;
  letter-spacing: .2em;
}
.car-showroom h2 {
  margin: 0 0 6px;
  font: 400 34px "Barlow Condensed";
  color: var(--paper);
}
.car-showroom > span {
  display: block;
  margin-bottom: 20px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
}
.showroom-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.showroom-actions + .showroom-actions { grid-template-columns: repeat(3, 1fr); }
.showroom-actions button,
.showroom-close {
  border: 1px solid rgba(255,121,0,.35);
  background: rgba(0,0,0,.44);
  color: rgba(255,255,255,.72);
  font: 700 9px/1 Inter, sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
}
.showroom-actions button {
  min-height: 34px;
  padding: 0 8px;
}
.showroom-actions button:hover,
.showroom-actions button.active {
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 18px rgba(255,121,0,.18);
}
.showroom-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
}
.showroom-back {
  margin-top: 18px;
  padding-left: 0;
}

.contact-form {
  position: fixed;
  z-index: 8;
  cursor: auto;
  right: 6vw;
  top: 50%;
  transform: translateY(calc(-50% + 16px));
  width: min(360px, 88vw);
  padding: 30px 28px;
  border: 1px solid rgba(255,121,0,.35);
  background: rgba(5,5,5,.86);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, transform .4s;
}
body.contact-mode .contact-form { opacity: 1; pointer-events: auto; transform: translateY(-50%); }
.contact-form > p { margin: 0; color: var(--orange); font-size: 8px; letter-spacing: .18em; }
.contact-form > h2 { margin: 6px 0 0; font: 400 28px "Barlow Condensed"; }
.contact-form > span { color: rgba(255,255,255,.47); font-size: 9px; margin-bottom: 4px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.55);
}
.contact-form input, .contact-form textarea {
  font: 400 13px Inter, sans-serif;
  color: var(--paper);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 2px;
  padding: 10px 11px;
  resize: none;
  cursor: auto;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.contact-form .primary-btn { margin-top: 4px; cursor: pointer; }
.contact-form .form-status { margin: 0; font-size: 9px; letter-spacing: .1em; color: var(--orange-soft); min-height: 11px; }

#loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(54, 19, 5, .72) 0%, rgba(8, 5, 4, .98) 42%, #020202 82%),
    #020202;
  overflow: hidden;
  transition: opacity .7s, visibility .7s;
}
#loading.done { opacity: 0; visibility: hidden; }
#loading-vortex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.loader-ui {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(34px, 7vh, 72px);
  width: min(540px, 58vw);
  transform: translateX(-50%);
  pointer-events: none;
}
.loader-line {
  width: 100%;
  height: 3px;
  background: rgba(255, 121, 0, .13);
  overflow: hidden;
  box-shadow: 0 0 28px rgba(255, 121, 0, .16);
}
.loader-line i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 90, 0, .92), #ffb15a);
  box-shadow: 0 0 24px rgba(255, 121, 0, .9);
  transition: width .16s ease;
}
.frame-corners { position: fixed; z-index: 2; inset: 99px 2.2vw 24px; pointer-events: none; }
.frame-corners i { position: absolute; width: 28px; height: 28px; opacity: .28; }
.frame-corners i:nth-child(1) { left: 0; top: 0; border-left: 1px solid var(--orange); border-top: 1px solid var(--orange); }
.frame-corners i:nth-child(2) { right: 0; top: 0; border-right: 1px solid var(--orange); border-top: 1px solid var(--orange); }
.frame-corners i:nth-child(3) { right: 0; bottom: 0; border-right: 1px solid var(--orange); border-bottom: 1px solid var(--orange); }
.frame-corners i:nth-child(4) { left: 0; bottom: 0; border-left: 1px solid var(--orange); border-bottom: 1px solid var(--orange); }

.scene-status {
  position: fixed;
  z-index: 4;
  right: 3.8vw;
  top: 104px;
  display: grid;
  justify-items: end;
  gap: 5px;
  color: rgba(255,255,255,.32);
  font-size: 7px;
  letter-spacing: .13em;
}
.scene-status > span { color: var(--orange); }
.scene-status b { color: rgba(255,255,255,.6); font-weight: 400; }
.scene-status b i {
  display: inline-block;
  width: 5px; height: 5px; margin-right: 5px;
  border-radius: 50%; background: #70e090; box-shadow: 0 0 8px #70e090;
}
.scene-status small { font-size: 6px; }

.depth-meter {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.35);
  font: 8px "Barlow Condensed";
}
.depth-meter > i { width: 150px; height: 1px; display: block; background: rgba(255,255,255,.13); }
.depth-meter b { width: 18%; height: 1px; display: block; background: var(--orange); box-shadow: 0 0 8px var(--orange); transition: width .2s; }

.object-tooltip {
  position: fixed;
  z-index: 30;
  display: grid;
  gap: 3px;
  padding: 10px 13px;
  border-left: 1px solid var(--orange);
  background: rgba(4,4,4,.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translate(18px, 18px);
  transition: opacity .15s;
}
.object-tooltip.visible { opacity: 1; }
.object-tooltip small { color: var(--orange); font-size: 6px; letter-spacing: .16em; }
.object-tooltip b { color: white; font: 500 10px "Barlow Condensed"; letter-spacing: .05em; }

.cursor-dot, .cursor-ring { position: fixed; z-index: 200; pointer-events: none; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 4px; height: 4px; background: var(--orange); }
.cursor-ring { width: 28px; height: 28px; border: 1px solid rgba(255,121,0,.5); transition: width .18s, height .18s; }
body.hovering .cursor-ring { width: 44px; height: 44px; }
body.panel-clicked .cursor-ring { width: 58px; height: 58px; border-color: var(--orange); }

body.contact-mode .scene-note,
body.contact-mode .scroll-cue,
body.contact-mode .project-index,
body.contact-mode .scene-controls,
body.contact-mode .scene-status,
body.contact-mode .depth-meter,
body.contact-mode .object-tooltip,
body.contact-mode .project-card,
body.cinema-mode .scene-note,
body.cinema-mode .scroll-cue,
body.cinema-mode .project-index,
body.cinema-mode .scene-controls,
body.cinema-mode .scene-status,
body.cinema-mode .depth-meter,
body.cinema-mode .object-tooltip,
body.cinema-mode .project-card,
body.cinema-mode .topbar,
body.about-mode .scene-note,
body.about-mode .scroll-cue,
body.about-mode .project-index,
body.about-mode .scene-controls,
body.about-mode .scene-status,
body.about-mode .depth-meter,
body.about-mode .object-tooltip,
body.about-mode .project-card,
body.services-mode .scene-note,
body.services-mode .scroll-cue,
body.services-mode .project-index,
body.services-mode .scene-controls,
body.services-mode .scene-status,
body.services-mode .depth-meter,
body.services-mode .object-tooltip,
body.services-mode .project-card,
body.car-showroom-mode .scene-note,
body.car-showroom-mode .scroll-cue,
body.car-showroom-mode .project-index,
body.car-showroom-mode .scene-controls,
body.car-showroom-mode .depth-meter,
body.car-showroom-mode .project-card,
body.car-showroom-mode .object-tooltip,
body.city-showroom-mode .scene-note,
body.city-showroom-mode .scroll-cue,
body.city-showroom-mode .project-index,
body.city-showroom-mode .scene-controls,
body.city-showroom-mode .depth-meter,
body.city-showroom-mode .project-card,
body.city-showroom-mode .object-tooltip {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px);
}

/* Note: about-mode/services-mode deliberately do NOT hide .topbar — unlike
   cinema (which has its own close button), they have no other way back to
   the scene, so the nav must stay visible and clickable. */

body.contact-mode .vignette,
body.about-mode .vignette,
body.cinema-mode .vignette,
body.services-mode .vignette,
body.car-showroom-mode .vignette,
body.city-showroom-mode .vignette {
  opacity: .28;
}

.cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 3, .92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
  cursor: auto;
}
body.cinema-mode .cinema-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cinema-video {
  width: min(84vw, 1400px);
  max-height: 82vh;
  border: 1px solid rgba(255, 121, 0, .35);
  background: #000;
  cursor: pointer;
}
.cinema-close {
  position: absolute;
  top: 26px;
  right: 3.5vw;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 121, 0, .5);
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cinema-close:hover { border-color: var(--orange); color: var(--orange); }

.projects-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #060605;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s;
  cursor: auto;
}
body.projects-mode .projects-overlay { opacity: 1; pointer-events: auto; }
.projects-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 90px 5vw 80px;
}
.projects-close {
  position: fixed;
  top: 26px;
  right: 3.5vw;
  z-index: 51;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 121, 0, .5);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.projects-close:hover { border-color: var(--orange); color: var(--orange); }

.projects-header { max-width: 900px; margin: 0 auto 56px; text-align: center; }
.projects-header .eyebrow { margin: 0; color: var(--orange); font-size: 10px; letter-spacing: .22em; }
.projects-header h2 { margin: 10px 0 0; font: 400 46px "Barlow Condensed"; }

.projects-section { max-width: 1500px; margin: 0 auto 72px; }
.projects-section h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 22px;
  font: 500 16px Inter, sans-serif;
  letter-spacing: .04em;
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 14px;
}

.project-summary {
  max-width: 760px;
  margin: -18px 0 24px 48px;
  color: rgba(255,255,255,.58);
  font: 500 13px/1.65 Inter, sans-serif;
}

.projects-section h3 span {
  color: var(--orange);
  font: 600 12px Inter, sans-serif;
  letter-spacing: .1em;
}

/* Landscape (16:9-ish) galleries: first two images run big at two-per-row,
   the rest sit smaller at four-per-row. Portrait galleries (fashion shots)
   skip this and stay a plain uniform grid. */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.projects-grid img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid rgba(255,121,0,.18);
  background: #111;
  cursor: pointer;
  transition: transform .35s, border-color .35s, filter .35s;
}
.projects-grid img:hover {
  transform: scale(1.025);
  border-color: rgba(255,121,0,.6);
  filter: brightness(1.08);
}
@media (min-width: 901px) {
  .projects-grid:not(.projects-grid--portrait) img:nth-child(-n+2) { grid-column: span 2; }
}
.projects-grid--portrait { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.projects-grid--portrait img { aspect-ratio: 3 / 4; }

/* Lightbox — click any project image to view it full-size; prev/next are
   scoped to that image's own .projects-grid gallery only. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,3,3,.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 84vw; max-height: 82vh; object-fit: contain; border: 1px solid rgba(255,121,0,.3); background: #050505; }
.lightbox-close {
  position: absolute;
  top: 26px;
  right: 3.5vw;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,121,0,.5);
  background: rgba(0,0,0,.5);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--orange); color: var(--orange); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,121,0,.3);
  background: rgba(0,0,0,.3);
  color: rgba(255,255,255,.55);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.lightbox-prev:hover, .lightbox-next:hover { border-color: var(--orange); color: var(--orange); background: rgba(0,0,0,.55); }
.lightbox-prev { left: 2.5vw; }
.lightbox-next { right: 2.5vw; }
.lightbox-counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font: 500 11px Inter, sans-serif;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 700px) {
  .projects-scroll { padding: 80px 5vw 60px; }
  .projects-header h2 { font-size: 34px; }
  .projects-grid:not(.projects-grid--portrait) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 19px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
@keyframes pulse { 50% { opacity: .28; transform: scale(.7); } }

@media (max-width: 900px) {
  body { cursor: auto; }
  button { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
  .topbar { height: 70px; grid-template-columns: 1fr auto; padding: 0 20px; }
  nav, .topbar > .outline-btn { display: none; }
  .menu-toggle { display: grid; gap: 6px; border: 0; background: transparent; z-index: 11; }
  .menu-toggle i { width: 24px; height: 1px; background: var(--orange); transition: transform .25s, opacity .25s; }
  .menu-toggle.active i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.active i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .topbar.nav-open nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    gap: 2px;
    padding: 10px 24px 100px;
    background: rgba(4,4,4,.98);
    z-index: 9;
    overflow-y: auto;
  }
  .topbar.nav-open nav a {
    height: auto;
    justify-content: flex-start;
    padding: 17px 0;
    font-size: 13px;
    letter-spacing: .18em;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .topbar.nav-open nav a.active::after { display: none; }
  .topbar.nav-open nav .nav-cluster {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    gap: 0;
  }
  .topbar.nav-open nav .nav-badge {
    height: auto;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .topbar.nav-open .outline-btn {
    display: flex;
    justify-content: center;
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 28px;
    z-index: 9;
  }
  .hero-copy { left: 24px; top: 13vh; width: calc(100vw - 48px); max-width: 560px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-actions .primary-btn { min-width: 210px; }
  .eyebrow { margin-bottom: 13px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .intro { max-width: 84vw; font-size: 11px; }
  .project-index, .scene-note { display: none; }
  .scene-status, .depth-meter, .object-tooltip, .frame-corners { display: none; }
  .scene-controls { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); gap: 8px; }
  .scene-controls button { width: 40px; height: 40px; }
  .exit-hint { left: 24px; right: auto; bottom: calc(74px + env(safe-area-inset-bottom)); transform: translateY(12px); }
  body.about-mode .exit-hint,
  body.services-mode .exit-hint,
  body.car-showroom-mode .exit-hint,
  body.city-showroom-mode .exit-hint,
  body.cinema-mode .exit-hint,
  body.projects-mode .exit-hint { transform: none; }
  .project-card { left: 20px; right: 20px; bottom: 84px; width: auto; padding: 22px; }
  .scroll-cue { left: 24px; bottom: 26px; }
  .contact-form {
    right: 50%;
    top: 50%;
    transform: translate(50%, calc(-50% + 16px));
    width: min(320px, 88vw);
    padding: 24px 20px;
    gap: 10px;
    max-height: 80vh;
    overflow-y: auto;
  }
  body.contact-mode .contact-form { transform: translate(50%, -50%); }
  .vignette { background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.12) 70%, rgba(0,0,0,.5)); }
}

@media (max-height: 720px) and (min-width: 901px) {
  .hero-copy { top: 115px; }
  h1 { font-size: 52px; }
  .intro { margin-top: 14px; line-height: 1.55; }
  .hero-actions { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


@media (max-width: 480px) {
  .hero-copy { top: 12vh; }
  h1 { font-size: clamp(42px, 14vw, 58px); line-height: .92; }
  .intro { max-width: 92vw; }
  .primary-btn { min-width: 0; width: 100%; max-width: 260px; }
  .text-btn { min-height: 38px; }
  .project-summary { margin-left: 0; font-size: 12px; }
  .projects-section h3 { font-size: 25px; line-height: 1.08; }
}
