/* ============================================
   nslabs — About / Hero Identity
   Architectural identity panel
   ============================================ */

:root {
  --bg-deep: #07090f;
  --bg-panel: #0d1324;
  --bg-elevated: #121a30;
  --accent: #4f7df5;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(79, 125, 245, 0.45);
  --text-primary: #e8ecf6;
  --text-secondary: #8a93ad;
  --text-dim: #5b6480;
  --border: rgba(140, 160, 220, 0.10);
  --border-strong: rgba(140, 160, 220, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(79, 125, 245, 0.35), 0 8px 28px rgba(79, 125, 245, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   SECTION
   ============================================ */
.ns-about {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 100px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79, 125, 245, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(139, 92, 246, 0.10), transparent 60%),
    linear-gradient(180deg, #07090f 0%, #0a0e1a 100%);
}

.ns-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ============================================
   ATMOSPHERIC BACKGROUND
   ============================================ */
.ns-about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(140, 160, 220, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 160, 220, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}

.ns-about-bg::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--accent-glow), transparent);
  transform: translateX(-50%);
  animation: aboutSeam 6s ease-in-out infinite;
}

.ns-about-bg::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 125, 245, 0.18) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  filter: blur(60px);
  animation: aboutOrb 12s ease-in-out infinite;
}

@keyframes aboutSeam {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scaleY(1.05); }
}

@keyframes aboutOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(1.1); }
}

/* ============================================
   HEADER
   ============================================ */
.ns-about-header {
  margin-bottom: 80px;
  max-width: 920px;
}

.ns-about-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(79, 125, 245, 0.08);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.ns-about-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: aboutPulse 1.6s ease-in-out infinite;
}

@keyframes aboutPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ns-about-title {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.highlight-word {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.highlight-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  transform-origin: left;
  animation: aboutUnderline 2.4s ease-out 0.4s both;
}

@keyframes aboutUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============================================
   CONTENT GRID
   ============================================ */
.ns-about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ----- LEFT: STORY ----- */
.ns-about-story {
  position: relative;
  padding-left: 28px;
}

.ns-about-story::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}

.ns-about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.ns-about-text:first-child {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.18rem;
}

.ns-about-highlight {
  margin-top: 36px;
  padding: 28px 28px 28px 32px;
  background: linear-gradient(135deg, rgba(79, 125, 245, 0.08), rgba(139, 92, 246, 0.04));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.ns-about-highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.ns-about-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 125, 245, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.ns-about-highlight:hover::before { opacity: 1; }

.highlight-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px;
}

.ns-about-highlight p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

/* ----- RIGHT: METADATA ----- */
.ns-about-meta {
  position: relative;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(18, 26, 48, 0.6), rgba(13, 19, 36, 0.6));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  position: relative;
}

.meta-grid::before {
  content: "IDENTITY.SYS";
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  background: var(--bg-deep);
  padding: 2px 10px;
}

.meta-item {
  padding: 20px 18px;
  background: rgba(7, 9, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meta-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 125, 245, 0.08), transparent);
  transition: left 0.6s;
}

.meta-item:hover {
  border-color: rgba(79, 125, 245, 0.4);
  transform: translateY(-3px);
  background: rgba(18, 26, 48, 0.8);
}

.meta-item:hover::after { left: 100%; }

.meta-label {
  font-family: "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}

.meta-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.meta-item.accent {
  background: linear-gradient(135deg, rgba(79, 125, 245, 0.18), rgba(139, 92, 246, 0.10));
  border-color: rgba(79, 125, 245, 0.35);
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.meta-item.accent .meta-label { color: var(--accent); }

.meta-item.accent .meta-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-item.accent .meta-value::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: aboutLive 1.4s ease-in-out infinite;
}

@keyframes aboutLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   FOOTER LINE
   ============================================ */
.ns-about-footer-line {
  margin-top: 100px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.ns-about-footer-line::before,
.ns-about-footer-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.ns-about-footer-line span {
  font-family: "SF Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================
   LAYOUT
   ============================================ */
.ns-about-layout { position: relative; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .ns-about { padding: 100px 20px 80px; }
  .ns-about-content { grid-template-columns: 1fr; gap: 48px; }
  .ns-about-header { margin-bottom: 56px; }
}

@media (max-width: 640px) {
  .ns-about { padding: 80px 18px 64px; }
  .ns-about-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .meta-grid { grid-template-columns: 1fr; padding: 22px; }
  .meta-item.accent { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ns-about-story { padding-left: 20px; }
  .ns-about-highlight { padding: 22px 22px 22px 26px; }
  .ns-about-footer-line { margin-top: 64px; flex-direction: column; gap: 14px; }
  .ns-about-footer-line::before,
  .ns-about-footer-line::after { width: 100%; }
}