/* ═══════════════════════════════════════════════════════
   nda.css — Confidential Work Vault
   Aesthetic: classified document / restricted clearance.
   Amber (#f0c060) replaces teal. Rough edges. Ink stamps.
   Feels like a redacted dossier, not an open ocean page.
═══════════════════════════════════════════════════════ */

/* ── Section shell ── */
.section-nda {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(240,192,96,0.025) 39px,
      rgba(240,192,96,0.025) 40px
    ),
    var(--c-abyss);
  overflow: hidden;
}

/* Scan-line atmosphere layer */
.nda-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(240,192,96,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(240,96,96,0.02) 0%, transparent 60%);
  z-index: 0;
}

/* Log coordinate label */
.section-nda::after {
  content: "// log-04.5 · classified · clearance required";
  position: absolute;
  top: 2rem; right: 3rem;
  font-family: var(--font-mono); font-size: 0.44rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240,192,96,0.22);
  pointer-events: none; user-select: none;
}

/* Left margin rule — amber dashes */
.section-nda::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 2.5rem; width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(240,192,96,0.14) 0px, rgba(240,192,96,0.14) 1px,
    transparent 1px, transparent 22px
  );
  pointer-events: none; z-index: 0;
}

.section-nda .container { position: relative; z-index: 2; }

/* ── Section title — redacted style ── */
.nda-title {
  position: relative;
  display: inline-block;
}
.nda-title::after {
  content: "RESTRICTED";
  position: absolute;
  top: 50%; right: -8rem;
  transform: translateY(-50%) rotate(-4deg);
  font-family: var(--font-mono); font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240,96,96,0.45);
  border: 1.5px solid rgba(240,96,96,0.35);
  padding: 2px 8px; pointer-events: none;
}

/* Amber section rule */
.section-rule-classified {
  background: linear-gradient(to right, #f0c060, transparent) !important;
}
.section-rule-classified::before { background: #f0c060 !important; }

.eyebrow-classified { color: rgba(240,192,96,0.55) !important; }

.nda-intro {
  color: var(--c-star); max-width: 540px;
  margin-top: var(--s2); font-size: 0.95rem; line-height: 1.7;
}

/* ── Lock gate ── */
.nda-gate {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: var(--s8);
  padding: var(--s6) var(--s6);
  border: 1px solid rgba(240,192,96,0.18);
  background: rgba(2,6,14,0.60);
  clip-path: polygon(
    6px 0%, calc(100% - 6px) 0%,
    100% 6px, 100% calc(100% - 6px),
    calc(100% - 6px) 100%, 6px 100%,
    0% calc(100% - 6px), 0% 6px
  );
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nda-gate-out {
  opacity: 0;
  transform: scale(0.97);
}

/* Lock sigil container */
.nda-lock-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100px; height: 100px;
}
.nda-lock-sigil {
  width: 100%; height: 100%;
  display: block;
}
.nda-orbit {
  transform-origin: 40px 40px;
  animation: nda-orbit-spin 18s linear infinite;
}
@keyframes nda-orbit-spin { to { transform: rotate(360deg); } }

/* Outer/inner amber rings */
.nda-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border-style: solid; border-color: transparent;
}
.nda-ring-1 {
  inset: -8px;
  border-top-color: rgba(240,192,96,0.18);
  border-bottom-color: rgba(240,192,96,0.18);
  animation: nda-orbit-spin 12s linear infinite;
}
.nda-ring-2 {
  inset: -18px;
  border-left-color: rgba(240,192,96,0.10);
  border-right-color: rgba(240,192,96,0.10);
  animation: nda-orbit-spin 20s linear infinite reverse;
}

/* ── Password prompt ── */
.nda-prompt-wrap { flex: 1; }

.nda-prompt-text {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--c-star); margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.nda-prompt-sub {
  font-size: 0.88rem; color: var(--c-star);
  margin-bottom: var(--s3); line-height: 1.65;
}
.nda-contact-link { color: rgba(240,192,96,0.75); }
.nda-contact-link:hover { color: #f0c060; }

.nda-input-row {
  display: flex; gap: 10px; align-items: stretch;
  max-width: 420px;
}
.nda-input {
  flex: 1;
  font-family: var(--font-mono); font-size: 0.80rem;
  letter-spacing: 0.08em;
  background: rgba(2,6,14,0.80);
  border: 1px solid rgba(240,192,96,0.28);
  color: #f0c060;
  padding: 0.6rem 0.9rem;
  outline: none;
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
  transition: border-color 0.2s;
}
.nda-input::placeholder { color: rgba(240,192,96,0.35); }
.nda-input:focus { border-color: rgba(240,192,96,0.65); }

/* Shake on wrong password */
.nda-shake {
  animation: nda-shake 0.5s ease;
}
@keyframes nda-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.nda-submit {
  font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  background: rgba(240,192,96,0.08);
  border: 1px solid rgba(240,192,96,0.45);
  color: #f0c060; cursor: pointer;
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.nda-submit:hover {
  background: rgba(240,192,96,0.15);
  border-color: rgba(240,192,96,0.80);
}
.nda-submit-glyph { font-size: 0.85rem; opacity: 0.80; }

.nda-error {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: rgba(240,96,96,0.85); letter-spacing: 0.08em;
  margin-top: 0.5rem; min-height: 1.2em;
}

/* Blurred teaser chips */
.nda-teaser {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: var(--s3);
}
.nda-teaser-chip {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(240,192,96,0.22);
  color: rgba(240,192,96,0.40);
  background: rgba(240,192,96,0.04);
  filter: blur(0px);
  user-select: none;
  position: relative;
  overflow: hidden;
}
/* Redacted bar over chip text */
.nda-teaser-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240,192,96,0.10);
}

/* ── Unlocked content ── */
.nda-content { margin-top: var(--s6); }
.nda-content-in { animation: nda-reveal 0.6s ease forwards; }
@keyframes nda-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nda-entries {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(240,192,96,0.15);
}

.nda-entry {
  padding: var(--s4) 0;
  border-bottom: 1px solid rgba(240,192,96,0.10);
  animation: nda-reveal 0.5s ease both;
  position: relative;
}
/* Amber accent line on left */
.nda-entry::before {
  content: "";
  position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, #f0c060, transparent);
  opacity: 0;
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.nda-entry:hover::before { transform: scaleY(1); opacity: 0.6; }

.nda-entry-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 0.6rem;
}
.nda-entry-cat {
  display: block; font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240,192,96,0.55); margin-bottom: 0.35rem;
}
.nda-entry-title {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  color: var(--c-star); margin: 0;
}
.nda-entry-role {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.10em; color: var(--c-mist);  /* was c-ghost */
  margin: 0.25rem 0 0;
}

