/* =========================================================
   Greyhat4hire.com — Consultancy Elevation v1.1 (LOCKED)
   Dr David Sykes · CompTIA PenTest+
   Pink + Gunmetal Brand Lock
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

/* ---------- Root Variables ---------- */
:root {
  --bg-main: #0b0c0e;
  --bg-panel: rgba(255,255,255,0.02);
  --bg-panel-subtle: rgba(255,255,255,0.015);

  --text-main: #d6d6d6;
  --text-muted: #9a9a9a;

  --accent: #C2185B;
  --accent-soft: rgba(194, 24, 91, 0.6);

  --border-soft: rgba(255,255,255,0.05);
}

/* ---------- Global Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ---------- Body ---------- */
body {
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(180deg, #101113, var(--bg-main));
  color: var(--text-main);
  padding: 64px 24px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* ---------- Subtle Grid Overlay ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
}

/* ---------- Noise Layer ---------- */
.noise {
  position: fixed;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Content Layer ---------- */
header,
section,
footer {
  position: relative;
  z-index: 2;
}

/* =========================================================
   HERO / HEADER
   ========================================================= */

header,
.hero {
  max-width: 960px;              /* widened for authority */
  margin: 0 auto 104px;
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1 {
  font-size: 2.45rem;
  font-weight: 500;
  color: #f5f5f5;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ---------- Brand Logo (ELEVATED) ---------- */
.brand-logo {
  width: 820px;                  /* ~3× presence */
  max-width: 100%;
  height: auto;
  margin-bottom: 0px;
  display: block;
}

/* ---------- Cursor Blink ---------- */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background-color: var(--accent);
  margin-left: 6px;
  vertical-align: bottom;
  animation: blink 1s steps(1) 3;
}

@keyframes blink {
  50% { opacity: 0; }
}

.subtitle {
  margin-top: 20px;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* =========================================================
   PANELS
   ========================================================= */

.panel {
  max-width: 960px;
  margin: 0 auto 64px;
  padding: 42px 46px;
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 38px rgba(0,0,0,0.22);
}

.panel.subtle {
  background: var(--bg-panel-subtle);
  border-left-color: var(--accent-soft);
}

.panel.heavy {
  background: rgba(255,255,255,0.035);
  border-left-width: 4px;
}

/* =========================================================
   HEADINGS
   ========================================================= */

h2 {
  position: relative;
  margin-top: 0;
  font-size: 1.28rem;
  color: var(--accent);
  display: inline-block;
}

/* Underline expansion */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 0%;
  background: var(--accent-soft);
  transition: width 0.8s ease;
}

.panel.loaded h2::after {
  width: 100%;
}

/* =========================================================
   TEXT
   ========================================================= */

p, li {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text-main);
}

/* =========================================================
   LISTS
   ========================================================= */

ul {
  list-style: none;
  padding-left: 0;
}

ul li::before {
  content: "— ";
  color: var(--accent);
}

/* ---------- Authority Grid ---------- */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 48px;
}

.authority-grid li {
  font-size: 0.9rem;
  color: #e2e2e2;
}

/* =========================================================
   PROTOCOL LIST
   ========================================================= */

.protocol-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.protocol-list li {
  counter-increment: step;
  margin-bottom: 32px;
  padding-left: 56px;
  position: relative;
}

.protocol-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.protocol-list strong {
  display: block;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 6px;
}

/* ---------- Ethics List ---------- */
.ethics-list li::before {
  content: "✓ ";
  color: var(--accent-soft);
}

/* =========================================================
   NOTES & STATEMENTS
   ========================================================= */

.methodology-note {
  margin-top: 32px;
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 720px;
}

.restraint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  max-width: 960px;
  margin: 104px auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   MOTION
   ========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  header,
  .panel {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .cursor {
    animation: none;
  }
}

/* =========================================================
   MOBILE PASS 2 — NON-NEGOTIABLE
   ========================================================= */

@media (max-width: 768px) {

  body {
    padding: 36px 16px;
  }

  body::before {
    background-size: 112px 112px;
    opacity: 0.35;
  }

  header,
  .hero {
    margin-bottom: 76px;
  }

  .brand-logo {
    width: 620px;                /* strong but controlled */
    margin-bottom: 20px;
  }

  h1 {
    font-size: 1.65rem;
    line-height: 1.4;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.06rem;
  }

  p, li {
    font-size: 0.9rem; /*MOBILE TEXT HIEGHT */s
    line-height: 1.75;
  }

  .panel {
    padding: 36px 30px;
    margin-bottom: 56px;
    animation-duration: 1.6s;
    transform: translateY(2px);
  }

  .authority-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .protocol-list li {
    padding-left: 48px;
    margin-bottom: 28px;
  }

  .protocol-list li::before {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  a {
    padding: 6px 0;
    display: inline-block;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* =========================================================
   PRINT / PDF AESTHETIC
   ========================================================= */

@media print {
  body {
    background: white;
    color: black;
    padding: 40px;
  }

  body::before,
  .noise {
    display: none;
  }

  .panel {
    background: none;
    border-left: 2px solid black;
    box-shadow: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
