:root {
  --hairline: rgba(17, 21, 26, 0.09);
  --carbon: #FFFFFF;
  --graphite: #F4F6F8;
  --steel: #EAEEF2;
  --electric: #0090C7;
  --sky: #0284C7;
  --mist: #11151A;
  --fog: #5B6672;
}

html {
  background: #FFFFFF;
  color: #11151A;
  font-size: 15px;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  background: #FFFFFF;
  color: #11151A;
  overflow-x: hidden;
}

::-moz-selection { background: #00B4FF; color: #04121C; }
::selection { background: #00B4FF; color: #04121C; }
:focus-visible { outline: 2px solid #00B4FF; outline-offset: 3px; }

.font-display { font-family: 'Sora', sans-serif; }
.font-sans { font-family: 'Instrument Sans', sans-serif; }

.hairline-t { border-top: 1px solid var(--hairline); }
.hairline-b { border-bottom: 1px solid var(--hairline); }

.label {
  font-family: 'Sora', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #5B6672;
}

.level-line {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, #00B4FF, #0284C7 55%, rgba(2, 132, 199, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.level-line.is-visible { transform: scaleX(1); }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.mask { overflow: hidden; }
.mask .line { display: block; will-change: transform; }

.media {
  overflow: hidden;
  position: relative;
  background: #EAEEF2;
}
.media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}
.media:hover img { transform: scale(1.05); }

.credit {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(17, 21, 26, 0.6);
  z-index: 3;
}

.proj-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(7, 9, 11, 0.86) 0%, rgba(7, 9, 11, 0.25) 45%, rgba(7, 9, 11, 0) 70%);
  opacity: 0.75;
  transition: opacity 0.6s ease;
}
.proj:hover .proj-overlay { opacity: 1; }
.proj-cap { transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.proj:hover .proj-cap { transform: translateY(-6px); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  transition: color 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  border-radius: 0;
  font-weight: 500;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.btn:hover::before { transform: scaleX(1); }
.btn .arr { transition: transform 0.35s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn-solid { background: #00B4FF; color: #04121C; border: 1px solid #00B4FF; }
.btn-solid::before { background: #F4F7F9; }
.btn-solid:hover { color: #04121C; border-color: #F4F7F9; }

.btn-line { border: 1px solid rgba(17, 21, 26, 0.22); color: #11151A; background: transparent; }
.btn-line::before { background: #00B4FF; }
.btn-line:hover { color: #04121C; border-color: #00B4FF; }

.nav-link { position: relative; cursor: pointer; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 100%;
  background: #00B4FF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

#fixedTop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(17, 21, 26, 0.08) !important;
}
#siteHeader {
  background: #FFFFFF !important;
  opacity: 1 !important;
  border-bottom: 1px solid rgba(17, 21, 26, 0.08) !important;
}
#siteHeader.glass {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
}

.svc { transition: background-color 0.4s ease, padding-left 0.4s ease; cursor: pointer; }
.svc:hover { background: rgba(17, 21, 26, 0.03); padding-left: 1rem; }
.svc:hover .svc-arr { transform: translate(4px, -4px); opacity: 1; color: #00B4FF; }
.svc-arr { transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0.35; }

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.35); }
  70% { box-shadow: 0 0 0 18px rgba(0, 180, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0); }
}
.wa-float { animation: waPulse 2.6s ease-out infinite; }

/* Traveling light along the hero's vertical accent line */
@keyframes lineTravel {
  0%   { transform: translateY(-100%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(160%); opacity: 0; }
}
.hero-line-glow {
  position: absolute;
  top: 0; left: -1px;
  width: 3px; height: 30%;
  background: linear-gradient(to bottom, transparent, #00B4FF, transparent);
  filter: blur(1px);
  animation: lineTravel 3.4s ease-in-out infinite;
}

/* Soft breathing glow on the primary CTA — draws the eye without being loud */
@keyframes ctaBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.28); }
  50%      { box-shadow: 0 0 22px 4px rgba(0, 180, 255, 0.28); }
}
.cta-live { animation: ctaBreathe 3.2s ease-in-out infinite; }

/* Small "live" indicator dot, e.g. beside the 3D Studio nav link */
@keyframes liveDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.4; }
}
.dot-live { animation: liveDot 1.8s ease-in-out infinite; }

#curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* View Router Panes */
.view-pane { display: none; width: 100%; }
.view-pane:not(#view-home) { padding-top: 125px !important; }
.view-pane.active { display: block; animation: viewFadeIn 0.4s ease forwards; }

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.field {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 21, 26, 0.18);
  padding: 0.75rem 0;
  color: #11151A;
  width: 100%;
  font-size: 0.88rem;
  font-family: inherit;
}
.field:focus { outline: none; border-color: #00B4FF; }
.field::-moz-placeholder { color: #8A93A0; }
.field::placeholder { color: #8A93A0; }
select.field option { background: #FFFFFF; color: #11151A; }

.chip {
  font-family: 'Sora', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(17, 21, 26, 0.16);
  padding: 0.45rem 0.85rem;
  color: #5B6672;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.chip:hover { border-color: #00B4FF; color: #11151A; }
.chip.active { border-color: #00B4FF; color: #04121C; background: #00B4FF; }

/* 3D Studio WebGL Viewport */
#webgl-container {
  width: 100%;
  height: 380px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #0d1522 0%, #05070a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#webgl-container canvas { display: block; border-radius: 20px; width: 100%; height: 100%; }
@media (min-width: 768px) {
  #webgl-container { height: 640px; }
}

.swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.6, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.swatch-btn:hover { transform: scale(1.12); filter: brightness(1.2); }
.swatch-btn.active {
  border-color: #00B4FF;
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Studio Tab Nav */
.studio-tab-btn {
  font-family: 'Sora', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  color: #5B6672;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.studio-tab-btn:hover { color: #11151A; }
.studio-tab-btn.active {
  color: #00B4FF;
  border-bottom-color: #00B4FF;
  background: rgba(0, 180, 255, 0.04);
}

/* Camera Perspective Pills */
.cam-pill {
  font-family: 'Sora', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(13, 17, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #96A0AA;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cam-pill:hover { color: #F4F7F9; border-color: rgba(0, 180, 255, 0.4); transform: translateY(-1px); }
.cam-pill.active {
  background: rgba(0, 180, 255, 0.15);
  border-color: #00B4FF;
  color: #00B4FF;
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.25);
}

/* Studio Switchers & Toggles */
.studio-toggle-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(17, 21, 26, 0.04);
  border: 1px solid rgba(17, 21, 26, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
}
.studio-toggle-chip:hover {
  background: rgba(17, 21, 26, 0.07);
  border-color: rgba(0, 180, 255, 0.3);
}

/* Range Sliders with Electric Glow */
.studio-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: #EAEEF2;
  outline: none;
  border: 1px solid rgba(17, 21, 26, 0.08);
}
.studio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00B4FF;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.6);
  transition: transform 0.15s ease;
}
.studio-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* 3D studio loading spinner */
@keyframes studioSpin { to { transform: rotate(360deg); } }
.studio-loader {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(17, 21, 26, 0.1);
  border-top-color: #00B4FF;
  animation: studioSpin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
}

/* 3D floor grid pulse */
@keyframes gridPulse { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.25; } }
.grid-pulse { animation: gridPulse 4s ease-in-out infinite; }

/* Custom scrollbar */
.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: rgba(17, 21, 26, 0.03); }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(0, 180, 255, 0.3); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .media img, .btn::before, .nav-link::after, .svc, .proj-cap, .reveal, .level-line { transition: none !important; }
  .wa-float, .hero-line-glow, .cta-live, .dot-live { animation: none; }
  .hero-line-glow { display: none; }
}
