/* ==========================================================================
   Viensty Studio's — Architectural 3D Depth, Midnight Sapphire & Brushed Silver
   High-FPS GPU-composited styling with real physical 3D slab depth at rest.
   ========================================================================== */

:root {
  /* Deep Midnight-Obsidian Canvas (richer than dead flat black) */
  --bg: #060911;
  --bg-card: #0d1320;
  --bg-card-top: #141d30;

  /* Silver & Typography */
  --text: #f1f5f9;
  --text-secondary: #b6c4d8;
  --text-muted: #7b8ba3;

  /* Harmonious Studio Lighting Accents */
  --blue: #38bdf8;
  --sapphire: #2563eb;
  --indigo: #7c83ff;
  --teal: #2dd4bf;

  /* Metallic Borders */
  --border: rgba(186, 210, 240, 0.14);
  --border-top: rgba(241, 245, 249, 0.24);
  --border-hover: rgba(56, 189, 248, 0.48);

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 20px;
  --nav-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 85% 55% at 50% -10%, rgba(37, 99, 235, 0.16) 0%, transparent 65%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   3D Studio Backdrop (Architectural Depth without FPS Loss)
   ========================================================================== */

.studio-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.studio-bg__beam {
  position: absolute;
  border-radius: 50%;
}

.studio-bg__beam--right {
  width: 900px;
  height: 780px;
  top: -240px;
  right: -180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(37, 99, 235, 0.06) 42%, transparent 70%);
}

.studio-bg__beam--left {
  width: 820px;
  height: 820px;
  bottom: -260px;
  left: -220px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 68%);
}

/* 3D Perspective Floor Grid */
.studio-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(186, 210, 240, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(186, 210, 240, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 20%, transparent 82%);
}

.studio-bg__horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
}

/* ==========================================================================
   Physical 3D Slab Card (Visible Depth & Thickness Even at Rest)
   ========================================================================== */

.slab {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.015) 38%, rgba(6, 9, 17, 0.4) 100%),
    linear-gradient(180deg, var(--bg-card-top) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  /* Physical 3D extruded bottom lip + deep studio drop shadow */
  box-shadow:
    0 6px 0 #070b14,
    0 7px 0 rgba(186, 210, 240, 0.12),
    0 24px 48px -14px rgba(0, 0, 0, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform;
  overflow: hidden;
}

.slab:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 8px 0 #070b14,
    0 9px 0 rgba(56, 189, 248, 0.28),
    0 32px 60px -16px rgba(0, 0, 0, 0.94),
    0 0 36px -14px rgba(56, 189, 248, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.14s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  transition-delay: 0ms !important;
}

.slab__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(56, 189, 248, 0.15),
    rgba(255, 255, 255, 0.04) 40%,
    transparent 70%
  );
}

.slab:hover .slab__sheen {
  opacity: 1;
}

.slab__body {
  position: relative;
  z-index: 1;
  transform: translateZ(22px);
}

/* ==========================================================================
   Buttons (3D Tactile Depth)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn--primary {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 0 #173c8f,
    0 14px 28px -8px rgba(37, 99, 235, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #173c8f,
    0 18px 34px -8px rgba(56, 189, 248, 0.6);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #173c8f;
}

.btn--secondary {
  background: linear-gradient(180deg, rgba(26, 36, 56, 0.9) 0%, rgba(15, 22, 36, 0.95) 100%);
  color: var(--text);
  border-color: var(--border);
  border-top-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 0 #070b14,
    0 12px 24px -10px rgba(0, 0, 0, 0.8);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow:
    0 6px 0 #070b14,
    0 16px 30px -10px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid rgba(186, 210, 240, 0.08);
  background: rgba(6, 9, 17, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.navbar.is-scrolled {
  background: rgba(6, 9, 17, 0.9);
  border-bottom-color: var(--border);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.25));
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__wordmark strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
}

.brand__wordmark span {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--blue);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.48rem 0.95rem;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Account Dropdown Menu in Navbar */
.user-menu {
  position: relative;
}

.user-menu__trigger {
  gap: 0.45rem;
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 0.55rem;
  border-radius: 14px;
  background: rgba(11, 16, 28, 0.96);
  border: 1px solid var(--border);
  box-shadow:
    0 6px 0 #070b14,
    0 22px 44px -12px rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 150;
}

