/* ═══════════════════════════════════════════
   CLASSIFIED PORTFOLIO — STYLE SHEET
   ═══════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
  --desk:         #141210;
  --desk-mid:     #1e1a14;
  --paper:        #f2e8d5;
  --paper-dark:   #e4d8bf;
  --paper-line:   rgba(0,0,0,0.06);
  --ink:          #1a1208;
  --ink-mid:      #2e2416;
  --ink-light:    #5a4a30;
  --ink-faint:    #8a7a60;
  --sep:          #c4b090;
  --stamp-red:    #8b1a1a;
  --stamp-black:  #111111;
  --folder:       #c09830;
  --cork:         #b5834a;
  --cork-dark:    #8a6035;
  --cork-hole:    #7a5228;
  --string:       #cc2222;
  --pin-red:      #c0392b;
  --pin-blue:     #1a4a8b;
  --pin-gold:     #b8860b;
  --redact:       #111111;
  --priority-crit:#8b1a1a;
  --priority-high:#7a5a00;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  background: var(--desk);
  color: var(--ink);
  user-select: none;
}

/* ── DESK ──────────────────────────────────── */
.desk {
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(ellipse at 30% 20%, #2a2018 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, #1a160e 0%, transparent 60%),
    linear-gradient(135deg, #1c1810 0%, #141210 50%, #1a1610 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* subtle grain overlay */
.desk::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── DESK DECORATIONS ──────────────────────── */
.desk-pen {
  position: absolute;
  bottom: 12%;
  right: 8%;
  width: 140px;
  height: 12px;
  background: linear-gradient(90deg, #222, #555 20%, #333 80%, #111);
  border-radius: 6px;
  transform: rotate(-25deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  opacity: 0.5;
}
.desk-pen::after {
  content: '';
  position: absolute;
  right: -6px; top: 2px;
  width: 12px; height: 8px;
  background: #c8a84b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.desk-ring {
  position: absolute;
  top: 15%;
  left: 7%;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 6px solid rgba(180,160,100,0.15);
  box-shadow: inset 0 0 10px rgba(180,160,100,0.1);
  opacity: 0.4;
}

/* ── FOLDER ────────────────────────────────── */
.folder {
  position: absolute;
  width: 540px;
  height: 380px;
  z-index: 10;
}

.folder-flap {
  position: absolute;
  top: -28px;
  left: 30px;
  width: 160px;
  height: 32px;
  background: linear-gradient(180deg, #a88020, var(--folder));
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
}

.folder-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #c8a030 0%, #b08828 40%, #a07820 100%);
  border-radius: 3px 8px 8px 8px;
  box-shadow:
    0 4px 0 #806010,
    0 8px 30px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-label-area {
  text-align: center;
}

.folder-stamp {
  font-family: 'Special Elite', serif;
  font-size: 28px;
  letter-spacing: 0.18em;
  color: var(--stamp-red);
  border: 3px solid var(--stamp-red);
  padding: 4px 14px;
  display: inline-block;
  transform: rotate(-8deg) scale(0);
  opacity: 0;
  mix-blend-mode: multiply;
  text-shadow: 1px 1px 0 rgba(139,26,26,0.3);
}

.folder-title-text {
  font-family: 'Special Elite', serif;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: rgba(20,10,0,0.75);
  margin: 12px 0 6px;
}

.folder-ref-text {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(20,10,0,0.5);
  margin-bottom: 20px;
}

.open-btn {
  font-family: 'Special Elite', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(20,10,0,0.7);
  background: transparent;
  border: 2px solid rgba(20,10,0,0.4);
  padding: 8px 22px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}
.open-btn:hover {
  background: rgba(20,10,0,0.1);
  color: rgba(20,10,0,0.9);
  border-color: rgba(20,10,0,0.7);
}

/* ── PAGE STACK ────────────────────────────── */
.page-stack {
  position: absolute;
  width: 680px;
  height: 88vh;
  max-height: 860px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.page-stack.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── SINGLE PAGE ───────────────────────────── */
.page {
  position: absolute;
  width: 680px;
  height: 88vh;
  max-height: 860px;
  background: var(--paper);
  border-radius: 2px;
  box-shadow:
    0 1px 0 var(--paper-dark),
    0 2px 4px rgba(0,0,0,0.15),
    0 8px 30px rgba(0,0,0,0.45),
    0 20px 60px rgba(0,0,0,0.3);
  display: none;
  overflow: hidden;
}

/* lined paper texture */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    var(--paper-line) 27px,
    var(--paper-line) 28px
  );
  pointer-events: none;
}

/* fold crease */
.page::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent 5%, rgba(0,0,0,0.04) 30%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.04) 70%, transparent 95%);
  pointer-events: none;
}

.page.active { display: flex; }

/* ── PAGE INNER ────────────────────────────── */
.page-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 32px 44px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── DOC HEADER ────────────────────────────── */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.doc-ref {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.doc-classification {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  border: 1px solid var(--ink-faint);
  padding: 1px 6px;
}

/* ── DOC TITLE ─────────────────────────────── */
.doc-title {
  font-family: 'Special Elite', serif;
  font-size: 26px;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 6px;
}

.doc-divider {
  height: 1px;
  background: var(--sep);
  margin: 12px 0;
}

/* ── OPERATION DESIGNATION ─────────────────── */
.op-designation {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.op-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.op-name {
  font-family: 'Special Elite', serif;
  font-size: 30px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

/* ── FIELD ROWS ────────────────────────────── */
.field-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 5px 0;
  font-size: 12px;
}

.field-label {
  min-width: 100px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.field-val {
  color: var(--ink);
  font-size: 16px;
}

.priority-critical { color: var(--priority-crit); font-weight: 700; letter-spacing: 0.1em; }
.priority-high      { color: var(--priority-high); font-weight: 700; letter-spacing: 0.1em; }
.status-active      { color: #1a5c1a; font-weight: 700; }

/* ── SECTION LABEL ─────────────────────────── */
.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 10px 0 4px;
}

/* ── BODY TEXT ─────────────────────────────── */
.body-text {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-mid);
}
.body-text.small { font-size: 14px; line-height: 1.65; }

/* ── TECH TAGS ─────────────────────────────── */
.tech-tags {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  line-height: 1.8;
  margin: 4px 0 8px;
}

/* ── OUTCOMES LIST ─────────────────────────── */
.outcomes-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
}
.outcomes-list li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-mid);
  padding-left: 18px;
  position: relative;
}
.outcomes-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}
.outcomes-list li strong { color: var(--ink); }

