/* ═══════════════════════════════════════════════════════════
   Vultronix Industries — Building Optima (#p-building)
═══════════════════════════════════════════════════════════ */

.domain-building .bd-eyebrow,
#p-building .eyebrow {
  color: var(--d-prime);
}

.bd-h1 {
  font-family: var(--fd);
  font-size: clamp(2.1rem, 4.5vw, 3.45rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.03em;
  color: var(--t1);
  margin-bottom: 1.25rem;
}

.bd-h1 em {
  color: var(--d-prime);
  font-style: normal;
}

.bd-h2 {
  font-family: var(--fd);
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--t1);
  margin-bottom: .75rem;
}

.bd-h2 em {
  color: var(--d-prime);
  font-style: normal;
}

.bd-lead {
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: var(--t2);
  line-height: 1.8;
  max-width: 52ch;
}

.bd-section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ── Hero ──────────────────────────────────────────────────── */
.bd-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, var(--ink) 55%, rgba(34,211,238,.05) 100%);
}

.bd-hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(34,211,238,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 100%);
}

.bd-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: float 13s ease-in-out infinite;
}

.bd-hero__orb--1 {
  width: 540px;
  height: 540px;
  top: -140px;
  right: -90px;
  background: radial-gradient(circle, rgba(34,211,238,.16), transparent 70%);
}

.bd-hero__orb--2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(30,64,175,.12), transparent 70%);
  animation-delay: -4s;
}

.bd-hero__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bd-hero__scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.35), transparent);
  animation: bd-scan 6s linear infinite;
}

@keyframes bd-scan {
  0% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.bd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.bd-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .85rem;
  margin-bottom: 1.25rem;
  font-family: var(--fm);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--d-prime);
  background: var(--d-bg);
  border: 1px solid var(--d-bd);
  border-radius: 99px;
}

.bd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 1.75rem 0 2rem;
}

.bd-btn-primary {
  color: var(--t1);
  background: linear-gradient(135deg, #1e40af, #22d3ee);
  box-shadow: 0 8px 28px var(--d-btn-shadow);
}

.bd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--d-btn-shadow);
}

.bd-btn-login {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.25rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--t2);
  background: var(--glass);
  border: 1px solid var(--edge2);
  border-radius: var(--r);
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.bd-btn-login:hover {
  color: var(--d-prime);
  border-color: var(--d-bd);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--d-glow);
}

.bd-btn-login svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bd-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--edge);
}

.bd-stat__num {
  font-family: var(--fd);
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--d-prime);
  margin-bottom: .35rem;
}

.bd-stat__label {
  font-size: .72rem;
  color: var(--t3);
  line-height: 1.45;
  max-width: 14ch;
}

.bd-hero__frame {
  border-radius: var(--r3);
  overflow: hidden;
  border: 1px solid var(--d-bd);
  background: var(--ink2);
  cursor: pointer;
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 48px rgba(34,211,238,.1);
  transition: transform .4s, box-shadow .4s;
}

.bd-hero__frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 96px rgba(0,0,0,.6), 0 0 64px rgba(34,211,238,.16);
}

.bd-hero__media {
  aspect-ratio: 16 / 10;
  min-height: clamp(240px, 28vw, 380px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--ink2);
}

.bd-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

/* ── Bento ─────────────────────────────────────────────────── */
.bd-bento-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--ink2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.bd-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.bd-bento__wide {
  grid-column: span 2;
}

.bd-bento-card {
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r2);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.bd-bento-card:hover {
  border-color: var(--d-bd);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}

.bd-bento-card--featured {
  background: linear-gradient(135deg, rgba(34,211,238,.08), var(--glass));
}

.bd-bento-card__icon {
  font-size: 1.5rem;
  margin-bottom: .85rem;
}

.bd-bento-card h3 {
  font-family: var(--fd);
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .55rem;
}

.bd-bento-card p {
  font-size: .84rem;
  color: var(--t2);
  line-height: 1.65;
  margin-bottom: .85rem;
}

.bd-bento-card__metric {
  font-family: var(--fm);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--d-prime);
  padding-top: .75rem;
  border-top: 1px solid var(--edge);
}

/* ── Gallery ───────────────────────────────────────────────── */
.bd-gallery {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.bd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.bd-gallery__item {
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--ink2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}

.bd-gallery__item:hover {
  border-color: var(--d-bd);
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(0,0,0,.5);
}

.bd-gallery__media {
  aspect-ratio: 16 / 10;
  min-height: clamp(220px, 26vw, 340px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--ink2);
  overflow: hidden;
}

.bd-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  transition: transform .45s;
}

.bd-gallery__item:hover .bd-gallery__media img {
  transform: scale(1.02);
}

.bd-gallery__caption {
  padding: .85rem 1rem;
  background: var(--ink3);
  border-top: 1px solid var(--edge);
}

.bd-gallery__tag {
  display: block;
  font-family: var(--fm);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--d-prime);
  margin-bottom: .25rem;
}

.bd-gallery__title {
  font-family: var(--fd);
  font-size: .82rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.35;
}

/* ── Testimonial ───────────────────────────────────────────── */
.bd-testi {
  padding: 0 0 clamp(3rem, 6vw, 4rem);
  background: var(--ink);
}

.bd-testi__block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(30,64,175,.05));
  border: 1px solid var(--d-bd);
  border-radius: var(--r2);
  box-shadow: 0 20px 52px rgba(0,0,0,.35);
}

.bd-testi__avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: .85rem;
  font-weight: 800;
  color: var(--t1);
  background: linear-gradient(135deg, #22d3ee, #1e40af);
  flex-shrink: 0;
}

.bd-testi__block blockquote {
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  color: var(--t2);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1rem;
}

.bd-testi__name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: .2rem;
}

.bd-testi__role {
  font-size: .78rem;
  color: var(--t3);
}

/* ── CTA ───────────────────────────────────────────────────── */
.bd-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(4rem, 8vw, 5.5rem);
  background: linear-gradient(135deg, rgba(34,211,238,.09), var(--ink));
  border-top: 1px solid var(--edge);
}

.bd-cta__grid-bg {
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background:
    linear-gradient(rgba(34,211,238,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bd-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.bd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 1.75rem;
}

@media (max-width: 960px) {
  .bd-hero__inner { grid-template-columns: 1fr; }
  .bd-hero__visual { order: -1; }
  .bd-bento { grid-template-columns: 1fr; }
  .bd-bento__wide { grid-column: span 1; }
  .bd-gallery__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bd-testi__block { grid-template-columns: 1fr; text-align: center; }
  .bd-testi__avatar { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bd-hero__scan::after { animation: none; }
}