/* Bridge small hover gap so moving cursor from button to dropdown never closes it */
.user-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.user-menu:hover .user-menu__dropdown,
.user-menu.is-open .user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu__email {
  padding: 0.45rem 0.65rem 0.55rem;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(186, 210, 240, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__form {
  margin: 0;
}

.user-menu__logout {
  width: 100%;
  text-align: left;
  padding: 0.58rem 0.7rem;
  border-radius: 9px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.user-menu__logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ==========================================================================
   Hero Section (Balanced, Full-Presence, Zero Dead Void)
   ========================================================================== */

.hero {
  padding: calc(var(--nav-h) + 3.2rem) 0 3.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero__title-accent {
  display: block;
  background: linear-gradient(110deg, #ffffff 0%, #bae6fd 42%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__intro-card {
  padding: 1.45rem 1.65rem;
  margin-bottom: 1.8rem;
  border-radius: 18px;
}

.hero__intro-card p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Right: Layered 3D Monolith Showcase */
.hero__right {
  perspective: 1200px;
}

.showcase-3d {
  position: relative;
  padding: 12px 12px 18px 0;
}

/* Offset 3D Backplate creates instant visible depth even at rest */
.showcase-3d__backplate {
  position: absolute;
  inset: 22px 0 4px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.28);
  transform: perspective(1100px) rotateX(4deg) rotateY(-8deg) translateZ(-30px);
  pointer-events: none;
}

.showcase-3d__card {
  border-radius: 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: perspective(1100px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)) translateZ(0);
}

.showcase-3d__banner-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.showcase-3d__banner-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.1);
}

.showcase-3d__logo-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 2rem 1.2rem;
  transform: translateZ(42px);
}

.showcase-3d__logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 26px rgba(56, 189, 248, 0.22));
  animation: floatLogo 5.5s ease-in-out infinite;
}

.showcase-3d__footer {
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.5rem;
  background: rgba(6, 9, 17, 0.72);
  border-top: 1px solid rgba(186, 210, 240, 0.14);
  transform: translateZ(24px);
}

.showcase-3d__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--text);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Services Grid (6 x 3D Slabs)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 1.9rem;
}

/* Sculpted 3D Icon Cube */
.icon-cube {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow:
    0 4px 0 rgba(7, 11, 20, 0.9),
    0 10px 20px -6px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 1.35rem;
}

.icon-cube--indigo {
  color: var(--indigo);
  background: linear-gradient(145deg, rgba(124, 131, 255, 0.22), rgba(99, 102, 241, 0.08));
  border-color: rgba(124, 131, 255, 0.34);
  box-shadow:
    0 4px 0 rgba(7, 11, 20, 0.9),
    0 10px 20px -6px rgba(124, 131, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.icon-cube--teal {
  color: var(--teal);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.2), rgba(20, 184, 166, 0.08));
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow:
    0 4px 0 rgba(7, 11, 20, 0.9),
    0 10px 20px -6px rgba(45, 212, 191, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.icon-cube--silver {
  color: #e2e8f0;
  background: linear-gradient(145deg, rgba(226, 232, 240, 0.18), rgba(148, 163, 184, 0.07));
  border-color: rgba(226, 232, 240, 0.3);
  box-shadow:
    0 4px 0 rgba(7, 11, 20, 0.9),
    0 10px 20px -6px rgba(226, 232, 240, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.66;
}

/* ==========================================================================
   About & Banner
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1.6rem;
  align-items: stretch;
}

.banner-slab {
  padding: 1rem;
  display: flex;
}

.banner-slab__media {
  width: 100%;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #04060a;
}

.banner-slab__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-slab {
  padding: 2.2rem;
  display: flex;
  align-items: center;
}

.about-slab h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-slab p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.72;
}

.about-slab p + p {
  margin-top: 0.95rem;
}

.about-slab strong {
  color: var(--text);
}

/* ==========================================================================
   Upcoming Panel Slab
   ========================================================================== */

.section--panel {
  padding: 1.5rem 0 2.5rem;
}

.panel-slab {
  padding: clamp(1.6rem, 3.5vw, 2.3rem);
  background:
    radial-gradient(ellipse 55% 100% at 92% 50%, rgba(124, 131, 255, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-card-top) 0%, var(--bg-card) 100%);
}

.panel-slab__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.panel-slab__left {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  max-width: 740px;
}

.panel-slab__left .icon-cube {
  margin-bottom: 0;
  flex-shrink: 0;
}

.panel-slab__left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.panel-slab__left p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.panel-slab__status {
  flex-shrink: 0;
}

.panel-slab__status span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c7d2fe;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  background: rgba(124, 131, 255, 0.12);
  border: 1px solid rgba(124, 131, 255, 0.34);
}

/* ==========================================================================
   Contact Slab
   ========================================================================== */

.section--contact {
  padding-bottom: 6rem;
}

.contact-slab {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background:
    radial-gradient(ellipse 60% 100% at 10% 50%, rgba(56, 189, 248, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-card-top) 0%, var(--bg-card) 100%);
}

.contact-slab__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-slab__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-slab__logo {
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

.contact-slab__left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.contact-slab__left p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.contact-slab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid rgba(186, 210, 240, 0.1);
  background: rgba(5, 7, 13, 0.85);
  padding: 2.2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--blue);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Scroll-Reveal & Animations (GPU-only)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: perspective(1100px) translate3d(0, 26px, 0) rotateX(6deg);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: perspective(1100px) translate3d(0, 0, 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero__grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .showcase-3d__card {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  }

  .showcase-3d__backplate {
    display: none;
  }

  .showcase-3d {
    padding: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border-radius: 16px;
    background: rgba(10, 15, 26, 0.96);
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .navbar__right .btn--sm {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-slab__left,
  .panel-slab__left {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