/* ── DOC FOOTER ────────────────────────────── */
.doc-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--sep);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── STAMPS ────────────────────────────────── */
.stamp {
  position: absolute;
  font-family: 'Special Elite', serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 3px solid;
  padding: 4px 10px;
  opacity: 0;
  transform-origin: center;
  pointer-events: none;
  mix-blend-mode: multiply;
  line-height: 1.3;
  text-align: center;
}

.stamp-red   { color: var(--stamp-red);   border-color: var(--stamp-red); }
.stamp-black { color: var(--stamp-black); border-color: var(--stamp-black); }

/* position variants */
.stamp-large   { position: relative; display: inline-block; font-size: 32px; }
.stamp-verified { bottom: 60px; right: 44px; font-size: 16px; transform: rotate(12deg) scale(0); }
.stamp-deployed { bottom: 60px; right: 44px; font-size: 16px; transform: rotate(8deg) scale(0); }
.stamp-impact   { bottom: 58px; right: 38px; font-size: 13px; transform: rotate(-10deg) scale(0); }
.stamp-service  { bottom: 60px; right: 44px; font-size: 13px; transform: rotate(-8deg) scale(0); }
.stamp-avail    { font-size: 18px; position: relative; display: inline-block; transform: scale(0); }

/* ── REDACTED ───────────────────────────────── */
.redacted {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.redact-bar {
  position: absolute;
  inset: 0 -2px;
  background: var(--redact);
  transform-origin: left center;
  z-index: 2;
  animation: redact-pulse 2.4s ease-in-out infinite;
}

/* pulsing glow so users know it's interactive */
@keyframes redact-pulse {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 7px 2px rgba(200,50,50,0.45); }
}

/* small hint label on the bar */
.redact-bar::after {
  content: '▸ CLASSIFIED';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Special Elite', serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  pointer-events: none;
}

.redact-text {
  opacity: 0;
  color: var(--ink);
}

/* ── COVER PAGE ─────────────────────────────── */
.cover-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cover-stamp-wrap {
  margin-bottom: 8px;
}

.cover-divider {
  width: 280px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sep), transparent);
}

.cover-name {
  font-family: 'Special Elite', serif;
  font-size: 44px;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-align: center;
}

.cover-role {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  text-align: center;
}

.cover-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  margin-top: 10px;
}

.cover-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.meta-val {
  font-size: 13px;
  color: var(--ink-mid);
}

/* ── OMNIBUS GRID ───────────────────────────── */
.omnibus-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.omnibus-section {
  padding: 8px 10px;
  border-left: 2px solid var(--sep);
}

/* ── ASSETS GRID ────────────────────────────── */
.assets-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.asset-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  line-height: 1.65;
  padding: 3px 0;
  border-bottom: 1px solid var(--paper-line);
}

.asset-cat {
  min-width: 100px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 2px;
}

.asset-items {
  color: var(--ink-mid);
  line-height: 1.5;
}

/* ── SERVICE RECORD ─────────────────────────── */
.service-block {
  margin: 8px 0 4px;
  padding-left: 10px;
  border-left: 2px solid var(--sep);
}

