/* ==========================================================================
   BRYN Power Utilities & Infrastructure — Official Holding Page
   Pixel-accurate recreation of Canva design specification.
   ========================================================================== */

:root {
  --bg-dark: #0e1013;
  --bg-deep: #090a0d;
  --text-brand: #edece6;
  --text-pure: #ffffff;
  --text-subtle: #8e98a8;
  --text-muted: #5d6778;
  --red-crimson: #dc2626;
  --red-bright: #ef4444;
  --red-halo: rgba(220, 38, 38, 0.35);
  --trace-line: rgba(255, 255, 255, 0.05);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-brand);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Background & Isometric Facet Texture
   ========================================================================== */

.bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(ellipse at 50% 45%, #16191f 0%, #0e1013 65%, #08090c 100%);
}

/* Subtle dark triangular/diamond facet mesh */
.facet-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: 
    linear-gradient(30deg, #181b22 12%, transparent 12.5%, transparent 87%, #181b22 87.5%, #181b22),
    linear-gradient(150deg, #181b22 12%, transparent 12.5%, transparent 87%, #181b22 87.5%, #181b22),
    linear-gradient(30deg, #181b22 12%, transparent 12.5%, transparent 87%, #181b22 87.5%, #181b22),
    linear-gradient(150deg, #181b22 12%, transparent 12.5%, transparent 87%, #181b22 87.5%, #181b22),
    linear-gradient(60deg, #15181f 25%, transparent 25.5%, transparent 75%, #15181f 75%, #15181f),
    linear-gradient(60deg, #15181f 25%, transparent 25.5%, transparent 75%, #15181f 75%, #15181f);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 80%);
}

/* SVG circuit paths layer */
.circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.circuit-trace {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-dim {
  stroke: rgba(255, 255, 255, 0.025);
}

.trace-pad {
  fill: rgba(255, 255, 255, 0.12);
}

.faint-wave {
  fill: none;
  stroke: rgba(255, 255, 255, 0.022);
  stroke-width: 1.2;
}

.wave-subtle {
  stroke: rgba(255, 255, 255, 0.012);
}

/* Glowing Red Active Circuit Path & Nodes */
.red-active-path {
  fill: none;
  stroke: var(--red-crimson);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.red-active-node {
  fill: var(--red-crimson);
}

.node-pulse-aura {
  animation: node-breathe 4s ease-in-out infinite;
}

@keyframes node-breathe {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
    transform-origin: center;
  }
  50% {
    opacity: 0.85;
    transform: scale(1.1);
    transform-origin: center;
  }
}

/* ==========================================================================
   Foreground Content Layout
   ========================================================================== */

.page-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3.5rem 5rem;
}

/* ==========================================================================
   Center Stage Hero Identity
   ========================================================================== */

.brand-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  margin-top: 1rem;
}

/* Monolithic BRYN Title */
.brand-logo {
  font-family: var(--font-primary);
  font-size: clamp(5.5rem, 18vw, 17rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.015em;
  color: var(--text-brand);
  text-transform: uppercase;
  text-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(255, 255, 255, 0.04);
}

/* Crimson Red Horizontal Accent Bar */
.crimson-bar {
  width: 54px;
  height: 3.5px;
  background-color: var(--red-crimson);
  border-radius: 2px;
  margin: 2.4rem 0 1.9rem;
  box-shadow: 0 0 16px var(--red-halo), 0 0 30px rgba(220, 38, 38, 0.25);
}

/* Category Subheading */
.category-heading {
  font-family: var(--font-primary);
  font-size: clamp(0.75rem, 1.55vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-pure);
  margin-bottom: 1.25rem;
  padding-left: 0.38em; /* Visually centers wide tracking */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Established Stamp */
.established-text {
  font-family: var(--font-primary);
  font-size: clamp(0.68rem, 1.05vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 0.28em; /* Visually centers wide tracking */
}

/* ==========================================================================
   Bottom Status & Contact Strip
   ========================================================================== */

.bottom-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
}

/* Left Development Status */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-trace-hook {
  display: inline-block;
  width: 22px;
  height: 2px;
  background-color: var(--red-crimson);
  box-shadow: 0 0 6px var(--red-crimson);
}

.status-label {
  font-family: var(--font-primary);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-subtle);
  letter-spacing: 0.015em;
}

/* Right Contact Details (Email + Phone) */
.contact-details {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.015em;
  padding: 0.35rem 0.5rem;
  cursor: default;
  user-select: text;
}

.contact-icon {
  color: var(--red-crimson);
  flex-shrink: 0;
}

.contact-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  user-select: none;
}

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

@media (max-width: 900px) {
  .page-container {
    padding: 2.5rem 2rem;
  }

  /* Remove bottom-left red circuit line design on mobile */
  .bottom-left-trace,
  .status-trace-hook {
    display: none !important;
  }

  .bottom-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .contact-details {
    flex-wrap: wrap;
    justify-content: center;
  }

  .status-indicator {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .page-container {
    padding: 2rem 1.25rem;
  }

  .brand-logo {
    font-size: clamp(4.5rem, 20vw, 7.5rem);
  }

  .crimson-bar {
    margin: 1.6rem 0 1.4rem;
  }

  .category-heading {
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }

  .contact-divider {
    display: none;
  }

  .contact-details {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-height: 620px) {
  .page-container {
    padding: 1.5rem;
  }

  .brand-logo {
    font-size: clamp(3.5rem, 14vh, 6rem);
  }

  .crimson-bar {
    margin: 1rem 0;
  }
}