/* NDA stamp badge */
.nda-badge {
  flex-shrink: 0;
  font-family: var(--font-mono); font-size: 0.55rem;
  font-weight: 700; letter-spacing: 0.22em;
  padding: 3px 8px;
  border: 1.5px solid rgba(240,96,96,0.50);
  color: rgba(240,96,96,0.70);
  transform: rotate(1.5deg);
  white-space: nowrap; user-select: none;
  background: rgba(240,96,96,0.04);
}

.nda-entry-desc {
  color: var(--c-star); font-size: 0.92rem;
  line-height: 1.75; margin-bottom: 0.8rem; max-width: 640px;
}
.nda-entry-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.nda-tool {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid rgba(240,192,96,0.22);
  color: rgba(240,192,96,0.60);
  background: rgba(240,192,96,0.04);
}

/* ── Nav vault link ── */
.nav-nda {
  color: rgba(240,192,96,0.65) !important;
}
.nav-nda:hover { color: #f0c060 !important; }
.nav-nda::after { background: #f0c060 !important; }

/* ── Artbar vault button ── */
.artbar-btn-nda .artbar-icon { opacity: 0.75; }

/* ── Recruiter banner ── */
.recruiter-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(2,6,14,0.96);
  border-bottom: 1px solid rgba(61,255,208,0.20);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 0.65rem 2rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; color: var(--c-star);   /* was c-mist */
  transition: opacity 0.3s ease;
}
.recruiter-banner-link {
  color: var(--c-biolume); font-weight: 600;
  text-decoration: none; margin-left: 0.4em;
}
.recruiter-banner-link:hover { color: var(--c-biolume-soft); }
.recruiter-banner-close {
  position: absolute; right: 1.5rem;
  background: none; border: none; color: var(--c-mist);  /* was c-ghost */
  font-size: 0.75rem; cursor: pointer; padding: 4px 8px;
  line-height: 1; transition: color 0.15s;
}
.recruiter-banner-close:hover { color: var(--c-star); }  /* was c-mist */

/* Push #site-nav down when banner visible */
body:has(.recruiter-banner:not([style*="display: none"])) #site-nav {
  top: 40px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .nda-orbit, .nda-ring-1, .nda-ring-2 { animation: none; }
  .nda-shake { animation: none; }
  .nda-content-in, .nda-entry { animation: none; opacity: 1; transform: none; }
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .nda-gate {
    flex-direction: column; gap: var(--s4);
    align-items: flex-start;
  }
  .nda-title::after { display: none; }
  .nda-input-row { flex-direction: column; }
}