.service-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.service-org {
  font-size: 11px;
  color: var(--ink-light);
  margin: 3px 0;
}

.service-detail {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 4px 0;
}

.cert-list li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mid);
}

.cert-issuer {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-right: 10px;
  display: inline-block;
  min-width: 100px;
}

/* ── CONTACT PAGE ───────────────────────────── */
.contact-page .page-inner {
  justify-content: space-between;
}

.contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.contact-status-row {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.contact-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sep);
  text-underline-offset: 3px;
  cursor: pointer;
}
a.contact-link { text-decoration: underline; }
a.contact-link:hover { color: var(--stamp-red); }

.contact-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.contact-stamp-btn {
  font-family: 'Special Elite', serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--stamp-red);
  background: transparent;
  border: 3px solid var(--stamp-red);
  padding: 12px 36px;
  cursor: pointer;
  transform: rotate(-2deg);
  mix-blend-mode: multiply;
  transition: transform 0.1s, background 0.2s;
}
.contact-stamp-btn:hover {
  background: rgba(139,26,26,0.08);
  transform: rotate(-2deg) scale(1.04);
}
.contact-stamp-btn:active {
  transform: rotate(-2deg) scale(0.97);
}

.contact-hint {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   CORK BOARD PAGE
   ══════════════════════════════════════════════ */
.page-corkboard {
  background: var(--cork);
  overflow: hidden;
}

.page-corkboard::before {
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.04) 0px, rgba(0,0,0,0) 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.03) 0px, rgba(0,0,0,0) 2px
    );
}

.page-corkboard::after { display: none; }

.corkboard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 14px 16px 36px;
  overflow: hidden;
}

.corkboard-header {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.corkboard-title-card {
  background: var(--paper);
  font-family: 'Special Elite', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding: 6px 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.corkboard-footer {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* SVG strings layer */
.cork-strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── CORK CARD ───────────────────────────────── */
.cork-card {
  position: absolute;
  width: 155px;
  background: var(--paper);
  padding: 22px 10px 10px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.25),
    0 6px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cork-card:hover {
  box-shadow:
    0 6px 12px rgba(0,0,0,0.35),
    0 12px 28px rgba(0,0,0,0.3);
  transform: translateY(-4px) rotate(0deg) !important;
  z-index: 10;
}

/* PIN */
.pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.pin::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.pin-red  { background: radial-gradient(circle at 35% 35%, #e74c3c, #8b1a1a); }
.pin-blue { background: radial-gradient(circle at 35% 35%, #4a90d9, #1a4a8b); }
.pin-gold { background: radial-gradient(circle at 35% 35%, #f1c40f, #b8860b); }

.cc-title {
  font-family: 'Special Elite', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 3px;
  text-transform: uppercase;
}

.cc-client {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cc-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-bottom: 6px;
}

.cc-metric {
  font-size: 12px;
  font-weight: 700;
  color: var(--stamp-red);
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}

.cc-tags {
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--sep);
  padding-top: 5px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
.nav-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  background: rgba(10,8,4,0.72);
  border: 1px solid rgba(200,180,140,0.18);
  padding: 10px 18px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav-bar.visible {
  opacity: 1;
  pointer-events: all;
}

.nav-btn {
  font-family: 'Special Elite', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(220,195,145,0.9);
  background: rgba(200,180,140,0.08);
  border: 1.5px solid rgba(200,180,140,0.45);
  padding: 9px 24px;
  cursor: pointer;
  transition: all 0.18s;
  min-width: 110px;
}
.nav-btn:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(220,195,145,0.9);
  background: rgba(200,180,140,0.18);
  box-shadow: 0 0 12px rgba(200,180,140,0.2);
}
.nav-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.nav-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.page-counter {
  font-family: 'Special Elite', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(200,180,140,0.55);
  min-width: 140px;
  text-align: center;
  border-left: 1px solid rgba(200,180,140,0.15);
  border-right: 1px solid rgba(200,180,140,0.15);
  padding: 0 16px;
}

/* ── CLOSE FILE BUTTON ─────────────────────── */
.close-btn {
  position: fixed;
  top: 22px;
  right: 26px;
  font-family: 'Special Elite', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(200,180,140,0.5);
  background: rgba(10,8,4,0.6);
  border: 1px solid rgba(200,180,140,0.2);
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.18s;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.close-btn::before {
  content: '✕  ';
  font-size: 9px;
  opacity: 0.7;
}
.close-btn:hover {
  color: rgba(220,195,145,1);
  border-color: rgba(200,180,140,0.55);
  background: rgba(20,14,8,0.8);
}
.close-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════════════
   STAPLE MARK (top-left corner of pages)
   ══════════════════════════════════════════════ */
.page-inner::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 16px;
  width: 22px;
  height: 6px;
  border: 2px solid rgba(100,80,50,0.25);
  border-radius: 1px;
}
