/* =============================================
   Guardian narrative — Trust wall / Case File / CTA
   ============================================= */

/* Trust wall */
.trust-wall-section {
  padding: 2.5rem 0;
  background: var(--bg);
}

.trust-wall-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.trust-logo {
  height: 32px;
  display: flex;
  align-items: center;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.trust-logo:hover { opacity: 1; filter: grayscale(0); }

.trust-logo img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* Case File */
.case-file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1rem;
}

@media (max-width: 767px) {
  .case-file-card { grid-template-columns: 1fr; }
}

.case-file-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.case-file-body { padding: 1rem 1.5rem 1rem 0; }

@media (max-width: 767px) {
  .case-file-body { padding: 0.5rem 0.5rem 1.5rem; }
}

.case-file-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.75rem;
}

.case-file-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.case-file-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.case-file-log-label {
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Merriweather Sans", sans-serif;
  margin: 1.25rem 0 0.5rem;
}

.case-file-log {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.9rem 1.1rem;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.cf-comment { color: var(--text-muted); }
.cf-assert { color: var(--accent); }

/* Hero terminal */
.guardian-terminal {
  max-width: 560px;
  background: rgba(10, 16, 28, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.6rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.terminal-titlebar {
  display: flex;
  gap: 6px;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-titlebar .dot.red { background: #ff5f56; }
.terminal-titlebar .dot.yellow { background: #ffbd2e; }
.terminal-titlebar .dot.green { background: #27c93f; }

.terminal-body {
  padding: 0.9rem 1rem 1rem;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.65;
}

.terminal-body .ln {
  margin: 0 0 0.15rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255,255,255,0.55);
}

.terminal-body .prompt { color: #38bdf8; }
.terminal-body .cmd { color: #fff; font-weight: 500; }
.terminal-body .out { margin-bottom: 0.55rem; padding-left: 0; }
.terminal-body .ok { color: #4ade80; }
.terminal-body .cf-assert { color: #38bdf8; }

.terminal-body .cursor {
  background: #38bdf8;
  animation: term-blink 1s step-end infinite;
}

@keyframes term-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (max-width: 575px) {
  .terminal-body { font-size: 0.66rem; }
}

/* CTA — Still on duty */
#still-on-duty .section-label { color: var(--accent); }

/* About — assert block */
.about-asserts {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.74rem;
  line-height: 1.85;
}
.about-asserts .aln { margin: 0; white-space: pre-wrap; word-break: break-word; }
.about-asserts .kw { color: var(--accent); font-weight: 600; }
.about-asserts .str { color: var(--accent-secondary); }
.about-asserts .a-ok { color: #22c55e; }
.about-asserts .a-fail { color: #ef4444; }
.about-asserts .a-error { color: #ef4444; opacity: 0.85; padding-left: 1.1rem; }
.about-asserts .a-summary { color: var(--text-muted); padding-left: 1.1rem; font-style: italic; }
.about-asserts .out-val { color: var(--text-primary); padding-left: 1.1rem; margin-bottom: 0.4rem; }

/* Hero terminal — titlebar tab + log */
.terminal-tab {
  margin-left: 0.6rem;
  color: rgba(255,255,255,0.4);
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.68rem;
}

.terminal-log {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 0.8rem;
}
.terminal-log:empty { margin-bottom: 0; }

.terminal-log .ln { margin: 0 0 0.2rem; }

/* Mini browser device frame */
.mini-browser {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.4rem;
  overflow: hidden;
  background: #fff;
  width: 260px;
  max-width: 100%;
  margin: 0 auto;
  opacity: 0;
  max-height: 0;
  border-width: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, max-height 0.4s ease, transform 0.4s ease, border-width 0.4s ease;
}
.mini-browser.visible {
  opacity: 1;
  max-height: 200px;
  border-width: 1px;
  transform: translateY(0);
  margin-top: 0.9rem;
}

.mini-browser-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.5rem;
  background: #e2e8f0;
}

.mini-browser-chrome .mb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.mini-browser-url {
  margin-left: 0.4rem;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.55rem;
  color: #475569;
  background: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-browser-viewport {
  position: relative;
  height: 150px;
}

.mb-screen {
  position: absolute;
  inset: 0;
  padding: 0.6rem 0.7rem 0.7rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: #fff;
}
.mb-screen.active { opacity: 1; }

/* Home screen — mimics the real dark hero */
.mb-home { background: #0f172a; }

.mb-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}
.mb-brand { font-size: 0.6rem; font-weight: 800; color: #fff; }
.mb-brand.dark { color: #1e293b; }
.mb-navlink {
  width: 16px; height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  margin-left: 0.3rem;
}
.mb-navlink.dark { background: #cbd5e1; }

.mb-kicker {
  width: 50%;
  height: 4px;
  background: #38bdf8;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* Home screen — real nav + hero copy, miniaturized */
.mb-nav-text { flex-wrap: wrap; row-gap: 1px; margin-bottom: 0.4rem; }
.mb-navtext {
  font-size: 2.6px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  font-family: "Merriweather Sans", sans-serif;
}
.mb-navicon { font-size: 3.2px; line-height: 1; }
.mb-navbtn {
  font-size: 2.3px;
  color: #fff;
  border: 0.3px solid rgba(255,255,255,0.5);
  border-radius: 1px;
  padding: 0 1px;
  font-family: "Merriweather Sans", sans-serif;
}

.mb-kicker-text {
  font-size: 2.6px;
  letter-spacing: 0.4px;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-family: "Merriweather Sans", sans-serif;
}

.mb-title {
  font-size: 5.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-family: "Merriweather", serif;
}
.mb-title.accent { color: #38bdf8; }

.mb-subtitle {
  font-size: 2.6px;
  color: rgba(255,255,255,0.6);
  margin: 0.35rem 0 0.5rem;
}

.mb-stats {
  display: flex;
  gap: 0.5rem;
  font-size: 2.6px;
  color: rgba(255,255,255,0.6);
  font-family: "Merriweather Sans", sans-serif;
  text-transform: uppercase;
}
.mb-stats b { display: block; font-size: 4.5px; color: #38bdf8; font-family: "Merriweather Sans", sans-serif; }

.mb-bar {
  height: 10px;
  background: #cbd5e1;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.mb-home .mb-bar { background: rgba(255,255,255,0.85); }
.mb-bar.w70 { width: 70%; }
.mb-bar.w50 { width: 50%; }
.mb-bar.accent { background: #38bdf8 !important; }

.mb-btn {
  width: 60px;
  height: 16px;
  background: #0ea5e9;
  border-radius: 3px;
  margin-top: 0.7rem;
}

/* Projects screen — light, like the real projects grid */
.mb-projects { background: #f8fafc; }
.mb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.mb-card {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mb-card-thumb {
  height: 24px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}
.mb-card-line {
  height: 5px;
  width: 70%;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0.4rem auto;
}

/* CV screen */
.mb-cv { background: #fff; }
.mb-toast {
  display: inline-block;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.6rem;
  font-family: "JetBrains Mono", "Courier New", monospace;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* Contact screen — light gray, like the real contact section */
.mb-contact { background: #f8fafc; }
.mb-input {
  height: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.mb-input.short { width: 60%; }

.mb-check {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  margin: 1.4rem auto 0.5rem;
  font-size: 1.1rem;
}
.mb-hired-text {
  text-align: center;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 2px;
}
